3 # Test for PR automake/87.
5 . $srcdir/defs || exit 1
12 int main() { return 0; }
14 cat >$i/Makefile.am <<EOF
20 echo "SUBDIRS = $subdirs" > Makefile.am
21 cat >configure.in <<EOF
22 AC_INIT(`echo $subdirs | sed 's|\([a-z][a-z]*\).*|\1/\1.c|'`)
24 AM_INIT_AUTOMAKE(test_am, 1.0)
26 AC_OUTPUT(Makefile `echo $subdirs | sed 's|\([a-z][a-z]*\)|\1/Makefile|g'`)
29 # Fail gracefully if no autoconf.
33 (gcc -v) > /dev/null 2>&1 || exit 0
35 touch README NEWS AUTHORS ChangeLog
39 rm missing install-sh mkinstalldirs
41 # Regression test for bug where `.c.o:' is followed by blank line.
43 if test "$line" = ".c.o:"; then
45 if test -z "$next"; then
50 done) < foo/Makefile.in || exit 1
52 # We use gcc and not gcc -traditional as the latter fails on some
53 # Linux boxes (Red Hat 5.1 in particular).
58 && CC='gcc' ../configure \