1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
AC_INIT([konforka], [0.0.1], [konforka-bugs@klever.net])
AC_CONFIG_SRCDIR([include/konforka/exception.h])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([dist-bzip2])
AC_PROG_INSTALL
AC_PROG_AWK
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
AC_HEADER_STDC
AC_C_CONST
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
WANT_DOXYGEN="yes"
AC_ARG_ENABLE([doxygen],
AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
[
test "${enableval}" = "no" && WANT_DOXYGEN="no"
]
)
if test "${WANT_DOXYGEN}" = "yes" ; then
AC_WITH_DOXYGEN
AC_WITH_DOT
else
AM_CONDITIONAL([HAVE_DOXYGEN],[false])
AM_CONDITIONAL([HAVE_DOT],[false])
fi
WANT_PQXX="yes"
AC_ARG_WITH([libpqxx],
AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]),
[
test "${withval}" = "no" && WANT_PQXX="no"
]
)
HAVE_PQXX="no"
PC_REQ_PQXX=""
if test "${WANT_PQXX}" = "yes" ; then
PKG_CHECK_MODULES([PQXX],[libpqxx],[
HAVE_PQXX="yes"
PC_REQ_PQXX="libpqxx"
],[
AC_MSG_NOTICE([no libpqxx found, no connection piling support will be built])
]
)
fi
AC_SUBST([PC_REQ_PQXX],[${PC_REQ_PQXX}])
AM_CONDITIONAL([HAVE_PQXX],[test "${HAVE_PQXX}" = "yes"])
AC_CONFIG_FILES([
Makefile
konforka.pc
Doxyfile
include/Makefile
lib/Makefile
])
AC_OUTPUT
|