From effdfb6e62fb3d2b5d8750f5c70ab7031e0863a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Lundstr=C3=B6m?= Date: Wed, 18 May 2011 20:26:43 +0200 Subject: [PATCH] On OS X the GNU libtool is prefixed with a g. --- autogen.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index ae2d948..48ca62a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,11 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} +if which glibtoolize >/dev/null 2>&1; then + LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} +else + LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} +fi LIBTOOLIZE_FLAGS="--copy --force" ACLOCAL=${ACLOCAL:-aclocal} AUTOHEADER=${AUTOHEADER:-autoheader}