2 # Copyright (C) 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 2, or (at your option)
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 # Check that AM_MAINTAINER_MODE disable some rebuild rules,
19 # Report from Ralf Corsepius.
26 cat >>configure.
in <<'EOF'
29 if test ! -f rebuild_ok; then
42 $AUTOMAKE --add-missing
46 # Make sure the rules to rebuild configure/Makefile.in are not
47 # triggered by default. ($MAKE will fail if they are, because the
48 # tools are set to false.)
50 touch aclocal.
m4 Makefile.am configure.
in foo.
m4
53 # Make sure the rebuild rule for Makefile is triggered.
55 echo '# GrEpMe' >>Makefile.
in
59 # Make sure the rebuild rule for config.status is triggered.
61 grep 'AUTOCONF.*=.*false' Makefile
63 .
/configure
--no-create
65 grep 'AUTOCONF.*=.*false' Makefile
&& Exit
1
67 # Make sure rebuild rules do work if --enable-maintainer-mode is given.
68 .
/configure
--enable-maintainer-mode
70 echo 'AC_SUBST([YIPPY_YIPPY_YEAH])' >foo.
m4
72 grep YIPPY_YIPPY_YEAH Makefile