config.h.cmake 16.7 KB
Newer Older
1
/* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; version 2 of the License.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */

#ifndef MY_CONFIG_H
#define MY_CONFIG_H
#cmakedefine DOT_FRM_VERSION @DOT_FRM_VERSION@
/* Headers we may want to use. */
#cmakedefine STDC_HEADERS 1
21
#cmakedefine _GNU_SOURCE 1
22 23
#cmakedefine HAVE_ALLOCA_H 1
#cmakedefine HAVE_ARPA_INET_H 1
Kent Boortz's avatar
Kent Boortz committed
24 25
#cmakedefine HAVE_ASM_MSR_H 1
#cmakedefine HAVE_ASM_TERMBITS_H 1
26 27
#cmakedefine HAVE_CRYPT_H 1
#cmakedefine HAVE_CURSES_H 1
28
#cmakedefine HAVE_BFD_H 1
Kent Boortz's avatar
Kent Boortz committed
29
#cmakedefine HAVE_NDIR_H 1
30 31 32 33 34 35 36 37 38
#cmakedefine HAVE_DIRENT_H 1
#cmakedefine HAVE_DLFCN_H 1
#cmakedefine HAVE_EXECINFO_H 1
#cmakedefine HAVE_FCNTL_H 1
#cmakedefine HAVE_FENV_H 1
#cmakedefine HAVE_FLOAT_H 1
#cmakedefine HAVE_FNMATCH_H 1
#cmakedefine HAVE_FPU_CONTROL_H 1
#cmakedefine HAVE_GRP_H 1
39
#cmakedefine HAVE_IA64INTRIN_H 1
40 41
#cmakedefine HAVE_IEEEFP_H 1
#cmakedefine HAVE_INTTYPES_H 1
42
#cmakedefine HAVE_KQUEUE 1
43
#cmakedefine HAVE_LIMITS_H 1
44
#cmakedefine HAVE_LINK_H 1
45
#cmakedefine HAVE_LINUX_UNISTD_H 1
46 47 48 49 50
#cmakedefine HAVE_LOCALE_H 1
#cmakedefine HAVE_MALLOC_H 1
#cmakedefine HAVE_MEMORY_H 1
#cmakedefine HAVE_NETINET_IN_H 1
#cmakedefine HAVE_PATHS_H 1
Vladislav Vaintroub's avatar
Vladislav Vaintroub committed
51
#cmakedefine HAVE_POLL_H 1
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
#cmakedefine HAVE_PWD_H 1
#cmakedefine HAVE_SCHED_H 1
#cmakedefine HAVE_SELECT_H 1
#cmakedefine HAVE_SOLARIS_LARGE_PAGES 1
#cmakedefine HAVE_STDDEF_H 1
#cmakedefine HAVE_STDLIB_H 1
#cmakedefine HAVE_STDARG_H 1
#cmakedefine HAVE_STRINGS_H 1
#cmakedefine HAVE_STRING_H 1
#cmakedefine HAVE_STDINT_H 1
#cmakedefine HAVE_SYNCH_H 1
#cmakedefine HAVE_SYSENT_H 1
#cmakedefine HAVE_SYS_DIR_H 1
#cmakedefine HAVE_SYS_FILE_H 1
#cmakedefine HAVE_SYS_FPU_H 1
#cmakedefine HAVE_SYS_IOCTL_H 1
#cmakedefine HAVE_SYS_IPC_H 1
#cmakedefine HAVE_SYS_MALLOC_H 1
#cmakedefine HAVE_SYS_MMAN_H 1
Kent Boortz's avatar
Kent Boortz committed
71
#cmakedefine HAVE_SYS_NDIR_H 1
72 73 74 75 76 77 78
#cmakedefine HAVE_SYS_PTE_H 1
#cmakedefine HAVE_SYS_PTEM_H 1
#cmakedefine HAVE_SYS_PRCTL_H 1
#cmakedefine HAVE_SYS_RESOURCE_H 1
#cmakedefine HAVE_SYS_SELECT_H 1
#cmakedefine HAVE_SYS_SHM_H 1
#cmakedefine HAVE_SYS_SOCKET_H 1
79
#cmakedefine HAVE_SYS_SOCKIO_H 1
80
#cmakedefine HAVE_SYS_UTSNAME_H 1
81 82
#cmakedefine HAVE_SYS_STAT_H 1
#cmakedefine HAVE_SYS_STREAM_H 1
83
#cmakedefine HAVE_SYS_SYSCALL_H 1
84
#cmakedefine HAVE_SYS_TIMEB_H 1
Kent Boortz's avatar
Kent Boortz committed
85 86
#cmakedefine HAVE_SYS_TIMES_H 1
#cmakedefine HAVE_SYS_TIME_H 1
87 88 89
#cmakedefine HAVE_SYS_TYPES_H 1
#cmakedefine HAVE_SYS_UN_H 1
#cmakedefine HAVE_SYS_VADVISE_H 1
90
#cmakedefine HAVE_SYS_STATVFS_H 1
91
#cmakedefine HAVE_UCONTEXT_H 1
92
#cmakedefine HAVE_TERM_H 1
Kent Boortz's avatar
Kent Boortz committed
93
#cmakedefine HAVE_TERMBITS_H 1
94 95 96
#cmakedefine HAVE_TERMIOS_H 1
#cmakedefine HAVE_TERMIO_H 1
#cmakedefine HAVE_TERMCAP_H 1
Kent Boortz's avatar
Kent Boortz committed
97
#cmakedefine HAVE_TIME_H 1
98 99 100 101 102 103 104 105 106
#cmakedefine HAVE_UNISTD_H 1
#cmakedefine HAVE_UTIME_H 1
#cmakedefine HAVE_VARARGS_H 1
#cmakedefine HAVE_SYS_UTIME_H 1
#cmakedefine HAVE_SYS_WAIT_H 1
#cmakedefine HAVE_SYS_PARAM_H 1

