Home Explore Blog Models 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
66b89f3d (1st chunk of `doc/hooks/autoconf.section.md`)
Title: Autoconf: The autoreconfHook
Summary
The `autoreconfHook` derivation introduces the `autoreconfPhase`, which executes `autoreconf`, `libtoolize`, and `automake` to generate the `configure` script for autotools-based builds. While most packages include a pre-generated `configure` script, this hook is crucial for certain packages and when modifications to the package's `configure` scripts are required.