m4.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-m4" role="wrap">
  7. <title>M4-&m4-version;</title>
  8. <?dbhtml filename="m4.html"?>
  9. <indexterm zone="ch-system-m4"><primary sortas="a-M4">M4</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The M4 package contains a macro processor.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>M4 installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC,
  20. Gettext, Glibc, Grep, Make, Perl, and Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of M4</title>
  25. <para>Prepare M4 for compilation:</para>
  26. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  27. <para>Compile the package:</para>
  28. <screen><userinput>make</userinput></screen>
  29. <para>To test the results, issue:
  30. <userinput>make check</userinput>.</para>
  31. <para>Install the package:</para>
  32. <screen><userinput>make install</userinput></screen>
  33. </sect2>
  34. <sect2 id="contents-m4" role="content"><title>Contents of M4</title>
  35. <segmentedlist>
  36. <segtitle>Installed program</segtitle>
  37. <seglistitem><seg>m4</seg></seglistitem>
  38. </segmentedlist>
  39. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  40. <?dbfo list-presentation="list"?>
  41. <varlistentry id="m4">
  42. <term><command>m4</command></term>
  43. <listitem>
  44. <para>copies the given files while expanding the macros that they
  45. contain. These macros are either built-in or user-defined and can take
  46. any number of arguments. Besides performing macro expansion,
  47. <command>m4</command> has
  48. built-in functions for including named files, running Unix commands,
  49. performing integer arithmetic, manipulating text, recursion, etc. The
  50. <command>m4</command> program can be used either as a front-end to a compiler or as a
  51. macro processor in its own right.</para>
  52. <indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
  53. </listitem>
  54. </varlistentry>
  55. </variablelist>
  56. </sect2>
  57. </sect1>