summaryrefslogtreecommitdiff
path: root/server/configure.in
diff options
context:
space:
mode:
authordeva <deva>2011-04-27 09:09:42 +0000
committerdeva <deva>2011-04-27 09:09:42 +0000
commit9cafd5b42d73945841a779c3c62d1e784ea95fb3 (patch)
tree3ea17d29c950c229f1f112973e8a3ce38410c029 /server/configure.in
parent21a45e2102d973a13a8c35da16abb50a28480f4b (diff)
Add pkg-config init and with-praxisd parameter.
Diffstat (limited to 'server/configure.in')
-rw-r--r--server/configure.in33
1 files changed, 26 insertions, 7 deletions
diff --git a/server/configure.in b/server/configure.in
index dc7856c..068d8c0 100644
--- a/server/configure.in
+++ b/server/configure.in
@@ -34,6 +34,28 @@ fi
#AM_CONDITIONAL(HAVE_INOTIFY, [test "$inotify_support" = "yes"])
dnl ======================
+dnl Init pkg-config
+dnl ======================
+PKG_PROG_PKG_CONFIG(0.23)
+
+dnl ======================
+dnl Compile with praxisd support
+dnl ======================
+AC_ARG_WITH(praxisd,
+ [ --with-praxisd build with praxisd support (default=yes)],
+ [],
+ [with_praxisd=yes])
+if test x$with_praxisd == xno; then
+ AC_MSG_WARN([*** Building without praxisd support!])
+else
+ AC_DEFINE_UNQUOTED(WITH_PRAXISD, , [The project is configured to use praxisd])
+ dnl ======================
+ dnl Check for cURL library
+ dnl ======================
+ PKG_CHECK_MODULES(CURL, libcurl >= 7.9.5)
+fi
+
+dnl ======================
dnl Compile with artefact support
dnl ======================
AC_ARG_WITH(artefact,
@@ -93,8 +115,6 @@ else
dnl ======================
fi
-PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.7)
-
AC_PROG_CXX
AC_PROG_LIBTOOL
@@ -168,6 +188,10 @@ dnl Check for libmicrohttpd
dnl ======================
PKG_CHECK_MODULES(HTTPD, libmicrohttpd >= 0.4.4)
+dnl ======================
+dnl Compile with openssl
+dnl ======================
+PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.7)
dnl ======================
dnl Check for eXpat library
@@ -219,11 +243,6 @@ LIBS="$tmp_LIBS"
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LIBS)
-dnl ======================
-dnl Check for cURL library
-dnl ======================
-PKG_CHECK_MODULES(CURL, libcurl >= 7.9.5)
-
AC_OUTPUT(
Makefile
src/Makefile