-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5ae7b27..b3141f1 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,61 +1,64 @@ | |||
1 | AC_INIT([kingate], [0.0.1], [kingate-bugs@klever.net]) | 1 | AC_INIT([kingate], [0.0.1], [kingate-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h]) | 2 | AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h]) |
3 | AC_CONFIG_HEADER([config.h]) | 3 | AC_CONFIG_HEADER([config.h]) |
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | 4 | AM_INIT_AUTOMAKE([dist-bzip2]) |
5 | 5 | ||
6 | AC_PROG_INSTALL | 6 | AC_PROG_INSTALL |
7 | AC_PROG_AWK | 7 | AC_PROG_AWK |
8 | AC_PROG_CXX | 8 | AC_PROG_CXX |
9 | AC_PROG_CC | 9 | AC_PROG_CC |
10 | AC_PROG_LIBTOOL | 10 | AC_PROG_LIBTOOL |
11 | 11 | ||
12 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) | 13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) |
14 | AC_CHECK_DECLS([environ],,,[ | ||
15 | #include <unistd.h> | ||
16 | ]) | ||
14 | 17 | ||
15 | HAVE_FCGI=false | 18 | HAVE_FCGI=false |
16 | AC_LANG_PUSH(C++) | 19 | AC_LANG_PUSH(C++) |
17 | AC_CHECK_HEADERS([fcgio.h],[ | 20 | AC_CHECK_HEADERS([fcgio.h],[ |
18 | AC_CHECK_LIB(fcgi,FCGX_Init,[ | 21 | AC_CHECK_LIB(fcgi,FCGX_Init,[ |
19 | LIBS="-lfcgi ${LIBS}" | 22 | LIBS="-lfcgi ${LIBS}" |
20 | AC_CHECK_LIB([fcgi++],[main],[ | 23 | AC_CHECK_LIB([fcgi++],[main],[ |
21 | LIBS="-lfcgi++ ${LIBS}" | 24 | LIBS="-lfcgi++ ${LIBS}" |
22 | HAVE_FCGI=true | 25 | HAVE_FCGI=true |
23 | ]) | 26 | ]) |
24 | ]) | 27 | ]) |
25 | ]) | 28 | ]) |
26 | AC_LANG_POP(C++) | 29 | AC_LANG_POP(C++) |
27 | if ! ${HAVE_FCGI} ; then | 30 | if ! ${HAVE_FCGI} ; then |
28 | AC_MSG_NOTICE([no FastCGI development kit found. It is highly recommnded that you get one. Meanwhile we will proceed without FastCGI support]) | 31 | AC_MSG_NOTICE([no FastCGI development kit found. It is highly recommnded that you get one. Meanwhile we will proceed without FastCGI support]) |
29 | fi | 32 | fi |
30 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) | 33 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) |
31 | 34 | ||
32 | AC_C_CONST | 35 | AC_C_CONST |
33 | 36 | ||
34 | AC_FUNC_MALLOC | 37 | AC_FUNC_MALLOC |
35 | AC_FUNC_REALLOC | 38 | AC_FUNC_REALLOC |
36 | 39 | ||
37 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 40 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
38 | 41 | ||
39 | AC_WITH_PKGCONFIG | 42 | AC_WITH_PKGCONFIG |
40 | 43 | ||
41 | PKG_CHECK_MODULES([KONFORKA],[konforka],,[ | 44 | PKG_CHECK_MODULES([KONFORKA],[konforka],,[ |
42 | AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/]) | 45 | AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/]) |
43 | ]) | 46 | ]) |
44 | 47 | ||
45 | WANT_DOXYGEN="yes" | 48 | WANT_DOXYGEN="yes" |
46 | AC_ARG_ENABLE([doxygen], | 49 | AC_ARG_ENABLE([doxygen], |
47 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | 50 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), |
48 | [ | 51 | [ |
49 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | 52 | test "${enableval}" = "no" && WANT_DOXYGEN="no" |
50 | ] | 53 | ] |
51 | ) | 54 | ) |
52 | if test "${WANT_DOXYGEN}" = "yes" ; then | 55 | if test "${WANT_DOXYGEN}" = "yes" ; then |
53 | AC_WITH_DOXYGEN | 56 | AC_WITH_DOXYGEN |
54 | AC_WITH_DOT | 57 | AC_WITH_DOT |
55 | else | 58 | else |
56 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) | 59 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) |
57 | AM_CONDITIONAL([HAVE_DOT],[false]) | 60 | AM_CONDITIONAL([HAVE_DOT],[false]) |
58 | fi | 61 | fi |
59 | 62 | ||
60 | AC_CONFIG_FILES([ | 63 | AC_CONFIG_FILES([ |
61 | Makefile | 64 | Makefile |