1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00
libsodium/autogen.sh

37 lines
759 B
Bash
Raw Normal View History

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