@@ -279,6 +279,8 @@ External library support:
279279 --enable-opengl enable OpenGL rendering [no]
280280 --enable-openssl enable openssl, needed for https support
281281 if gnutls is not used [no]
282+ --disable-schannel disable SChannel SSP, needed for TLS support on
283+ Windows if openssl and gnutls are not used [autodetect]
282284 --disable-sdl disable sdl [autodetect]
283285 --disable-securetransport disable Secure Transport, needed for TLS support
284286 on OSX if openssl and gnutls are not used [autodetect]
@@ -1444,6 +1446,7 @@ EXTERNAL_LIBRARY_LIST="
14441446 opencl
14451447 opengl
14461448 openssl
1449+ schannel
14471450 sdl
14481451 securetransport
14491452 x11grab
@@ -2730,13 +2733,15 @@ sctp_protocol_deps="struct_sctp_event_subscribe"
27302733sctp_protocol_select=" network"
27312734srtp_protocol_select=" rtp_protocol"
27322735tcp_protocol_select=" network"
2733- tls_gnutls_protocol_deps=" gnutls !tls_securetransport_protocol"
2736+ tls_gnutls_protocol_deps=" gnutls !tls_schannel_protocol ! tls_securetransport_protocol"
27342737tls_gnutls_protocol_select=" tcp_protocol"
2735- tls_openssl_protocol_deps=" openssl !tls_securetransport_protocol !tls_gnutls_protocol"
2738+ tls_openssl_protocol_deps=" openssl !tls_schannel_protocol ! tls_securetransport_protocol !tls_gnutls_protocol"
27362739tls_openssl_protocol_select=" tcp_protocol"
2740+ tls_schannel_protocol_deps=" schannel"
2741+ tls_schannel_protocol_select=" tcp_protocol"
27372742tls_securetransport_protocol_deps=" securetransport"
27382743tls_securetransport_protocol_select=" tcp_protocol"
2739- tls_protocol_deps_any=" tls_securetransport_protocol tls_gnutls_protocol tls_openssl_protocol"
2744+ tls_protocol_deps_any=" tls_schannel_protocol tls_securetransport_protocol tls_gnutls_protocol tls_openssl_protocol"
27402745udp_protocol_select=" network"
27412746udplite_protocol_select=" network"
27422747unix_protocol_deps=" sys_un_h"
@@ -5447,6 +5452,15 @@ disabled securetransport || { check_func SecIdentityCreate "-Wl,-framework,CoreF
54475452 check_lib2 " Security/SecureTransport.h Security/Security.h" " SSLCreateContext SecItemImport" " -Wl,-framework,CoreFoundation -Wl,-framework,Security" &&
54485453 enable securetransport; }
54495454
5455+ if ! disabled schannel; then
5456+ check_cc << EOF && enable schannel && add_extralibs -lSecur32
5457+ #define SECURITY_WIN32
5458+ #include <windows.h>
5459+ #include <Security.h>
5460+ int main(void) { InitializeSecurityContext(NULL, NULL, NULL, 0, 0, 0, NULL, 0, NULL, NULL, NULL, NULL); return 0; }
5461+ EOF
5462+ fi
5463+
54505464makeinfo --version > /dev/null 2>&1 && enable makeinfo || disable makeinfo
54515465enabled makeinfo \
54525466 && [ 0$( makeinfo --version | grep " texinfo" | sed ' s/.*texinfo[^0-9]*\([0-9]*\)\..*/\1/' ) -ge 5 ] \
0 commit comments