2013-01-19 19:02:02 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
2013-01-19 19:37:13 -05:00
|
|
|
if glibtoolize --version > /dev/null 2>&1; then
|
|
|
|
LIBTOOLIZE='glibtoolize'
|
|
|
|
else
|
|
|
|
LIBTOOLIZE='libtoolize'
|
|
|
|
fi
|
|
|
|
|
2017-05-19 08:51:56 -04: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 11:05:28 -05:00
|
|
|
echo "libtool is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 08:51:56 -04:00
|
|
|
}
|
2015-11-19 11:05:28 -05:00
|
|
|
|
2017-05-19 08:51:56 -04:00
|
|
|
command -v autoconf >/dev/null 2>&1 || {
|
2015-11-19 11:05:28 -05:00
|
|
|
echo "autoconf is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 08:51:56 -04:00
|
|
|
}
|
2015-11-19 11:05:28 -05:00
|
|
|
|
2017-05-19 08:51:56 -04:00
|
|
|
command -v automake >/dev/null 2>&1 || {
|
2015-11-19 11:05:28 -05:00
|
|
|
echo "automake is required, but wasn't found on this system"
|
|
|
|
exit 1
|
2017-05-19 08:51:56 -04:00
|
|
|
}
|
2015-11-19 11:05:28 -05:00
|
|
|
|
2016-12-31 17:04:05 -05:00
|
|
|
if autoreconf --version > /dev/null 2>&1 ; then
|
2015-11-19 11:05:28 -05:00
|
|
|
exec autoreconf -ivf
|
|
|
|
fi
|
|
|
|
|
2013-04-26 01:51:19 -04:00
|
|
|
$LIBTOOLIZE && \
|
2013-01-19 19:02:02 -05:00
|
|
|
aclocal && \
|
|
|
|
automake --add-missing --force-missing --include-deps && \
|
|
|
|
autoconf
|