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