MySQL  8.0.21
Source Code Documentation
my_config.h
Go to the documentation of this file.
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 
30 /* Libraries */
31 #define HAVE_LIBM 1
32 /* #undef HAVE_LIBNSL */
33 #define HAVE_LIBCRYPT 1
34 /* #undef HAVE_LIBSOCKET */
35 #define HAVE_LIBDL 1
36 #define HAVE_LIBRT 1
37 /* #undef HAVE_LIBWRAP */
38 /* #undef HAVE_LIBWRAP_PROTOTYPES */
39 
40 /* Header files */
41 #define HAVE_ALLOCA_H 1
42 #define HAVE_ARPA_INET_H 1
43 #define HAVE_DLFCN_H 1
44 #define HAVE_EXECINFO_H 1
45 #define HAVE_FPU_CONTROL_H 1
46 #define HAVE_GRP_H 1
47 #define HAVE_LANGINFO_H 1
48 #define HAVE_MALLOC_H 1
49 #define HAVE_NETINET_IN_H 1
50 #define HAVE_POLL_H 1
51 #define HAVE_PWD_H 1
52 #define HAVE_STRINGS_H 1
53 #define HAVE_SYS_CDEFS_H 1
54 #define HAVE_SYS_IOCTL_H 1
55 #define HAVE_SYS_MMAN_H 1
56 #define HAVE_SYS_PRCTL_H 1
57 #define HAVE_SYS_RESOURCE_H 1
58 #define HAVE_SYS_SELECT_H 1
59 #define HAVE_SYS_SOCKET_H 1
60 #define HAVE_TERM_H 1
61 #define HAVE_TERMIOS_H 1
62 #define HAVE_TERMIO_H 1
63 #define HAVE_UNISTD_H 1
64 #define HAVE_SYS_WAIT_H 1
65 #define HAVE_SYS_PARAM_H 1
66 #define HAVE_FNMATCH_H 1
67 #define HAVE_SYS_UN_H 1
68 #define HAVE_SASL_SASL_H 1
69 
70 /* Functions */
71 /* #undef HAVE_ALIGNED_MALLOC */
72 #define HAVE_BACKTRACE 1
73 #define HAVE_INDEX 1
74 #define HAVE_CHOWN 1
75 #define HAVE_CUSERID 1
76 /* #undef HAVE_DIRECTIO */
77 #define HAVE_FTRUNCATE 1
78 #define HAVE_FCHMOD 1
79 #define HAVE_FCNTL 1
80 #define HAVE_FDATASYNC 1
81 #define HAVE_DECL_FDATASYNC 1
82 #define HAVE_FEDISABLEEXCEPT 1
83 #define HAVE_FSYNC 1
84 /* #undef HAVE_GETHRTIME */
85 #define HAVE_GETPASS 1
86 /* #undef HAVE_GETPASSPHRASE */
87 #define HAVE_GETPWNAM 1
88 #define HAVE_GETPWUID 1
89 #define HAVE_GETRUSAGE 1
90 #define HAVE_INITGROUPS 1
91 /* #undef HAVE_ISSETUGID */
92 #define HAVE_GETUID 1
93 #define HAVE_GETEUID 1
94 #define HAVE_GETGID 1
95 #define HAVE_GETEGID 1
96 /* #undef HAVE_LSAN_DO_RECOVERABLE_LEAK_CHECK */
97 #define HAVE_MADVISE 1
98 #define HAVE_MALLOC_INFO 1
99 #define HAVE_MLOCK 1
100 #define HAVE_MLOCKALL 1
101 #define HAVE_MMAP64 1
102 #define HAVE_POLL 1
103 #define HAVE_POSIX_FALLOCATE 1
104 #define HAVE_POSIX_MEMALIGN 1
105 #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
106 #define HAVE_PTHREAD_GETAFFINITY_NP 1
107 #define HAVE_PTHREAD_SIGMASK 1
108 #define HAVE_SLEEP 1
109 #define HAVE_STPCPY 1
110 #define HAVE_STPNCPY 1
111 /* #undef HAVE_STRLCPY */
112 /* #undef HAVE_STRLCAT */
113 #define HAVE_STRSIGNAL 1
114 /* #undef HAVE_TELL */
115 #define HAVE_VASPRINTF 1
116 #define HAVE_MEMALIGN 1
117 #define HAVE_NL_LANGINFO 1
118 /* #undef HAVE_HTONLL */
119 #define HAVE_EPOLL 1
120 
121 /* WL2373 */
122 #define HAVE_SYS_TIME_H 1
123 #define HAVE_SYS_TIMES_H 1
124 #define HAVE_TIMES 1
125 #define HAVE_GETTIMEOFDAY 1
126 
127 /* Symbols */
128 #define HAVE_LRAND48 1
129 #define GWINSZ_IN_SYS_IOCTL 1
130 #define FIONREAD_IN_SYS_IOCTL 1
131 /* #undef FIONREAD_IN_SYS_FILIO */
132 #define HAVE_MADV_DONTDUMP 1
133 /* #undef HAVE_O_TMPFILE */
134 
135 /* #undef HAVE_KQUEUE */
136 #define HAVE_SETNS 1
137 /* #undef HAVE_KQUEUE_TIMERS */
138 #define HAVE_POSIX_TIMERS 1
139 
140 /* Endianess */
141 /* #undef WORDS_BIGENDIAN */
142 #define HAVE_ENDIAN_CONVERSION_MACROS 1
143 
144 /* Type sizes */
145 #define SIZEOF_VOIDP 8
146 #define SIZEOF_CHARP 8
147 #define SIZEOF_LONG 8
148 #define SIZEOF_SHORT 2
149 #define SIZEOF_INT 4
150 #define SIZEOF_LONG_LONG 8
151 #define SIZEOF_TIME_T 8
152 #define HAVE_ULONG 1
153 #define HAVE_U_INT32_T 1
154 #define HAVE_TM_GMTOFF 1
155 
156 /* Support for tagging symbols with __attribute__((visibility("hidden"))) */
157 #define HAVE_VISIBILITY_HIDDEN 1
158 
159 /* Code tests*/
160 #define HAVE_CLOCK_GETTIME 1
161 #define HAVE_CLOCK_REALTIME 1
162 #define STACK_DIRECTION -1
163 #define TIME_WITH_SYS_TIME 1
164 /* #undef NO_FCNTL_NONBLOCK */
165 #define HAVE_PAUSE_INSTRUCTION 1
166 /* #undef HAVE_FAKE_PAUSE_INSTRUCTION */
167 /* #undef HAVE_HMT_PRIORITY_INSTRUCTION */
168 #define HAVE_ABI_CXA_DEMANGLE 1
169 #define HAVE_BUILTIN_UNREACHABLE 1
170 #define HAVE_BUILTIN_EXPECT 1
171 #define HAVE_BUILTIN_STPCPY 1
172 #define HAVE_GCC_SYNC_BUILTINS 1
173 /* #undef HAVE_VALGRIND */
174 #define HAVE_SYS_GETTID 1
175 /* #undef HAVE_PTHREAD_GETTHREADID_NP */
176 /* #undef HAVE_PTHREAD_THREADID_NP */
177 #define HAVE_INTEGER_PTHREAD_SELF 1
178 #define HAVE_PTHREAD_SETNAME_NP 1
179 
180 /* IPV6 */
181 /* #undef HAVE_NETINET_IN6_H */
182 /* #undef HAVE_STRUCT_IN6_ADDR */
183 
184 /*
185  * Platform specific CMake files
186  */
187 #define MACHINE_TYPE "x86_64"
188 /* #undef LINUX_ALPINE */
189 /* #undef LINUX_SUSE */
190 #define HAVE_LINUX_LARGE_PAGES 1
191 /* #undef HAVE_SOLARIS_LARGE_PAGES */
192 /* #undef HAVE_SOLARIS_ATOMIC */
193 #define SYSTEM_TYPE "Linux"
194 /* This should mean case insensitive file system */
195 /* #undef FN_NO_CASE_SENSE */
196 
197 /*
198  * From main CMakeLists.txt
199  */
200 /* #undef CHECK_ERRMSG_FORMAT */
201 #define MAX_INDEXES 64U
202 /* #undef WITH_INNODB_MEMCACHED */
203 /* #undef ENABLE_MEMCACHED_SASL */
204 /* #undef ENABLE_MEMCACHED_SASL_PWDB */
205 #define ENABLED_PROFILING 1
206 /* #undef HAVE_ASAN */
207 /* #undef HAVE_LSAN */
208 /* #undef HAVE_UBSAN */
209 /* #undef HAVE_TSAN */
210 /* #undef ENABLED_LOCAL_INFILE */
211 /* #undef KERBEROS_LIB_CONFIGURED */
212 #define SCRAM_LIB_CONFIGURED
213 
214 /* Lock Order */
215 /* #undef WITH_LOCK_ORDER */
216 
217 /* Character sets and collations */
218 #define DEFAULT_MYSQL_HOME "/usr/local/mysql"
219 #define SHAREDIR "/usr/local/mysql/share"
220 #define DEFAULT_BASEDIR "/usr/local/mysql"
221 #define MYSQL_DATADIR "/usr/local/mysql/data"
222 #define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring"
223 #define DEFAULT_CHARSET_HOME "/usr/local/mysql"
224 #define PLUGINDIR "/usr/local/mysql/lib/plugin"
225 #define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc"
226 #define DEFAULT_TMPDIR P_tmpdir
227 /*
228  * Readline
229  */
230 #define HAVE_MBSTATE_T
231 #define HAVE_LANGINFO_CODESET
232 #define HAVE_WCSDUP
233 #define HAVE_WCHAR_T 1
234 #define HAVE_WINT_T 1
235 #define HAVE_CURSES_H 1
236 /* #undef HAVE_NCURSES_H */
237 #define USE_LIBEDIT_INTERFACE 1
238 #define HAVE_HIST_ENTRY 1
239 #define USE_NEW_EDITLINE_INTERFACE 1
240 #define EDITLINE_HAVE_COMPLETION_CHAR 1
241 /* #undef EDITLINE_HAVE_COMPLETION_INT */
242 
243 
244 /*
245  * Libedit
246  */
247 #define HAVE_GETLINE 1
248 /* #undef HAVE___SECURE_GETENV */
249 #define HAVE_SECURE_GETENV 1
250 /* #undef HAVE_VIS */
251 /* #undef HAVE_UNVIS */
252 /* #undef HAVE_GETPW_R_DRAFT */
253 #define HAVE_GETPW_R_POSIX
254 
255 /*
256  * Character sets
257  */
258 #define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4"
259 #define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci"
260 
261 /*
262  * Performance schema
263  */
264 #define WITH_PERFSCHEMA_STORAGE_ENGINE 1
265 /* #undef DISABLE_PSI_THREAD */
266 /* #undef DISABLE_PSI_MUTEX */
267 /* #undef DISABLE_PSI_RWLOCK */
268 /* #undef DISABLE_PSI_COND */
269 /* #undef DISABLE_PSI_FILE */
270 /* #undef DISABLE_PSI_TABLE */
271 /* #undef DISABLE_PSI_SOCKET */
272 /* #undef DISABLE_PSI_STAGE */
273 /* #undef DISABLE_PSI_STATEMENT */
274 /* #undef DISABLE_PSI_SP */
275 /* #undef DISABLE_PSI_PS */
276 /* #undef DISABLE_PSI_IDLE */
277 /* #undef DISABLE_PSI_ERROR */
278 /* #undef DISABLE_PSI_STATEMENT_DIGEST */
279 /* #undef DISABLE_PSI_METADATA */
280 /* #undef DISABLE_PSI_MEMORY */
281 /* #undef DISABLE_PSI_TRANSACTION */
282 
283 /*
284  * MySQL version
285  */
286 #define MYSQL_VERSION_MAJOR 8
287 #define MYSQL_VERSION_MINOR 0
288 #define MYSQL_VERSION_PATCH 21
289 #define MYSQL_VERSION_EXTRA ""
290 #define PACKAGE "mysql"
291 #define PACKAGE_VERSION "8.0.21"
292 #define VERSION "8.0.21"
293 #define PROTOCOL_VERSION 10
294 
295 /*
296  * CPU info
297  */
298 #define CPU_LEVEL1_DCACHE_LINESIZE 64
299 
300 
301 /*
302  * NDB
303  */
304 /* #undef HAVE_GETRLIMIT */
305 /* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */
306 /* #undef HAVE_PTHREAD_SETSCHEDPARAM */
307 
308 /*
309  * Other
310  */
311 /* #undef EXTRA_DEBUG */
312 #define HANDLE_FATAL_SIGNALS 1
313 
314 /*
315  * Hardcoded values needed by libevent/NDB/memcached
316  */
317 #define HAVE_FCNTL_H 1
318 #define HAVE_GETADDRINFO 1
319 #define HAVE_INTTYPES_H 1
320 /* libevent's select.c is not Windows compatible */
321 #ifndef _WIN32
322 #define HAVE_SELECT 1
323 #endif
324 #define HAVE_SIGNAL_H 1
325 #define HAVE_STDARG_H 1
326 #define HAVE_STDINT_H 1
327 #define HAVE_STDLIB_H 1
328 #define HAVE_STRTOK_R 1
329 #define HAVE_STRTOLL 1
330 #define HAVE_SYS_STAT_H 1
331 #define HAVE_SYS_TYPES_H 1
332 #define SIZEOF_CHAR 1
333 
334 /* For --secure-file-priv */
335 #define DEFAULT_SECURE_FILE_PRIV_DIR "NULL"
336 #define HAVE_LIBNUMA 1
337 
338 /* For default value of --early_plugin_load */
339 /* #undef DEFAULT_EARLY_PLUGIN_LOAD */
340 
341 /* For default value of --partial_revokes */
342 #define DEFAULT_PARTIAL_REVOKES 0
343 
344 #define SO_EXT ".so"
345 
346 #endif