autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

config.status logging to config.log


From: Lars J. Aas
Subject: config.status logging to config.log
Date: Mon, 9 Apr 2001 18:36:20 +0200
User-agent: Mutt/1.2.5i

A side-effect of the recent config.log-related changes in configure
caused config.status to stop logging to config.log (fd 5 is directed
to /dev/null in the beginning).

This patch re-initializes fd 5, but I've moved the config.log logging
parts till after having processed the command line options (to avoid
logging --version and --help invocations to config.log).

  Lars J

2001-04-09  Lars J. Aas  <address@hidden>

        * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS):  Re-enable logging to
        `config.log' from `config.status', but delay logging till after
        command line option processing.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.708
diff -u -r1.708 acgeneral.m4
--- acgeneral.m4        2001/04/04 15:50:39     1.708
+++ acgeneral.m4        2001/04/09 16:26:48
@@ -3608,25 +3608,14 @@
 
 debug=false
 SHELL=\${CONFIG_SHELL-$SHELL}
+ac_cs_invocation="\$[0] address@hidden"
 
 _ACEOF
 
 cat >>$CONFIG_STATUS <<\_ACEOF
 AS_SHELL_SANITIZE
 _AC_INIT_DEFAULTS_FDS
-cat >&AS_MESSAGE_LOG_FD << EOF
 
-## ----------------------- ##
-## Running config.status.  ##
-## ----------------------- ##
-
-This file was extended by $as_me m4_ifset([AC_PACKAGE_STRING],
-                            [(AC_PACKAGE_STRING) ])AC_ACVERSION, executed with
- > $[0] address@hidden
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-
-EOF
-
 _ACEOF
 
 # Files that config.status was made for.
@@ -3777,6 +3774,19 @@
   shift
 done
 
+exec AS_MESSAGE_LOG_FD>>config.log
+cat >&AS_MESSAGE_LOG_FD << _ACEOF
+
+## ----------------------- ##
+## Running config.status.  ##
+## ----------------------- ##
+
+This file was extended by $as_me m4_ifset([AC_PACKAGE_STRING],
+                            [(AC_PACKAGE_STRING) ])AC_ACVERSION, executed with
+  > $ac_cs_invocation
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+
+_ACEOF
 EOF
 
 dnl Issue this section only if there were actually config files.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]