chiark / gitweb /
Support IPv6 in addr queries.
[adns.git] / src / config.h.in
1 /* src/config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
2
3 /* Define if inline functions a la GCC are available.  */
4 #undef HAVE_INLINE
5
6 /* Define if function attributes a la GCC 2.5 and higher are available.  */
7 #undef HAVE_GNUC25_ATTRIB
8
9 /* Define if constant functions a la GCC 2.5 and higher are available.  */
10 #undef HAVE_GNUC25_CONST
11
12 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
13 #undef HAVE_GNUC25_NORETURN
14
15 /* Define if printf-format argument lists a la GCC are available.  */
16 #undef HAVE_GNUC25_PRINTFFORMAT
17
18 /* Define if we want to include rpc/types.h.  Crap BSDs put INADDR_LOOPBACK there. */
19 #undef HAVEUSE_RPCTYPES_H
20
21 /* Define if you have the poll function.  */
22 #undef HAVE_POLL
23
24 /* Define if you have the nsl library (-lnsl).  */
25 #undef HAVE_LIBNSL
26
27 /* Define if you have the socket library (-lsocket).  */
28 #undef HAVE_LIBSOCKET
29
30 /* Use the definitions: */
31
32 #ifndef HAVE_INLINE
33 #define inline
34 #endif
35
36 #ifdef HAVE_POLL
37 #include <sys/poll.h>
38 #else
39 /* kludge it up */
40 struct pollfd { int fd; short events; short revents; };
41 #define POLLIN  1
42 #define POLLPRI 2
43 #define POLLOUT 4
44 #endif
45
46 /* GNU C attributes. */
47 #ifndef FUNCATTR
48 #ifdef HAVE_GNUC25_ATTRIB
49 #define FUNCATTR(x) __attribute__(x)
50 #else
51 #define FUNCATTR(x)
52 #endif
53 #endif
54
55 /* GNU C printf formats, or null. */
56 #ifndef ATTRPRINTF
57 #ifdef HAVE_GNUC25_PRINTFFORMAT
58 #define ATTRPRINTF(si,tc) format(printf,si,tc)
59 #else
60 #define ATTRPRINTF(si,tc)
61 #endif
62 #endif
63 #ifndef PRINTFFORMAT
64 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
65 #endif
66
67 /* GNU C nonreturning functions, or null. */
68 #ifndef ATTRNORETURN
69 #ifdef HAVE_GNUC25_NORETURN
70 #define ATTRNORETURN noreturn
71 #else
72 #define ATTRNORETURN
73 #endif
74 #endif
75 #ifndef NONRETURNING
76 #define NONRETURNING FUNCATTR((ATTRNORETURN))
77 #endif
78
79 /* Combination of both the above. */
80 #ifndef NONRETURNPRINTFFORMAT
81 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
82 #endif
83
84 /* GNU C constant functions, or null. */
85 #ifndef ATTRCONST
86 #ifdef HAVE_GNUC25_CONST
87 #define ATTRCONST const
88 #else
89 #define ATTRCONST
90 #endif
91 #endif
92 #ifndef CONSTANT
93 #define CONSTANT FUNCATTR((ATTRCONST))
94 #endif
95
96 #ifdef HAVEUSE_RPCTYPES_H
97 #include <rpc/types.h>
98 #endif