2015-05-18 07:33:39 +00:00
|
|
|
# This hook overrides config.sub and config.guess.
|
2015-03-22 18:09:14 +00:00
|
|
|
|
|
|
|
hook() {
|
2019-11-18 17:29:21 +00:00
|
|
|
local _cfgdir="${XBPS_COMMONDIR}/environment/configure/automake"
|
|
|
|
|
2015-03-22 18:09:14 +00: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 17:29:21 +00:00
|
|
|
cp -f ${_cfgdir}/config.sub ${f}
|
2015-03-22 18:09:14 +00:00
|
|
|
done
|
|
|
|
for f in $(find ${wrksrc} -type f -name "*config*.guess"); do
|
2019-11-18 17:29:21 +00:00
|
|
|
cp -f ${_cfgdir}/config.guess ${f}
|
2015-03-22 18:09:14 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|