]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
configure.ac: fix SSL_OP_NO_TICKET check
authorSteffan Karger <steffan@karger.me>
Sun, 22 Jun 2014 18:18:39 +0000 (20:18 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 22 Jun 2014 19:02:11 +0000 (21:02 +0200)
Only check for SSL_OP_NO_TICKET if building with --enable-ssl and using
openssl. This fixes cross-compiling polarssl builds for Windows (where
pkg-config would find the system openssl library, but the cross compiler
would not have openssl for the target platform).

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1403461119-21440-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8795
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac

index 107331290a68e0c2fb51c0da74e2c49b1d76cd1c..77e950d28c835d3ec7f1690d210c393b3e4b3bbb 100644 (file)
@@ -800,7 +800,8 @@ if test "${have_openssl_crypto}" = "yes"; then
        LIBS="${saved_LIBS}"
 fi
 
-if test "${have_openssl_ssl}" = "yes"; then
+if test "${enable_ssl}" = "yes" && test "${with_crypto_library}" = "openssl";
+then
     saved_CPPFLAGS="${CPPFLAGS}"
     CPPFLAGS="${CPPFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
     AC_MSG_CHECKING([for SSL_OP_NO_TICKET flag in OpenSSL])