path: root/config.tests/unix
diff options
authorRichard J. Moore <>2016-05-31 17:10:07 +0100
committerRalf Nolden <>2016-06-04 18:11:19 +0000
commit8c7d6b94d5e1e28c0352c5ae6ac52d4d1ea9b681 (patch)
treebcb694f47821e6ca415e7879a5e096f60a25de99 /config.tests/unix
parent4fc797147821b4ef3372d4db9253d3cb1ed0704e (diff)
Detect if the 'openssl' is really libressl at configure time.
Qt does not support libressl which reports itself as openssl but uses a high version number. This means that we expect it to have features that it doesn't and will fail to build. Instead detect this situation at configure time and disable the ssl support. Change-Id: I73cca4d1544df2aaca0723c38ba63758c287ec41 Reviewed-by: Ralf Nolden <> Reviewed-by: Timur Pocheptsov <> Reviewed-by: Oswald Buddenhagen <>
Diffstat (limited to 'config.tests/unix')
1 files changed, 6 insertions, 0 deletions
diff --git a/config.tests/unix/openssl/openssl.cpp b/config.tests/unix/openssl/openssl.cpp
index 6282bfa328..d0b6cca562 100644
--- a/config.tests/unix/openssl/openssl.cpp
+++ b/config.tests/unix/openssl/openssl.cpp
@@ -37,6 +37,12 @@
# error "OpenSSL >= 0.9.7 is required"
+#include <openssl/ssl.h>
+#if OPENSSL_VERSION_NUMBER-0 >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES)
+# error "OpenSSL was reported as >= 1.0.2 but is missing required features, possibly it's libressl which is unsupported"
int main()