Home Explore Blog CI



nixpkgs

doc/hooks/autoconf.section.md
5b0be5e99c17d816e587d6a2056b2a028dc018c0551fef5f0000000300000189
# Autoconf {#setup-hook-autoconf}

The `autoreconfHook` derivation adds `autoreconfPhase`, which runs autoreconf, libtoolize and automake, essentially preparing the configure script in autotools-based builds. Most autotools-based packages come with the configure script pre-generated, but this hook is necessary for a few packages and when you need to patch the package’s configure scripts.

Chunks
8312f985 (1st chunk of `doc/hooks/autoconf.section.md`)
Title: Autoconf Setup Hook
Summary
The `autoreconfHook` derivation provides the `autoreconfPhase` which executes autoreconf, libtoolize, and automake. This prepares the configure script for autotools-based builds, and is useful for packages that don't include a pre-generated configure script, or when configure scripts need to be patched.