CMakeLists.txt revision 9a690580
1# Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc.  See LICENSE.
2INCLUDE(CheckFunctionExists)
3CHECK_FUNCTION_EXISTS(sendmmsg HAVE_SENDMMSG)
4CHECK_FUNCTION_EXISTS(recvmmsg HAVE_RECVMMSG)
5CHECK_FUNCTION_EXISTS(open_memstream HAVE_OPEN_MEMSTREAM)
6
7
8INCLUDE(CheckSymbolExists)
9
10CHECK_SYMBOL_EXISTS(
11    IP_MTU_DISCOVER
12    "netinet/in.h"
13    HAVE_IP_MTU_DISCOVER
14)
15
16CHECK_SYMBOL_EXISTS(
17    IP_DONTFRAG
18    "netinet/in.h"
19    HAVE_IP_DONTFRAG
20)
21
22INCLUDE(CheckIncludeFiles)
23
24CHECK_INCLUDE_FILES(regex.h HAVE_REGEX)
25
26CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h)
27