Reflected mdsms.c:1.21->1.22 updates, up-to-date
[mdsms.git] / acconfig.h
1 /* acconfig.h  Generated manually for use by autoheader.  */
2 /*
3  * $Id$
4  */
5
6 /* Define if your locale.h file contains LC_MESSAGES.  */
7 #undef HAVE_LC_MESSAGES
8
9 /* Define to 1 if NLS is requested.  */
10 #undef ENABLE_NLS
11
12 /* Define as 1 if you have catgets and don't want to use GNU gettext.  */
13 #undef HAVE_CATGETS
14
15 /* Define as 1 if you have gettext and don't want to use GNU gettext.  */
16 #undef HAVE_GETTEXT
17
18 /* Define as 1 if you have the stpcpy function.  */
19 #undef HAVE_STPCPY
20
21 /* __NORETURN define - usually a GCC extension. */
22 #undef __NORETURN
23
24 /* __NORETURN2 define - usually a GCC extension. */
25 #undef __NORETURN2
26
27 /* Turn on debugging to stderr. */
28 #undef DEBUG
29
30 /* Disable runtime assertion checks. */
31 #undef NDEBUG
32
33 /* Provide stub for MAX-function if needed. */
34 #undef HAVE_MAX
35 #ifndef HAVE_MAX
36 #define MAX(a,b) ((a)>(b)?(a):(b))
37 #endif
38
39 /* Provide stub for MIN-function if needed. */
40 #undef HAVE_MIN
41 #ifndef HAVE_MIN
42 #define MIN(a,b) ((a)<(b)?(a):(b))
43 #endif
44
45 /* LINE_MAX from <limits.h>, provide default if not defined. */
46 #undef HAVE_LINE_MAX
47 #undef LINE_MAX
48
49 /* CBAUD define, may be missing. */
50 #undef HAVE_CBAUD
51 #undef CBAUD
52
53 /* CBAUDEX define, may be missing. */
54 #undef HAVE_CBAUDEX
55 #undef CBAUDEX
56
57 /* CRTSCTS define, may be missing. */
58 #undef HAVE_CRTSCTS
59 #undef CRTSCTS
60
61 /* FD_SETSIZE define, may be missing. */
62 #undef HAVE_FD_SETSIZE
63
64 /* offsetof() define, may be missing. */
65 #undef HAVE_OFFSETOF
66
67 /* snprintf(3) unsafe emulation */
68 #undef HAVE_SNPRINTF
69
70 /* vsnprintf(3) unsafe emulation */
71 #undef HAVE_VSNPRINTF
72
73 /* found lockfile directory */
74 #undef DEF_LOCKFILE
75
76 /* how to declare __atribute__ ((__unused__)) */
77 #undef ATTR_UNUSED
78
79 /* whether they have __atttribute__ ((format(printf,...))) */
80 #undef HAVE_PRINTFORMAT
81 #ifdef HAVE_PRINTFORMAT
82 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
83 #else
84 #define ATTR_PRINTFORMAT(a,b)
85 #endif
86
87 @BOTTOM@
88
89 #ifndef DONT_NEED_DECLARATIONS
90
91 /* Declaration for gethostname(3)? */
92 #undef NEED_DECLARATION_GETHOSTNAME
93 #ifdef NEED_DECLARATION_GETHOSTNAME
94 #include <unistd.h>
95 int gethostname(char *name, size_t len);
96 #endif
97
98 /* Declaration for kill(2)? */
99 #undef NEED_DECLARATION_KILL
100 #ifdef NEED_DECLARATION_KILL
101 #include <sys/types.h>
102 #include <signal.h>
103 int kill(pid_t pid, int sig);
104 #endif
105
106 /* Declaration for snprintf(3)? */
107 #undef NEED_DECLARATION_SNPRINTF
108 #ifdef NEED_DECLARATION_SNPRINTF
109 #include <stdio.h>
110 int snprintf(char *str, size_t n, const char *format, ...);
111 #endif
112
113 /* Declaration for vsnprintf(3)? */
114 #undef NEED_DECLARATION_VSNPRINTF
115 #ifdef NEED_DECLARATION_VSNPRINTF
116 #include <stdio.h>
117 #include <stdarg.h>
118 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
119 #endif
120
121 /* Declaration for strdup(3)? */
122 #undef NEED_DECLARATION_STRDUP
123 #ifdef NEED_DECLARATION_STRDUP
124 #include <string.h>
125 char *strdup(const char *s);
126 #endif
127
128 /* Declaration for usleep(3)? */
129 #undef NEED_DECLARATION_USLEEP
130 #ifdef NEED_DECLARATION_USLEEP
131 #include <unistd.h>
132 void usleep(unsigned long usec);
133 #endif
134
135 /* Declaration for strcasecmp(3)? */
136 #undef NEED_DECLARATION_STRCASECMP
137 #ifdef NEED_DECLARATION_STRCASECMP
138 #include <string.h>
139 int strcasecmp(const char *s1, const char *s2);
140 #endif
141
142 /* Declaration for siginterrupt(3)? */
143 #undef NEED_DECLARATION_SIGINTERRUPT
144 #ifdef NEED_DECLARATION_SIGINTERRUPT
145 #include <signal.h>
146 int siginterrupt(int sig, int flag);
147 #endif
148
149 /* Declaration for popen(3)? */
150 #undef NEED_DECLARATION_POPEN
151 #ifdef NEED_DECLARATION_POPEN
152 #include <stdio.h>
153 FILE *popen(const char *command, const char *type);
154 #endif
155
156 /* Declaration for pclose(3)? */
157 #undef NEED_DECLARATION_PCLOSE
158 #ifdef NEED_DECLARATION_PCLOSE
159 #include <stdio.h>
160 int pclose(FILE *stream);
161 #endif
162
163 #endif /* !DONT_NEED_DECLARATIONS */
164
165 /* snprintf(3) unsafe emulation */
166 #ifdef HAVE_SNPRINTF
167 #define VARPRINTF(v,f,d)               snprintf((v),sizeof((v)),f,(d)                     )
168 #define VARPRINTF2(v,f,d1,d2)          snprintf((v),sizeof((v)),f,(d1),(d2)               )
169 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
170 #else
171 #define VARPRINTF(v,f,d)               sprintf((v),f,(d)                     )
172 #define VARPRINTF2(v,f,d1,d2)          sprintf((v),f,(d1),(d2)               )
173 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
174 #endif
175
176 /* vsnprintf(3) unsafe emulation */
177 #ifdef HAVE_VSNPRINTF
178 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
179 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
180 #else
181 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
182 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
183 #endif
184
185 #ifndef HAVE_STRERROR
186 extern char *sys_errlist[];
187 #define strerror(i) sys_errlist[i]
188 #endif
189
190 #ifndef HAVE_STRCHR
191 #define strchr index
192 #endif
193
194 #ifndef HAVE_STRRCHR
195 #define strrchr rindex
196 #endif
197
198 #ifdef HAVE_STRCASECMP
199 #define strtrycasecmp strcasecmp
200 #else
201 #define strtrycasecmp strcmp
202 #endif
203
204 #ifndef HAVE_OFFSETOF
205 #define offsetof(a,b) ((size_t)&((a *)0)->b)
206 #endif
207
208 #ifndef DONT_NEED_DECLARATIONS
209 /*
210  * Handles all of the internationalization configuration options.
211  * Author: Tom Tromey <tromey@creche.cygnus.com>
212  * Stolen from <libgnome/gnome-i18n.h>
213  * Modified by Jan Kratochvil <short@ucw.cz>
214  */
215 #ifdef ENABLE_NLS
216 #ifdef HAVE_LIBINTL_H
217 #    include <libintl.h>
218 #endif /* HAVE_LIBINTL_H */
219 #    define _(String) gettext (String)
220 #    ifdef gettext_noop
221 #        define N_(String) gettext_noop (String)
222 #    else
223 #        define N_(String) (String)
224 #    endif
225 #else /* ENABLE_NLS */
226 /* Stubs that do something close enough.  */
227 #    define textdomain(String) (String)
228 #    define gettext(String) (String)
229 #    define dgettext(Domain,Message) (Message)
230 #    define dcgettext(Domain,Message,Type) (Message)
231 #    define bindtextdomain(Domain,Directory) (Domain)
232 #    define _(String) (String)
233 #    define N_(String) (String)
234 #endif /* ENABLE_NLS */
235 #endif /* !DONT_NEED_DECLARATIONS */