* tests/Makefile.am (XFAIL_TESTS): Removed make.test.
* m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
`Leaving directory' messages.
2001-05-16 Tom Tromey <tromey@redhat.com>
+ Fix for PR automake/175:
+ * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
+ * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
+ `Leaving directory' messages.
+
For PR automake/175:
* tests/Makefile.am (XFAIL_TESTS): Added make.test.
* tests/make.test: Run test with `make -w'.
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
-if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
_am_include=include
_am_quote=
_am_result=GNU
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = subdir5.test make.test
+XFAIL_TESTS = subdir5.test
TESTS = \
acinclude.test \
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = subdir5.test make.test
+XFAIL_TESTS = subdir5.test
TESTS = \
acinclude.test \