3 * input file for autoheader/autoconf/configure: extra stuff for config.h
6 * This file is part of adns, which is
7 * Copyright (C) 1997-2000,2003,2006 Ian Jackson
8 * Copyright (C) 1999-2000,2003,2006 Tony Finch
9 * Copyright (C) 1991 Massachusetts Institute of Technology
10 * (See the file INSTALL for full details.)
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software Foundation,
24 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 /* Define if inline functions a la GCC are available. */
30 /* Define if function attributes a la GCC 2.5 and higher are available. */
31 #undef HAVE_GNUC25_ATTRIB
33 /* Define if constant functions a la GCC 2.5 and higher are available. */
34 #undef HAVE_GNUC25_CONST
36 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
37 #undef HAVE_GNUC25_NORETURN
39 /* Define if printf-format argument lists a la GCC are available. */
40 #undef HAVE_GNUC25_PRINTFFORMAT
42 /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
43 #undef HAVEUSE_RPCTYPES_H
47 /* Use the definitions: */
57 struct pollfd { int fd; short events; short revents; };
63 /* GNU C attributes. */
65 #ifdef HAVE_GNUC25_ATTRIB
66 #define FUNCATTR(x) __attribute__(x)
72 /* GNU C printf formats, or null. */
74 #ifdef HAVE_GNUC25_PRINTFFORMAT
75 #define ATTRPRINTF(si,tc) format(printf,si,tc)
77 #define ATTRPRINTF(si,tc)
81 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
84 /* GNU C nonreturning functions, or null. */
86 #ifdef HAVE_GNUC25_NORETURN
87 #define ATTRNORETURN noreturn
93 #define NONRETURNING FUNCATTR((ATTRNORETURN))
96 /* Combination of both the above. */
97 #ifndef NONRETURNPRINTFFORMAT
98 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
101 /* GNU C constant functions, or null. */
103 #ifdef HAVE_GNUC25_CONST
104 #define ATTRCONST const
110 #define CONSTANT FUNCATTR((ATTRCONST))
113 #ifdef HAVEUSE_RPCTYPES_H
114 #include <rpc/types.h>