2013-01-19 17:02:02 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
2019-05-16 14:38:48 -07:00
|
|
|
if glibtoolize --version >/dev/null 2>&1; then
|
2013-01-19 17:37:13 -07:00
|
|
|
LIBTOOLIZE='glibtoolize'
|
|
|
|
else
|
|
|
|
LIBTOOLIZE='libtoolize'
|
|
|
|
fi
|
|
|
|
|
2017-05-19 05:51:56 -07:00
|
|
|
command -v command >/dev/null 2>&1 || {
|
|
|
|
echo "command is required, but wasn't found on this system"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
command -v $LIBTOOLIZE >/dev/null 2>&1 || {
|
2015-11-19 09:05:28 -07:00
|
|
|
echo "libtool is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 05:51:56 -07:00
|
|
|
}
|
2015-11-19 09:05:28 -07:00
|
|
|
|
2017-05-19 05:51:56 -07:00
|
|
|
command -v autoconf >/dev/null 2>&1 || {
|
2015-11-19 09:05:28 -07:00
|
|
|
echo "autoconf is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 05:51:56 -07:00
|
|
|
}
|
2015-11-19 09:05:28 -07:00
|
|
|
|
2017-05-19 05:51:56 -07:00
|
|
|
command -v automake >/dev/null 2>&1 || {
|
2015-11-19 09:05:28 -07:00
|
|
|
echo "automake is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 05:51:56 -07:00
|
|
|
}
|
2015-11-19 09:05:28 -07:00
|
|
|
|
2019-05-16 14:38:48 -07:00
|
|
|
if autoreconf --version >/dev/null 2>&1; then
|
2019-05-03 02:15:27 -07:00
|
|
|
autoreconf -ivf
|
|
|
|
else
|
2019-05-16 14:38:48 -07:00
|
|
|
$LIBTOOLIZE &&
|
|
|
|
aclocal &&
|
|
|
|
automake --add-missing --force-missing --include-deps &&
|
|
|
|
autoconf
|
2015-11-19 09:05:28 -07:00
|
|
|
fi
|
|
|
|
|
2019-05-16 14:38:48 -07:00
|
|
|
[ -z "$DO_NOT_UPDATE_CONFIG_SCRIPTS" ] &&
|
|
|
|
command -v curl >/dev/null 2>&1 && {
|
|
|
|
echo "Downloading config.guess and config.sub..."
|
|
|
|
|
2019-09-25 08:00:19 -07:00
|
|
|
curl -sSL -o config.guess \
|
2019-05-03 02:15:27 -07:00
|
|
|
'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' &&
|
|
|
|
mv -f config.guess build-aux/config.guess
|
|
|
|
|
2019-09-25 08:00:19 -07:00
|
|
|
curl -sSL -o config.sub \
|
2019-05-03 02:15:27 -07:00
|
|
|
'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' &&
|
|
|
|
mv -f config.sub build-aux/config.sub
|
2019-05-16 14:38:48 -07:00
|
|
|
|
|
|
|
echo "Done."
|
2019-05-03 02:15:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
rm -f config.guess config.sub
|