<?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-system-gettext" role="wrap">
  <?dbhtml filename="gettext.html"?>

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

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

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

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

    <para os="a">Gettext includes its own version of Libtool which is broken
    for x86_64 (it tries to link statically linked archives compiled without
    -fPIC against shared objects) see (<ulink
    url="http://lists.gnu.org/archive/html/bug-libtool/2005-03/msg00070.html"/>).
    Use the following <command>sed</command> to skip certain tests so that
    the main language tests can be run.</para>

<screen os="b"><userinput>sed -i -e '2iexit 77' autoconf-lib-link/tests/rpath-3*[ef]</userinput></screen>

    <para>Prepare Gettext for compilation:</para>

<screen><userinput>./configure --prefix=/usr</userinput></screen>

    <para>Compile the package:</para>

<screen><userinput>make</userinput></screen>

    <para>To test the results, issue: <userinput>make check</userinput>.</para>

    <para>Install the package:</para>

<screen><userinput>make install</userinput></screen>

  </sect2>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gettext.xml"
  xpointer="xpointer(id('contents-gettext'))"/>

</sect1>
