]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 10 Nov 2005 18:57:58 +0000 (18:57 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 10 Nov 2005 18:57:58 +0000 (18:57 +0000)
CONFIG_SHELL in the environment of the configure rerun.
* doc/autoconf.texi (Here-Documents, config.status Invocation):
Suggest passing CONFIG_SHELL absolute, and in the environment
rather than as option.

ChangeLog
doc/autoconf.texi
lib/autoconf/status.m4

index 126717ee32d1dd026227fa2ffb903496271b7803..b0db338b35e371a12a791e1e06adc944d964adeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
+       CONFIG_SHELL in the environment of the configure rerun.
+       * doc/autoconf.texi (Here-Documents, config.status Invocation):
+       Suggest passing CONFIG_SHELL absolute, and in the environment
+       rather than as option.
+
 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
index 3b75db505c4cb06a64b2fc7bb3b885376ea31a82..88a42e7374b0acf6a066d724c368a082ff4bc355 100644 (file)
@@ -9958,8 +9958,8 @@ example, Solaris @command{dtksh}, which is derived from Korn shell
 version M-12/28/93d, mishandles variable expansion that occurs on
 1024-byte buffer boundaries within a here-document.  Users can generally
 fix these problems by using a faster or more reliable shell, e.g., by
-using the command @samp{bash ./configure CONFIG_SHELL=bash} rather than
-plain @samp{./configure}.
+using the command @samp{CONFIG_SHELL=/bin/bash /bin/bash ./configure} rather
+than plain @samp{./configure}.
 
 Some shells can be extremely inefficient when there are a lot of
 here-documents inside a single statement.  For instance if your
@@ -14149,9 +14149,9 @@ The shell with which to run @command{configure} for the @option{--recheck}
 option.  It must be Bourne-compatible.  The default is a shell that
 supports @code{LINENO} if available, and @file{/bin/sh} otherwise.
 Invoking @command{configure} by hand bypasses this setting, so you may
-need to use a command like @samp{/bin/bash ./configure
-CONFIG_SHELL=/bin/bash} to insure that the same shell is used
-everywhere.
+need to use a command like @samp{CONFIG_SHELL=/bin/bash /bin/bash ./configure}
+to insure that the same shell is used everywhere.  The absolute name of the
+shell should be passed.
 @end defvar
 
 @defvar CONFIG_STATUS
index 233d0443b929fc98c4779c25dff9a2938791aba5..a1a20394f2ff75aa270cac86e30d78d9da4ab1c0 100644 (file)
@@ -1256,7 +1256,9 @@ exec AS_MESSAGE_LOG_FD>>config.log
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 if \$ac_cs_recheck; then
-  echo "running $SHELL $[0] " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&AS_MESSAGE_FD
+  echo "running CONFIG_SHELL=$SHELL $SHELL $[0] " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&AS_MESSAGE_FD
+  CONFIG_SHELL=$SHELL
+  export CONFIG_SHELL
   exec $SHELL $[0] $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 fi
 m4_ifdef([_AC_OUTPUT_COMMANDS_INIT],