| 1 | dnl Process this file with autoconf to produce a configure script. |
|---|
| 2 | dnl Created by Anjuta application wizard. |
|---|
| 3 | |
|---|
| 4 | AC_INIT(mapnik, 0.4.0) |
|---|
| 5 | |
|---|
| 6 | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
|---|
| 7 | AM_CONFIG_HEADER(config.h) |
|---|
| 8 | AM_MAINTAINER_MODE |
|---|
| 9 | |
|---|
| 10 | dnl Disable libtool 1.5 support for languages we don't use |
|---|
| 11 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl |
|---|
| 12 | define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl |
|---|
| 13 | |
|---|
| 14 | AC_ISC_POSIX |
|---|
| 15 | AC_PROG_CXX |
|---|
| 16 | AM_PROG_CC_STDC |
|---|
| 17 | AC_HEADER_STDC |
|---|
| 18 | |
|---|
| 19 | AM_PROG_LIBTOOL |
|---|
| 20 | |
|---|
| 21 | dnl Check for option to enable debug |
|---|
| 22 | AC_MSG_CHECKING(whether to enable debugging) |
|---|
| 23 | AC_ARG_ENABLE(debug, |
|---|
| 24 | [ --enable-debug=[no/yes] enables debug build (default=no)],, |
|---|
| 25 | enable_debug=no) |
|---|
| 26 | |
|---|
| 27 | dnl Checks for libraries |
|---|
| 28 | if [ ! test "x$enable_debug" != "xyes"]; then |
|---|
| 29 | AC_DEFINE(DEBUG, 1, [Define to enable debug build]) |
|---|
| 30 | CXXFLAGS="${CXXFLAGS} -g -DDEBUG -DMAPNIK_DEBUG" |
|---|
| 31 | AC_MSG_RESULT(yes) |
|---|
| 32 | else |
|---|
| 33 | AC_MSG_RESULT(no) |
|---|
| 34 | fi |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | dnl Check for boost |
|---|
| 38 | AX_BOOST_BASE |
|---|
| 39 | if test "$succeeded" != "yes" ; then |
|---|
| 40 | echo "Error: You need to install the boost library!" |
|---|
| 41 | exit |
|---|
| 42 | fi |
|---|
| 43 | |
|---|
| 44 | AX_BOOST_THREAD |
|---|
| 45 | if test "x$ax_cv_boost_thread" = "xno"; then |
|---|
| 46 | echo |
|---|
| 47 | echo "Error: You need to install the boost thread library!" |
|---|
| 48 | echo |
|---|
| 49 | exit |
|---|
| 50 | fi |
|---|
| 51 | |
|---|
| 52 | AX_BOOST_FILESYSTEM |
|---|
| 53 | if test "x$ax_cv_boost_filesystem" = "xno"; then |
|---|
| 54 | echo |
|---|
| 55 | echo "Error: You need to install the boost filesystem library!" |
|---|
| 56 | echo |
|---|
| 57 | exit |
|---|
| 58 | fi |
|---|
| 59 | |
|---|
| 60 | AX_BOOST_REGEX |
|---|
| 61 | if test "x$ax_cv_boost_regex" = "xno"; then |
|---|
| 62 | echo |
|---|
| 63 | echo "Error: You need to install the boost regex library!" |
|---|
| 64 | echo |
|---|
| 65 | exit |
|---|
| 66 | fi |
|---|
| 67 | |
|---|
| 68 | AX_BOOST_SERIALIZATION |
|---|
| 69 | if test "x$ax_cv_boost_serialization" = "xno"; then |
|---|
| 70 | echo |
|---|
| 71 | echo "Error: You need to install the boost serialization library!" |
|---|
| 72 | echo |
|---|
| 73 | exit |
|---|
| 74 | fi |
|---|
| 75 | |
|---|
| 76 | AX_LIB_POSTGRESQL |
|---|
| 77 | if test "$found_postgresql" = "yes"; then |
|---|
| 78 | AM_CONDITIONAL(BUILD_POSTGRESQL, test "x$found_postgresql" = "xyes") |
|---|
| 79 | fi |
|---|
| 80 | |
|---|
| 81 | AX_CHECK_TIFF |
|---|
| 82 | if test "x$link_tiff" = "xno"; then |
|---|
| 83 | exit |
|---|
| 84 | fi |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | AX_CHECK_JPEG |
|---|
| 88 | if test "x$link_jpeg" = "xno"; then |
|---|
| 89 | exit |
|---|
| 90 | fi |
|---|
| 91 | |
|---|
| 92 | AX_CHECK_PROJ |
|---|
| 93 | if test "x$link_proj" = "xno"; then |
|---|
| 94 | exit |
|---|
| 95 | fi |
|---|
| 96 | |
|---|
| 97 | AX_CHECK_LTDL |
|---|
| 98 | if test "x$link_ltdl" = "xno"; then |
|---|
| 99 | exit |
|---|
| 100 | fi |
|---|
| 101 | |
|---|
| 102 | PKG_CHECK_MODULES(PNG, libpng) |
|---|
| 103 | AC_SUBST(PNG_CFLAGS) |
|---|
| 104 | AC_SUBST(PNG_LIBS) |
|---|
| 105 | |
|---|
| 106 | PKG_CHECK_MODULES(FREETYPE2, freetype2) |
|---|
| 107 | AC_SUBST(FREETYPE2_CFLAGS) |
|---|
| 108 | AC_SUBST(FREETYPE2_LIBS) |
|---|
| 109 | |
|---|
| 110 | dnl Check for option to enable included-agg |
|---|
| 111 | AC_MSG_CHECKING(whether to enable included libagg building) |
|---|
| 112 | AC_ARG_ENABLE(included_agg, |
|---|
| 113 | [ --enable-included-agg=[no/yes] enables included libagg build (default=yes)],, |
|---|
| 114 | enable_included_agg=yes) |
|---|
| 115 | |
|---|
| 116 | AM_CONDITIONAL(BUILD_AGG, test "x$enable_included_agg" = "xyes") |
|---|
| 117 | |
|---|
| 118 | if [ test "x$enable_included_agg" = "xyes"]; then |
|---|
| 119 | AGG_LIBS=-L../agg/src |
|---|
| 120 | AGG_CFLAGS=-I../agg/include |
|---|
| 121 | AC_SUBST(AGG_LIBS) |
|---|
| 122 | AC_SUBST(AGG_CFLAGS) |
|---|
| 123 | |
|---|
| 124 | AC_MSG_RESULT(yes) |
|---|
| 125 | else |
|---|
| 126 | AC_MSG_RESULT(no) |
|---|
| 127 | PKG_CHECK_MODULES(AGG, libagg) |
|---|
| 128 | fi |
|---|
| 129 | |
|---|
| 130 | |
|---|
| 131 | dnl Check for option to enable libxml2 |
|---|
| 132 | AC_MSG_CHECKING(whether to enable included libxml2 building) |
|---|
| 133 | AC_ARG_ENABLE(libxml2, |
|---|
| 134 | [ --enable-libxml2=[no/yes] enables included libxml2 build (default=no)],, |
|---|
| 135 | enable_libxml2=no) |
|---|
| 136 | |
|---|
| 137 | AM_CONDITIONAL(HAVE_LIBXML2, test "x$enable_libxml2" = "xyes") |
|---|
| 138 | |
|---|
| 139 | if [ test "x$enable_libxml2" = "xyes"]; then |
|---|
| 140 | AC_MSG_RESULT(yes) |
|---|
| 141 | PKG_CHECK_MODULES(LIBXML2, libxml-2.0) |
|---|
| 142 | AC_DEFINE(HAVE_LIBXML2, 1,"") |
|---|
| 143 | else |
|---|
| 144 | AC_MSG_RESULT(no) |
|---|
| 145 | fi |
|---|
| 146 | |
|---|
| 147 | AC_OUTPUT([ |
|---|
| 148 | Makefile |
|---|
| 149 | include/Makefile |
|---|
| 150 | include/mapnik/Makefile |
|---|
| 151 | plugins/Makefile |
|---|
| 152 | plugins/input/Makefile |
|---|
| 153 | plugins/input/gdal/Makefile |
|---|
| 154 | plugins/input/postgis/Makefile |
|---|
| 155 | plugins/input/raster/Makefile |
|---|
| 156 | plugins/input/shape/Makefile |
|---|
| 157 | src/Makefile |
|---|
| 158 | mapnik.pc |
|---|
| 159 | mapnik-uninstalled.pc |
|---|
| 160 | agg/Makefile |
|---|
| 161 | agg/src/Makefile |
|---|
| 162 | agg/include/Makefile |
|---|
| 163 | ]) |
|---|