diff --git a/autogen.sh b/autogen.sh index bff8257..8627a80 100755 --- a/autogen.sh +++ b/autogen.sh @@ -47,9 +47,9 @@ fi DIE=1 } -LIBTOOLIZE=`which libtoolize` -if ! test -f $LIBTOOLIZE; then - LIBTOOLIZE=`which glibtoolize` +LIBTOOLIZE=`which glibtoolize` +if ! [ test -f $LIBTOOLIZE ] ; then + LIBTOOLIZE=`which libtoolize` fi ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {