Configure script

This is an old revision of this page, as edited by SieBot (talk | contribs) at 02:29, 9 April 2007 (robot Adding: tr:Configure). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Configure scripts are generated by the Autotools suite of build management tools. These scripts query the system on which they run for environment settings, platform architecture, and the existence and ___location of required build and runtime dependencies. They then use the gathered intel to process and fill out templates, customarily ending in .in. After successful completion, it is common for configure scripts to print a report to the developer invoking them.

Flow diagram including configure, autoconf and automake, three tools in the GNU build system

Because of the platform independence and broad developer experience with the configure script interface, many popular pieces of free software and proprietary software use this system during their system detection and makefile generation phase. After configure scripts have been created, building software that makes use of them is as simple as

./configure && make && make install

Free software that uses configure

Proprietary software that uses configure

(These are difficult to cite due to the nature of proprietary software.)

Dependency checking

In new development, library dependency checking has been done in great part using pkg-config via the m4 macro, PKG_CHECK_MODULES. Prior to pkg-config's popularity, separate m4 macros were created to locate files known to be included in the distribution of libraries depended upon.