]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Apr 2006 01:13:32 +0000 (01:13 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Apr 2006 01:13:32 +0000 (01:13 +0000)
AS_MESSAGE_LOG_FD before reopening it onto the log file.
This works around a MinGW bug reported by Eric Paire.
Make sure that all writes to the log file append to it,
rather than possibly losing data.
* lib/autotest/general.m4 (AT_INIT): Likewise.

ChangeLog
lib/autoconf/general.m4
lib/autotest/general.m4

index e5f98c0908285b731fb9695872e1e7980d106c09..17087c86b3270a32ae2efb9d5a60c1b2a16c8ebb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
+       AS_MESSAGE_LOG_FD before reopening it onto the log file.
+       This works around a MinGW bug reported by Eric Paire.
+       Make sure that all writes to the log file append to it,
+       rather than possibly losing data.
+       * lib/autotest/general.m4 (AT_INIT): Likewise.
+
 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
 
        * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
index 2429425d21511e2ce730279699a8567ff8a98ad9..265f2c60b1c9e4d29345bffeb3c02e76784644ad 100644 (file)
@@ -1103,8 +1103,8 @@ fi])dnl
 m4_define([_AC_INIT_CONFIG_LOG],
 [m4_divert_text([INIT_PREPARE],
 [m4_define([AS_MESSAGE_LOG_FD], 5)dnl
-exec AS_MESSAGE_LOG_FD>config.log
-cat >&AS_MESSAGE_LOG_FD <<_ACEOF
+exec AS_MESSAGE_LOG_FD>&- # Work around a MinGW bug.
+cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
@@ -1115,6 +1115,7 @@ generated by m4_PACKAGE_STRING.  Invocation command line was
   $ $[0] $[@]
 
 _ACEOF
+exec AS_MESSAGE_LOG_FD>>config.log
 AS_UNAME >&AS_MESSAGE_LOG_FD
 
 cat >&AS_MESSAGE_LOG_FD <<_ACEOF
index 6ba3d005ef994fb6fce3e20e20e23e51c9537425..d5b4b361f171044b50e9f488936f23ad071f2e75 100644 (file)
@@ -598,8 +598,13 @@ export PATH
 # Setting up the FDs.
 # 5 is the log file.  Not to be overwritten if `-d'.
 m4_define([AS_MESSAGE_LOG_FD], [5])
-$at_debug_p && at_suite_log=/dev/null
-exec AS_MESSAGE_LOG_FD>"$at_suite_log"
+if $at_debug_p; then
+  at_suite_log=/dev/null
+else
+  exec AS_MESSAGE_LOG_FD>&- # Work around a MinGW bug.
+  : >"$at_suite_log"
+fi
+exec AS_MESSAGE_LOG_FD>>"$at_suite_log"
 
 # Banners and logs.
 AS_BOX(m4_defn([AT_TESTSUITE_NAME])[.])