From: Gonzalo Paniagua Javier Date: Wed, 25 Aug 2010 16:30:25 +0000 (-0400) Subject: Add --quiet-build (on by default) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=416c6716970ef5ac27000e533fcc6ea9e3de4db5;p=gc Add --quiet-build (on by default) --- diff --git a/configure.in b/configure.in index 2f7e1731..2bd596bb 100644 --- a/configure.in +++ b/configure.in @@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then AC_DEFINE(GC_ASSERTIONS) fi +AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes) AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host") if test "${multilib}" = "yes"; then @@ -497,6 +498,11 @@ else multilib_arg= fi +if test x$enable_quiet_build = xyes; then + AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL]) + AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool]) +fi + AC_OUTPUT(Makefile include/Makefile include/private/Makefile