xapian-core  1.4.22
config.h
Go to the documentation of this file.
1 /* config.h. Generated from config.h.in by configure. */
2 /* config.h.in. Generated from configure.ac by autoheader. */
3 
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6 
7 /* directory separator(s) as a character or string literal */
8 #define DIR_SEPS '/'
9 
10 /* directory separator(s) as an initialiser list */
11 #define DIR_SEPS_LIST { '/' }
12 
13 /* Define to use flock() for flint-compatible locking */
14 /* #undef FLINTLOCK_USE_FLOCK */
15 
16 /* Define if ftime returns void */
17 /* #undef FTIME_RETURNS_VOID */
18 
19 /* Define to 1 if you have the `clock_gettime' function. */
20 #define HAVE_CLOCK_GETTIME 1
21 
22 /* Define to 1 if you have the `closefrom' function. */
23 /* #undef HAVE_CLOSEFROM */
24 
25 /* define if the compiler supports basic C++11 syntax */
26 #define HAVE_CXX11 1
27 
28 /* Define to 1 if you have the <cxxabi.h> header file. */
29 #define HAVE_CXXABI_H 1
30 
31 /* Define to 1 if you have the declaration of `exp10(double)', and to 0 if you
32  don't. */
33 #define HAVE_DECL_EXP10 1
34 
35 /* Define to 1 if you have the declaration of `log2(double)', and to 0 if you
36  don't. */
37 #define HAVE_DECL_LOG2 1
38 
39 /* Define to 1 if you have the declaration of `siglongjmp', and to 0 if you
40  don't. */
41 #define HAVE_DECL_SIGLONGJMP 1
42 
43 /* Define to 1 if you have the declaration of `sigsetjmp', and to 0 if you
44  don't. */
45 #define HAVE_DECL_SIGSETJMP 1
46 
47 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
48  don't. */
49 #define HAVE_DECL_STRERROR_R 1
50 
51 /* Define to 1 if you have the declaration of `_addcarry_u32(unsigned char,
52  unsigned, unsigned, unsigned*)', and to 0 if you don't. */
53 #define HAVE_DECL__ADDCARRY_U32 0
54 
55 /* Define to 1 if you have the declaration of `_addcarry_u64(unsigned char,
56  unsigned __int64, unsigned __int64, unsigned __int64*)', and to 0 if you
57  don't. */
58 #define HAVE_DECL__ADDCARRY_U64 0
59 
60 /* Define to 1 if you have the declaration of `_byteswap_uint64', and to 0 if
61  you don't. */
62 #define HAVE_DECL__BYTESWAP_UINT64 0
63 
64 /* Define to 1 if you have the declaration of `_byteswap_ulong', and to 0 if
65  you don't. */
66 #define HAVE_DECL__BYTESWAP_ULONG 0
67 
68 /* Define to 1 if you have the declaration of `_byteswap_ushort', and to 0 if
69  you don't. */
70 #define HAVE_DECL__BYTESWAP_USHORT 0
71 
72 /* Define to 1 if you have the declaration of `_putenv_s(const char*, const
73  char*)', and to 0 if you don't. */
74 #define HAVE_DECL__PUTENV_S 0
75 
76 /* Define to 1 if you have the declaration of `_subborrow_u32(unsigned char,
77  unsigned, unsigned, unsigned*)', and to 0 if you don't. */
78 #define HAVE_DECL__SUBBORROW_U32 0
79 
80 /* Define to 1 if you have the declaration of `_subborrow_u64(unsigned char,
81  unsigned __int64, unsigned __int64, unsigned __int64*)', and to 0 if you
82  don't. */
83 #define HAVE_DECL__SUBBORROW_U64 0
84 
85 /* Define to 1 if you have the declaration of `__builtin_add_overflow(int,
86  int, int*)', and to 0 if you don't. */
87 #define HAVE_DECL___BUILTIN_ADD_OVERFLOW 1
88 
89 /* Define to 1 if you have the declaration of `__builtin_bswap16(uint16_t)',
90  and to 0 if you don't. */
91 #define HAVE_DECL___BUILTIN_BSWAP16 1
92 
93 /* Define to 1 if you have the declaration of `__builtin_bswap32(uint32_t)',
94  and to 0 if you don't. */
95 #define HAVE_DECL___BUILTIN_BSWAP32 1
96 
97 /* Define to 1 if you have the declaration of `__builtin_bswap64(uint64_t)',
98  and to 0 if you don't. */
99 #define HAVE_DECL___BUILTIN_BSWAP64 1
100 
101 /* Define to 1 if you have the declaration of `__builtin_clz(unsigned)', and
102  to 0 if you don't. */
103 #define HAVE_DECL___BUILTIN_CLZ 1
104 
105 /* Define to 1 if you have the declaration of `__builtin_clzl(unsigned long)',
106  and to 0 if you don't. */
107 #define HAVE_DECL___BUILTIN_CLZL 1
108 
109 /* Define to 1 if you have the declaration of `__builtin_clzll(unsigned long
110  long)', and to 0 if you don't. */
111 #define HAVE_DECL___BUILTIN_CLZLL 1
112 
113 /* Define to 1 if you have the declaration of `__builtin_ctz(unsigned)', and
114  to 0 if you don't. */
115 #define HAVE_DECL___BUILTIN_CTZ 1
116 
117 /* Define to 1 if you have the declaration of `__builtin_ctzl(unsigned long)',
118  and to 0 if you don't. */
119 #define HAVE_DECL___BUILTIN_CTZL 1
120 
121 /* Define to 1 if you have the declaration of `__builtin_ctzll(unsigned long
122  long)', and to 0 if you don't. */
123 #define HAVE_DECL___BUILTIN_CTZLL 1
124 
125 /* Define to 1 if you have the declaration of `__builtin_expect(long, long)',
126  and to 0 if you don't. */
127 #define HAVE_DECL___BUILTIN_EXPECT 1
128 
129 /* Define to 1 if you have the declaration of `__builtin_mul_overflow(int,
130  int, int*)', and to 0 if you don't. */
131 #define HAVE_DECL___BUILTIN_MUL_OVERFLOW 1
132 
133 /* Define to 1 if you have the declaration of `__builtin_popcount(unsigned)',
134  and to 0 if you don't. */
135 #define HAVE_DECL___BUILTIN_POPCOUNT 1
136 
137 /* Define to 1 if you have the declaration of `__builtin_popcountl(unsigned
138  long)', and to 0 if you don't. */
139 #define HAVE_DECL___BUILTIN_POPCOUNTL 1
140 
141 /* Define to 1 if you have the declaration of `__builtin_popcountll(unsigned
142  long long)', and to 0 if you don't. */
143 #define HAVE_DECL___BUILTIN_POPCOUNTLL 1
144 
145 /* Define to 1 if you have the declaration of `__builtin_sub_overflow(int,
146  int, int*)', and to 0 if you don't. */
147 #define HAVE_DECL___BUILTIN_SUB_OVERFLOW 1
148 
149 /* Define to 1 if you have the declaration of `__exp10(double)', and to 0 if
150  you don't. */
151 #define HAVE_DECL___EXP10 1
152 
153 /* Define to 1 if you have the declaration of `__popcnt', and to 0 if you
154  don't. */
155 #define HAVE_DECL___POPCNT 0
156 
157 /* Define to 1 if you have the declaration of `__popcnt64', and to 0 if you
158  don't. */
159 #define HAVE_DECL___POPCNT64 0
160 
161 /* Define to 1 if you have the <dlfcn.h> header file. */
162 #define HAVE_DLFCN_H 1
163 
164 /* Define to 1 if you have the <fcntl.h> header file. */
165 #define HAVE_FCNTL_H 1
166 
167 /* Define to 1 if you have the `fdatasync' function. */
168 #define HAVE_FDATASYNC 1
169 
170 /* Define to 1 if you have the `fork' function. */
171 #define HAVE_FORK 1
172 
173 /* Define to 1 if you have the `fsync' function. */
174 #define HAVE_FSYNC 1
175 
176 /* Define to 1 if you have the `ftime' function. */
177 #define HAVE_FTIME 1
178 
179 /* Define to 1 if you have the `ftruncate' function. */
180 #define HAVE_FTRUNCATE 1
181 
182 /* Define to 1 if you have the `getdirentries' function. */
183 #define HAVE_GETDIRENTRIES 1
184 
185 /* Define to 1 if you have the `gethostname' function. */
186 #define HAVE_GETHOSTNAME 1
187 
188 /* Define to 1 if you have the `getrlimit' function. */
189 #define HAVE_GETRLIMIT 1
190 
191 /* Define to 1 if you have the `getrusage' function. */
192 #define HAVE_GETRUSAGE 1
193 
194 /* Define to 1 if you have the `gettimeofday' function. */
195 #define HAVE_GETTIMEOFDAY 1
196 
197 /* Define to 1 if you have the <inttypes.h> header file. */
198 #define HAVE_INTTYPES_H 1
199 
200 /* Define to 1 if you have the <limits.h> header file. */
201 #define HAVE_LIMITS_H 1
202 
203 /* Define to 1 if you have the `link' function. */
204 #define HAVE_LINK 1
205 
206 /* Define to 1 if you have the `nanosleep' function. */
207 #define HAVE_NANOSLEEP 1
208 
209 /* Define to 1 if you have the `nftw' function. */
210 #define HAVE_NFTW 1
211 
212 /* Define to 1 if you have the `poll' function. */
213 #define HAVE_POLL 1
214 
215 /* Define to 1 if you have the <poll.h> header file. */
216 #define HAVE_POLL_H 1
217 
218 /* Define to 1 if you have the `posix_fadvise' function. */
219 #define HAVE_POSIX_FADVISE 1
220 
221 /* Define if pread is available on this system */
222 #define HAVE_PREAD 1
223 
224 /* Define if pwrite is available on this system */
225 #define HAVE_PWRITE 1
226 
227 /* Define to 1 if you have the `random' function. */
228 #define HAVE_RANDOM 1
229 
230 /* Define to 1 if you have the `setenv' function. */
231 #define HAVE_SETENV 1
232 
233 /* Define to 1 if you have the `sigaction' function. */
234 #define HAVE_SIGACTION 1
235 
236 /* Define to 1 if you have the `sleep' function. */
237 #define HAVE_SLEEP 1
238 
239 /* Define to 1 if you have the 'socketpair' function. */
240 #define HAVE_SOCKETPAIR 1
241 
242 /* Define to 1 if you have the `srandom' function. */
243 #define HAVE_SRANDOM 1
244 
245 /* Define to 1 if you have the <stdint.h> header file. */
246 #define HAVE_STDINT_H 1
247 
248 /* Define to 1 if you have the <stdio.h> header file. */
249 #define HAVE_STDIO_H 1
250 
251 /* Define to 1 if you have the <stdlib.h> header file. */
252 #define HAVE_STDLIB_H 1
253 
254 /* Define to 1 if you have the `strerrordesc_np' function. */
255 /* #undef HAVE_STRERRORDESC_NP */
256 
257 /* Define if you have `strerror_r'. */
258 #define HAVE_STRERROR_R 1
259 
260 /* Define to 1 if you have the <strings.h> header file. */
261 #define HAVE_STRINGS_H 1
262 
263 /* Define to 1 if you have the <string.h> header file. */
264 #define HAVE_STRING_H 1
265 
266 /* Define to 1 if you have the `sysconf' function. */
267 #define HAVE_SYSCONF 1
268 
269 /* Define if you have 'sys_errlist' and 'sys_nerr' */
270 #define HAVE_SYS_ERRLIST_AND_SYS_NERR 1
271 
272 /* Define to 1 if you have the <sys/resource.h> header file. */
273 #define HAVE_SYS_RESOURCE_H 1
274 
275 /* Define to 1 if you have the <sys/select.h> header file. */
276 #define HAVE_SYS_SELECT_H 1
277 
278 /* Define to 1 if you have the <sys/stat.h> header file. */
279 #define HAVE_SYS_STAT_H 1
280 
281 /* Define to 1 if you have the <sys/types.h> header file. */
282 #define HAVE_SYS_TYPES_H 1
283 
284 /* Define to 1 if you have the <sys/utsname.h> header file. */
285 #define HAVE_SYS_UTSNAME_H 1
286 
287 /* Define to 1 if you have the 'timer_create' function. */
288 #define HAVE_TIMER_CREATE 1
289 
290 /* Define to 1 if you have the `times' function. */
291 #define HAVE_TIMES 1
292 
293 /* Define to 1 if you have the <unistd.h> header file. */
294 #define HAVE_UNISTD_H 1
295 
296 /* Define to 1 if you have the <uuid.h> header file. */
297 /* #undef HAVE_UUID_H */
298 
299 /* Define to 1 if you have the <uuid/uuid.h> header file. */
300 #define HAVE_UUID_UUID_H 1
301 
302 /* Define if a suitable valgrind is installed */
303 #define HAVE_VALGRIND 1
304 
305 /* Define to 1 if you have the <valgrind/memcheck.h> header file. */
306 #define HAVE_VALGRIND_MEMCHECK_H 1
307 
308 /* Define to 1 if you have the <zlib.h> header file. */
309 #define HAVE_ZLIB_H 1
310 
311 /* Define to 1 if you have the `_putenv_s' function. */
312 /* #undef HAVE__PUTENV_S */
313 
314 /* Define if you have '_sys_errlist' and '_sys_nerr' */
315 #define HAVE__SYS_ERRLIST_AND__SYS_NERR 1
316 
317 /* Define to 1 if you have the '__builtin_exp10' function. */
318 #define HAVE___BUILTIN_EXP10 1
319 
320 /* Define to the sub-directory where libtool stores uninstalled libraries. */
321 #define LT_OBJDIR ".libs/"
322 
323 /* Define on mingw to get _s suffixed "secure" functions declared in headers
324  */
325 /* #undef MINGW_HAS_SECURE_API */
326 
327 /* Name of package */
328 #define PACKAGE "xapian-core"
329 
330 /* Define to the address where bug reports for this package should be sent. */
331 #define PACKAGE_BUGREPORT "https://xapian.org/bugs"
332 
333 /* Define to the full name of this package. */
334 #define PACKAGE_NAME "xapian-core"
335 
336 /* Define to the full name and version of this package. */
337 #define PACKAGE_STRING "xapian-core 1.4.22"
338 
339 /* Define to the one symbol short name of this package. */
340 #define PACKAGE_TARNAME "xapian-core"
341 
342 /* Define to the home page for this package. */
343 #define PACKAGE_URL ""
344 
345 /* Define to the version of this package. */
346 #define PACKAGE_VERSION "1.4.22"
347 
348 /* explicit prototype needed for pread (if any) */
349 /* #undef PREAD_PROTOTYPE */
350 
351 /* explicit prototype needed for pwrite (if any) */
352 /* #undef PWRITE_PROTOTYPE */
353 
354 /* The size of `int', as computed by sizeof. */
355 #define SIZEOF_INT 4
356 
357 /* The size of `long', as computed by sizeof. */
358 #define SIZEOF_LONG 8
359 
360 /* The size of `long long', as computed by sizeof. */
361 #define SIZEOF_LONG_LONG 8
362 
363 /* The size of `short', as computed by sizeof. */
364 #define SIZEOF_SHORT 2
365 
366 /* Define to the name of a function implementing snprintf but not caring about
367  ISO C99 return value semantics (if one exists) */
368 #define SNPRINTF snprintf
369 
370 /* type to use for 5th parameter to getsockopt */
371 #define SOCKLEN_T socklen_t
372 
373 /* Define to 1 if all of the C90 standard headers exist (not just the ones
374  required in a freestanding environment). This macro is provided for
375  backward compatibility; new code need not use it. */
376 #define STDC_HEADERS 1
377 
378 /* Define to 1 if strerror_r returns char *. */
379 #define STRERROR_R_CHAR_P 1
380 
381 /* Define to 1 to read UUID from '/proc/sys/kernel/random/uuid' */
382 /* #undef USE_PROC_FOR_UUID */
383 
384 /* Define if the testsuite can use RTTI */
385 #define USE_RTTI 1
386 
387 /* Define to 1 to use UuidCreate(), etc */
388 /* #undef USE_WIN32_UUID_API */
389 
390 /* Version number of package */
391 #define VERSION "1.4.22"
392 
393 /* Version of Windows to assume (0x600 => Vista). */
394 /* #undef WINVER */
395 
396 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
397  significant byte first (like Motorola and SPARC, unlike Intel). */
398 #if defined AC_APPLE_UNIVERSAL_BUILD
399 # if defined __BIG_ENDIAN__
400 # define WORDS_BIGENDIAN 1
401 # endif
402 #else
403 # ifndef WORDS_BIGENDIAN
404 /* # undef WORDS_BIGENDIAN */
405 # endif
406 #endif
407 
408 /* Define if you want assertions (causes some slow-down) */
409 /* #undef XAPIAN_ASSERTIONS */
410 
411 /* Define if you want paranoid assertions (causes significant slow-down) */
412 /* #undef XAPIAN_ASSERTIONS_PARANOID */
413 
414 /* Define if you want a log of methods called and other debug messages */
415 /* #undef XAPIAN_DEBUG_LOG */
416 
417 /* Number of bits in a file offset, on hosts where this is settable. */
418 /* #undef _FILE_OFFSET_BITS */
419 
420 /* Define for large files, on AIX-style hosts. */
421 /* #undef _LARGE_FILES */
422 
423 /* Version of Windows to assume. */
424 /* #undef _WIN32_WINNT */
425 
426 /* Define on mingw to the minimum msvcrt version to assume */
427 /* #undef __MSVCRT_VERSION__ */
428 
429 /* Define to `int' if <sys/types.h> does not define. */
430 /* #undef mode_t */
431 
432 /* Define as a signed integer type capable of holding a process identifier. */
433 /* #undef pid_t */
434 
435 /* Define to `int' if <sys/types.h> does not define. */
436 /* #undef ssize_t */
437 
438 /* Disable stupid MSVC warnings. */
439 #ifdef _MSC_VER
440 /* Passing an empty parameter to a single parameter macro. */
441 # pragma warning(disable:4003)
442 /* A "performance" warning for converting int to bool. */
443 # pragma warning(disable:4800)
444 
445 /* POSIX get to deprecate POSIX things, not Microsoft. */
446 # define _CRT_NONSTDC_NO_WARNINGS
447 # define _CRT_SECURE_NO_WARNINGS
448 
449 /* WSAAddressToStringA() is deprecated and we should apparently use
450  * WSAAddressToStringW(), but we don't want wide character output so
451  * that would mean we'd have to convert the result back to ASCII
452  * which is a really stupid idea.
453  */
454 # define _WINSOCK_DEPRECATED_NO_WARNINGS
455 
456 /* Tell MSVC we want M_PI, etc defined. */
457 # define _USE_MATH_DEFINES
458 
459 /* Tell MSVC we don't want max() and min() macros defined. */
460 # define NOMINMAX
461 #endif
462 
463 /* Make the POSIX-like functions support large files. MSVC needs this;
464  * current mingw32 does too; mingw64 supports _FILE_OFFSET_BITS, which
465  * AC_SYS_LARGEFILE should discover and enable automatically.
466  */
467 #if defined _MSC_VER || \
468  (defined __MINGW32__ && !defined _FILE_OFFSET_BITS)
469 
470 # include <sys/stat.h>
471 # include <sys/types.h>
472 # include <io.h>
473 /* zlib.h uses off_t so we need to include it before we redefine off_t. */
474 # include <zlib.h>
475 
476 // The default stat() and fstat() use 32-bit filesizes and time_t, so we need
477 // to arrange to use 64-bit variants instead.
478 
479 # ifdef stat
480 // Break #undef lines to stop config.status from commenting them out.
481 # undef \
482  stat
483 # endif
484 
485 // This hack is a problem is we ever want a method called "stat".
486 # ifdef _MSC_VER
487 // MSVC needs to call _stat64() instead of stat() and the struct which holds
488 // the information is `struct _stat64` instead of `struct stat` so we just
489 // use #define to replace both in one go.
490 # define stat _stat64
491 # else
492 // Mingw32 has _stat64() but unhelpfully for our purposes, the struct is
493 // called __stat64 (with an extra underscore). We hack around this by
494 // defining stat to __stat64 which sorts out the struct, and then using
495 // a second macro to forward function-like uses of __stat64() to
496 // _stat64().
497 # define stat __stat64
498 # define __stat64(PATH, STATBUF) _stat64((PATH), (STATBUF))
499 # endif
500 
501 // We also want to use _fstat64() instead of fstat() but in this case we can
502 // use a function-like macro, so we could have a method called fstat so long
503 // as it didn't take two parameters.
504 
505 # ifdef fstat
506 // Break #undef lines to stop config.status from commenting them out.
507 # undef \
508  fstat
509 # endif
510 
511 # define fstat(FD, BUF) _fstat64(FD, BUF)
512 
513 # ifdef lseek
514 // Break #undef lines to stop config.status from commenting them out.
515 # undef \
516  lseek
517 # endif
518 
519 # ifdef off_t
520 // Break #undef lines to stop config.status from commenting them out.
521 # undef \
522  off_t
523 # endif
524 
525 # define lseek(FD, OFF, WHENCE) _lseeki64(FD, OFF, WHENCE)
526 /* Redefine via a typedef so C++ code off_t(-1) works - it wouldn't if we did:
527  * #define off_t long long
528  */
529 typedef long long off_t_redefinition_typedef;
530 # define off_t off_t_redefinition_typedef
531 
532 #endif
533 
534 /* MSVC defines _WIN32 but not __WIN32__. */
535 #if !defined __WIN32__ && defined _WIN32
536 # define __WIN32__
537 #endif
538 
539 /* MSVC defines _WIN64 but not __WIN64__. */
540 #if !defined __WIN64__ && defined _WIN64
541 # define __WIN64__
542 #endif
543 
544 /* Default to enabling _FORTIFY_SOURCE at level 2. It shouldn't cause a
545  * problem to define it where it's not supported.
546  *
547  * Check if _FORTIFY_SOURCE is already defined to allow the user to override
548  * our choice with "./configure CPPFLAGS=-D_FORTIFY_SOURCE=0" or "...=1".
549  */
550 #if defined __GNUC__ && !defined _FORTIFY_SOURCE
551 # define _FORTIFY_SOURCE 2
552 # ifdef __MINGW32__
553 /* Both mingw32 and mingw-w64 define __MINGW32__. */
554 # include <stddef.h>
555 # ifdef __MINGW64_VERSION_MAJOR
556 /* Enabling _FORTIFY_SOURCE on newer mingw-w64 requires linking with -lssp so
557  * we simply don't automatically enable it there.
558  */
559 /* # undef _FORTIFY_SOURCE */
560 # endif
561 # endif
562 #endif
563 
564 /* For compilers which support it (such as GCC, clang, Intel's C++ compiler)
565  * we can use __builtin_expect to give the compiler hints about branch
566  * prediction. See HACKING for how to use these.
567  */
568 #if HAVE_DECL___BUILTIN_EXPECT
569 /* The arguments of __builtin_expect() are both long, so use !! to ensure that
570  * the first argument is always an integer expression, and always 0 or 1, but
571  * still has the same truth value for the if or while it is used in.
572  */
573 # define rare(COND) __builtin_expect(!!(COND), 0)
574 # define usual(COND) __builtin_expect(!!(COND), 1)
575 #else
576 # define rare(COND) (COND)
577 # define usual(COND) (COND)
578 #endif
579 
580 /* Signal we're building the library so it's OK to include headers such as
581  * xapian/query.h directly.
582  */
583 #define XAPIAN_LIB_BUILD 1
584 
585 /* With Sun CC 5.13 (Studio 12.4) on Solaris 11.2, <math.h> seems to get
586  * implicitly included somehow before <cmath>, and compilation fails due
587  * to 'std::exception' colliding with 'struct exception'. It's not clear
588  * how to avoid this, so just define the same magic macro which <cmath> does
589  * before it includes <math.h>.
590  */
591 #if defined __SUNPRO_CC && !defined __MATHERR_RENAME_EXCEPTION
592 # define __MATHERR_RENAME_EXCEPTION
593 #endif
594