summaryrefslogtreecommitdiffabout
path: root/configure.ac
Unidiff
Diffstat (limited to 'configure.ac') (more/less context) (show whitespace changes)
-rw-r--r--configure.ac69
1 files changed, 69 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..acd34b9
--- a/dev/null
+++ b/configure.ac
@@ -0,0 +1,69 @@
1AC_INIT([sitecing], [0.0], [sitecing-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h])
3AC_CONFIG_HEADER([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2])
5
6AC_PROG_INSTALL
7AC_PROG_AWK
8AC_PROG_CXX
9AC_PROG_CC
10AM_PROG_LEX
11AC_PROG_LIBTOOL
12
13AC_HEADER_STDC
14AC_CHECK_HEADERS([stdlib.h unistd.h])
15
16AC_C_CONST
17
18AC_FUNC_MALLOC
19AC_FUNC_REALLOC
20
21AC_WITH_PKGCONFIG
22
23PKG_CHECK_MODULES([KINGATE],[kingate-fcgi],,[
24 AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/])
25])
26PKG_CHECK_MODULES([DOTCONF],[dotconf],,[
27 AC_MSG_ERROR([no dotconf library found])
28])
29
30AC_WITH_PCRE([
31 AC_WITH_PCREPP(,[
32 AC_MSG_ERROR([no pcre++ library found])
33 ])
34],[
35 AC_MSG_ERROR([no pcre library found])
36])
37
38AC_CHECK_LIB([dl],[dlopen],,[
39 AC_MSG_ERROR([no dlopen library found])
40])
41
42AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
43
44WANT_DOXYGEN="yes"
45AC_ARG_ENABLE([doxygen],
46 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
47 [
48 test "${enableval}" = "no" && WANT_DOXYGEN="no"
49 ]
50)
51if test "${WANT_DOXYGEN}" = "yes" ; then
52 AC_WITH_DOXYGEN
53 AC_WITH_DOT
54else
55 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
56 AM_CONDITIONAL([HAVE_DOT],[false])
57fi
58
59AC_CONFIG_FILES([
60 Makefile
61 Doxyfile
62 sitecing.pc
63 include/Makefile
64 lib/Makefile
65 share/Makefile
66 src/Makefile
67 components/Makefile
68])
69AC_OUTPUT