1#ifndef CONFIG_H 2#define CONFIG_H 3 4#ifdef _WIN32 5#cmakedefine HAVE__FTIME64_S 6#define HAVE_QUERYPERFORMANCECOUNTER 7#else 8 9/* This file checks for platform-specific includes which may or may 10 * not be available during build time. The config_static.h file includes 11 * files mentioned here as well as other files whose availability can be 12 * inferred from compile-time macros 13 */ 14 15#cmakedefine HAVE_CLOCK_GETTIME 16#cmakedefine HAVE_DLFCN_H 17#cmakedefine HAVE_GETHRTIME 18#cmakedefine HAVE_GETTIMEOFDAY 19#cmakedefine HAVE_INTTYPES_H 20#cmakedefine HAVE_NETDB_H 21#cmakedefine HAVE_SETITIMER 22#cmakedefine HAVE_STDINT_H 23#cmakedefine HAVE_STDDEF_H 24#cmakedefine HAVE_FCNTL_H 25#cmakedefine HAVE_HTONLL 26#cmakedefine HAVE_STRINGS_H 27#cmakedefine HAVE_SYS_SOCKET_H 28#cmakedefine HAVE_SYS_STAT_H 29#cmakedefine HAVE_SYS_TIME_H 30#cmakedefine HAVE_SYS_TYPES_H 31#cmakedefine HAVE_SYS_UIO_H 32#cmakedefine HAVE_UNISTD_H 33#cmakedefine HAVE_ARPA_INET_H 34#cmakedefine HAVE_RES_SEARCH 35#cmakedefine HAVE_ARPA_NAMESER_H 36 37#ifndef HAVE_LIBEVENT 38#cmakedefine HAVE_LIBEVENT 39#endif 40 41#ifndef HAVE_LIBEVENT2 42#cmakedefine HAVE_LIBEVENT2 43#endif 44 45#ifndef HAVE_LIBEV3 46#cmakedefine HAVE_LIBEV3 47#endif 48 49#ifndef HAVE_LIBEV4 50#cmakedefine HAVE_LIBEV4 51#endif 52 53#ifndef HAVE_LIBUV 54#cmakedefine HAVE_LIBUV 55#endif 56 57#endif 58 59#cmakedefine LCB_USE_HDR_HISTOGRAM 60 61#include "config_static.h" 62 63#define LCB_LIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}/${LCB_PLUGINS_DIR}" 64 65#define LCB_SYSTEM "${CMAKE_SYSTEM}" 66#define LCB_SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}" 67#define LCB_CXX_COMPILER "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" 68#define LCB_CXX_FLAGS "${CMAKE_CXX_FLAGS}" 69#define LCB_C_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}" 70#define LCB_C_FLAGS "${CMAKE_C_FLAGS}" 71#define LCB_BUILD_TIMESTAMP "${LCB_BUILD_TIMESTAMP}" 72 73#define LCB_CLIENT_ID \ 74 "libcouchbase/" LCB_VERSION_STRING " (" LCB_SYSTEM "; " LCB_SYSTEM_PROCESSOR "; " LCB_C_COMPILER ")" 75 76#cmakedefine CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" 77 78#cmakedefine HAVE_PKCS5_PBKDF2_HMAC 79#cmakedefine LCB_DUMP_PACKETS 80 81#cmakedefine LCB_TLS_LOG_KEYS 82 83#cmakedefine LCB_USE_ASAN 84#endif 85