m4.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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-m4" role="wrap">
  8. <?dbhtml filename="m4.html"?>
  9. <sect1info condition="script">
  10. <productname>m4</productname>
  11. <productnumber>&m4-version;</productnumber>
  12. <address>&m4-url;</address>
  13. </sect1info>
  14. <title>M4-&m4-version;</title>
  15. <indexterm zone="ch-system-m4">
  16. <primary sortas="a-M4">M4</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The M4 package contains a macro processor.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&m4-ch6-sbu;</seg>
  26. <seg>&m4-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of M4</title>
  32. <para>Fix an incompatibility between this package and Glibc-&glibc-version;:</para>
  33. <screen><userinput remap="pre">sed -i -e '/gets is a/d' lib/stdio.in.h</userinput></screen>
  34. <para>Prepare M4 for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>Compile the package:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <!--<para>To test the results, issue:</para>-->
  39. <para>To test the results, first fix a test program and then run the test programs:</para>
  40. <screen><userinput remap="test">sed -i -e '41s/ENOENT/&amp; || errno == EINVAL/' tests/test-readlink.h
  41. make check</userinput></screen>
  42. <para>Install the package:</para>
  43. <screen><userinput remap="install">make install</userinput></screen>
  44. </sect2>
  45. <sect2 id="contents-m4" role="content">
  46. <title>Contents of M4</title>
  47. <segmentedlist>
  48. <segtitle>Installed program</segtitle>
  49. <seglistitem>
  50. <seg>m4</seg>
  51. </seglistitem>
  52. </segmentedlist>
  53. <variablelist>
  54. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  55. <?dbfo list-presentation="list"?>
  56. <?dbhtml list-presentation="table"?>
  57. <varlistentry id="m4">
  58. <!-- Don't remove the extra space, it prevet a FOP warning. -->
  59. <term><command>m4 </command></term>
  60. <listitem>
  61. <para>copies the given files while expanding the macros that they
  62. contain. These macros are either built-in or user-defined and can
  63. take any number of arguments. Besides performing macro expansion,
  64. <command>m4</command> has built-in functions for including named
  65. files, running Unix commands, performing integer arithmetic,
  66. manipulating text, recursion, etc. The <command>m4</command> program
  67. can be used either as a front-end to a compiler or as a macro processor
  68. in its own right.</para>
  69. <indexterm zone="ch-system-m4 m4">
  70. <primary sortas="b-m4">m4</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. </variablelist>
  75. </sect2>
  76. </sect1>