* lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
* tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-07 Eric Blake <ebb9@byu.net>
+ Ensure _AS_CLEANUP is defined.
+ * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
+ * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
+
Improve m4sh maintainability.
* lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
code change.
])
+# _AS_CLEANUP
+# -----------
+# Expanded as the last thing before m4sugar cleanup begins. Macros
+# may append m4sh cleanup hooks to this as appropriate.
+m4_define([_AS_CLEANUP])
+
+
# AS_COPYRIGHT(TEXT)
# ------------------
# Emit TEXT, a copyright notice, as a shell comment near the top of the
dnl Registered before AS_INIT's cleanups
m4_wrap([echo cleanup 1
])
+m4_pushdef([_AS_SHELL_FN_SPY])dnl neutralize the spy, we don't care about it
AS_INIT
dnl Registered after AS_INIT's cleanups, thus goes to KILL diversion
m4_wrap([echo cleanup 2