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

  <title>GMP-&gmp-version;</title>

  <indexterm zone="ch-system-gmp">
    <primary sortas="a-GMP">GMP</primary>
    <secondary>temporary system</secondary>
  </indexterm>

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

    <para>GMP is a library for arithmetic on arbitrary precision integers,
    rational numbers, and floating-point numbers.</para>

  </sect2>

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

<!--
    <para os="p1">The following patch contains a number of updates to the
    &gmp-version; branch by the GMP developers:</para>

<screen os="p2"><userinput>patch -Np1 -i ../&gmp-branch_update-patch;</userinput></screen>

-->
    <para os="a">Prepare GMP for compilation:</para>

<screen os="b"><userinput>CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include" \
    CXX="g++ -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \
    ./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <important os="e">
      <para>The test suite for GMP is considered
      critical. Do not skip it under any circumstance.</para>
    </important>

    <para os="f">Test the results:</para>

<screen os="g"><userinput>make check</userinput></screen>

    <para os="h">Install the package:</para>

<screen os="i"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 id="contents-gmp" role="content">
    <title>Contents of GMP</title>

    <segmentedlist>
      <segtitle>Installed Libraries</segtitle>

      <seglistitem>
        <seg>libgmp.[a,so], libgmpxx.[a,so], libmp.[a,so]</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libgmp">
        <term><filename class="libraryfile">libgmp</filename></term>
        <listitem>
          <para>Contains the definitions for GNU multiple precision functions.</para>
          <indexterm zone="ch-system-gmp libgmp">
            <primary sortas="b-libgmp">libgmp</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libgmpxx">
        <term><filename class="libraryfile">libgmpxx</filename></term>
        <listitem>
          <para>Contains a C++ class wrapper for GMP types.</para>
          <indexterm zone="ch-system-gmp libgmpxx">
            <primary sortas="b-libgmpxx">libgmpxx</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libmp">
        <term><filename class="libraryfile">libmp</filename></term>
        <listitem>
          <para>Contains the Berkeley MP compatibility library.</para>
          <indexterm zone="ch-system-gmp libmp">
            <primary sortas="b-libmp">libmp</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
