Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | |||||
check_builtin_exist(__builtin_clz HAVE_DECL___BUILTIN_CLZ) | check_builtin_exist(__builtin_clz HAVE_DECL___BUILTIN_CLZ) | ||||
check_builtin_exist(__builtin_clzl HAVE_DECL___BUILTIN_CLZL) | check_builtin_exist(__builtin_clzl HAVE_DECL___BUILTIN_CLZL) | ||||
check_builtin_exist(__builtin_clzll HAVE_DECL___BUILTIN_CLZLL) | check_builtin_exist(__builtin_clzll HAVE_DECL___BUILTIN_CLZLL) | ||||
# Various system libraries | # Various system libraries | ||||
check_symbol_exists(strnlen "string.h" HAVE_DECL_STRNLEN) | check_symbol_exists(strnlen "string.h" HAVE_DECL_STRNLEN) | ||||
check_symbol_exists(daemon "unistd.h" HAVE_DECL_DAEMON) | check_symbol_exists(daemon "unistd.h" HAVE_DECL_DAEMON) | ||||
# Check for socket.h support | |||||
check_symbol_exists(MSG_NOSIGNAL "sys/socket.h" HAVE_MSG_NOSIGNAL) | |||||
check_symbol_exists(MSG_DONTWAIT "sys/socket.h" HAVE_MSG_DONTWAIT) | |||||
# OpenSSL functionality | # OpenSSL functionality | ||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | ||||
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | ||||
check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | ||||
# Activate wallet | # Activate wallet | ||||
set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | ||||
# Activate ZeroMQ | # Activate ZeroMQ | ||||
set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | ||||
# Generate the config | # Generate the config | ||||
configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) | configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) |