1
0

m4.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <title>M4-&m4-version;</title>
  10. <indexterm zone="ch-system-m4">
  11. <primary sortas="a-M4">M4</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The M4 package contains a macro processor.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>&m4-ch6-sbu;</seg>
  21. <seg>&m4-ch6-du;</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of M4</title>
  27. <para>Prepare M4 for compilation:</para>
  28. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  29. <para>Compile the package:</para>
  30. <screen><userinput>make</userinput></screen>
  31. <para>To test the results, issue:
  32. <userinput>make check</userinput>.</para>
  33. <para>Install the package:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-m4" role="content">
  37. <title>Contents of M4</title>
  38. <segmentedlist>
  39. <segtitle>Installed program</segtitle>
  40. <seglistitem>
  41. <seg>m4</seg>
  42. </seglistitem>
  43. </segmentedlist>
  44. <variablelist>
  45. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  46. <?dbfo list-presentation="list"?>
  47. <?dbhtml list-presentation="table"?>
  48. <varlistentry id="m4">
  49. <!-- Don't remove the extra space, it prevet a FOP warning. -->
  50. <term><command>m4 </command></term>
  51. <listitem>
  52. <para>copies the given files while expanding the macros that they
  53. contain. These macros are either built-in or user-defined and can
  54. take any number of arguments. Besides performing macro expansion,
  55. <command>m4</command> has built-in functions for including named
  56. files, running Unix commands, performing integer arithmetic,
  57. manipulating text, recursion, etc. The <command>m4</command> program
  58. can be used either as a front-end to a compiler or as a macro processor
  59. in its own right.</para>
  60. <indexterm zone="ch-system-m4 m4">
  61. <primary sortas="b-m4">m4</primary>
  62. </indexterm>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </sect2>
  67. </sect1>