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