typo + new comment
[automake.git] / tests / specflags.test
blob2e03e74fa933c388b9a10d7ce8c9daccac8106f4
1 #! /bin/sh
3 # Test of flags specific to executable.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CC
9 END
11 cat > Makefile.am << 'END'
12 AUTOMAKE_OPTIONS = no-dependencies
13 bin_PROGRAMS = foo
14 foo_SOURCES = foo.c
15 foo_CFLAGS = -DBAR
16 END
18 # Make sure `compile' is required.
19 $ACLOCAL || exit 1
20 $AUTOMAKE && exit 1
22 : > compile
24 $AUTOMAKE || exit 1
26 # Look for $(COMPILE) -c in .c.o rule.
27 grep 'COMPILE. [^-]' Makefile.in && exit 1
29 # Look for foo-foo.o.
30 grep '[^-]foo\.o' Makefile.in && exit 1
32 # Regression test for missing space.
33 fgrep ')-c' Makefile.in && exit 1
35 exit 0