GNU - Autoconf process (configure)

Card Puncher Data Processing

About

Autoconf is a build tool for producing shell scripts that automatically configure software source code packages to adapt to many kinds of Posix-like systems.

For each software package that Autoconf is used with, it creates the configure configuration script from a template file that lists the system features that the package needs or can use.

The primary goal of Autoconf is making the user's life easier; making the maintainer's life easier is only a secondary goal.

Configure

The configuration scripts that Autoconf produces are by convention called configure.

Running configure script

The configure shell script attempts to guess correct values for various system-dependent variables used during compilation and then create:

  • a makefile in each directory of the package.
  • one or more .h files containing system-dependent definitions.
  • a shell script config.status that you can run in the future to recreate the current configuration,
  • a file config.log containing compiler output (useful mainly for debugging configure).
./configure --help
# Example: configure initial values for configuration parameters by setting variables 
# Running configure might take a while. While running, it prints some messages telling which features it is checking for.
./configure CC=c99 CFLAGS=-g LIBS=-lposix

The config.log file gives the flag used for a particular installation

Process

An install that uses the standard GNU autoconf process will be performed as follow:

To configure, build, and install a package:

./configure --help # for details 
./configure # Running configure might take a while. While running, it prints some messages telling which features it is checking for.
# or ?
# cmake -DCMAKE_INSTALL_PREFIX=/usr ../ 
make #  compile the package.
make check # Optional to run any self-tests
make install # install the programs and any data files and documentation
make clean # Optional remove the program binaries and object files from the source code directory
make distclean # Optional  remove the files that configure created
make uninstall # Optional to remove the installed files again

where:

Support

Log

The file config.log contains the configure command line and the compiler output (useful mainly for debugging configure).

Documentation / Reference





Discover More
Card Puncher Data Processing
Code Shipping - Build

Build tool are tools that takes your sources: compile it into a target format such as a compiled file for a language that is not interpreted an HTML or Word document for a markdown document ...
Postsrsd Spf Pass
How to install the Sender Rewriting Scheme (SRS) on PostFix?

This page is the installation of postsrsd which implements Sender Rewriting Scheme (SRS) for Postfix. It's mandatory if you forward emails via the alias functionality....
Card Puncher Data Processing
Python - Linux Installation of Python 2.7.13 next to another version

This page shows you how to install python next to the actual python system version. Python is generally controlled/distributed with the Linux distribution. Upgrading it may cause several defect in your...
Card Puncher Data Processing
UnixODBC - Installation

How to install UnixODBC Installation Verification With rpm With yum: The install uses the standard GNU autoconf process Installation: as root: Verification odbc manager ...



Share this page:
Follow us:
Task Runner