#!/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