5.24. Gettext-0.14.1

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

Approximate build time: 0.5 SBU

Required disk space: 55 MB

Gettext installation depends on: Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, and Sed

5.24.1. Installation of Gettext

Prepare Gettext for compilation:

./configure --prefix=/tools --disable-libasprintf \
    --disable-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.

--disable-csharp

This tells Gettext not to use a C# compiler, even if a C# compiler is installed on the host. This needs to be done because once we enter the chroot environment, C# will no longer be available.

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