summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-05-01 21:16:31 +0000
committerMark Wielaard <mark@klomp.org>2005-05-01 21:16:31 +0000
commit3678ea7e00b2815d883ef71323b311c0e4af201e (patch)
treebf766ba0b18e95d24215cec8681388b947c73ae8 /autogen.sh
parent5e0c9d87e8d45b33cdc34574b31a094e7b4e577a (diff)
downloadclasspath-3678ea7e00b2815d883ef71323b311c0e4af201e.tar.gz
2005-05-01 Andreas Tobler <toa@pop.agri.ch>
* autogen.sh: Use glibtoolize on Darwin.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index cc6d2839d..644b15581 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,9 +12,18 @@ FILE=java/lang/Object.java
DIE=0
-have_libtool=false
-if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
- libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
+case `uname -s` in
+Darwin)
+ LIBTOOLIZE=glibtoolize
+ ;;
+*)
+ LIBTOOLIZE=libtoolize
+ ;;
+esac
+
+have_libtool=true
+if ${LIBTOOLIZE} --version < /dev/null > /dev/null 2>&1 ; then
+ libtool_version=`${LIBTOOLIZE} --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
case $libtool_version in
1.5*)
have_libtool=true
@@ -108,7 +117,7 @@ fi
# Use the "-I m4 flag in order to include pkg.m4 and other .m4 files.
$ACLOCAL -I m4 $ACLOCAL_FLAGS || exit $?
-libtoolize --force || exit $?
+${LIBTOOLIZE} --force || exit $?
autoheader || exit $?