2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect1 id="ch-system-m4" xreflabel="M4" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>M4-&m4-version;</title>
|
|
|
|
<?dbhtml filename="m4.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-m4"><primary sortas="a-M4">M4</primary></indexterm>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The M4 package contains a macro processor.</para>
|
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>M4 installation depends on</segtitle>
|
|
|
|
<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC,
|
|
|
|
Gettext, Glibc, Grep, Make, Perl, Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of M4</title>
|
|
|
|
|
|
|
|
<para>Prepare M4 for compilation:</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>To test the results, issue:
|
2004-02-07 10:48:55 +00:00
|
|
|
<userinput>make check</userinput>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>And install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-m4" role="content"><title>Contents of M4</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed program</segtitle>
|
|
|
|
<seglistitem><seg>m4</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<variablelist><title>Short descriptions</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="m4">
|
|
|
|
<term><command>m4</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>copies the given files
|
2004-05-03 11:59:46 +01:00
|
|
|
while expanding the macros that they contain. These macros are either built-in
|
|
|
|
or user-defined and can take any number of arguments. Besides just doing macro
|
|
|
|
expansion, m4 has built-in functions for including named files, running Unix
|
|
|
|
commands, doing integer arithmetic, manipulating text in various ways,
|
|
|
|
recursion, and so on. The m4 program can be used either as a front-end to a
|
|
|
|
compiler or as a macro processor in its own right.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|