m4.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-m4" xreflabel="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, 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>And 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><title>Short descriptions</title>
  40. <varlistentry id="m4">
  41. <term><command>m4</command></term>
  42. <listitem>
  43. <indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
  44. <para>copies the given files
  45. while expanding the macros that they contain. These macros are either built-in
  46. or user-defined and can take any number of arguments. Besides just doing macro
  47. expansion, <command>m4</command> has built-in functions for including named files, running Unix
  48. commands, doing integer arithmetic, manipulating text in various ways,
  49. recursion, and so on. The <command>m4</command> program can be used either as a front-end to a
  50. compiler or as a macro processor in its own right.</para>
  51. </listitem>
  52. </varlistentry>
  53. </variablelist>
  54. </sect2>
  55. </sect1>