nixpkgs/pkgs/build-support/setup-hooks/autoreconf.sh
Yueh-Shun Li 5d42a8b38c treewide: handle preConfigurePhases __structuredAttrs-agnostically
Always specify the preConfigurePhases attribute as a list instead of a
string.

Append elements to the preConfigurePhases Bash variable using
appendToVar instead of string or Bash array concatenation.
2024-09-03 05:33:59 +08:00

16 lines
331 B
Bash

appendToVar preConfigurePhases autoreconfPhase
autoreconfPhase() {
runHook preAutoreconf
local flagsArray=()
if [[ -v autoreconfFlags ]]; then
concatTo flagsArray autoreconfFlags
else
flagsArray+=(--install --force --verbose)
fi
autoreconf "${flagsArray[@]}"
runHook postAutoreconf
}