source: subversion/applications/utils/mod_tile/configure.ac @ 29196

Last change on this file since 29196 was 28714, checked in by apmon, 7 years ago

[mod_tile] Add some configure compatibility fixes for solaris

File size: 1.8 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.61])
5AX_CONFIG_NICE
6AC_INIT(mod_tile, 0.1, http://trac.openstreetmap.org)
7AM_INIT_AUTOMAKE(mod_tile,0.1)
8LT_INIT
9AC_CONFIG_SRCDIR([convert_meta.c])
10AC_CONFIG_HEADERS([config.h])
11AC_CONFIG_MACRO_DIR([m4])
12
13# Checks for programs.
14AC_PROG_CXX
15AC_PROG_CC
16AC_PROG_CC_C99
17
18# Checks for libraries.
19
20# Checks for header files.
21AC_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 paths.h sys/cdefs.h sys/loadavg.h])
22
23# Checks for typedefs, structures, and compiler characteristics.
24AC_C_INLINE
25AC_TYPE_MODE_T
26AC_TYPE_SIZE_T
27AC_TYPE_UINT16_T
28AC_TYPE_UINT32_T
29AC_TYPE_UINT64_T
30
31# Checks for library functions.
32AC_FUNC_MALLOC
33AC_FUNC_MKTIME
34
35AC_CHECK_FT2
36AX_PTHREAD(,[AC_MSG_ERROR([no])])
37AC_SEARCH_LIBS(socket, socket)
38AC_SEARCH_LIBS(inet_ntoa, nsl)
39AC_SEARCH_LIBS(gethostbyname, resolv nsl)
40AC_SEARCH_LIBS(pow,m)
41AX_BOOST_BASE
42AC_CHECK_ICU(4.2)
43AX_LIB_MAPNIK
44AC_CHECK_FUNCS([bzero gethostbyname gettimeofday inet_ntoa memset mkdir pow select socket strchr strdup strerror strrchr strstr strtol strtoul utime],[],[AC_MSG_ERROR([One of the required functions was not found])])
45AC_CHECK_FUNCS([daemon getloadavg],[],[])
46
47AC_ARG_WITH(apxs,
48    [  --with-apxs=PATH        path to Apache apxs],
49    [
50        if test "$withval" = "yes"; then
51            AC_CHECK_PROGS(APXS, apxs2 /usr/sbin/apxs2, reject)
52        else
53            APXS=$withval
54            AC_SUBST(APXS)
55        fi
56    ],
57    [
58        AC_CHECK_PROGS(APXS, apxs2 /usr/sbin/apxs2, reject)
59    ])
60if test "$APXS" = "reject"; then
61  AC_MSG_ERROR([Could not find apxs on the path.])
62fi
63
64AC_CONFIG_FILES(Makefile iniparser3.0b/Makefile)
65AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.