/* Libraries */
#cmakedefine HAVE_LIBWRAP 1
107
#cmakedefine HAVE_SYSTEMD 1
108 109
#cmakedefine HAVE_CRC32_VPMSUM 1

110 111 112 113 114 115 116 117 118 119 120
/* Does "struct timespec" have a "sec" and "nsec" field? */
#cmakedefine HAVE_TIMESPEC_TS_SEC 1

/* Readline */
#cmakedefine HAVE_HIST_ENTRY 1
#cmakedefine USE_LIBEDIT_INTERFACE 1
#cmakedefine USE_NEW_READLINE_INTERFACE 1

#cmakedefine FIONREAD_IN_SYS_IOCTL 1
#cmakedefine GWINSZ_IN_SYS_IOCTL 1
#cmakedefine TIOCSTAT_IN_SYS_IOCTL 1
121
#cmakedefine FIONREAD_IN_SYS_FILIO 1
122 123

/* Functions we may want to use. */
124
#cmakedefine HAVE_ACCEPT4 1
125
#cmakedefine HAVE_ACCESS 1
126 127 128 129 130 131 132 133
#cmakedefine HAVE_AIOWAIT 1
#cmakedefine HAVE_ALARM 1
#cmakedefine HAVE_ALLOCA 1
#cmakedefine HAVE_BFILL 1
#cmakedefine HAVE_INDEX 1
#cmakedefine HAVE_CLOCK_GETTIME 1
#cmakedefine HAVE_CRYPT 1
#cmakedefine HAVE_CUSERID 1
134
#cmakedefine HAVE_DLADDR 1
135 136 137 138 139
#cmakedefine HAVE_DLERROR 1
#cmakedefine HAVE_DLOPEN 1
#cmakedefine HAVE_FCHMOD 1
#cmakedefine HAVE_FCNTL 1
#cmakedefine HAVE_FDATASYNC 1
140
#cmakedefine HAVE_DECL_FDATASYNC 1
141
#cmakedefine HAVE_FEDISABLEEXCEPT 1
142 143 144 145
#cmakedefine HAVE_FESETROUND 1
#cmakedefine HAVE_FP_EXCEPT 1
#cmakedefine HAVE_FSEEKO 1
#cmakedefine HAVE_FSYNC 1
Kent Boortz's avatar
Kent Boortz committed
146
#cmakedefine HAVE_FTIME 1
147
#cmakedefine HAVE_GETIFADDRS 1
148 149 150 151 152 153 154 155 156 157 158 159 160 161
#cmakedefine HAVE_GETCWD 1
#cmakedefine HAVE_GETHOSTBYADDR_R 1
#cmakedefine HAVE_GETHRTIME 1
#cmakedefine HAVE_GETPAGESIZE 1
#cmakedefine HAVE_GETPASS 1
#cmakedefine HAVE_GETPASSPHRASE 1
#cmakedefine HAVE_GETPWNAM 1
#cmakedefine HAVE_GETPWUID 1
#cmakedefine HAVE_GETRLIMIT 1
#cmakedefine HAVE_GETRUSAGE 1
#cmakedefine HAVE_GETTIMEOFDAY 1
#cmakedefine HAVE_GETWD 1
#cmakedefine HAVE_GMTIME_R 1
#cmakedefine gmtime_r @gmtime_r@
162
#cmakedefine HAVE_IN_ADDR_T 1
163 164 165 166 167 168 169
#cmakedefine HAVE_INITGROUPS 1
#cmakedefine HAVE_LARGE_PAGE_OPTION 1
#cmakedefine HAVE_LDIV 1
#cmakedefine HAVE_LRAND48 1
#cmakedefine HAVE_LOCALTIME_R 1
#cmakedefine HAVE_LOG2 1
#cmakedefine HAVE_LSTAT 1
Kent Boortz's avatar
Kent Boortz committed
170 171
#cmakedefine HAVE_MEMALIGN 1
/* #cmakedefine HAVE_MLOCK 1 see Bug#54662 */
172 173 174 175
#cmakedefine HAVE_NPTL 1
#cmakedefine HAVE_NL_LANGINFO 1
#cmakedefine HAVE_MADVISE 1
#cmakedefine HAVE_DECL_MADVISE 1
176
#cmakedefine HAVE_DECL_MHA_MAPSIZE_VA 1
177 178 179 180
#cmakedefine HAVE_MALLINFO 1
#cmakedefine HAVE_MEMCPY 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_MKSTEMP 1
181
#cmakedefine HAVE_MKOSTEMP 1
182 183 184 185 186 187
#cmakedefine HAVE_MLOCKALL 1
#cmakedefine HAVE_MMAP 1
#cmakedefine HAVE_MMAP64 1
#cmakedefine HAVE_PERROR 1
#cmakedefine HAVE_POLL 1
#cmakedefine HAVE_POSIX_FALLOCATE 1
188
#cmakedefine HAVE_LINUX_FALLOC_H 1
189
#cmakedefine HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE 1
190 191 192
#cmakedefine HAVE_PREAD 1
#cmakedefine HAVE_PAUSE_INSTRUCTION 1
#cmakedefine HAVE_FAKE_PAUSE_INSTRUCTION 1
Kent Boortz's avatar
Kent Boortz committed
193 194
#cmakedefine HAVE_RDTSCLL 1
#cmakedefine HAVE_READ_REAL_TIME 1
195
#cmakedefine HAVE_PTHREAD_ATTR_CREATE 1
196
#cmakedefine HAVE_PTHREAD_ATTR_GETGUARDSIZE 1
197 198 199 200 201 202 203 204 205 206
#cmakedefine HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
#cmakedefine HAVE_PTHREAD_ATTR_SETSCOPE 1
#cmakedefine HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
#cmakedefine HAVE_PTHREAD_CONDATTR_CREATE 1
#cmakedefine HAVE_PTHREAD_KEY_DELETE 1
#cmakedefine HAVE_PTHREAD_KILL 1
#cmakedefine HAVE_PTHREAD_RWLOCK_RDLOCK 1
#cmakedefine HAVE_PTHREAD_SIGMASK 1
#cmakedefine HAVE_PTHREAD_YIELD_NP 1
#cmakedefine HAVE_PTHREAD_YIELD_ZERO_ARG 1
207
#cmakedefine PTHREAD_ONCE_INITIALIZER @PTHREAD_ONCE_INITIALIZER@
208 209 210 211 212 213 214 215 216 217 218
#cmakedefine HAVE_PUTENV 1
#cmakedefine HAVE_READDIR_R 1
#cmakedefine HAVE_READLINK 1
#cmakedefine HAVE_REALPATH 1
#cmakedefine HAVE_RENAME 1
#cmakedefine HAVE_RINT 1
#cmakedefine HAVE_RWLOCK_INIT 1
#cmakedefine HAVE_SCHED_YIELD 1
#cmakedefine HAVE_SELECT 1
#cmakedefine HAVE_SETENV 1
#cmakedefine HAVE_SETLOCALE 1
219
#cmakedefine HAVE_SETUPTERM 1
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
#cmakedefine HAVE_SIGSET 1
#cmakedefine HAVE_SIGACTION 1
#cmakedefine HAVE_SIGTHREADMASK 1
#cmakedefine HAVE_SIGWAIT 1
#cmakedefine HAVE_SLEEP 1
#cmakedefine HAVE_SNPRINTF 1
#cmakedefine HAVE_STPCPY 1
#cmakedefine HAVE_STRERROR 1
#cmakedefine HAVE_STRCOLL 1
#cmakedefine HAVE_STRNLEN 1
#cmakedefine HAVE_STRPBRK 1
#cmakedefine HAVE_STRTOK_R 1
#cmakedefine HAVE_STRTOLL 1
#cmakedefine HAVE_STRTOUL 1
#cmakedefine HAVE_STRTOULL 1
#cmakedefine HAVE_TELL 1
#cmakedefine HAVE_THR_SETCONCURRENCY 1
#cmakedefine HAVE_THR_YIELD 1
Kent Boortz's avatar
Kent Boortz committed
238 239
#cmakedefine HAVE_TIME 1
#cmakedefine HAVE_TIMES 1
240
#cmakedefine HAVE_VIDATTR 1
241 242 243 244 245 246 247 248 249 250 251 252
#define HAVE_VIO_READ_BUFF 1
#cmakedefine HAVE_VASPRINTF 1
#cmakedefine HAVE_VSNPRINTF 1
#cmakedefine HAVE_FTRUNCATE 1
#cmakedefine HAVE_TZNAME 1
/* Symbols we may use */
#cmakedefine HAVE_SYS_ERRLIST 1
/* used by stacktrace functions */
#cmakedefine HAVE_BSS_START 1
#cmakedefine HAVE_BACKTRACE 1
#cmakedefine HAVE_BACKTRACE_SYMBOLS 1
#cmakedefine HAVE_BACKTRACE_SYMBOLS_FD 1
Vladislav Vaintroub's avatar
merge  
Vladislav Vaintroub committed
253
#cmakedefine HAVE_PRINTSTACK 1
254 255
#cmakedefine HAVE_IPV6 1
#cmakedefine ss_family @ss_family@
256 257
#cmakedefine HAVE_SOCKADDR_IN_SIN_LEN 1
#cmakedefine HAVE_SOCKADDR_IN6_SIN6_LEN 1
258 259
#cmakedefine STRUCT_TIMESPEC_HAS_TV_SEC 1
#cmakedefine STRUCT_TIMESPEC_HAS_TV_NSEC 1
260 261 262 263

