MySQL 9.1.0
Source Code Documentation
my_config.h
Go to the documentation of this file.
1/* Copyright (c) 2009, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MY_CONFIG_H
25#define MY_CONFIG_H
26
27/*
28 * From configure.cmake, in order of appearance
29 */
30
31/* Libraries */
32#define HAVE_LIBM 1
33/* #undef HAVE_LIBNSL */
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_PTHREAD_SETNAME_NP_LINUX 1
109/* #undef HAVE_PTHREAD_SETNAME_NP_MACOS */
110/* #undef HAVE_SET_THREAD_DESCRIPTION */
111#define HAVE_SLEEP 1
112#define HAVE_STPCPY 1
113#define HAVE_STPNCPY 1
114/* #undef HAVE_STRLCPY */
115/* #undef HAVE_STRLCAT */
116#define HAVE_STRPTIME 1
117#define HAVE_STRSIGNAL 1
118/* #undef HAVE_TELL */
119#define HAVE_VASPRINTF 1
120#define HAVE_MEMALIGN 1
121#define HAVE_NL_LANGINFO 1
122/* #undef HAVE_HTONLL */
123#define HAVE_EPOLL 1
124
125/* WL2373 */
126#define HAVE_SYS_TIME_H 1
127#define HAVE_SYS_TIMES_H 1
128#define HAVE_TIMES 1
129#define HAVE_GETTIMEOFDAY 1
130
131/* Symbols */
132#define HAVE_LRAND48 1
133#define GWINSZ_IN_SYS_IOCTL 1
134#define FIONREAD_IN_SYS_IOCTL 1
135/* #undef FIONREAD_IN_SYS_FILIO */
136#define HAVE_MADV_DONTDUMP 1
137#define HAVE_O_TMPFILE
138
139/* #undef HAVE_KQUEUE */
140#define HAVE_SETNS 1
141/* #undef HAVE_KQUEUE_TIMERS */
142#define HAVE_POSIX_TIMERS 1
143
144/* Endianess */
145/* #undef WORDS_BIGENDIAN */
146#define HAVE_ENDIAN_CONVERSION_MACROS 1
147
148/* Type sizes */
149#define SIZEOF_VOIDP 8
150#define SIZEOF_CHARP 8
151#define SIZEOF_LONG 8
152#define SIZEOF_SHORT 2
153#define SIZEOF_INT 4
154#define SIZEOF_LONG_LONG 8
155#define SIZEOF_TIME_T 8
156#define HAVE_ULONG 1
157#define HAVE_U_INT32_T 1
158#define HAVE_TM_GMTOFF 1
159
160/* Support for tagging symbols with __attribute__((visibility("hidden"))) */
161#define HAVE_VISIBILITY_HIDDEN 1
162
163/* Code tests*/
164#define HAVE_CLOCK_GETTIME 1
165#define HAVE_CLOCK_REALTIME 1
166#define TIME_WITH_SYS_TIME 1
167/* #undef NO_FCNTL_NONBLOCK */
168#define HAVE_PAUSE_INSTRUCTION 1
169/* #undef HAVE_FAKE_PAUSE_INSTRUCTION */
170/* #undef HAVE_HMT_PRIORITY_INSTRUCTION */
171#define HAVE_ABI_CXA_DEMANGLE 1
172#define HAVE_BUILTIN_UNREACHABLE 1
173#define HAVE_BUILTIN_EXPECT 1
174#define HAVE_BUILTIN_STPCPY 1
175#define HAVE_GCC_SYNC_BUILTINS 1
176/* #undef HAVE_VALGRIND */
177#define HAVE_SYS_GETTID 1
178/* #undef HAVE_PTHREAD_GETTHREADID_NP */
179/* #undef HAVE_PTHREAD_THREADID_NP */
180#define HAVE_INTEGER_PTHREAD_SELF 1
181#define HAVE_PTHREAD_SETNAME_NP 1
182
183/* IPV6 */
184/* #undef HAVE_NETINET_IN6_H */
185/* #undef HAVE_STRUCT_IN6_ADDR */
186
187/*
188 * Platform specific CMake files
189 */
190#define MACHINE_TYPE "x86_64"
191/* #undef LINUX_ALPINE */
192/* #undef LINUX_SUSE */
193/* #undef LINUX_RHEL6 */
194#define LINUX_RHEL7
195/* #undef LINUX_RHEL8 */
196#define HAVE_LINUX_LARGE_PAGES 1
197/* #undef HAVE_SOLARIS_LARGE_PAGES */
198/* #undef HAVE_SOLARIS_ATOMIC */
199/* #undef WITH_SYSTEMD_DEBUG */
200#define SYSTEM_TYPE "Linux"
201/* This should mean case insensitive file system */
202/* #undef FN_NO_CASE_SENSE */
203/* #undef APPLE_ARM */
204#define HAVE_BUILD_ID_SUPPORT
205
206/*
207 * From main CMakeLists.txt
208 */
209/* #undef CHECK_ERRMSG_FORMAT */
210#define MAX_INDEXES 64U
211#define ENABLED_PROFILING 1
212/* #undef HAVE_ASAN */
213/* #undef HAVE_LSAN */
214/* #undef HAVE_UBSAN */
215/* #undef HAVE_TSAN */
216/* #undef ENABLED_LOCAL_INFILE */
217#define KERBEROS_LIB_CONFIGURED
218#define SCRAM_LIB_CONFIGURED
219/* #undef KERBEROS_LIB_SSPI */
220
221/* Lock Order */
222/* #undef WITH_LOCK_ORDER */
223
224/* Character sets and collations */
225#define DEFAULT_MYSQL_HOME "/usr/local/mysql"
226#define SHAREDIR "/usr/local/mysql/share"
227#define DEFAULT_BASEDIR "/usr/local/mysql"
228#define MYSQL_DATADIR "/usr/local/mysql/data"
229#define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring"
230#define DEFAULT_CHARSET_HOME "/usr/local/mysql"
231#define PLUGINDIR "/usr/local/mysql/lib/plugin"
232#define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc"
233#define DEFAULT_TMPDIR P_tmpdir
234#define MYSQL_ICU_DATADIR "/usr/local/mysql/lib/private"
235#define ICUDT_DIR "icudt73l"
236/*
237 * Readline
238 */
239#define HAVE_MBSTATE_T
240#define HAVE_LANGINFO_CODESET
241#define HAVE_WCSDUP
242#define HAVE_WCHAR_T 1
243#define HAVE_WINT_T 1
244#define HAVE_CURSES_H 1
245#define HAVE_NCURSES_H 1
246#define USE_LIBEDIT_INTERFACE 1
247#define HAVE_HIST_ENTRY 1
248#define USE_NEW_EDITLINE_INTERFACE 1
249#define EDITLINE_HAVE_COMPLETION_CHAR 1
250/* #undef EDITLINE_HAVE_COMPLETION_INT */
251
252
253/*
254 * Libedit
255 */
256#define HAVE_GETLINE 1
257/* #undef HAVE___SECURE_GETENV */
258#define HAVE_SECURE_GETENV 1
259/* #undef HAVE_VIS */
260/* #undef HAVE_UNVIS */
261/* #undef HAVE_GETPW_R_DRAFT */
262#define HAVE_GETPW_R_POSIX
263
264/*
265 * Character sets
266 */
267#define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4"
268#define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci"
269
270/*
271 * Performance schema
272 */
273#define WITH_PERFSCHEMA_STORAGE_ENGINE 1
274/* #undef DISABLE_PSI_THREAD */
275/* #undef DISABLE_PSI_MUTEX */
276/* #undef DISABLE_PSI_RWLOCK */
277/* #undef DISABLE_PSI_COND */
278/* #undef DISABLE_PSI_FILE */
279/* #undef DISABLE_PSI_TABLE */
280/* #undef DISABLE_PSI_SOCKET */
281/* #undef DISABLE_PSI_STAGE */
282/* #undef DISABLE_PSI_STATEMENT */
283/* #undef DISABLE_PSI_SP */
284/* #undef DISABLE_PSI_PS */
285/* #undef DISABLE_PSI_IDLE */
286/* #undef DISABLE_PSI_ERROR */
287/* #undef DISABLE_PSI_STATEMENT_DIGEST */
288/* #undef DISABLE_PSI_METADATA */
289/* #undef DISABLE_PSI_MEMORY */
290/* #undef DISABLE_PSI_TRANSACTION */
291/* #undef DISABLE_PSI_SERVER_TELEMETRY_TRACES */
292/* #undef DISABLE_PSI_SERVER_TELEMETRY_LOGS */
293/* #undef DISABLE_PSI_METRICS */
294
295/*
296 * MySQL version
297 */
298#define MYSQL_VERSION_MAJOR 9
299#define MYSQL_VERSION_MINOR 1
300#define MYSQL_VERSION_PATCH 0
301#define MYSQL_VERSION_EXTRA ""
302#define PACKAGE "mysql"
303#define PACKAGE_VERSION "9.1.0"
304#define VERSION "9.1.0"
305#define PROTOCOL_VERSION 10
306
307/*
308 * CPU info
309 */
310#define CPU_LEVEL1_DCACHE_LINESIZE 64
311#define CPU_PAGE_SIZE 4096
312
313/*
314 * NDB
315 */
316#define HAVE_GETRLIMIT 1
317#define WITH_NDBCLUSTER_STORAGE_ENGINE 1
318#define HAVE_PTHREAD_SETSCHEDPARAM 1
319
320/*
321 * Other
322 */
323/* #undef EXTRA_DEBUG */
324#define HANDLE_FATAL_SIGNALS 1
325
326/*
327 * Hardcoded values needed by libevent/NDB
328 */
329#define HAVE_FCNTL_H 1
330#define HAVE_GETADDRINFO 1
331#define HAVE_INTTYPES_H 1
332#define HAVE_SIGNAL_H 1
333#define HAVE_STDARG_H 1
334#define HAVE_STDINT_H 1
335#define HAVE_STDLIB_H 1
336#define HAVE_STRTOK_R 1
337#define HAVE_STRTOLL 1
338#define HAVE_SYS_STAT_H 1
339#define HAVE_SYS_TYPES_H 1
340#define SIZEOF_CHAR 1
341
342/* For --secure-file-priv */
343#define DEFAULT_SECURE_FILE_PRIV_DIR "NULL"
344#define HAVE_LIBNUMA 1
345
346/* For default value of --early_plugin_load */
347/* #undef DEFAULT_EARLY_PLUGIN_LOAD */
348
349/* For default value of --partial_revokes */
350#define DEFAULT_PARTIAL_REVOKES 0
351
352#define SO_EXT ".so"
353
354
355/* From libmysql/CMakeLists.txt */
356#define HAVE_UNIX_DNS_SRV 1
357/* #undef HAVE_WIN32_DNS_SRV */
358
359/* ARM crc32 support */
360/* #undef HAVE_ARMV8_CRC32_INTRINSIC */
361
362/* sasl_client_done support */
363#define SASL_CLIENT_DONE_SUPPORTED 1
364
365#endif