1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
AC_DEFUN([DOVECOT_WANT_CASSANDRA], [
AS_IF([test "$want_cassandra" != no], [
AC_CHECK_LIB([cassandra], [cass_session_new], [
AC_CHECK_HEADER([cassandra.h], [
CASSANDRA_LIBS="$CASSANDRA_LIBS -lcassandra"
AC_DEFINE(HAVE_CASSANDRA,, [Build with Cassandra support])
found_sql_drivers="$found_sql_drivers cassandra"
AC_CHECK_LIB(cassandra, cass_cluster_set_constant_speculative_execution_policy, [
AC_DEFINE(HAVE_CASSANDRA_SPECULATIVE_POLICY, 1, [Cassandra supports speculative execution policy])
],, $CASSANDRA_LIBS)
AC_CHECK_LIB(cassandra, cass_cluster_set_use_hostname_resolution, [
AC_DEFINE(HAVE_CASS_CLUSTER_SET_USE_HOSTNAME_RESOLUTION,, [Build with cass_cluster_set_use_hostname_resolution() support])
],, $CASSANDRA_LIBS)
AC_CHECK_DECLS([CASS_SSL_VERIFY_PEER_IDENTITY_DNS], [], [], [[#include <cassandra.h>]])
], [
AS_IF([test "$want_cassandra" = yes], [
AC_ERROR([Can't build with Cassandra support: cassandra.h not found])
])
])
], [AS_IF([test "$want_cassandra" = yes], [
AC_ERROR([Can't build with Cassandra support: libcassandra not found])
])
])
])
])
|