2 # Copyright (C) 2010 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 the user can control default mode of silent-rules
18 # from config.site, and that this default can be overridden from
19 # either the ./configure or make command line.
23 cat >> configure.
in <<'EOF'
28 cat > Makefile.am
<<'EOF'
29 .PHONY: test-silent test-nosilent
31 test x'$(AM_DEFAULT_VERBOSITY)' = x'0'
33 test x'$(AM_DEFAULT_VERBOSITY)' = x'1'
36 unset enable_silent_rules ||
:
38 : 'No explicit default in configure.in, enable by default in config.site'
42 $AUTOMAKE --add-missing
43 echo "enable_silent_rules=\${enable_silent_rules-yes}" > config.site
44 CONFIG_SITE
=.
/config.site .
/configure
47 # Command line should win over default values in config.site.
48 CONFIG_SITE
=.
/config.site .
/configure
--disable-silent-rules
52 : 'Disable by default in configure.in, enable by default in config.site'
54 sed 's/^AM_SILENT_RULES/&([no])/' configure.
in > configure.tmp
55 mv -f configure.tmp configure.
in
58 $AUTOMAKE --add-missing
59 echo "enable_silent_rules=\${enable_silent_rules-yes}" > config.site
60 CONFIG_SITE
=.
/config.site .
/configure
62 # Command line should win over default values in config.site.
64 CONFIG_SITE
=.
/config.site .
/configure
--disable-silent-rules
68 : 'Enable by default in configure.in, disable by default in config.site'
70 sed 's/^AM_SILENT_RULES/&([yes])/' configure.
in > configure.tmp
71 mv -f configure.tmp configure.
in
74 $AUTOMAKE --add-missing
75 echo "enable_silent_rules=\${enable_silent_rules-no}" > config.site
76 CONFIG_SITE
=.
/config.site .
/configure
79 # Command line should win over default values in config.site.
80 CONFIG_SITE
=.
/config.site .
/configure
--enable-silent-rules