[Top][All Lists]
[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 17:02:54 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
On 11/07/2012 04:23 PM, Stefano Lattarini wrote:
>> 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.
>>
> Good thinking. And since aclocal is not expected to read any input from
> stdin anyway, such macro definition could be passed directly from the
> command line, as in:
>
> $ cat x
> A
> $ echo "define(A,B)dnl" | autom4te - x
> B
>
> saving us from the need to handle temporary files.
Ohh, interesting idea. I had been battling with trying to change the
language definitions in autoconf's lib/autom4te.in, by adding another
frozen .m4f file into the mix only when needed, precisely because there
is no way to pass a -Dmacro=foo on the autom4te command line; but your
idea of concatenating stdin containing the needed define is more elegant
and makes my efforts much easier.
>
> So, should I attempt a patch along this new directions, or are you going
> to post one yourself? (In which case I'll save myself some time and avoid
> duplicate efforts, especially considering that a patch from you will
> certainly be better then mine ;-)
Sounds like enough is waiting on me that I need to carve out a full day
for autoconf work. You've convinced me - I'll have a patches posted to
autoconf, including the best parts of what you have posted and were
waiting for a 2-day review window, within the next 48 hours.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [PATCH 3/6] tests: better coverage for AC_CONFIG_MACRO_DIRS, (continued)
- [PATCH 3/6] tests: better coverage for AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/03
- [PATCH 4/6] aclocal: smash newlines in arguments of traced macros, Stefano Lattarini, 2012/11/03
- [PATCH 1/6] aclocal: multiple local m4 macro dirs with AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/03
- [PATCH 5/6] coverage: expose a bug in aclocal (spurious warnings), Stefano Lattarini, 2012/11/03
- [PATCH 6/6] aclocal: avoid spurious warnings from autom4te with AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/03
[PATCHv2 0/8] Support for AC_CONFIG_MACRO_DIRS in Automake, Stefano Lattarini, 2012/11/10
- [PATCHv2 1/8] aclocal: multiple local m4 macro dirs with AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/10
- [PATCHv2 2/8] aclocal: diagnose non-existing directories in AC_CONFIG_MACRO_DIRS better, Stefano Lattarini, 2012/11/10
- [PATCHv2 3/8] tests: better coverage for AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/10
- [PATCHv2 4/8] aclocal: smash newlines in arguments of traced macros, Stefano Lattarini, 2012/11/10
- [PATCHv2 5/8] coverage: expose a bug in aclocal (spurious warnings), Stefano Lattarini, 2012/11/10
- [PATCHv2 6/8] aclocal: avoid spurious warnings from autom4te with AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/10
- [PATCHv2 7/8] aclocal: trace AC_CONFIG_MACRO_DIR_TRACE, Stefano Lattarini, 2012/11/10
- [PATCHv2 8/8] news: we trace AC_CONFIG_MACRO_DIRS, Stefano Lattarini, 2012/11/10
- Re: [PATCHv2 0/8] Support for AC_CONFIG_MACRO_DIRS in Automake, Stefano Lattarini, 2012/11/10