From ea725d3a90f829e49c9812b8b121fa4d8323ce01 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Sat, 20 Jul 2013 18:41:38 -0700 Subject: [PATCH] autogen.sh: use glibtoolize when available libtoolize is called glibtoolize on osx. Signed-off-by: Noah Watkins --- autogen.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index d233e0f85853..83c0104450d2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,10 +13,20 @@ check_for_pkg_config() { 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 -- 2.47.3