TOR: fix compilation
[tomato.git] / release / src / router / libsodium / autogen.sh
blob5c105ccd9ececf3873f63b51d6ff8768a6270c57
1 #! /bin/sh
3 if glibtoolize --version > /dev/null 2>&1; then
4 LIBTOOLIZE='glibtoolize'
5 else
6 LIBTOOLIZE='libtoolize'
7 fi
9 if [ ! -x "`which $LIBTOOLIZE 2>/dev/null`" ] ; then
10 echo "libtool is required, but wasn't found on this system"
11 exit 1
14 if [ ! -x "`which autoconf 2>/dev/null`" ] ; then
15 echo "autoconf is required, but wasn't found on this system"
16 exit 1
19 if [ ! -x "`which automake 2>/dev/null`" ] ; then
20 echo "automake is required, but wasn't found on this system"
21 exit 1
24 if autoreconf --version > /dev/null 2>&1 ; then
25 exec autoreconf -ivf
28 $LIBTOOLIZE && \
29 aclocal && \
30 automake --add-missing --force-missing --include-deps && \
31 autoconf