Details on this package are located in Section 6.30.2, “Contents of Gettext.”
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.
Prepare Gettext for compilation:
./configure --prefix=/tools --disable-libasprintf \ --without-csharp
The meaning of the configure options:
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.
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.”