1
/* config.in. Generated from configure.ac by autoheader. */
7
/* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
8
#if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
9
#error "You should include config.h as your first include file"
14
/* Define if building universal (internal helper macro) */
15
#undef AC_APPLE_UNIVERSAL_BUILD
17
/* the location of <cinttypes> */
20
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
21
systems. This function is required for `alloca.c' support on those systems.
23
#undef CRAY_STACKSEG_END
25
/* the location of <cstdint> */
28
/* Define to 1 if using `alloca.c'. */
31
/* Name of the drizzled binary used in make test */
32
#undef DRIZZLED_BINARY
34
/* Another magical number */
37
/* Name of the gearmand binary used in make test */
38
#undef GEARMAND_BINARY
40
/* Define to 1 if you have `alloca', as a function or macro. */
43
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
47
/* Define to 1 if you have the <arpa/inet.h> header file. */
48
#undef HAVE_ARPA_INET_H
50
/* Define to 1 if you have the <assert.h> header file. */
53
/* Defined if the requested minimum BOOST version is satisfied */
56
/* Define to 1 if you have <boost/program_options.hpp> */
57
#undef HAVE_BOOST_PROGRAM_OPTIONS_HPP
59
/* Define to 1 if you have <boost/thread.hpp> */
60
#undef HAVE_BOOST_THREAD_HPP
62
/* Define to 1 if you have the `btowc' function. */
65
/* Define to 1 if you have the <curl/curl.h> header file. */
66
#undef HAVE_CURL_CURL_H
68
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
70
#undef HAVE_DECL_GETENV
72
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
74
#undef HAVE_DECL_STRERROR_R
76
/* Define to 1 if you have the <dlfcn.h> header file. */
79
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
82
/* If Drizzled binary is available */
83
#undef HAVE_DRIZZLED_BINARY
85
/* Enables DTRACE Support */
88
/* Define to 1 if you have the `dup2' function. */
91
/* Define to 1 if you have the <errno.h> header file. */
94
/* Define to 1 if you have the `event_base_free' function. */
95
#undef HAVE_EVENT_BASE_FREE
97
/* Define to 1 if you have the `event_base_get_method' function. */
98
#undef HAVE_EVENT_BASE_GET_METHOD
100
/* Define to 1 if you have the `event_base_new' function. */
101
#undef HAVE_EVENT_BASE_NEW
103
/* Define to 1 if you have the <fcntl.h> header file. */
106
/* Define to 1 if you have the `fork' function. */
109
/* Define to 1 if compiler provides atomic builtins. */
110
#undef HAVE_GCC_ATOMIC_BUILTINS
112
/* libgearman support */
113
#undef HAVE_GEARMAND_BINARY
115
/* Define to 1 if you have the <getopt.h> header file. */
118
/* Define to 1 if you have the `gettimeofday' function. */
119
#undef HAVE_GETTIMEOFDAY
121
/* If Hiredis is available */
124
/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
125
#undef HAVE_HIREDIS_HIREDIS_H
127
/* Define to 1 if you have the <inttypes.h> header file. */
128
#undef HAVE_INTTYPES_H
130
/* Define to 1 if you have the `bind' library (-lbind). */
133
/* libcurl support */
136
/* Define to 1 if you have the `c_p' library (-lc_p). */
142
/* Enable libdrizzle support */
143
#undef HAVE_LIBDRIZZLE
145
/* Define if you have the event library. */
148
/* libgearman support */
149
#undef HAVE_LIBGEARMAN
151
/* Define if you have the hiredis library. */
152
#undef HAVE_LIBHIREDIS
154
/* Enable libmemcached support */
155
#undef HAVE_LIBMEMCACHED
157
/* Define to 1 if you have the `mtmalloc' library (-lmtmalloc). */
158
#undef HAVE_LIBMTMALLOC
160
/* Define if you have the pq library. */
163
/* Define to 1 if you have the <libpq-fe.h> header file. */
164
#undef HAVE_LIBPQ_FE_H
166
/* Have clock_gettime */
169
/* Define to 1 if you have the `socket' library (-lsocket). */
170
#undef HAVE_LIBSOCKET
172
/* Have the SQLITE3 library */
173
#undef HAVE_LIBSQLITE3
175
/* Define to 1 if you have the `tcmalloc' library (-ltcmalloc). */
176
#undef HAVE_LIBTCMALLOC
178
/* Define to 1 if you have the `tcmalloc-minimal' library
179
(-ltcmalloc-minimal). */
180
#undef HAVE_LIBTCMALLOC_MINIMAL
182
/* Enable libtokyocabinet support */
183
#undef HAVE_LIBTOKYOCABINET
185
/* Define to 1 if you have the `umem' library (-lumem). */
188
/* Define if you have the uuid library. */
191
/* Define to 1 if you have the <limits.h> header file. */
194
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
198
/* Define to 1 if you have the `mbsrtowcs' function. */
199
#undef HAVE_MBSRTOWCS
201
/* Define to 1 if <wchar.h> declares mbstate_t. */
202
#undef HAVE_MBSTATE_T
204
/* If Memcached binary is available */
205
#undef HAVE_MEMCACHED_BINARY
207
/* Define to 1 if you have the `memchr' function. */
210
/* Define to 1 if you have the `memmove' function. */
213
/* Define to 1 if you have the <memory.h> header file. */
216
/* Define to 1 if you have the `mempcpy' function. */
219
/* Define to 1 if you have the `memset' function. */
222
/* Define to 1 if you have a MSG_DONTWAIT */
223
#undef HAVE_MSG_DONTWAIT
225
/* Define to 1 if you have a MSG_NOSIGNAL */
226
#undef HAVE_MSG_NOSIGNAL
228
/* Define to 1 if you have the <netdb.h> header file. */
231
/* Define to 1 if you have the <netinet/in.h> header file. */
232
#undef HAVE_NETINET_IN_H
234
/* Define to 1 if you have the <netinet/tcp.h> header file. */
235
#undef HAVE_NETINET_TCP_H
237
/* Define if you have POSIX threads libraries and header files. */
240
/* Have PTHREAD_PRIO_INHERIT. */
241
#undef HAVE_PTHREAD_PRIO_INHERIT
243
/* Define to 1 if the system has the type `ptrdiff_t'. */
244
#undef HAVE_PTRDIFF_T
246
/* Define to 1 if you have the <pwd.h> header file. */
249
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
250
and to 0 otherwise. */
253
/* Define to 1 if you have the `select' function. */
256
/* Define to 1 if you have the `setenv' function. */
259
/* Define to 1 if you have the <signal.h> header file. */
262
/* Define to 1 if you have the `socket' function. */
265
/* Have the SQLITE3 library */
268
/* Define to 1 if you have the <stdarg.h> header file. */
271
/* Define to 1 if stdbool.h conforms to C99. */
272
#undef HAVE_STDBOOL_H
274
/* Define to 1 if you have the <stddef.h> header file. */
277
/* Define to 1 if you have the <stdint.h> header file. */
280
/* Define to 1 if you have the <stdio.h> header file. */
283
/* Define to 1 if you have the <stdlib.h> header file. */
286
/* Define to 1 if you have the `strcasecmp' function. */
287
#undef HAVE_STRCASECMP
289
/* Define to 1 if you have the `strdup' function. */
292
/* Define to 1 if you have the `strerror' function. */
295
/* Define to 1 if you have the `strerror_r' function. */
296
#undef HAVE_STRERROR_R
298
/* Define to 1 if you have the <strings.h> header file. */
299
#undef HAVE_STRINGS_H
301
/* Define to 1 if you have the <string.h> header file. */
304
/* Define to 1 if you have the `strncasecmp' function. */
305
#undef HAVE_STRNCASECMP
307
/* Define to 1 if you have the `strtol' function. */
310
/* Define to 1 if you have the `strtoul' function. */
313
/* Define to 1 if you have the <sys/resource.h> header file. */
314
#undef HAVE_SYS_RESOURCE_H
316
/* Define to 1 if you have the <sys/sdt.h> header file. */
317
#undef HAVE_SYS_SDT_H
319
/* Define to 1 if you have the <sys/socket.h> header file. */
320
#undef HAVE_SYS_SOCKET_H
322
/* Define to 1 if you have the <sys/stat.h> header file. */
323
#undef HAVE_SYS_STAT_H
325
/* Define to 1 if you have the <sys/time.h> header file. */
326
#undef HAVE_SYS_TIME_H
328
/* Define to 1 if you have the <sys/types.h> header file. */
329
#undef HAVE_SYS_TYPES_H
331
/* Define to 1 if you have the <sys/utsname.h> header file. */
332
#undef HAVE_SYS_UTSNAME_H
334
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
335
#undef HAVE_SYS_WAIT_H
337
/* Define to 1 if you have the `uname' function. */
340
/* Define to 1 if you have the <unistd.h> header file. */
343
/* Define to 1 if you have the <uuid/uuid.h> header file. */
344
#undef HAVE_UUID_UUID_H
346
/* Add additional valgrind code for testing with valgrind. */
349
/* Define to 1 if you have the `vfork' function. */
352
/* Define to 1 if you have the <vfork.h> header file. */
355
/* Define to 1 or 0, depending whether the compiler supports simple visibility
357
#undef HAVE_VISIBILITY
359
/* Define to 1 if you have the `vprintf' function. */
362
/* Define to 1 if you have the <wchar.h> header file. */
365
/* Define to 1 if you have the <wctype.h> header file. */
368
/* Define to 1 if you have the `wmempcpy' function. */
371
/* Define to 1 if `fork' works. */
372
#undef HAVE_WORKING_FORK
374
/* Define to 1 if `vfork' works. */
375
#undef HAVE_WORKING_VFORK
377
/* Define to 1 if the system has the type `_Bool'. */
380
/* CPU of Build System */
383
/* OS of Build System */
386
/* Vendor of Build System */
389
/* Define to the sub-directory in which libtool stores uninstalled libraries.
393
/* Name of the memcached binary used in make test */
394
#undef MEMCACHED_BINARY
396
/* Name of the memcached_sasl binary used in make test */
397
#undef MEMCACHED_SASL_BINARY
399
/* Define to 1 if assertions should be disabled. */
402
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
403
#undef NO_MINUS_C_MINUS_O
405
/* Name of package */
408
/* Define to the address where bug reports for this package should be sent. */
409
#undef PACKAGE_BUGREPORT
411
/* Define to the full name of this package. */
414
/* Define to the full name and version of this package. */
415
#undef PACKAGE_STRING
417
/* Define to the one symbol short name of this package. */
418
#undef PACKAGE_TARNAME
420
/* Define to the home page for this package. */
423
/* Define to the version of this package. */
424
#undef PACKAGE_VERSION
426
/* Version of the software */
427
#undef PANDORA_RELEASE_VERSION
429
/* Define to necessary symbol if this constant uses a non-standard name on
431
#undef PTHREAD_CREATE_JOINABLE
433
/* Size of long long as computed by sizeof() */
434
#undef SIZEOF_LONG_LONG
436
/* The size of `off_t', as computed by sizeof. */
439
/* Size of size_t as computed by sizeof() */
442
/* If using the C implementation of alloca, define if you know the
443
direction of stack growth for your system; otherwise it will be
444
automatically deduced at runtime.
445
STACK_DIRECTION > 0 => grows toward higher addresses
446
STACK_DIRECTION < 0 => grows toward lower addresses
447
STACK_DIRECTION = 0 => direction of growth unknown */
448
#undef STACK_DIRECTION
450
/* Define to 1 if you have the ANSI C header files. */
453
/* Define to 1 if strerror_r returns char *. */
454
#undef STRERROR_R_CHAR_P
456
/* CPU of Target System */
459
/* OS of Target System */
462
/* Whether we are building for FreeBSD */
463
#undef TARGET_OS_FREEBSD
465
/* Whether we build for Linux */
466
#undef TARGET_OS_LINUX
468
/* Whether we build for OSX */
471
/* Whether we are building for Solaris */
472
#undef TARGET_OS_SOLARIS
474
/* Whether we are building for Windows */
475
#undef TARGET_OS_WINDOWS
477
/* Vendor of Target System */
480
/* Define to 1 if time_t is unsigned */
481
#undef TIME_T_UNSIGNED
483
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
484
#undef TIME_WITH_SYS_TIME
486
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
487
#undef TM_IN_SYS_TIME
489
/* Version number of package */
492
/* Version of Windows */
495
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
496
significant byte first (like Motorola and SPARC, unlike Intel). */
497
#if defined AC_APPLE_UNIVERSAL_BUILD
498
# if defined __BIG_ENDIAN__
499
# define WORDS_BIGENDIAN 1
502
# ifndef WORDS_BIGENDIAN
503
# undef WORDS_BIGENDIAN
507
/* Number of bits in a file offset, on hosts where this is settable. */
508
#undef _FILE_OFFSET_BITS
510
/* Define for large files, on AIX-style hosts. */
513
/* Define to 1 if on MINIX. */
516
/* Define to 2 if the system does not provide POSIX.1 features except with
518
#undef _POSIX_1_SOURCE
520
/* Define to 1 if you need to in order for `stat' and other things to work. */
523
/* Cause Sun Studio to not be quite so strict with standards conflicts */
524
#undef _STLP_NO_NEW_C_HEADERS
526
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
527
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
528
#define below would cause a syntax error. */
531
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
532
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
533
#define below would cause a syntax error. */
536
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
537
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
538
#define below would cause a syntax error. */
541
/* Magical number to make things work */
544
/* Define to 500 only on HP-UX. */
547
/* Workaround for bug in FreeBSD headers */
550
/* Enable extensions on AIX 3, Interix. */
554
/* Enable GNU extensions on systems that have them. */
558
/* Enable threading extensions on Solaris. */
559
#ifndef _POSIX_PTHREAD_SEMANTICS
560
# undef _POSIX_PTHREAD_SEMANTICS
562
/* Enable extensions on HP NonStop. */
563
#ifndef _TANDEM_SOURCE
564
# undef _TANDEM_SOURCE
566
/* Enable general extensions on Solaris. */
567
#ifndef __EXTENSIONS__
568
# undef __EXTENSIONS__
572
/* Use STDC Constant Macros in C++ */
573
#undef __STDC_CONSTANT_MACROS
575
/* Use STDC Format Macros in C++ */
576
#undef __STDC_FORMAT_MACROS
578
/* Use STDC Limit Macros in C++ */
579
#undef __STDC_LIMIT_MACROS
581
/* Define to empty if `const' does not conform to ANSI C. */
584
/* Define to rpl_fnmatch if the replacement function should be used. */
587
/* Define to `int' if <sys/types.h> doesn't define. */
590
/* Define to `__inline__' or `__inline' if that's what the C compiler
591
calls it, or to nothing if 'inline' is not supported under any name. */
596
/* Define to the type of a signed integer type of width exactly 32 bits if
597
such a type exists and the standard includes do not define it. */
600
/* Define to the type of a signed integer type of width exactly 64 bits if
601
such a type exists and the standard includes do not define it. */
604
/* Define to rpl_malloc if the replacement function should be used. */
607
/* Define to a type if <wchar.h> does not define. */
610
/* Define to `int' if <sys/types.h> does not define. */
613
/* Define to rpl_realloc if the replacement function should be used. */
616
/* Define to the equivalent of the C99 'restrict' keyword, or to
617
nothing if this is not supported. Do not define if restrict is
618
supported directly. */
620
/* Work around a bug in Sun C++: it does not support _Restrict or
621
__restrict__, even though the corresponding Sun C compiler ends up with
622
"#define restrict _Restrict" or "#define restrict __restrict__" in the
623
previous line. Perhaps some future version of Sun C++ will work with
624
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
625
#if defined __SUNPRO_CC && !defined __RESTRICT
627
# define __restrict__
630
/* Define to `unsigned int' if <sys/types.h> does not define. */
633
/* Define to `int' if <sys/types.h> does not define. */
636
/* Define to `int' if <sys/types.h> doesn't define. */
639
/* Define to the type of an unsigned integer type of width exactly 16 bits if
640
such a type exists and the standard includes do not define it. */
643
/* Define to the type of an unsigned integer type of width exactly 32 bits if
644
such a type exists and the standard includes do not define it. */
647
/* Define to the type of an unsigned integer type of width exactly 64 bits if
648
such a type exists and the standard includes do not define it. */
651
/* Define to the type of an unsigned integer type of width exactly 8 bits if
652
such a type exists and the standard includes do not define it. */
655
/* Define as `fork' if `vfork' does not work. */
658
/* Define to empty if the keyword `volatile' does not work. Warning: valid
659
code using `volatile' can become incorrect without. Disable with care. */
663
#ifndef HAVE_SYS_SOCKET_H
664
# define SHUT_RD SD_RECEIVE
665
# define SHUT_WR SD_SEND
666
# define SHUT_RDWR SD_BOTH
671
#if defined(__cplusplus)
673
# include CINTTYPES_H
676
# include <inttypes.h>
679
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
680
# define HAVE_ULONG 1
681
typedef unsigned long int ulong;
684
/* To hide the platform differences between MS Windows and Unix, I am
685
* going to use the Microsoft way and #define the Microsoft-specific
686
* functions to the unix way. Microsoft use a separate subsystem for sockets,
687
* but Unix normally just use a filedescriptor on the same functions. It is
688
* a lot easier to map back to the unix way with macros than going the other
689
* way without side effect ;-)
691
#ifdef TARGET_OS_WINDOWS
692
#define random() rand()
693
#define srandom(a) srand(a)
694
#define get_socket_errno() WSAGetLastError()
696
#define INVALID_SOCKET -1
697
#define SOCKET_ERROR -1
699
#define closesocket(a) ::close(a)
701
#define closesocket(a) close(a)
703
#define get_socket_errno() errno
704
#endif // TARGET_OS_WINDOWS
706
#ifndef HAVE_MSG_NOSIGNAL
707
#define MSG_NOSIGNAL 0
708
#endif // HAVE_MSG_NOSIGNAL
710
#ifndef HAVE_MSG_DONTWAIT
711
#define MSG_DONTWAIT 0
712
#endif // HAVE_MSG_DONTWAIT
714
#if defined(__cplusplus)
719
template<typename To, typename From>
720
inline To implicit_cast(From const &f) {
723
template<typename To, typename From> // use like this: down_cast<T*>(foo);
724
inline To down_cast(From* f) { // so we only accept pointers
725
// Ensures that To is a sub-type of From *. This test is here only
726
// for compile-time type checking, and has no overhead in an
727
// optimized build at run-time, as it will be optimized away
730
implicit_cast<From*, To>(0);
734
assert(f == NULL || dynamic_cast<To>(f) != NULL); // RTTI: debug mode only!
736
return static_cast<To>(f);
738
#endif /* defined(__cplusplus) */
740
#endif /* __CONFIG_H__ */