Fix for PR automake/322:
[platform/upstream/automake.git] / tests / stamph2.test
1 #! /bin/sh
2
3 # Make sure stamp-h* files are created where we expect
4 . $srcdir/defs || exit 1
5
6 cat >> configure.in << END
7 AM_CONFIG_HEADER(1.h
8                  2.h:config.hin
9                  3.h:sdir1/config1.hin)
10 # AM_CONFIG_HEADER and AC_CONFIG_HEADERS should be synonyms.
11 AC_CONFIG_HEADERS(sdir1/4.h
12                   sdir1/5.h:config.hin
13                   sdir1/6.h:sdir1/config1.hin
14                   sdir1/7.h:sdir2/config2.hin)
15 AC_OUTPUT
16 END
17
18 : > Makefile.am
19 mkdir sdir1
20 mkdir sdir2
21 : > config.hin
22 : > 1.h.in
23 : > sdir1/4.h.in
24 : > sdir1/config1.hin
25 : > sdir2/config2.hin
26
27 $ACLOCAL || exit 1
28 $AUTOCONF || exit 1
29 $AUTOMAKE || exit 1
30 ./configure || exit 1
31
32 test -f stamp-h1 || exit 1
33 test -f stamp-h2 || exit 1
34 test -f stamp-h3 || exit 1
35 test -f sdir1/stamp-h4 || exit 1
36 test -f sdir1/stamp-h5 || exit 1
37 test -f sdir1/stamp-h6 || exit 1
38 test -f sdir1/stamp-h7 || exit 1
39
40 exit 0