1 | /* Copyright (c) 2009, 2020, Oracle and/or its affiliates. |
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 | #define _LARGEFILE_SOURCE 1 |
31 | |
32 | /* Libraries */ |
33 | #define HAVE_LIBM 1 |
34 | /* #undef HAVE_LIBNSL */ |
35 | #define HAVE_LIBCRYPT 1 |
36 | /* #undef HAVE_LIBSOCKET */ |
37 | #define HAVE_LIBDL 1 |
38 | #define HAVE_LIBRT 1 |
39 | /* #undef HAVE_LIBWRAP */ |
40 | /* #undef HAVE_LIBWRAP_PROTOTYPES */ |
41 | |
42 | /* Header files */ |
43 | #define HAVE_ALLOCA_H 1 |
44 | #define HAVE_ARPA_INET_H 1 |
45 | #define HAVE_CRYPT_H 1 |
46 | #define HAVE_DLFCN_H 1 |
47 | #define HAVE_EXECINFO_H 1 |
48 | #define HAVE_FPU_CONTROL_H 1 |
49 | #define HAVE_GRP_H 1 |
50 | /* #undef HAVE_IEEEFP_H */ |
51 | #define HAVE_LANGINFO_H 1 |
52 | #define HAVE_MALLOC_H 1 |
53 | #define HAVE_NETINET_IN_H 1 |
54 | #define HAVE_POLL_H 1 |
55 | #define HAVE_PWD_H 1 |
56 | #define HAVE_STRINGS_H 1 |
57 | #define HAVE_SYS_CDEFS_H 1 |
58 | #define HAVE_SYS_IOCTL_H 1 |
59 | #define HAVE_SYS_MMAN_H 1 |
60 | #define HAVE_SYS_RESOURCE_H 1 |
61 | #define HAVE_SYS_SELECT_H 1 |
62 | #define HAVE_SYS_SOCKET_H 1 |
63 | /* #undef HAVE_TERM_H */ |
64 | #define HAVE_TERMIOS_H 1 |
65 | #define HAVE_TERMIO_H 1 |
66 | #define HAVE_UNISTD_H 1 |
67 | #define HAVE_SYS_WAIT_H 1 |
68 | #define HAVE_SYS_PARAM_H 1 |
69 | #define HAVE_FNMATCH_H 1 |
70 | #define HAVE_SYS_UN_H 1 |
71 | /* #undef HAVE_SASL_SASL_H */ |
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_CLOCK_GETTIME 1 |
85 | #define HAVE_CUSERID 1 |
86 | /* #undef HAVE_DIRECTIO */ |
87 | #define HAVE_FTRUNCATE 1 |
88 | #define HAVE_COMPRESS 1 |
89 | #define HAVE_CRYPT 1 |
90 | #define HAVE_DLOPEN 1 |
91 | #define HAVE_FCHMOD 1 |
92 | #define HAVE_FCNTL 1 |
93 | #define HAVE_FDATASYNC 1 |
94 | #define HAVE_DECL_FDATASYNC 1 |
95 | #define HAVE_FEDISABLEEXCEPT 1 |
96 | #define HAVE_FSEEKO 1 |
97 | #define HAVE_FSYNC 1 |
98 | #define HAVE_GETHOSTBYADDR_R 1 |
99 | /* #undef HAVE_GETHRTIME */ |
100 | #define HAVE_GETNAMEINFO 1 |
101 | #define HAVE_GETPASS 1 |
102 | /* #undef HAVE_GETPASSPHRASE */ |
103 | #define HAVE_GETPWNAM 1 |
104 | #define HAVE_GETPWUID 1 |
105 | #define HAVE_GETRLIMIT 1 |
106 | #define HAVE_GETRUSAGE 1 |
107 | #define HAVE_INITGROUPS 1 |
108 | /* #undef HAVE_ISSETUGID */ |
109 | #define HAVE_GETUID 1 |
110 | #define HAVE_GETEUID 1 |
111 | #define HAVE_GETGID 1 |
112 | #define HAVE_GETEGID 1 |
113 | #define HAVE_LSTAT 1 |
114 | #define HAVE_MADVISE 1 |
115 | #define HAVE_MALLOC_INFO 1 |
116 | #define HAVE_MEMRCHR 1 |
117 | #define HAVE_MLOCK 1 |
118 | #define HAVE_MLOCKALL 1 |
119 | #define HAVE_MMAP64 1 |
120 | #define HAVE_POLL 1 |
121 | #define HAVE_POSIX_FALLOCATE 1 |
122 | #define HAVE_POSIX_MEMALIGN 1 |
123 | #define HAVE_PREAD 1 |
124 | #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 |
125 | #define HAVE_PTHREAD_SIGMASK 1 |
126 | #define HAVE_READLINK 1 |
127 | #define HAVE_REALPATH 1 |
128 | /* #undef HAVE_SETFD */ |
129 | #define HAVE_SIGACTION 1 |
130 | #define HAVE_SLEEP 1 |
131 | #define HAVE_STPCPY 1 |
132 | #define HAVE_STPNCPY 1 |
133 | /* #undef HAVE_STRLCPY */ |
134 | #define HAVE_STRNLEN 1 |
135 | /* #undef HAVE_STRLCAT */ |
136 | #define HAVE_STRSIGNAL 1 |
137 | /* #undef HAVE_FGETLN */ |
138 | #define HAVE_STRSEP 1 |
139 | /* #undef HAVE_TELL */ |
140 | #define HAVE_VASPRINTF 1 |
141 | #define HAVE_MEMALIGN 1 |
142 | #define HAVE_NL_LANGINFO 1 |
143 | /* #undef HAVE_HTONLL */ |
144 | #define DNS_USE_CPU_CLOCK_FOR_ID 1 |
145 | #define HAVE_EPOLL 1 |
146 | /* #undef HAVE_EVENT_PORTS */ |
147 | #define HAVE_INET_NTOP 1 |
148 | /* #undef HAVE_WORKING_KQUEUE */ |
149 | #define HAVE_TIMERADD 1 |
150 | #define HAVE_TIMERCLEAR 1 |
151 | #define HAVE_TIMERCMP 1 |
152 | #define HAVE_TIMERISSET 1 |
153 | |
154 | /* WL2373 */ |
155 | #define HAVE_SYS_TIME_H 1 |
156 | #define HAVE_SYS_TIMES_H 1 |
157 | #define HAVE_TIMES 1 |
158 | #define HAVE_GETTIMEOFDAY 1 |
159 | |
160 | /* Symbols */ |
161 | #define HAVE_LRAND48 1 |
162 | #define GWINSZ_IN_SYS_IOCTL 1 |
163 | #define FIONREAD_IN_SYS_IOCTL 1 |
164 | /* #undef FIONREAD_IN_SYS_FILIO */ |
165 | #define HAVE_SIGEV_THREAD_ID 1 |
166 | /* #undef HAVE_SIGEV_PORT */ |
167 | #define HAVE_LOG2 1 |
168 | |
169 | #define HAVE_ISINF 1 |
170 | |
171 | /* #undef HAVE_KQUEUE_TIMERS */ |
172 | #define HAVE_POSIX_TIMERS 1 |
173 | |
174 | /* Endianess */ |
175 | /* #undef WORDS_BIGENDIAN */ |
176 | |
177 | /* Type sizes */ |
178 | #define SIZEOF_VOIDP 8 |
179 | #define SIZEOF_CHARP 8 |
180 | #define SIZEOF_LONG 8 |
181 | #define SIZEOF_SHORT 2 |
182 | #define SIZEOF_INT 4 |
183 | #define SIZEOF_LONG_LONG 8 |
184 | #define SIZEOF_OFF_T 8 |
185 | #define SIZEOF_TIME_T 8 |
186 | #define HAVE_UINT 1 |
187 | #define HAVE_ULONG 1 |
188 | #define HAVE_U_INT32_T 1 |
189 | #define HAVE_STRUCT_TIMESPEC |
190 | |
191 | /* Support for tagging symbols with __attribute__((visibility("hidden"))) */ |
192 | #define HAVE_VISIBILITY_HIDDEN 1 |
193 | |
194 | /* Code tests*/ |
195 | #define STACK_DIRECTION -1 |
196 | #define TIME_WITH_SYS_TIME 1 |
197 | /* #undef NO_FCNTL_NONBLOCK */ |
198 | #define HAVE_PAUSE_INSTRUCTION 1 |
199 | /* #undef HAVE_FAKE_PAUSE_INSTRUCTION */ |
200 | /* #undef HAVE_HMT_PRIORITY_INSTRUCTION */ |
201 | /* #undef HAVE_ABI_CXA_DEMANGLE */ |
202 | #define HAVE_BUILTIN_UNREACHABLE 1 |
203 | #define HAVE_BUILTIN_EXPECT 1 |
204 | #define HAVE_BUILTIN_STPCPY 1 |
205 | #define HAVE_GCC_ATOMIC_BUILTINS 1 |
206 | #define HAVE_GCC_SYNC_BUILTINS 1 |
207 | /* #undef HAVE_VALGRIND */ |
208 | /* #undef HAVE_PTHREAD_THREADID_NP */ |
209 | |
210 | /* IPV6 */ |
211 | /* #undef HAVE_NETINET_IN6_H */ |
212 | #define HAVE_STRUCT_SOCKADDR_IN6 1 |
213 | #define HAVE_STRUCT_IN6_ADDR 1 |
214 | #define HAVE_IPV6 1 |
215 | |
216 | /* #undef ss_family */ |
217 | /* #undef HAVE_SOCKADDR_IN_SIN_LEN */ |
218 | /* #undef HAVE_SOCKADDR_IN6_SIN6_LEN */ |
219 | |
220 | /* |
221 | * Platform specific CMake files |
222 | */ |
223 | #define MACHINE_TYPE "x86_64" |
224 | #define HAVE_LINUX_LARGE_PAGES 1 |
225 | /* #undef HAVE_SOLARIS_LARGE_PAGES */ |
226 | /* #undef HAVE_SOLARIS_ATOMIC */ |
227 | /* #undef HAVE_SOLARIS_STYLE_GETHOST */ |
228 | #define SYSTEM_TYPE "Linux" |
229 | /* Windows stuff, mostly functions, that have Posix analogs but named differently */ |
230 | /* #undef IPPROTO_IPV6 */ |
231 | /* #undef IPV6_V6ONLY */ |
232 | /* This should mean case insensitive file system */ |
233 | /* #undef FN_NO_CASE_SENSE */ |
234 | |
235 | /* |
236 | * From main CMakeLists.txt |
237 | */ |
238 | #define MAX_INDEXES 64U |
239 | /* #undef WITH_INNODB_MEMCACHED */ |
240 | /* #undef ENABLE_MEMCACHED_SASL */ |
241 | /* #undef ENABLE_MEMCACHED_SASL_PWDB */ |
242 | #define ENABLED_PROFILING 1 |
243 | /* #undef HAVE_ASAN */ |
244 | /* #undef ENABLED_LOCAL_INFILE */ |
245 | #define OPTIMIZER_TRACE 1 |
246 | #define DEFAULT_MYSQL_HOME "/usr/local/mysql" |
247 | #define SHAREDIR "/usr/local/mysql/share" |
248 | #define DEFAULT_BASEDIR "/usr/local/mysql" |
249 | #define MYSQL_DATADIR "/usr/local/mysql/data" |
250 | #define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring" |
251 | #define DEFAULT_CHARSET_HOME "/usr/local/mysql" |
252 | #define PLUGINDIR "/usr/local/mysql/lib/plugin" |
253 | #define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc" |
254 | #define DEFAULT_TMPDIR P_tmpdir |
255 | #define INSTALL_SBINDIR "/usr/local/mysql/bin" |
256 | #define INSTALL_BINDIR "/usr/local/mysql/bin" |
257 | #define INSTALL_MYSQLSHAREDIR "/usr/local/mysql/share" |
258 | #define INSTALL_SHAREDIR "/usr/local/mysql/share" |
259 | #define INSTALL_PLUGINDIR "/usr/local/mysql/lib/plugin" |
260 | #define INSTALL_INCLUDEDIR "/usr/local/mysql/include" |
261 | #define INSTALL_SCRIPTDIR "/usr/local/mysql/scripts" |
262 | #define INSTALL_MYSQLDATADIR "/usr/local/mysql/data" |
263 | #define INSTALL_MYSQLKEYRINGDIR "/usr/local/mysql/keyring" |
264 | /* #undef INSTALL_PLUGINTESTDIR */ |
265 | #define INSTALL_INFODIR "/usr/local/mysql/docs" |
266 | #define INSTALL_MYSQLTESTDIR "/usr/local/mysql/mysql-test" |
267 | #define INSTALL_DOCREADMEDIR "/usr/local/mysql/." |
268 | #define INSTALL_DOCDIR "/usr/local/mysql/docs" |
269 | #define INSTALL_MANDIR "/usr/local/mysql/man" |
270 | #define INSTALL_SUPPORTFILESDIR "/usr/local/mysql/support-files" |
271 | #define INSTALL_LIBDIR "/usr/local/mysql/lib" |
272 | |
273 | /* |
274 | * Readline |
275 | */ |
276 | #define HAVE_MBSTATE_T |
277 | #define HAVE_LANGINFO_CODESET |
278 | #define HAVE_WCSDUP |
279 | #define HAVE_WCHAR_T 1 |
280 | #define HAVE_WINT_T 1 |
281 | #define HAVE_CURSES_H 1 |
282 | /* #undef HAVE_NCURSES_H */ |
283 | #define USE_LIBEDIT_INTERFACE 1 |
284 | #define HAVE_HIST_ENTRY 1 |
285 | #define USE_NEW_EDITLINE_INTERFACE 1 |
286 | #define EDITLINE_HAVE_COMPLETION_CHAR 1 |
287 | /* #undef EDITLINE_HAVE_COMPLETION_INT */ |
288 | |
289 | /* |
290 | * Libedit |
291 | */ |
292 | #define HAVE_GETLINE 1 |
293 | /* #undef HAVE___SECURE_GETENV */ |
294 | #define HAVE_SECURE_GETENV 1 |
295 | /* #undef HAVE_VIS */ |
296 | /* #undef HAVE_UNVIS */ |
297 | /* #undef HAVE_GETPW_R_DRAFT */ |
298 | #define HAVE_GETPW_R_POSIX |
299 | |
300 | /* |
301 | * DTrace |
302 | */ |
303 | /* #undef HAVE_DTRACE */ |
304 | |
305 | /* |
306 | * Character sets |
307 | */ |
308 | #define MYSQL_DEFAULT_CHARSET_NAME "latin1" |
309 | #define MYSQL_DEFAULT_COLLATION_NAME "latin1_swedish_ci" |
310 | #define HAVE_CHARSET_armscii8 1 |
311 | #define HAVE_CHARSET_ascii 1 |
312 | #define HAVE_CHARSET_big5 1 |
313 | #define HAVE_CHARSET_cp1250 1 |
314 | #define HAVE_CHARSET_cp1251 1 |
315 | #define HAVE_CHARSET_cp1256 1 |
316 | #define HAVE_CHARSET_cp1257 1 |
317 | #define HAVE_CHARSET_cp850 1 |
318 | #define HAVE_CHARSET_cp852 1 |
319 | #define HAVE_CHARSET_cp866 1 |
320 | #define HAVE_CHARSET_cp932 1 |
321 | #define HAVE_CHARSET_dec8 1 |
322 | #define HAVE_CHARSET_eucjpms 1 |
323 | #define HAVE_CHARSET_euckr 1 |
324 | #define HAVE_CHARSET_gb2312 1 |
325 | #define HAVE_CHARSET_gbk 1 |
326 | #define HAVE_CHARSET_gb18030 1 |
327 | #define HAVE_CHARSET_geostd8 1 |
328 | #define HAVE_CHARSET_greek 1 |
329 | #define HAVE_CHARSET_hebrew 1 |
330 | #define HAVE_CHARSET_hp8 1 |
331 | #define HAVE_CHARSET_keybcs2 1 |
332 | #define HAVE_CHARSET_koi8r 1 |
333 | #define HAVE_CHARSET_koi8u 1 |
334 | #define HAVE_CHARSET_latin1 1 |
335 | #define HAVE_CHARSET_latin2 1 |
336 | #define HAVE_CHARSET_latin5 1 |
337 | #define HAVE_CHARSET_latin7 1 |
338 | #define HAVE_CHARSET_macce 1 |
339 | #define HAVE_CHARSET_macroman 1 |
340 | #define HAVE_CHARSET_sjis 1 |
341 | #define HAVE_CHARSET_swe7 1 |
342 | #define HAVE_CHARSET_tis620 1 |
343 | #define HAVE_CHARSET_ucs2 1 |
344 | #define HAVE_CHARSET_ujis 1 |
345 | #define HAVE_CHARSET_utf8mb4 1 |
346 | /* #undef HAVE_CHARSET_utf8mb3 */ |
347 | #define HAVE_CHARSET_utf8 1 |
348 | #define HAVE_CHARSET_utf16 1 |
349 | #define HAVE_CHARSET_utf32 1 |
350 | #define HAVE_UCA_COLLATIONS 1 |
351 | |
352 | /* |
353 | * Feature set |
354 | */ |
355 | /* #undef WITH_PARTITION_STORAGE_ENGINE */ |
356 | |
357 | /* |
358 | * Performance schema |
359 | */ |
360 | #define WITH_PERFSCHEMA_STORAGE_ENGINE 1 |
361 | /* #undef DISABLE_PSI_THREAD */ |
362 | /* #undef DISABLE_PSI_MUTEX */ |
363 | /* #undef DISABLE_PSI_RWLOCK */ |
364 | /* #undef DISABLE_PSI_COND */ |
365 | /* #undef DISABLE_PSI_FILE */ |
366 | /* #undef DISABLE_PSI_TABLE */ |
367 | /* #undef DISABLE_PSI_SOCKET */ |
368 | /* #undef DISABLE_PSI_STAGE */ |
369 | /* #undef DISABLE_PSI_STATEMENT */ |
370 | /* #undef DISABLE_PSI_SP */ |
371 | /* #undef DISABLE_PSI_PS */ |
372 | /* #undef DISABLE_PSI_IDLE */ |
373 | /* #undef DISABLE_PSI_STATEMENT_DIGEST */ |
374 | /* #undef DISABLE_PSI_METADATA */ |
375 | /* #undef DISABLE_PSI_MEMORY */ |
376 | /* #undef DISABLE_PSI_TRANSACTION */ |
377 | |
378 | /* |
379 | * syscall |
380 | */ |
381 | /* #undef HAVE_SYS_THREAD_SELFID */ |
382 | #define HAVE_SYS_GETTID 1 |
383 | /* #undef HAVE_PTHREAD_GETTHREADID_NP */ |
384 | #define HAVE_PTHREAD_SETNAME_NP 1 |
385 | #define HAVE_INTEGER_PTHREAD_SELF 1 |
386 | |
387 | /* Platform-specific C++ compiler behaviors we rely upon */ |
388 | |
389 | /* |
390 | This macro defines whether the compiler in use needs a 'typename' keyword |
391 | to access the types defined inside a class template, such types are called |
392 | dependent types. Some compilers require it, some others forbid it, and some |
393 | others may work with or without it. For example, GCC requires the 'typename' |
394 | keyword whenever needing to access a type inside a template, but msvc |
395 | forbids it. |
396 | */ |
397 | /* #undef HAVE_IMPLICIT_DEPENDENT_NAME_TYPING */ |
398 | |
399 | |
400 | /* |
401 | * MySQL version |
402 | */ |
403 | #define DOT_FRM_VERSION 6 |
404 | #define MYSQL_VERSION_MAJOR 5 |
405 | #define MYSQL_VERSION_MINOR 7 |
406 | #define MYSQL_VERSION_PATCH 33 |
407 | #define "" |
408 | #define PACKAGE "mysql" |
409 | #define PACKAGE_BUGREPORT "" |
410 | #define PACKAGE_NAME "MySQL Server" |
411 | #define PACKAGE_STRING "MySQL Server 5.7.33" |
412 | #define PACKAGE_TARNAME "mysql" |
413 | #define PACKAGE_VERSION "5.7.33" |
414 | #define VERSION "5.7.33" |
415 | #define PROTOCOL_VERSION 10 |
416 | |
417 | /* |
418 | * CPU info |
419 | */ |
420 | #define CPU_LEVEL1_DCACHE_LINESIZE 64 |
421 | |
422 | |
423 | /* |
424 | * NDB |
425 | */ |
426 | /* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */ |
427 | /* #undef HAVE_PTHREAD_SETSCHEDPARAM */ |
428 | |
429 | /* |
430 | * Other |
431 | */ |
432 | /* #undef EXTRA_DEBUG */ |
433 | #define HAVE_CHOWN 1 |
434 | |
435 | /* |
436 | * Hardcoded values needed by libevent/NDB/memcached |
437 | */ |
438 | #define HAVE_FCNTL_H 1 |
439 | #define HAVE_GETADDRINFO 1 |
440 | #define HAVE_INTTYPES_H 1 |
441 | /* libevent's select.c is not Windows compatible */ |
442 | #ifndef _WIN32 |
443 | #define HAVE_SELECT 1 |
444 | #endif |
445 | #define HAVE_SIGNAL_H 1 |
446 | #define HAVE_STDARG_H 1 |
447 | #define HAVE_STDINT_H 1 |
448 | #define HAVE_STDLIB_H 1 |
449 | #define HAVE_STRDUP 1 |
450 | #define HAVE_STRTOK_R 1 |
451 | #define HAVE_STRTOLL 1 |
452 | #define HAVE_SYS_STAT_H 1 |
453 | #define HAVE_SYS_TYPES_H 1 |
454 | #define SIZEOF_CHAR 1 |
455 | |
456 | /* |
457 | * Needed by libevent |
458 | */ |
459 | /* #undef HAVE_SOCKLEN_T */ |
460 | |
461 | /* For --secure-file-priv */ |
462 | #define DEFAULT_SECURE_FILE_PRIV_DIR "NULL" |
463 | #define DEFAULT_SECURE_FILE_PRIV_EMBEDDED_DIR "NULL" |
464 | /* #undef HAVE_LIBNUMA */ |
465 | |
466 | /* For default value of --early_plugin_load */ |
467 | /* #undef DEFAULT_EARLY_PLUGIN_LOAD */ |
468 | |
469 | #endif |
470 | |