#define USE_MB 1
#define USE_MB_IDENT 1

264
/* this means that valgrind headers and macros are available */
265
#cmakedefine HAVE_VALGRIND_MEMCHECK_H 1
266 267 268

/* this means WITH_VALGRIND - we change some code paths for valgrind */
#cmakedefine HAVE_valgrind 1
269 270

/* Types we may use */
271 272 273 274 275 276 277 278 279 280
#ifdef __APPLE__
  /*
    Special handling required for OSX to support universal binaries that 
    mix 32 and 64 bit architectures.
  */
  #if(__LP64__)
    #define SIZEOF_LONG 8
  #else
    #define SIZEOF_LONG 4
  #endif
Kent Boortz's avatar
Kent Boortz committed
281
  #define SIZEOF_VOIDP   SIZEOF_LONG
282 283 284
  #define SIZEOF_CHARP   SIZEOF_LONG
  #define SIZEOF_SIZE_T  SIZEOF_LONG
#else
Kent Boortz's avatar
Kent Boortz committed
285
/* No indentation, to fetch the lines from verification scripts */
Kent Boortz's avatar
Kent Boortz committed
286 287 288 289
#cmakedefine SIZEOF_LONG   @SIZEOF_LONG@
#cmakedefine SIZEOF_VOIDP  @SIZEOF_VOIDP@
#cmakedefine SIZEOF_CHARP  @SIZEOF_CHARP@
#cmakedefine SIZEOF_SIZE_T @SIZEOF_CHARP@
290 291
#endif

