* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / config.test
blob8e4a0ce43b78c92e81559254ca55c30dcfeb6566
1 #! /bin/sh
3 # Test to make sure config.h rule made even if it is in a subdir. The
4 # idea is that if config.h is in a subdir, and there is no Makefile in
5 # that subdir, then we want to build config.h as the top level.
7 . $srcdir/defs || exit 1
9 cat > configure.in << 'END'
10 AM_CONFIG_HEADER(subdir/config.h)
11 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
12 PACKAGE=nonesuch
13 VERSION=nonesuch
14 AC_PROG_CC
15 AC_ARG_PROGRAM
16 AC_PROG_MAKE_SET
17 AC_PROG_INSTALL
18 AC_OUTPUT(Makefile)
19 END
21 : > Makefile.am
22 mkdir subdir
23 : > subdir/config.h.in
25 $ACLOCAL || exit 1
26 $AUTOMAKE || exit 1
28 grep '^subdir/config.h:' Makefile.in