diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-24 17:41:36 -0600 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-04-09 15:22:59 -0700 |
commit | 91dbd7a9da38385308c02a4e94a18dd976179c2b (patch) | |
tree | 445b94e36dbc8e1207936a1d149c280fcb39434c /configure.ac | |
parent | 795c1240c9fb09c42bcdc45d5a8d44e6a406ee9c (diff) | |
download | rabbitmq-c-github-ask-91dbd7a9da38385308c02a4e94a18dd976179c2b.tar.gz |
Implement SSL/TLS over CyaSSL, GnuTLS, OpenSSL & PolarSSL backends
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5bafa6d..5c0f661 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,7 @@ m4_ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99], [AC_MSG_WARN([Attempt c99 workaround for old versions of autoconf]) AC_PROG_CC AX_TRY_CFLAGS([-std=c99], [AX_CFLAGS([-std=c99])])]) +PKG_PROG_PKG_CONFIG([0.17]) # Environment setup AC_CANONICAL_HOST @@ -127,6 +128,35 @@ AS_IF([test "x$enable_regen_amqp_framing" = "xyes"], [HAVE_PYTHON3=no]) AM_CONDITIONAL([PYTHON3], [test "x$HAVE_PYTHON3" = "xyes"]) +# Configure SSL/TLS +AC_ARG_WITH([ssl], + [AS_HELP_STRING([--with-ssl=@<:@cyassl/gnutls/no/openssl/polarssl/yes@:>@], + [enable SSL/TLS support @<:@default=openssl@:>@])], + [AS_CASE([$withval], + [yes], [with_ssl=openssl], + [*], [with_ssl=$withval])], + [with_ssl=openssl]) + +AS_IF([test "x$with_ssl" = "xcyassl"], + [PKG_CHECK_MODULES([SSL], [libcyassl],, [with_ssl=no])], + [test "x$with_ssl" = "xgnutls"], + [PKG_CHECK_MODULES([SSL], [gnutls],, [with_ssl=no])], + [test "x$with_ssl" = "xopenssl"], + [PKG_CHECK_MODULES([SSL], [openssl >= 1.0.1a],, [with_ssl=no])], + [test "x$with_ssl" = "xpolarssl"], + [AX_LIB_POLARSSL([SSL_CFLAGS=$POLARSSL_CFLAGS + SSL_LIBS=$POLARSSL_LIBS], + [with_ssl=no])], + [test "x$with_ssl" = "xno"],, + [AC_MSG_ERROR([unknown SSL/TLS implementation: $with_ssl])]) +AM_CONDITIONAL([SSL_CYASSL], [test "x$with_ssl" = "xcyassl"]) +AM_CONDITIONAL([SSL_GNUTLS], [test "x$with_ssl" = "xgnutls"]) +AM_CONDITIONAL([SSL_OPENSSL], [test "x$with_ssl" = "xopenssl"]) +AM_CONDITIONAL([SSL_POLARSSL], [test "x$with_ssl" = "xpolarssl"]) +AM_CONDITIONAL([SSL], [test "x$with_ssl" != "xno"]) +AS_IF([test "x$with_ssl" != "xno"], + [AC_DEFINE([WITH_SSL], [1], [Define to 1 if SSL/TLS is enabled.])]) + # Configure AMQP command-line tools AC_ARG_ENABLE([tools], [AS_HELP_STRING([--enable-tools], @@ -162,6 +192,7 @@ AC_MSG_RESULT([ $PACKAGE_NAME build options: Host: $host Version: $VERSION + SSL/TLS: $with_ssl Tools: $enable_tools Documentation: $enable_docs ]) |