From Nicolas Joly:
[automake.git] / tests / confh4.test
blob97918ca29a29c335c516b386859f34f9a0d0c508
1 #! /bin/sh
3 # Test for PR 34.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
9 AC_ARG_PROGRAM
10 AC_PROG_INSTALL
11 AM_CONFIG_HEADER(include/config.h)
12 AC_PROG_MAKE_SET
13 AC_PROG_CC
14 AC_OUTPUT(Makefile include/Makefile)
15 END
17 cat > Makefile.am << 'END'
18 bin_PROGRAMS = foo
19 foo_SOURCES = foo.c
20 END
22 : > foo.c
23 : > acconfig.h
25 mkdir include
26 : > include/Makefile.am
27 : > include/config.h.in
29 $ACLOCAL || exit 1
30 $AUTOMAKE || exit 1
32 egrep '^DEFAULT_INCLUDES =.* -I(\.|\$\(top_builddir\))/include' Makefile.in