Another attempt at including mapnik include directories from mapnik-config

use mapnik-config --includes rather than --cflags (as was attempted in 23be036).

This should fix #35
This commit is contained in:
Kai Krueger
2013-08-09 18:44:06 -06:00
parent f10e357f55
commit a975db9074
2 changed files with 4 additions and 1 deletions

View File

@ -57,6 +57,7 @@ AC_DEFUN([AX_LIB_MAPNIK],
)
MAPNIK_CFLAGS=""
MAPNIK_INCLUDES=""
MAPNIK_LDFLAGS=""
MAPNIK_VERSION=""
@ -86,6 +87,7 @@ AC_DEFUN([AX_LIB_MAPNIK],
AC_MSG_CHECKING([for mapnik libraries])
MAPNIK_CFLAGS="`$MAPNIK_CONFIG --cflags`"
MAPNIK_INCLUDES="`$MAPNIK_CONFIG --includes`"
MAPNIK_LDFLAGS="`$MAPNIK_CONFIG --libs`"
MAPNIK_VERSION=`$MAPNIK_CONFIG --version`
@ -104,6 +106,7 @@ AC_DEFUN([AX_LIB_MAPNIK],
AC_SUBST([MAPNIK_VERSION])
AC_SUBST([MAPNIK_CFLAGS])
AC_SUBST([MAPNIK_INCLUDES])
AC_SUBST([MAPNIK_LDFLAGS])
])