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