3
# This is predefined starting with Autoconf 2.54, so this conditional
4
# definition can be removed once we require Autoconf 2.54 or later.
5
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
6
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
7
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8
then ac_cv_prog_egrep='grep -E'
9
else ac_cv_prog_egrep='egrep'
11
EGREP=$ac_cv_prog_egrep