* tests/Makefile.am (XFAIL_TESTS): Added make.test.
* tests/make.test: Run test with `make -w'.
2001-05-16 Tom Tromey <tromey@redhat.com>
+ For PR automake/175:
+ * tests/Makefile.am (XFAIL_TESTS): Added make.test.
+ * tests/make.test: Run test with `make -w'.
+
* tests/Makefile.am (TESTS): Removed maintclean.test.
* lib/am/clean.am (maintainer-clean-generic): Don't remove
Makefile.in.
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test make.test
TESTS = \
acinclude.test \
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test make.test
TESTS = \
acinclude.test \
export AUTOCONF
export AUTOMAKE
-./configure
-touch configure.in
-$MAKE
+# Do the test twice -- once with make and once with make -w.
+# This tests for a bug reported by Rainer Orth.
+
+save="$MAKE"
+for flag in '' -w; do
+ MAKE="$save $flag" ./configure
+
+ fgrep '_am_include = #' Makefile && exit 1
+
+ touch configure.in
+ $MAKE $flag
+
+ fgrep '_am_include = #' Makefile && exit 1
+
+ rm -f config.cache
+done
-fgrep '_am_include = #' Makefile && exit 1
exit 0