* acgeneral.m4 (AC_DIVERT): Remove ICMDS.
(_AC_OUTPUT_COMMANDS_INIT): New growing string.
(_AC_CONFIG_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS): Adjust.
+2000-03-14 Akim Demaille <akim@epita.fr>
+
+ Get rid of the ICMDS diversion.
+
+ * acgeneral.m4 (AC_DIVERT): Remove ICMDS.
+ (_AC_OUTPUT_COMMANDS_INIT): New growing string.
+ (_AC_CONFIG_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS): Adjust.
+
2000-03-14 Akim Demaille <akim@epita.fr>
* autoheader.sh: Use run_m4f, not run_m4.
# AC_REQUIRE'd code, 1 level deep
# - NORMAL
# the tests and output code
-#
-# Finally, this is just a convenience diversions. Undiverted by hand.
-# - ICMDS
-# extra initialization in config.status
# AC_DIVERT(DIVERSION-NAME)
[NORMAL_1], 23,
[NORMAL], 24,
- [ICMDS], 30,
[$1])])
])
-# _AC_CONFIG_COMMANDS_INIT(INIT-COMMANDS)
-# ---------------------------------------
+# _AC_CONFIG_COMMANDS_INIT([INIT-COMMANDS])
+# -----------------------------------------
#
# Register INIT-COMMANDS as command pasted *unquoted* in
# `config.status'. This is typically used to pass variables from
# was the case in AC_OUTPUT_COMMANDS.
define(_AC_CONFIG_COMMANDS_INIT,
[ifval([$1],
-[AC_DIVERT_PUSH([ICMDS])dnl
-$1
-AC_DIVERT_POP()])])
+[m4_append([_AC_OUTPUT_COMMANDS_INIT], [$1
+])])])
+
+# Initialize.
+define([_AC_OUTPUT_COMMANDS_INIT])
# AC_CONFIG_COMMANDS(NAME...,[COMMANDS], [INIT-CMDS])
])[]dnl ifval
dnl We output the INIT-CMDS first for obvious reasons :)
-
-cat >>$CONFIG_STATUS <<EOF
+ifset([_AC_OUTPUT_COMMANDS_INIT],
+[cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
-undivert(AC_DIVERT([ICMDS]))dnl
-EOF
+_AC_OUTPUT_COMMANDS_INIT()
+EOF])
dnl The following three sections are in charge of their own here
# AC_REQUIRE'd code, 1 level deep
# - NORMAL
# the tests and output code
-#
-# Finally, this is just a convenience diversions. Undiverted by hand.
-# - ICMDS
-# extra initialization in config.status
# AC_DIVERT(DIVERSION-NAME)
[NORMAL_1], 23,
[NORMAL], 24,
- [ICMDS], 30,
[$1])])
])
-# _AC_CONFIG_COMMANDS_INIT(INIT-COMMANDS)
-# ---------------------------------------
+# _AC_CONFIG_COMMANDS_INIT([INIT-COMMANDS])
+# -----------------------------------------
#
# Register INIT-COMMANDS as command pasted *unquoted* in
# `config.status'. This is typically used to pass variables from
# was the case in AC_OUTPUT_COMMANDS.
define(_AC_CONFIG_COMMANDS_INIT,
[ifval([$1],
-[AC_DIVERT_PUSH([ICMDS])dnl
-$1
-AC_DIVERT_POP()])])
+[m4_append([_AC_OUTPUT_COMMANDS_INIT], [$1
+])])])
+
+# Initialize.
+define([_AC_OUTPUT_COMMANDS_INIT])
# AC_CONFIG_COMMANDS(NAME...,[COMMANDS], [INIT-CMDS])
])[]dnl ifval
dnl We output the INIT-CMDS first for obvious reasons :)
-
-cat >>$CONFIG_STATUS <<EOF
+ifset([_AC_OUTPUT_COMMANDS_INIT],
+[cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
-undivert(AC_DIVERT([ICMDS]))dnl
-EOF
+_AC_OUTPUT_COMMANDS_INIT()
+EOF])
dnl The following three sections are in charge of their own here