292 293
#define HAVE_LONG 1
#define HAVE_CHARP 1
294
#cmakedefine SIZEOF_INT @SIZEOF_INT@
295
#define HAVE_INT 1
296
#cmakedefine SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
Kent Boortz's avatar
Kent Boortz committed
297
#cmakedefine HAVE_LONG_LONG 1
298
#cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
Kent Boortz's avatar
Kent Boortz committed
299
#cmakedefine HAVE_OFF_T 1
300
#cmakedefine SIZEOF_UCHAR @SIZEOF_UCHAR@
Kent Boortz's avatar
Kent Boortz committed
301
#cmakedefine HAVE_UCHAR 1
302
#cmakedefine SIZEOF_UINT @SIZEOF_UINT@
Kent Boortz's avatar
Kent Boortz committed
303
#cmakedefine HAVE_UINT 1
304
#cmakedefine SIZEOF_ULONG @SIZEOF_ULONG@
Kent Boortz's avatar
Kent Boortz committed
305
#cmakedefine HAVE_ULONG 1
306
#cmakedefine SIZEOF_INT8 @SIZEOF_INT8@
Kent Boortz's avatar
Kent Boortz committed
307
#cmakedefine HAVE_INT8 1
308
#cmakedefine SIZEOF_UINT8 @SIZEOF_UINT8@
Kent Boortz's avatar
Kent Boortz committed
309
#cmakedefine HAVE_UINT8 1
310
#cmakedefine SIZEOF_INT16 @SIZEOF_INT16@
Kent Boortz's avatar
Kent Boortz committed
311
#cmakedefine HAVE_INT16 1
312
#cmakedefine SIZEOF_UINT16 @SIZEOF_UINT16@
Kent Boortz's avatar
Kent Boortz committed
313
#cmakedefine HAVE_UINT16 1
314
#cmakedefine SIZEOF_INT32 @SIZEOF_INT32@
Kent Boortz's avatar
Kent Boortz committed
315
#cmakedefine HAVE_INT32 1
316
#cmakedefine SIZEOF_UINT32 @SIZEOF_UINT32@
Kent Boortz's avatar
Kent Boortz committed
317
#cmakedefine HAVE_UINT32 1
318
#cmakedefine SIZEOF_INT64 @SIZEOF_INT64@
Kent Boortz's avatar
Kent Boortz committed
319
#cmakedefine HAVE_INT64 1
320
#cmakedefine SIZEOF_UINT64 @SIZEOF_UINT64@
Kent Boortz's avatar
Kent Boortz committed
321
#cmakedefine HAVE_UINT64 1
322 323 324

