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 to 1 if the system has the type `intptr_t'. */
92 /* define if you have inttypes.h */
93 #undef HAVE_INTTYPES_H
95 /* if the function 'ioctlsocket' is available */
96 #undef HAVE_IOCTLSOCKET
98 /* Define to 1 if you have the `isascii' function. */
101 /* Define to 1 if you have the `isblank' function. */
104 /* Define to 1 if you have the `pcap' library (-lpcap). */
107 /* Define to 1 if you have the `localtime_r' function. */
108 #undef HAVE_LOCALTIME_R
110 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
114 /* Define to 1 if you have the `memmove' function. */
117 /* Define to 1 if you have the <memory.h> header file. */
120 /* Define to 1 if you have the `memset' function. */
123 /* Define to 1 if you have the <netdb.h> header file. */
126 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
127 #undef HAVE_NETINET_IF_ETHER_H
129 /* Define to 1 if you have the <netinet/igmp.h> header file. */
130 #undef HAVE_NETINET_IGMP_H
132 /* Define to 1 if you have the <netinet/in.h> header file. */
133 #undef HAVE_NETINET_IN_H
135 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
136 #undef HAVE_NETINET_IN_SYSTM_H
138 /* Define to 1 if you have the <netinet/ip6.h> header file. */
139 #undef HAVE_NETINET_IP6_H
141 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
142 #undef HAVE_NETINET_IP_COMPAT_H
144 /* Define to 1 if you have the <netinet/ip.h> header file. */
145 #undef HAVE_NETINET_IP_H
147 /* Define to 1 if you have the <netinet/udp.h> header file. */
148 #undef HAVE_NETINET_UDP_H
150 /* Define to 1 if you have the <net/ethernet.h> header file. */
151 #undef HAVE_NET_ETHERNET_H
153 /* Define to 1 if you have the <net/if.h> header file. */
156 /* Define to 1 if you have the <openssl/err.h> header file. */
157 #undef HAVE_OPENSSL_ERR_H
159 /* Define to 1 if you have the <openssl/rand.h> header file. */
160 #undef HAVE_OPENSSL_RAND_H
162 /* Define to 1 if you have the <openssl/ssl.h> header file. */
163 #undef HAVE_OPENSSL_SSL_H
165 /* Define to 1 if you have the <pcap.h> header file. */
168 /* If available, contains the Python version number currently in use. */
171 /* Define to 1 if you have the `random' function. */
174 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
175 and to 0 otherwise. */
178 /* Define to 1 if you have the `sleep' function. */
181 /* Define to 1 if you have the `snprintf' function. */
184 /* Define if you have the SSL libraries installed. */
187 /* Define to 1 if you have the <stdarg.h> header file. */
190 /* Define to 1 if stdbool.h conforms to C99. */
191 #undef HAVE_STDBOOL_H
193 /* Define to 1 if you have the <stdint.h> header file. */
196 /* Define to 1 if you have the <stdlib.h> header file. */
199 /* Define to 1 if you have the <strings.h> header file. */
200 #undef HAVE_STRINGS_H
202 /* Define to 1 if you have the <string.h> header file. */
205 /* Define to 1 if you have the `strlcpy' function. */
208 /* Define to 1 if you have the `strtoul' function. */
211 /* Define if you have SWIG libraries and header files. */
214 /* Define to 1 if you have the <sys/mount.h> header file. */
215 #undef HAVE_SYS_MOUNT_H
217 /* Define to 1 if you have the <sys/param.h> header file. */
218 #undef HAVE_SYS_PARAM_H
220 /* define if you have sys/socket.h */
221 #undef HAVE_SYS_SOCKET_H
223 /* Define to 1 if you have the <sys/stat.h> header file. */
224 #undef HAVE_SYS_STAT_H
226 /* define if you have sys/types.h */
227 #undef HAVE_SYS_TYPES_H
229 /* Define to 1 if you have the `timegm' function. */
232 /* Define to 1 if you have the <time.h> header file. */
235 /* define if you have unistd.h */
238 /* Define to 1 if you have the `vfork' function. */
241 /* Define to 1 if you have the <vfork.h> header file. */
244 /* Define to 1 if you have the <winsock2.h> header file. */
245 #undef HAVE_WINSOCK2_H
247 /* Define to 1 if `fork' works. */
248 #undef HAVE_WORKING_FORK
250 /* Define to 1 if `vfork' works. */
251 #undef HAVE_WORKING_VFORK
253 /* Define to 1 if you have the <ws2tcpip.h> header file. */
254 #undef HAVE_WS2TCPIP_H
256 /* Define to 1 if the system has the type `_Bool'. */
259 /* Is a CAFILE given at configure time */
260 #undef LDNS_DANE_CA_FILE
262 /* Is a CAPATH given at configure time */
263 #undef LDNS_DANE_CA_PATH
265 /* Default trust anchor file */
266 #undef LDNS_TRUST_ANCHOR_FILE
268 /* Define to the sub-directory in which libtool stores uninstalled libraries.
272 /* Define to the address where bug reports for this package should be sent. */
273 #undef PACKAGE_BUGREPORT
275 /* Define to the full name of this package. */
278 /* Define to the full name and version of this package. */
279 #undef PACKAGE_STRING
281 /* Define to the one symbol short name of this package. */
282 #undef PACKAGE_TARNAME
284 /* Define to the home page for this package. */
287 /* Define to the version of this package. */
288 #undef PACKAGE_VERSION
290 /* The size of `time_t', as computed by sizeof. */
293 /* Define to 1 if you have the ANSI C header files. */
296 /* System configuration dir */
299 /* Define this to enable ECDSA support. */
302 /* Define this to enable GOST support. */
305 /* Define this to enable SHA256 and SHA512 support. */
308 /* Enable extensions on AIX 3, Interix. */
312 /* Enable GNU extensions on systems that have them. */
316 /* Enable threading extensions on Solaris. */
317 #ifndef _POSIX_PTHREAD_SEMANTICS
318 # undef _POSIX_PTHREAD_SEMANTICS
320 /* Enable extensions on HP NonStop. */
321 #ifndef _TANDEM_SOURCE
322 # undef _TANDEM_SOURCE
324 /* Enable general extensions on Solaris. */
325 #ifndef __EXTENSIONS__
326 # undef __EXTENSIONS__
330 /* Whether the windows socket API is used */
333 /* the version of the windows API enabled */
336 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
337 significant byte first (like Motorola and SPARC, unlike Intel). */
338 #if defined AC_APPLE_UNIVERSAL_BUILD
339 # if defined __BIG_ENDIAN__
340 # define WORDS_BIGENDIAN 1
343 # ifndef WORDS_BIGENDIAN
344 # undef WORDS_BIGENDIAN
348 /* Define to 1 if on MINIX. */
351 /* Define to 2 if the system does not provide POSIX.1 features except with
353 #undef _POSIX_1_SOURCE
355 /* Define to 1 if you need to in order for `stat' and other things to work. */
358 /* Define to empty if `const' does not conform to ANSI C. */
367 /* Define to `__inline__' or `__inline' if that's what the C compiler
368 calls it, or to nothing if 'inline' is not supported under any name. */
373 /* Define to `short' if <sys/types.h> does not define. */
376 /* Define to `int' if <sys/types.h> does not define. */
379 /* Define to `long long' if <sys/types.h> does not define. */
382 /* Define to `char' if <sys/types.h> does not define. */
385 /* Define to the type of a signed integer type wide enough to hold a pointer,
386 if such a type exists, and if the system does not define it. */
389 /* Define to rpl_malloc if the replacement function should be used. */
392 /* Define to `int' if <sys/types.h> does not define. */
395 /* Define to rpl_realloc if the replacement function should be used. */
398 /* Define to `unsigned int' if <sys/types.h> does not define. */
401 /* Define to 'int' if not defined */
404 /* Fallback member name for socket family in struct sockaddr_storage */
407 /* Define to `int' if <sys/types.h> does not define. */
410 /* Define to `unsigned short' if <sys/types.h> does not define. */
413 /* Define to `unsigned int' if <sys/types.h> does not define. */
416 /* Define to `unsigned long long' if <sys/types.h> does not define. */
419 /* Define to `unsigned char' if <sys/types.h> does not define. */
422 /* Define as `fork' if `vfork' does not work. */
431 #ifndef LITTLE_ENDIAN
432 #define LITTLE_ENDIAN 1234
436 #define BIG_ENDIAN 4321
440 #ifdef WORDS_BIGENDIAN
441 #define BYTE_ORDER BIG_ENDIAN
443 #define BYTE_ORDER LITTLE_ENDIAN
444 #endif /* WORDS_BIGENDIAN */
445 #endif /* BYTE_ORDER */
456 #ifdef HAVE_SYS_SOCKET_H
457 #include <sys/socket.h>
460 #ifdef HAVE_NETINET_IN_H
461 #include <netinet/in.h>
464 #ifdef HAVE_ARPA_INET_H
465 #include <arpa/inet.h>
468 #ifdef HAVE_WINSOCK2_H
469 #include <winsock2.h>
472 #ifdef HAVE_WS2TCPIP_H
473 #include <ws2tcpip.h>
477 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
478 #ifdef HAVE_WINSOCK2_H
479 #define FD_SET_T (u_int)
492 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
493 char *target, size_t targsize);
495 * calculates the size needed to store the result of b64_ntop
498 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
500 return ((((srcsize + 2) / 3) * 4) + 1);
502 #endif /* !B64_PTON */
504 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
506 * calculates the size needed to store the result of ldns_b64_pton
509 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
511 return (((((srcsize + 3) / 4) * 3)) + 1);
513 #endif /* !B64_NTOP */
516 /* use windows sleep, in millisecs, instead */
517 #define sleep(x) Sleep((x)*1000)
521 #define srandom(x) srand(x)
522 #define random(x) rand(x)
527 time_t timegm (struct tm *tm);
529 #ifndef HAVE_GMTIME_R
530 struct tm *gmtime_r(const time_t *timep, struct tm *result);
532 #ifndef HAVE_LOCALTIME_R
533 struct tm *localtime_r(const time_t *timep, struct tm *result);
537 #endif /* !HAVE_ISBLANK */
540 #endif /* !HAVE_ISASCII */
541 #ifndef HAVE_SNPRINTF
543 int snprintf (char *str, size_t count, const char *fmt, ...);
544 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
545 #endif /* HAVE_SNPRINTF */
546 #ifndef HAVE_INET_PTON
547 int inet_pton(int af, const char* src, void* dst);
548 #endif /* HAVE_INET_PTON */
549 #ifndef HAVE_INET_NTOP
550 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
552 #ifndef HAVE_INET_ATON
553 int inet_aton(const char *cp, struct in_addr *addr);
556 void *memmove(void *dest, const void *src, size_t n);
559 size_t strlcpy(char *dst, const char *src, size_t siz);
564 #ifndef HAVE_GETADDRINFO
565 #include "compat/fake-rfc2553.h"
568 #define strtoul (unsigned long)strtol