[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Last configure args
From: |
Ralf Wildenhues |
Subject: |
Re: Last configure args |
Date: |
Mon, 3 Jan 2005 14:56:24 +0100 |
User-agent: |
Mutt/1.4.1i |
* Bob Friesenhahn wrote on Sun, Jan 02, 2005 at 11:17:37PM CET:
>
> Use
>
> ./config.status --version
>
> to see the options used. At one time in the life of config.status it
> was possible to simply paste the complete line output by config.status
> --version but then someone decided to make the output fancy and it is
> no longer usable as one line anymore. Now it is necessary to
> cut-and-paste two parts.
I did not know about --version, thanks!
Might be nice to have the information reusable as well
(--config comes to mind). See below.
> Unfortunately, using
>
> ./config.status --recheck
>
> to reconfigure is not the complete solution to re-configuring since
> there are files it will not update (e.g. config.status).
./config.status --recheck && ./config.status
should do what you intend.
Below is a patch which implements reusable configure information with
./config.status --config
I'm not sure whether I want $ac_cs_configure there as well -- is it
possible for it to contain more than one word?
Regards,
Ralf
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): New option
`--config' for config.status, to output parseable configuration
command.
* doc/autoconf.texi (config.status Invocation): Document it.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.860
diff -u -r1.860 autoconf.texi
--- doc/autoconf.texi 3 Jan 2005 08:31:44 -0000 1.860
+++ doc/autoconf.texi 3 Jan 2005 10:19:01 -0000
@@ -13505,6 +13505,9 @@
@itemx -V
Print the version number of Autoconf and exit.
address@hidden --config
+Print the command to recreate the current configuration.
+
@item --silent
@itemx --quiet
@itemx -q
Index: lib/autoconf/status.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v
retrieving revision 1.48
diff -u -r1.48 status.m4
--- lib/autoconf/status.m4 21 Dec 2004 14:24:01 -0000 1.48
+++ lib/autoconf/status.m4 3 Jan 2005 13:37:07 -0000
@@ -1348,6 +1348,7 @@
-h, --help print this help, then exit
-V, --version print version number, then exit
+ --config print configuration
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
@@ -1384,11 +1385,13 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_configure="$[0]"
+ac_cs_config="`echo "$ac_configure_args" | sed 's/[[\\""\`\$]]/\\\\&/g'`"
ac_cs_version="\\
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.status[]dnl
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
-configured by $[0], generated by m4_PACKAGE_STRING,
- with options \\"`echo "$ac_configure_args" | sed 's/[[\\""\`\$]]/\\\\&/g'`\\"
+configured by \$ac_cs_configure, generated by m4_PACKAGE_STRING,
+ with options \\"\$ac_cs_config\\"
Copyright (C) 2004 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
@@ -1432,6 +1435,8 @@
ac_cs_recheck=: ;;
--version | --vers* | -V )
echo "$ac_cs_version"; exit 0 ;;
+ --config | --conf* )
+ echo "$ac_cs_configure $ac_cs_config"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
AC_MSG_ERROR([ambiguous option: $[1]
- Re: Last configure args,
Ralf Wildenhues <=