<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-temp-system-gettext" role="wrap">
  <?dbhtml filename="gettext.html"?>

  <title>Gettext-&gettext-version;</title>

  <indexterm zone="ch-temp-system-gettext">
    <primary sortas="a-Gettext">Gettext</primary>
    <secondary>temporary system</secondary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  href="../../final-system/common/gettext.xml"
  xpointer="xpointer(//*[@role='package'])"/>

  <sect2 role="installation">
    <title>Installation of Gettext</title>

    <para os="i">Many packages' installation procedures use the
    <command>msgfmt</command> program for i18n support, so we will compile
    and install it into <filename class="directory">/tools</filename>.
    Attr also needs <command>msgmerge</command> and <command>xgettext</command>,
    so we will install those as well.</para>

    <para os="a">Only the programs in the
    <filename class="directory">gettext-tools</filename> directory need to be
    installed for the temp-system:</para>

<screen os="b"><userinput>cd gettext-tools</userinput></screen>

    <para os="c">Prepare Gettext for compilation:</para>

<screen os="d"><userinput>EMACS="no" ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --disable-shared</userinput></screen>

    <variablelist os="e">
      <title>The meaning of the new configure options:</title>

      <varlistentry>
        <term><parameter>EMACS="no"</parameter></term>
        <listitem>
          <para>Prevents the configure script from installing Emacs Lisp files
          as the test is known to hang on some hosts.</para>
        </listitem>
      </varlistentry>

    </variablelist>

    <para os="f">Compile the required programs and support library:</para>

<screen os="g"><userinput>make -C gnulib-lib
make -C intl pluralx.c
make -C src msgfmt msgmerge xgettext</userinput></screen>

    <para os="h">Install the <command>msgfmt</command>,
    <command>msgmerge</command> and <command>xgettext</command> binaries:</para>

<screen os="i"><userinput>cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin</userinput></screen>

  </sect2>

  <sect2 role="content">
    <title/>

    <para>Details on this package are located in <xref
    linkend="contents-gettext" role="."/></para>

  </sect2>

</sect1>
