summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac25
1 files changed, 9 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 4729e92..3d67866 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,78 +1,71 @@
1AC_INIT([libopkele], [0.1], [libopkele-bugs@klever.net]) 1AC_INIT([libopkele], [0.1], [libopkele-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/opkele/opkele-config.h]) 2AC_CONFIG_SRCDIR([include/opkele/opkele-config.h])
3AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h]) 3AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h])
4AM_INIT_AUTOMAKE([dist-bzip2]) 4AM_INIT_AUTOMAKE([dist-bzip2])
5 5
6AC_PROG_INSTALL 6AC_PROG_INSTALL
7AC_PROG_CXX 7AC_PROG_CXX
8AC_PROG_CC 8AC_PROG_CC
9AC_PROG_LIBTOOL 9AC_PROG_LIBTOOL
10 10
11AC_HEADER_STDC 11AC_HEADER_STDC
12 12
13AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) 13AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
14AC_WITH_PKGCONFIG 14AC_WITH_PKGCONFIG
15 15
16PKG_CHECK_MODULES([OPENSSL],[openssl],[ 16PKG_CHECK_MODULES([OPENSSL],[openssl],,[
17 AC_MSG_RESULT([yes]) 17 AC_MSG_ERROR([no openssl library found. get one from http://www.openssl.org/])
18 ],[ 18])
19 AC_MSG_ERROR([no openssl library found. get one from http://www.openssl.org/])
20 ]
21)
22 19
23WANT_KONFORKA="yes" 20WANT_KONFORKA="yes"
24AC_ARG_ENABLE([konforka], 21AC_ARG_ENABLE([konforka],
25 AC_HELP_STRING([--disable-konforka],[do not use konforka library (default: use if found)]), 22 AC_HELP_STRING([--disable-konforka],[do not use konforka library (default: use if found)]),
26 [ 23 [
27 test "${enableval}" = "no" && WANT_KONFORKA="no" 24 test "${enableval}" = "no" && WANT_KONFORKA="no"
28 ] 25 ]
29) 26)
30if test "${WANT_KONFORKA}" = "yes" ; then 27if test "${WANT_KONFORKA}" = "yes" ; then
31 PKG_CHECK_MODULES([KONFORKA],[konforka],[ 28 PKG_CHECK_MODULES([KONFORKA],[konforka],[
32 AC_MSG_RESULT([yes]) 29 AC_SUBST([KONFORKA_CFLAGS])
33 AC_SUBST([KONFORKA_CFLAGS]) 30 AC_SUBST([KONFORKA_LIBS])
34 AC_SUBST([KONFORKA_LIBS]) 31 AC_DEFINE([HAVE_KONFORKA],,[defined in presence of konforka library])
35 AC_DEFINE([HAVE_KONFORKA],,[defined in presence of konforka library]) 32 AC_DEFINE([OPKELE_HAVE_KONFORKA],,[defined in presence of konforka library])
36 AC_DEFINE([OPKELE_HAVE_KONFORKA],,[defined in presence of konforka library]) 33 AC_SUBST([KONFORKA_KONFORKA],[konforka])
37 AC_SUBST([KONFORKA_KONFORKA],[konforka]) 34 ])
38 ],[
39 AC_MSG_RESULT([no])
40 ]
41 )
42fi 35fi
43 36
44WANT_DOXYGEN="yes" 37WANT_DOXYGEN="yes"
45AC_ARG_ENABLE([doxygen], 38AC_ARG_ENABLE([doxygen],
46 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), 39 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
47 [ 40 [
48 test "${enableval}" = "no" && WANT_DOXYGEN="no" 41 test "${enableval}" = "no" && WANT_DOXYGEN="no"
49 ] 42 ]
50) 43)
51if test "${WANT_DOXYGEN}" = "yes" ; then 44if test "${WANT_DOXYGEN}" = "yes" ; then
52 AC_WITH_DOXYGEN 45 AC_WITH_DOXYGEN
53 AC_WITH_DOT 46 AC_WITH_DOT
54else 47else
55 AM_CONDITIONAL([HAVE_DOXYGEN],[false]) 48 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
56 AM_CONDITIONAL([HAVE_DOT],[false]) 49 AM_CONDITIONAL([HAVE_DOT],[false])
57fi 50fi
58 51
59LIBCURL_CHECK_CONFIG(,,,[ 52LIBCURL_CHECK_CONFIG(,,,[
60 AC_MSG_ERROR([no required libcurl library. get one from http://curl.haxx.se/]) 53 AC_MSG_ERROR([no required libcurl library. get one from http://curl.haxx.se/])
61]) 54])
62AC_WITH_PCRE([ 55AC_WITH_PCRE([
63 AC_WITH_PCREPP(,[ 56 AC_WITH_PCREPP(,[
64 AC_MSG_ERROR([no pcre++ library found. get one at http://www.daemon.de/PCRE]) 57 AC_MSG_ERROR([no pcre++ library found. get one at http://www.daemon.de/PCRE])
65 ]) 58 ])
66 ],[ 59 ],[
67 AC_MSG_ERROR([no pcre library found. get one at http://www.pcre.org/]) 60 AC_MSG_ERROR([no pcre library found. get one at http://www.pcre.org/])
68 ] 61 ]
69) 62)
70 63
71AC_CONFIG_FILES([ 64AC_CONFIG_FILES([
72 Makefile 65 Makefile
73 libopkele.pc 66 libopkele.pc
74 Doxyfile 67 Doxyfile
75 include/Makefile 68 include/Makefile
76 lib/Makefile 69 lib/Makefile
77]) 70])
78AC_OUTPUT 71AC_OUTPUT