Check for more dependencies before running autoreconf
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 5 Dec 2007 09:20:15 +0000 (09:20 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 5 Dec 2007 09:20:15 +0000 (09:20 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@614 ffa7fe5e-494d-0410-b361-a75ebd5db220

autogen.sh

index 294a95f..96e4d92 100755 (executable)
@@ -1,14 +1,11 @@
 #!/bin/sh
-if ! pkg-config --version >/dev/null
-then
-       echo "You need to install pkg-config"
-       exit 1
-fi
-
-if ! libtool --version >/dev/null
-then
-       echo "You need to install libtool"
-       exit 1
-fi
+for pkg in pkg-config libtool autoreconf automake aclocal autopoint:gettext
+do
+       if ! ${pkg%%:*} --version >/dev/null 
+       then
+               echo "You need to install ${pkg##*:}"
+               exit 1
+       fi
+done
 
 autoreconf --force --install -I m4