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: Bruno Haible
Subject: Re: help about merging gnulib/autoconf/automake/libintl
Date: Tue, 27 Sep 2005 13:41:35 +0200
User-agent: KMail/1.5

Claudio Fontana wrote:
> I am looking for information about the Right Way(from
> now on RW) to merge gnulib/autoconf/automake/libintl .
>
> While upgrading the id-utils build system with latest
> gnulib modules I faced following problems:
>
> 1) I use gl_EARLY, gl_SOURCE_BASE, gl_M4_BASE, gl_LIB,
> gl_MODULES, gl_INIT in configure.ac . However it seems
> to me that the system is always building all the
> modules, even though no replacements are needed. Is
> this normal?

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,
as they serve no purpose any more. The complete doc is in
gnulib/doc/gnulib-tool.texi.

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.

> 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 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?

> ALL_LINGUAS="de fr nl pl"

This belongs in po/LINGUAS, not in configure.ac any more.

> 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.

> Please, send me links to any tutorial about
> gnulib/gettext I might not have found yet (I only read
> the manuals).

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





reply via email to

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