This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why is ENABLE_NLS always defined?


On Tue, Oct 16, 2001 at 05:51:21PM -0700, Ziemowit Laski wrote:
> 
> On Tuesday, October 16, 2001, at 05:49 , H . J . Lu wrote:
> 
> >The current gcc will enable NLS by default. It does check if
> ><libintl.h> exists. However, it still defines ENABLE_NLS even
> >though it knows <libintl.h> doesn't exist. That is on IRIX 6.5.
> >I had to add --disable-nls. It doesn't happen with gcc on Oct. 5.
> 
> Ah! Darwin has the same problem (I also have to --disable-nls now).

--enable-nls is supposed to substitute our own gettext library if
there isn't one in libc.  However, our own gettext library uses a
different header name from <libintl.h> to avoid clashes, and the glue
header (intl.h) doesn't know that.

This should be fixed in the patch I sent last week:

http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00619.html

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]