RELEASE-CHECKLIST: Require version argument
[adns] / src / config.h.in
CommitLineData
ae8cc977 1/* src/config.h.in. Generated automatically from configure.in by autoheader 2.13. */
11b35193 2
5a0be244 3/* Define if inline functions a la GCC are available. */
4#undef HAVE_INLINE
5
11b35193 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
04e7fb4d 18/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
19#undef HAVEUSE_RPCTYPES_H
20
620c146d 21/* Define if you have the poll function. */
22#undef HAVE_POLL
23
e9e1b0e6 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
11b35193 30/* Use the definitions: */
31
5a0be244 32#ifndef HAVE_INLINE
33#define inline
34#endif
35
620c146d 36#ifdef HAVE_POLL
37#include <sys/poll.h>
38#else
8d3d3e02 39/* kludge it up */
620c146d 40struct pollfd { int fd; short events; short revents; };
41#define POLLIN 1
42#define POLLPRI 2
43#define POLLOUT 4
44#endif
45
11b35193 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
04e7fb4d 95
96#ifdef HAVEUSE_RPCTYPES_H
97#include <rpc/types.h>
98#endif