autoconf/tests
Eric Blake 9f4363abb6 Simplify diversion stack handling.
* lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
avoid extra newlines.
(m4_divert_stack_push): Compute location here, rather than caller.
(m4_divert_push): Update caller.
(m4_divert): Likewise, and also adjust current diversion name.
(m4_divert_pop): Simplify rule that diversion stack must never go
empty.
(_m4_require_call): Bypass diversion stack when collecting
required macro text.
(m4_init): Set current diversion without requiring m4_init.
* lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
text to run prior to m4sugar cleanup.
* doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
optional argument.
(Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
* NEWS: Undo blurb about m4_divert.
* tests/m4sugar.at (m4@&t@_divert_stack): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-31 10:25:24 -06:00
..
.cvsignore Avoid parallel 'make check' issue. 2007-09-14 17:50:37 +00:00
.gitignore Prepare for conversion to git. 2007-09-14 22:25:56 +00:00
atlocal.in Work around MSYS and Cygwin bugs when dealing with trailing space. 2008-05-13 13:40:55 -06:00
autoscan.at Use GPLv2+ plus exception as license for release. 2008-04-05 17:04:48 -06:00
autotest.at Do not write to testsuite log fd before initialization. 2008-10-08 07:24:06 +02:00
base.at Avoid testsuite bug in presence of verbose config.site. 2008-09-10 14:06:33 -06:00
c.at Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]). 2008-08-06 18:39:29 -06:00
compile.at Ensure actions can look at conftest* files. 2008-10-23 18:02:14 +02:00
foreign.at Avoid shell parse errors after interrupt due to empty ``. 2008-08-19 23:00:51 +02:00
fortran.at Format warning and error messages to match GCS. 2008-08-22 08:51:53 +02:00
local.at Use GPLv2+ plus exception as license for release. 2008-04-05 17:04:48 -06:00
m4sh.at Fix LINENO testsuite failure. 2008-10-30 18:50:39 -06:00
m4sugar.at Simplify diversion stack handling. 2008-10-31 10:25:24 -06:00
Makefile.am Avoid some autoreconf -Wall warnings. 2008-04-05 09:24:18 -06:00
mktests.sh Fix testsuite failure. 2008-10-22 05:16:58 -06:00
semantics.at Use GPLv2+ plus exception as license for release. 2008-04-05 17:04:48 -06:00
suite.at Use GPLv2+ plus exception as license for release. 2008-04-05 17:04:48 -06:00
tools.at Rewrite handling of diversion and expansion stack. 2008-10-29 08:00:08 +01:00
torture.at Use AS_VAR_ARITH. 2008-10-27 16:11:59 -06:00
wrapper.as Use GPLv2+ plus exception as license for release. 2008-04-05 17:04:48 -06:00