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