autoconf.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <sect1 id="ch-system-autoconf" role="wrap">
  8. <?dbhtml filename="autoconf.html"?>
  9. <sect1info condition="script">
  10. <productname>autoconf</productname>
  11. <productnumber>&autoconf-version;</productnumber>
  12. <address>&autoconf-url;</address>
  13. </sect1info>
  14. <title>Autoconf-&autoconf-version;</title>
  15. <indexterm zone="ch-system-autoconf">
  16. <primary sortas="a-Autoconf">Autoconf</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Autoconf 软件包包含生成能自动配置软件包的 shell
  21. 脚本的程序。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&autoconf-ch6-sbu;</seg>
  27. <seg>&autoconf-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Autoconf</title>
  33. <para>首先,修复 Perl 5.28 引入的 bug:</para>
  34. <screen><userinput remap="pre">sed '361 s/{/\\{/' -i bin/autoscan.in</userinput></screen>
  35. <para>准备编译 Autoconf:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  37. <para>编译该软件包:</para>
  38. <screen><userinput remap="make">make</userinput></screen>
  39. <para>目前由于 bash-5 和 libtool-2.4.3 的变化,测试套件无法正常工作。
  40. 如果无论如何要运行测试,执行命令:</para>
  41. <screen><userinput remap="test">make check</userinput></screen>
  42. <!--
  43. <para>这需要比较长的时间,大约 &autoconf-ch6-sbu-tests; SBU 。
  44. 另外,某些使用 Automake 的测试会被跳过。
  45. 为了完整的测试覆盖率,可以在安装 Automake 后重新测试 Autoconf。
  46. 此外,还有两个测试由于 libtool-2.4.3 及更新版本的变化而失败。</para>
  47. <note><para>在多核系统上,可以显著减少 autoconf 的测试时间。
  48. 为此,在以上命令的末尾附加
  49. <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> 选项。
  50. 例如,使用 -j4 可以减少超过 60% 的测试时间。</para></note>
  51. -->
  52. <para>安装该软件包:</para>
  53. <screen><userinput remap="install">make install</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-autoconf" role="content">
  56. <title>Autoconf 的内容</title>
  57. <segmentedlist>
  58. <segtitle>安装的程序</segtitle>
  59. <segtitle>安装的目录</segtitle>
  60. <seglistitem>
  61. <seg>autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
  62. 以及 ifnames</seg>
  63. <seg>/usr/share/autoconf</seg>
  64. </seglistitem>
  65. </segmentedlist>
  66. <variablelist>
  67. <bridgehead renderas="sect3">简要描述</bridgehead>
  68. <?dbfo list-presentation="list"?>
  69. <?dbhtml list-presentation="table"?>
  70. <varlistentry id="autoconf">
  71. <term><command>autoconf</command></term>
  72. <listitem>
  73. <!--para>Produces shell scripts that automatically configure software
  74. source code packages to adapt to many kinds of Unix-like systems;
  75. the configuration scripts it produces are independent&mdash;running
  76. them does not require the <command>autoconf</command> program</para-->
  77. <para>产生自动配置软件源码包,使其适用于多种类 Unix 系统的
  78. shell 脚本;它产生的脚本可以独立运行 —— 运行它们不需要
  79. <command>autoconf</command> 程序。</para>
  80. <indexterm zone="ch-system-autoconf autoconf">
  81. <primary sortas="b-autoconf">autoconf</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="autoheader">
  86. <term><command>autoheader</command> </term>
  87. <listitem>
  88. <para>一个创建 C <emphasis>#define</emphasis> 预处理指令的模板,
  89. 以供配置脚本使用的程序</para>
  90. <indexterm zone="ch-system-autoconf autoheader">
  91. <primary sortas="b-autoheader">autoheader</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="autom4te">
  96. <term><command>autom4te</command></term>
  97. <listitem>
  98. <para>M4 宏处理器的封装器</para>
  99. <indexterm zone="ch-system-autoconf autom4te">
  100. <primary sortas="b-autom4te">autom4te</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="autoreconf">
  105. <term><command>autoreconf</command></term>
  106. <listitem>
  107. <para>在 <command>autoconf</command> 和
  108. <command>automake</command> 模板文件发生变化时,
  109. 按照正确顺序自动运行 <command>autoconf</command>、
  110. <command>autoheader</command>、<command>aclocal</command>、
  111. <command>automake</command>、<command>gettextize</command>, 以及
  112. <command>libtoolize</command>,以便节省时间。</para>
  113. <indexterm zone="ch-system-autoconf autoreconf">
  114. <primary sortas="b-autoreconf">autoreconf</primary>
  115. </indexterm>
  116. </listitem>
  117. </varlistentry>
  118. <varlistentry id="autoscan">
  119. <term><command>autoscan</command> </term>
  120. <listitem>
  121. <para>帮助用户为软件包创建<filename>configure.in</filename> 文件;
  122. 它检验目录树中的源代码文件,在其中找出一般的移植性问题,
  123. 然后创建一个 <filename>configure.scan</filename> 文件,
  124. 作为软件包的原始 <filename>configure.in</filename> 文件</para>
  125. <indexterm zone="ch-system-autoconf autoscan">
  126. <primary sortas="b-autoscan">autoscan</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="autoupdate">
  131. <term><command>autoupdate</command></term>
  132. <listitem>
  133. <para>修改仍然使用 <command>autoconf</command>
  134. 宏的旧名称调用它们的 <filename>configure.in</filename> 文件,
  135. 使它使用当前的宏名</para>
  136. <indexterm zone="ch-system-autoconf autoupdate">
  137. <primary sortas="b-autoupdate">autoupdate</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="ifnames">
  142. <term><command>ifnames</command> </term>
  143. <listitem>
  144. <!--para>Helps when writing <filename>configure.in</filename> files
  145. for a software package; it prints the identifiers that the package
  146. uses in C preprocessor conditionals [If a package has already been set
  147. up to have some portability, this program can help determine what
  148. <command>configure</command> needs to check for. It can also fill in
  149. gaps in a <filename>configure.in</filename> file generated by
  150. <command>autoscan</command>.]</para-->
  151. <para>帮助用户为软件包编写 <filename>configure.in</filename>;
  152. 它打印软件包在 C 预处理器条件中使用的所有标识符
  153. [如果一个软件包已经被设定为有一定的可移植性,
  154. 该程序可以帮助确定 <command>configure</command>
  155. 需要进行哪些测试。它也会填充 <command>autoscan</command>
  156. 生成的 <filename>configure.in</filename> 中留下的空隙。]
  157. </para>
  158. <indexterm zone="ch-system-autoconf ifnames">
  159. <primary sortas="b-ifnames">ifnames</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. </variablelist>
  164. </sect2>
  165. </sect1>