X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=configure.ac;h=828ada658cc71e93700e3c4012fdc1d98ff7629c;hb=ec47521f582d6d86fa3b2b84133d1e711d212518;hp=5b612ca06671235260663a0f4ad67f706b532b3e;hpb=0382e6436faf446f1f39860cdb59159ccd4b3356;p=umurmur.git diff --git a/configure.ac b/configure.ac index 5b612ca..828ada6 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ AM_INIT_AUTOMAKE AC_CANONICAL_HOST # Configure options. -AC_ARG_WITH([ssl], [AC_HELP_STRING([--with-ssl=@<:@LIB@:>@], [SSL library (openssl|polarssl) @<:@default=polarssl@:>@])], [], [with_ssl=polarssl]) +AC_ARG_WITH([ssl], [AC_HELP_STRING([--with-ssl=@<:@LIB@:>@], [SSL library (openssl|polarssl|gnutls) @<:@default=polarssl@:>@])], [], [with_ssl=polarssl]) AC_ARG_ENABLE([shmapi], [AC_HELP_STRING([--enable-shmapi], [compile with Sharedmemory API support @<:@default=no@:>@])],[],[enable_shmapi=no] ) AC_ARG_ENABLE(polarssl-test-cert, [ --enable-polarssl-test-cert Link to PolarSSL test certificate and key @<:@default=no@:>@], [enable_polarssl_test_cert=yes]) AC_ARG_ENABLE(polarssl-havege, [ --enable-polarssl-havege Link to PolarSSL HAVEGE random generator key @<:@default=no@:>@ Default: /dev/urandom], [enable_polarssl_havege=yes]) @@ -89,6 +89,12 @@ AS_IF([test "x$with_ssl" = xopenssl], [ AC_CHECK_LIB([crypto], [BN_init], [], [AC_MSG_ERROR([could not find libcrypto])]) AC_CHECK_LIB([ssl], [SSL_library_init], [], [AC_MSG_ERROR([could not find libssl])]) ]) +AS_IF([test "x$with_ssl" = xgnutls], [ + AC_CHECK_HEADERS([gnutls/gnutls.h], [], [AC_MSG_ERROR([could not find gnutls/gnutls.h])]) + AC_CHECK_LIB([gnutls], [gnutls_priority_init], [], [AC_MSG_ERROR([could not find libgnutls])]) + AC_CHECK_LIB([nettle], [_nettle_aes_decrypt], [], [AC_MSG_ERROR([could not find libnettle])]) + AC_DEFINE([USE_GNUTLS], [], [Use GnuTLS]) +]) AM_CONDITIONAL(USE_OPENSSL, test x$with_ssl = xopenssl) AM_CONDITIONAL(USE_GNUTLS, test x$with_ssl = xgnutls) @@ -97,6 +103,7 @@ AS_IF([test "x$enable_shmapi" != xno], [ AM_CONDITIONAL(USE_SHAREDMEMORY_API, true) AC_DEFINE([USE_SHAREDMEMORY_API],[],[Use sharedmemory API]) + AC_CHECK_FUNC([shm_open], [], [AC_CHECK_LIB([rt], [shm_open], [], [AC_MSG_ERROR([could not find shm_open() in librt])])]) ], [ AM_CONDITIONAL(USE_SHAREDMEMORY_API, false) ])