From d39bbcfa8d2da88bc5e041f6148ae63f06e95c8f Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Thu, 5 Jul 2012 08:53:02 +0200 Subject: [PATCH] winbuild: Make USE_WINSSL depend on USE_SSPI Since WinSSL cannot be build without SSPI being enabled, USE_WINSSL now defaults to the value of USE_SSPI. The makefile does now raise an error if WinSSL is enabled while SSPI is disabled. --- winbuild/Makefile.vc | 2 +- winbuild/MakefileBuild.vc | 34 ++++++++++++++++++---------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/winbuild/Makefile.vc b/winbuild/Makefile.vc index 4cf7c4480..a75747877 100644 --- a/winbuild/Makefile.vc +++ b/winbuild/Makefile.vc @@ -77,7 +77,7 @@ USE_IDN = false !ENDIF !IFNDEF ENABLE_WINSSL -USE_WINSSL = true +USE_WINSSL = $(USE_SSPI) !ELSEIF "$(ENABLE_WINSSL)"=="yes" USE_WINSSL = true !ELSEIF "$(ENABLE_WINSSL)"=="no" diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index 5791dee03..5ec638f85 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -143,22 +143,6 @@ SSH2_CFLAGS = $(SSH2_CFLAGS) /I$(WITH_DEVEL)/include/libssh2 !ENDIF -!IFNDEF USE_WINSSL -!IF "$(USE_SSL)"=="true" -USE_WINSSL = false -!ELSE -USE_WINSSL = true -!ENDIF -!ELSEIF "$(USE_WINSSL)"=="yes" -USE_WINSSL = true -!ENDIF - -!IF "$(USE_WINSSL)"=="true" -SSPI_CFLAGS = $(SSPI_CFLAGS) /DUSE_SCHANNEL -USE_SSPI = true -!ENDIF - - !IFNDEF USE_SSPI USE_SSPI = true !ELSEIF "$(USE_SSPI)"=="yes" @@ -193,6 +177,24 @@ LFLAGS = $(LFLAGS) Normaliz.lib !ENDIF +!IFNDEF USE_WINSSL +!IF "$(USE_SSL)"=="true" +USE_WINSSL = false +!ELSE +USE_WINSSL = $(USE_SSPI) +!ENDIF +!ELSEIF "$(USE_WINSSL)"=="yes" +USE_WINSSL = true +!ENDIF + +!IF "$(USE_WINSSL)"=="true" +!IF "$(USE_SSPI)"!="true" +!ERROR cannot build with WinSSL without SSPI +!ENDIF +SSPI_CFLAGS = $(SSPI_CFLAGS) /DUSE_SCHANNEL +!ENDIF + + !IF "$(GEN_PDB)"=="yes" GEN_PDB = true