1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE section [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
7 | xml:id="ch-system-autoconf" xreflabel="Autoconf" role="wrap">
|
---|
8 | <info><title>Autoconf-&autoconf-version;</title></info>
|
---|
9 | <?dbhtml filename="autoconf.html"?>
|
---|
10 |
|
---|
11 | <indexterm zone="ch-system-autoconf"><primary sortas="a-Autoconf">Autoconf</primary></indexterm>
|
---|
12 |
|
---|
13 | <section role="package"><info><title/></info>
|
---|
14 | <para>The Autoconf package contains programs for producing shell scripts that
|
---|
15 | can automatically configure source code.</para>
|
---|
16 |
|
---|
17 | <segmentedlist>
|
---|
18 | <segtitle>&buildtime;</segtitle>
|
---|
19 | <segtitle>&diskspace;</segtitle>
|
---|
20 | <seglistitem><seg>0.5 SBU</seg><seg>7.7 MB</seg></seglistitem>
|
---|
21 | </segmentedlist>
|
---|
22 |
|
---|
23 | <segmentedlist>
|
---|
24 | <segtitle>Autoconf installation depends on</segtitle>
|
---|
25 | <seglistitem><seg>Bash, Coreutils, Diffutils, Grep,
|
---|
26 | M4, Make, Perl, Sed</seg></seglistitem>
|
---|
27 | </segmentedlist>
|
---|
28 | </section>
|
---|
29 |
|
---|
30 | <section role="installation">
|
---|
31 | <info><title>Installation of Autoconf</title></info>
|
---|
32 |
|
---|
33 | <para>Prepare Autoconf for compilation:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
36 |
|
---|
37 | <para>Compile the package:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>make</userinput></screen>
|
---|
40 |
|
---|
41 | <para>To test the results, issue:
|
---|
42 | <userinput>make check</userinput>. This takes a long time, about 2 SBUs.</para>
|
---|
43 |
|
---|
44 | <para>Install the package:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>make install</userinput></screen>
|
---|
47 |
|
---|
48 | </section>
|
---|
49 |
|
---|
50 |
|
---|
51 | <section xml:id="contents-autoconf" role="content"><info><title>Contents of Autoconf</title></info>
|
---|
52 |
|
---|
53 | <segmentedlist>
|
---|
54 | <segtitle>Installed programs</segtitle>
|
---|
55 | <seglistitem><seg>autoconf, autoheader, autom4te,
|
---|
56 | autoreconf, autoscan, autoupdate and ifnames</seg></seglistitem>
|
---|
57 | </segmentedlist>
|
---|
58 |
|
---|
59 | <variablelist><title>Short descriptions</title>
|
---|
60 |
|
---|
61 | <varlistentry xml:id="autoconf">
|
---|
62 | <term><command>autoconf</command></term>
|
---|
63 | <listitem>
|
---|
64 | <indexterm zone="ch-system-autoconf autoconf"><primary sortas="b-autoconf">autoconf</primary></indexterm>
|
---|
65 | <para>is a tool for producing shell scripts
|
---|
66 | that automatically configure software source code packages to adapt to many
|
---|
67 | kinds of Unix-like systems. The configuration scripts it produces are
|
---|
68 | independent -- running them does not require the autoconf program.</para>
|
---|
69 | </listitem>
|
---|
70 | </varlistentry>
|
---|
71 |
|
---|
72 | <varlistentry xml:id="autoheader">
|
---|
73 | <term><command>autoheader</command> </term>
|
---|
74 | <listitem>
|
---|
75 | <indexterm zone="ch-system-autoconf autoheader"><primary sortas="b-autoheader">autoheader</primary></indexterm>
|
---|
76 | <para>is a tool for creating template files
|
---|
77 | of C #define statements for configure to use.</para>
|
---|
78 | </listitem>
|
---|
79 | </varlistentry>
|
---|
80 |
|
---|
81 | <varlistentry xml:id="autom4te">
|
---|
82 | <term><command>autom4te</command></term>
|
---|
83 | <listitem>
|
---|
84 | <indexterm zone="ch-system-autoconf autom4te"><primary sortas="b-autom4te">autom4te</primary></indexterm>
|
---|
85 | <para>is a wrapper for the M4 macro processor.</para>
|
---|
86 | </listitem>
|
---|
87 | </varlistentry>
|
---|
88 |
|
---|
89 | <varlistentry xml:id="autoreconf">
|
---|
90 | <term><command>autoreconf</command></term>
|
---|
91 | <listitem>
|
---|
92 | <indexterm zone="ch-system-autoconf autoreconf"><primary sortas="b-autoreconf">autoreconf</primary></indexterm>
|
---|
93 | <para>comes in handy when there are a lot
|
---|
94 | of autoconf-generated configure scripts around. The program runs autoconf and
|
---|
95 | autoheader repeatedly (where appropriate) to remake the autoconf configure
|
---|
96 | scripts and configuration header templates in a given directory tree.</para>
|
---|
97 | </listitem>
|
---|
98 | </varlistentry>
|
---|
99 |
|
---|
100 | <varlistentry xml:id="autoscan">
|
---|
101 | <term><command>autoscan</command> </term>
|
---|
102 | <listitem>
|
---|
103 | <indexterm zone="ch-system-autoconf autoscan"><primary sortas="b-autoscan">autoscan</primary></indexterm>
|
---|
104 | <para>can help to create a
|
---|
105 | <filename>configure.in</filename> file for a software package. It examines
|
---|
106 | the source files in a directory tree, searching them for common portability
|
---|
107 | problems and creates a <filename>configure.scan</filename> file that serves as
|
---|
108 | as a preliminary <filename>configure.in</filename> for the package.</para>
|
---|
109 | </listitem>
|
---|
110 | </varlistentry>
|
---|
111 |
|
---|
112 | <varlistentry xml:id="autoupdate">
|
---|
113 | <term><command>autoupdate</command></term>
|
---|
114 | <listitem>
|
---|
115 | <indexterm zone="ch-system-autoconf autoupdate"><primary sortas="b-autoupdate">autoupdate</primary></indexterm>
|
---|
116 | <para>modifies a <filename>configure.in</filename> file that still calls autoconf
|
---|
117 | macros by their old names to use the current macro names.</para>
|
---|
118 | </listitem>
|
---|
119 | </varlistentry>
|
---|
120 |
|
---|
121 | <varlistentry xml:id="ifnames">
|
---|
122 | <term><command>ifnames</command> </term>
|
---|
123 | <listitem>
|
---|
124 | <indexterm zone="ch-system-autoconf ifnames"><primary sortas="b-ifnames">ifnames</primary></indexterm>
|
---|
125 | <para>can be helpful when writing a
|
---|
126 | <filename>configure.in</filename> for a software package. It prints the
|
---|
127 | identifiers that the package uses in C preprocessor conditionals. If a package
|
---|
128 | has already been set up to have some portability, this program can help to
|
---|
129 | determine what <command>configure</command> needs to check. It can fill
|
---|
130 | in some gaps in a <filename>configure.in</filename> file generated by
|
---|
131 | autoscan.</para>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 | </variablelist>
|
---|
135 |
|
---|
136 | </section>
|
---|
137 |
|
---|
138 | </section>
|
---|