gmp.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-gmp" role="wrap">
  8. <?dbhtml filename="gmp.html"?>
  9. <sect1info condition="script">
  10. <productname>gmp</productname>
  11. <productnumber>&gmp-version;</productnumber>
  12. <address>&gmp-url;</address>
  13. </sect1info>
  14. <title>GMP-&gmp-version;</title>
  15. <indexterm zone="ch-system-gmp">
  16. <primary sortas="a-GMP">GMP</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GMP package contains math libraries. These have useful functions
  21. for arbitrary precision arithmetic.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&gmp-ch6-sbu;</seg>
  27. <seg>&gmp-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of GMP</title>
  33. <para>Prepare GMP for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen>
  35. <variablelist>
  36. <title>The meaning of the new configure option:</title>
  37. <varlistentry>
  38. <term><parameter>--enable-cxx</parameter></term>
  39. <listitem>
  40. <para>This parameter enables C++ support</para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <important>
  47. <para>The test suite for GMP in this section is considered critical.
  48. Do not skip it under any circumstances.</para>
  49. </important>
  50. <para>Test the results:</para>
  51. <screen><userinput remap="test">make check 2>&amp;1 | tee gmp-check-log</userinput></screen>
  52. <para>Ensure that all 139 tests in the test suite ran successfully by
  53. issuing the following command:</para>
  54. <screen><userinput remap="test">awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log</userinput></screen>
  55. <para>Install the package:</para>
  56. <screen><userinput remap="install">make install</userinput></screen>
  57. <para>If desired, install the documentation:</para>
  58. <screen><userinput remap="install">mkdir -v /usr/share/doc/gmp-&gmp-version;
  59. cp -v doc/{isa_abi_headache,configuration} doc/*.html \
  60. /usr/share/doc/gmp-&gmp-version;</userinput></screen>
  61. </sect2>
  62. <sect2 id="contents-gmp" role="content">
  63. <title>Contents of GMP</title>
  64. <segmentedlist>
  65. <segtitle>Installed Libraries</segtitle>
  66. <seglistitem>
  67. <seg>libgmp.{a,so}, libgmpxx.{a,so}, and libmp.{a,so}</seg>
  68. </seglistitem>
  69. </segmentedlist>
  70. <variablelist>
  71. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  72. <?dbfo list-presentation="list"?>
  73. <?dbhtml list-presentation="table"?>
  74. <varlistentry id="libgmp">
  75. <term><command>libgmp</command></term>
  76. <listitem>
  77. <para>Contains precision math functions.</para>
  78. <indexterm zone="ch-system-gmp libgmp">
  79. <primary sortas="c-libgmp">libgmp</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="libgmpxx">
  84. <term><command>libgmpxx</command></term>
  85. <listitem>
  86. <para>Contains C++ precision math functions.</para>
  87. <indexterm zone="ch-system-gmp libgmpxx">
  88. <primary sortas="c-libgmpxx">libgmpxx</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="libmp">
  93. <term><command>libmp</command></term>
  94. <listitem>
  95. <para>Contains the Berkeley MP math functions.</para>
  96. <indexterm zone="ch-system-gmp libmp">
  97. <primary sortas="c-libmp">libmp</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. </variablelist>
  102. </sect2>
  103. </sect1>