autodetect glibtoolize vs libtoolize for darwin

This commit is contained in:
Bill Currie 2002-12-20 23:39:26 +00:00
parent c8db558c00
commit abea6262c1

View file

@ -22,10 +22,15 @@ if test "$1" = "clean"; then
exit 0
fi
# Check libtoolize version, fix for Debian/Woody
lt=`which libtoolize`
if test -z `which glibtoolize` ; then
libtoolize=glibtoolize
else
libtoolize=libtoolize
fi
lt=`which $libtoolize`
if test -n "$lt" ; then
if test -x "$lt" ; then
LTIZE_VER=`libtoolize --version | head -1 | sed 's/^[^0-9]*//'`
LTIZE_VER=`$libtoolize --version | head -1 | sed 's/^[^0-9]*//'`
LTIZE_VER_MAJOR=`echo $LTIZE_VER | cut -f1 -d'.'`
LTIZE_VER_MINOR=`echo $LTIZE_VER | cut -f2 -d'.' | sed -e 's/[^0-9]//g'`
@ -86,4 +91,4 @@ else
exit 1
fi
aclocal && autoheader && libtoolize --automake && automake --add-missing && autoconf
aclocal && autoheader && $libtoolize --automake && automake --add-missing && autoconf