Skip to content

Commit

Permalink
Merge pull request #44 from cherokee/fix-for-missing-libtool-error-on…
Browse files Browse the repository at this point in the history
…-macos-x

Fix for Issue #43: checks for the existence of glibtool using hash rather than testing for the hardcoded path /usr/bin/glibtool. This ensures that glibtool and glibtoolize that are not located in /usr/bin (e.g. /usr/local/bin) can be found as long as their root folder is contained in the $PATH environment variable.

Thanks mdavid!
  • Loading branch information
skinkie committed Dec 1, 2012
2 parents 97e24f0 + 7fa9e44 commit e43de1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autogen.sh
Expand Up @@ -29,7 +29,8 @@ test -z "$AUTOMAKE" && AUTOMAKE=automake
test -z "$ACLOCAL" && ACLOCAL=aclocal
test -z "$AUTOCONF" && AUTOCONF=autoconf
test -z "$AUTOHEADER" && AUTOHEADER=autoheader
if [ -x /usr/bin/glibtool ]; then

if hash glibtool 2>&-; then
test -z "$LIBTOOL" && LIBTOOL=glibtool
test -z "$LIBTOOLIZE" && LIBTOOLIZE=glibtoolize
else
Expand Down

0 comments on commit e43de1b

Please sign in to comment.