-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I noticed that a straight CVS checkout doesn't quite bootstrap.
Previously, I was getting a successful bootstrap by first running 'ln -s
ltdl libltdl', but that felt hackish. But looking at the output of a
straight checkout gives a clue:
$ ./bootstrap
...
bootstrap: running: libtoolize --ltdl="ltdl" --force --copy
...
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([ltdl])' to `configure.ac'.
bootstrap: running: autoreconf --force --verbose --install
...
autoreconf: configure.ac: subdirectory libltdl not present
autoreconf: running: libtoolize --copy --force
...
$ ./configure
...
checking if gcc supports -pipe... ./configure: line 6199: -e: command not
found
yes
...
$ make
...
Making all in ltdl
make[2]: Entering directory `/home/eblake/m4-patch/ltdl'
make[2]: *** No rule to make target `all'. Stop.
...
autoreconf didn't quite work, since it was looking for libltdl instead of
ltdl, so make failed. Also, notice the error message when checking for
- -pipe: since configure.ac uses _LT_COMPILER_OPTION prior to LT_INIT, $Xsed
was not defined yet. I don't like using undocumented libtool functions,
but for now, it was easier to just move it after LT_INIT so that it would
at least work.
Meanwhile, note that autoreconf is rerunning libtoolize, which is a slight
waste of time. I will discuss this further in another mail to bug-m4.
2006-05-06 Eric Blake <[EMAIL PROTECTED]>
* configure.ac (LT_CONFIG_LTDL_DIR): Inform libtool which
subdirectory to use.
(support for -pipe): Move after LT_INIT, since it relies on
libtool internals.
- --
Life is short - so eat dessert first!
Eric Blake [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEXJPz84KuGfSFAYARAl/4AKCvNizef9wgxHTkl2J68xJA48WEMwCcC5U4
U7iwFwjBxwE8yFTIfwQv4Pg=
=0eYa
-----END PGP SIGNATURE-----
Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.43
diff -u -p -r1.43 configure.ac
--- configure.ac 5 May 2006 13:30:15 -0000 1.43
+++ configure.ac 6 May 2006 12:16:52 -0000
@@ -110,6 +110,16 @@ AC_PROG_CPP
AM_PROG_CC_C_O
m4_CHECK_DEBUGGING
+
+
+## ----------------------- ##
+## Libtool initialisation. ##
+## ----------------------- ##
+LT_PREREQ([2.0])
+LT_CONFIG_LTDL_DIR([ltdl])
+LT_INIT([shared dlopen win32-dll])
+LT_WITH_LTDL([ltdl])
+
# Use gcc's -pipe option if available: for faster compilation.
case "$CFLAGS" in
*-pipe* ) ;;
@@ -122,15 +132,6 @@ esac
-## ----------------------- ##
-## Libtool initialisation. ##
-## ----------------------- ##
-LT_PREREQ([2.0])
-LT_INIT([shared dlopen win32-dll])
-LT_WITH_LTDL([ltdl])
-
-
-
## ---------------- ##
## Gettext support. ##
## ---------------- ##
_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches