diff options
author | Daniel M. Pelt <d.m.pelt@cwi.nl> | 2015-02-25 08:11:53 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-02-25 14:11:20 +0100 |
commit | e64e295fc6394124fdb4bf2630c823744eac23ea (patch) | |
tree | 437ea55e8d090ec04102fd09c3298e52b650f998 /build/linux | |
parent | 8c02a01bc617e99e1c6b7627676402bb276bac80 (diff) | |
download | astra-e64e295fc6394124fdb4bf2630c823744eac23ea.tar.gz astra-e64e295fc6394124fdb4bf2630c823744eac23ea.tar.bz2 astra-e64e295fc6394124fdb4bf2630c823744eac23ea.tar.xz astra-e64e295fc6394124fdb4bf2630c823744eac23ea.zip |
Added libtool check for OSX
Diffstat (limited to 'build/linux')
-rwxr-xr-x | build/linux/autogen.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/linux/autogen.sh b/build/linux/autogen.sh index c856793..544fdeb 100755 --- a/build/linux/autogen.sh +++ b/build/linux/autogen.sh @@ -12,9 +12,12 @@ if test $? -ne 0; then exit 1 fi -libtoolize --install --force > /dev/null 2>&1 +case `uname` in Darwin*) LIBTOOLIZEBIN=glibtoolize ;; + *) LIBTOOLIZEBIN=libtoolize ;; esac + +$LIBTOOLIZEBIN --install --force > /dev/null 2>&1 if test $? -ne 0; then - libtoolize --force + $LIBTOOLIZEBIN --force if test $? -ne 0; then echo "Error running libtoolize" exit 1 |