[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf uses /bin/sh in config.status; should be $CONFIG_SHELL?
From: |
Akim Demaille |
Subject: |
Re: autoconf uses /bin/sh in config.status; should be $CONFIG_SHELL? |
Date: |
19 Mar 2001 12:50:23 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
| --- acgeneral.m4 Mon Mar 19 02:22:30 2001
| +++ acgeneral.m4.new Mon Mar 19 02:27:35 2001
| @@ -3588,7 +3588,7 @@ AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [
| # shells die. Unfortunately the limit is not known precisely...
| m4_define([_AC_OUTPUT_CONFIG_STATUS],
| [AC_MSG_NOTICE([creating $CONFIG_STATUS])
| -cat >$CONFIG_STATUS <<\_ACEOF
| +sed "s'/bin/sh'$CONFIG_SHELL'g" >$CONFIG_STATUS <<\_ACEOF
| #! /bin/sh
| # Generated automatically by configure.
| # Run this file to recreate the current configuration.
Thanks! I prefer this though:
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.702
diff -u -u -r1.702 acgeneral.m4
--- acgeneral.m4 2001/03/08 16:28:04 1.702
+++ acgeneral.m4 2001/03/19 11:38:06
@@ -3588,17 +3588,20 @@
# shells die. Unfortunately the limit is not known precisely...
m4_define([_AC_OUTPUT_CONFIG_STATUS],
[AC_MSG_NOTICE([creating $CONFIG_STATUS])
-cat >$CONFIG_STATUS <<\_ACEOF
-#! /bin/sh
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
-as_me=`echo "$[0]" | sed 's,.*/,,'`
-SHELL=${CONFIG_SHELL-/bin/sh}
+as_me=\`echo "\$[0]" | sed 's,.*/,,'\`
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
AS_SHELL_SANITIZE
_AC_INIT_DEFAULTS_FDS
cat >&AS_MESSAGE_LOG_FD << EOF