Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

config.h

Go to the documentation of this file.
00001 /* include/config.h.  Generated by configure.  */
00002 /* include/config.h.in.  Generated from configure.ac by autoheader.  */
00003 
00004 #ifndef CCXX_CONFIG_H_
00005 #define CCXX_CONFIG_H_
00006 #define __DLL
00007 #define __EXPORT
00008 #define __DLLRTL
00009 #define __MEMBER_EXPORT
00010 /* #undef CCXX_EMPTY */
00011 #define CCXX_EMPTY
00012 #define CCXX_EXPORT(t) t
00013 #define CCXX_MEMBER(t) t
00014 #define CCXX_MEMBER_EXPORT(t) t
00015 #define CCXX_CLASS_EXPORT
00016 
00017 #define COMMON_64_CLEAN
00018 #define COMMON_ASYNC_OVERRIDE
00019 #define COMMON_OST_NAMESPACE
00020 #define COMMON_THREAD_SLEEP
00021 #define COMMON_NET_DEVICES
00022 #define COMMON_THREAD_DEBUG
00023 #define COMMON_DEADLOCK_DEBUG
00024 #define COMMON_NAMED_MUTEX
00025 #define COMMON_PROCESS_ATTACH
00026 #define COMMON_XML_PARSING
00027 
00028 #if     __GNUC__ > 1 && !defined(__STRICT_ANSI__) && !defined(__PEDANTIC__)
00029 #define DYNAMIC_LOCAL_ARRAYS
00030 #endif
00031 
00032 #if defined(__CYGWIN__)
00033 #define _POSIX_REALTIME_SIGNALS
00034 #define _POSIX_THREADS
00035 #endif
00036 
00037 #if defined(__APPLE__) && defined(__MACH__)
00038 #ifndef MACOSX
00039 #define MACOSX
00040 #define _P1003_1B_VISIBLE
00041 #endif
00042 #ifndef _PTHREADS
00043 #define _PTHREADS 1
00044 #endif
00045 #endif
00046 
00047 #if defined(__FreeBSD__)
00048 #ifndef __BSD_VISIBLE
00049 #define __BSD_VISIBLE 1
00050 #endif
00051 #endif
00052 
00053 #ifdef _AIX
00054 #ifndef _ALL_SOURCE
00055 #define _ALL_SOURCE
00056 #endif
00057 #endif
00058 
00059 #ifdef  __hpux
00060 #ifndef _XOPEN_SOURCE_EXTENDED
00061 #define _XOPEN_SOURCE_EXTENDED
00062 #endif
00063 #ifndef _INCLUDE_LONGLONG
00064 #define _INCLUDE_LONGLONG
00065 #endif
00066 #endif
00067 
00068 #define CCXX_PACKING
00069 #if defined(__GNUC__)
00070 #define CCXX_PACKED
00071 #elif !defined(__hpux) && !defined(_AIX)
00072 #define CCXX_PACKED
00073 #endif
00074 
00075 #if defined(__sun) || defined(__SUN__)
00076 #define __EXTENSIONS__ 1
00077 #endif
00078 
00079 #ifndef _REENTRANT
00080 #define _REENTRANT 1
00081 #endif
00082 
00083 #ifndef _THREAD_SAFE
00084 #define _THREAD_SAFE 1
00085 #endif
00086 
00087 #ifndef _GNU_SOURCE
00088 #define _GNU_SOURCE 1
00089 #endif
00090 
00091 #if     !defined(_XOPEN_SOURCE) && !defined(__FreeBSD__) &&!defined(__OpenBSD__) && !defined(__MACH__) && !defined(__NetBSD__)
00092 #define _XOPEN_SOURCE 600
00093 #endif
00094 
00095 
00096 
00097 /* hack for BROKEN autoheader, since it will not predicitably order
00098    macros by any obvious means. */
00099 
00100 #define HAVE_UNISTD_H 1
00101 #define HAVE_FEATURES_H 1
00102 #define HAVE_SYS_TYPES_H 1
00103 
00104 #ifdef HAVE_UNISTD_H
00105 #include <unistd.h>
00106 #endif
00107 
00108 #ifndef WIN32
00109 #ifdef  HAVE_FEATURES_H
00110 #include <features.h>
00111 #endif
00112 #endif
00113 
00114 #ifdef HAVE_SYS_TYPES_H
00115 #include <sys/types.h>
00116 #endif
00117 
00118 
00119 
00120 #define HAVE_SYS_TIME_H 1
00121 #define TIME_WITH_SYS_TIME 1
00122 #if TIME_WITH_SYS_TIME
00123 #include <sys/time.h>
00124 #else
00125 #if HAVE_SYS_TIME_H
00126 #include <sys/time.h>
00127 #endif
00128 #endif
00129 
00130 
00131 
00132 
00133 #define HAVE_SYS_TYPES_STD 1
00134 #define HAVE_SYS_TYPES_64 1
00135 #define HAVE_LONG_LONG 1
00136 /* #undef HAVE_SYS_TYPES */
00137 
00138 #ifdef HAVE_SYS_TYPES_H
00139 #include <sys/types.h>
00140 #endif
00141 
00142 #ifdef  HAVE_BITS_WORSIZE_H
00143 #include <bits/wordtypes.h>
00144 #endif
00145 
00146 #ifdef HAVE_SYS_TYPES_STD
00147 typedef int8_t int8;
00148 typedef u_int8_t uint8;
00149 typedef int16_t int16;
00150 typedef u_int16_t uint16;
00151 typedef int32_t int32;
00152 typedef u_int32_t uint32;
00153 #ifdef HAVE_SYS_TYPES_64
00154 #define HAVE_64_BITS
00155 typedef int64_t int64;
00156 typedef u_int64_t uint64;
00157 #endif
00158 #else
00159 typedef char int8;
00160 typedef unsigned char uint8;
00161 typedef short int16;
00162 typedef unsigned short uint16;
00163 typedef int int32;
00164 typedef unsigned int uint32;
00165 #endif
00166 
00167 #ifndef HAVE_SYS_TYPES_64
00168 #if defined(__WORDSIZE) || defined(__arch64__)
00169 #if __WORDSIZE >= 64 || defined(__arch64__)
00170 typedef long int int64;
00171 typedef unsigned long int uint64;
00172 #define HAVE_SYS_TYPES_64
00173 #define HAVE_64_BITS
00174 #endif
00175 #endif
00176 #endif
00177 
00178 #ifndef HAVE_SYS_TYPES_64
00179 #ifdef  __GNUC__
00180 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
00181 __extension__
00182 typedef long long int int64;
00183 __extension__
00184 typedef unsigned long long int uint64;
00185 #define HAVE_SYS_TYPES_64
00186 #define HAVE_64_BITS
00187 #endif
00188 #endif
00189 #endif
00190 
00191 #ifndef HAVE_SYS_TYPES_64
00192 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
00193 #define HAVE_64_BITS
00194 typedef long long int64;
00195 typedef unsigned long long uint64;
00196 #endif
00197 #endif
00198 
00199 
00200 /* has c++ exception handling */
00201 #define CCXX_EXCEPTIONS 1
00202 
00203 /* have new with init */
00204 #define CCXX_HAVE_NEW_INIT 1
00205 
00206 /* has c++ namespaces */
00207 #define CCXX_NAMESPACES 1
00208 
00209 /* NAT support */
00210 #define CCXX_NAT 1
00211 
00212 /* aix fixes needed */
00213 /* #undef COMMON_AIX_FIXES */
00214 
00215 /* enable auditing */
00216 /* #undef COMMON_MEMORY_AUDIT */
00217 
00218 /* cygwin environment */
00219 /* #undef CYGWIN_IMPORTS */
00220 
00221 /* primary config prefix */
00222 /* #undef ETC_CONFDIR */
00223 
00224 /* system config prefix */
00225 #define ETC_PREFIX "/etc/"
00226 
00227 /* Define to 1 if you have the <alloca.h> header file. */
00228 #define HAVE_ALLOCA_H 1
00229 
00230 /* Define to 1 if you have the <arpa/inet.h> header file. */
00231 #define HAVE_ARPA_INET_H 1
00232 
00233 /* atomic aix operations */
00234 /* #undef HAVE_ATOMIC_AIX */
00235 
00236 /* Define to 1 if you have the <bits/atomicity.h> header file. */
00237 #define HAVE_BITS_ATOMICITY_H 1
00238 
00239 /* Define to 1 if you have the <bits/wordsize.h> header file. */
00240 #define HAVE_BITS_WORDSIZE_H 1
00241 
00242 /* have bool type */
00243 #define HAVE_BOOL_TYPE 1
00244 
00245 /* Define to 1 if you have the <bsd/signal.h> header file. */
00246 /* #undef HAVE_BSD_SIGNAL_H */
00247 
00248 /* Define to 1 if you have the <dlfcn.h> header file. */
00249 #define HAVE_DLFCN_H 1
00250 
00251 /* have endian header */
00252 #define HAVE_ENDIAN_H 1
00253 
00254 /* Define to 1 if you have the <errno.h> header file. */
00255 #define HAVE_ERRNO_H 1
00256 
00257 /* Define to 1 if you have the <exception> header file. */
00258 #define HAVE_EXCEPTION 1
00259 
00260 /* Define to 1 if you have the <fcntl.h> header file. */
00261 #define HAVE_FCNTL_H 1
00262 
00263 /* Define to 1 if you have the <features.h> header file. */
00264 #define HAVE_FEATURES_H 1
00265 
00266 /* has gcc atomic functions */
00267 /* #undef HAVE_GCC_BITS_ATOMIC */
00268 
00269 /* has __gnu_cxx atomic functions */
00270 #define HAVE_GCC_CXX_BITS_ATOMIC 1
00271 
00272 /* getaddrinfo interface support */
00273 #define HAVE_GETADDRINFO 1
00274 
00275 /* reentrant getgrnam */
00276 #define HAVE_GETGRNAM_R 1
00277 
00278 /* ipv6 host lookup */
00279 #define HAVE_GETHOSTBYNAME2 1
00280 
00281 /* have getopt header */
00282 #define HAVE_GETOPT 1
00283 
00284 /* Define to 1 if you have the <getopt.h> header file. */
00285 #define HAVE_GETOPT_H 1
00286 
00287 /* Define to 1 if you have the `getopt_long' function. */
00288 #define HAVE_GETOPT_LONG 1
00289 
00290 /* Define to 1 if you have the `getpagesize' function. */
00291 #define HAVE_GETPAGESIZE 1
00292 
00293 /* reentrant getnam */
00294 #define HAVE_GETPWNAM_R 1
00295 
00296 /* reentrant getuid */
00297 #define HAVE_GETPWUID_R 1
00298 
00299 /* Define to 1 if you have the `gettimeofday' function. */
00300 #define HAVE_GETTIMEOFDAY 1
00301 
00302 /* has inet_aton */
00303 #define HAVE_INET_ATON 1
00304 
00305 /* ipv6 support */
00306 #define HAVE_INET_PTON 1
00307 
00308 /* inet sockets */
00309 #define HAVE_INET_SOCKETS 1
00310 
00311 /* Define to 1 if you have the <inttypes.h> header file. */
00312 #define HAVE_INTTYPES_H 1
00313 
00314 /* Define to 1 if you have the <ioctl.h> header file. */
00315 /* #undef HAVE_IOCTL_H */
00316 
00317 /* Define to 1 if you have the <ip_compat.h> header file. */
00318 /* #undef HAVE_IP_COMPAT_H */
00319 
00320 /* Define to 1 if you have the <ip_fil_compat.h> header file. */
00321 /* #undef HAVE_IP_FIL_COMPAT_H */
00322 
00323 /* Define to 1 if you have the <ip_fil.h> header file. */
00324 /* #undef HAVE_IP_FIL_H */
00325 
00326 /* Define to 1 if you have the <ip_nat.h> header file. */
00327 /* #undef HAVE_IP_NAT_H */
00328 
00329 /* Define to 1 if you have the `malloc' library (-lmalloc). */
00330 /* #undef HAVE_LIBMALLOC */
00331 
00332 /* uses libxml2 */
00333 #define HAVE_LIBXML 1
00334 
00335 /* Define to 1 if you have the <limits.h> header file. */
00336 #define HAVE_LIMITS_H 1
00337 
00338 /* Define to 1 if you have the <linux/in6.h> header file. */
00339 #define HAVE_LINUX_IN6_H 1
00340 
00341 /* Define to 1 if you have the <linux/netfilter_ipv4.h> header file. */
00342 #define HAVE_LINUX_NETFILTER_IPV4_H 1
00343 
00344 /* Define to 1 if you have the <linux/netfilter_ipv6.h> header file. */
00345 #define HAVE_LINUX_NETFILTER_IPV6_H 1
00346 
00347 /* reentrant localtime */
00348 #define HAVE_LOCALTIME_R 1
00349 
00350 /* Define to 1 if you have the `lockf' function. */
00351 #define HAVE_LOCKF 1
00352 
00353 /* have long longs */
00354 #define HAVE_LONG_LONG 1
00355 
00356 /* Define to 1 if you have the `lstat' function. */
00357 #define HAVE_LSTAT 1
00358 
00359 /* mach dybloader */
00360 /* #undef HAVE_MACH_DYLD */
00361 
00362 /* Define to 1 if you have the <mach-o/dyld.h> header file. */
00363 /* #undef HAVE_MACH_O_DYLD_H */
00364 
00365 /* Define to 1 if you have the `memmove' function. */
00366 #define HAVE_MEMMOVE 1
00367 
00368 /* Define to 1 if you have the <memory.h> header file. */
00369 #define HAVE_MEMORY_H 1
00370 
00371 /* Define to 1 if you have the `mlock' function. */
00372 #define HAVE_MLOCK 1
00373 
00374 /* Define to 1 if you have the `mlockall' function. */
00375 #define HAVE_MLOCKALL 1
00376 
00377 /* support for plugin modules */
00378 #define HAVE_MODULES 1
00379 
00380 /* IPF NAT support */
00381 /* #undef HAVE_NAT_IPF */
00382 
00383 /* NetFilter NAT support */
00384 #define HAVE_NAT_NETFILTER 1
00385 
00386 /* PF NAT support */
00387 /* #undef HAVE_NAT_PF */
00388 
00389 /* Define to 1 if you have the <netinet6/in6.h> header file. */
00390 /* #undef HAVE_NETINET6_IN6_H */
00391 
00392 /* Define to 1 if you have the <netinet/inet.h> header file. */
00393 /* #undef HAVE_NETINET_INET_H */
00394 
00395 /* Define to 1 if you have the <netinet/in.h> header file. */
00396 #define HAVE_NETINET_IN_H 1
00397 
00398 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
00399 #define HAVE_NETINET_IN_SYSTM_H 1
00400 
00401 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
00402 /* #undef HAVE_NETINET_IP_COMPAT_H */
00403 
00404 /* Define to 1 if you have the <netinet/ip_fil_compat.h> header file. */
00405 /* #undef HAVE_NETINET_IP_FIL_COMPAT_H */
00406 
00407 /* Define to 1 if you have the <netinet/ip_fil.h> header file. */
00408 /* #undef HAVE_NETINET_IP_FIL_H */
00409 
00410 /* Define to 1 if you have the <netinet/ip.h> header file. */
00411 #define HAVE_NETINET_IP_H 1
00412 
00413 /* Define to 1 if you have the <netinet/ip_nat.h> header file. */
00414 /* #undef HAVE_NETINET_IP_NAT_H */
00415 
00416 /* Define to 1 if you have the <net/if.h> header file. */
00417 #define HAVE_NET_IF_H 1
00418 
00419 /* Define to 1 if you have the <net/pfvar.h> header file. */
00420 /* #undef HAVE_NET_PFVAR_H */
00421 
00422 /* old style iostreams */
00423 /* #undef HAVE_OLD_IOSTREAM */
00424 
00425 /* Define to 1 if you have the `poll' function. */
00426 #define HAVE_POLL 1
00427 
00428 /* Define to 1 if you have the <poll.h> header file. */
00429 #define HAVE_POLL_H 1
00430 
00431 /* Define to 1 if you have the `posix_memalign' function. */
00432 #define HAVE_POSIX_MEMALIGN 1
00433 
00434 /* has pwrite */
00435 #define HAVE_PREAD_PWRITE 1
00436 
00437 /* has stack size */
00438 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
00439 
00440 /* has cancel */
00441 #define HAVE_PTHREAD_CANCEL 1
00442 
00443 /* has non portable delay */
00444 /* #undef HAVE_PTHREAD_DELAY_NP */
00445 
00446 /* posix thread header */
00447 #define HAVE_PTHREAD_H 1
00448 
00449 /* has mach link */
00450 /* #undef HAVE_PTHREAD_MACH_THREAD_NP */
00451 
00452 /* has non portable setkind */
00453 /* #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP */
00454 
00455 /* has setttype */
00456 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1
00457 
00458 /* has non portable settype */
00459 /* #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP */
00460 
00461 /* has nanosleep */
00462 #define HAVE_PTHREAD_NANOSLEEP 1
00463 
00464 /* Define to 1 if you have the <pthread_np.h> header file. */
00465 /* #undef HAVE_PTHREAD_NP_H */
00466 
00467 /* has rwlock support */
00468 #define HAVE_PTHREAD_RWLOCK 1
00469 
00470 /* has sched yield */
00471 /* #undef HAVE_PTHREAD_SCHED_YIELD */
00472 
00473 /* has setcancel */
00474 /* #undef HAVE_PTHREAD_SETCANCEL */
00475 
00476 /* has setcanceltype */
00477 #define HAVE_PTHREAD_SETCANCELTYPE 1
00478 
00479 /* has suspend */
00480 /* #undef HAVE_PTHREAD_SUSPEND */
00481 
00482 /* has yield */
00483 #define HAVE_PTHREAD_YIELD 1
00484 
00485 /* has np yield */
00486 /* #undef HAVE_PTHREAD_YIELD_NP */
00487 
00488 /* reentrant readdir */
00489 #define HAVE_READDIR_R 1
00490 
00491 /* Define to 1 if you have the `realpath' function. */
00492 #define HAVE_REALPATH 1
00493 
00494 /* Define to 1 if you have the `sched_getscheduler' function. */
00495 #define HAVE_SCHED_GETSCHEDULER 1
00496 
00497 /* Define to 1 if you have the <sched.h> header file. */
00498 #define HAVE_SCHED_H 1
00499 
00500 /* Define to 1 if you have the <select.h> header file. */
00501 /* #undef HAVE_SELECT_H */
00502 
00503 /* Define to 1 if you have the <semaphore.h> header file. */
00504 #define HAVE_SEMAPHORE_H 1
00505 
00506 /* Define to 1 if you have the `setegid' function. */
00507 #define HAVE_SETEGID 1
00508 
00509 /* Define to 1 if you have the `setenv' function. */
00510 #define HAVE_SETENV 1
00511 
00512 /* Define to 1 if you have the `setitimer' function. */
00513 #define HAVE_SETITIMER 1
00514 
00515 /* Define to 1 if you have the `setpgrp' function. */
00516 #define HAVE_SETPGRP 1
00517 
00518 /* have shload plugins */
00519 /* #undef HAVE_SHL_LOAD */
00520 
00521 /* Define to 1 if you have the `sigaction' function. */
00522 #define HAVE_SIGACTION 1
00523 
00524 /* Define to 1 if you have the `sigwait' function. */
00525 #define HAVE_SIGWAIT 1
00526 
00527 /* 2 argument form */
00528 #define HAVE_SIGWAIT2 1
00529 
00530 /* Define to 1 if you have the `snprintf' function. */
00531 #define HAVE_SNPRINTF 1
00532 
00533 /* has socklen_t type */
00534 #define HAVE_SOCKLEN_T 1
00535 
00536 /* Define to 1 if you have the <sstream> header file. */
00537 #define HAVE_SSTREAM 1
00538 
00539 /* Define to 1 if you have the <ss.h> header file. */
00540 /* #undef HAVE_SS_H */
00541 
00542 /* Define to 1 if you have the <stdint.h> header file. */
00543 #define HAVE_STDINT_H 1
00544 
00545 /* Define to 1 if you have the <stdlib.h> header file. */
00546 #define HAVE_STDLIB_H 1
00547 
00548 /* Define to 1 if you have the `strcasecmp' function. */
00549 #define HAVE_STRCASECMP 1
00550 
00551 /* Define to 1 if you have the `strdup' function. */
00552 #define HAVE_STRDUP 1
00553 
00554 /* reentrant strerror */
00555 #define HAVE_STRERROR_R 1
00556 
00557 /* Define to 1 if you have the <strings.h> header file. */
00558 #define HAVE_STRINGS_H 1
00559 
00560 /* Define to 1 if you have the <string.h> header file. */
00561 #define HAVE_STRING_H 1
00562 
00563 /* reentrant strtok */
00564 #define HAVE_STRTOK_R 1
00565 
00566 /* Define to 1 if you have the <syslog.h> header file. */
00567 #define HAVE_SYSLOG_H 1
00568 
00569 /* Define to 1 if you have the <syslog.hposix_evlog.h> header file. */
00570 /* #undef HAVE_SYSLOG_HPOSIX_EVLOG_H */
00571 
00572 /* Define to 1 if you have the <sys/atomic.h> header file. */
00573 /* #undef HAVE_SYS_ATOMIC_H */
00574 
00575 /* Define to 1 if you have the <sys/atomic_op.h> header file. */
00576 /* #undef HAVE_SYS_ATOMIC_OP_H */
00577 
00578 /* Define to 1 if you have the <sys/fcntl.h> header file. */
00579 #define HAVE_SYS_FCNTL_H 1
00580 
00581 /* Define to 1 if you have the <sys/file.h> header file. */
00582 #define HAVE_SYS_FILE_H 1
00583 
00584 /* Define to 1 if you have the <sys/ioctl.h> header file. */
00585 #define HAVE_SYS_IOCTL_H 1
00586 
00587 /* solaris endian */
00588 /* #undef HAVE_SYS_ISA_DEFS_H */
00589 
00590 /* Define to 1 if you have the <sys/libcsys.h> header file. */
00591 /* #undef HAVE_SYS_LIBCSYS_H */
00592 
00593 /* Define to 1 if you have the <sys/param.h> header file. */
00594 #define HAVE_SYS_PARAM_H 1
00595 
00596 /* Define to 1 if you have the <sys/poll.h> header file. */
00597 #define HAVE_SYS_POLL_H 1
00598 
00599 /* Define to 1 if you have the <sys/sched.h> header file. */
00600 /* #undef HAVE_SYS_SCHED_H */
00601 
00602 /* Define to 1 if you have the <sys/select.h> header file. */
00603 #define HAVE_SYS_SELECT_H 1
00604 
00605 /* Define to 1 if you have the <sys/socket.h> header file. */
00606 #define HAVE_SYS_SOCKET_H 1
00607 
00608 /* Define to 1 if you have the <sys/sockio.h> header file. */
00609 /* #undef HAVE_SYS_SOCKIO_H */
00610 
00611 /* Define to 1 if you have the <sys/stat.h> header file. */
00612 #define HAVE_SYS_STAT_H 1
00613 
00614 /* Define to 1 if you have the <sys/stream.h> header file. */
00615 /* #undef HAVE_SYS_STREAM_H */
00616 
00617 /* Define to 1 if you have the <sys/time.h> header file. */
00618 #define HAVE_SYS_TIME_H 1
00619 
00620 /* have 64 bit longs */
00621 #define HAVE_SYS_TYPES_64 1
00622 
00623 /* Define to 1 if you have the <sys/types.h> header file. */
00624 #define HAVE_SYS_TYPES_H 1
00625 
00626 /* have systypes */
00627 #define HAVE_SYS_TYPES_STD 1
00628 
00629 /* Define to 1 if you have the <sys/un.h> header file. */
00630 #define HAVE_SYS_UN_H 1
00631 
00632 /* Define to 1 if you have the <sys/wait.h> header file. */
00633 #define HAVE_SYS_WAIT_H 1
00634 
00635 /* Define to 1 if you have the <thread.h> header file. */
00636 /* #undef HAVE_THREAD_H */
00637 
00638 /* Define to 1 if you have the <unistd.h> header file. */
00639 #define HAVE_UNISTD_H 1
00640 
00641 /* has unix domain sockets */
00642 #define HAVE_UNIX_SOCKETS 1
00643 
00644 /* Define to 1 if you have the `wait4' function. */
00645 #define HAVE_WAIT4 1
00646 
00647 /* Define to 1 if you have the `waitpid' function. */
00648 #define HAVE_WAITPID 1
00649 
00650 /* Define to 1 if you have the <winsock2.h> header file. */
00651 /* #undef HAVE_WINSOCK2_H */
00652 
00653 /* Define to 1 if you have the <winsock.h> header file. */
00654 /* #undef HAVE_WINSOCK_H */
00655 
00656 /* has usable atomic functions */
00657 /* #undef HAVE_WORKING_SYS_ATOMIC_H */
00658 
00659 /* have zlib header */
00660 #define HAVE_ZLIB_H 1
00661 
00662 /* Name of package */
00663 #define CCXX_PACKAGE "commoncpp2"
00664 
00665 /* Define to the address where bug reports for this package should be sent. */
00666 #define CCXX_PACKAGE_BUGREPORT ""
00667 
00668 /* Define to the full name of this package. */
00669 #define CCXX_PACKAGE_NAME ""
00670 
00671 /* Define to the full name and version of this package. */
00672 #define CCXX_PACKAGE_STRING ""
00673 
00674 /* Define to the one symbol short name of this package. */
00675 #define CCXX_PACKAGE_TARNAME ""
00676 
00677 /* Define to the version of this package. */
00678 #define CCXX_PACKAGE_CCXX_VERSION ""
00679 
00680 /* mutex type */
00681 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
00682 
00683 /* Define as the return type of signal handlers (`int' or `void'). */
00684 #define RETSIGTYPE void
00685 
00686 /* Define to 1 if you have the ANSI C header files. */
00687 #define STDC_HEADERS 1
00688 
00689 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
00690 #define TIME_WITH_SYS_TIME 1
00691 
00692 /* Version number of package */
00693 #define CCXX_VERSION "1.3.23"
00694 
00695 /* bsd system using linuxthreads */
00696 /* #undef WITH_LINUXTHREADS */
00697 
00698 /* darwin6 environment */
00699 /* #undef _DARWIN6_ */
00700 
00701 /* Define to 1 if on MINIX. */
00702 /* #undef _MINIX */
00703 
00704 /* Define to 2 if the system does not provide POSIX.1 features except with
00705    this defined. */
00706 /* #undef _POSIX_1_SOURCE */
00707 
00708 /* Define to 1 if you need to in order for `stat' and other things to work. */
00709 /* #undef _POSIX_SOURCE */
00710 
00711 /* endian byte order */
00712 /* #undef __BYTE_ORDER */
00713 
00714 
00715 
00716 #ifndef HAVE_STRERROR_R
00717 #define strerror_r(e, b, l) b = ::strerror(e)
00718 #endif
00719 
00720 #ifndef HAVE_GETPWUID_R
00721 #define getpwuid_r(uid, rec, buf, size, ptr) ptr = ::getpwuid(uid)
00722 #define getpwnam_r(name, rec, buf, size, ptr) ptr = ::getpwnam(name)
00723 #endif
00724 
00725 
00726 
00727 
00728 #ifdef HAVE_POLL_H
00729 #include <poll.h>
00730 #else
00731 #ifdef HAVE_SYS_POLL_H
00732 #include <sys/poll.h>
00733 #endif
00734 #endif
00735 
00736 #if defined(HAVE_POLL) && defined(POLLRDNORM)
00737 #define USE_POLL
00738 #endif
00739 
00740 
00741 
00742 
00743 
00744 #ifdef HAVE_SYS_LIBCSYS_H
00745 #include <sys/libcsys.h>
00746 #endif
00747 
00748 #ifdef HAVE_WINSOCK2_H
00749 #include <winsock2.h>
00750 #else
00751 #ifdef HAVE_WINSOCK_H
00752 #include <winsock.h>
00753 #else
00754 #ifdef HAVE_SYS_SOCKET_H
00755 #include <sys/socket.h>
00756 #ifdef HAVE_SELECT_H
00757 #include <select.h>
00758 #else
00759 #ifdef HAVE_SYS_SELECT_H
00760 #include <sys/select.h>
00761 #endif
00762 #endif
00763 
00764 #ifdef HAVE_NETINET_IN_H
00765 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
00766 /* #undef _XOPEN_SOURCE_EXTENDED */
00767 #endif
00768 #include <netinet/in.h>
00769 #ifdef  __hpux
00770 #define _XOPEN_SOURCE_EXTENDED
00771 #endif
00772 #endif
00773 #ifdef HAVE_ARPA_INET_H
00774 #include <arpa/inet.h>
00775 #include <netdb.h>
00776 #endif
00777 
00778 #ifdef  HAVE_NETINET6_IN6_H
00779 #include <netinet6/in6.h>
00780 #endif
00781 
00782 #ifdef  HAVE_LINIX_IN6_H
00783 #include <linux/in6.h>
00784 #endif
00785 
00786 #ifdef HAVE_NETINET_IN_SYSTM_H
00787 #include <netinet/in_systm.h>
00788 #endif
00789 #ifdef HAVE_NETINET_IP_H
00790 #include <netinet/ip.h>
00791 #endif
00792 #ifdef HAVE_SYS_UN_H
00793 #include <sys/un.h>
00794 #endif
00795 #endif
00796 #endif
00797 #endif
00798 
00799 #ifndef HAVE_INET_ATON
00800 #define inet_aton(cp, addr) (((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)
00801 #endif
00802 
00803 #ifndef SUN_LEN
00804 #ifdef SCM_RIGHTS
00805 #define HAVE_UN_LEN
00806 #endif
00807 #ifdef __linux__
00808 #define HAVE_UN_LEN
00809 #endif
00810 #ifdef HAVE_UN_LEN
00811 #define SUN_LEN(ptr) sizeof(sockaddr_un.sun_len) + sizeof(sockaddr_un.sun_family) + sizeof(sockaddr_un.sun_path) + 1
00812 #else
00813 #define SUN_LEN(ptr) ((size_t)((struct sockaddr_un *)0)->sun_path) + strlen((ptr)->sun_path))
00814 #endif
00815 #endif
00816 
00817 #ifndef _OSF_SOURCE
00818 #ifndef HAVE_SOCKLEN_T
00819 #if defined(i386) && defined(__svr4__)
00820 #define HAVE_SOCKLEN_U
00821 #else
00822 #if defined(__CYGWIN32__)
00823 #define socklen_t int
00824 #else
00825 typedef int socklen_t;
00826 #endif
00827 #endif
00828 
00829 #ifdef HAVE_SOCKLEN_U
00830 #if !defined(__CYGWIN32__) && !defined(__MINGW32__)
00831 typedef unsigned socklen_t;
00832 #else
00833 typedef int socklen_t;
00834 #endif
00835 #endif
00836 #endif
00837 #endif
00838 
00839 #ifdef  __hpux
00840 #ifdef  mutable
00841 /* #undef  mutable */
00842 #endif
00843 #endif
00844 
00845 #if defined(AF_INET6) && defined(HAVE_INET_PTON)
00846 #define CCXX_IPV6
00847 #endif
00848 
00849 #define CCXX_MULTIFAMILY_IP
00850 
00851 
00852 
00853 
00854 #ifndef HAVE_BOOL_TYPE
00855 typedef enum { true=1, false=0 } bool;
00856 #endif
00857 
00858 
00859 
00860 
00861 
00862 #ifndef CCXX_EXCEPTIONS
00863 /* disable HAVE_EXCEPTION */
00864 #ifdef  HAVE_EXCEPTION
00865 #define  HAVE_EXCEPTION 1
00866 #endif
00867 /* throw - replacement to throw an exception */
00868 #define THROW(x) abort()
00869 /* throw - replacement to declare an exception */
00870 #define THROWS(x)
00871 /* throw - for empty list */
00872 #define NEW_THROWS
00873 #define THROWS_EMPTY
00874 /*
00875  * work around dangeling if/else combinations:
00876  */
00877 #else
00878 #define THROW(x) throw x
00879 #define THROWS(x) throw(x)
00880 #define NEW_THROWS throw()
00881 #define THROWS_EMPTY throw()
00882 #endif
00883 
00884 
00885 
00886 
00887 #ifdef CCXX_NAMESPACES
00888 #define USING(x) using namespace x;
00889 #else
00890 #define USING(x)
00891 #endif
00892 
00893 #ifdef  __KCC
00894 #define KAI_NONSTD_IOSTREAM 1
00895 #endif
00896 
00897 
00898 
00899 
00900 #ifdef  HAVE_SS_H
00901 #include <ss.h>
00902 #define COMMON_SECURE
00903 #endif
00904 
00905 #ifndef ETC_PREFIX
00906 #ifdef  WIN32
00907 #define ETC_PREFIX "/etc/"
00908 #endif
00909 
00910 #ifndef ETC_PREFIX
00911 #define ETC_PREFIX "/etc/"
00912 #endif
00913 #endif
00914 
00915 #endif
00916 
00917 
00918 
00919 
00920 
00921 #ifndef HAVE_FCNTL_H
00922 #ifdef HAVE_SYS_FCNTL_H
00923 #include <sys/fcntl.h>
00924 #endif
00925 #else
00926 #include <fcntl.h>
00927 #ifndef O_NDELAY
00928 #ifdef HAVE_SYS_FCNTL_H
00929 #include <sys/fcntl.h>
00930 #endif
00931 #endif
00932 #endif
00933 
00934 
00935 
00936 #if defined(HAVE_ENDIAN_H)
00937  #include <endian.h>
00938 #elif defined(HAVE_SYS_ISA_DEFS_H)
00939  #include <sys/isa_defs.h>
00940  #ifdef _LITTLE_ENDIAN
00941   #define       __BYTE_ORDER 1234
00942  #else
00943   #define       __BYTE_ORDER 4321
00944  #endif
00945  #if _ALIGNMENT_REQUIRED > 0
00946   #define       __BYTE_ALIGNMENT _MAX_ALIGNMENT
00947  #else
00948   #define       __BYTE_ALIGNMENT 1
00949  #endif
00950 #endif
00951 
00952 #ifndef __LITTLE_ENDIAN
00953 #define __LITTLE_ENDIAN 1234
00954 #define __BIG_ENDIAN 4321
00955 #endif
00956 
00957 #ifndef __BYTE_ORDER
00958 #define __BYTE_ORDER 1234
00959 #endif
00960 
00961 #ifndef __BYTE_ALIGNMENT
00962 #if defined(SPARC) || defined(sparc)
00963 #if defined(__arch64__) || defined(__sparcv9)
00964 #define __BYTE_ALIGNMENT 8
00965 #else
00966 #define __BYTE_ALIGNMENT 4
00967 #endif
00968 #endif
00969 #endif
00970 
00971 #ifndef __BYTE_ALIGNMENT
00972 #define __BYTE_ALIGNMENT 1
00973 #endif
00974 
00975 
00976 
00977 
00978 #ifdef HAVE_SIGACTION
00979 #ifdef HAVE_BSD_SIGNAL_H
00980 /* #undef HAVE_BSD_SIGNAL_H */
00981 #endif
00982 #endif
00983 
00984 /* Cause problem with Solaris... and perhaps Digital Unix?
00985   However, the autoconf test in ost_signal defines _POSIX_PTHREAD_SEMANTICS
00986  when trying to compile sigwait2. */
00987 
00988 #ifdef  HAVE_SIGWAIT2
00989 #ifndef _POSIX_PTHREAD_SEMANTICS
00990 #define _POSIX_PTHREAD_SEMANTICS
00991 #endif
00992 #endif
00993 
00994 #ifdef HAVE_BSD_SIGNAL_H
00995 #include <bsd/signal.h>
00996 #else
00997 #include <signal.h>
00998 #endif
00999 #ifndef SA_ONESHOT
01000 #define SA_ONESHOT SA_RESETHAND
01001 #endif
01002 
01003 
01004 
01005 
01006 #include <string.h>
01007 #ifdef HAVE_STRINGS_H
01008 #ifndef _AIX
01009 #include <strings.h>
01010 #endif
01011 #endif
01012 
01013 #ifdef HAVE_ALLOCA_H
01014 #include <alloca.h>
01015 #endif
01016 
01017 #ifndef HAVE_SNPRINTF
01018 #ifdef  WIN32
01019 #define snprintf        _snprintf
01020 #define vsnprintf       _vsnprintf
01021 #endif
01022 #endif
01023 
01024 #ifdef HAVE_STRCASECMP
01025 #ifndef stricmp
01026 #define stricmp(x,y) strcasecmp(x,y)
01027 #endif
01028 #ifndef strnicmp
01029 #define strnicmp(x,y,n) strncasecmp(x,y,n)
01030 #endif
01031 #ifndef stristr
01032 #define stristr(x, y) strcasestr(x,y)
01033 #endif
01034 #endif
01035 
01036 
01037 
01038 
01039 #ifdef HAVE_THREAD_H
01040 #include "/usr/include/thread.h"
01041 #if defined(i386) && defined(__svr4__) && !defined(__sun)
01042 #define _THR_UNIXWARE
01043 #endif
01044 #if defined(__SVR4) && defined(__sun)
01045 #define _THR_SUNOS5
01046 #else
01047 #if defined(__SVR4__) && defined(__SUN__)
01048 #define _THR_SUNOS5
01049 #endif
01050 #endif
01051 #endif
01052 
01053 #ifdef HAVE_WORKING_SYS_ATOMIC_H
01054 #include <sys/atomic.h>
01055 #define HAVE_ATOMIC
01056 #elif defined(HAVE_ATOMIC_AIX)
01057 #include <sys/atomic_op.h>
01058 #ifndef HAVE_ATOMIC
01059 #define HAVE_ATOMIC
01060 #endif
01061 #endif
01062 
01063 #if defined(__cplusplus)
01064 #if defined(HAVE_GCC_BITS_ATOMIC) || defined(HAVE_GCC_CXX_BITS_ATOMIC)
01065 #include <bits/atomicity.h>
01066 #define HAVE_ATOMIC
01067 #endif
01068 #endif
01069 
01070 #if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REENTRANT) )
01071 
01072 #ifdef  __QNX__
01073 #define __EXT_QNX
01074 #endif
01075 
01076 #include <pthread.h>
01077 
01078 #ifdef HAVE_PTHREAD_NP_H
01079 #include <pthread_np.h>
01080 #endif
01081 
01082 #ifdef HAVE_SEMAPHORE_H
01083 #include <semaphore.h>
01084 #endif
01085 #ifdef _POSIX_PRIORITY_SCHEDULING
01086 #ifdef HAVE_SCHED_H
01087 #include <sched.h>
01088 #else
01089 #ifdef HAVE_SYS_SCHED_H
01090 #include <sys/sched.h>
01091 #endif
01092 #endif
01093 #endif
01094 
01095 #define __PTHREAD_H__
01096 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01097 #ifdef  MUTEX_TYPE_COUNTING_FAST
01098 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01099 #endif
01100 #endif
01101 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01102 #ifdef  PTHREAD_MUTEX_RECURSIVE
01103 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01104 #endif
01105 #endif
01106 #ifndef HAVE_PTHREAD_MUTEXATTR_SETTYPE
01107 #if     HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
01108 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01109 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01110 #endif
01111 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_getkind_np(x, y)
01112 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_setkind_np(x, y)
01113 #endif
01114 #if     HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP
01115 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01116 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01117 #endif
01118 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_settype_np(x, y)
01119 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_gettype_np(x, y)
01120 #endif
01121 #endif
01122 
01123 #ifdef  HAVE_PTHREAD_MACH_THREAD_NP
01124 #define _THR_MACH
01125 #endif
01126 
01127 #ifndef HAVE_PTHREAD_YIELD
01128 #ifdef  HAVE_PTHREAD_YIELD_NP
01129 #define pthread_yield() pthread_yield_np()
01130 #define HAVE_PTHREAD_YIELD
01131 #endif
01132 #endif
01133 
01134 #ifndef HAVE_PTHREAD_YIELD
01135 #ifdef HAVE_PTHREAD_SCHED_YIELD
01136 #define pthread_yield() sched_yield()
01137 #define HAVE_PTHREAD_YIELD
01138 #endif
01139 #endif
01140 
01141 #ifndef HAVE_PTHREAD_DELAY
01142 #ifdef HAVE_PTHREAD_DELAY_NP
01143 #define HAVE_PTHREAD_DELAY
01144 #define pthread_delay(x) pthread_delay_np(x)
01145 #endif
01146 #if defined(HAVE_PTHREAD_NANOSLEEP)
01147 #ifndef HAVE_PTHREAD_DELAY
01148 #define HAVE_PTHREAD_DELAY
01149 #ifdef __FreeBSD__
01150 #ifdef __cplusplus
01151 extern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
01152 #endif
01153 #endif
01154 #define pthread_delay(x) nanosleep(x, NULL)
01155 #endif
01156 #endif
01157 #endif
01158 
01159 #ifdef HAVE_PTHREAD_ATTR_SETSTACK
01160 #ifndef PTHREAD_STACK_MIN
01161 #define PTHREAD_STACK_MIN 32768
01162 #endif
01163 #endif
01164 
01165 #ifndef HAVE_PTHREAD_CANCEL
01166 #ifdef SIGCANCEL
01167 #define CCXX_SIG_THREAD_CANCEL SIGCANCEL
01168 #else
01169 #define CCXX_SIG_THREAD_CANCEL SIGQUIT
01170 #endif
01171 #define pthread_cancel(x) pthread_kill(x, CCXX_SIG_THREAD_CANCEL)
01172 #define pthread_setcanceltype(x, y)
01173 #define pthread_setcancelstate(x, y)
01174 #endif
01175 
01176 #ifndef HAVE_PTHREAD_SETCANCELTYPE
01177 #ifdef HAVE_PTHREAD_SETCANCEL
01178 enum
01179 { PTHREAD_CANCEL_ASYNCHRONOUS = CANCEL_ON,
01180   PTHREAD_CANCEL_DEFERRED = CANCEL_OFF};
01181 enum
01182 { PTHREAD_CANCEL_ENABLE = CANCEL_ON,
01183   PTHREAD_CANCEL_DISABLE = CANCEL_OFF};
01184 #define pthread_setcancelstate(x, y) \
01185         (y == NULL) ? pthread_setcancel(x) : *y = pthread_setcancel
01186 #define pthread_setcanceltype(x, y) \
01187         (y == NULL) ? pthread_setasynccancel(x) | *y = pthread_setasynccancel(x)
01188 #else
01189 #define pthread_setcanceltype(x, y)
01190 #define pthread_setcancelstate(x, y)
01191 #endif
01192 #endif
01193 
01194 #ifdef  _AIX
01195 #ifdef  HAVE_PTHREAD_SUSPEND
01196 /* #undef  HAVE_PTHREAD_SUSPEND */
01197 #endif
01198 #endif
01199 
01200 #endif
01201 
01202 
01203 

Generated on Mon Feb 6 17:50:13 2006 for GNU CommonC++ by  doxygen 1.4.4