source: subversion/applications/utils/export/osm2pgsql-intarray/configure.ac @ 28719

Last change on this file since 28719 was 24898, checked in by hholzgra, 9 years ago

version number typo fix

File size: 2.0 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(osm2pgsql, 0.70.5)
3
4dnl Required autoconf version
5AC_PREREQ(2.61)
6
7AX_CONFIG_NICE
8
9dnl use automake to generate standard Makefiles
10AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 std-options check-news])
11
12dnl use 'silent' make rules by default (disabled for now)
13dnl AM_INIT_AUTOMAKE([1.11 dist-bzip2 silent-rules])
14dnl AM_SILENT_RULES([yes])
15
16dnl Additional macro definitions are in here
17AC_CONFIG_MACRO_DIR([m4])
18
19dnl Generate configuration header file
20AC_CONFIG_HEADER(config.h)
21
22dnl Find C compiler
23AC_PROG_CC_C99
24
25dnl Find C++ compiler
26AC_PROG_CXX
27
28dnl Make sure we have libtool installed
29AM_PROG_LIBTOOL
30
31dnl Check for libxml2 library
32AX_LIB_XML2
33if test "$HAVE_XML2" = "no"
34then
35  AC_MSG_ERROR([required library not found]);
36fi
37
38dnl check for zlib library
39AX_LIB_ZLIB
40if test "$HAVE_ZLIB" = "no"
41then
42  AC_MSG_ERROR([required library not found]);
43fi
44
45dnl Check for bzip2 library
46AX_LIB_BZIP2
47if test "$HAVE_BZIP2" = "no"
48then
49  AC_MSG_ERROR([required library not found]);
50fi
51
52dnl Check for Geos library
53AX_LIB_GEOS
54if test "$HAVE_GEOS" = "no"
55then
56  AC_MSG_ERROR([required library not found]);
57fi
58
59dnl Check for Proj library
60AX_LIB_PROJ
61if test "$HAVE_PROJ" = "no"
62then
63  AC_MSG_ERROR([required library not found]);
64fi
65
66dnl Check for protobuf-c library and protoc-c binary
67AX_LIB_PROTOBUF_C([0.14])
68
69dnl Decide whether to include PBF import support
70BUILD_READER_PBF=no
71if test "$HAVE_PROTOBUF_C" = "yes"
72then
73  if test "$PROTOC_C" != "false" -o -f $srcdir/fileformat.pb-c.c
74  then
75    BUILD_READER_PBF=yes
76    AC_DEFINE([BUILD_READER_PBF], [1], [Requirements for building the PBF reader are met])
77  fi
78fi
79AM_CONDITIONAL([READER_PBF], [test "$BUILD_READER_PBF" = "yes"])
80
81dnl Check for PostgresSQL client library
82AX_LIB_POSTGRESQL
83if test -f $POSTGRESQL_PGXS
84then
85  GAZETTEER_SUBDIR=gazetteer
86fi
87AC_SUBST([GAZETTEER_SUBDIR])
88
89dnl Check for pthread library
90AX_PTHREAD(,[AC_MSG_ERROR([no])])
91
92
93dnl Generate Makefile
94AC_OUTPUT(Makefile legacy/Makefile gazetteer/Makefile)
95
Note: See TracBrowser for help on using the repository browser.