mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-07-29 11:44:17 +00:00

mapnik 0.7 does not have a mapnik-config utility. Use other means to determin flags for mapnik library
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.61])
|
|
AX_CONFIG_NICE
|
|
AC_INIT(mod_tile, 0.1, http://trac.openstreetmap.org)
|
|
AM_INIT_AUTOMAKE(mod_tile,0.1)
|
|
LT_INIT
|
|
AC_CONFIG_SRCDIR([convert_meta.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C99
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h utime.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_INLINE
|
|
AC_TYPE_MODE_T
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_UINT16_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT64_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MKTIME
|
|
AC_CHECK_FUNCS([bzero gethostbyname gettimeofday inet_ntoa memset mkdir pow select socket strchr strdup strerror strrchr strstr strtol strtoul utime])
|
|
AC_CHECK_FT2
|
|
AX_PTHREAD(,[AC_MSG_ERROR([no])])
|
|
AX_LIB_MAPNIK
|
|
|
|
AC_ARG_WITH(apxs,
|
|
[ --with-apxs=PATH path to Apache apxs],
|
|
[
|
|
if test "$withval" = "yes"; then
|
|
AC_CHECK_PROGS(APXS, apxs2 /usr/sbin/apxs2, reject)
|
|
else
|
|
APXS=$withval
|
|
AC_SUBST(APXS)
|
|
fi
|
|
],
|
|
[
|
|
AC_CHECK_PROGS(APXS, apxs2 /usr/sbin/apxs2, reject)
|
|
])
|
|
if test "$APXS" = "reject"; then
|
|
AC_MSG_ERROR([Could not find apxs on the path.])
|
|
fi
|
|
|
|
AC_CONFIG_FILES(Makefile iniparser3.0b/Makefile)
|
|
AC_OUTPUT
|