2015-05-18 09:33:39 +02:00
|
|
|
# This hook overrides config.sub and config.guess.
|
2015-03-22 19:09:14 +01:00
|
|
|
|
|
|
|
hook() {
|
2019-11-18 18:29:21 +01:00
|
|
|
local _cfgdir="${XBPS_COMMONDIR}/environment/configure/automake"
|
|
|
|
|
2015-03-22 19:09:14 +01:00
|
|
|
if [ -z "$build_style" -o "$build_style" = "gnu-configure" ]; then
|
|
|
|
for f in $(find ${wrksrc} -type f -name "*config*.sub"); do
|
2019-11-18 18:29:21 +01:00
|
|
|
cp -f ${_cfgdir}/config.sub ${f}
|
2015-03-22 19:09:14 +01:00
|
|
|
done
|
|
|
|
for f in $(find ${wrksrc} -type f -name "*config*.guess"); do
|
2019-11-18 18:29:21 +01:00
|
|
|
cp -f ${_cfgdir}/config.guess ${f}
|
2015-03-22 19:09:14 +01:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|