This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: introduce common.m4
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Apr 2013 20:04:38 +0100
- Subject: Re: RFC: introduce common.m4
- References: <871u9zomzd dot fsf at fleche dot redhat dot com> <51782A71 dot 7030305 at redhat dot com> <87obd3n4c8 dot fsf at fleche dot redhat dot com>
On 04/24/2013 07:58 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> What's the advantage of doing it this way? Caching? Doesn't autoconf
> Pedro> use the cached value if there are multiple AC_CHECK_FOOs for the same
> Pedro> thing? Not super sure I like this over keeping each directory aware
> Pedro> of its dependencies, but I suppose I can go along.
>
> The advantage is in maintenance. Right now one must remember to update
> both gdb and gdbserver configure scripts in parallel.
I think you misunderstood the question. Sorry if it wasn't clear.
The "this way" was referring to:
> The rule I propose is that if something is needed or used by common,
> it should be checked for by common.m4; but that code outside this
> directory also be free to use these results. This means that removing
> checks from common.m4 must first be preceded by looking at uses in gdb
> and gdbserver. I think this is pretty easy to do -- easier than what
> we are doing now -- and I have documented the requirement.
over keeping common aware of the checks it needs to do (in common.m4),
and gdb/ and gdbserver/ also doing the checks they need for code under
gdb/ and gdbserver/ respectively.
Of course the current status of needing to update gdb and gdbserver in
parallel for common/ things is no good.
--
Pedro Alves