#cmakedefine SOCKET_SIZE_TYPE @SOCKET_SIZE_TYPE@

325
#cmakedefine HAVE_MBSTATE_T 1
326

327
#cmakedefine MAX_INDEXES @MAX_INDEXES@
328 329

#cmakedefine QSORT_TYPE_IS_VOID 1
Kent Boortz's avatar
Kent Boortz committed
330
#cmakedefine RETQSORTTYPE @RETQSORTTYPE@
331

Kent Boortz's avatar
Kent Boortz committed
332 333
#cmakedefine RETSIGTYPE @RETSIGTYPE@
#cmakedefine VOID_SIGHANDLER 1
334
#cmakedefine HAVE_SIGHANDLER_T 1
335 336
#define STRUCT_RLIMIT struct rlimit

337 338 339 340 341 342 343
#ifdef __APPLE__
  #if __BIG_ENDIAN
    #define WORDS_BIGENDIAN 1
  #endif
#else
#cmakedefine WORDS_BIGENDIAN 1 
#endif
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359

/* Define to `__inline__' or `__inline' if that's what the C compiler calls
   it, or to nothing if 'inline' is not supported under any name.  */
#cmakedefine C_HAS_inline 1
#if !(C_HAS_inline)
#ifndef __cplusplus
# define inline @C_INLINE@
#endif
#endif


