aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-05-05 08:02:07 -0400
committerTobias Brunner <tobias@strongswan.org>2009-05-06 09:10:58 -0400
commitaf05cc564c100940bbf59574e60e49bf689dd9c4 (patch)
tree45507431d75d9c282316c65b8d1d421b15e1cade
parenta8d938ca182a6a86bdc12cfb5025e9b6812df3d1 (diff)
downloadstrongswan-af05cc564c100940bbf59574e60e49bf689dd9c4.tar.bz2
strongswan-af05cc564c100940bbf59574e60e49bf689dd9c4.tar.xz
libtoolize is called glibtoolize on Mac OS X
-rwxr-xr-xautogen.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 0839f0577..8927a0e49 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,18 @@
#!/bin/sh
-libtoolize --force &&
+
+LIBTOOLIZE=`which glibtoolize 2>/dev/null`
+case "$LIBTOOLIZE" in
+ /* ) ;;
+ * ) LIBTOOLIZE=`which libtoolize 2>/dev/null`
+ case "$LIBTOOLIZE" in
+ /* ) ;;
+ * ) LIBTOOLIZE=libtoolize
+ ;;
+ esac
+ ;;
+esac
+
+$LIBTOOLIZE --force &&
aclocal &&
automake -a &&
autoconf