3 * input file for autoheader/autoconf/configure: extra stuff for config.h
6 * This file is part of adns, which is Copyright Ian Jackson
7 * and contributors (see the file INSTALL for full details).
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3, or (at your option)
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software Foundation.
23 /* Define if inline functions a la GCC are available. */
26 /* Define if function attributes a la GCC 2.5 and higher are available. */
27 #undef HAVE_GNUC25_ATTRIB
29 /* Define if constant functions a la GCC 2.5 and higher are available. */
30 #undef HAVE_GNUC25_CONST
32 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
33 #undef HAVE_GNUC25_NORETURN
35 /* Define if printf-format argument lists a la GCC are available. */
36 #undef HAVE_GNUC25_PRINTFFORMAT
38 /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
39 #undef HAVEUSE_RPCTYPES_H
43 /* Use the definitions: */
53 struct pollfd { int fd; short events; short revents; };
59 /* GNU C attributes. */
61 #ifdef HAVE_GNUC25_ATTRIB
62 #define FUNCATTR(x) __attribute__(x)
68 /* GNU C printf formats, or null. */
70 #ifdef HAVE_GNUC25_PRINTFFORMAT
71 #define ATTRPRINTF(si,tc) format(printf,si,tc)
73 #define ATTRPRINTF(si,tc)
77 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
80 /* GNU C nonreturning functions, or null. */
82 #ifdef HAVE_GNUC25_NORETURN
83 #define ATTRNORETURN noreturn
89 #define NONRETURNING FUNCATTR((ATTRNORETURN))
92 /* Combination of both the above. */
93 #ifndef NONRETURNPRINTFFORMAT
94 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
97 /* GNU C constant functions, or null. */
99 #ifdef HAVE_GNUC25_CONST
100 #define ATTRCONST const
106 #define CONSTANT FUNCATTR((ATTRCONST))
109 #ifdef HAVEUSE_RPCTYPES_H
110 #include <rpc/types.h>