]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/tools.at (AWK portability): Use AT_CHECK to check for GNU
authorAkim Demaille <akim@epita.fr>
Tue, 13 Mar 2001 12:21:40 +0000 (12:21 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 13 Mar 2001 12:21:40 +0000 (12:21 +0000)
AWK so that there is always a AT_CHECK between
AT_SETUP/AT_CLEANUP.
Reported by Nicolas Joly.

ChangeLog
tests/tools.at

index bb6e09e93b442cf58a63e65a5e6130c7296b47f0..ad14aaf62b876814f6c02fc13d6e0b1affbc0dc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-03-13  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>
 
        * tests/tools.at: Be sure to remove configure.ac~.
index 80fe21bb5ae33d6414dc9378c4c454b7e6c17c8d..23fab97a56176deff968c08432c98afc7940e226 100644 (file)
@@ -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)