+2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ Extend test on `nostdinc' automake option.
+ * tests/nostdinc.test: Enable `errexit' shell flag. Related and
+ unrelated minor changes. Make the grepping of the generated
+ Makefile.in slighty stricter. Generate and run configure, so that
+ the generated Makefile can be grepped too.
+
2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Make gnupload portable to EBCDIC hosts.
#! /bin/sh
-# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
+AC_OUTPUT
END
cat > Makefile.am << 'END'
foo_SOURCES = foo.c
END
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
+
+grep '.*-I *\.' Makefile.in && Exit 1
+
+# We'll test the fully-processed Makefile too.
+$AUTOCONF
+
+# Test with $builddir != $srcdir
+mkdir build
+cd build
+../configure
+$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
+
+# Test with $builddir = $srcdir
+cd ..
+./configure
+$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
-$FGREP -e '-I.' Makefile.in && Exit 1
Exit 0