]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: use automake's --silent-rules option when possible
authorJim Meyering <meyering@redhat.com>
Sat, 28 Mar 2009 11:48:24 +0000 (12:48 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 28 Mar 2009 12:46:02 +0000 (13:46 +0100)
* bootstrap: Use automake's --silent-rules option.

bootstrap

index 27e4ec28c357abeacbe12d92358dbddf130c2a10..e834a2b0b684ba0660c8debf810f52528d76403c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -686,6 +686,12 @@ find "$m4_base" "$source_base" \
   -depth \( -name '*.m4' -o -name '*.[ch]' \) \
   -type l -xtype l -delete > /dev/null 2>&1
 
+# Use automake's --silent-rules option, if possible.
+automake="${AUTOMAKE-automake} --add-missing --copy --force-missing"
+(${AUTOMAKE-automake} --help) 2>&1 \
+    | grep -e '^  *--silent-rules' > /dev/null \
+  && automake="$automake --silent-rules"
+
 # Reconfigure, getting other files.
 
 for command in \
@@ -693,7 +699,7 @@ for command in \
   "${ACLOCAL-aclocal} --force -I m4" \
   "${AUTOCONF-autoconf} --force" \
   "${AUTOHEADER-autoheader} --force" \
-  "${AUTOMAKE-automake} --add-missing --copy --force-missing"
+  "$automake"
 do
   if test "$command" = libtool; then
     use_libtool=0