X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=MakeMakefile;h=1b07f193b444adee58cc5931343a08d4e04179a8;hp=90e4700fd5a26dafd921693744fc9b06ebe4d00e;hb=b47c2e44707f965100a561660a45f89b5759cbc1;hpb=cf0430b5c1d80f3de44d420643620ddc6b1e428f diff --git a/MakeMakefile b/MakeMakefile index 90e4700..1b07f19 100755 --- a/MakeMakefile +++ b/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