2020-01-09 16:52:25 +00:00
|
|
|
# Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE.
|
2019-09-11 15:27:58 +00:00
|
|
|
INCLUDE(CheckFunctionExists)
|
|
|
|
CHECK_FUNCTION_EXISTS(sendmmsg HAVE_SENDMMSG)
|
|
|
|
CHECK_FUNCTION_EXISTS(recvmmsg HAVE_RECVMMSG)
|
|
|
|
CHECK_FUNCTION_EXISTS(open_memstream HAVE_OPEN_MEMSTREAM)
|
|
|
|
|
2017-09-22 21:00:03 +00:00
|
|
|
|
2017-09-26 15:26:05 +00:00
|
|
|
INCLUDE(CheckSymbolExists)
|
|
|
|
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
|
|
IP_MTU_DISCOVER
|
|
|
|
"netinet/in.h"
|
|
|
|
HAVE_IP_MTU_DISCOVER
|
|
|
|
)
|
|
|
|
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
|
|
IP_DONTFRAG
|
|
|
|
"netinet/in.h"
|
|
|
|
HAVE_IP_DONTFRAG
|
|
|
|
)
|
|
|
|
|
2020-09-08 18:16:25 +00:00
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
|
|
preadv
|
|
|
|
"sys/uio.h"
|
|
|
|
HAVE_PREADV
|
|
|
|
)
|
|
|
|
|
2018-05-18 13:18:06 +00:00
|
|
|
INCLUDE(CheckIncludeFiles)
|
|
|
|
|
2020-06-03 04:13:30 +00:00
|
|
|
IF (MSVC AND PCRE_LIB)
|
|
|
|
FIND_PATH(EVENT_INCLUDE_DIR NAMES pcreposix.h)
|
|
|
|
IF (EVENT_INCLUDE_DIR)
|
|
|
|
MESSAGE(STATUS "found pcreposix.h")
|
|
|
|
SET(HAVE_REGEX 1)
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "event2/event.h was not found")
|
|
|
|
ENDIF()
|
|
|
|
ELSE()
|
2018-05-18 13:18:06 +00:00
|
|
|
CHECK_INCLUDE_FILES(regex.h HAVE_REGEX)
|
2020-06-03 04:13:30 +00:00
|
|
|
ENDIF()
|
2017-09-26 15:26:05 +00:00
|
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h)
|