2
0
mirror of git://git.sv.gnu.org/autoconf synced 2025-03-25 14:50:24 +08:00

* autoconf.sh: If the "allowed" pattern is not defined set it

to "^$".
* tests/tools.at (autoconf: forbidden tokens, basic): New test.
(autoconf: forbidden tokens): Renamed to ...
(autoconf: forbidden tokens, exceptions): ... this.
This commit is contained in:
Pavel Roskin 2000-12-15 19:23:16 +00:00
parent d7e11d6a4a
commit 21ca8441bc
5 changed files with 47 additions and 1 deletions

@ -1,3 +1,11 @@
2000-12-15 Pavel Roskin <proski@gnu.org>
* autoconf.sh: If the "allowed" pattern is not defined set it
to "^$".
* tests/tools.at (autoconf: forbidden tokens, basic): New test.
(autoconf: forbidden tokens): Renamed to ...
(autoconf: forbidden tokens, exceptions): ... this.
2000-12-15 Akim Demaille <akim@epita.fr>
* aclang.m4 (AC_PROG_CXXCPP, AC_PROG_CPP): Require AC_PROG_CXX/CC.

@ -327,6 +327,8 @@ case $task in
while ((getline pattern < (tmp "/allowed.rx")) > 0)
allowed = (allowed ? allowed "|" : "") pattern
if (!allowed)
allowed = "^$"
close (tmp "/allowed.rx")
if (verbose)
errprint("$me: allowed: " allowed)

@ -327,6 +327,8 @@ case $task in
while ((getline pattern < (tmp "/allowed.rx")) > 0)
allowed = (allowed ? allowed "|" : "") pattern
if (!allowed)
allowed = "^$"
close (tmp "/allowed.rx")
if (verbose)
errprint("$me: allowed: " allowed)

@ -327,6 +327,8 @@ case $task in
while ((getline pattern < (tmp "/allowed.rx")) > 0)
allowed = (allowed ? allowed "|" : "") pattern
if (!allowed)
allowed = "^$"
close (tmp "/allowed.rx")
if (verbose)
errprint("$me: allowed: " allowed)

@ -190,7 +190,39 @@ AT_CLEANUP
## autoconf: forbidden tokens. ##
## ---------------------------- ##
AT_SETUP([autoconf: forbidden tokens])
# autoconf: forbidden tokens, basic
# ---------------------------------
AT_SETUP([autoconf: forbidden tokens, basic])
AT_DATA([configure.in],
[[AC_PLAIN_SCRIPT()dnl
AC_FOO
_AC_BAR
m4_foo
_m4_bar
BAC_FOO
B_AC_FOO
AS_FOO
_AS_BAR
]])
AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir 2>err], 1)
# The output of autoconf is not deterministic here because it
# uses `for (ind in array)'. So be sure to have a unique representation.
AT_CHECK([sort <err], 0,
[[configure.in:2: error: undefined macro: AC_FOO
configure.in:3: error: undefined macro: _AC_BAR
configure.in:4: error: undefined macro: m4_foo
configure.in:7: error: undefined macro: B_AC_FOO
configure.in:8: error: undefined macro: AS_FOO
]])
AT_CLEANUP(configure err)
# autoconf: forbidden tokens, exceptions
# --------------------------------------
AT_SETUP([autoconf: forbidden tokens, exceptions])
AT_DATA([configure.in],
[[AC_PLAIN_SCRIPT()dnl