summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2023-01-20 17:54:28 -0800
committerJim Meyering <meyering@meta.com>2023-01-30 09:18:13 -0800
commitd73ca62c4fa3f89833c4ea14ebbcaaab3e99c6e6 (patch)
tree9596fb576be9c598a3a27f42886c3f402f6950ad
parent95bc69a7e71dd2a9b2ca11452be19fa856eb2bbf (diff)
downloadcoreutils-d73ca62c4fa3f89833c4ea14ebbcaaab3e99c6e6.tar.gz
build: avoid spurious failures due to lack of EGREP definition
* 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.
-rw-r--r--cfg.mk2
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 93bdddb16..76fda9ab9 100644
--- 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.
diff --git a/configure.ac b/configure.ac
index fc0d756dc..2b2f9468d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])