summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2003-11-11 18:51:43 +0000
committerDave Beazley <dave-swig@dabeaz.com>2003-11-11 18:51:43 +0000
commit814eeca4497a30e5c01793b7658641bd391ed922 (patch)
treefa255a8a578b1e57a4e7e4fa38f99df57bb9657d /autogen.sh
parentf64d0ebcce06fecf5d9fe64db267fc18efc14370 (diff)
downloadswig-814eeca4497a30e5c01793b7658641bd391ed922.tar.gz
Use glibtoolize on Mac OSX
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 0c62f3a0b..11db63e07 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -10,6 +10,14 @@ set -x
test -d Tools/config || mkdir Tools/config
aclocal -I Tools/config
autoheader
-libtoolize --force --copy
+
+# Note: on Mac OS X there is a different program 'libtoolize' that is definitely not
+# what we want to run. Instead, we want to use 'glibtoolize'
+
+if test -x /usr/bin/glibtoolize; then
+ glibtoolize --force --copy
+else
+ libtoolize --force --copy
+fi
automake --add-missing --copy --force-missing
autoconf