Code

build.sh: Use glibtoolize if it's available.
authorSebastian Harl <sh@tokkee.org>
Sun, 9 Mar 2008 18:59:15 +0000 (19:59 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 22 Mar 2008 09:24:01 +0000 (10:24 +0100)
This way, the script should work on e.g. MacOSX as well.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
build.sh

index 89d3a68e0e49d86a3f586cd7c995530c6e344ff7..3efb44f64047c5bdeedf6dc5d646230645a4afcd 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,9 +1,15 @@
 #! /bin/sh
 
+libtoolize=libtoolize
+
+if which glibtoolize > /dev/null 2>&1; then
+       libtoolize=glibtoolize
+fi
+
 set -x
 
 autoheader \
 && aclocal \
-&& libtoolize --ltdl --copy --force \
+&& $libtoolize --ltdl --copy --force \
 && automake --add-missing --copy \
 && autoconf