#cmakedefine TARGET_OS_LINUX 1

#cmakedefine HAVE_WCTYPE_H 1
#cmakedefine HAVE_WCHAR_H 1
#cmakedefine HAVE_LANGINFO_H 1
360 361 362 363
#cmakedefine HAVE_MBRLEN 1
#cmakedefine HAVE_MBSRTOWCS 1
#cmakedefine HAVE_MBRTOWC 1
#cmakedefine HAVE_WCWIDTH 1
364 365 366 367 368 369 370 371 372 373 374 375 376
#cmakedefine HAVE_ISWLOWER 1
#cmakedefine HAVE_ISWUPPER 1
#cmakedefine HAVE_TOWLOWER 1
#cmakedefine HAVE_TOWUPPER 1
#cmakedefine HAVE_ISWCTYPE 1
#cmakedefine HAVE_WCHAR_T 1


#cmakedefine HAVE_STRCASECMP 1
#cmakedefine HAVE_TCGETATTR 1

#cmakedefine HAVE_WEAK_SYMBOL 1
#cmakedefine HAVE_ABI_CXA_DEMANGLE 1
377
#cmakedefine HAVE_ATTRIBUTE_CLEANUP 1
378 379 380 381 382 383

#cmakedefine HAVE_POSIX_SIGNALS 1
#cmakedefine HAVE_BSD_SIGNALS 1

#cmakedefine HAVE_SVR3_SIGNALS 1
#cmakedefine HAVE_V7_SIGNALS 1
384
#cmakedefine HAVE_ERR_remove_thread_state 1
385 386 387 388

#cmakedefine HAVE_SOLARIS_STYLE_GETHOST 1

#cmakedefine HAVE_GCC_ATOMIC_BUILTINS 1
389
#cmakedefine HAVE_GCC_C11_ATOMICS 1
390 391
#cmakedefine HAVE_SOLARIS_ATOMIC 1
#cmakedefine HAVE_DECL_SHM_HUGETLB 1
392
#cmakedefine HAVE_LINUX_LARGE_PAGES 1
393 394
#cmakedefine HUGETLB_USE_PROC_MEMINFO 1
#cmakedefine NO_FCNTL_NONBLOCK 1
Vladislav Vaintroub's avatar
merge  
Vladislav Vaintroub committed
395
#cmakedefine NO_ALARM 1
396 397 398 399 400 401 402 403 404 405 406

#cmakedefine _LARGE_FILES 1
#cmakedefine _LARGEFILE_SOURCE 1
#cmakedefine _LARGEFILE64_SOURCE 1

#cmakedefine TIME_WITH_SYS_TIME 1

#cmakedefine STACK_DIRECTION @STACK_DIRECTION@

#define SYSTEM_TYPE "@SYSTEM_TYPE@"
#define MACHINE_TYPE "@CMAKE_SYSTEM_PROCESSOR@"
407
#define DEFAULT_MACHINE "@DEFAULT_MACHINE@"
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
#cmakedefine HAVE_DTRACE 1

#cmakedefine SIGNAL_WITH_VIO_CLOSE 1

