2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-gettext" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Gettext-&gettext-version;</title>
|
|
|
|
<?dbhtml filename="gettext.html"?>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-tools-gettext">
|
|
|
|
<primary sortas="a-Gettext">Gettext</primary>
|
|
|
|
<secondary>tools</secondary></indexterm>
|
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="package"><title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2005-06-14 23:56:57 +01:00
|
|
|
<seglistitem><seg>0.5 SBU</seg><seg>63.0 MB</seg></seglistitem>
|
2004-05-16 01:06:08 +01:00
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Gettext</title>
|
|
|
|
|
2003-11-02 22:20:47 +00:00
|
|
|
<para>Prepare Gettext for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<screen><userinput>./configure --prefix=/tools --disable-libasprintf \
|
2005-02-27 23:01:27 +00:00
|
|
|
--without-csharp</userinput></screen>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>The meaning of the configure options:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>--disable-libasprintf</parameter></term>
|
|
|
|
<listitem><para>This flag tells Gettext not to build the
|
|
|
|
<filename class="libraryfile">asprintf</filename> library. Because nothing in this
|
|
|
|
chapter or the next requires this library and Gettext gets rebuilt later,
|
|
|
|
exclude it to save time and space.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2005-03-12 19:38:27 +00:00
|
|
|
<term><parameter>--without-csharp</parameter></term>
|
2005-06-30 16:41:55 +01:00
|
|
|
<listitem><para>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
|
2005-06-30 16:47:56 +01:00
|
|
|
enter the <command>chroot</command> environment.</para></listitem>
|
2005-02-19 22:16:42 +00:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
2004-12-20 17:23:16 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>To test the results, issue: <userinput>make check</userinput>.
|
|
|
|
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
|
|
|
|
<ulink url="&lfs-root;patches/"/>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect2 role="content"><title/>
|
|
|
|
<para>Details on this package are located in <xref linkend="contents-gettext" role="."/></para>
|
|
|
|
</sect2>
|
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|