* tests/Makefile.am (TESTS): Added pr266.test.
* tests/pr266.test: New file.
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Handle
non-standard name for makefile.
2001-12-29 Tom Tromey <tromey@redhat.com>
+ For PR automake/266:
+ * tests/Makefile.am (TESTS): Added pr266.test.
+ * tests/pr266.test: New file.
+ * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Handle
+ non-standard name for makefile.
+
For PR automake/279:
* automake.in (conditional_ambiguous_p): New sub.
(handle_lib_objects_cond): Use it.
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
[for mf in $CONFIG_FILES; do
- case $mf in
- Makefile) dirpart=.;;
- */Makefile) dirpart=`AS_DIRNAME("$mf")`;;
- *) continue;;
- esac
+ if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ dirpart=
+ fi
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
# Extract the definition of DEP_FILES from the Makefile without
# running `make'.
pluseq8.test \
ppf77.test \
pr2.test \
+pr266.test \
pr279.test \
pr279-2.test \
pr9.test \
pluseq8.test \
ppf77.test \
pr2.test \
+pr266.test \
pr279.test \
pr279-2.test \
pr9.test \
--- /dev/null
+#! /bin/sh
+
+# Test for PR 266.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(foo, 0.1, dev@null)
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+AC_PROG_CC
+AM_CONDITIONAL(FOOTEST, false)
+AC_CONFIG_FILES(Maudefile)
+AC_OUTPUT
+END
+
+cat > Maudefile.am << 'END'
+include_HEADERS = 3dfx.h linutil.h
+noinst_HEADERS = fx64.h fxdll.h fximg.h fxglob.h \
+ fxos.h fxver.h glob.h
+noinst_PROGRAMS = fxmisc
+fxmisc_SOURCES = fx64.c fximg.c fxos.c linutil.c
+END
+
+$ACLOCAL || exit 1
+$AUTOMAKE || exit 1
+$AUTOCONF || exit 1
+./configure || exit 1
+
+test -f .deps/fx64.Po