configure: revert changes to the schannel check
authorJames Almer <jamrial@gmail.com>
Sat, 17 Mar 2018 19:49:15 +0000 (16:49 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 17 Mar 2018 19:49:15 +0000 (16:49 -0300)
check_cpp_condition was not being called on some targets, which made schannel
remain enabled even when it was not available

Signed-off-by: James Almer <jamrial@gmail.com>
configure

index 97767f4..f09f48c 100755 (executable)
--- a/configure
+++ b/configure
@@ -6126,7 +6126,9 @@ enabled securetransport &&
 
 enabled schannel &&
     check_func_headers "windows.h security.h" InitializeSecurityContext -DSECURITY_WIN32 -lsecur32 &&
-    check_cpp_condition schannel winerror.h "defined(SEC_I_CONTEXT_EXPIRED)" && schannel_extralibs="-lsecur32"
+    test_cpp_condition winerror.h "defined(SEC_I_CONTEXT_EXPIRED)" &&
+    schannel_extralibs="-lsecur32" ||
+        disable schannel
 
 makeinfo --version > /dev/null 2>&1 && enable makeinfo  || disable makeinfo
 enabled makeinfo \