PATCH: replace obsolete GCC libintl with top-level libintl from newest gettext distribution

Zack Weinberg zack@codesourcery.com
Thu Jul 3 03:40:00 GMT 2003


This is an FYI to binutils/gdb only; I'm not yet touching anything
over in /cvs/src.

This patch removes the obsolete (0.10.40) libintl which GCC had in
gcc/intl; instead, I bring in the latest (0.12.1) libintl and put it
at top level, matching binutils/gdb which has had a top level 'intl'
directory for some time.  (Note that the libintl they have is even
older than GCC's current one - it dates to 1998 and does not appear to
have a version number.)

The autoconf macros distributed with gettext will not work in this
arrangement, so I'm using the gettext.m4 from binutils CVS - but I've
moved it to config/ which is where we seem to be keeping aclocal
fragments these days.  This file is badly in need of revision but not
right this instant, and this change is invasive enough already.

I tested this patch as follows:

  - Full bootstrap on i686-linux with no special options, which uses
    the libintl that's part of glibc.  In this setting the intl
    directory is configured but not built.

  - Configured with --with-included-gettext and did make all-gcc, then
    verified that the intl directory's implementation was getting
    used, and that message translation worked.
  - Configured with --disable-nls and did make all-gcc, then verified
    that cc1 didn't use gettext at all.

  - Dropped the intl subdirectory into a binutils tree, without
    modifying anything else, built it with --with-included-gettext,
    and verified that message translation still worked.

The attached diff reproduces the patch in full - created and deleted
files both.  However, generated files are not included.

OK to apply?

zw

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030703/88b2e705/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move-libintl.diff.gz
Type: application/gzip
Size: 232650 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030703/88b2e705/attachment.gz>


More information about the Gdb-patches mailing list