Skip to content

Commit

Permalink
Test for both glibtoolize and libtoolize on Mac; the downloaded versi…
Browse files Browse the repository at this point in the history
…on of autotools only includes libtoolize.
  • Loading branch information
nostrademons committed Mar 22, 2015
1 parent 48e7043 commit b7c321a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

if test -z "$LIBTOOLIZE" -a "`uname`" = "Darwin"; then
LIBTOOLIZE=glibtoolize
if command -v "glibtoolize" >/dev/null; then
LIBTOOLIZE=glibtoolize
elif command -v "libtoolize" >/dev/null; then
LIBTOOLIZE=libtoolize
else
echo "autogen.sh: line $LINENO: command glibtoolize or libtoolize not found"
exit 1
fi
fi

set -ex
Expand Down

0 comments on commit b7c321a

Please sign in to comment.