Skip to content

Commit

Permalink
MacPorts installs libtoolize as glibtoolize. Autodetect this and DTRT.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmah888 committed Mar 20, 2014
1 parent 974c88e commit 082157b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,21 @@ case "$1" in
;;
esac

if libtoolize --version >/dev/null 2>&1; then
libtoolize=libtoolize
elif glibtoolize --version >/dev/null 2>&1; then
libtoolize=glibtoolize
else
libtoolize=""
fi

if [ "x$libtoolize" = "x" ]; then
echo "Can't find libtoolize, exiting."
exit 1
fi

set -x
libtoolize --copy --force --automake
$libtoolize --copy --force --automake
aclocal -I config
autoheader
automake --foreign --add-missing --copy
Expand Down

0 comments on commit 082157b

Please sign in to comment.