Update:Translation:Updated heading fields
[navit-package] / autogen.sh
index b483139..e1a5447 100755 (executable)
@@ -1,2 +1,17 @@
 #!/bin/sh
-autoreconf --force --install -I m4
+if [ `uname` = Darwin ]; then
+       LIBTOOL=glibtool
+else
+       LIBTOOL=libtool
+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 --install -I m4