* Makefile.am (TESTS): Added nostdinc.test.
* condincl2.test: New file.
* condincl.test: New file.
* Makefile.am (TESTS): Added condincl.test, condincl2.test.
* suffix2.test: New file.
* Makefile.am (TESTS): Added suffix2.test.
1999-12-13 Tom Tromey <tromey@cygnus.com>
+ * nostdinc.test: New file.
+ * Makefile.am (TESTS): Added nostdinc.test.
+
+ * condincl2.test: New file.
+ * condincl.test: New file.
+ * Makefile.am (TESTS): Added condincl.test, condincl2.test.
+
+ * suffix2.test: New file.
+ * Makefile.am (TESTS): Added suffix2.test.
+
* subobj.test: Remove final test.
1999-12-12 Tom Tromey <tromey@cygnus.com>
cond7.test \
cond8.test \
cond9.test \
+condincl.test \
+condincl2.test \
condman.test \
condman2.test \
conf2.test \
nodep.test \
nodist.test \
noinst.test \
+nostdinc.test \
number.test \
objc.test \
obsolete.test \
subobj3.test \
subst.test \
suffix.test \
+suffix2.test \
symlink.test \
syntax.test \
tags.test \
cond7.test \
cond8.test \
cond9.test \
+condincl.test \
+condincl2.test \
condman.test \
condman2.test \
conf2.test \
nodep.test \
nodist.test \
noinst.test \
+nostdinc.test \
number.test \
objc.test \
obsolete.test \
subobj3.test \
subst.test \
suffix.test \
+suffix2.test \
symlink.test \
syntax.test \
tags.test \
--- /dev/null
+#! /bin/sh
+
+# Make sure a conditional include statement is handled properly.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AM_CONDITIONAL(TOBE, false)
+END
+
+cat > Makefile.am << 'END'
+if TOBE
+include adjunct
+endif
+END
+
+cat > adjunct << 'END'
+target: dependency
+ rule
+END
+
+$AUTOMAKE || exit 1
+
+grep '^target' Makefile.in && exit 1
+exit 0
--- /dev/null
+#! /bin/sh
+
+# Another test of conditional include statements.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AM_CONDITIONAL(TOBE, false)
+END
+
+cat > Makefile.am << 'END'
+if TOBE
+include adjunct
+endif
+END
+
+cat > adjunct << 'END'
+target: dependency
+ rule
+endif
+END
+
+$AUTOMAKE && exit 1
+exit 0
--- /dev/null
+#! /bin/sh
+
+# Test to make sure nostdinc option works correctly.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = nostdinc
+bin_PROGRAMS = foo
+foo_SOURCES = foo.c
+END
+
+$AUTOMAKE || exit 1
+
+fgrep -e '-I.' Makefile.in && exit 1
+exit 0
--- /dev/null
+#! /bin/sh
+
+# Test to make sure .c.o rule is only included once.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_PROG_LIBTOOL
+END
+
+cat > Makefile.am << 'END'
+lib_LTLIBRARIES = libltdl.la
+libltdl_la_SOURCES = ltdl.c ltdl.h
+END
+
+: > ltdl.c
+: > ltdl.h
+
+: > ltconfig
+: > ltmain.sh
+
+$AUTOMAKE -a || exit 1
+
+test "`fgrep '.c.o' Makefile.in | wc -l`" -eq 1
+
+# FIXME: make this fail just like the real ltdl
+exit 1