* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / subobj7.test
blobc5388fbd23a146a45124d69ba6925685256f9ba2
1 #! /bin/sh
3 # Test to make sure AM_CFLAGS appears in subdir compilation rule.
4 # Report from Steve M. Robbins.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT(f)
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 AM_PROG_CC_C_O
12 AC_PROG_CC
13 AC_OUTPUT(Makefile)
14 END
16 cat > Makefile.am << 'END'
17 bin_PROGRAMS = wish
18 wish_SOURCES = foo.c generic/a.c
19 END
21 $ACLOCAL || exit 1
22 $AUTOMAKE || exit 1
24 grep wish_CFLAGS Makefile.in && exit 1
25 exit 0