git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2392
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#!/bin/sh
-for pkg in pkg-config libtool automake aclocal autoreconf:autoconf autopoint:gettext
+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
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
+if eval "test x`uname` = xDarwin"; then
+ CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
+fi
if eval "test x$GCC = xyes"; then
CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
fi