Fix grammaros.
[automake/plouj.git] / tests / stamph2.test
blob0dfd8e7a56ee2c0963d3d74e27c30a3710c5c732
1 #! /bin/sh
2 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Make sure stamp-h* files are created where we expect
18 . ./defs || exit 1
20 set -e
22 cat >> configure.in << END
23 AM_CONFIG_HEADER(1.h
24 2.h:config.hin
25 3.h:sdir1/config1.hin)
26 # AM_CONFIG_HEADER and AC_CONFIG_HEADERS should be synonyms.
27 AC_CONFIG_HEADERS(sdir1/4.h
28 sdir1/5.h:config.hin
29 sdir1/6.h:sdir1/config1.hin
30 sdir1/7.h:sdir2/config2.hin)
31 AC_OUTPUT
32 END
34 : > Makefile.am
35 mkdir sdir1
36 mkdir sdir2
37 : > config.hin
38 : > 1.h.in
39 : > sdir1/4.h.in
40 : > sdir1/config1.hin
41 : > sdir2/config2.hin
43 $ACLOCAL
44 $AUTOCONF
45 $AUTOMAKE
46 ./configure
48 test -f stamp-h1
49 test -f stamp-h2
50 test -f stamp-h3
51 test -f sdir1/stamp-h4
52 test -f sdir1/stamp-h5
53 test -f sdir1/stamp-h6
54 test -f sdir1/stamp-h7
56 # Make sure `./config.status foo' creates the right stamp file.
57 # Report from Sander Niemeijer.
59 rm -f stamp-h*
60 rm -f sdir1/stamp-h*
62 ./config.status sdir1/7.h 2.h sdir1/4.h
63 test ! -f stamp-h1
64 test -f stamp-h2
65 test ! -f stamp-h3
66 test -f sdir1/stamp-h4
67 test ! -f sdir1/stamp-h5
68 test ! -f sdir1/stamp-h6
69 test -f sdir1/stamp-h7
71 exit 0