|
@@ -26,8 +26,8 @@ XML2_INCLUDE="/usr/include/libxml2"
|
|
|
AC_SUBST(XML2_INCLUDE)
|
|
|
|
|
|
# Zookeeper C client
|
|
|
-ZOOKEEPER_PATH=${BUILD_PATH}/../../c
|
|
|
-AC_CHECK_LIB(zookeeper_mt, main, [ZOOKEEPER="-L${ZOOKEEPER_PATH}/.libs -lzookeeper_mt"],,["-L${ZOOKEEPER_PATH}/.libs"])
|
|
|
+ZOOKEEPER_PATH=${BUILD_PATH}/../../zookeeper-client/zookeeper-client-c
|
|
|
+AC_CHECK_LIB(zookeeper_mt, main, [ZOOKEEPER="-L${ZOOKEEPER_PATH}/target/c/.libs -lzookeeper_mt"],,["-L${ZOOKEEPER_PATH}/target/c/.libs"])
|
|
|
if test -z "${ZOOKEEPER}"; then
|
|
|
AC_ERROR("... zookeeper C client not found!")
|
|
|
fi
|
|
@@ -45,6 +45,35 @@ if test -z "${LOG4CXX}"; then
|
|
|
AC_ERROR("... log4cxx not found!")
|
|
|
fi
|
|
|
|
|
|
+dnl OpenSSL
|
|
|
+AC_ARG_WITH(openssl,
|
|
|
+ [AC_HELP_STRING([--with-openssl[=DIR]], [build with openssl (autodetect openssl library by default) )])],
|
|
|
+ [], [with_openssl=yes])
|
|
|
+AC_MSG_NOTICE([configuring SSL using --with-openssl=$with_openssl])
|
|
|
+saved_CPPFLAGS="$CPPFLAGS"
|
|
|
+saved_LDFLAGS="$LDFLAGS"
|
|
|
+if test "x$with_openssl" != "xno" && test "x$with_openssl" != "xyes" ; then
|
|
|
+ CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
|
|
|
+ LDFLAGS="$LDFLAGS -L$with_openssl/lib"
|
|
|
+fi
|
|
|
+have_openssl=no
|
|
|
+AC_CHECK_HEADER(openssl/ssl.h, [ AC_CHECK_LIB(ssl, SSL_CTX_new, [have_openssl=yes]) ])
|
|
|
+if test "x$with_openssl" != "xno" && test "x$with_openssl" != "xyes" && test "x$have_openssl" != "xyes"; then
|
|
|
+ CPPFLAGS="$saved_CPPFLAGS"
|
|
|
+ LDFLAGS="$saved_LDFLAGS"
|
|
|
+fi
|
|
|
+if test "x$with_openssl" != xno && test "x$have_openssl" = xno; then
|
|
|
+ AC_MSG_WARN([cannot build SSL support -- openssl not found])
|
|
|
+ with_openssl=no
|
|
|
+fi
|
|
|
+if test "x$with_openssl" != xno; then
|
|
|
+ AC_MSG_NOTICE([building with SSL support])
|
|
|
+else
|
|
|
+ AC_MSG_NOTICE([building without SSL support])
|
|
|
+fi
|
|
|
+AM_CONDITIONAL([WANT_OPENSSL],[test "x$with_openssl" != xno])
|
|
|
+
|
|
|
+
|
|
|
AC_SUBST(LOG4CXX)
|
|
|
AC_SUBST(LOG4CXX_VERSION)
|
|
|
AC_SUBST(LOG4CXX_INCLUDE)
|