1 /* config.h.in. Generated from configure.in by autoheader. */
4 * extra stuff for config.h.in (autoconf)
7 * Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
8 * Copyright 2000 Ben Harris <bjh21@cam.ac.uk>
9 * Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
11 * This is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with userv; if not, see <http://www.gnu.org/licenses/>.
25 /* Define if EPROTO exists. */
28 /* Define if LOG_AUTHPRIV exists. */
29 #undef HAVE_LOG_AUTHPRIV
31 /* Define if WCOREDUMP exists. */
34 /* Define if function attributes a la GCC 2.5 and higher are available. */
35 #undef HAVE_GNUC25_ATTRIB
37 /* Define if unused functions a la GCC 2.5 and higher are available. */
38 #undef HAVE_GNUC25_UNUSED
40 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
41 #undef HAVE_GNUC25_NORETURN
43 /* Define if printf-format argument lists a la GCC are available. */
44 #undef HAVE_GNUC25_PRINTFFORMAT
47 /* Define to 1 if you have the `socket' library (-lsocket). */
50 /* Define to 1 if you have the `setenv' function. */
53 /* Define to 1 if you have the `strsignal' function. */
56 /* Define to 1 if you have the `vsnprintf' function. */
59 /* Define to the address where bug reports for this package should be sent. */
60 #undef PACKAGE_BUGREPORT
62 /* Define to the full name of this package. */
65 /* Define to the full name and version of this package. */
68 /* Define to the one symbol short name of this package. */
69 #undef PACKAGE_TARNAME
71 /* Define to the home page for this package. */
74 /* Define to the version of this package. */
75 #undef PACKAGE_VERSION
78 #ifndef HAVE_STRSIGNAL
79 #define STRSIGNAL(x) "[platform has no strsignal!]"
83 #ifndef HAVE_VSNPRINTF
84 # error "You must have vsnprintf! Without vsnprintf it is very hard to write secure programs. If you don't have it then your system libc is probably full of hideous buffer overrun security bugs. But, if you don't want to fix your system a portable snprintf can be found at http://www.ijs.si/software/snprintf/"
93 #ifndef HAVE_LOG_AUTHPRIV
94 #define LOG_AUTHPRIV LOG_AUTH
98 #ifndef HAVE_WCOREDUMP
99 #define WCOREDUMP(x) 0
102 /* GNU C attributes. */
104 #ifdef HAVE_GNUC25_ATTRIB
105 #define FUNCATTR(x) __attribute__(x)
111 /* GNU C printf formats, or null. */
113 #ifdef HAVE_GNUC25_PRINTFFORMAT
114 #define ATTRPRINTF(si,tc) format(printf,si,tc)
116 #define ATTRPRINTF(si,tc)
120 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
123 /* GNU C nonreturning functions, or null. */
125 #ifdef HAVE_GNUC25_NORETURN
126 #define ATTRNORETURN noreturn
132 #define NONRETURNING FUNCATTR((ATTRNORETURN))
135 /* Combination of both the above. */
136 #ifndef NONRETURNPRINTFFORMAT
137 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
140 /* GNU C unused functions, or null. */
142 #ifdef HAVE_GNUC25_UNUSED
143 #define ATTRUNUSED unused
149 #define UNUSED FUNCATTR((ATTRUNUSED))