From 9c3af685e534b0e60915a87244c08cf4561204a0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 11 Apr 2001 04:17:21 +0000 Subject: [PATCH] 2001-04-10 Ralf Corsepius * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make. * tests/Makefile.am (TESTS): Added make.test. * tests/make.test: New file. --- ChangeLog | 6 ++++++ m4/make.m4 | 2 +- tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/make.test | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 1 deletion(-) create mode 100755 tests/make.test diff --git a/ChangeLog b/ChangeLog index 12f0c0eef..1be149715 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-04-10 Ralf Corsepius + + * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make. + * tests/Makefile.am (TESTS): Added make.test. + * tests/make.test: New file. + 2001-04-10 Tom Tromey * tests/defs: Changed how ACLOCAL and AUTOMAKE are set. diff --git a/m4/make.m4 b/m4/make.m4 index 38104717d..c5a02dd3a 100644 --- a/m4/make.m4 +++ b/m4/make.m4 @@ -13,7 +13,7 @@ AC_MSG_CHECKING([for style of include used by $am_make]) _am_include='#' for am_inc in include .include; do echo "$am_inc confinc" > confmf - if test "`$am_make -f confmf 2> /dev/null`" = "done"; then + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then _am_include=$am_inc break fi diff --git a/tests/Makefile.am b/tests/Makefile.am index b95e38d14..4fd89fde9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -167,6 +167,7 @@ link_f_cxx.test \ link_f_only.test \ lisp.test \ ltlibobjs.test \ +make.test \ makevars.test \ man.test \ mclean.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index adbe30eb9..20626e8fd 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -240,6 +240,7 @@ link_f_cxx.test \ link_f_only.test \ lisp.test \ ltlibobjs.test \ +make.test \ makevars.test \ man.test \ mclean.test \ diff --git a/tests/make.test b/tests/make.test new file mode 100755 index 000000000..0ad6fe37e --- /dev/null +++ b/tests/make.test @@ -0,0 +1,34 @@ +#! /bin/sh + +# Test to make sure `make' check works. +# From Ralf Corsepius. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(Makefile.am) +AM_INIT_AUTOMAKE(foo,0,no) +AM_MAKE_INCLUDE +AC_OUTPUT(Makefile) +END + +: > Makefile.am + +$needs_autoconf + +set -e + +$ACLOCAL +$AUTOCONF +$AUTOMAKE + +export ACLOCAL +export AUTOCONF +export AUTOMAKE + +./configure +touch configure.in +$MAKE + +fgrep '_am_include = #' Makefile && exit 1 +exit 0 -- 2.47.2