* autoconf.sh: Consider undefined macros as errors.

* tests/base.m4 (unexpanded macros): Expect error, not warning
This commit is contained in:
Akim Demaille 2000-09-05 10:19:01 +00:00
parent bddb504cff
commit 82bbd6fe4e
5 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2000-09-05 Pavel Roskin <proski@gnu.org>
* autoconf.sh: Consider undefined macros as errors.
* tests/base.m4 (unexpanded macros): Expect error, not warning
2000-09-05 Dave Love <fx@gnu.org>
* aclang.m4 (_AC_PROG_F77_GNU): Run command from standard input so

View File

@ -313,7 +313,7 @@ case $task in
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
print file ":" line ": warning: undefined macro: " macro | "cat >&2"
print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
@ -374,7 +374,7 @@ case $task in
}
}
EOF
$AWK -f $tmp/finalize.awk <$tmp/configure >&4
$AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.

View File

@ -313,7 +313,7 @@ case $task in
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
print file ":" line ": warning: undefined macro: " macro | "cat >&2"
print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
@ -374,7 +374,7 @@ case $task in
}
}
EOF
$AWK -f $tmp/finalize.awk <$tmp/configure >&4
$AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.

View File

@ -313,7 +313,7 @@ case $task in
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
print file ":" line ": warning: undefined macro: " macro | "cat >&2"
print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
@ -374,7 +374,7 @@ case $task in
}
}
EOF
$AWK -f $tmp/finalize.awk <$tmp/configure >&4
$AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.

View File

@ -256,9 +256,9 @@ AC_THIS_IS_PROBABLY_NOT_DEFINED
It would be very bad if Autoconf forgot to expand [AC_]OUTPUT!
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [],
[[configure.in:2: warning: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED
configure:3: warning: undefined macro: AC_OUTPUT
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 1, [],
[[configure.in:2: error: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED
configure:3: error: undefined macro: AC_OUTPUT
]])
AT_CLEANUP(configure)