[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: 04-ac-init-log-complete.patch
From: |
Akim Demaille |
Subject: |
FYI: 04-ac-init-log-complete.patch |
Date: |
16 Jan 2001 11:45:10 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
(_AC_INIT_DEFAULTS, AC_OUTPUT): Use it.
Index: acgeneral.m4
--- acgeneral.m4 Mon, 15 Jan 2001 23:59:49 +0100 akim (ace/27_acgeneral.
1.169.8.112 666)
+++ acgeneral.m4 Tue, 16 Jan 2001 00:16:25 +0100 akim (ace/27_acgeneral.
1.169.8.112 666)
@@ -724,6 +724,36 @@ m4_define([_AC_INIT_DEFAULTS_FDS],
])# _AC_INIT_DEFAULTS_FDS
+# _AC_INIT_LOG_COMPLETE
+# ---------------------
+# At the end of configure, dump some useful information in the
+# log, even if AC_OUTPUT was not called.
+AC_DEFUN([_AC_INIT_LOG_COMPLETE],
+[# Save into config.log some information that might help in debugging.
+cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ----------------- ##
+## Cache variables. ##
+## ----------------- ##
+
+_ACEOF
+_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
+
+sed '/^$/d' confdefs.h >conftest.log
+if test -s conftest.log; then
+ cat <<_ACEOF >&AS_MESSAGE_LOG_FD
+
+## ------------ ##
+## confdefs.h. ##
+## ------------ ##
+
+_ACEOF
+ cat conftest.log >&AS_MESSAGE_LOG_FD
+fi
+(echo; echo) >&AS_MESSAGE_LOG_FD
+])# _AC_INIT_LOG_COMPLETE
+
+
# _AC_INIT_DEFAULTS
# -----------------
# Values which defaults can be set from `configure.ac'.
@@ -758,6 +788,7 @@ m4_define([_AC_INIT_DEFAULTS],
## ------------ ##
EOF
+m4_wrap([AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])])dnl
_AC_INIT_DEFAULTS_FDS
#
@@ -1527,6 +1558,7 @@ m4_define([AC_PLAIN_SCRIPT],
m4_divert_push([BODY])])
+
# AC_INIT([PACKAGE, VERSION, [BUG-REPORT])
# ----------------------------------------
# Include the user macro files, prepare the diversions, and output the
@@ -3780,23 +3812,7 @@ m4_define([AC_OUTPUT],
dnl Commands to run before creating config.status.
AC_OUTPUT_COMMANDS_PRE()dnl
-# Save into config.log some information that might help in debugging.
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ----------------- ##
-## Cache variables. ##
-## ----------------- ##
-
-_ACEOF
-_AC_CACHE_DUMP >&AS_MESSAGE_LOG_FD
-cat <<_ACEOF >&AS_MESSAGE_LOG_FD
-
-## ------------ ##
-## confdefs.h. ##
-## ------------ ##
-
-_ACEOF
-sed '/^$/d' confdefs.h >&AS_MESSAGE_LOG_FD
+AC_EXPAND_ONCE([_AC_INIT_LOG_COMPLETE])
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: 04-ac-init-log-complete.patch,
Akim Demaille <=