]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/local.at: Don't attempt to check for negated character
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 May 2005 18:35:05 +0000 (18:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 May 2005 18:35:05 +0000 (18:35 +0000)
classes in shell scripts.  The test was too brittle.

ChangeLog
tests/local.at

index 4143a35f6ca705e5f7d8a9e1e4b6277ace548bf1..aa3f71e77edbf76aa6150756d5bf291d59d1d0d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * tests/local.at: Don't attempt to check for negated character
+       classes in shell scripts.  The test was too brittle.
+
 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
 
        * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
index 64de38992a6be5f6fa263f33e812e9464ae03ce5..5a033230e634efbcfb0b3aa2f6ed2b812bb9f2bd 100644 (file)
@@ -48,12 +48,10 @@ AT_CHECK([$at_diff "$1" "$2"])
 # AT_CHECK_SHELL_SYNTAX(PROGRAM, ALT-COMMAND)
 # -------------------------------------------
 # If the shell handles `-n' well, use it to check the syntax of PROGRAM;
-# otherwise, run ALT-COMMAND.  Grep for [^...] negated character classes in
-# shell patterns, an extension to POSIX that many shells do not support.
+# otherwise, run ALT-COMMAND.
 m4_define([AT_CHECK_SHELL_SYNTAX],
 [AS_IF([test x"$ac_cv_sh_n_works" != xno],
-  [AT_CHECK([/bin/sh -n $1], 0)], [$2])
-AT_CHECK([awk '/^[ \t]*case/,/^[ \t]*esac/{if(/\@<:@\^.*\)/) exit(1)}' $1])])
+  [AT_CHECK([/bin/sh -n $1], 0)], [$2])])
 
 m4_define([AT_CHECK_PERL_SYNTAX],
 [AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c $abs_top_builddir/bin/$1],