mirror of
https://github.com/h2o/h2o.git
synced 2025-04-19 16:09:15 +08:00
no need to check system name, as we test compile using linux-specific header files
This commit is contained in:
parent
05d613c7ce
commit
5147e76792
@ -141,8 +141,7 @@ CHECK_FUSION_PREREQUISITES()
|
||||
OPTION(WITH_FUSION "build with fusion AES-GCM engine" ${WITH_FUSION_DEFAULT})
|
||||
|
||||
# KTLS
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
CHECK_C_SOURCE_COMPILES("
|
||||
CHECK_C_SOURCE_COMPILES("
|
||||
#include <sys/socket.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/tls.h>
|
||||
@ -150,14 +149,11 @@ int main (void) {
|
||||
return TCP_ULP + SOL_TLS + TLS_TX + TLS_1_2_VERSION + TLS_CIPHER_AES_GCM_128 + TLS_CIPHER_AES_GCM_256;
|
||||
}
|
||||
" SYSTEM_HAS_KTLS)
|
||||
IF (SYSTEM_HAS_KTLS)
|
||||
SET(WITH_KTLS_DEFAULT "ON")
|
||||
ELSE ()
|
||||
SET(WITH_KTLS_DEFAULT "OFF")
|
||||
ENDIF ()
|
||||
IF (SYSTEM_HAS_KTLS)
|
||||
SET(WITH_KTLS_DEFAULT "ON")
|
||||
ELSE ()
|
||||
SET(WITH_KTLS_DEFAULT "OFF")
|
||||
ENDIF()
|
||||
ENDIF ()
|
||||
OPTION(WITH_KTLS "use Kernel TLS" ${WITH_KTLS_DEFAULT})
|
||||
|
||||
# aegis
|
||||
|
Loading…
x
Reference in New Issue
Block a user