6.19. Gettext-0.19.8.1

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.

6.19.1. Installation of Gettext

Many packages' installation procedures use the msgfmt program for i18n support, so we will compile and install it into /tools. Attr also needs msgmerge and xgettext, so we will install those as well.

Only the programs in the gettext-tools directory need to be installed for the temp-system:

cd gettext-tools

Prepare Gettext for compilation:

EMACS="no" \
./configure \
    --prefix=/tools \
    --build=${CLFS_HOST} \
    --host=${CLFS_TARGET} \
    --disable-shared

The meaning of the new configure options:

EMACS="no"

Prevents the configure script from installing Emacs Lisp files as the test is known to hang on some hosts.

Compile the required programs and support library:

make -C gnulib-lib
make -C intl pluralx.c
make -C src msgfmt msgmerge xgettext

Install the msgfmt, msgmerge and xgettext binaries:

cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin

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