bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help about merging gnulib/autoconf/automake/libintl


From: Claudio Fontana
Subject: Re: help about merging gnulib/autoconf/automake/libintl
Date: Tue, 27 Sep 2005 16:23:55 -0700 (PDT)

Hello,

--- Bruno Haible <address@hidden> wrote:

> Claudio Fontana wrote:
> > 1) I use gl_EARLY, gl_SOURCE_BASE, gl_M4_BASE,
> gl_LIB,
> > gl_MODULES, gl_INIT in configure.ac .

> The way to use gnulib-tool has changed. You can
> remove the
> gl_SOURCE_BASE, gl_M4_BASE, gl_LIB, gl_MODULES calls
> from configure.ac .

Ok, I need to checkout the newest gnulib, because my
version seems too old already (about 1 year), and does
not seem to generate gnulib-cache.m4 .

> as they serve no purpose any more. The complete doc
> is in
> gnulib/doc/gnulib-tool.texi.

Thanks, read it.

> I'd try "autoreconf", "make distclean" and a fresh
> configure, and see
> whether that helps. If not, then please look at the
> values in config.h
> and config.status.

Sorry, it works perfectly: it was only the machine I
tested on that missed a lot of stuff.
Great, great job doing gnulib!

> > > 2) I have the gettext module among the others,
so
> I
> > include gettext.h instead of libintl.h .
> > However, gettext.h includes <libintl.h>, and this
> > creates a problem when building on systems that
> miss
> > that header.
> 
> The include of <libintl.h> in gettext.h is protected
> through
> #if ENABLE_NLS. configure should not define
> ENABLE_NLS on a platform
> without <libintl.h>, except - of course - if you
> used gettextize with
> --intl option (which is not very common nowadays).

I used gettextize with --intl option.
Why is it not common? If the system does not provide
libintl.h, I do by including intl/* no? What am I
missing?

 > > I mean, I have it in my replacement intl/,
> > but being lib/* autogenerated I cannot (well
> should
> > not) edit lib/Makefile.am by hand to add the
> directory
> > to the flags. I solved by appending to CFLAGS
> during
> > configuration,
> 
> Does adding
>    CPPFLAGS += -I../lib
> to the Makefile.am section of gnulib/modules/gettext
> help?

I already have AM_CPPFLAGS += -I../lib,
it is -I../intl that is missing.

However, when configuration chooses NOT to use
included intl/ the build must correctly catch the
system <libintl.h>, that is why I went with the "if"
in configure.ac .
Do you think it's ok?

> > ALL_LINGUAS="de fr nl pl"
> 
> This belongs in po/LINGUAS, not in configure.ac any
> more.

Tx, moved.

> > 3) In the manual, the AM_GNU_GETTEXT macro is said
> to
> > be followed by LIBS = @LIBINTL@ @LIBS@ in
> Makefile.in.
> > But with automake? I added it using LDADD, so it
> > should recognize the dependency. Is this the RW?
> 
> Yes, if you are not using libtool, then adding
> @LIBINTL@ to LDADD is
> the right way. When using libtool, use @LTLIBINTL@
> instead.
> The GNU gettext doc, section "`Makefile.in' in
> `src/'" explains this.

Ok.

> The tutorial is now included in the gettext
> distribution:
>  
>
http://savannah.gnu.org/cgi-bin/viewcvs/gettext/gettext/gettext-tools/doc/tutorial.html?rev=HEAD&content-type=text/html
> 
> Bruno

Thanks for everything, and long live gnulib!

Claudio


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]