X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=autogen.sh;h=e1a5447750ede844033fc5d29da07aff73a09fce;hb=d86db8f698c90c93d3f1852008c93dcf2d20dcbc;hp=294a95faea365b5eefc189987beee57f7e601b35;hpb=47ce7b7e39fa9ebff1ea8a7926bced1cad3ebff4;p=navit-package diff --git a/autogen.sh b/autogen.sh index 294a95f..e1a5447 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,14 +1,17 @@ #!/bin/sh -if ! pkg-config --version >/dev/null -then - echo "You need to install pkg-config" - exit 1 +if [ `uname` = Darwin ]; then + LIBTOOL=glibtool +else + LIBTOOL=libtool fi -if ! libtool --version >/dev/null -then - echo "You need to install libtool" - exit 1 -fi +for pkg in pkg-config $LIBTOOL automake aclocal autoreconf:autoconf autopoint:gettext +do + if ! ${pkg%%:*} --version >/dev/null + then + echo "You need to install ${pkg##*:}" + exit 1 + fi +done -autoreconf --force --install -I m4 +autoreconf --install -I m4