From: oetiker Date: Wed, 2 Jun 2010 20:15:20 +0000 (+0000) Subject: MAC OS X ships with binaries named 'libtool' and 'libtoolize' which are X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=194fc3fad5dc190896fc06aae51b0e2bf8d2349b;p=rrdtool-all.git MAC OS X ships with binaries named 'libtool' and 'libtoolize' which are not the GNU tools. Those are prefixed with letter 'g'. -- Antoine Musso git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2086 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/MakeMakefile b/program/MakeMakefile index 90e4700f..1b07f193 100755 --- a/program/MakeMakefile +++ b/program/MakeMakefile @@ -20,8 +20,15 @@ ERROR=0 LIBTOOL_VER="1.5.6" AUTOMAKE_VER="1.9.2" AUTOCONF_VER="2.59" +LIBTOOL_BIN="libtool" -if vcheck $LIBTOOL_VER "libtool --version" +# On MAC OS X, GNU libtool is named 'glibtool': +if [ `(uname -s) 2>/dev/null` == 'Darwin' ] +then + LIBTOOL_BIN="glibtool" +fi + +if vcheck $LIBTOOL_VER "$LIBTOOL_BIN --version" then echo "get a copy of GNU libtool >= $LIBTOOL_VER" ERROR=1 diff --git a/program/autogen.sh b/program/autogen.sh index a7226cc2..45a11a40 100755 --- a/program/autogen.sh +++ b/program/autogen.sh @@ -1,3 +1,11 @@ #!/bin/sh -libtoolize + +# On MAC OS X, GNU libtoolize is named 'glibtoolize': +if [ `(uname -s) 2>/dev/null` == 'Darwin' ] +then + glibtoolize +else + libtoolize +fi + autoreconf --force --install --verbose -I m4