]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
LT_OUTPUT should always create the libtool script.
authorPeter Rosin <peda@lysator.liu.se>
Fri, 20 Mar 2009 15:42:25 +0000 (16:42 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Fri, 20 Mar 2009 15:42:55 +0000 (16:42 +0100)
* libltdl/m4/libtool.m4 (LT_OUTPUT): Make LT_OUTPUT ignore the
--no-create configure option, and assume that the user wants
to use an up-to-date libtool script if the LT_OUTPUT macro is
present.
* tests/early-libtool.at: Make sure we do not regress.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
libltdl/m4/libtool.m4
tests/early-libtool.at

index 2699a09279e7f790cee414fb251dff7b6302ef7d..0a4ef3143015c3bba63ce5495c09b43f86b5c84e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-03-20  Peter Rosin  <peda@lysator.liu.se>
+
+       LT_OUTPUT should always create the libtool script.
+       * libltdl/m4/libtool.m4 (LT_OUTPUT): Make LT_OUTPUT ignore the
+       --no-create configure option, and assume that the user wants
+       to use an up-to-date libtool script if the LT_OUTPUT macro is
+       present.
+       * tests/early-libtool.at: Make sure we do not regress.
+
 2009-01-26  Peter Rosin  <peda@lysator.liu.se>
 
        Don't settle for any dumpbin/link program as name lister.
index 8fca5136262f2d49e5e850bde9a96d2145301c95..477f6e34f875f77f5b115ce7bd59dde261dc6502 100644 (file)
@@ -677,15 +677,13 @@ chmod +x "$CONFIG_LT"
 # appending to config.log, which fails on DOS, as config.log is still kept
 # open by configure.  Here we exec the FD to /dev/null, effectively closing
 # config.log, so it can be properly (re)opened and appended to by config.lt.
-if test "$no_create" != yes; then
-  lt_cl_success=:
-  test "$silent" = yes &&
-    lt_config_lt_args="$lt_config_lt_args --quiet"
-  exec AS_MESSAGE_LOG_FD>/dev/null
-  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
-  exec AS_MESSAGE_LOG_FD>>config.log
-  $lt_cl_success || AS_EXIT(1)
-fi
+lt_cl_success=:
+test "$silent" = yes &&
+  lt_config_lt_args="$lt_config_lt_args --quiet"
+exec AS_MESSAGE_LOG_FD>/dev/null
+$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+exec AS_MESSAGE_LOG_FD>>config.log
+$lt_cl_success || AS_EXIT(1)
 ])# LT_OUTPUT
 
 
index 75e26a2f01ae972c992ab414a0cf13201d022e96..7cc40b923a8d401a4a2550185c30c581ca64ca95 100644 (file)
@@ -222,4 +222,8 @@ LT_AT_EXEC_CHECK([./hell], [0], [stdout])
 AT_CHECK([grep 'Welcome to GNU Hell' stdout], [], [ignore])
 AT_CHECK([grep 'This is not GNU Hello.' stdout], [], [ignore])
 
+# Make sure config.status --recheck updates the libtool script
+rm libtool
+AT_CHECK([$SHELL ./config.status --recheck],[0],[ignore],[ignore])
+
 AT_CLEANUP