summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-09-25 19:47:25 +0200
committerGravatar Martin Szulecki2010-10-04 00:38:16 +0200
commit5f08413081ada86f55e5a4585a6635aa34b57ed4 (patch)
treea8583517a7eb14e6f3d21f2b4eda6f6824e0a285
parent8527540127a97b2f5364987771aeb2400365c9fa (diff)
downloadlibimobiledevice-5f08413081ada86f55e5a4585a6635aa34b57ed4.tar.gz
libimobiledevice-5f08413081ada86f55e5a4585a6635aa34b57ed4.tar.bz2
Try to use glibtoolize if possible in autogen.sh to fix OSX build
-rwxr-xr-xautogen.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index cb3887a..3292973 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,11 @@
#!/bin/sh
+gprefix=`which glibtoolize 2>&1 >/dev/null`
+if [ $? -eq 0 ]; then
+ glibtoolize --force
+else
+ libtoolize --force
+fi
aclocal -I m4
-libtoolize
autoheader
automake --add-missing
autoconf