[PATCH] Use automake silent build mode only if supported

Dmitry V. Levin ldv at altlinux.org
Tue Sep 21 00:09:09 UTC 2010


Hi,

On Mon, Sep 20, 2010 at 03:04:43PM +0300, Tommi Rantala wrote:
> 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.
[...]
> --- 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])])
> +

It was discussed in January already.
In short, initial suggestion submitted to the list was to add
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

My first idea was to add
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
instead, thus keeping default behaviour unchanged.

Later we agreed to just require the automake version that
has the macro.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100921/b21a49a0/attachment.bin>


More information about the Strace-devel mailing list