-rw-r--r-- | configure.ac | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..109eddf --- a/dev/null +++ b/configure.ac | |||
@@ -0,0 +1,62 @@ | |||
1 | AC_INIT([kingate], [0.0], [kingate-bugs@klever.net]) | ||
2 | AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.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 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) | ||
14 | |||
15 | AC_LANG_PUSH(C++) | ||
16 | AC_CHECK_HEADERS([fcgio.h],,[ | ||
17 | exit 1 | ||
18 | ]) | ||
19 | AC_CHECK_LIB(fcgi,FCGX_Init,,[ | ||
20 | exit 1 | ||
21 | ]) | ||
22 | AC_CHECK_LIB([fcgi++],[main],,[ | ||
23 | exit 1 | ||
24 | ]) | ||
25 | AC_LANG_POP(C++) | ||
26 | |||
27 | AC_C_CONST | ||
28 | |||
29 | AC_FUNC_MALLOC | ||
30 | AC_FUNC_REALLOC | ||
31 | |||
32 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | ||
33 | |||
34 | AC_WITH_PKGCONFIG | ||
35 | |||
36 | PKG_CHECK_MODULES([KONFORKA],[konforka],,[ | ||
37 | AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/]) | ||
38 | ]) | ||
39 | |||
40 | WANT_DOXYGEN="yes" | ||
41 | AC_ARG_ENABLE([doxygen], | ||
42 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | ||
43 | [ | ||
44 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | ||
45 | ] | ||
46 | ) | ||
47 | if test "${WANT_DOXYGEN}" = "yes" ; then | ||
48 | AC_WITH_DOXYGEN | ||
49 | AC_WITH_DOT | ||
50 | else | ||
51 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) | ||
52 | AM_CONDITIONAL([HAVE_DOT],[false]) | ||
53 | fi | ||
54 | |||
55 | AC_CONFIG_FILES([ | ||
56 | Makefile | ||
57 | kingate.pc kingate-fcgi.pc | ||
58 | Doxyfile | ||
59 | include/Makefile | ||
60 | src/Makefile | ||
61 | ]) | ||
62 | AC_OUTPUT | ||