ast_prog_egrep.m4 333 B

123456789101112
  1. # AST_PROG_EGREP
  2. # -------------
  3. m4_ifndef([AST_PROG_EGREP], [AC_DEFUN([AST_PROG_EGREP],
  4. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  5. [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  6. then ac_cv_prog_egrep='grep -E'
  7. else ac_cv_prog_egrep='egrep'
  8. fi])
  9. EGREP=$ac_cv_prog_egrep
  10. AC_SUBST([EGREP])
  11. ])]) # AST_PROG_EGREP