[3f8be484] | 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 | <!ENTITY % patches-entities SYSTEM "../../patches.ent"> |
---|
| 6 | %general-entities; |
---|
| 7 | %patches-entities; |
---|
| 8 | ]> |
---|
| 9 | |
---|
| 10 | <sect1 id="ch-system-m4" role="wrap"> |
---|
| 11 | <?dbhtml filename="m4.html"?> |
---|
| 12 | |
---|
| 13 | <title>M4-&m4-version;</title> |
---|
| 14 | |
---|
| 15 | <indexterm zone="ch-system-m4"> |
---|
| 16 | <primary sortas="a-M4">M4</primary> |
---|
| 17 | </indexterm> |
---|
| 18 | |
---|
| 19 | <sect2 role="package"> |
---|
| 20 | <title/> |
---|
| 21 | |
---|
| 22 | <para>The M4 package contains a macro processor.</para> |
---|
| 23 | |
---|
| 24 | <segmentedlist> |
---|
| 25 | <segtitle>&dependencies;</segtitle> |
---|
| 26 | |
---|
| 27 | <seglistitem> |
---|
| 28 | <seg>Bash, Binutils, Coreutils, Diffutils, GCC, |
---|
| 29 | Gettext, Glibc, Grep, Make, Perl, and Sed</seg> |
---|
| 30 | </seglistitem> |
---|
| 31 | </segmentedlist> |
---|
| 32 | |
---|
| 33 | </sect2> |
---|
| 34 | |
---|
| 35 | <sect2 role="installation"> |
---|
| 36 | <title>Installation of M4</title> |
---|
| 37 | |
---|
| 38 | <para>Prepare M4 for compilation:</para> |
---|
| 39 | |
---|
| 40 | <screen><userinput>./configure --prefix=/usr</userinput></screen> |
---|
| 41 | |
---|
| 42 | <para>Compile the package:</para> |
---|
| 43 | |
---|
| 44 | <screen><userinput>make</userinput></screen> |
---|
| 45 | |
---|
| 46 | <para>To test the results, issue: |
---|
| 47 | <userinput>make check</userinput>.</para> |
---|
| 48 | |
---|
| 49 | <para>Install the package:</para> |
---|
| 50 | |
---|
| 51 | <screen><userinput>make install</userinput></screen> |
---|
| 52 | |
---|
| 53 | </sect2> |
---|
| 54 | |
---|
| 55 | <sect2 id="contents-m4" role="content"> |
---|
| 56 | <title>Contents of M4</title> |
---|
| 57 | |
---|
| 58 | <segmentedlist> |
---|
| 59 | <segtitle>Installed program</segtitle> |
---|
| 60 | |
---|
| 61 | <seglistitem> |
---|
| 62 | <seg>m4</seg> |
---|
| 63 | </seglistitem> |
---|
| 64 | </segmentedlist> |
---|
| 65 | |
---|
| 66 | <variablelist> |
---|
| 67 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 68 | <?dbfo list-presentation="list"?> |
---|
| 69 | <?dbhtml list-presentation="table"?> |
---|
| 70 | |
---|
| 71 | <varlistentry id="m4"> |
---|
| 72 | <term><command>m4</command></term> |
---|
| 73 | <listitem> |
---|
| 74 | <para>copies the given files while expanding the macros that they |
---|
| 75 | contain. These macros are either built-in or user-defined and can |
---|
| 76 | take any number of arguments. Besides performing macro expansion, |
---|
| 77 | <command>m4</command> has built-in functions for including named |
---|
| 78 | files, running Unix commands, performing integer arithmetic, |
---|
| 79 | manipulating text, recursion, etc. The <command>m4</command> |
---|
| 80 | program can be used either as a front-end to a compiler or as a |
---|
| 81 | macro processor in its own right.</para> |
---|
| 82 | <indexterm zone="ch-system-m4 m4"> |
---|
| 83 | <primary sortas="b-m4">m4</primary> |
---|
| 84 | </indexterm> |
---|
| 85 | </listitem> |
---|
| 86 | </varlistentry> |
---|
| 87 | |
---|
| 88 | </variablelist> |
---|
| 89 | |
---|
| 90 | </sect2> |
---|
| 91 | |
---|
| 92 | </sect1> |
---|