From: Akim Demaille Date: Tue, 13 Mar 2001 12:21:40 +0000 (+0000) Subject: * tests/tools.at (AWK portability): Use AT_CHECK to check for GNU X-Git-Tag: autoconf-2.50~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=687fa3b7653f58a7fff2c984eef48f51d6c83002;p=thirdparty%2Fautoconf.git * tests/tools.at (AWK portability): Use AT_CHECK to check for GNU AWK so that there is always a AT_CHECK between AT_SETUP/AT_CLEANUP. Reported by Nicolas Joly. --- diff --git a/ChangeLog b/ChangeLog index bb6e09e93..ad14aaf62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-03-13 Akim Demaille + + * tests/tools.at (AWK portability): Use AT_CHECK to check for GNU + AWK so that there is always a AT_CHECK between + AT_SETUP/AT_CLEANUP. + Reported by Nicolas Joly. + 2001-03-13 Akim Demaille * tests/tools.at: Be sure to remove configure.ac~. diff --git a/tests/tools.at b/tests/tools.at index 80fe21bb5..23fab97a5 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -78,17 +78,18 @@ AT_SETUP([AWK portability]) AT_DATA([configure.ac], []) -if (gawk --version) >/dev/null 2>&1; then - # Generation of the script. - AT_CHECK([AWK='gawk --posix' autoconf --autoconf-dir .. -l $at_srcdir], 0, - [], []) - # Tracing. - AT_CHECK([AWK='gawk --posix' autoconf --autoconf-dir .. -l $at_srcdir -t AC_INIT], 0, - ignore, []) - # Syntax correctness of ifnames. - AT_CHECK([AWK='gawk --posix' ifnames empty], 0, - [], []) -fi +# Skip if we don't have GNU Awk. +AT_CHECK([gawk --version || exit 77], 0, ignore, ignore) + +# Generation of the script. +AT_CHECK([AWK='gawk --posix' autoconf --autoconf-dir .. -l $at_srcdir], 0, + [], []) +# Tracing. +AT_CHECK([AWK='gawk --posix' autoconf --autoconf-dir .. -l $at_srcdir -t AC_INIT], 0, + ignore, []) +# Syntax correctness of ifnames. +AT_CHECK([AWK='gawk --posix' ifnames empty], 0, + [], []) AT_CLEANUP(configure)