-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a8aa142..fde326b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,70 +1,74 @@ | |||
1 | AC_INIT([sitecing], [0.0.1], [sitecing-bugs@klever.net]) | 1 | AC_INIT([sitecing], [0.0.1], [sitecing-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) | 2 | AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.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 | AM_PROG_LEX | 10 | AM_PROG_LEX |
11 | AC_PROG_LIBTOOL | 11 | AC_PROG_LIBTOOL |
12 | 12 | ||
13 | AC_HEADER_STDC | 13 | AC_HEADER_STDC |
14 | AC_CHECK_HEADERS([stdlib.h unistd.h]) | 14 | AC_CHECK_HEADERS([stdlib.h unistd.h]) |
15 | 15 | ||
16 | AC_C_CONST | 16 | AC_C_CONST |
17 | 17 | ||
18 | AC_FUNC_MALLOC | 18 | AC_FUNC_MALLOC |
19 | AC_FUNC_REALLOC | 19 | AC_FUNC_REALLOC |
20 | 20 | ||
21 | AC_WITH_PKGCONFIG | 21 | AC_WITH_PKGCONFIG |
22 | 22 | ||
23 | PKG_CHECK_MODULES([KONFORKA],[konforka >= 0.0.1],,[ | ||
24 | AC_MSG_ERROR([no proper version of konforka library found, get it at http://kin.klever.net/konforka/]) | ||
25 | ]) | ||
26 | |||
23 | PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[ | 27 | PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[ |
24 | AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) | 28 | AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) |
25 | ]) | 29 | ]) |
26 | HAVE_FCGI=false | 30 | HAVE_FCGI=false |
27 | HAVE_PLAINCGI=false | 31 | HAVE_PLAINCGI=false |
28 | PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[ | 32 | PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[ |
29 | HAVE_FCGI=true | 33 | HAVE_FCGI=true |
30 | ],[ | 34 | ],[ |
31 | AC_MSG_NOTICE([no fastcgi support in kingate library]) | 35 | AC_MSG_NOTICE([no fastcgi support in kingate library]) |
32 | ]) | 36 | ]) |
33 | PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[ | 37 | PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[ |
34 | HAVE_PLAINCGI=true | 38 | HAVE_PLAINCGI=true |
35 | ],[ | 39 | ],[ |
36 | AC_MSG_NOTICE([no plaincgi support in kingate library]) | 40 | AC_MSG_NOTICE([no plaincgi support in kingate library]) |
37 | ]) | 41 | ]) |
38 | if ! (${HAVE_FCGI} || ${HAVE_PLAINCGI}) ; then | 42 | if ! (${HAVE_FCGI} || ${HAVE_PLAINCGI}) ; then |
39 | AC_MSG_ERROR([not a single CGI interface supported in kingate]) | 43 | AC_MSG_ERROR([not a single CGI interface supported in kingate]) |
40 | fi | 44 | fi |
41 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) | 45 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) |
42 | AM_CONDITIONAL([HAVE_PLAINCGI],[${HAVE_PLAINCGI}]) | 46 | AM_CONDITIONAL([HAVE_PLAINCGI],[${HAVE_PLAINCGI}]) |
43 | 47 | ||
44 | PKG_CHECK_MODULES([DOTCONF],[dotconf],,[ | 48 | PKG_CHECK_MODULES([DOTCONF],[dotconf],,[ |
45 | AC_MSG_ERROR([no dotconf library found]) | 49 | AC_MSG_ERROR([no dotconf library found]) |
46 | ]) | 50 | ]) |
47 | 51 | ||
48 | AC_WITH_PCRE([ | 52 | AC_WITH_PCRE([ |
49 | AC_WITH_PCREPP(,[ | 53 | AC_WITH_PCREPP(,[ |
50 | AC_MSG_ERROR([no pcre++ library found]) | 54 | AC_MSG_ERROR([no pcre++ library found]) |
51 | ]) | 55 | ]) |
52 | ],[ | 56 | ],[ |
53 | AC_MSG_ERROR([no pcre library found]) | 57 | AC_MSG_ERROR([no pcre library found]) |
54 | ]) | 58 | ]) |
55 | 59 | ||
56 | AC_CHECK_FUNC([dlopen],,[ | 60 | AC_CHECK_FUNC([dlopen],,[ |
57 | AC_CHECK_LIB([dl],[dlopen],,[ | 61 | AC_CHECK_LIB([dl],[dlopen],,[ |
58 | AC_MSG_ERROR([no dlopen library found]) | 62 | AC_MSG_ERROR([no dlopen library found]) |
59 | ]) | 63 | ]) |
60 | ]) | 64 | ]) |
61 | 65 | ||
62 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 66 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
63 | 67 | ||
64 | WANT_DOXYGEN="yes" | 68 | WANT_DOXYGEN="yes" |
65 | AC_ARG_ENABLE([doxygen], | 69 | AC_ARG_ENABLE([doxygen], |
66 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | 70 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), |
67 | [ | 71 | [ |
68 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | 72 | test "${enableval}" = "no" && WANT_DOXYGEN="no" |
69 | ] | 73 | ] |
70 | ) | 74 | ) |