source: chapter06/m4.xml@ 0c81bec

Last change on this file since 0c81bec was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-m4" xreflabel="M4" role="wrap">
[6a0e6f3]8<title>M4-&m4-version;</title>
[673b0d8]9<?dbhtml filename="m4.html"?>
10
11<indexterm zone="ch-system-m4"><primary sortas="a-M4">M4</primary></indexterm>
[6370fa6]12
[6a0e6f3]13<section role="package"><title/>
[5888299]14<para>The M4 package contains a macro processor.</para>
15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>3.0 MB</seg></seglistitem>
20</segmentedlist>
[673b0d8]21
[a001133]22<segmentedlist>
23<segtitle>M4 installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC,
25Gettext, Glibc, Grep, Make, Perl, Sed</seg></seglistitem>
26</segmentedlist>
[1fe35e1]27</section>
[3554fa3a]28
[1fe35e1]29<section role="installation">
[6a0e6f3]30<title>Installation of M4</title>
[73aedd1d]31
32<para>Prepare M4 for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr</userinput></screen>
35
36<para>Compile the package:</para>
37
38<screen><userinput>make</userinput></screen>
39
[673b0d8]40<para>To test the results, issue:
[8a5f906]41<userinput>make check</userinput>.</para>
[73aedd1d]42
43<para>And install the package:</para>
44
45<screen><userinput>make install</userinput></screen>
46
[1fe35e1]47</section>
[6370fa6]48
[5888299]49
[6a0e6f3]50<section xml:id="contents-m4" role="content"><title>Contents of M4</title>
[673b0d8]51
[c6cb3aa]52<segmentedlist>
53<segtitle>Installed program</segtitle>
54<seglistitem><seg>m4</seg></seglistitem>
55</segmentedlist>
[673b0d8]56
[c6cb3aa]57<variablelist><title>Short descriptions</title>
[6370fa6]58
[1fe35e1]59<varlistentry xml:id="m4">
[b8a819f]60<term><command>m4</command></term>
[c6cb3aa]61<listitem>
[673b0d8]62<indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
[c6cb3aa]63<para>copies the given files
[673b0d8]64while expanding the macros that they contain. These macros are either built-in
65or user-defined and can take any number of arguments. Besides just doing macro
[ef57e3b]66expansion, <command>m4</command> has built-in functions for including named files, running Unix
[673b0d8]67commands, doing integer arithmetic, manipulating text in various ways,
[ef57e3b]68recursion, and so on. The <command>m4</command> program can be used either as a front-end to a
[673b0d8]69compiler or as a macro processor in its own right.</para>
[c6cb3aa]70</listitem>
71</varlistentry>
72</variablelist>
[673b0d8]73
[1fe35e1]74</section>
[673b0d8]75
[1fe35e1]76</section>
Note: See TracBrowser for help on using the repository browser.