config.h

Go to the documentation of this file.
00001 /* ldns/config.h.  Generated from config.h.in by configure.  */
00002 /* ldns/config.h.in.  Generated from configure.ac by autoheader.  */
00003 
00004 /* Define if building universal (internal helper macro) */
00005 /* #undef AC_APPLE_UNIVERSAL_BUILD */
00006 
00007 /* Define to 1 if you have the <arpa/inet.h> header file. */
00008 #define HAVE_ARPA_INET_H 1
00009 
00010 /* Whether the C compiler accepts the "format" attribute */
00011 #define HAVE_ATTR_FORMAT 1
00012 
00013 /* Whether the C compiler accepts the "unused" attribute */
00014 #define HAVE_ATTR_UNUSED 1
00015 
00016 /* Define to 1 if you have the `b32_ntop' function. */
00017 /* #undef HAVE_B32_NTOP */
00018 
00019 /* Define to 1 if you have the `b32_pton' function. */
00020 /* #undef HAVE_B32_PTON */
00021 
00022 /* Define to 1 if you have the `b64_ntop' function. */
00023 /* #undef HAVE_B64_NTOP */
00024 
00025 /* Define to 1 if you have the `b64_pton' function. */
00026 /* #undef HAVE_B64_PTON */
00027 
00028 /* Define to 1 if you have the `bzero' function. */
00029 #define HAVE_BZERO 1
00030 
00031 /* Define to 1 if you have the `calloc' function. */
00032 #define HAVE_CALLOC 1
00033 
00034 /* Define to 1 if you have the `ctime_r' function. */
00035 #define HAVE_CTIME_R 1
00036 
00037 /* Is a CAFILE given at configure time */
00038 #define HAVE_DANE_CA_FILE 1
00039 
00040 /* Is a CAPATH given at configure time */
00041 #define HAVE_DANE_CA_PATH 1
00042 
00043 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
00044    don't. */
00045 /* #undef HAVE_DECL_NID_SECP384R1 */
00046 
00047 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
00048    if you don't. */
00049 /* #undef HAVE_DECL_NID_X9_62_PRIME256V1 */
00050 
00051 /* Define to 1 if you have the <dlfcn.h> header file. */
00052 #define HAVE_DLFCN_H 1
00053 
00054 /* Define to 1 if you have the `endprotoent' function. */
00055 #define HAVE_ENDPROTOENT 1
00056 
00057 /* Define to 1 if you have the `endservent' function. */
00058 #define HAVE_ENDSERVENT 1
00059 
00060 /* Define to 1 if you have the `EVP_sha256' function. */
00061 #define HAVE_EVP_SHA256 1
00062 
00063 /* Define to 1 if you have the `fcntl' function. */
00064 #define HAVE_FCNTL 1
00065 
00066 /* Define to 1 if you have the `fork' function. */
00067 #define HAVE_FORK 1
00068 
00069 /* Whether getaddrinfo is available */
00070 #define HAVE_GETADDRINFO 1
00071 
00072 /* Define to 1 if you have the <getopt.h> header file. */
00073 #define HAVE_GETOPT_H 1
00074 
00075 /* Define to 1 if you have the `gmtime_r' function. */
00076 #define HAVE_GMTIME_R 1
00077 
00078 /* If you have HMAC_CTX_init */
00079 #define HAVE_HMAC_CTX_INIT 1
00080 
00081 /* Define to 1 if you have the `inet_aton' function. */
00082 #define HAVE_INET_ATON 1
00083 
00084 /* Define to 1 if you have the `inet_ntop' function. */
00085 #define HAVE_INET_NTOP 1
00086 
00087 /* Define to 1 if you have the `inet_pton' function. */
00088 #define HAVE_INET_PTON 1
00089 
00090 /* Define to 1 if the system has the type `intptr_t'. */
00091 #define HAVE_INTPTR_T 1
00092 
00093 /* define if you have inttypes.h */
00094 #define HAVE_INTTYPES_H 1
00095 
00096 /* if the function 'ioctlsocket' is available */
00097 /* #undef HAVE_IOCTLSOCKET */
00098 
00099 /* Define to 1 if you have the `isascii' function. */
00100 #define HAVE_ISASCII 1
00101 
00102 /* Define to 1 if you have the `isblank' function. */
00103 #define HAVE_ISBLANK 1
00104 
00105 /* Define to 1 if you have the `pcap' library (-lpcap). */
00106 /* #undef HAVE_LIBPCAP */
00107 
00108 /* Define to 1 if you have the `localtime_r' function. */
00109 #define HAVE_LOCALTIME_R 1
00110 
00111 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
00112    to 0 otherwise. */
00113 #define HAVE_MALLOC 1
00114 
00115 /* Define to 1 if you have the `memmove' function. */
00116 #define HAVE_MEMMOVE 1
00117 
00118 /* Define to 1 if you have the <memory.h> header file. */
00119 #define HAVE_MEMORY_H 1
00120 
00121 /* Define to 1 if you have the `memset' function. */
00122 #define HAVE_MEMSET 1
00123 
00124 /* Define to 1 if you have the <netdb.h> header file. */
00125 #define HAVE_NETDB_H 1
00126 
00127 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
00128 /* #undef HAVE_NETINET_IF_ETHER_H */
00129 
00130 /* Define to 1 if you have the <netinet/igmp.h> header file. */
00131 /* #undef HAVE_NETINET_IGMP_H */
00132 
00133 /* Define to 1 if you have the <netinet/in.h> header file. */
00134 #define HAVE_NETINET_IN_H 1
00135 
00136 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
00137 /* #undef HAVE_NETINET_IN_SYSTM_H */
00138 
00139 /* Define to 1 if you have the <netinet/ip6.h> header file. */
00140 /* #undef HAVE_NETINET_IP6_H */
00141 
00142 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
00143 /* #undef HAVE_NETINET_IP_COMPAT_H */
00144 
00145 /* Define to 1 if you have the <netinet/ip.h> header file. */
00146 /* #undef HAVE_NETINET_IP_H */
00147 
00148 /* Define to 1 if you have the <netinet/udp.h> header file. */
00149 /* #undef HAVE_NETINET_UDP_H */
00150 
00151 /* Define to 1 if you have the <net/ethernet.h> header file. */
00152 /* #undef HAVE_NET_ETHERNET_H */
00153 
00154 /* Define to 1 if you have the <net/if.h> header file. */
00155 /* #undef HAVE_NET_IF_H */
00156 
00157 /* Define to 1 if you have the <openssl/err.h> header file. */
00158 #define HAVE_OPENSSL_ERR_H 1
00159 
00160 /* Define to 1 if you have the <openssl/rand.h> header file. */
00161 #define HAVE_OPENSSL_RAND_H 1
00162 
00163 /* Define to 1 if you have the <openssl/ssl.h> header file. */
00164 #define HAVE_OPENSSL_SSL_H 1
00165 
00166 /* Define to 1 if you have the <pcap.h> header file. */
00167 /* #undef HAVE_PCAP_H */
00168 
00169 /* If available, contains the Python version number currently in use. */
00170 #define HAVE_PYTHON "2.4"
00171 
00172 /* Define to 1 if you have the `random' function. */
00173 #define HAVE_RANDOM 1
00174 
00175 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
00176    and to 0 otherwise. */
00177 #define HAVE_REALLOC 1
00178 
00179 /* Define to 1 if you have the `sleep' function. */
00180 #define HAVE_SLEEP 1
00181 
00182 /* Define to 1 if you have the `snprintf' function. */
00183 #define HAVE_SNPRINTF 1
00184 
00185 /* Define if you have the SSL libraries installed. */
00186 #define HAVE_SSL 
00187 
00188 /* Define to 1 if you have the <stdarg.h> header file. */
00189 #define HAVE_STDARG_H 1
00190 
00191 /* Define to 1 if stdbool.h conforms to C99. */
00192 #define HAVE_STDBOOL_H 1
00193 
00194 /* Define to 1 if you have the <stdint.h> header file. */
00195 #define HAVE_STDINT_H 1
00196 
00197 /* Define to 1 if you have the <stdlib.h> header file. */
00198 #define HAVE_STDLIB_H 1
00199 
00200 /* Define to 1 if you have the <strings.h> header file. */
00201 #define HAVE_STRINGS_H 1
00202 
00203 /* Define to 1 if you have the <string.h> header file. */
00204 #define HAVE_STRING_H 1
00205 
00206 /* Define to 1 if you have the `strlcpy' function. */
00207 /* #undef HAVE_STRLCPY */
00208 
00209 /* Define to 1 if you have the `strtoul' function. */
00210 #define HAVE_STRTOUL 1
00211 
00212 /* Define if you have SWIG libraries and header files. */
00213 #define HAVE_SWIG 1
00214 
00215 /* Define to 1 if you have the <sys/mount.h> header file. */
00216 #define HAVE_SYS_MOUNT_H 1
00217 
00218 /* Define to 1 if you have the <sys/param.h> header file. */
00219 #define HAVE_SYS_PARAM_H 1
00220 
00221 /* define if you have sys/socket.h */
00222 #define HAVE_SYS_SOCKET_H 1
00223 
00224 /* Define to 1 if you have the <sys/stat.h> header file. */
00225 #define HAVE_SYS_STAT_H 1
00226 
00227 /* define if you have sys/types.h */
00228 #define HAVE_SYS_TYPES_H 1
00229 
00230 /* Define to 1 if you have the `timegm' function. */
00231 #define HAVE_TIMEGM 1
00232 
00233 /* Define to 1 if you have the <time.h> header file. */
00234 #define HAVE_TIME_H 1
00235 
00236 /* define if you have unistd.h */
00237 #define HAVE_UNISTD_H 1
00238 
00239 /* Define to 1 if you have the `vfork' function. */
00240 #define HAVE_VFORK 1
00241 
00242 /* Define to 1 if you have the <vfork.h> header file. */
00243 /* #undef HAVE_VFORK_H */
00244 
00245 /* Define to 1 if you have the <winsock2.h> header file. */
00246 /* #undef HAVE_WINSOCK2_H */
00247 
00248 /* Define to 1 if `fork' works. */
00249 #define HAVE_WORKING_FORK 1
00250 
00251 /* Define to 1 if `vfork' works. */
00252 #define HAVE_WORKING_VFORK 1
00253 
00254 /* Define to 1 if you have the <ws2tcpip.h> header file. */
00255 /* #undef HAVE_WS2TCPIP_H */
00256 
00257 /* Define to 1 if the system has the type `_Bool'. */
00258 #define HAVE__BOOL 1
00259 
00260 /* Is a CAFILE given at configure time */
00261 #define LDNS_DANE_CA_FILE "/etc/pki/tls/certs/ca-bundle.trust.crt"
00262 
00263 /* Is a CAPATH given at configure time */
00264 #define LDNS_DANE_CA_PATH "/etc/pki/tls/certs/"
00265 
00266 /* Default trust anchor file */
00267 #define LDNS_TRUST_ANCHOR_FILE "/etc/unbound/root.key"
00268 
00269 /* Define to the sub-directory in which libtool stores uninstalled libraries.
00270    */
00271 #define LT_OBJDIR ".libs/"
00272 
00273 /* Define to the address where bug reports for this package should be sent. */
00274 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
00275 
00276 /* Define to the full name of this package. */
00277 #define PACKAGE_NAME "ldns"
00278 
00279 /* Define to the full name and version of this package. */
00280 #define PACKAGE_STRING "ldns 1.6.16"
00281 
00282 /* Define to the one symbol short name of this package. */
00283 #define PACKAGE_TARNAME "libdns"
00284 
00285 /* Define to the home page for this package. */
00286 #define PACKAGE_URL ""
00287 
00288 /* Define to the version of this package. */
00289 #define PACKAGE_VERSION "1.6.16"
00290 
00291 /* The size of `time_t', as computed by sizeof. */
00292 #define SIZEOF_TIME_T 8
00293 
00294 /* Define to 1 if you have the ANSI C header files. */
00295 #define STDC_HEADERS 1
00296 
00297 /* System configuration dir */
00298 #define SYSCONFDIR sysconfdir
00299 
00300 /* Define this to enable ECDSA support. */
00301 /* #undef USE_ECDSA */
00302 
00303 /* Define this to enable GOST support. */
00304 /* #undef USE_GOST */
00305 
00306 /* Define this to enable SHA256 and SHA512 support. */
00307 #define USE_SHA2 1
00308 
00309 /* Enable extensions on AIX 3, Interix.  */
00310 #ifndef _ALL_SOURCE
00311 # define _ALL_SOURCE 1
00312 #endif
00313 /* Enable GNU extensions on systems that have them.  */
00314 #ifndef _GNU_SOURCE
00315 # define _GNU_SOURCE 1
00316 #endif
00317 /* Enable threading extensions on Solaris.  */
00318 #ifndef _POSIX_PTHREAD_SEMANTICS
00319 # define _POSIX_PTHREAD_SEMANTICS 1
00320 #endif
00321 /* Enable extensions on HP NonStop.  */
00322 #ifndef _TANDEM_SOURCE
00323 # define _TANDEM_SOURCE 1
00324 #endif
00325 /* Enable general extensions on Solaris.  */
00326 #ifndef __EXTENSIONS__
00327 # define __EXTENSIONS__ 1
00328 #endif
00329 
00330 
00331 /* Whether the windows socket API is used */
00332 /* #undef USE_WINSOCK */
00333 
00334 /* the version of the windows API enabled */
00335 #define WINVER 0x0502
00336 
00337 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
00338    significant byte first (like Motorola and SPARC, unlike Intel). */
00339 #if defined AC_APPLE_UNIVERSAL_BUILD
00340 # if defined __BIG_ENDIAN__
00341 #  define WORDS_BIGENDIAN 1
00342 # endif
00343 #else
00344 # ifndef WORDS_BIGENDIAN
00345 /* #  undef WORDS_BIGENDIAN */
00346 # endif
00347 #endif
00348 
00349 /* Define to 1 if on MINIX. */
00350 /* #undef _MINIX */
00351 
00352 /* Define to 2 if the system does not provide POSIX.1 features except with
00353    this defined. */
00354 /* #undef _POSIX_1_SOURCE */
00355 
00356 /* Define to 1 if you need to in order for `stat' and other things to work. */
00357 /* #undef _POSIX_SOURCE */
00358 
00359 /* Define to empty if `const' does not conform to ANSI C. */
00360 /* #undef const */
00361 
00362 /* in_addr_t */
00363 /* #undef in_addr_t */
00364 
00365 /* in_port_t */
00366 /* #undef in_port_t */
00367 
00368 /* Define to `__inline__' or `__inline' if that's what the C compiler
00369    calls it, or to nothing if 'inline' is not supported under any name.  */
00370 #ifndef __cplusplus
00371 /* #undef inline */
00372 #endif
00373 
00374 /* Define to `short' if <sys/types.h> does not define. */
00375 /* #undef int16_t */
00376 
00377 /* Define to `int' if <sys/types.h> does not define. */
00378 /* #undef int32_t */
00379 
00380 /* Define to `long long' if <sys/types.h> does not define. */
00381 /* #undef int64_t */
00382 
00383 /* Define to `char' if <sys/types.h> does not define. */
00384 /* #undef int8_t */
00385 
00386 /* Define to the type of a signed integer type wide enough to hold a pointer,
00387    if such a type exists, and if the system does not define it. */
00388 /* #undef intptr_t */
00389 
00390 /* Define to rpl_malloc if the replacement function should be used. */
00391 /* #undef malloc */
00392 
00393 /* Define to `int' if <sys/types.h> does not define. */
00394 /* #undef pid_t */
00395 
00396 /* Define to rpl_realloc if the replacement function should be used. */
00397 /* #undef realloc */
00398 
00399 /* Define to `unsigned int' if <sys/types.h> does not define. */
00400 /* #undef size_t */
00401 
00402 /* Define to 'int' if not defined */
00403 /* #undef socklen_t */
00404 
00405 /* Fallback member name for socket family in struct sockaddr_storage */
00406 /* #undef ss_family */
00407 
00408 /* Define to `int' if <sys/types.h> does not define. */
00409 /* #undef ssize_t */
00410 
00411 /* Define to `unsigned short' if <sys/types.h> does not define. */
00412 /* #undef uint16_t */
00413 
00414 /* Define to `unsigned int' if <sys/types.h> does not define. */
00415 /* #undef uint32_t */
00416 
00417 /* Define to `unsigned long long' if <sys/types.h> does not define. */
00418 /* #undef uint64_t */
00419 
00420 /* Define to `unsigned char' if <sys/types.h> does not define. */
00421 /* #undef uint8_t */
00422 
00423 /* Define as `fork' if `vfork' does not work. */
00424 /* #undef vfork */
00425 
00426 
00427 #include <stdio.h>
00428 #include <string.h>
00429 #include <unistd.h>
00430 #include <assert.h>
00431 
00432 #ifndef LITTLE_ENDIAN
00433 #define LITTLE_ENDIAN 1234
00434 #endif
00435 
00436 #ifndef BIG_ENDIAN
00437 #define BIG_ENDIAN 4321
00438 #endif
00439 
00440 #ifndef BYTE_ORDER
00441 #ifdef WORDS_BIGENDIAN
00442 #define BYTE_ORDER BIG_ENDIAN
00443 #else
00444 #define BYTE_ORDER LITTLE_ENDIAN
00445 #endif /* WORDS_BIGENDIAN */
00446 #endif /* BYTE_ORDER */
00447 
00448 #if STDC_HEADERS
00449 #include <stdlib.h>
00450 #include <stddef.h>
00451 #endif
00452 
00453 #ifdef HAVE_STDINT_H
00454 #include <stdint.h>
00455 #endif
00456 
00457 #ifdef HAVE_SYS_SOCKET_H
00458 #include <sys/socket.h>
00459 #endif
00460 
00461 #ifdef HAVE_NETINET_IN_H
00462 #include <netinet/in.h>
00463 #endif
00464 
00465 #ifdef HAVE_ARPA_INET_H
00466 #include <arpa/inet.h>
00467 #endif
00468 
00469 #ifdef HAVE_WINSOCK2_H
00470 #include <winsock2.h>
00471 #endif
00472 
00473 #ifdef HAVE_WS2TCPIP_H
00474 #include <ws2tcpip.h>
00475 #endif
00476 
00477 
00478 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
00479 #ifdef HAVE_WINSOCK2_H
00480 #define FD_SET_T (u_int)
00481 #else
00482 #define FD_SET_T 
00483 #endif
00484 
00485 
00486 
00487 
00488 #ifdef __cplusplus
00489 extern "C" {
00490 #endif
00491 
00492 #ifndef B64_PTON
00493 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
00494                   char *target, size_t targsize);
00498 /*@unused@*/
00499 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
00500 {
00501         return ((((srcsize + 2) / 3) * 4) + 1);
00502 }
00503 #endif /* !B64_PTON */
00504 #ifndef B64_NTOP
00505 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
00509 /*@unused@*/
00510 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
00511 {
00512         return (((((srcsize + 3) / 4) * 3)) + 1);
00513 }
00514 #endif /* !B64_NTOP */
00515 
00516 #ifndef HAVE_SLEEP
00517 /* use windows sleep, in millisecs, instead */
00518 #define sleep(x) Sleep((x)*1000)
00519 #endif
00520 
00521 #ifndef HAVE_RANDOM
00522 #define srandom(x) srand(x)
00523 #define random(x) rand(x)
00524 #endif
00525 
00526 #ifndef HAVE_TIMEGM
00527 #include <time.h>
00528 time_t timegm (struct tm *tm);
00529 #endif /* !TIMEGM */
00530 #ifndef HAVE_GMTIME_R
00531 struct tm *gmtime_r(const time_t *timep, struct tm *result);
00532 #endif
00533 #ifndef HAVE_LOCALTIME_R
00534 struct tm *localtime_r(const time_t *timep, struct tm *result);
00535 #endif
00536 #ifndef HAVE_ISBLANK
00537 int isblank(int c);
00538 #endif /* !HAVE_ISBLANK */
00539 #ifndef HAVE_ISASCII
00540 int isascii(int c);
00541 #endif /* !HAVE_ISASCII */
00542 #ifndef HAVE_SNPRINTF
00543 #include <stdarg.h>
00544 int snprintf (char *str, size_t count, const char *fmt, ...);
00545 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
00546 #endif /* HAVE_SNPRINTF */
00547 #ifndef HAVE_INET_PTON
00548 int inet_pton(int af, const char* src, void* dst);
00549 #endif /* HAVE_INET_PTON */
00550 #ifndef HAVE_INET_NTOP
00551 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
00552 #endif
00553 #ifndef HAVE_INET_ATON
00554 int inet_aton(const char *cp, struct in_addr *addr);
00555 #endif
00556 #ifndef HAVE_MEMMOVE
00557 void *memmove(void *dest, const void *src, size_t n);
00558 #endif
00559 #ifndef HAVE_STRLCPY
00560 size_t strlcpy(char *dst, const char *src, size_t siz);
00561 #endif
00562 #ifdef __cplusplus
00563 }
00564 #endif
00565 #ifndef HAVE_GETADDRINFO
00566 #include "compat/fake-rfc2553.h"
00567 #endif
00568 #ifndef HAVE_STRTOUL
00569 #define strtoul (unsigned long)strtol
00570 #endif
00571 

Generated on Wed Dec 19 16:56:49 2012 for ldns by  doxygen 1.4.7