]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_NOTICE): Don't save original args or initialize options here.
authorDavid MacKenzie <djm@djmnet.org>
Sun, 27 Mar 1994 05:44:01 +0000 (05:44 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Sun, 27 Mar 1994 05:44:01 +0000 (05:44 +0000)
(AC_PARSEARGS): Do them here.
(AC_PREPARE): Save a copy of original args here, if it hasn't been
done yet.

acgeneral.m4
lib/autoconf/general.m4

index adc8ec9c16bdf6c0b7e2b5778aa722c7b8280a30..80403766c8c11df2c4142ae601b1936202dfb970 100644 (file)
@@ -79,39 +79,38 @@ dnl [#] by AC_USER@AC_HOST on AC_DATE
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-# Save the original args to write them into config.status later.
-ac_configure_args="[$]*"
-ac_prog=[$]0
-
-# Initialize some variables set by options.
-exec_prefix=
-floating_point=yes
-norecursion=
-prefix=
-program_prefix=
-program_suffix=
-ac_silent=
-srcdir=
-ac_verbose=
 ])dnl
 dnl
 define(AC_PARSEARGS,
-[changequote(,)dnl
+[# Save the original args to write them into config.status later.
+ac_configure_args="[$]*"
+
 # Only options that might do something get documented.
+changequote(,)dnl
 ac_usage="Usage: configure [options] [host]
 Options: [defaults in brackets]
---enable-FEATURE[=VAL] enable FEATURE (optional parameter VAL)
+--enable-FEATURE[=VAL] include FEATURE [VAL=yes]
 --exec-prefix=PREFIX   install host dependent files in PREFIX [/usr/local]
 --help                 print this message
 --prefix=PREFIX                install host independent files in PREFIX [/usr/local]
 --quiet, --silent      do not print \`checking for...' messages
---srcdir=DIR           find the sources in DIR [. or ..]
+--srcdir=DIR           find the sources in DIR [configure dir or ..]
 --verbose              print results of checks
 --version              print the version of autoconf that created configure
---with-PACKAGE[=VAL]   external PACKAGE is available (optional parameter VAL)"
+--with-PACKAGE[=VAL]   external PACKAGE is available [VAL=yes]"
 changequote([,])dnl
 
+# Initialize some variables set by options.
+exec_prefix=
+floating_point=yes
+norecursion=
+prefix=
+program_prefix=
+program_suffix=
+ac_silent=
+srcdir=
+ac_verbose=
+
 # Get the option argument from the current or next ARGV element.
 ac_get_optarg='
 case "$ac_option" in
@@ -299,6 +298,9 @@ define(AC_PREPARE,
 [trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
 trap 'rm -fr confdefs* $ac_clean_files' 0
 
+# Save the original args if we used an alternate arg parser.
+ac_configure_args="${ac_configure_args-[$]*}"
+
 # NLS nuisances.
 # These must not be set unconditionally because not all systems understand
 # e.g. LANG=C (notably SCO).
@@ -318,6 +320,7 @@ ac_unique_file=$1
 if test -z "$srcdir"; then
   ac_srcdir_defaulted=yes
   # Try the directory containing this script, then `..'.
+  ac_prog=[$]0
 changequote(,)dnl
   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 changequote([,])dnl
index adc8ec9c16bdf6c0b7e2b5778aa722c7b8280a30..80403766c8c11df2c4142ae601b1936202dfb970 100644 (file)
@@ -79,39 +79,38 @@ dnl [#] by AC_USER@AC_HOST on AC_DATE
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-# Save the original args to write them into config.status later.
-ac_configure_args="[$]*"
-ac_prog=[$]0
-
-# Initialize some variables set by options.
-exec_prefix=
-floating_point=yes
-norecursion=
-prefix=
-program_prefix=
-program_suffix=
-ac_silent=
-srcdir=
-ac_verbose=
 ])dnl
 dnl
 define(AC_PARSEARGS,
-[changequote(,)dnl
+[# Save the original args to write them into config.status later.
+ac_configure_args="[$]*"
+
 # Only options that might do something get documented.
+changequote(,)dnl
 ac_usage="Usage: configure [options] [host]
 Options: [defaults in brackets]
---enable-FEATURE[=VAL] enable FEATURE (optional parameter VAL)
+--enable-FEATURE[=VAL] include FEATURE [VAL=yes]
 --exec-prefix=PREFIX   install host dependent files in PREFIX [/usr/local]
 --help                 print this message
 --prefix=PREFIX                install host independent files in PREFIX [/usr/local]
 --quiet, --silent      do not print \`checking for...' messages
---srcdir=DIR           find the sources in DIR [. or ..]
+--srcdir=DIR           find the sources in DIR [configure dir or ..]
 --verbose              print results of checks
 --version              print the version of autoconf that created configure
---with-PACKAGE[=VAL]   external PACKAGE is available (optional parameter VAL)"
+--with-PACKAGE[=VAL]   external PACKAGE is available [VAL=yes]"
 changequote([,])dnl
 
+# Initialize some variables set by options.
+exec_prefix=
+floating_point=yes
+norecursion=
+prefix=
+program_prefix=
+program_suffix=
+ac_silent=
+srcdir=
+ac_verbose=
+
 # Get the option argument from the current or next ARGV element.
 ac_get_optarg='
 case "$ac_option" in
@@ -299,6 +298,9 @@ define(AC_PREPARE,
 [trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
 trap 'rm -fr confdefs* $ac_clean_files' 0
 
+# Save the original args if we used an alternate arg parser.
+ac_configure_args="${ac_configure_args-[$]*}"
+
 # NLS nuisances.
 # These must not be set unconditionally because not all systems understand
 # e.g. LANG=C (notably SCO).
@@ -318,6 +320,7 @@ ac_unique_file=$1
 if test -z "$srcdir"; then
   ac_srcdir_defaulted=yes
   # Try the directory containing this script, then `..'.
+  ac_prog=[$]0
 changequote(,)dnl
   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 changequote([,])dnl