X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=CMake%2F_Include.cmake;h=90ebc261b471b98ad893a62bc44d3219ef7132b0;hb=d180295a76d7e43b357765a8a6434fdf5f7d3abd;hp=6f9a092bf641f40e67651db01c86f85e7abda741;hpb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;p=awesomized%2Flibmemcached diff --git a/CMake/_Include.cmake b/CMake/_Include.cmake index 6f9a092b..90ebc261 100644 --- a/CMake/_Include.cmake +++ b/CMake/_Include.cmake @@ -1,3 +1,5 @@ +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") + include(_Configure) configure_init(${CMAKE_BINARY_DIR}/mem_config.h) @@ -6,7 +8,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) endif() include(CMakePushCheckState) -include(GNUInstallDirs) include(CMakePackageConfigHelpers) macro(make_have_identifier NAME ID) @@ -121,6 +122,8 @@ check_include(dlfcn.h) check_include(getopt.h) check_include(libgen.h) check_include(netdb.h) +check_include(netinet/in.h) +check_include(netinet/tcp.h) check_include(poll.h) check_include(strings.h) check_include(sys/poll.h) @@ -135,13 +138,19 @@ check_type(ssize_t sys/types.h) check_type("struct msghdr" sys/socket.h) check_cxx_symbol(abi::__cxa_demangle cxxabi.h) +check_symbol(ERESTART errno.h) check_symbol(fcntl fcntl.h) +check_symbol(gettimeofday sys/time.h) check_symbol(htonll arpa/inet.h) +check_symbol(index strings.h) check_symbol(MSG_DONTWAIT sys/socket.h) check_symbol(MSG_MORE sys/socket.h) check_symbol(MSG_NOSIGNAL sys/socket.h) check_symbol(SO_RCVTIMEO sys/socket.h) check_symbol(SO_SNDTIMEO sys/socket.h) +check_symbol(rand stdlib.h) +check_symbol(random stdlib.h) +check_symbol(realpath stdlib.h) check_symbol(sendmsg sys/socket.h) check_symbol(setenv stdlib.h) check_symbol(strerror_r string.h)