1e1ad8c50SMark Nunberg#ifdef _WIN32
2e1ad8c50SMark Nunberg#define CONFIG_H
3f38fdb3fSSergey Avseyev#cmakedefine HAVE__FTIME64_S
4e1ad8c50SMark Nunberg#define HAVE_QUERYPERFORMANCECOUNTER
5e1ad8c50SMark Nunberg#include "config_static.h"
6e1ad8c50SMark Nunberg#endif
7e1ad8c50SMark Nunberg
8e1ad8c50SMark Nunberg#ifndef CONFIG_H
9e1ad8c50SMark Nunberg#define CONFIG_H
10e1ad8c50SMark Nunberg
117d6f83ccSMark Nunberg/* This file checks for platform-specific includes which may or may
127d6f83ccSMark Nunberg * not be available during build time. The config_static.h file includes
137d6f83ccSMark Nunberg * files mentioned here as well as other files whose availability can be
147d6f83ccSMark Nunberg * inferred from compile-time macros
157d6f83ccSMark Nunberg */
167d6f83ccSMark Nunberg
17e1ad8c50SMark Nunberg#cmakedefine HAVE_CLOCK_GETTIME
18e1ad8c50SMark Nunberg#cmakedefine HAVE_DLFCN_H
19e1ad8c50SMark Nunberg#cmakedefine HAVE_GETHRTIME
20e1ad8c50SMark Nunberg#cmakedefine HAVE_GETTIMEOFDAY
21e1ad8c50SMark Nunberg#cmakedefine HAVE_INTTYPES_H
22e1ad8c50SMark Nunberg#cmakedefine HAVE_NETDB_H
23e1ad8c50SMark Nunberg#cmakedefine HAVE_SETITIMER
24e1ad8c50SMark Nunberg#cmakedefine HAVE_STDINT_H
2563b51e13SSergey Avseyev#cmakedefine HAVE_STDDEF_H
26e1ad8c50SMark Nunberg#cmakedefine HAVE_FCNTL_H
27611b3a1eSMark Nunberg#cmakedefine HAVE_HTONLL
28e1ad8c50SMark Nunberg#cmakedefine HAVE_STRINGS_H
29e1ad8c50SMark Nunberg#cmakedefine HAVE_SYS_SOCKET_H
30e1ad8c50SMark Nunberg#cmakedefine HAVE_SYS_STAT_H
31e1ad8c50SMark Nunberg#cmakedefine HAVE_SYS_TIME_H
32e1ad8c50SMark Nunberg#cmakedefine HAVE_SYS_TYPES_H
33e1ad8c50SMark Nunberg#cmakedefine HAVE_SYS_UIO_H
34e1ad8c50SMark Nunberg#cmakedefine HAVE_UNISTD_H
35611b3a1eSMark Nunberg#cmakedefine HAVE_ARPA_INET_H
360fb123d8SMark Nunberg#cmakedefine HAVE_RES_SEARCH
370fb123d8SMark Nunberg#cmakedefine HAVE_ARPA_NAMESER_H
38e1ad8c50SMark Nunberg
39e1ad8c50SMark Nunberg#ifndef HAVE_LIBEVENT
40e1ad8c50SMark Nunberg#cmakedefine HAVE_LIBEVENT
41e1ad8c50SMark Nunberg#endif
42e1ad8c50SMark Nunberg
43e1ad8c50SMark Nunberg#ifndef HAVE_LIBEVENT2
44e1ad8c50SMark Nunberg#cmakedefine HAVE_LIBEVENT2
45e1ad8c50SMark Nunberg#endif
46e1ad8c50SMark Nunberg
47e1ad8c50SMark Nunberg#ifndef HAVE_LIBEV3
48e1ad8c50SMark Nunberg#cmakedefine HAVE_LIBEV3
49e1ad8c50SMark Nunberg#endif
50e1ad8c50SMark Nunberg
51e1ad8c50SMark Nunberg#ifndef HAVE_LIBEV4
52e1ad8c50SMark Nunberg#cmakedefine HAVE_LIBEV4
53e1ad8c50SMark Nunberg#endif
54e1ad8c50SMark Nunberg
55e1ad8c50SMark Nunberg#ifndef HAVE_LIBUV
56e1ad8c50SMark Nunberg#cmakedefine HAVE_LIBUV
57e1ad8c50SMark Nunberg#endif
58e1ad8c50SMark Nunberg
592cec3ee9SDave Rigby#cmakedefine LCB_USE_HDR_HISTOGRAM
602cec3ee9SDave Rigby
61e1ad8c50SMark Nunberg#include "config_static.h"
62e1ad8c50SMark Nunberg#endif
63989398cdSSergey Avseyev
64aa927bc8SSergey Avseyev#define LCB_LIBDIR "${CMAKE_INSTALL_LIBDIR}/libcouchbase"
65aa927bc8SSergey Avseyev
661ac7c332SSergey Avseyev#define LCB_SYSTEM "${CMAKE_SYSTEM}"
671ac7c332SSergey Avseyev#define LCB_SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}"
681ac7c332SSergey Avseyev#define LCB_CXX_COMPILER "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}"
691ac7c332SSergey Avseyev#define LCB_CXX_FLAGS "${CMAKE_CXX_FLAGS}"
701ac7c332SSergey Avseyev#define LCB_C_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}"
711ac7c332SSergey Avseyev#define LCB_C_FLAGS "${CMAKE_C_FLAGS}"
72a6e91ceaSSergey Avseyev#define LCB_BUILD_TIMESTAMP "${LCB_BUILD_TIMESTAMP}"
731ac7c332SSergey Avseyev
741ac7c332SSergey Avseyev#define LCB_CLIENT_ID "libcouchbase/" LCB_VERSION_STRING " (" LCB_SYSTEM "; " LCB_SYSTEM_PROCESSOR "; " LCB_C_COMPILER ")"
7540ff8088SGuillaume Molleda / Amadeus IT Group
7640ff8088SGuillaume Molleda / Amadeus IT Group#cmakedefine HAVE_PKCS5_PBKDF2_HMAC
779249c3cfSSergey Avseyev#cmakedefine LCB_DUMP_PACKETS
78