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