/* Windows stuff, mostly functions, that have Posix analogs but named differently */
#cmakedefine S_IROTH @S_IROTH@
#cmakedefine S_IFIFO @S_IFIFO@
#cmakedefine IPPROTO_IPV6 @IPPROTO_IPV6@
#cmakedefine IPV6_V6ONLY @IPV6_V6ONLY@
#cmakedefine sigset_t @sigset_t@
#cmakedefine mode_t @mode_t@
#cmakedefine SIGQUIT @SIGQUIT@
#cmakedefine SIGPIPE @SIGPIPE@
#cmakedefine popen @popen@
#cmakedefine pclose @pclose@
#cmakedefine ssize_t @ssize_t@
#cmakedefine strcasecmp @strcasecmp@
#cmakedefine strncasecmp @strncasecmp@
#cmakedefine snprintf @snprintf@
#cmakedefine strtok_r @strtok_r@
#cmakedefine strtoll @strtoll@
#cmakedefine strtoull @strtoull@
430
#cmakedefine vsnprintf @vsnprintf@
431
#if defined(_MSC_VER) && (_MSC_VER > 1800)
432 433 434
#define tzname _tzname
#define P_tmpdir "C:\\TEMP"
#endif
435
#if defined(_MSC_VER) && (_MSC_VER > 1310)
Kent Boortz's avatar
Kent Boortz committed
436
# define HAVE_SETENV
Vladislav Vaintroub's avatar
merge  
Vladislav Vaintroub committed
437 438
#define setenv(a,b,c) _putenv_s(a,b)
#endif
Sergei Golubchik's avatar
Sergei Golubchik committed
439
#define PSAPI_VERSION 1     /* for GetProcessMemoryInfo() */
440

Sergei Golubchik's avatar
Sergei Golubchik committed
441 442
/* We don't want the min/max macros */
#ifdef __WIN__
443
#define NOMINMAX 1
Sergei Golubchik's avatar
Sergei Golubchik committed
444 445
#endif

446 447 448 449 450 451
/*
  MySQL features
*/
#cmakedefine ENABLED_LOCAL_INFILE 1
#cmakedefine ENABLED_PROFILING 1
#cmakedefine EXTRA_DEBUG 1
452
#cmakedefine USE_SYMDIR 1
453 454

/* Character sets and collations */
455 456
#cmakedefine MYSQL_DEFAULT_CHARSET_NAME "@MYSQL_DEFAULT_CHARSET_NAME@"
#cmakedefine MYSQL_DEFAULT_COLLATION_NAME "@MYSQL_DEFAULT_COLLATION_NAME@"
457 458 459 460

#cmakedefine USE_MB 1
#cmakedefine USE_MB_IDENT 1

461 462 463
/* This should mean case insensitive file system */
#cmakedefine FN_NO_CASE_SENSE 1

464
#cmakedefine HAVE_CHARSET_armscii8 1
Kent Boortz's avatar
Kent Boortz committed
465
#cmakedefine HAVE_CHARSET_ascii 1
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
#cmakedefine HAVE_CHARSET_big5 1
#cmakedefine HAVE_CHARSET_cp1250 1
#cmakedefine HAVE_CHARSET_cp1251 1
#cmakedefine HAVE_CHARSET_cp1256 1
#cmakedefine HAVE_CHARSET_cp1257 1
#cmakedefine HAVE_CHARSET_cp850 1
#cmakedefine HAVE_CHARSET_cp852 1 
#cmakedefine HAVE_CHARSET_cp866 1
#cmakedefine HAVE_CHARSET_cp932 1
#cmakedefine HAVE_CHARSET_dec8 1
#cmakedefine HAVE_CHARSET_eucjpms 1
#cmakedefine HAVE_CHARSET_euckr 1
#cmakedefine HAVE_CHARSET_gb2312 1
#cmakedefine HAVE_CHARSET_gbk 1
#cmakedefine HAVE_CHARSET_geostd8 1
#cmakedefine HAVE_CHARSET_greek 1
#cmakedefine HAVE_CHARSET_hebrew 1
#cmakedefine HAVE_CHARSET_hp8 1
#cmakedefine HAVE_CHARSET_keybcs2 1
#cmakedefine HAVE_CHARSET_koi8r 1
#cmakedefine HAVE_CHARSET_koi8u 1
#cmakedefine HAVE_CHARSET_latin1 1
#cmakedefine HAVE_CHARSET_latin2 1
#cmakedefine HAVE_CHARSET_latin5 1
#cmakedefine HAVE_CHARSET_latin7 1
#cmakedefine HAVE_CHARSET_macce 1
#cmakedefine HAVE_CHARSET_macroman 1
#cmakedefine HAVE_CHARSET_sjis 1
#cmakedefine HAVE_CHARSET_swe7 1
#cmakedefine HAVE_CHARSET_tis620 1
#cmakedefine HAVE_CHARSET_ucs2 1
#cmakedefine HAVE_CHARSET_ujis 1
#cmakedefine HAVE_CHARSET_utf8mb4 1
#cmakedefine HAVE_CHARSET_utf8mb3 1
#cmakedefine HAVE_CHARSET_utf8 1
#cmakedefine HAVE_CHARSET_utf16 1
#cmakedefine HAVE_CHARSET_utf32 1
#cmakedefine HAVE_UCA_COLLATIONS 1
#cmakedefine HAVE_COMPRESS 1
505
#cmakedefine HAVE_EncryptAes128Ctr 1
506
#cmakedefine HAVE_EncryptAes128Gcm 1
507 508 509 510 511 512 513

/*
  Stuff that always need to be defined (compile breaks without it)
*/
#define HAVE_SPATIAL 1
#define HAVE_RTREE_KEYS 1
#define HAVE_QUERY_CACHE 1
Vladislav Vaintroub's avatar
Vladislav Vaintroub committed
514
#define BIG_TABLES 1
515 516 517 518 519

/*
  Important storage engines (those that really need define 
  WITH_<ENGINE>_STORAGE_ENGINE for the whole server)
*/
520
#cmakedefine WITH_INNOBASE_STORAGE_ENGINE 1
521 522
#cmakedefine WITH_PARTITION_STORAGE_ENGINE 1
#cmakedefine WITH_PERFSCHEMA_STORAGE_ENGINE 1
523 524
#cmakedefine WITH_ARIA_STORAGE_ENGINE 1
#cmakedefine USE_ARIA_FOR_TMP_TABLES 1
525 526 527 528 529 530

#cmakedefine DEFAULT_MYSQL_HOME "@DEFAULT_MYSQL_HOME@"
#cmakedefine SHAREDIR "@SHAREDIR@"
#cmakedefine DEFAULT_BASEDIR "@DEFAULT_BASEDIR@"
#cmakedefine MYSQL_DATADIR "@MYSQL_DATADIR@"
#cmakedefine DEFAULT_CHARSET_HOME "@DEFAULT_CHARSET_HOME@"
531 532
#cmakedefine PLUGINDIR "@PLUGINDIR@"
#cmakedefine DEFAULT_SYSCONFDIR "@DEFAULT_SYSCONFDIR@"
533
#cmakedefine DEFAULT_TMPDIR @DEFAULT_TMPDIR@
534

535 536
#cmakedefine SO_EXT "@CMAKE_SHARED_MODULE_SUFFIX@"

537 538
#define MYSQL_VERSION_MAJOR @MAJOR_VERSION@
#define MYSQL_VERSION_MINOR @MINOR_VERSION@
539 540
#define MYSQL_VERSION_PATCH @PATCH_VERSION@
#define MYSQL_VERSION_EXTRA "@EXTRA_VERSION@"
541

542 543 544 545 546 547 548 549 550
#define PACKAGE "mysql"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "MySQL Server"
#define PACKAGE_STRING "MySQL Server @VERSION@"
#define PACKAGE_TARNAME "mysql"
#define PACKAGE_VERSION "@VERSION@"
#define VERSION "@VERSION@"
#define PROTOCOL_VERSION 10

551
#define MALLOC_LIBRARY "@MALLOC_LIBRARY@"
552

Georgi Kodinov's avatar
merge  
Georgi Kodinov committed
553 554 555 556 557
/* time_t related defines */

#cmakedefine SIZEOF_TIME_T @SIZEOF_TIME_T@
#cmakedefine TIME_T_UNSIGNED @TIME_T_UNSIGNED@

558 559 560 561 562 563
#ifndef EMBEDDED_LIBRARY
#cmakedefine WSREP_INTERFACE_VERSION "@WSREP_INTERFACE_VERSION@"
#cmakedefine WITH_WSREP 1
#cmakedefine WSREP_PROC_INFO 1
#endif

564 565 566 567 568 569 570 571
#ifdef _AIX
/*
  AIX includes inttypes.h from sys/types.h
  Explicitly request format macros before the first inclusion of inttypes.h
*/
#define __STDC_FORMAT_MACROS
#endif

572
#endif