]> git.openstreetmap.org Git - nominatim.git/blob - configure.ac
make sure rank 28 to 30 places are assigned a centroid value
[nominatim.git] / configure.ac
1 AC_INIT(Nominatim,2.1)
2 if git rev-parse HEAD 2>/dev/null >/dev/null; then
3     AC_SUBST([PACKAGE_VERSION], [$PACKAGE_VERSION-git-`git rev-parse --short HEAD`])
4 fi
5
6 dnl Required autoconf version
7 AC_PREREQ(2.61)
8
9 AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 std-options check-news])
10
11 dnl Additional macro definitions are in here
12 AC_CONFIG_MACRO_DIR([osm2pgsql/m4])
13
14 dnl Generate configuration header file
15 AC_CONFIG_HEADER(nominatim/config.h)
16
17
18 dnl Find C compiler
19 AC_PROG_CC
20
21 dnl Find C++ compiler
22 AC_PROG_CXX
23
24 dnl pthread
25 AX_PTHREAD([], [AC_MSG_ERROR([pthread library required])])
26
27 dnl Check for Geos library
28 AX_LIB_GEOS
29 if test "x$GEOS_VERSION" = "x" 
30 then
31   AC_MSG_ERROR([required library not found]);
32 fi
33
34 dnl Check for Proj library
35 AX_LIB_PROJ
36 if test "$HAVE_PROJ" = "no" 
37 then
38   AC_MSG_ERROR([required library not found]);
39 fi
40
41
42 dnl Check for PostgresSQL client library
43 AX_LIB_POSTGRESQL(8.4)
44 if test "x$POSTGRESQL_VERSION" = "x"
45 then
46     AC_MSG_ERROR([postgresql client library not found])
47 fi
48 if test ! -f "$POSTGRESQL_PGXS"
49 then
50     AC_MSG_ERROR([postgresql server development library not found])
51 fi
52
53 dnl Check for bzip2 library
54 AX_LIB_BZIP2
55 if test "$HAVE_BZIP2" = "no" 
56 then
57   AC_MSG_ERROR([required library not found]);
58 fi
59
60 dnl Check for libxml2 library
61 AM_PATH_XML2
62
63 AC_CONFIG_SUBDIRS([osm2pgsql])
64
65 AC_OUTPUT(Makefile nominatim/Makefile module/Makefile)