* tests/configure.test: Use a configure.in file that provokes
an automake error, to ensure configure.ac is preferred.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Make test for configure.in vs. configure.ac stricter.
+ * tests/configure.test: Use a configure.in file that provokes
+ an automake error, to ensure configure.ac is preferred.
+
Use `set -e' in confsub.test (avoids possible false negatives).
* tests/confsub.test: Enable shell `errexit' flag, and related
changes (this helps avoiding some possible minor false negatives).
AC_OUTPUT
EOF
+cat >configure.in <<EOF
+AC_INIT([configure], [1.0])
+AM_INIT_AUTOMAKE([an-invalid-automake-option])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+EOF
+
: >Makefile.am
$ACLOCAL 2>stderr && { cat stderr >&2; Exit 1; }