Differences between revisions 13 and 15 (spanning 2 versions)
Revision 13 as of 2010-12-22 14:51:15
Size: 1818
Editor: ?jeka
Comment:
Revision 15 as of 2020-04-15 03:40:19
Size: 2579
Editor: PaulWise
Comment: link to the official Autoconf manual too
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 {{{ {{{
Line 13: Line 13:

=== Regenerating ===

The `autoreconf` tool can be used to regenerate the configure script from the source files. Additional software such as autoconf-archive may be needed in order to do this. The following command is recommended when regenerating the configure script and other related files.

{{{
autoreconf --force --install --symlink
}}}

Debian package builds automatically regenerate the configure script via debhelper and dh-autoreconf.
Line 36: Line 46:
 {{{
 cd ~
 mkdir foobuild
 cd foobuild
 ../foobar/configure
{{{
cd ~
mkdir foobuild
cd foobuild
../foobar/configure
Line 45: Line 55:
[[http://markhobley.yi.org/gnu/autotools/goatbook/autobook_14.html|Command line options for a configure script]]

[[http://markhobley.yi.org/gnu/autotools/goatbook/autobook_15.html|Files generated by the configure script]]
 * [[https://www.gnu.org/software/autoconf/manual/|Autoconf manual]]
   * [[https://www.gnu.org/software/autoconf/manual/html_node/Running-configure-Scripts.html|Running configure scripts]]
 * [[https://www.sourceware.org/autobook/|The Goat Book]]: a book about now obsolete versions of the GNU autotools
   * [[https://www.sourceware.org/autobook/autobook/autobook_14.html|Command line options for a configure script]]
   * [[https://www.sourceware.org/autobook/autobook/autobook_15.html|Files generated by the configure script]]

Translation(s) : English - Русский

(!) ?Discussion

The configure script facilitates the discovery and configuration of the software building environment. Many source packages contain a configure script generated using the autoconf tool. The configure script is usually accompanied by a Makefile.in input file that is used to generate a Makefile with appropriate configuration options to compile and build the software package using Make. The configure script provides a simple and consistent way to build, compile and install the package from source code using a set of simple commands:

./configure
make
make check
make install

Regenerating

The autoreconf tool can be used to regenerate the configure script from the source files. Additional software such as autoconf-archive may be needed in order to do this. The following command is recommended when regenerating the configure script and other related files.

autoreconf --force --install --symlink

Debian package builds automatically regenerate the configure script via debhelper and dh-autoreconf.

Error Messages

configure: error: source directory already configured

run "make distclean" there first


configure: error: Too many levels of symbolic links
This error may occur when a third party configure script is being run within a subdirectory of the project directory: # This may produce an error on some systems:
 cd ~/foobar
 mkdir build
 cd build
 ../configure

 ../build/cmd/.config: Too many levels of symbolic links

Resolution

Use a build directory outside of the current project directory:

cd ~
mkdir foobuild
cd foobuild
../foobar/configure