]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atgeneral.m4 (AT_INIT): More robust computation of
authorAkim Demaille <akim@epita.fr>
Thu, 7 Dec 2000 16:21:58 +0000 (16:21 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 7 Dec 2000 16:21:58 +0000 (16:21 +0000)
ac_tests_pattern.
Reported by  Andrej Borsenkow.

ChangeLog
lib/autotest/general.m4
tests/atgeneral.m4

index 69681faac4a78ce237fecbaad670a6e0013be2b4..0ad9baeb855048bd8cc312d1598247a73e0ef214 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-12-07  Akim Demaille  <akim@epita.fr>
+
+       * tests/atgeneral.m4 (AT_INIT): More robust computation of
+       ac_tests_pattern.
+       Reported by  Andrej Borsenkow.
+
 2000-12-07  Akim Demaille  <akim@epita.fr>
 
        * acspecific.m4 (_AC_EXEEXT): Skip *.pdb.
index 80011704f67975b304ea4510b7aa51c67babc144..3ea8381dcc2d099ea100064b1cc89272d92fb5a6 100644 (file)
@@ -167,9 +167,9 @@ Options:
 
 Tests:
 EOF
-  # "1 42 45 " => " (1|42|45|dummy): "
-  at_tests_pattern=`echo "$at_tests" | tr ' ' '|'`
-  egrep -e " (${at_tests_pattern}dummy): " <<EOF
+  # "  1 42  45 " => " (1|42|45): "
+  at_tests_pattern=`echo "$at_tests" | sed 's/^  *//;s/  *$//;y/  */|/'`
+  egrep -e " (${at_tests_pattern}): " <<EOF
 m4_divert([HELP])dnl Help message inserted here.
 m4_divert([SETUP])dnl
 EOF
index 80011704f67975b304ea4510b7aa51c67babc144..3ea8381dcc2d099ea100064b1cc89272d92fb5a6 100644 (file)
@@ -167,9 +167,9 @@ Options:
 
 Tests:
 EOF
-  # "1 42 45 " => " (1|42|45|dummy): "
-  at_tests_pattern=`echo "$at_tests" | tr ' ' '|'`
-  egrep -e " (${at_tests_pattern}dummy): " <<EOF
+  # "  1 42  45 " => " (1|42|45): "
+  at_tests_pattern=`echo "$at_tests" | sed 's/^  *//;s/  *$//;y/  */|/'`
+  egrep -e " (${at_tests_pattern}): " <<EOF
 m4_divert([HELP])dnl Help message inserted here.
 m4_divert([SETUP])dnl
 EOF