blob: 20b5f1c4f6f0cf9bdc7d8650978dfe9e0bbff4bb [file] [log] [blame]
Austin Schuh906616c2019-01-21 20:25:11 -08001#ifndef GLOG_CONFIG_H
2#define GLOG_CONFIG_H
3
4/* define if glog doesn't use RTTI */
5#cmakedefine DISABLE_RTTI
6
7/* Namespace for Google classes */
8#cmakedefine GOOGLE_NAMESPACE ${GOOGLE_NAMESPACE}
9
10/* Define if you have the `dladdr' function */
11#cmakedefine HAVE_DLADDR
12
13/* Define if you have the `snprintf' function */
14#cmakedefine HAVE_SNPRINTF
15
16/* Define to 1 if you have the <dlfcn.h> header file. */
17#cmakedefine HAVE_DLFCN_H
18
James Kuszmaulba0ac1a2022-08-12 16:29:30 -070019/* Define if you have the `backtrace' function in <execinfo.h> */
20#cmakedefine HAVE_EXECINFO_BACKTRACE
21
22/* Define if you have the `backtrace_symbols' function in <execinfo.h> */
23#cmakedefine HAVE_EXECINFO_BACKTRACE_SYMBOLS
Austin Schuh906616c2019-01-21 20:25:11 -080024
25/* Define if you have the `fcntl' function */
26#cmakedefine HAVE_FCNTL
27
28/* Define to 1 if you have the <glob.h> header file. */
29#cmakedefine HAVE_GLOB_H
30
31/* Define to 1 if you have the <inttypes.h> header file. */
32#cmakedefine HAVE_INTTYPES_H ${HAVE_INTTYPES_H}
33
34/* Define to 1 if you have the `pthread' library (-lpthread). */
35#cmakedefine HAVE_LIBPTHREAD
36
Austin Schuh906616c2019-01-21 20:25:11 -080037/* define if you have google gflags library */
38#cmakedefine HAVE_LIB_GFLAGS
39
40/* define if you have google gmock library */
41#cmakedefine HAVE_LIB_GMOCK
42
43/* define if you have google gtest library */
44#cmakedefine HAVE_LIB_GTEST
45
James Kuszmaulba0ac1a2022-08-12 16:29:30 -070046/* define if you have dbghelp library */
47#cmakedefine HAVE_DBGHELP
48
Austin Schuh906616c2019-01-21 20:25:11 -080049/* define if you have libunwind */
50#cmakedefine HAVE_LIB_UNWIND
51
52/* Define to 1 if you have the <memory.h> header file. */
53#cmakedefine HAVE_MEMORY_H
54
55/* define to disable multithreading support. */
56#cmakedefine NO_THREADS
57
58/* define if the compiler implements namespaces */
59#cmakedefine HAVE_NAMESPACES
60
61/* Define if you have the 'pread' function */
62#cmakedefine HAVE_PREAD
63
64/* Define if you have POSIX threads libraries and header files. */
65#cmakedefine HAVE_PTHREAD
66
67/* Define to 1 if you have the <pwd.h> header file. */
68#cmakedefine HAVE_PWD_H
69
70/* Define if you have the 'pwrite' function */
71#cmakedefine HAVE_PWRITE
72
73/* define if the compiler implements pthread_rwlock_* */
74#cmakedefine HAVE_RWLOCK
75
76/* Define if you have the 'sigaction' function */
77#cmakedefine HAVE_SIGACTION
78
79/* Define if you have the `sigaltstack' function */
80#cmakedefine HAVE_SIGALTSTACK
81
82/* Define to 1 if you have the <stdint.h> header file. */
83#cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}
84
Austin Schuh906616c2019-01-21 20:25:11 -080085/* Define to 1 if you have the <strings.h> header file. */
86#cmakedefine HAVE_STRINGS_H
87
Austin Schuh906616c2019-01-21 20:25:11 -080088/* Define to 1 if you have the <syscall.h> header file. */
89#cmakedefine HAVE_SYSCALL_H
90
91/* Define to 1 if you have the <syslog.h> header file. */
92#cmakedefine HAVE_SYSLOG_H
93
94/* Define to 1 if you have the <sys/stat.h> header file. */
95#cmakedefine HAVE_SYS_STAT_H
96
97/* Define to 1 if you have the <sys/syscall.h> header file. */
98#cmakedefine HAVE_SYS_SYSCALL_H
99
100/* Define to 1 if you have the <sys/time.h> header file. */
101#cmakedefine HAVE_SYS_TIME_H
102
103/* Define to 1 if you have the <sys/types.h> header file. */
104#cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}
105
106/* Define to 1 if you have the <sys/ucontext.h> header file. */
107#cmakedefine HAVE_SYS_UCONTEXT_H
108
109/* Define to 1 if you have the <sys/utsname.h> header file. */
110#cmakedefine HAVE_SYS_UTSNAME_H
111
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700112/* Define to 1 if you have the <sys/wait.h> header file. */
113#cmakedefine HAVE_SYS_WAIT_H
114
Austin Schuh906616c2019-01-21 20:25:11 -0800115/* Define to 1 if you have the <ucontext.h> header file. */
116#cmakedefine HAVE_UCONTEXT_H
117
118/* Define to 1 if you have the <unistd.h> header file. */
119#cmakedefine HAVE_UNISTD_H ${HAVE_UNISTD_H}
120
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700121/* Define if you linking to _Unwind_Backtrace is possible. */
122#cmakedefine HAVE__UNWIND_BACKTRACE
123
124/* Define if you linking to _Unwind_GetIP is possible. */
125#cmakedefine HAVE__UNWIND_GETIP
Austin Schuh906616c2019-01-21 20:25:11 -0800126
127/* define if the compiler supports using expression for operator */
128#cmakedefine HAVE_USING_OPERATOR
129
130/* define if your compiler has __attribute__ */
131#cmakedefine HAVE___ATTRIBUTE__
132
133/* define if your compiler has __builtin_expect */
134#cmakedefine HAVE___BUILTIN_EXPECT ${HAVE___BUILTIN_EXPECT}
135
136/* define if your compiler has __sync_val_compare_and_swap */
137#cmakedefine HAVE___SYNC_VAL_COMPARE_AND_SWAP
138
139/* define if symbolize support is available */
140#cmakedefine HAVE_SYMBOLIZE
141
142/* define if localtime_r is available in time.h */
143#cmakedefine HAVE_LOCALTIME_R
144
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700145/* define if gmtime_r is available in time.h */
146#cmakedefine HAVE_GMTIME_R
147
Austin Schuh906616c2019-01-21 20:25:11 -0800148/* Define to the sub-directory in which libtool stores uninstalled libraries.
149 */
150#cmakedefine LT_OBJDIR
151
152/* Name of package */
153#cmakedefine PACKAGE
154
155/* Define to the address where bug reports for this package should be sent. */
156#cmakedefine PACKAGE_BUGREPORT
157
158/* Define to the full name of this package. */
159#cmakedefine PACKAGE_NAME
160
161/* Define to the full name and version of this package. */
162#cmakedefine PACKAGE_STRING
163
164/* Define to the one symbol short name of this package. */
165#cmakedefine PACKAGE_TARNAME
166
167/* Define to the home page for this package. */
168#cmakedefine PACKAGE_URL
169
170/* Define to the version of this package. */
171#cmakedefine PACKAGE_VERSION
172
173/* How to access the PC from a struct ucontext */
174#cmakedefine PC_FROM_UCONTEXT
175
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700176/* define if we should print file offsets in traces instead of symbolizing. */
Austin Schuh906616c2019-01-21 20:25:11 -0800177#cmakedefine PRINT_UNSYMBOLIZED_STACK_TRACES
178
179/* Define to necessary symbol if this constant uses a non-standard name on
180 your system. */
181#cmakedefine PTHREAD_CREATE_JOINABLE
182
183/* The size of `void *', as computed by sizeof. */
184#cmakedefine SIZEOF_VOID_P ${SIZEOF_VOID_P}
185
Austin Schuh906616c2019-01-21 20:25:11 -0800186/* the namespace where STL code like vector<> is defined */
187#cmakedefine STL_NAMESPACE ${STL_NAMESPACE}
188
189/* location of source code */
190#cmakedefine TEST_SRC_DIR ${TEST_SRC_DIR}
191
192/* Define to necessary thread-local storage attribute. */
193#cmakedefine GLOG_THREAD_LOCAL_STORAGE ${GLOG_THREAD_LOCAL_STORAGE}
194
195/* Check whether aligned_storage and alignof present */
196#cmakedefine HAVE_ALIGNED_STORAGE ${HAVE_ALIGNED_STORAGE}
197
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700198/* Check whether C++11 atomic is available */
199#cmakedefine HAVE_CXX11_ATOMIC ${HAVE_CXX11_ATOMIC}
200
201/* Check whether C++11 chrono is available */
202#cmakedefine HAVE_CXX11_CHRONO ${HAVE_CXX11_CHRONO}
203
204/* Check whether C++11 nullptr_t is available */
205#cmakedefine HAVE_CXX11_NULLPTR_T ${HAVE_CXX11_NULLPTR_T}
206
Austin Schuh906616c2019-01-21 20:25:11 -0800207/* Version number of package */
208#cmakedefine VERSION
209
210#ifdef GLOG_BAZEL_BUILD
211
212/* TODO(rodrigoq): remove this workaround once bazel#3979 is resolved:
213 * https://github.com/bazelbuild/bazel/issues/3979 */
214#define _START_GOOGLE_NAMESPACE_ namespace GOOGLE_NAMESPACE {
215
216#define _END_GOOGLE_NAMESPACE_ }
217
218#else
219
220/* Stops putting the code inside the Google namespace */
221#cmakedefine _END_GOOGLE_NAMESPACE_ ${_END_GOOGLE_NAMESPACE_}
222
223/* Puts following code inside the Google namespace */
224#cmakedefine _START_GOOGLE_NAMESPACE_ ${_START_GOOGLE_NAMESPACE_}
225
226#endif
227
James Kuszmaulba0ac1a2022-08-12 16:29:30 -0700228/* Replacement for deprecated syscall(SYS_gettid) on macOS. */
229#cmakedefine HAVE_PTHREAD_THREADID_NP ${HAVE_PTHREAD_THREADID_NP}
230
Austin Schuh906616c2019-01-21 20:25:11 -0800231#endif // GLOG_CONFIG_H