<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/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/2003/XInclude"
  href="../../final-system/common/gettext.xml"
  xpointer="xpointer(//*[@role='package'])"/>

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

    <para os="a">Gettext has an issue with cross-compiling where it
    can't find getline. Fix it here:</para>

<screen os="b"><userinput>cd gettext-tools
echo "am_cv_func_working_getline=yes" &gt;&gt; config.cache</userinput></screen>

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

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

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

      <varlistentry os="e1">
        <term><parameter>--disable-shared</parameter></term>
        <listitem>
          <para>This tells Gettext not to create a shared library.</para>
        </listitem>
      </varlistentry>

    </variablelist>

    <para os="f">Only one program in the Gettext package needs to be
    built:</para>

<screen os="g"><userinput>make -C lib
make -C src msgfmt</userinput></screen>

    <para os="h">Install the <command>msgfmt</command> binary:</para>

<screen os="i"><userinput>cp -v src/msgfmt /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>
