+2001-08-08 Raja R Harinath <harinath@cs.umn.edu>
+
+ Dissociate testsuite 'make' invocations from outer 'make'.
+ * tests/defs: Unset the MFLAGS, MAKEFLAGS and MAKELEVEL
+ environment variables.
+ * tests/cond16.test: Use '$MAKE -s', and avoid GNU make
+ dependency.
+ * tests/substref.test: Likewise.
+
2001-08-08 Richard Boulton <richard@tartarus.org>
* tests/cond18.test: New file.
$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
-$needs_gnu_make
set -e
CC='gcc' ./configure
-val=`$MAKE --no-print-directory echorule`;
+val=`$MAKE -s echorule`;
echo $val
test "x$val" = "xfoo.c foo.o"
# User can set MAKE to choose which make to use. Must use GNU make.
test -z "$MAKE" && MAKE=make
+# Unset some MAKE... variables that may cause $MAKE to act like a
+# recursively invoked sub-make. Any $MAKE invocation in a test is
+# conceptually an independent invocation, not part of the main
+# 'automake' build.
+unset MFLAGS
+unset MAKEFLAGS
+unset MAKELEVEL
+
if ($MAKE --version) > /dev/null 2>&1; then
needs_gnu_make=:
else
$needs_autoconf
(gcc -v) > /dev/null 2>&1 || exit 77
-$needs_gnu_make
set -e
CC='gcc' ./configure
-# Grep away the entering/leaving directory messages.
-val=`$MAKE --no-print-directory echorule`;
+val=`$MAKE -s echorule`;
echo $val
test "x$val" = "xdlmain.c dlmain.o"