1 1.1 riastrad #! /bin/sh 2 1.1 riastrad 3 1.1 riastrad if glibtoolize --version > /dev/null 2>&1; then 4 1.1 riastrad LIBTOOLIZE='glibtoolize' 5 1.1 riastrad else 6 1.1 riastrad LIBTOOLIZE='libtoolize' 7 1.1 riastrad fi 8 1.1 riastrad 9 1.1 riastrad command -v command >/dev/null 2>&1 || { 10 1.1 riastrad echo "command is required, but wasn't found on this system" 11 1.1 riastrad exit 1 12 1.1 riastrad } 13 1.1 riastrad 14 1.1 riastrad command -v $LIBTOOLIZE >/dev/null 2>&1 || { 15 1.1 riastrad echo "libtool is required, but wasn't found on this system" 16 1.1 riastrad exit 1 17 1.1 riastrad } 18 1.1 riastrad 19 1.1 riastrad command -v autoconf >/dev/null 2>&1 || { 20 1.1 riastrad echo "autoconf is required, but wasn't found on this system" 21 1.1 riastrad exit 1 22 1.1 riastrad } 23 1.1 riastrad 24 1.1 riastrad command -v automake >/dev/null 2>&1 || { 25 1.1 riastrad echo "automake is required, but wasn't found on this system" 26 1.1 riastrad exit 1 27 1.1 riastrad } 28 1.1 riastrad 29 1.1 riastrad if autoreconf --version > /dev/null 2>&1 ; then 30 1.1 riastrad exec autoreconf -ivf 31 1.1 riastrad fi 32 1.1 riastrad 33 1.1 riastrad $LIBTOOLIZE && \ 34 1.1 riastrad aclocal && \ 35 1.1 riastrad automake --add-missing --force-missing --include-deps && \ 36 1.1 riastrad autoconf 37