# generated for the tests do not use the installed tools.
export AUTOMAKE ACLOCAL
+# POSIX no longer requires 'egrep' and 'fgrep',
+# but some hosts lack 'grep -E' and 'grep -F'.
+if test -z "$EGREP"; then
+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1; then
+ EGREP='grep -E'
+ else
+ EGREP='egrep'
+ fi
+fi
+if test -z "$FGREP"; then
+ if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1; then
+ FGREP='grep -F'
+ else
+ FGREP='fgrep'
+ fi
+fi
+
# The tests call `make -e' but we do not want $srcdir from the evironment
# to override the definition from the Makefile.
testsrcdir=$srcdir