Version bumped to 1.4.1.
[mdsms.git] / acconfig.h
1 /* acconfig.h  Generated manually for use by autoheader.  */
2 /*
3  * $Id$
4  */
5
6 /* __NORETURN define - usually a GCC extension. */
7 #undef __NORETURN
8
9 /* __NORETURN2 define - usually a GCC extension. */
10 #undef __NORETURN2
11
12 /* Turn on debugging to stderr. */
13 #undef DEBUG
14
15 /* Disable runtime assertion checks. */
16 #undef NDEBUG
17
18 /* Provide stub for MAX-function if needed. */
19 #undef HAVE_MAX
20 #ifndef HAVE_MAX
21 #define MAX(a,b) ((a)>(b)?(a):(b))
22 #endif
23
24 /* Provide stub for MIN-function if needed. */
25 #undef HAVE_MIN
26 #ifndef HAVE_MIN
27 #define MIN(a,b) ((a)<(b)?(a):(b))
28 #endif
29
30 /* LINE_MAX from <limits.h>, provide default if not defined. */
31 #undef HAVE_LINE_MAX
32 #undef LINE_MAX
33
34 /* CBAUD define, may be missing. */
35 #undef HAVE_CBAUD
36 #undef CBAUD
37
38 /* CBAUDEX define, may be missing. */
39 #undef HAVE_CBAUDEX
40 #undef CBAUDEX
41
42 /* snprintf(3) unsafe emulation */
43 #undef HAVE_SNPRINTF
44
45 /* vsnprintf(3) unsafe emulation */
46 #undef HAVE_VSNPRINTF
47
48 /* found lockfile directory */
49 #undef DEF_LOCKFILE
50
51 /* how to declare __atribute__ ((__unused__)) */
52 #undef ATTR_UNUSED
53
54 /* whether they have __atttribute__ ((format(printf,...))) */
55 #undef HAVE_PRINTFORMAT
56 #ifdef HAVE_PRINTFORMAT
57 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
58 #else
59 #define ATTR_PRINTFORMAT(a,b)
60 #endif
61
62 @BOTTOM@
63
64 #ifndef DONT_NEED_DECLARATIONS
65
66 /* Declaration for gethostname(3)? */
67 #undef NEED_DECLARATION_GETHOSTNAME
68 #ifdef NEED_DECLARATION_GETHOSTNAME
69 #include <unistd.h>
70 int gethostname(char *name, size_t len);
71 #endif
72
73 /* Declaration for kill(2)? */
74 #undef NEED_DECLARATION_KILL
75 #ifdef NEED_DECLARATION_KILL
76 #include <sys/types.h>
77 #include <signal.h>
78 int kill(pid_t pid, int sig);
79 #endif
80
81 /* Declaration for snprintf(3)? */
82 #undef NEED_DECLARATION_SNPRINTF
83 #ifdef NEED_DECLARATION_SNPRINTF
84 #include <stdio.h>
85 int snprintf(char *str, size_t n, const char *format, ...);
86 #endif
87
88 /* Declaration for vsnprintf(3)? */
89 #undef NEED_DECLARATION_VSNPRINTF
90 #ifdef NEED_DECLARATION_VSNPRINTF
91 #include <stdio.h>
92 #include <stdarg.h>
93 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
94 #endif
95
96 /* Declaration for strdup(3)? */
97 #undef NEED_DECLARATION_STRDUP
98 #ifdef NEED_DECLARATION_STRDUP
99 #include <string.h>
100 char *strdup(const char *s);
101 #endif
102
103 /* Declaration for usleep(3)? */
104 #undef NEED_DECLARATION_USLEEP
105 #ifdef NEED_DECLARATION_USLEEP
106 #include <unistd.h>
107 void usleep(unsigned long usec);
108 #endif
109
110 /* Declaration for strcasecmp(3)? */
111 #undef NEED_DECLARATION_STRCASECMP
112 #ifdef NEED_DECLARATION_STRCASECMP
113 #include <string.h>
114 int strcasecmp(const char *s1, const char *s2);
115 #endif
116
117 /* Declaration for siginterrupt(3)? */
118 #undef NEED_DECLARATION_SIGINTERRUPT
119 #ifdef NEED_DECLARATION_SIGINTERRUPT
120 #include <signal.h>
121 int siginterrupt(int sig, int flag);
122 #endif
123
124 #endif /* !DONT_NEED_DECLARATIONS */
125
126 /* snprintf(3) unsafe emulation */
127 #ifdef HAVE_SNPRINTF
128 #define VARPRINTF(v,f,d)      snprintf((v),sizeof((v)),f,(d)      )
129 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2))
130 #else
131 #define VARPRINTF(v,f,d)      sprintf((v),f,(d)      )
132 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2))
133 #endif
134
135 /* vsnprintf(3) unsafe emulation */
136 #ifdef HAVE_VSNPRINTF
137 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
138 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
139 #else
140 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
141 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
142 #endif
143