[PATCH build/doc] Replacing libiberty with gnulib

Pedro Alves palves@redhat.com
Wed Aug 10 14:14:00 GMT 2016

On 08/10/2016 03:05 PM, Manuel López-Ibáñez wrote:
> On 10 August 2016 at 14:40, ayush goel <ayushgoel1610@gmail.com> wrote:
>> On 9 August 2016 at 2:20:59 PM, Pedro Alves (palves@redhat.com) wrote:
>>> the scheme of configuring gnulib in a separate directory as borrowed from gdb
>>> requires including two config.h headers -- the gnulib client's, and gnulib's.
> Isn't this also true for libiberty's config.h ? I have no idea
> when/how is that included.

Nope.  For libiberty, the current scheme is that all clients of libiberty
duplicate the necessary autoconf checks on their own, so the client's
config.h file ends up with a copy the necessary HAVE_FOOs.

For libiberty, I've tried to factor out the autoconf checks, here:


Ended up being gdb-only:


src/intl takes yet another approach.  See src/intl/config.intl.in.

Pedro Alves

More information about the Gcc-patches mailing list