GNUmake.
* Makefile.am (maintainer-check): Make sure `required=' does not
follow `. ./defs' in the tests.
2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * tests/missing.test, tests/missing2.test: Do not require
+ GNUmake.
+ * Makefile.am (maintainer-check): Make sure `required=' does not
+ follow `. ./defs' in the tests.
+
* tests/ansi10.test: Use AC_PROG_CC_STDC. Fix test that
ac_cv_prog_cc_stdc isn't just used by Automake code in
`configure'.
echo 'Do not run "perl" in the above tests. Use "$$PERL" instead.' 1>&2; \
exit 1; \
fi
+## Setting `required' after sourcing `./defs' is a bug.
+ @for file in $(srcdir)/tests/*.test; do \
+ if out=`sed -n '/defs/,$${/required=/p;}' $$file`; test -n "$$out"; then \
+ echo 'Do not set "required" after sourcing "defs" in '"$$file: $$out" 1>&2; \
+ exit 1; \
+ fi; \
+ done
## Overriding a Makefile macro on the command line is not portable when
## recursive targets are used. Better use an envvar. SHELL is an exception,
## POSIX says it can't come from the environment.
echo 'Do not run "perl" in the above tests. Use "$$PERL" instead.' 1>&2; \
exit 1; \
fi
+ @for file in $(srcdir)/tests/*.test; do \
+ if out=`sed -n '/defs/,$${/required=/p;}' $$file`; test -n "$$out"; then \
+ echo 'Do not set "required" after sourcing "defs" in '"$$file: $$out" 1>&2; \
+ exit 1; \
+ fi; \
+ done
@if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
echo ' in the above lines, it is more portable.' 1>&2; \
#! /bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
. ./defs || exit 1
-required=GNUmake
set -e
cat >>configure.in <<'EOF'
#! /bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
. ./defs || exit 1
-required=GNUmake
set -e
cat >>configure.in <<'EOF'