1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-m4" role="wrap">
|
---|
9 | <?dbhtml filename="m4.html"?>
|
---|
10 |
|
---|
11 | <title>M4-&m4-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-m4">
|
---|
14 | <primary sortas="a-M4">M4</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The M4 package contains a macro processor.</para>
|
---|
21 |
|
---|
22 | </sect2>
|
---|
23 |
|
---|
24 | &env-target;
|
---|
25 |
|
---|
26 | <sect2 role="installation">
|
---|
27 | <title>Installation of M4</title>
|
---|
28 |
|
---|
29 | <para os="cc1">Configure can not properly determine the results of the
|
---|
30 | following tests:</para>
|
---|
31 |
|
---|
32 | <screen os="cc2"><userinput>cat > config.cache << EOF
|
---|
33 | gl_cv_func_btowc_eof=yes
|
---|
34 | gl_cv_func_mbrtowc_incomplete_state=yes
|
---|
35 | gl_cv_func_mbrtowc_sanitycheck=yes
|
---|
36 | gl_cv_func_mbrtowc_null_arg=yes
|
---|
37 | gl_cv_func_mbrtowc_retval=yes
|
---|
38 | gl_cv_func_mbrtowc_nul_retval=yes
|
---|
39 | gl_cv_func_wcrtomb_retval=yes
|
---|
40 | gl_cv_func_wctob_works=yes
|
---|
41 | EOF</userinput></screen>
|
---|
42 |
|
---|
43 | <para os="a">Prepare M4 for compilation:</para>
|
---|
44 |
|
---|
45 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
46 | --prefix=/usr --cache-file=config.cache</userinput></screen>
|
---|
47 |
|
---|
48 | <para os="c">Compile the package:</para>
|
---|
49 |
|
---|
50 | <screen os="d"><userinput>make</userinput></screen>
|
---|
51 |
|
---|
52 | <para os="e">Install the package:</para>
|
---|
53 |
|
---|
54 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|
58 | <sect2 id="contents-m4" role="content">
|
---|
59 | <title>Contents of M4</title>
|
---|
60 |
|
---|
61 | <segmentedlist>
|
---|
62 | <segtitle>Installed program</segtitle>
|
---|
63 |
|
---|
64 | <seglistitem>
|
---|
65 | <seg>m4</seg>
|
---|
66 | </seglistitem>
|
---|
67 | </segmentedlist>
|
---|
68 |
|
---|
69 | <variablelist>
|
---|
70 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
71 | <?dbfo list-presentation="list"?>
|
---|
72 | <?dbhtml list-presentation="table"?>
|
---|
73 |
|
---|
74 | <varlistentry id="m4">
|
---|
75 | <!-- Don't remove the extra space, it prevet a FOP warning. -->
|
---|
76 | <term><command>m4 </command></term>
|
---|
77 | <listitem>
|
---|
78 | <para>copies the given files while expanding the macros that they
|
---|
79 | contain. These macros are either built-in or user-defined and can
|
---|
80 | take any number of arguments. Besides performing macro expansion,
|
---|
81 | <command>m4</command> has built-in functions for including named
|
---|
82 | files, running Unix commands, performing integer arithmetic,
|
---|
83 | manipulating text, recursion, etc. The <command>m4</command>
|
---|
84 | program can be used either as a front-end to a compiler or as a
|
---|
85 | macro processor in its own right.</para>
|
---|
86 | <indexterm zone="ch-system-m4 m4">
|
---|
87 | <primary sortas="b-m4">m4</primary>
|
---|
88 | </indexterm>
|
---|
89 | </listitem>
|
---|
90 | </varlistentry>
|
---|
91 |
|
---|
92 | </variablelist>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | </sect1>
|
---|