* Makefile.am (TESTS): Added config.test.
Tue Sep 29 02:09:11 1998 Tom Tromey <tromey@cygnus.com>
+ * config.test: New file.
+ * Makefile.am (TESTS): Added config.test.
+
* Makefile.am (TESTS): Reference clean.test, not clean.am.
Mon Sep 28 01:46:34 1998 Tom Tromey <tromey@cygnus.com>
lex2.test libobj8.test version3.test instdata.test exdir2.test \
colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
ansi3.test cond6.test colon6.test texinfo7.test parse.test else.test \
-clean.test recurs2.test
+clean.test recurs2.test config.test
EXTRA_DIST = defs $(TESTS)
lex2.test libobj8.test version3.test instdata.test exdir2.test \
colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
ansi3.test cond6.test colon6.test texinfo7.test parse.test else.test \
-clean.test recurs2.test
+clean.test recurs2.test config.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test to make sure config.h rule made even if it is in a subdir. The
+# idea is that if config.h is in a subdir, and there is no Makefile in
+# that subdir, then we want to build config.h as the top level.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AM_CONFIG_HEADER(subdir/config.h)
+PACKAGE=nonesuch
+VERSION=nonesuch
+AC_PROG_CC
+AC_ARG_PROGRAM
+AC_PROG_INSTALL
+AC_OUTPUT(Makefile)
+END
+
+: > Makefile.am
+mkdir subdir
+: > subdir/config.h.in
+
+$AUTOMAKE || exit 1
+
+grep '^subdir/config.h:' Makefile.in