|
@@ -23,8 +23,8 @@
|
|
<sect2 role="package">
|
|
<sect2 role="package">
|
|
<title/>
|
|
<title/>
|
|
|
|
|
|
- <para>The Autoconf package contains programs for producing shell scripts that
|
|
|
|
- can automatically configure source code.</para>
|
|
|
|
|
|
+ <para>Autoconf 软件包包含生成能自动配置软件包的 shell
|
|
|
|
+ 脚本的程序。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -39,7 +39,7 @@
|
|
</sect2>
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
<sect2 role="installation">
|
|
- <title>安装Autoconf</title>
|
|
|
|
|
|
+ <title>安装 Autoconf</title>
|
|
|
|
|
|
<para>准备安装 Autoconf:</para>
|
|
<para>准备安装 Autoconf:</para>
|
|
|
|
|
|
@@ -53,16 +53,25 @@
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
|
|
|
|
|
- <para>This takes a long time, about &autoconf-ch6-sbu-tests; SBUs. In addition,
|
|
|
|
|
|
+ <!--para>这需要比较长的时间,大约 &autoconf-ch6-sbu-tests; SBUs. In addition,
|
|
several tests are skipped that use Automake. For full test coverage,
|
|
several tests are skipped that use Automake. For full test coverage,
|
|
Autoconf can be re-tested after Automake has been installed. In addition,
|
|
Autoconf can be re-tested after Automake has been installed. In addition,
|
|
- two tests fail due to changes in libtool-2.4.3 and later.</para>
|
|
|
|
|
|
+ two tests fail due to changes in libtool-2.4.3 and later.</para-->
|
|
|
|
|
|
- <note><para>The test time for autoconf can be reduced significantly on a
|
|
|
|
|
|
+ <para>这需要消耗大约 &autoconf-ch6-sbu-tests; SBU 的较长时间。
|
|
|
|
+ 另外,某些使用 Automake 的测试会被跳过。
|
|
|
|
+ 为了完整的测试覆盖率,可以在安装 Automake 后重新测试 Autoconf。
|
|
|
|
+ 此外,还有两个测试由于 libtool-2.4.3 及更新版本的变化而失败。</para>
|
|
|
|
+
|
|
|
|
+ <!--note><para>The test time for autoconf can be reduced significantly on a
|
|
system with multiple cores. To do this, append
|
|
system with multiple cores. To do this, append
|
|
<command>TESTSUITEFLAGS=-j<N></command> to the line above. For
|
|
<command>TESTSUITEFLAGS=-j<N></command> to the line above. For
|
|
instance, using -j4 can reduce the test time by over 60
|
|
instance, using -j4 can reduce the test time by over 60
|
|
- percent.</para></note>
|
|
|
|
|
|
+ percent.</para></note-->
|
|
|
|
+ <note><para>在多核系统上,可以显著减少 autoconf 的测试时间。
|
|
|
|
+ 为此,在以上命令的末尾附加
|
|
|
|
+ <command>TESTSUITEFLAGS=-j<N></command> 选项。
|
|
|
|
+ 例如,使用 -j4 可以减少超过 60% 的测试时间。</para></note>
|
|
|
|
|
|
<para>安装该软件包:</para>
|
|
<para>安装该软件包:</para>
|
|
|
|
|
|
@@ -79,7 +88,7 @@
|
|
|
|
|
|
<seglistitem>
|
|
<seglistitem>
|
|
<seg>autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
|
|
<seg>autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
|
|
- and ifnames</seg>
|
|
|
|
|
|
+ 以及 ifnames</seg>
|
|
<seg>/usr/share/autoconf</seg>
|
|
<seg>/usr/share/autoconf</seg>
|
|
</seglistitem>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
</segmentedlist>
|
|
@@ -92,10 +101,14 @@
|
|
<varlistentry id="autoconf">
|
|
<varlistentry id="autoconf">
|
|
<term><command>autoconf</command></term>
|
|
<term><command>autoconf</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Produces shell scripts that automatically configure software
|
|
|
|
|
|
+ <!--para>Produces shell scripts that automatically configure software
|
|
source code packages to adapt to many kinds of Unix-like systems;
|
|
source code packages to adapt to many kinds of Unix-like systems;
|
|
the configuration scripts it produces are independent—running
|
|
the configuration scripts it produces are independent—running
|
|
- them does not require the <command>autoconf</command> program</para>
|
|
|
|
|
|
+ them does not require the <command>autoconf</command> program</para-->
|
|
|
|
+ <para>产生自动配置软件源码包,使其适用于多种类 Unix 系统的
|
|
|
|
+ shell 脚本;它产生的脚本可以独立运行 —— 运行它们不需要
|
|
|
|
+ <command>autoconf</command> 程序。</para>
|
|
|
|
+
|
|
<indexterm zone="ch-system-autoconf autoconf">
|
|
<indexterm zone="ch-system-autoconf autoconf">
|
|
<primary sortas="b-autoconf">autoconf</primary>
|
|
<primary sortas="b-autoconf">autoconf</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -105,8 +118,8 @@
|
|
<varlistentry id="autoheader">
|
|
<varlistentry id="autoheader">
|
|
<term><command>autoheader</command> </term>
|
|
<term><command>autoheader</command> </term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>A tool for creating template files of C
|
|
|
|
- <emphasis>#define</emphasis> statements for configure to use</para>
|
|
|
|
|
|
+ <para>一个创建 C <emphasis>#define</emphasis> 预处理指令的模板,
|
|
|
|
+ 以供配置脚本使用的程序</para>
|
|
<indexterm zone="ch-system-autoconf autoheader">
|
|
<indexterm zone="ch-system-autoconf autoheader">
|
|
<primary sortas="b-autoheader">autoheader</primary>
|
|
<primary sortas="b-autoheader">autoheader</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -116,7 +129,7 @@
|
|
<varlistentry id="autom4te">
|
|
<varlistentry id="autom4te">
|
|
<term><command>autom4te</command></term>
|
|
<term><command>autom4te</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>A wrapper for the M4 macro processor</para>
|
|
|
|
|
|
+ <para>M4 宏处理器的封装器</para>
|
|
<indexterm zone="ch-system-autoconf autom4te">
|
|
<indexterm zone="ch-system-autoconf autom4te">
|
|
<primary sortas="b-autom4te">autom4te</primary>
|
|
<primary sortas="b-autom4te">autom4te</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -126,12 +139,12 @@
|
|
<varlistentry id="autoreconf">
|
|
<varlistentry id="autoreconf">
|
|
<term><command>autoreconf</command></term>
|
|
<term><command>autoreconf</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Automatically runs <command>autoconf</command>,
|
|
|
|
- <command>autoheader</command>, <command>aclocal</command>,
|
|
|
|
- <command>automake</command>, <command>gettextize</command>, and
|
|
|
|
- <command>libtoolize</command> in the correct order to save time
|
|
|
|
- when changes are made to <command>autoconf</command> and
|
|
|
|
- <command>automake</command> template files</para>
|
|
|
|
|
|
+ <para>在 <command>autoconf</command> 和
|
|
|
|
+ <command>automake</command> 模板文件发生变化时,
|
|
|
|
+ 按照正确顺序自动运行 <command>autoconf</command>、
|
|
|
|
+ <command>autoheader</command>、<command>aclocal</command>、
|
|
|
|
+ <command>automake</command>、<command>gettextize</command>, 以及
|
|
|
|
+ <command>libtoolize</command>,以便节省时间。</para>
|
|
<indexterm zone="ch-system-autoconf autoreconf">
|
|
<indexterm zone="ch-system-autoconf autoreconf">
|
|
<primary sortas="b-autoreconf">autoreconf</primary>
|
|
<primary sortas="b-autoreconf">autoreconf</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -141,12 +154,10 @@
|
|
<varlistentry id="autoscan">
|
|
<varlistentry id="autoscan">
|
|
<term><command>autoscan</command> </term>
|
|
<term><command>autoscan</command> </term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Helps to create a <filename>configure.in</filename> file for a
|
|
|
|
- software package; it examines the source files in a directory tree,
|
|
|
|
- searching them for common portability issues, and creates a
|
|
|
|
- <filename>configure.scan</filename> file that serves as as a
|
|
|
|
- preliminary <filename>configure.in</filename> file for the
|
|
|
|
- package</para>
|
|
|
|
|
|
+ <para>帮助用户为软件包创建<filename>configure.in</filename> 文件;
|
|
|
|
+ 它检验目录树中的源代码文件,在其中找出一般的移植性问题,
|
|
|
|
+ 然后创建一个 <filename>configure.scan</filename> 文件,
|
|
|
|
+ 作为软件包的原始 <filename>configure.in</filename> 文件</para>
|
|
<indexterm zone="ch-system-autoconf autoscan">
|
|
<indexterm zone="ch-system-autoconf autoscan">
|
|
<primary sortas="b-autoscan">autoscan</primary>
|
|
<primary sortas="b-autoscan">autoscan</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -156,9 +167,9 @@
|
|
<varlistentry id="autoupdate">
|
|
<varlistentry id="autoupdate">
|
|
<term><command>autoupdate</command></term>
|
|
<term><command>autoupdate</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Modifies a <filename>configure.in</filename> file that still
|
|
|
|
- calls <command>autoconf</command> macros by their old names to use the
|
|
|
|
- current macro names</para>
|
|
|
|
|
|
+ <para>修改仍然使用 <command>autoconf</command>
|
|
|
|
+ 宏的旧名称调用它们的 <filename>configure.in</filename> 文件,
|
|
|
|
+ 使它使用当前的宏名</para>
|
|
<indexterm zone="ch-system-autoconf autoupdate">
|
|
<indexterm zone="ch-system-autoconf autoupdate">
|
|
<primary sortas="b-autoupdate">autoupdate</primary>
|
|
<primary sortas="b-autoupdate">autoupdate</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -168,13 +179,20 @@
|
|
<varlistentry id="ifnames">
|
|
<varlistentry id="ifnames">
|
|
<term><command>ifnames</command> </term>
|
|
<term><command>ifnames</command> </term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Helps when writing <filename>configure.in</filename> files
|
|
|
|
|
|
+ <!--para>Helps when writing <filename>configure.in</filename> files
|
|
for a software package; it prints the identifiers that the package
|
|
for a software package; it prints the identifiers that the package
|
|
uses in C preprocessor conditionals [If a package has already been set
|
|
uses in C preprocessor conditionals [If a package has already been set
|
|
up to have some portability, this program can help determine what
|
|
up to have some portability, this program can help determine what
|
|
<command>configure</command> needs to check for. It can also fill in
|
|
<command>configure</command> needs to check for. It can also fill in
|
|
gaps in a <filename>configure.in</filename> file generated by
|
|
gaps in a <filename>configure.in</filename> file generated by
|
|
- <command>autoscan</command>.]</para>
|
|
|
|
|
|
+ <command>autoscan</command>.]</para-->
|
|
|
|
+ <para>帮助用户为软件包编写 <filename>configure.in</filename>;
|
|
|
|
+ 它打印软件包在 C 预处理器条件中使用的所有标识符
|
|
|
|
+ [如果一个软件包已经被设定为有一定的可移植性,
|
|
|
|
+ 该程序可以帮助确定 <command>configure</command>
|
|
|
|
+ 需要进行哪些测试。它也会填充 <command>autoscan</command>
|
|
|
|
+ 生成的 <filename>configure.in</filename> 中留下的空隙。
|
|
|
|
+ </para>
|
|
<indexterm zone="ch-system-autoconf ifnames">
|
|
<indexterm zone="ch-system-autoconf ifnames">
|
|
<primary sortas="b-ifnames">ifnames</primary>
|
|
<primary sortas="b-ifnames">ifnames</primary>
|
|
</indexterm>
|
|
</indexterm>
|