3 # Make sure when using SUBDIR that all BUILT_SOURCES are built.
4 # A bug occurred where subdirs do not have all-recursive or
5 # all-recursive-am which depended on BUILT_SOURCES.
7 . $srcdir/defs || exit 1
9 # Fail gracefully if no autoconf.
16 cat > configure.in << 'END'
18 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
21 AC_OUTPUT(Makefile lib/Makefile)
24 # Files required because we are using `--gnu'.
32 cat > Makefile.am << 'END'
36 cat > lib/Makefile.am << 'END'
38 noinst_LIBRARIES = libfoo.a
39 libfoo_a_SOURCES = foo.c
42 echo \#define FOO_DEFINE 1 >$@
45 cat > lib/foo.c << 'END'
47 int foo () { return !FOO_DEFINE;}
55 $AUTOMAKE --include-deps --copy --force-missing --add-missing --gnu
59 # Remove the comment to get a successful test.