diff options
Diffstat (limited to '1.4.23-rc4/autoconf/ast_prog_egrep.m4')
-rw-r--r-- | 1.4.23-rc4/autoconf/ast_prog_egrep.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1.4.23-rc4/autoconf/ast_prog_egrep.m4 b/1.4.23-rc4/autoconf/ast_prog_egrep.m4 new file mode 100644 index 000000000..7988f8fb3 --- /dev/null +++ b/1.4.23-rc4/autoconf/ast_prog_egrep.m4 @@ -0,0 +1,11 @@ +# AST_PROG_EGREP +# ------------- +m4_ifndef([AST_PROG_EGREP], [AC_DEFUN([AST_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) # AST_PROG_EGREP |