1 /* ldns/config.h.in. Generated from configure.ac by autoheader. */
3 /* Define if building universal (internal helper macro) */
4 #undef AC_APPLE_UNIVERSAL_BUILD
6 /* Define to 1 if you have the <arpa/inet.h> header file. */
7 #undef HAVE_ARPA_INET_H
9 /* Whether the C compiler accepts the "format" attribute */
10 #undef HAVE_ATTR_FORMAT
12 /* Whether the C compiler accepts the "unused" attribute */
13 #undef HAVE_ATTR_UNUSED
15 /* Define to 1 if you have the `b32_ntop' function. */
18 /* Define to 1 if you have the `b32_pton' function. */
21 /* Define to 1 if you have the `b64_ntop' function. */
24 /* Define to 1 if you have the `b64_pton' function. */
27 /* Define to 1 if you have the `bzero' function. */
30 /* Define to 1 if you have the `calloc' function. */
33 /* Define to 1 if you have the `ctime_r' function. */
36 /* Is a CAFILE given at configure time */
37 #undef HAVE_DANE_CA_FILE
39 /* Is a CAPATH given at configure time */
40 #undef HAVE_DANE_CA_PATH
42 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
44 #undef HAVE_DECL_NID_SECP384R1
46 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
48 #undef HAVE_DECL_NID_X9_62_PRIME256V1
50 /* Define to 1 if you have the <dlfcn.h> header file. */
53 /* Define to 1 if you have the `endprotoent' function. */
54 #undef HAVE_ENDPROTOENT
56 /* Define to 1 if you have the `endservent' function. */
57 #undef HAVE_ENDSERVENT
59 /* Define to 1 if you have the `EVP_sha256' function. */
60 #undef HAVE_EVP_SHA256
62 /* Define to 1 if you have the `fcntl' function. */
65 /* Define to 1 if you have the `fork' function. */
68 /* Whether getaddrinfo is available */
69 #undef HAVE_GETADDRINFO
71 /* Define to 1 if you have the <getopt.h> header file. */
74 /* Define to 1 if you have the `gmtime_r' function. */
77 /* If you have HMAC_CTX_init */
78 #undef HAVE_HMAC_CTX_INIT
80 /* Define to 1 if you have the `inet_aton' function. */
83 /* Define to 1 if you have the `inet_ntop' function. */
86 /* Define to 1 if you have the `inet_pton' function. */
89 /* define if you have inttypes.h */
90 #undef HAVE_INTTYPES_H
92 /* if the function 'ioctlsocket' is available */
93 #undef HAVE_IOCTLSOCKET
95 /* Define to 1 if you have the `isascii' function. */
98 /* Define to 1 if you have the `isblank' function. */
101 /* Define to 1 if you have the `pcap' library (-lpcap). */
104 /* Define to 1 if you have the `localtime_r' function. */
105 #undef HAVE_LOCALTIME_R
107 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
111 /* Define to 1 if you have the `memmove' function. */
114 /* Define to 1 if you have the <memory.h> header file. */
117 /* Define to 1 if you have the `memset' function. */
120 /* Define to 1 if you have the <netdb.h> header file. */
123 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
124 #undef HAVE_NETINET_IF_ETHER_H
126 /* Define to 1 if you have the <netinet/igmp.h> header file. */
127 #undef HAVE_NETINET_IGMP_H
129 /* Define to 1 if you have the <netinet/in.h> header file. */
130 #undef HAVE_NETINET_IN_H
132 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
133 #undef HAVE_NETINET_IN_SYSTM_H
135 /* Define to 1 if you have the <netinet/ip6.h> header file. */
136 #undef HAVE_NETINET_IP6_H
138 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
139 #undef HAVE_NETINET_IP_COMPAT_H
141 /* Define to 1 if you have the <netinet/ip.h> header file. */
142 #undef HAVE_NETINET_IP_H
144 /* Define to 1 if you have the <netinet/udp.h> header file. */
145 #undef HAVE_NETINET_UDP_H
147 /* Define to 1 if you have the <net/ethernet.h> header file. */
148 #undef HAVE_NET_ETHERNET_H
150 /* Define to 1 if you have the <net/if.h> header file. */
153 /* Define to 1 if you have the <openssl/err.h> header file. */
154 #undef HAVE_OPENSSL_ERR_H
156 /* Define to 1 if you have the <openssl/rand.h> header file. */
157 #undef HAVE_OPENSSL_RAND_H
159 /* Define to 1 if you have the <openssl/ssl.h> header file. */
160 #undef HAVE_OPENSSL_SSL_H
162 /* Define to 1 if you have the <pcap.h> header file. */
165 /* If available, contains the Python version number currently in use. */
168 /* Define to 1 if you have the `random' function. */
171 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
172 and to 0 otherwise. */
175 /* Define to 1 if you have the `sleep' function. */
178 /* Define to 1 if you have the `snprintf' function. */
181 /* Define if you have the SSL libraries installed. */
184 /* Define to 1 if you have the <stdarg.h> header file. */
187 /* Define to 1 if stdbool.h conforms to C99. */
188 #undef HAVE_STDBOOL_H
190 /* Define to 1 if you have the <stdint.h> header file. */
193 /* Define to 1 if you have the <stdlib.h> header file. */
196 /* Define to 1 if you have the <strings.h> header file. */
197 #undef HAVE_STRINGS_H
199 /* Define to 1 if you have the <string.h> header file. */
202 /* Define to 1 if you have the `strlcpy' function. */
205 /* Define to 1 if you have the `strtoul' function. */
208 /* Define if you have SWIG libraries and header files. */
211 /* Define to 1 if you have the <sys/mount.h> header file. */
212 #undef HAVE_SYS_MOUNT_H
214 /* Define to 1 if you have the <sys/param.h> header file. */
215 #undef HAVE_SYS_PARAM_H
217 /* define if you have sys/socket.h */
218 #undef HAVE_SYS_SOCKET_H
220 /* Define to 1 if you have the <sys/stat.h> header file. */
221 #undef HAVE_SYS_STAT_H
223 /* define if you have sys/types.h */
224 #undef HAVE_SYS_TYPES_H
226 /* Define to 1 if you have the `timegm' function. */
229 /* Define to 1 if you have the <time.h> header file. */
232 /* define if you have unistd.h */
235 /* Define to 1 if you have the `vfork' function. */
238 /* Define to 1 if you have the <vfork.h> header file. */
241 /* Define to 1 if you have the <winsock2.h> header file. */
242 #undef HAVE_WINSOCK2_H
244 /* Define to 1 if `fork' works. */
245 #undef HAVE_WORKING_FORK
247 /* Define to 1 if `vfork' works. */
248 #undef HAVE_WORKING_VFORK
250 /* Define to 1 if you have the <ws2tcpip.h> header file. */
251 #undef HAVE_WS2TCPIP_H
253 /* Define to 1 if the system has the type `_Bool'. */
256 /* Is a CAFILE given at configure time */
257 #undef LDNS_DANE_CA_FILE
259 /* Is a CAPATH given at configure time */
260 #undef LDNS_DANE_CA_PATH
262 /* Default trust anchor file */
263 #undef LDNS_TRUST_ANCHOR_FILE
265 /* Define to the sub-directory in which libtool stores uninstalled libraries.
269 /* Define to the address where bug reports for this package should be sent. */
270 #undef PACKAGE_BUGREPORT
272 /* Define to the full name of this package. */
275 /* Define to the full name and version of this package. */
276 #undef PACKAGE_STRING
278 /* Define to the one symbol short name of this package. */
279 #undef PACKAGE_TARNAME
281 /* Define to the home page for this package. */
284 /* Define to the version of this package. */
285 #undef PACKAGE_VERSION
287 /* Define this to enable RR type CDS. */
290 /* Define this to enable RR type NINFO. */
293 /* Define this to enable RR type RKEY. */
296 /* Define this to enable RR type TA. */
299 /* Define this to enable RR type URI. */
302 /* The size of `time_t', as computed by sizeof. */
305 /* Define to 1 if you have the ANSI C header files. */
308 /* Define this to enable messages to stderr. */
311 /* System configuration dir */
314 /* Define this to enable DANE support. */
317 /* Define this to enable ECDSA support. */
320 /* Define this to enable GOST support. */
323 /* Define this to enable SHA256 and SHA512 support. */
326 /* Enable extensions on AIX 3, Interix. */
330 /* Enable GNU extensions on systems that have them. */
334 /* Enable threading extensions on Solaris. */
335 #ifndef _POSIX_PTHREAD_SEMANTICS
336 # undef _POSIX_PTHREAD_SEMANTICS
338 /* Enable extensions on HP NonStop. */
339 #ifndef _TANDEM_SOURCE
340 # undef _TANDEM_SOURCE
342 /* Enable general extensions on Solaris. */
343 #ifndef __EXTENSIONS__
344 # undef __EXTENSIONS__
348 /* Whether the windows socket API is used */
351 /* the version of the windows API enabled */
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
361 # ifndef WORDS_BIGENDIAN
362 # undef WORDS_BIGENDIAN
366 /* Define to 1 if on MINIX. */
369 /* Define to 2 if the system does not provide POSIX.1 features except with
371 #undef _POSIX_1_SOURCE
373 /* Define to 1 if you need to in order for `stat' and other things to work. */
376 /* Define to empty if `const' does not conform to ANSI C. */
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. */
391 /* Define to `short' if <sys/types.h> does not define. */
394 /* Define to `int' if <sys/types.h> does not define. */
397 /* Define to `long long' if <sys/types.h> does not define. */
400 /* Define to `char' if <sys/types.h> does not define. */
403 /* Define to `size_t' if <sys/types.h> does not define. */
406 /* Define to rpl_malloc if the replacement function should be used. */
409 /* Define to `int' if <sys/types.h> does not define. */
412 /* Define to rpl_realloc if the replacement function should be used. */
415 /* Define to `unsigned int' if <sys/types.h> does not define. */
418 /* Define to 'int' if not defined */
421 /* Fallback member name for socket family in struct sockaddr_storage */
424 /* Define to `int' if <sys/types.h> does not define. */
427 /* Define to `unsigned short' if <sys/types.h> does not define. */
430 /* Define to `unsigned int' if <sys/types.h> does not define. */
433 /* Define to `unsigned long long' if <sys/types.h> does not define. */
436 /* Define to `unsigned char' if <sys/types.h> does not define. */
439 /* Define as `fork' if `vfork' does not work. */
448 #ifndef LITTLE_ENDIAN
449 #define LITTLE_ENDIAN 1234
453 #define BIG_ENDIAN 4321
457 #ifdef WORDS_BIGENDIAN
458 #define BYTE_ORDER BIG_ENDIAN
460 #define BYTE_ORDER LITTLE_ENDIAN
461 #endif /* WORDS_BIGENDIAN */
462 #endif /* BYTE_ORDER */
473 #ifdef HAVE_SYS_SOCKET_H
474 #include <sys/socket.h>
477 #ifdef HAVE_NETINET_IN_H
478 #include <netinet/in.h>
481 #ifdef HAVE_ARPA_INET_H
482 #include <arpa/inet.h>
485 #ifdef HAVE_WINSOCK2_H
486 #include <winsock2.h>
489 #ifdef HAVE_WS2TCPIP_H
490 #include <ws2tcpip.h>
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)
508 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
509 char *target, size_t targsize);
511 * calculates the size needed to store the result of b64_ntop
514 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
516 return ((((srcsize + 2) / 3) * 4) + 1);
518 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
520 * calculates the size needed to store the result of ldns_b64_pton
523 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
525 return (((((srcsize + 3) / 4) * 3)) + 1);
529 * Given in dnssec_zone.c, also used in dnssec_sign.c:w
532 int ldns_dname_compare_v(const void *a, const void *b);
535 /* use windows sleep, in millisecs, instead */
536 #define sleep(x) Sleep((x)*1000)
540 #define srandom(x) srand(x)
541 #define random(x) rand(x)
546 time_t timegm (struct tm *tm);
548 #ifndef HAVE_GMTIME_R
549 struct tm *gmtime_r(const time_t *timep, struct tm *result);
551 #ifndef HAVE_LOCALTIME_R
552 struct tm *localtime_r(const time_t *timep, struct tm *result);
556 #endif /* !HAVE_ISBLANK */
559 #endif /* !HAVE_ISASCII */
560 #ifndef HAVE_SNPRINTF
562 int snprintf (char *str, size_t count, const char *fmt, ...);
563 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
564 #endif /* HAVE_SNPRINTF */
565 #ifndef HAVE_INET_PTON
566 int inet_pton(int af, const char* src, void* dst);
567 #endif /* HAVE_INET_PTON */
568 #ifndef HAVE_INET_NTOP
569 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
571 #ifndef HAVE_INET_ATON
572 int inet_aton(const char *cp, struct in_addr *addr);
575 void *memmove(void *dest, const void *src, size_t n);
578 size_t strlcpy(char *dst, const char *src, size_t siz);
583 #ifndef HAVE_GETADDRINFO
584 #include "compat/fake-rfc2553.h"
587 #define strtoul (unsigned long)strtol