[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoreconf and gettext
From: |
Eric Blake |
Subject: |
Re: autoreconf and gettext |
Date: |
Tue, 31 May 2011 08:23:36 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 05/31/2011 01:51 AM, Vincent Torri wrote:
>
> Hey,
>
> I have a library that is using gettext is available, that is, in
> configure.ac, i use:
>
> m4_ifdef([AM_GNU_GETTEXT_VERSION], [
> AM_GNU_GETTEXT_VERSION([0.12.1])
> ])
Why force such an old version? Most distros support at least 0.17,
which comes with quite a few improvements over 0.12.1.
>
> Unfortunately, when I use autoreconf -f -i on a system that has no
> gettext, there is an error saying that autopoint is not available while
> the package is using gettext.
>
> How can I fix that problem ?
Right now, autoreconf greps configure.ac for /^AM_GNU_GETTEXST_VERSION/,
rather than using autoconf --trace mechanisms. Which is unfortunate,
because for situations like this, it gets the wrong answers.
You can foil autoreconf's grep by inserting whitespace or using extra m4
quoting, such as:
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
AM_GNU_GETTEXT_VERSION([...])
])
which would probably fix autoreconf on your bare-bones system, but I
don't know if that will break the running of gettext on systems where it
is installed.
Ultimately, it would be super nice if we could convert autoreconf over
to using --trace mechanisms for seeing which macros are actually called,
rather than just grepping for magic strings.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature