From c53357551f8ef7a8be980f9cd75c6aeb60c09495 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 17 Apr 2014 10:56:14 +0100 Subject: [PATCH] autotools: use glibtoolize on Mac OSX --- autogen.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 3ff20a02..a74797a8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,11 @@ #!/bin/sh +LIBTOOLIZE=`which libtoolize` +if ! test -f "$LIBTOOLIZE" ; then + # Mac OSX support ... + LIBTOOLIZE=`which glibtoolize` +fi + mkdir -p m4 touch AUTHORS touch NEWS @@ -7,7 +13,7 @@ ln -svf README.md README aclocal -I m4 || exit 1 -libtoolize || exit 1 +${LIBTOOLIZE} || exit 1 autoheader || exit 1 automake --add-missing || exit 1 autoconf || exit 1