config.h.in revision 269257
1/* ldns/config.h.in. Generated from configure.ac by autoheader. */ 2 3/* Define if building universal (internal helper macro) */ 4#undef AC_APPLE_UNIVERSAL_BUILD 5 6/* Define to 1 if you have the <arpa/inet.h> header file. */ 7#undef HAVE_ARPA_INET_H 8 9/* Whether the C compiler accepts the "format" attribute */ 10#undef HAVE_ATTR_FORMAT 11 12/* Whether the C compiler accepts the "unused" attribute */ 13#undef HAVE_ATTR_UNUSED 14 15/* Define to 1 if you have the `b32_ntop' function. */ 16#undef HAVE_B32_NTOP 17 18/* Define to 1 if you have the `b32_pton' function. */ 19#undef HAVE_B32_PTON 20 21/* Define to 1 if you have the `b64_ntop' function. */ 22#undef HAVE_B64_NTOP 23 24/* Define to 1 if you have the `b64_pton' function. */ 25#undef HAVE_B64_PTON 26 27/* Define to 1 if you have the `bzero' function. */ 28#undef HAVE_BZERO 29 30/* Define to 1 if you have the `calloc' function. */ 31#undef HAVE_CALLOC 32 33/* Define to 1 if you have the `ctime_r' function. */ 34#undef HAVE_CTIME_R 35 36/* Is a CAFILE given at configure time */ 37#undef HAVE_DANE_CA_FILE 38 39/* Is a CAPATH given at configure time */ 40#undef HAVE_DANE_CA_PATH 41 42/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 43 don't. */ 44#undef HAVE_DECL_NID_SECP384R1 45 46/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 47 if you don't. */ 48#undef HAVE_DECL_NID_X9_62_PRIME256V1 49 50/* Define to 1 if you have the <dlfcn.h> header file. */ 51#undef HAVE_DLFCN_H 52 53/* Define to 1 if you have the `endprotoent' function. */ 54#undef HAVE_ENDPROTOENT 55 56/* Define to 1 if you have the `endservent' function. */ 57#undef HAVE_ENDSERVENT 58 59/* Define to 1 if you have the `EVP_sha256' function. */ 60#undef HAVE_EVP_SHA256 61 62/* Define to 1 if you have the `fcntl' function. */ 63#undef HAVE_FCNTL 64 65/* Define to 1 if you have the `fork' function. */ 66#undef HAVE_FORK 67 68/* Whether getaddrinfo is available */ 69#undef HAVE_GETADDRINFO 70 71/* Define to 1 if you have the <getopt.h> header file. */ 72#undef HAVE_GETOPT_H 73 74/* Define to 1 if you have the `gmtime_r' function. */ 75#undef HAVE_GMTIME_R 76 77/* If you have HMAC_CTX_init */ 78#undef HAVE_HMAC_CTX_INIT 79 80/* Define to 1 if you have the `inet_aton' function. */ 81#undef HAVE_INET_ATON 82 83/* Define to 1 if you have the `inet_ntop' function. */ 84#undef HAVE_INET_NTOP 85 86/* Define to 1 if you have the `inet_pton' function. */ 87#undef HAVE_INET_PTON 88 89/* define if you have inttypes.h */ 90#undef HAVE_INTTYPES_H 91 92/* if the function 'ioctlsocket' is available */ 93#undef HAVE_IOCTLSOCKET 94 95/* Define to 1 if you have the `isascii' function. */ 96#undef HAVE_ISASCII 97 98/* Define to 1 if you have the `isblank' function. */ 99#undef HAVE_ISBLANK 100 101/* Define to 1 if you have the `pcap' library (-lpcap). */ 102#undef HAVE_LIBPCAP 103 104/* Define to 1 if you have the `localtime_r' function. */ 105#undef HAVE_LOCALTIME_R 106 107/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 108 to 0 otherwise. */ 109#undef HAVE_MALLOC 110 111/* Define to 1 if you have the `memmove' function. */ 112#undef HAVE_MEMMOVE 113 114/* Define to 1 if you have the <memory.h> header file. */ 115#undef HAVE_MEMORY_H 116 117/* Define to 1 if you have the `memset' function. */ 118#undef HAVE_MEMSET 119 120/* Define to 1 if you have the <netdb.h> header file. */ 121#undef HAVE_NETDB_H 122 123/* Define to 1 if you have the <netinet/if_ether.h> header file. */ 124#undef HAVE_NETINET_IF_ETHER_H 125 126/* Define to 1 if you have the <netinet/igmp.h> header file. */ 127#undef HAVE_NETINET_IGMP_H 128 129/* Define to 1 if you have the <netinet/in.h> header file. */ 130#undef HAVE_NETINET_IN_H 131 132/* Define to 1 if you have the <netinet/in_systm.h> header file. */ 133#undef HAVE_NETINET_IN_SYSTM_H 134 135/* Define to 1 if you have the <netinet/ip6.h> header file. */ 136#undef HAVE_NETINET_IP6_H 137 138/* Define to 1 if you have the <netinet/ip_compat.h> header file. */ 139#undef HAVE_NETINET_IP_COMPAT_H 140 141/* Define to 1 if you have the <netinet/ip.h> header file. */ 142#undef HAVE_NETINET_IP_H 143 144/* Define to 1 if you have the <netinet/udp.h> header file. */ 145#undef HAVE_NETINET_UDP_H 146 147/* Define to 1 if you have the <net/ethernet.h> header file. */ 148#undef HAVE_NET_ETHERNET_H 149 150/* Define to 1 if you have the <net/if.h> header file. */ 151#undef HAVE_NET_IF_H 152 153/* Define to 1 if you have the <openssl/err.h> header file. */ 154#undef HAVE_OPENSSL_ERR_H 155 156/* Define to 1 if you have the <openssl/rand.h> header file. */ 157#undef HAVE_OPENSSL_RAND_H 158 159/* Define to 1 if you have the <openssl/ssl.h> header file. */ 160#undef HAVE_OPENSSL_SSL_H 161 162/* Define to 1 if you have the <pcap.h> header file. */ 163#undef HAVE_PCAP_H 164 165/* If available, contains the Python version number currently in use. */ 166#undef HAVE_PYTHON 167 168/* Define to 1 if you have the `random' function. */ 169#undef HAVE_RANDOM 170 171/* Define to 1 if your system has a GNU libc compatible `realloc' function, 172 and to 0 otherwise. */ 173#undef HAVE_REALLOC 174 175/* Define to 1 if you have the `sleep' function. */ 176#undef HAVE_SLEEP 177 178/* Define to 1 if you have the `snprintf' function. */ 179#undef HAVE_SNPRINTF 180 181/* Define if you have the SSL libraries installed. */ 182#undef HAVE_SSL 183 184/* Define to 1 if you have the <stdarg.h> header file. */ 185#undef HAVE_STDARG_H 186 187/* Define to 1 if stdbool.h conforms to C99. */ 188#undef HAVE_STDBOOL_H 189 190/* Define to 1 if you have the <stdint.h> header file. */ 191#undef HAVE_STDINT_H 192 193/* Define to 1 if you have the <stdlib.h> header file. */ 194#undef HAVE_STDLIB_H 195 196/* Define to 1 if you have the <strings.h> header file. */ 197#undef HAVE_STRINGS_H 198 199/* Define to 1 if you have the <string.h> header file. */ 200#undef HAVE_STRING_H 201 202/* Define to 1 if you have the `strlcpy' function. */ 203#undef HAVE_STRLCPY 204 205/* Define to 1 if you have the `strtoul' function. */ 206#undef HAVE_STRTOUL 207 208/* Define if you have SWIG libraries and header files. */ 209#undef HAVE_SWIG 210 211/* Define to 1 if you have the <sys/mount.h> header file. */ 212#undef HAVE_SYS_MOUNT_H 213 214/* Define to 1 if you have the <sys/param.h> header file. */ 215#undef HAVE_SYS_PARAM_H 216 217/* define if you have sys/socket.h */ 218#undef HAVE_SYS_SOCKET_H 219 220/* Define to 1 if you have the <sys/stat.h> header file. */ 221#undef HAVE_SYS_STAT_H 222 223/* define if you have sys/types.h */ 224#undef HAVE_SYS_TYPES_H 225 226/* Define to 1 if you have the `timegm' function. */ 227#undef HAVE_TIMEGM 228 229/* Define to 1 if you have the <time.h> header file. */ 230#undef HAVE_TIME_H 231 232/* define if you have unistd.h */ 233#undef HAVE_UNISTD_H 234 235/* Define to 1 if you have the `vfork' function. */ 236#undef HAVE_VFORK 237 238/* Define to 1 if you have the <vfork.h> header file. */ 239#undef HAVE_VFORK_H 240 241/* Define to 1 if you have the <winsock2.h> header file. */ 242#undef HAVE_WINSOCK2_H 243 244/* Define to 1 if `fork' works. */ 245#undef HAVE_WORKING_FORK 246 247/* Define to 1 if `vfork' works. */ 248#undef HAVE_WORKING_VFORK 249 250/* Define to 1 if you have the <ws2tcpip.h> header file. */ 251#undef HAVE_WS2TCPIP_H 252 253/* Define to 1 if the system has the type `_Bool'. */ 254#undef HAVE__BOOL 255 256/* Is a CAFILE given at configure time */ 257#undef LDNS_DANE_CA_FILE 258 259/* Is a CAPATH given at configure time */ 260#undef LDNS_DANE_CA_PATH 261 262/* Default trust anchor file */ 263#undef LDNS_TRUST_ANCHOR_FILE 264 265/* Define to the sub-directory in which libtool stores uninstalled libraries. 266 */ 267#undef LT_OBJDIR 268 269/* Define to the address where bug reports for this package should be sent. */ 270#undef PACKAGE_BUGREPORT 271 272/* Define to the full name of this package. */ 273#undef PACKAGE_NAME 274 275/* Define to the full name and version of this package. */ 276#undef PACKAGE_STRING 277 278/* Define to the one symbol short name of this package. */ 279#undef PACKAGE_TARNAME 280 281/* Define to the home page for this package. */ 282#undef PACKAGE_URL 283 284/* Define to the version of this package. */ 285#undef PACKAGE_VERSION 286 287/* Define this to enable RR type CDS. */ 288#undef RRTYPE_CDS 289 290/* Define this to enable RR type NINFO. */ 291#undef RRTYPE_NINFO 292 293/* Define this to enable RR type RKEY. */ 294#undef RRTYPE_RKEY 295 296/* Define this to enable RR type TA. */ 297#undef RRTYPE_TA 298 299/* Define this to enable RR type URI. */ 300#undef RRTYPE_URI 301 302/* The size of `time_t', as computed by sizeof. */ 303#undef SIZEOF_TIME_T 304 305/* Define to 1 if you have the ANSI C header files. */ 306#undef STDC_HEADERS 307 308/* Define this to enable messages to stderr. */ 309#undef STDERR_MSGS 310 311/* System configuration dir */ 312#undef SYSCONFDIR 313 314/* Define this to enable DANE support. */ 315#undef USE_DANE 316 317/* Define this to enable ECDSA support. */ 318#undef USE_ECDSA 319 320/* Define this to enable GOST support. */ 321#undef USE_GOST 322 323/* Define this to enable SHA256 and SHA512 support. */ 324#undef USE_SHA2 325 326/* Enable extensions on AIX 3, Interix. */ 327#ifndef _ALL_SOURCE 328# undef _ALL_SOURCE 329#endif 330/* Enable GNU extensions on systems that have them. */ 331#ifndef _GNU_SOURCE 332# undef _GNU_SOURCE 333#endif 334/* Enable threading extensions on Solaris. */ 335#ifndef _POSIX_PTHREAD_SEMANTICS 336# undef _POSIX_PTHREAD_SEMANTICS 337#endif 338/* Enable extensions on HP NonStop. */ 339#ifndef _TANDEM_SOURCE 340# undef _TANDEM_SOURCE 341#endif 342/* Enable general extensions on Solaris. */ 343#ifndef __EXTENSIONS__ 344# undef __EXTENSIONS__ 345#endif 346 347 348/* Whether the windows socket API is used */ 349#undef USE_WINSOCK 350 351/* the version of the windows API enabled */ 352#undef WINVER 353 354/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 355 significant byte first (like Motorola and SPARC, unlike Intel). */ 356#if defined AC_APPLE_UNIVERSAL_BUILD 357# if defined __BIG_ENDIAN__ 358# define WORDS_BIGENDIAN 1 359# endif 360#else 361# ifndef WORDS_BIGENDIAN 362# undef WORDS_BIGENDIAN 363# endif 364#endif 365 366/* Define to 1 if on MINIX. */ 367#undef _MINIX 368 369/* Define to 2 if the system does not provide POSIX.1 features except with 370 this defined. */ 371#undef _POSIX_1_SOURCE 372 373/* Define to 1 if you need to in order for `stat' and other things to work. */ 374#undef _POSIX_SOURCE 375 376/* Define to empty if `const' does not conform to ANSI C. */ 377#undef const 378 379/* in_addr_t */ 380#undef in_addr_t 381 382/* in_port_t */ 383#undef in_port_t 384 385/* Define to `__inline__' or `__inline' if that's what the C compiler 386 calls it, or to nothing if 'inline' is not supported under any name. */ 387#ifndef __cplusplus 388#undef inline 389#endif 390 391/* Define to `short' if <sys/types.h> does not define. */ 392#undef int16_t 393 394/* Define to `int' if <sys/types.h> does not define. */ 395#undef int32_t 396 397/* Define to `long long' if <sys/types.h> does not define. */ 398#undef int64_t 399 400/* Define to `char' if <sys/types.h> does not define. */ 401#undef int8_t 402 403/* Define to `size_t' if <sys/types.h> does not define. */ 404#undef intptr_t 405 406/* Define to rpl_malloc if the replacement function should be used. */ 407#undef malloc 408 409/* Define to `int' if <sys/types.h> does not define. */ 410#undef pid_t 411 412/* Define to rpl_realloc if the replacement function should be used. */ 413#undef realloc 414 415/* Define to `unsigned int' if <sys/types.h> does not define. */ 416#undef size_t 417 418/* Define to 'int' if not defined */ 419#undef socklen_t 420 421/* Fallback member name for socket family in struct sockaddr_storage */ 422#undef ss_family 423 424/* Define to `int' if <sys/types.h> does not define. */ 425#undef ssize_t 426 427/* Define to `unsigned short' if <sys/types.h> does not define. */ 428#undef uint16_t 429 430/* Define to `unsigned int' if <sys/types.h> does not define. */ 431#undef uint32_t 432 433/* Define to `unsigned long long' if <sys/types.h> does not define. */ 434#undef uint64_t 435 436/* Define to `unsigned char' if <sys/types.h> does not define. */ 437#undef uint8_t 438 439/* Define as `fork' if `vfork' does not work. */ 440#undef vfork 441 442 443#include <stdio.h> 444#include <string.h> 445#include <unistd.h> 446#include <assert.h> 447 448#ifndef LITTLE_ENDIAN 449#define LITTLE_ENDIAN 1234 450#endif 451 452#ifndef BIG_ENDIAN 453#define BIG_ENDIAN 4321 454#endif 455 456#ifndef BYTE_ORDER 457#ifdef WORDS_BIGENDIAN 458#define BYTE_ORDER BIG_ENDIAN 459#else 460#define BYTE_ORDER LITTLE_ENDIAN 461#endif /* WORDS_BIGENDIAN */ 462#endif /* BYTE_ORDER */ 463 464#if STDC_HEADERS 465#include <stdlib.h> 466#include <stddef.h> 467#endif 468 469#ifdef HAVE_STDINT_H 470#include <stdint.h> 471#endif 472 473#ifdef HAVE_SYS_SOCKET_H 474#include <sys/socket.h> 475#endif 476 477#ifdef HAVE_NETINET_IN_H 478#include <netinet/in.h> 479#endif 480 481#ifdef HAVE_ARPA_INET_H 482#include <arpa/inet.h> 483#endif 484 485#ifdef HAVE_WINSOCK2_H 486#include <winsock2.h> 487#endif 488 489#ifdef HAVE_WS2TCPIP_H 490#include <ws2tcpip.h> 491#endif 492 493 494/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 495#ifdef HAVE_WINSOCK2_H 496#define FD_SET_T (u_int) 497#else 498#define FD_SET_T 499#endif 500 501 502 503 504#ifdef __cplusplus 505extern "C" { 506#endif 507 508int ldns_b64_ntop(uint8_t const *src, size_t srclength, 509 char *target, size_t targsize); 510/** 511 * calculates the size needed to store the result of b64_ntop 512 */ 513/*@unused@*/ 514static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize) 515{ 516 return ((((srcsize + 2) / 3) * 4) + 1); 517} 518int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize); 519/** 520 * calculates the size needed to store the result of ldns_b64_pton 521 */ 522/*@unused@*/ 523static inline size_t ldns_b64_pton_calculate_size(size_t srcsize) 524{ 525 return (((((srcsize + 3) / 4) * 3)) + 1); 526} 527 528/** 529 * Given in dnssec_zone.c, also used in dnssec_sign.c:w 530 531 */ 532int ldns_dname_compare_v(const void *a, const void *b); 533 534#ifndef HAVE_SLEEP 535/* use windows sleep, in millisecs, instead */ 536#define sleep(x) Sleep((x)*1000) 537#endif 538 539#ifndef HAVE_RANDOM 540#define srandom(x) srand(x) 541#define random(x) rand(x) 542#endif 543 544#ifndef HAVE_TIMEGM 545#include <time.h> 546time_t timegm (struct tm *tm); 547#endif /* !TIMEGM */ 548#ifndef HAVE_GMTIME_R 549struct tm *gmtime_r(const time_t *timep, struct tm *result); 550#endif 551#ifndef HAVE_LOCALTIME_R 552struct tm *localtime_r(const time_t *timep, struct tm *result); 553#endif 554#ifndef HAVE_ISBLANK 555int isblank(int c); 556#endif /* !HAVE_ISBLANK */ 557#ifndef HAVE_ISASCII 558int isascii(int c); 559#endif /* !HAVE_ISASCII */ 560#ifndef HAVE_SNPRINTF 561#include <stdarg.h> 562int snprintf (char *str, size_t count, const char *fmt, ...); 563int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 564#endif /* HAVE_SNPRINTF */ 565#ifndef HAVE_INET_PTON 566int inet_pton(int af, const char* src, void* dst); 567#endif /* HAVE_INET_PTON */ 568#ifndef HAVE_INET_NTOP 569const char *inet_ntop(int af, const void *src, char *dst, size_t size); 570#endif 571#ifndef HAVE_INET_ATON 572int inet_aton(const char *cp, struct in_addr *addr); 573#endif 574#ifndef HAVE_MEMMOVE 575void *memmove(void *dest, const void *src, size_t n); 576#endif 577#ifndef HAVE_STRLCPY 578size_t strlcpy(char *dst, const char *src, size_t siz); 579#endif 580#ifdef __cplusplus 581} 582#endif 583#ifndef HAVE_GETADDRINFO 584#include "compat/fake-rfc2553.h" 585#endif 586#ifndef HAVE_STRTOUL 587#define strtoul (unsigned long)strtol 588#endif 589 590