libtoolize is called glibtoolize on osx.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
exit 1
}
+if [ `which libtoolize` ]; then
+ LIBTOOLIZE=libtoolize
+elif [ `which glibtoolize` ]; then
+ LIBTOOLIZE=glibtoolize
+else
+ echo "Error: could not find libtoolize"
+ echo " Please install libtoolize or glibtoolize."
+ exit 1
+fi
+
rm -f config.cache
aclocal -I m4 --install
check_for_pkg_config
-libtoolize --force --copy
+$LIBTOOLIZE --force --copy
autoconf
autoheader
automake -a --add-missing -Wall