* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / confh2.test
blobce3cc14d830b2a4adba9dd84259bbf117e38cecb
1 #! /bin/sh
3 # Test to make sure stamp files created correctly.
4 # Report from Erez Zadok.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
10 PACKAGE=nonesuch
11 VERSION=nonesuch
12 AC_ARG_PROGRAM
13 AC_PROG_INSTALL
14 AC_PROG_MAKE_SET
15 AM_CONFIG_HEADER(config.h:include/config.h.in)
16 AC_OUTPUT(Makefile)
17 END
19 : > Makefile.am
20 : > acconfig.h
22 mkdir include
23 : > include/config.h.in
25 $AUTOMAKE || exit 1
27 grep '^config.h:' Makefile.in || exit 1
28 fgrep 'echo timestamp > stamp-h' Makefile.in || exit 1
29 fgrep '../include/config.h.in' Makefile.in && exit 1
30 exit 0