author | Michael Krelin <hacker@klever.net> | 2005-01-29 19:41:34 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-01-29 19:41:34 (UTC) |
commit | ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e (patch) (unidiff) | |
tree | be8029ce4a68870d991651927a27df8ee9d89617 /configure.ac | |
parent | d851b00e16839d6ec14da3a5c442be62ca868bba (diff) | |
download | konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.zip konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.gz konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.bz2 |
initial commit.0.0
-rw-r--r-- | configure.ac | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..96d9325 --- a/dev/null +++ b/configure.ac | |||
@@ -0,0 +1,65 @@ | |||
1 | AC_INIT([konforka], [0.0], [konforka-bugs@klever.net]) | ||
2 | AC_CONFIG_SRCDIR([include/konforka/exception.h]) | ||
3 | AC_CONFIG_HEADER([config.h]) | ||
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | ||
5 | |||
6 | AC_PROG_INSTALL | ||
7 | AC_PROG_AWK | ||
8 | AC_PROG_CXX | ||
9 | AC_PROG_CC | ||
10 | AC_PROG_LIBTOOL | ||
11 | |||
12 | AC_HEADER_STDC | ||
13 | |||
14 | AC_C_CONST | ||
15 | |||
16 | AC_FUNC_MALLOC | ||
17 | AC_FUNC_REALLOC | ||
18 | |||
19 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | ||
20 | |||
21 | AC_WITH_PKGCONFIG | ||
22 | WANT_DOXYGEN="yes" | ||
23 | AC_ARG_ENABLE([doxygen], | ||
24 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | ||
25 | [ | ||
26 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | ||
27 | ] | ||
28 | ) | ||
29 | if test "${WANT_DOXYGEN}" = "yes" ; then | ||
30 | AC_WITH_DOXYGEN | ||
31 | AC_WITH_DOT | ||
32 | else | ||
33 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) | ||
34 | AM_CONDITIONAL([HAVE_DOT],[false]) | ||
35 | fi | ||
36 | |||
37 | WANT_PQXX="yes" | ||
38 | AC_ARG_WITH([libpqxx], | ||
39 | AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]), | ||
40 | [ | ||
41 | test "${withval}" = "no" && WANT_PQXX="no" | ||
42 | ] | ||
43 | ) | ||
44 | HAVE_PQXX="no" | ||
45 | PC_REQ_PQXX="" | ||
46 | if test "${WANT_PQXX}" = "yes" ; then | ||
47 | PKG_CHECK_MODULES([PQXX],[libpqxx],[ | ||
48 | HAVE_PQXX="yes" | ||
49 | PC_REQ_PQXX="libpqxx" | ||
50 | ],[ | ||
51 | AC_MSG_NOTICE([no libpqxx found, no connection piling support will be built]) | ||
52 | ] | ||
53 | ) | ||
54 | fi | ||
55 | AC_SUBST([PC_REQ_PQXX],[${PC_REQ_PQXX}]) | ||
56 | AM_CONDITIONAL([HAVE_PQXX],[test "${HAVE_PQXX}" = "yes"]) | ||
57 | |||
58 | AC_CONFIG_FILES([ | ||
59 | Makefile | ||
60 | konforka.pc | ||
61 | Doxyfile | ||
62 | include/Makefile | ||
63 | lib/Makefile | ||
64 | ]) | ||
65 | AC_OUTPUT | ||