2007-09-15 01:07:16 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Created by Anjuta application wizard.
|
|
|
|
|
|
|
|
AC_INIT(mapnik, 0.4.0)
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2007-10-03 12:41:08 +02:00
|
|
|
dnl Disable libtool 1.5 support for languages we don't use
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl
|
|
|
|
|
2007-09-15 01:07:16 +02:00
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CXX
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl Check for option to enable debug
|
|
|
|
AC_MSG_CHECKING(whether to enable debugging)
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
[ --enable-debug=[no/yes] enables debug build (default=no)],,
|
|
|
|
enable_debug=no)
|
|
|
|
|
|
|
|
dnl Checks for libraries
|
|
|
|
if [ ! test "x$enable_debug" != "xyes"]; then
|
|
|
|
AC_DEFINE(DEBUG, 1, [Define to enable debug build])
|
|
|
|
CXXFLAGS="${CXXFLAGS} -g -DDEBUG -DMAPNIK_DEBUG"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Check for boost
|
|
|
|
AX_BOOST_BASE
|
|
|
|
if test "$succeeded" != "yes" ; then
|
2007-10-26 22:56:11 +02:00
|
|
|
echo "Error: You need to install the boost library!"
|
2007-09-15 01:07:16 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_BOOST_THREAD
|
2007-10-26 22:56:11 +02:00
|
|
|
if test "x$ax_cv_boost_thread" = "xno"; then
|
|
|
|
echo
|
|
|
|
echo "Error: You need to install the boost thread library!"
|
|
|
|
echo
|
2007-09-15 01:07:16 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_BOOST_FILESYSTEM
|
2007-10-26 22:56:11 +02:00
|
|
|
if test "x$ax_cv_boost_filesystem" = "xno"; then
|
|
|
|
echo
|
|
|
|
echo "Error: You need to install the boost filesystem library!"
|
|
|
|
echo
|
2007-09-15 01:07:16 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_BOOST_REGEX
|
2007-10-26 22:56:11 +02:00
|
|
|
if test "x$ax_cv_boost_regex" = "xno"; then
|
|
|
|
echo
|
|
|
|
echo "Error: You need to install the boost regex library!"
|
|
|
|
echo
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_BOOST_SERIALIZATION
|
|
|
|
if test "x$ax_cv_boost_serialization" = "xno"; then
|
|
|
|
echo
|
|
|
|
echo "Error: You need to install the boost serialization library!"
|
|
|
|
echo
|
2007-09-15 01:07:16 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_LIB_POSTGRESQL
|
2007-10-26 22:56:11 +02:00
|
|
|
if test "$found_postgresql" = "yes"; then
|
2008-04-06 20:13:13 +02:00
|
|
|
AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes")
|
2007-10-26 22:56:11 +02:00
|
|
|
fi
|
2007-09-15 01:07:16 +02:00
|
|
|
|
|
|
|
AX_CHECK_TIFF
|
|
|
|
if test "x$link_tiff" = "xno"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AX_CHECK_JPEG
|
|
|
|
if test "x$link_jpeg" = "xno"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_CHECK_PROJ
|
|
|
|
if test "x$link_proj" = "xno"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_CHECK_LTDL
|
|
|
|
if test "x$link_ltdl" = "xno"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(PNG, libpng)
|
|
|
|
AC_SUBST(PNG_CFLAGS)
|
|
|
|
AC_SUBST(PNG_LIBS)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(FREETYPE2, freetype2)
|
|
|
|
AC_SUBST(FREETYPE2_CFLAGS)
|
|
|
|
AC_SUBST(FREETYPE2_LIBS)
|
|
|
|
|
2007-09-24 00:20:21 +02:00
|
|
|
dnl Check for option to enable included-agg
|
|
|
|
AC_MSG_CHECKING(whether to enable included libagg building)
|
|
|
|
AC_ARG_ENABLE(included_agg,
|
|
|
|
[ --enable-included-agg=[no/yes] enables included libagg build (default=yes)],,
|
|
|
|
enable_included_agg=yes)
|
|
|
|
|
2007-10-02 23:43:13 +02:00
|
|
|
AM_CONDITIONAL(BUILD_AGG, test "x$enable_included_agg" = "xyes")
|
|
|
|
|
2007-09-24 00:20:21 +02:00
|
|
|
if [ test "x$enable_included_agg" = "xyes"]; then
|
|
|
|
AGG_LIBS=-L../agg/src
|
|
|
|
AGG_CFLAGS=-I../agg/include
|
|
|
|
AC_SUBST(AGG_LIBS)
|
|
|
|
AC_SUBST(AGG_CFLAGS)
|
|
|
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
PKG_CHECK_MODULES(AGG, libagg)
|
|
|
|
fi
|
2007-09-15 01:07:16 +02:00
|
|
|
|
2007-10-02 23:43:13 +02:00
|
|
|
|
|
|
|
dnl Check for option to enable libxml2
|
2008-04-06 20:13:13 +02:00
|
|
|
AC_MSG_CHECKING(whether to enable libxml2 support)
|
2007-10-02 23:43:13 +02:00
|
|
|
AC_ARG_ENABLE(libxml2,
|
2008-04-06 20:13:13 +02:00
|
|
|
[ --enable-libxml2=[no/yes] enables libxml2 support (default=no)],,
|
2007-10-02 23:43:13 +02:00
|
|
|
enable_libxml2=no)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_LIBXML2, test "x$enable_libxml2" = "xyes")
|
|
|
|
|
|
|
|
if [ test "x$enable_libxml2" = "xyes"]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
|
2007-10-03 12:41:08 +02:00
|
|
|
AC_DEFINE(HAVE_LIBXML2, 1,"")
|
2007-10-02 23:43:13 +02:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
2008-04-06 20:13:13 +02:00
|
|
|
dnl Check for option to enable cairo
|
|
|
|
AC_MSG_CHECKING(whether to enable cairo support)
|
|
|
|
AC_ARG_ENABLE(cairo,
|
|
|
|
[ --enable-cairo=[no/yes] enables cairo support (default=yes)],,
|
|
|
|
enable_cairo=yes)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_CAIRO, test "x$enable_cairo" = "xyes")
|
|
|
|
|
|
|
|
if [ test "x$enable_cairo" = "xyes"]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PKG_CHECK_MODULES(CAIRO, cairomm-1.0 >= 1.4.4)
|
|
|
|
dnl AC_DEFINE(HAVE_CAIRO, 1,"")
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2007-09-15 01:07:16 +02:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
include/Makefile
|
|
|
|
include/mapnik/Makefile
|
|
|
|
plugins/Makefile
|
|
|
|
plugins/input/Makefile
|
|
|
|
plugins/input/gdal/Makefile
|
|
|
|
plugins/input/postgis/Makefile
|
|
|
|
plugins/input/raster/Makefile
|
|
|
|
plugins/input/shape/Makefile
|
2008-04-06 20:13:13 +02:00
|
|
|
plugins/input/osm/Makefile
|
2007-09-15 01:07:16 +02:00
|
|
|
src/Makefile
|
|
|
|
mapnik.pc
|
|
|
|
mapnik-uninstalled.pc
|
2007-09-24 00:20:21 +02:00
|
|
|
agg/Makefile
|
|
|
|
agg/src/Makefile
|
|
|
|
agg/include/Makefile
|
2007-09-15 01:07:16 +02:00
|
|
|
])
|