LDLIBS removed from dependency lists (some makes don't support this).
[adns] / src / config.h.in
CommitLineData
11b35193 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
e9e1b0e6 15/* Define if you have the nsl library (-lnsl). */
16#undef HAVE_LIBNSL
17
18/* Define if you have the socket library (-lsocket). */
19#undef HAVE_LIBSOCKET
20
11b35193 21/* Use the definitions: */
22
23/* GNU C attributes. */
24#ifndef FUNCATTR
25#ifdef HAVE_GNUC25_ATTRIB
26#define FUNCATTR(x) __attribute__(x)
27#else
28#define FUNCATTR(x)
29#endif
30#endif
31
32/* GNU C printf formats, or null. */
33#ifndef ATTRPRINTF
34#ifdef HAVE_GNUC25_PRINTFFORMAT
35#define ATTRPRINTF(si,tc) format(printf,si,tc)
36#else
37#define ATTRPRINTF(si,tc)
38#endif
39#endif
40#ifndef PRINTFFORMAT
41#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
42#endif
43
44/* GNU C nonreturning functions, or null. */
45#ifndef ATTRNORETURN
46#ifdef HAVE_GNUC25_NORETURN
47#define ATTRNORETURN noreturn
48#else
49#define ATTRNORETURN
50#endif
51#endif
52#ifndef NONRETURNING
53#define NONRETURNING FUNCATTR((ATTRNORETURN))
54#endif
55
56/* Combination of both the above. */
57#ifndef NONRETURNPRINTFFORMAT
58#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
59#endif
60
61/* GNU C constant functions, or null. */
62#ifndef ATTRCONST
63#ifdef HAVE_GNUC25_CONST
64#define ATTRCONST const
65#else
66#define ATTRCONST
67#endif
68#endif
69#ifndef CONSTANT
70#define CONSTANT FUNCATTR((ATTRCONST))
71#endif