autoconf.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. ]>
  6. <sect1 id="ch-system-autoconf" xreflabel="Autoconf" role="wrap">
  7. <title>Autoconf-&autoconf-version;</title>
  8. <?dbhtml filename="autoconf.html"?>
  9. <indexterm zone="ch-system-autoconf"><primary sortas="a-Autoconf">Autoconf</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Autoconf package contains programs for producing shell scripts that
  12. can automatically configure source code.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.5 SBU</seg><seg>7.7 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Autoconf installation depends on</segtitle>
  20. <seglistitem><seg>Bash, Coreutils, Diffutils, Grep,
  21. M4, Make, Perl, Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Autoconf</title>
  26. <para>Prepare Autoconf for compilation:</para>
  27. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  28. <para>Compile the package:</para>
  29. <screen><userinput>make</userinput></screen>
  30. <para>To test the results, issue:
  31. <userinput>make check</userinput>. This takes a long time, about 2 SBUs.</para>
  32. <para>Install the package:</para>
  33. <screen><userinput>make install</userinput></screen>
  34. </sect2>
  35. <sect2 id="contents-autoconf"><title>Contents of Autoconf</title>
  36. <para><emphasis>Installed programs</emphasis>: autoconf, autoheader, autom4te,
  37. autoreconf, autoscan, autoupdate and ifnames</para>
  38. </sect2>
  39. <sect2><title>Short descriptions</title>
  40. <indexterm zone="ch-system-autoconf autoconf"><primary sortas="b-autoconf">autoconf</primary></indexterm>
  41. <para id="autoconf"><command>autoconf</command> is a tool for producing shell scripts
  42. that automatically configure software source code packages to adapt to many
  43. kinds of Unix-like systems. The configuration scripts it produces are
  44. independent -- running them does not require the autoconf program.</para>
  45. <indexterm zone="ch-system-autoconf autoheader"><primary sortas="b-autoheader">autoheader</primary></indexterm>
  46. <para id="autoheader"><command>autoheader</command> is a tool for creating template files
  47. of C #define statements for configure to use.</para>
  48. <indexterm zone="ch-system-autoconf autom4te"><primary sortas="b-autom4te">autom4te</primary></indexterm>
  49. <para id="autom4te"><command>autom4te</command> is a wrapper for the M4 macro
  50. processor.</para>
  51. <indexterm zone="ch-system-autoconf autoreconf"><primary sortas="b-autoreconf">autoreconf</primary></indexterm>
  52. <para id="autoreconf"><command>autoreconf</command> comes in handy when there are a lot
  53. of autoconf-generated configure scripts around. The program runs autoconf and
  54. autoheader repeatedly (where appropriate) to remake the autoconf configure
  55. scripts and configuration header templates in a given directory tree.</para>
  56. <indexterm zone="ch-system-autoconf autoscan"><primary sortas="b-autoscan">autoscan</primary></indexterm>
  57. <para id="autoscan"><command>autoscan</command> can help to create a
  58. <filename>configure.in</filename> file for a software package. It examines
  59. the source files in a directory tree, searching them for common portability
  60. problems and creates a <filename>configure.scan</filename> file that serves as
  61. as a preliminary <filename>configure.in</filename> for the package.</para>
  62. <indexterm zone="ch-system-autoconf autoupdate"><primary sortas="b-autoupdate">autoupdate</primary></indexterm>
  63. <para id="autoupdate"><command>autoupdate</command> modifies a
  64. <filename>configure.in</filename> file that still calls autoconf macros
  65. by their old names to use the current macro names.</para>
  66. <indexterm zone="ch-system-autoconf ifnames"><primary sortas="b-ifnames">ifnames</primary></indexterm>
  67. <para id="ifnames"><command>ifnames</command> can be helpful when writing a
  68. <filename>configure.in</filename> for a software package. It prints the
  69. identifiers that the package uses in C preprocessor conditionals. If a package
  70. has already been set up to have some portability, this program can help to
  71. determine what <command>configure</command> needs to check. It can fill
  72. in some gaps in a <filename>configure.in</filename> file generated by
  73. autoscan.</para>
  74. </sect2>
  75. </sect1>