Code

bootstrap.sh: Use glibtoolize if it's available.
authorSebastian Harl <sh@tokkee.org>
Sun, 23 Mar 2008 13:46:34 +0000 (14:46 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 23 Mar 2008 13:46:34 +0000 (14:46 +0100)
This way, the script should work on e.g. MacOSX as well.

bootstrap.sh

index 40a1920fe9aa70451916b9442378c1e4d1779d3b..c72e9b59aa17920990b155d5e6ee7aca7cb1478d 100755 (executable)
@@ -1,5 +1,11 @@
 #! /bin/sh
 
+libtoolize=libtoolize
+
+if which glibtoolize > /dev/null 2>&1; then
+       libtoolize=glibtoolize
+fi
+
 set -ex
 
 test ! -f Makefile || make distclean
@@ -11,7 +17,7 @@ rm -f config.cache
 
 aclocal
 autoheader
-libtoolize --ltdl --copy --force
+$libtoolize --ltdl --copy --force
 automake --add-missing --copy --foreign
 autoconf -Wall