]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid spurious failures due to lack of EGREP definition
authorJim Meyering <meyering@fb.com>
Sat, 21 Jan 2023 01:54:28 +0000 (17:54 -0800)
committerJim Meyering <meyering@meta.com>
Mon, 30 Jan 2023 17:18:13 +0000 (09:18 -0800)
* configure.ac: Use AC_PROG_EGREP, since many doc and test rules
use $EGREP.
* cfg.mk (sc_tests_list_consistency): Use grep -E, not $(EGREP) here.

cfg.mk
configure.ac

diff --git a/cfg.mk b/cfg.mk
index 93bdddb16c8512825b1c684d705a55e2d35907ae..76fda9ab90813d01c7442fe21bcdb17ac86e4d94 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -116,7 +116,7 @@ sc_tests_list_consistency:
          cd $(top_srcdir);                                             \
          $(SHELL) build-aux/vc-list-files tests                        \
            | grep -Ev '^tests/(factor/(run|create-test)|init)\.sh$$'   \
-           | $(EGREP) "$$test_extensions_rx\$$";                       \
+           | grep -E "$$test_extensions_rx\$$";                        \
        } | sort | uniq -u | grep . && exit 1; :
 
 # Ensure that all version-controlled test scripts are executable.
index fc0d756dc83d923e9645a17b539ae82e385b9f25..2b2f9468d5d8a777ac338729886523249ae1c738 100644 (file)
@@ -57,6 +57,7 @@ AM_PROG_CC_C_O
 AC_PROG_CPP
 AC_PROG_GCC_TRADITIONAL
 AC_PROG_RANLIB
+AC_PROG_EGREP
 AC_PROG_LN_S
 gl_EARLY
 gl_SET_CRYPTO_CHECK_DEFAULT([auto-gpl-compat])