Hi,
The included patch surprisingly fixes the "cannot run" error in
libltdl/configure when attempting to build the latest CVS libtool with
the latest CVS autoconf.
1. AC_CONFIG_AUX_DIRS is AC_PROVIDEd
2. AC_CANONICAL_HOST requires AC_CANONICAL_BUILD
3. AC_CANONICAL_BUILD requires AC_CONFIG_AUX_DIRS
All appears well and nice at step 3: the dependency are satisfied.
However, what actually happens is:
* AC_CONFIG_AUX_DIRS is expanded/provided in the NORMAL diversion
* AC_CANONICAL_HOST is expanded in the NORMAL dirversion
* AC_CANONICAL_BUILD is expanded in the NORMAL_1 diversion
AC_CANONICAL_BUILD uses $ac_config_sub provided by AC_CONFIG_AUX_DIRS,
but is textually output before $ac_config_sub is set.
So, here's the "fix". However, this is not very robust, and the real
problem with the AC_REQUIRE diversions needs to be fixed.
Index: libtool.m4
===================================================================
RCS file: /home/cvs/libtool/libtool.m4,v
retrieving revision 1.92
diff -u -p -u -r1.92 libtool.m4
--- libtool.m4 2000/06/18 02:59:36 1.92
+++ libtool.m4 2000/06/26 03:40:02
@@ -60,8 +60,8 @@ AC_DEFUN(AC_LIBTOOL_SETUP,
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
- Hari
--
Raja R Harinath ------------------------------ [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash