-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.in.cmake
544 lines (404 loc) · 16.5 KB
/
config.h.in.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#cmakedefine AC_APPLE_UNIVERSAL_BUILD
/* directory separator(s) as a character or string literal */
#cmakedefine DIR_SEPS @DIR_SEPS@
/* directory separator(s) as an initialiser list */
#cmakedefine DIR_SEPS_LIST @DIR_SEPS_LIST@
/* Define to use flock() for flint-compatible locking */
#cmakedefine FLINTLOCK_USE_FLOCK
/* Define if ftime returns void */
#cmakedefine FTIME_RETURNS_VOID
/* Define to 1 if you have the `clock_gettime' function. */
#cmakedefine HAVE_CLOCK_GETTIME
/* Define to 1 if you have the `closefrom' function. */
#cmakedefine HAVE_CLOSEFROM
/* define if the compiler supports basic C++11 syntax */
#cmakedefine HAVE_CXX11
/* Define to 1 if you have the <cxxabi.h> header file. */
#cmakedefine HAVE_CXXABI_H
/* Define to 1 if you have the declaration of `exp10(double)', and to 0 if you
don't. */
#cmakedefine HAVE_DECL_EXP10
/* Define to 1 if you have the declaration of `log2(double)', and to 0 if you
don't. */
#cmakedefine HAVE_DECL_LOG2
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
don't. */
#cmakedefine HAVE_DECL_STRERROR_R
/* Define to 1 if you have the declaration of `_byteswap_ulong', and to 0 if
you don't. */
#cmakedefine HAVE_DECL__BYTESWAP_ULONG
/* Define to 1 if you have the declaration of `_byteswap_ushort', and to 0 if
you don't. */
#cmakedefine HAVE_DECL__BYTESWAP_USHORT
/* Define to 1 if you have the declaration of `_putenv_s(const char *,const
char *)', and to 0 if you don't. */
#cmakedefine HAVE_DECL__PUTENV_S
/* Define to 1 if you have the declaration of `__builtin_add_overflow(int,
int, int*)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_ADD_OVERFLOW
/* Define to 1 if you have the declaration of `__builtin_bswap16(uint16_t)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_BSWAP16
/* Define to 1 if you have the declaration of `__builtin_bswap32(uint32_t)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_BSWAP32
/* Define to 1 if you have the declaration of `__builtin_clz(unsigned)', and
to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CLZ
/* Define to 1 if you have the declaration of `__builtin_clzl(unsigned long)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CLZL
/* Define to 1 if you have the declaration of `__builtin_clzll(unsigned long
long)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CLZLL
/* Define to 1 if you have the declaration of `__builtin_ctz(unsigned)', and
to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CTZ
/* Define to 1 if you have the declaration of `__builtin_ctzl(unsigned long)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CTZL
/* Define to 1 if you have the declaration of `__builtin_ctzll(unsigned long
long)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_CTZLL
/* Define to 1 if you have the declaration of `__builtin_expect(long, long)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_EXPECT
/* Define to 1 if you have the declaration of `__builtin_mul_overflow(int,
int, int*)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_MUL_OVERFLOW
/* Define to 1 if you have the declaration of `__builtin_popcount(unsigned)',
and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_POPCOUNT
/* Define to 1 if you have the declaration of `__builtin_popcountl(unsigned
long)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_POPCOUNTL
/* Define to 1 if you have the declaration of `__builtin_popcountll(unsigned
long long)', and to 0 if you don't. */
#cmakedefine HAVE_DECL___BUILTIN_POPCOUNTLL
/* Define to 1 if you have the declaration of `__exp10(double)', and to 0 if
you don't. */
#cmakedefine HAVE_DECL___EXP10
/* Define to 1 if you have the declaration of `__popcnt', and to 0 if you
don't. */
#cmakedefine HAVE_DECL___POPCNT
/* Define to 1 if you have the declaration of `__popcnt64', and to 0 if you
don't. */
#cmakedefine HAVE_DECL___POPCNT64
/* Define to 1 if you have the <dlfcn.h> header file. */
#cmakedefine HAVE_DLFCN_H
/* Define to 1 if you have the <fcntl.h> header file. */
#cmakedefine HAVE_FCNTL_H
/* Define to 1 if you have the `fdatasync' function. */
#cmakedefine HAVE_FDATASYNC
/* Define to 1 if you have the `fork' function. */
#cmakedefine HAVE_FORK
/* Define to 1 if you have the `fsync' function. */
#cmakedefine HAVE_FSYNC
/* Define to 1 if you have the `ftime' function. */
#cmakedefine HAVE_FTIME
/* Define to 1 if you have the `ftruncate' function. */
#cmakedefine HAVE_FTRUNCATE
/* Define to 1 if you have the `getdirentries' function. */
#cmakedefine HAVE_GETDIRENTRIES
/* Define to 1 if you have the `gethostname' function. */
#cmakedefine HAVE_GETHOSTNAME
/* Define to 1 if you have the `getrlimit' function. */
#cmakedefine HAVE_GETRLIMIT
/* Define to 1 if you have the `getrusage' function. */
#cmakedefine HAVE_GETRUSAGE
/* Define to 1 if you have the `gettimeofday' function. */
#cmakedefine HAVE_GETTIMEOFDAY
/* Define to 1 if you have the <inttypes.h> header file. */
#cmakedefine HAVE_INTTYPES_H
/* Define to 1 if you have the <limits.h> header file. */
#cmakedefine HAVE_LIMITS_H
/* Define to 1 if you have the `link' function. */
#cmakedefine HAVE_LINK
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H
/* Define to 1 if you have the `nanosleep' function. */
#cmakedefine HAVE_NANOSLEEP
/* Define to 1 if you have the `nftw' function. */
#cmakedefine HAVE_NFTW
/* Define to 1 if you have the `posix_fadvise' function. */
#cmakedefine HAVE_POSIX_FADVISE
/* Define if pread is available on this system */
#cmakedefine HAVE_PREAD
/* Define if pwrite is available on this system */
#cmakedefine HAVE_PWRITE
/* Define to 1 if you have the `random' function. */
#cmakedefine HAVE_RANDOM
/* Define to 1 if you have the `setenv' function. */
#cmakedefine HAVE_SETENV
/* Define to 1 if you have the `sigaction' function. */
#cmakedefine HAVE_SIGACTION
/* Define to 1 if you have the 'sigsetjmp' function */
#cmakedefine HAVE_SIGSETJMP
/* Define to 1 if you have the `sleep' function. */
#cmakedefine HAVE_SLEEP
/* Define to 1 if you have the 'socketpair' function. */
#cmakedefine HAVE_SOCKETPAIR
/* Define to 1 if you have the `srandom' function. */
#cmakedefine HAVE_SRANDOM
/* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine HAVE_STDLIB_H
/* Define to 1 if you have the `strerror_r' function. */
#cmakedefine HAVE_STRERROR_R
/* Define to 1 if you have the <strings.h> header file. */
#cmakedefine HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H
/* Define to 1 if you have the `sysconf' function. */
#cmakedefine HAVE_SYSCONF
/* Define if you have 'sys_errlist' and 'sys_nerr' */
#cmakedefine HAVE_SYS_ERRLIST_AND_SYS_NERR
/* Define to 1 if you have the <sys/errno.h> header file. */
#cmakedefine HAVE_SYS_ERRNO_H
/* Define to 1 if you have the <sys/resource.h> header file. */
#cmakedefine HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/select.h> header file. */
#cmakedefine HAVE_SYS_SELECT_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#cmakedefine HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#cmakedefine HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/utsname.h> header file. */
#cmakedefine HAVE_SYS_UTSNAME_H
/* Define to 1 if you have the 'timer_create' function. */
#cmakedefine HAVE_TIMER_CREATE
/* Define to 1 if you have the `times' function. */
#cmakedefine HAVE_TIMES
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H
/* Define to 1 if you have the <uuid.h> header file. */
#cmakedefine HAVE_UUID_H
/* Define to 1 if you have the <uuid/uuid.h> header file. */
#cmakedefine HAVE_UUID_UUID_H
/* Define if a suitable valgrind is installed */
#cmakedefine HAVE_VALGRIND
/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
#cmakedefine HAVE_VALGRIND_MEMCHECK_H
/* Define to 1 if you have the <zlib.h> header file. */
#cmakedefine HAVE_ZLIB_H
/* Define if you have '_sys_errlist' and '_sys_nerr' */
#cmakedefine HAVE__SYS_ERRLIST_AND__SYS_NERR
/* Define to 1 if you have the '__builtin_exp10' function. */
#cmakedefine HAVE___BUILTIN_EXP10
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#cmakedefine LT_OBJDIR
/* Define on mingw to get _s suffixed "secure" functions declared in headers
*/
#cmakedefine MINGW_HAS_SECURE_API
/* Name of package */
#cmakedefine PACKAGE @PACKAGE@
/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@
/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME @PACKAGE_NAME@
/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING @PACKAGE_STRING@
/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@
/* Define to the home page for this package. */
#cmakedefine PACKAGE_URL @PACKAGE_URL@
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
/* explicit prototype needed for pread (if any) */
#cmakedefine PREAD_PROTOTYPE
/* explicit prototype needed for pwrite (if any) */
#cmakedefine PWRITE_PROTOTYPE
/* The size of `int', as computed by sizeof. */
#cmakedefine SIZEOF_INT @SIZEOF_INT@
/* The size of `long', as computed by sizeof. */
#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
/* The size of `long long', as computed by sizeof. */
#cmakedefine SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
/* The size of `short', as computed by sizeof. */
#cmakedefine SIZEOF_SHORT @SIZEOF_SHORT@
/* Define to the name of a function implementing snprintf but not caring about
ISO C99 return value semantics (if one exists) */
#cmakedefine SNPRINTF
/* Define to the name of a function implementing snprintf with ISO C99
semantics (if one exists) */
#cmakedefine SNPRINTF_ISO
/* type to use for 5th parameter to getsockopt */
#cmakedefine SOCKLEN_T @SOCKLEN_T@
/* Define to 1 if you have the ANSI C header files. */
#cmakedefine STDC_HEADERS
/* Define to 1 if strerror_r returns char *. */
#cmakedefine STRERROR_R_CHAR_P
/* Define to 1 to read UUID from '/proc/sys/kernel/random/uuid' */
#cmakedefine USE_PROC_FOR_UUID
/* Define if the testsuite can use RTTI */
#cmakedefine USE_RTTI
/* Define to 1 to use UuidCreate(), etc */
#cmakedefine USE_WIN32_UUID_API 1
/* Version number of package */
#cmakedefine VERSION
/* Version of Windows to assume (0x600 => Vista). */
#cmakedefine WINVER
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* Define if you want assertions (causes some slow-down) */
#cmakedefine XAPIAN_ASSERTIONS
/* Define if you want paranoid assertions (causes significant slow-down) */
#cmakedefine XAPIAN_ASSERTIONS_PARANOID
/* Define if you want a log of methods called and other debug messages */
#cmakedefine XAPIAN_DEBUG_LOG
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#cmakedefine _FILE_OFFSET_BITS
/* Define for large files, on AIX-style hosts. */
#cmakedefine _LARGE_FILES
/* Version of Windows to assume. */
#cmakedefine _WIN32_WINNT
/* Define on mingw to the minimum msvcrt version to assume */
#cmakedefine __MSVCRT_VERSION__
/* Define to `int' if <sys/types.h> does not define. */
#cmakedefine mode_t
/* Define to `int' if <sys/types.h> does not define. */
#cmakedefine pid_t
/* Define to `int' if <sys/types.h> does not define. */
#cmakedefine ssize_t
/* Disable stupid MSVC warnings. */
#ifdef _MSC_VER
/* Passing an empty parameter to a single parameter macro. */
# pragma warning(disable:4003)
/* A "performance" warning for converting int to bool. */
# pragma warning(disable:4800)
// converting from longer type to smaller, possible loss of data. More like guaranteed, but people write stupid code
#pragma warning(disable:4244 4267)
// conditional expression is constant
#pragma warning(disable:4127)
// unreachable code
#pragma warning(disable:4702)
// cast truncase constant value
#pragma warning(disable:4310)
// assignment within conditional expression
#pragma warning(disable:4706)
// unary minus applied to unsigned
#pragma warning(disable:4146)
/* Tell MSVC we want M_PI, etc defined. */
#ifndef _USE_MATH_DEFINES
# define _USE_MATH_DEFINES
#endif
/* Tell MSVC we don't want max() and min() macros defined. */
#ifndef NOMINMAX
# define NOMINMAX
#endif
#endif
/* Make the POSIX-like functions support large files. MSVC needs this;
* current mingw32 does too; mingw64 supports _FILE_OFFSET_BITS, which
* AC_SYS_LARGEFILE should discover and enable automatically.
*/
#if defined _MSC_VER || \
(defined __MINGW32__ && !defined _FILE_OFFSET_BITS)
# include <sys/stat.h>
# include <sys/types.h>
# include <io.h>
/* zlib.h uses off_t so we need to include it before we redefine off_t. */
# include <zlib.h>
// MSVC needs to call _stat64() instead of stat() and the struct which holds
// the information is "struct _stat64" instead of "struct stat" so we just
// use #define to replace both in one go. We also want to use _fstat64()
// instead of fstat() but in this case we can use a function-like macro.
//
// Mingw has _stat64() but unhelpfully for our purposes, it has an extra
// underscore prefix on the struct name ("struct __stat64") so there we
// target _stati64 instead. This has 64-bit file size but the time_t size
// is switchable. We don't really care about file timestamps in the
// library, so this should be fine.
//
// This hack is a problem is we ever want a method called "stat", or one called
// fstat which takes 2 parameters, but we can probably live with these
// limitations.
# ifdef stat
# undef stat
# endif
# ifdef fstat
# undef fstat
# endif
# ifdef _MSC_VER
# define stat _stat64
# define fstat(FD, BUF) _fstat64(FD, BUF)
# else
# define stat _stati64
# define fstat(FD, BUF) _fstati64(FD, BUF)
# endif
# ifdef lseek
# undef lseek
# endif
# ifdef off_t
# undef off_t
# endif
# define lseek(FD, OFF, WHENCE) _lseeki64(FD, OFF, WHENCE)
/* Redefine via a typedef so C++ code off_t(-1) works - it wouldn't if we did:
* #define off_t long long
*/
typedef long long off_t_redefinition_typedef;
# define off_t off_t_redefinition_typedef
typedef int mode_t;
#endif
/* MSVC defines _WIN32 but not __WIN32__. */
#if !defined __WIN32__ && defined _WIN32
# define __WIN32__
#endif
/* MSVC defines _WIN64 but not __WIN64__. */
#if !defined __WIN64__ && defined _WIN64
# define __WIN64__
#endif
/* _FORTIFY_SOURCE is only supported by GCC >= 4.1 and glibc >= 2.3.4, but it
* shouldn't cause a problem to define it where it's not supported and some
* distros may have backported support, so hardcoding version checks is
* counter-productive.
*
* Check if _FORTIFY_SOURCE is already defined to allow the user to override
* our choice with "./configure CPPFLAGS=-D_FORTIFY_SOURCE=0" or "...=1".
*/
#if defined __GNUC__ && !defined _FORTIFY_SOURCE
# define _FORTIFY_SOURCE 2
#endif
/* For compilers which support it (such as GCC, clang, Intel's C++ compiler)
* we can use __builtin_expect to give the compiler hints about branch
* prediction. See HACKING for how to use these.
*/
#if HAVE_DECL___BUILTIN_EXPECT
/* The arguments of __builtin_expect() are both long, so use !! to ensure that
* the first argument is always an integer expression, and always 0 or 1, but
* still has the same truth value for the if or while it is used in.
*/
# define rare(COND) __builtin_expect(!!(COND), 0)
# define usual(COND) __builtin_expect(!!(COND), 1)
#else
# define rare(COND) (COND)
# define usual(COND) (COND)
#endif
/* Signal we're building the library so it's OK to include headers such as
* xapian/query.h directly.
*/
#define XAPIAN_LIB_BUILD 1
/* With Sun CC 5.13 (Studio 12.4) on Solaris 11.2, <math.h> seems to get
* implicitly included somehow before <cmath>, and compilation fails due
* to 'std::exception' colliding with 'struct exception'. It's not clear
* how to avoid this, so just define the same magic macro which <cmath> does
* before it includes <math.h>.
*/
#ifdef __SUNPRO_CC
# define __MATHERR_RENAME_EXCEPTION
#endif