Chapter 1. Configuring The Build — autoconf

Table of Contents

1. M4sh
2. Canonical Systems
3. Adding Options
4. Finding Libraries
5. Custom Autoconf Tests
6. Autoconf Building Blocks: Macros
7. Caching Results

Configuring the build consists of running a series of tests to identify the build environment and the presence of the required tools and libraries. It is a crucial step in allowing portability between different operating systems to detect this build environment system. In the autotools chain, this is done by the autoconf tool.

The autoconf tool translates a configure.ac file, written in a mixture of m4 and shell scripting, into a configure POSIX shell script that executes the tests that determines what the build environment is.