5.22. Gettext-0.14.3

The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language.

Approximate build time: 0.5 SBU
Required disk space: 63.0 MB
Installation depends on: Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, and Sed

5.22.1. Installation of Gettext

Prepare Gettext for compilation:

./configure --prefix=/tools --disable-libasprintf \
    --without-csharp

The meaning of the configure options:

--disable-libasprintf

This flag tells Gettext not to build the asprintf library. Because nothing in this chapter or the next requires this library and Gettext gets rebuilt later, exclude it to save time and space.

--without-csharp

This ensures that Gettext does not build support for the C# compiler which may be present on the host but will not be available once we enter the chroot environment.

Compile the package:

make

To test the results, issue: make check. This takes quite some time, around 7 SBUs. The Gettext test suite is known to experience failures under certain host conditions, for example when it finds a Java compiler on the host. An experimental patch to disable Java is available from the LFS Patches project at http://www.linuxfromscratch.org/patches/.

Install the package:

make install

Details on this package are located in Section 6.30.2, “Contents of Gettext.”