]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Port tests to POSIX.1-2001 grep and later
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 May 2026 15:49:26 +0000 (08:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 May 2026 20:23:08 +0000 (13:23 -0700)
Stop assuming egrep and fgrep in tests.  POSIX.1-2001 removed the
requirement to support egrep and fgrep, and in GNU grep 3.8 and
later, ‘egrep’ warns that is is obsolete, messing up the output of
a test script.
* tests/torture.at:
(Package requiring autopoint (AM_GNU_GETTEXT + _VERSION))
(autoreconf --exclude (autopoint)):
Increase gettext version from 0.11.4 (2002) to 0.13 (2003);
this is the first gettext version that did not require the
existence of egrep.

README-hacking
tests/torture.at

index 3e05a963a1cf7049abe93daf5328b26130a37d96..db88c9a684796f99fb1ca94a627109bb650af84b 100644 (file)
@@ -16,6 +16,7 @@ tools we depend upon, including:
 
 - Git 1.4.4+ <https://git-scm.com/>
 - Automake 1.11+ <https://www.gnu.org/software/automake/>
+- Gettext 0.13+ <https://www.gnu.org/software/gettext/>
 - Help2man 1.29+ <https://www.gnu.org/software/help2man/>
 - M4 1.4.16+ <https://www.gnu.org/software/m4/>
 - Perl 5.010+ <https://www.cpan.org/>
index 6d1b06a094dc88facf12845616cb9e917d03c4a4..03dbfb7cd6b84bc68225fad02c32ea86db5f2c3a 100644 (file)
@@ -2095,9 +2095,8 @@ AT_DATA([configure.ac],
 AC_CONFIG_MACRO_DIRS([m4])
 AM_INIT_AUTOMAKE
 AM_GNU_GETTEXT([external])
-# This is the oldest version of gettext.m4 that defines the
-# AM_GNU_GETTEXT_VERSION macro.
-AM_GNU_GETTEXT_VERSION([0.11.4])
+# This is the oldest version of gettext that does not assume egrep.
+AM_GNU_GETTEXT_VERSION([0.13])
 
 AC_CONFIG_FILES([Makefile po/Makefile.in])
 AC_OUTPUT
@@ -2443,9 +2442,8 @@ AT_DATA([configure.ac],
 AC_CONFIG_MACRO_DIRS([m4])
 AM_INIT_AUTOMAKE
 AM_GNU_GETTEXT([external])
-# This is the oldest version of gettext.m4 that defines the
-# AM_GNU_GETTEXT_VERSION macro.
-AM_GNU_GETTEXT_VERSION([0.11.4])
+# This is the oldest version of gettext that does not assume egrep.
+AM_GNU_GETTEXT_VERSION([0.13])
 
 AC_CONFIG_FILES([Makefile po/Makefile.in])
 AC_OUTPUT