summaryrefslogtreecommitdiffstats
path: root/build/linux/autogen.sh
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-02-25 16:37:36 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-02-25 16:37:36 +0100
commit214a5429db07e3e18af5856e164f850fbabca427 (patch)
treeb9c72b87a1ad931c11153462206afb0464c85d12 /build/linux/autogen.sh
parentf619aba4543de6b9a4fe6fb63b6f1840ef509846 (diff)
parent9a60acfc18e72b8aacdc7388617443e9854f4d3b (diff)
downloadastra-214a5429db07e3e18af5856e164f850fbabca427.tar.gz
astra-214a5429db07e3e18af5856e164f850fbabca427.tar.bz2
astra-214a5429db07e3e18af5856e164f850fbabca427.tar.xz
astra-214a5429db07e3e18af5856e164f850fbabca427.zip
Merge pull request #19 from wjp/osx-support
Improve support for OS X
Diffstat (limited to 'build/linux/autogen.sh')
-rwxr-xr-xbuild/linux/autogen.sh7
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