[PATCH] Use automake silent build mode only if supported

Tommi Rantala ext-tommi.1.rantala at nokia.com
Mon Sep 20 12:04:43 UTC 2010


Fixes build for those of us who are stuck with an old version of
automake.

* configure.ac (AM_INIT_AUTOMAKE, AM_SILENT_RULES): Remove silent-rules
from AM_INIT_AUTOMAKE, and instead call AM_SILENT_RULES macro if it is
defined.

Signed-off-by: Tommi Rantala <ext-tommi.1.rantala at nokia.com>
---
 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8a1c9da..77bc7d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,10 +4,12 @@ AC_INIT([strace],[4.5.20])
 AC_CONFIG_SRCDIR([strace.c])
 AC_CONFIG_AUX_DIR([.])
 AM_CONFIG_HEADER([config.h])
-AM_INIT_AUTOMAKE([foreign check-news dist-bzip2 no-dist-gzip silent-rules])
+AM_INIT_AUTOMAKE([foreign check-news dist-bzip2 no-dist-gzip])
 AM_MAINTAINER_MODE
 AC_CANONICAL_HOST
 
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+
 AC_MSG_CHECKING([for supported operating system])
 case "$host_os" in
 *linux*)
-- 
1.7.3.rc0.6.g7505a





More information about the Strace-devel mailing list