[Top][All Lists]

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

Invoking AM_GNU_GETTEXT conditionally in

From: David Bruce
Subject: Invoking AM_GNU_GETTEXT conditionally in
Date: Fri, 12 Feb 2010 14:55:03 -0600

(Not sure if this is more properly an autoconf question or a gettext question)

I have a two autotools-based projects that use GNU gettext.  The
projects contain an intl subdirectory which is only used for the
Windows build.  For the native Linux builds, the programs use the
external intl code (in glibc, I think) in accordance with guidelines
to avoid duplicating system code.  I have been editing by
hand when building for one platform or the other, as I haven't worked
out a way to do this conditionally.

I would like to do something like:

AC_MSG_CHECKING([for native Win32])
case "$host" in

dnl NOTE - the following conditional does not work.
if test $native_win32 = yes; then

However, the conditional doesn't work as I expected.  When building
for Linux, "make" fails with

make[2]: Entering directory `/usr/local/src/git/tuxmath/build/po'
*** error: gettext infrastructure mismatch: using a
from gettext version 0.17 but the autoconf macros are from gettext
make[2]: *** [check-macro-version] Error 1

If I just use AM_GNU_GETTEXT([external]) without the conditional, it
works fine.  So I guess putting m4 macros inside of these conditionals
must have some sort of side effects I don't understand.

Thanks for any help,

David Bruce

reply via email to

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