m4.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>0.1 SBU</seg>
  21. <seg>2.8 MB</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. <segmentedlist>
  25. <segtitle>&dependencies;</segtitle>
  26. <seglistitem>
  27. <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
  28. Grep, Make, Perl, and Sed</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of M4</title>
  34. <para>Prepare M4 for compilation:</para>
  35. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  36. <para>Compile the package:</para>
  37. <screen><userinput>make</userinput></screen>
  38. <para>To test the results, issue:
  39. <userinput>make check</userinput>.</para>
  40. <para>Install the package:</para>
  41. <screen><userinput>make install</userinput></screen>
  42. </sect2>
  43. <sect2 id="contents-m4" role="content">
  44. <title>Contents of M4</title>
  45. <segmentedlist>
  46. <segtitle>Installed program</segtitle>
  47. <seglistitem>
  48. <seg>m4</seg>
  49. </seglistitem>
  50. </segmentedlist>
  51. <variablelist>
  52. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  53. <?dbfo list-presentation="list"?>
  54. <?dbhtml list-presentation="table"?>
  55. <varlistentry id="m4">
  56. <term><command>m4</command></term>
  57. <listitem>
  58. <para>copies the given files while expanding the macros that they
  59. contain. These macros are either built-in or user-defined and can
  60. take any number of arguments. Besides performing macro expansion,
  61. <command>m4</command> has built-in functions for including named
  62. files, running Unix commands, performing integer arithmetic,
  63. manipulating text, recursion, etc. The <command>m4</command> program
  64. can be used either as a front-end to a compiler or as a macro processor
  65. in its own right.</para>
  66. <indexterm zone="ch-system-m4 m4">
  67. <primary sortas="b-m4">m4</primary>
  68. </indexterm>
  69. </listitem>
  70. </varlistentry>
  71. </variablelist>
  72. </sect2>
  73. </sect1>