MySQL  8.0.11
Source Code Documentation
my_config.h
Go to the documentation of this file.
1 /* Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef MY_CONFIG_H
24 #define MY_CONFIG_H
25 
26 /*
27  * From configure.cmake, in order of appearance
28  */
29 /* #undef HAVE_LLVM_LIBCPP */
30 
31 /* Libraries */
32 #define HAVE_LIBM 1
33 /* #undef HAVE_LIBNSL */
34 #define HAVE_LIBCRYPT 1
35 /* #undef HAVE_LIBSOCKET */
36 #define HAVE_LIBDL 1
37 #define HAVE_LIBRT 1
38 /* #undef HAVE_LIBWRAP */
39 /* #undef HAVE_LIBWRAP_PROTOTYPES */
40 
41 /* Header files */
42 #define HAVE_ALLOCA_H 1
43 #define HAVE_ARPA_INET_H 1
44 #define HAVE_DLFCN_H 1
45 #define HAVE_EXECINFO_H 1
46 #define HAVE_FPU_CONTROL_H 1
47 #define HAVE_GRP_H 1
48 /* #undef HAVE_IEEEFP_H */
49 #define HAVE_LANGINFO_H 1
50 /* #undef HAVE_LSAN_INTERFACE_H */
51 #define HAVE_MALLOC_H 1
52 #define HAVE_NETINET_IN_H 1
53 #define HAVE_POLL_H 1
54 #define HAVE_PWD_H 1
55 #define HAVE_STRINGS_H 1
56 #define HAVE_SYS_CDEFS_H 1
57 #define HAVE_SYS_IOCTL_H 1
58 #define HAVE_SYS_MMAN_H 1
59 #define HAVE_SYS_RESOURCE_H 1
60 #define HAVE_SYS_SELECT_H 1
61 #define HAVE_SYS_SOCKET_H 1
62 #define HAVE_TERM_H 1
63 #define HAVE_TERMIOS_H 1
64 #define HAVE_TERMIO_H 1
65 #define HAVE_UNISTD_H 1
66 #define HAVE_SYS_WAIT_H 1
67 #define HAVE_SYS_PARAM_H 1
68 #define HAVE_FNMATCH_H 1
69 #define HAVE_SYS_UN_H 1
70 /* #undef HAVE_VIS_H */
71 #define HAVE_SASL_SASL_H 1
72 
73 /* Libevent */
74 /* #undef HAVE_DEVPOLL */
75 /* #undef HAVE_SYS_DEVPOLL_H */
76 #define HAVE_SYS_EPOLL_H 1
77 #define HAVE_TAILQFOREACH 1
78 
79 /* Functions */
80 /* #undef HAVE_ALIGNED_MALLOC */
81 #define HAVE_BACKTRACE 1
82 /* #undef HAVE_PRINTSTACK */
83 #define HAVE_INDEX 1
84 #define HAVE_CHOWN 1
85 #define HAVE_CUSERID 1
86 /* #undef HAVE_DIRECTIO */
87 #define HAVE_FTRUNCATE 1
88 #define HAVE_FCHMOD 1
89 #define HAVE_FCNTL 1
90 #define HAVE_FDATASYNC 1
91 #define HAVE_DECL_FDATASYNC 1
92 #define HAVE_FEDISABLEEXCEPT 1
93 #define HAVE_FSEEKO 1
94 #define HAVE_FSYNC 1
95 /* #undef HAVE_GETHRTIME */
96 #define HAVE_GETNAMEINFO 1
97 #define HAVE_GETPASS 1
98 /* #undef HAVE_GETPASSPHRASE */
99 #define HAVE_GETPWNAM 1
100 #define HAVE_GETPWUID 1
101 #define HAVE_GETRLIMIT 1
102 #define HAVE_GETRUSAGE 1
103 #define HAVE_INITGROUPS 1
104 /* #undef HAVE_ISSETUGID */
105 #define HAVE_GETUID 1
106 #define HAVE_GETEUID 1
107 #define HAVE_GETGID 1
108 #define HAVE_GETEGID 1
109 /* #undef HAVE_LSAN_DO_RECOVERABLE_LEAK_CHECK */
110 #define HAVE_MADVISE 1
111 #define HAVE_MALLOC_INFO 1
112 #define HAVE_MEMRCHR 1
113 #define HAVE_MLOCK 1
114 #define HAVE_MLOCKALL 1
115 #define HAVE_MMAP64 1
116 #define HAVE_POLL 1
117 #define HAVE_POSIX_FALLOCATE 1
118 #define HAVE_POSIX_MEMALIGN 1
119 #define HAVE_PREAD 1
120 #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
121 #define HAVE_PTHREAD_SIGMASK 1
122 /* #undef HAVE_SETFD */
123 #define HAVE_SIGACTION 1
124 #define HAVE_SLEEP 1
125 #define HAVE_STPCPY 1
126 #define HAVE_STPNCPY 1
127 /* #undef HAVE_STRLCPY */
128 /* #undef HAVE_STRLCAT */
129 #define HAVE_STRSIGNAL 1
130 /* #undef HAVE_FGETLN */
131 #define HAVE_STRSEP 1
132 /* #undef HAVE_TELL */
133 #define HAVE_VASPRINTF 1
134 #define HAVE_MEMALIGN 1
135 #define HAVE_NL_LANGINFO 1
136 /* #undef HAVE_HTONLL */
137 #define HAVE_EPOLL 1
138 /* #undef HAVE_EVENT_PORTS */
139 #define HAVE_INET_NTOP 1
140 /* #undef HAVE_WORKING_KQUEUE */
141 #define HAVE_TIMERADD 1
142 #define HAVE_TIMERCLEAR 1
143 #define HAVE_TIMERCMP 1
144 #define HAVE_TIMERISSET 1
145 
146 /* WL2373 */
147 #define HAVE_SYS_TIME_H 1
148 #define HAVE_SYS_TIMES_H 1
149 #define HAVE_TIMES 1
150 #define HAVE_GETTIMEOFDAY 1
151 
152 /* Symbols */
153 #define HAVE_LRAND48 1
154 #define GWINSZ_IN_SYS_IOCTL 1
155 #define FIONREAD_IN_SYS_IOCTL 1
156 /* #undef FIONREAD_IN_SYS_FILIO */
157 
158 #define HAVE_ISINF 1
159 
160 /* #undef HAVE_KQUEUE */
161 /* #undef HAVE_KQUEUE_TIMERS */
162 #define HAVE_POSIX_TIMERS 1
163 
164 /* Endianess */
165 /* #undef WORDS_BIGENDIAN */
166 
167 /* Type sizes */
168 #define SIZEOF_VOIDP 8
169 #define SIZEOF_CHARP 8
170 #define SIZEOF_LONG 8
171 #define SIZEOF_SHORT 2
172 #define SIZEOF_INT 4
173 #define SIZEOF_LONG_LONG 8
174 #define SIZEOF_OFF_T 8
175 #define SIZEOF_TIME_T 8
176 #define HAVE_ULONG 1
177 #define HAVE_U_INT32_T 1
178 
179 /* Support for tagging symbols with __attribute__((visibility("hidden"))) */
180 #define HAVE_VISIBILITY_HIDDEN 1
181 
182 /* Code tests*/
183 #define HAVE_CLOCK_GETTIME 1
184 #define HAVE_CLOCK_REALTIME 1
185 #define DNS_USE_CPU_CLOCK_FOR_ID 1
186 #define STACK_DIRECTION -1
187 #define TIME_WITH_SYS_TIME 1
188 /* #undef NO_FCNTL_NONBLOCK */
189 #define HAVE_PAUSE_INSTRUCTION 1
190 /* #undef HAVE_FAKE_PAUSE_INSTRUCTION */
191 /* #undef HAVE_HMT_PRIORITY_INSTRUCTION */
192 #define HAVE_ABI_CXA_DEMANGLE 1
193 #define HAVE_BUILTIN_UNREACHABLE 1
194 #define HAVE_BUILTIN_EXPECT 1
195 #define HAVE_BUILTIN_STPCPY 1
196 #define HAVE_GCC_ATOMIC_BUILTINS 1
197 #define HAVE_GCC_SYNC_BUILTINS 1
198 /* #undef HAVE_VALGRIND */
199 #define HAVE_SYS_GETTID 1
200 /* #undef HAVE_PTHREAD_GETTHREADID_NP */
201 /* #undef HAVE_PTHREAD_THREADID_NP */
202 #define HAVE_INTEGER_PTHREAD_SELF 1
203 #define HAVE_PTHREAD_SETNAME_NP 1
204 /*
205  This macro defines whether the compiler in use needs a 'typename' keyword
206  to access the types defined inside a class template, such types are called
207  dependent types. Some compilers require it, some others forbid it, and some
208  others may work with or without it. For example, GCC requires the 'typename'
209  keyword whenever needing to access a type inside a template, but msvc
210  forbids it.
211  */
212 /* #undef HAVE_IMPLICIT_DEPENDENT_NAME_TYPING */
213 
214 /* IPV6 */
215 /* #undef HAVE_NETINET_IN6_H */
216 /* #undef HAVE_STRUCT_IN6_ADDR */
217 
218 /*
219  * Platform specific CMake files
220  */
221 #define MACHINE_TYPE "x86_64"
222 /* #undef LINUX_ALPINE */
223 #define HAVE_LINUX_LARGE_PAGES 1
224 /* #undef HAVE_SOLARIS_LARGE_PAGES */
225 /* #undef HAVE_SOLARIS_ATOMIC */
226 #define SYSTEM_TYPE "Linux"
227 /* This should mean case insensitive file system */
228 /* #undef FN_NO_CASE_SENSE */
229 
230 /*
231  * From main CMakeLists.txt
232  */
233 #define MAX_INDEXES 64U
234 /* #undef WITH_INNODB_MEMCACHED */
235 /* #undef ENABLE_MEMCACHED_SASL */
236 /* #undef ENABLE_MEMCACHED_SASL_PWDB */
237 #define ENABLED_PROFILING 1
238 /* #undef HAVE_ASAN */
239 /* #undef HAVE_UBSAN */
240 /* #undef ENABLED_LOCAL_INFILE */
241 #define DEFAULT_MYSQL_HOME "/usr/local/mysql"
242 #define SHAREDIR "/usr/local/mysql/share"
243 #define DEFAULT_BASEDIR "/usr/local/mysql"
244 #define MYSQL_DATADIR "/usr/local/mysql/data"
245 #define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring"
246 #define DEFAULT_CHARSET_HOME "/usr/local/mysql"
247 #define PLUGINDIR "/usr/local/mysql/lib/plugin"
248 #define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc"
249 #define DEFAULT_TMPDIR P_tmpdir
250 #define INSTALL_SBINDIR "/usr/local/mysql/bin"
251 #define INSTALL_BINDIR "/usr/local/mysql/bin"
252 #define INSTALL_MYSQLSHAREDIR "/usr/local/mysql/share"
253 #define INSTALL_SHAREDIR "/usr/local/mysql/share"
254 #define INSTALL_PLUGINDIR "/usr/local/mysql/lib/plugin"
255 #define INSTALL_INCLUDEDIR "/usr/local/mysql/include"
256 #define INSTALL_MYSQLDATADIR "/usr/local/mysql/data"
257 #define INSTALL_MYSQLKEYRINGDIR "/usr/local/mysql/keyring"
258 #define INSTALL_PLUGINTESTDIR "/export/home/pb2/build/sb_0-28300276-1524216144.25/source/plugin/x//tests"
259 #define INSTALL_INFODIR "/usr/local/mysql/docs"
260 #define INSTALL_MYSQLTESTDIR "/usr/local/mysql/mysql-test"
261 #define INSTALL_DOCREADMEDIR "/usr/local/mysql/."
262 #define INSTALL_DOCDIR "/usr/local/mysql/docs"
263 #define INSTALL_MANDIR "/usr/local/mysql/man"
264 #define INSTALL_SUPPORTFILESDIR "/usr/local/mysql/support-files"
265 #define INSTALL_LIBDIR "/usr/local/mysql/lib"
266 
267 /*
268  * Readline
269  */
270 #define HAVE_MBSTATE_T
271 #define HAVE_LANGINFO_CODESET
272 #define HAVE_WCSDUP
273 #define HAVE_WCHAR_T 1
274 #define HAVE_WINT_T 1
275 #define HAVE_CURSES_H 1
276 /* #undef HAVE_NCURSES_H */
277 #define USE_LIBEDIT_INTERFACE 1
278 #define HAVE_HIST_ENTRY 1
279 /* #undef USE_NEW_EDITLINE_INTERFACE */
280 
281 /*
282  * Libedit
283  */
284 #define HAVE_DECL_TGOTO 1
285 
286 /*
287  * Character sets
288  */
289 #define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4"
290 #define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci"
291 
292 /*
293  * Performance schema
294  */
295 #define WITH_PERFSCHEMA_STORAGE_ENGINE 1
296 /* #undef DISABLE_PSI_THREAD */
297 /* #undef DISABLE_PSI_MUTEX */
298 /* #undef DISABLE_PSI_RWLOCK */
299 /* #undef DISABLE_PSI_COND */
300 /* #undef DISABLE_PSI_FILE */
301 /* #undef DISABLE_PSI_TABLE */
302 /* #undef DISABLE_PSI_SOCKET */
303 /* #undef DISABLE_PSI_STAGE */
304 /* #undef DISABLE_PSI_STATEMENT */
305 /* #undef DISABLE_PSI_SP */
306 /* #undef DISABLE_PSI_PS */
307 /* #undef DISABLE_PSI_IDLE */
308 /* #undef DISABLE_PSI_ERROR */
309 /* #undef DISABLE_PSI_STATEMENT_DIGEST */
310 /* #undef DISABLE_PSI_METADATA */
311 /* #undef DISABLE_PSI_MEMORY */
312 /* #undef DISABLE_PSI_TRANSACTION */
313 
314 /*
315  * MySQL version
316  */
317 #define MYSQL_VERSION_MAJOR 8
318 #define MYSQL_VERSION_MINOR 0
319 #define MYSQL_VERSION_PATCH 11
320 #define MYSQL_VERSION_EXTRA ""
321 #define PACKAGE "mysql"
322 #define PACKAGE_BUGREPORT ""
323 #define PACKAGE_NAME "MySQL Server"
324 #define PACKAGE_STRING "MySQL Server 8.0.11"
325 #define PACKAGE_TARNAME "mysql"
326 #define PACKAGE_VERSION "8.0.11"
327 #define VERSION "8.0.11"
328 #define PROTOCOL_VERSION 10
329 
330 /*
331  * CPU info
332  */
333 #define CPU_LEVEL1_DCACHE_LINESIZE 64
334 
335 
336 /*
337  * NDB
338  */
339 /* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */
340 /* #undef HAVE_PTHREAD_SETSCHEDPARAM */
341 
342 /*
343  * Other
344  */
345 /* #undef EXTRA_DEBUG */
346 
347 /*
348  * Hardcoded values needed by libevent/NDB/memcached
349  */
350 #define HAVE_FCNTL_H 1
351 #define HAVE_GETADDRINFO 1
352 #define HAVE_INTTYPES_H 1
353 /* libevent's select.c is not Windows compatible */
354 #ifndef _WIN32
355 #define HAVE_SELECT 1
356 #endif
357 #define HAVE_SIGNAL_H 1
358 #define HAVE_STDARG_H 1
359 #define HAVE_STDINT_H 1
360 #define HAVE_STDLIB_H 1
361 #define HAVE_STRDUP 1
362 #define HAVE_STRTOK_R 1
363 #define HAVE_STRTOLL 1
364 #define HAVE_SYS_STAT_H 1
365 #define HAVE_SYS_TYPES_H 1
366 #define SIZEOF_CHAR 1
367 
368 /*
369  * Needed by libevent
370  */
371 #define HAVE_SOCKLEN_T 1
372 
373 /* For --secure-file-priv */
374 #define DEFAULT_SECURE_FILE_PRIV_DIR "NULL"
375 #define HAVE_LIBNUMA 1
376 
377 /* For default value of --early_plugin_load */
378 /* #undef DEFAULT_EARLY_PLUGIN_LOAD */
379 
380 #define SO_EXT ".so"
381 
382 #endif