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 77
35 touch README NEWS AUTHORS ChangeLog
39 # We use gcc and not gcc -traditional as the latter fails on some
40 # Linux boxes (Red Hat 5.1 in particular).
43 && $AUTOMAKE -a ||
exit 1
45 # Regression test for bug where `.c.o:' is followed by blank line.
47 if test "$line" = ".c.o:"; then
49 if test -z "$next"; then
54 done) < foo
/Makefile.
in ||
exit 1
57 && CC
='gcc' ..
/configure \
58 && $MAKE distcheck ||
exit 1