automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/6] aclocal: avoid spurious warnings from autom4te with AC_C


From: Eric Blake
Subject: Re: [PATCH 6/6] aclocal: avoid spurious warnings from autom4te with AC_CONFIG_MACRO_DIRS
Date: Wed, 07 Nov 2012 13:33:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

On 11/07/2012 01:08 PM, Nick Bowler wrote:
> 
> I really think this test needs to be done at runtime.  Two reasons:
> 
>   (1) A user may first ugprade Automake, then upgrade Autoconf.  They
>       will then get the spurious warnings even though they have
>       sufficiently recent versions of both Automake and Autoconf.
> 

Good argument.  Also, a user may first upgrade autoconf and then
automake.  We want to make sure both upgrade paths are sane, if
possible, rather than requiring a lockstep upgrade.

>   (2) A user may have more than one version of Autoconf installed, one
>       without the warning category and one with.  The value hardcoded
>       into aclocal at build time is therefore guaranteed to be wrong
>       for at least one installed version.
> 
> Furthermore, the test itself can be simplified: Just run autom4te
> -Werror -Wwhatever on empty input (/dev/null will work).  For example:
> 
>   autom4te -Werror -Wno-m4require-without-m4defun /dev/null

Hmm, this goes back to my question of whether autoconf should expose the
ability to silence the message by means of including an extra file which
does an m4_define, rather than via a new -W command-line argument.
Allowing file inclusion as the witness of whether to warn would work
even for older autoconf (where including the file has no effect), rather
than the current situation of warning about an unknown option.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]