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