--ring-send tested with 9110 and fixed.
[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 /* FD_SETSIZE define, may be missing. */
58 #undef HAVE_FD_SETSIZE
59
60 /* offsetof() define, may be missing. */
61 #undef HAVE_OFFSETOF
62
63 /* snprintf(3) unsafe emulation */
64 #undef HAVE_SNPRINTF
65
66 /* vsnprintf(3) unsafe emulation */
67 #undef HAVE_VSNPRINTF
68
69 /* found lockfile directory */
70 #undef DEF_LOCKFILE
71
72 /* how to declare __atribute__ ((__unused__)) */
73 #undef ATTR_UNUSED
74
75 /* whether they have __atttribute__ ((format(printf,...))) */
76 #undef HAVE_PRINTFORMAT
77 #ifdef HAVE_PRINTFORMAT
78 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
79 #else
80 #define ATTR_PRINTFORMAT(a,b)
81 #endif
82
83 @BOTTOM@
84
85 #ifndef DONT_NEED_DECLARATIONS
86
87 /* Declaration for gethostname(3)? */
88 #undef NEED_DECLARATION_GETHOSTNAME
89 #ifdef NEED_DECLARATION_GETHOSTNAME
90 #include <unistd.h>
91 int gethostname(char *name, size_t len);
92 #endif
93
94 /* Declaration for kill(2)? */
95 #undef NEED_DECLARATION_KILL
96 #ifdef NEED_DECLARATION_KILL
97 #include <sys/types.h>
98 #include <signal.h>
99 int kill(pid_t pid, int sig);
100 #endif
101
102 /* Declaration for snprintf(3)? */
103 #undef NEED_DECLARATION_SNPRINTF
104 #ifdef NEED_DECLARATION_SNPRINTF
105 #include <stdio.h>
106 int snprintf(char *str, size_t n, const char *format, ...);
107 #endif
108
109 /* Declaration for vsnprintf(3)? */
110 #undef NEED_DECLARATION_VSNPRINTF
111 #ifdef NEED_DECLARATION_VSNPRINTF
112 #include <stdio.h>
113 #include <stdarg.h>
114 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
115 #endif
116
117 /* Declaration for strdup(3)? */
118 #undef NEED_DECLARATION_STRDUP
119 #ifdef NEED_DECLARATION_STRDUP
120 #include <string.h>
121 char *strdup(const char *s);
122 #endif
123
124 /* Declaration for usleep(3)? */
125 #undef NEED_DECLARATION_USLEEP
126 #ifdef NEED_DECLARATION_USLEEP
127 #include <unistd.h>
128 void usleep(unsigned long usec);
129 #endif
130
131 /* Declaration for strcasecmp(3)? */
132 #undef NEED_DECLARATION_STRCASECMP
133 #ifdef NEED_DECLARATION_STRCASECMP
134 #include <string.h>
135 int strcasecmp(const char *s1, const char *s2);
136 #endif
137
138 /* Declaration for siginterrupt(3)? */
139 #undef NEED_DECLARATION_SIGINTERRUPT
140 #ifdef NEED_DECLARATION_SIGINTERRUPT
141 #include <signal.h>
142 int siginterrupt(int sig, int flag);
143 #endif
144
145 /* Declaration for popen(3)? */
146 #undef NEED_DECLARATION_POPEN
147 #ifdef NEED_DECLARATION_POPEN
148 #include <stdio.h>
149 FILE *popen(const char *command, const char *type);
150 #endif
151
152 /* Declaration for pclose(3)? */
153 #undef NEED_DECLARATION_PCLOSE
154 #ifdef NEED_DECLARATION_PCLOSE
155 #include <stdio.h>
156 int pclose(FILE *stream);
157 #endif
158
159 #endif /* !DONT_NEED_DECLARATIONS */
160
161 /* snprintf(3) unsafe emulation */
162 #ifdef HAVE_SNPRINTF
163 #define VARPRINTF(v,f,d)               snprintf((v),sizeof((v)),f,(d)                     )
164 #define VARPRINTF2(v,f,d1,d2)          snprintf((v),sizeof((v)),f,(d1),(d2)               )
165 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
166 #else
167 #define VARPRINTF(v,f,d)               sprintf((v),f,(d)                     )
168 #define VARPRINTF2(v,f,d1,d2)          sprintf((v),f,(d1),(d2)               )
169 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
170 #endif
171
172 /* vsnprintf(3) unsafe emulation */
173 #ifdef HAVE_VSNPRINTF
174 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
175 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
176 #else
177 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
178 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
179 #endif
180
181 #ifndef HAVE_STRERROR
182 extern char *sys_errlist[];
183 #define strerror(i) sys_errlist[i]
184 #endif
185
186 #ifndef HAVE_STRCHR
187 #define strchr index
188 #endif
189
190 #ifndef HAVE_STRRCHR
191 #define strrchr rindex
192 #endif
193
194 #ifdef HAVE_STRCASECMP
195 #define strtrycasecmp strcasecmp
196 #else
197 #define strtrycasecmp strcmp
198 #endif
199
200 #ifndef HAVE_OFFSETOF
201 #define offsetof(a,b) ((size_t)&((a *)0)->b)
202 #endif
203
204 #ifndef DONT_NEED_DECLARATIONS
205 /*
206  * Handles all of the internationalization configuration options.
207  * Author: Tom Tromey <tromey@creche.cygnus.com>
208  * Stolen from <libgnome/gnome-i18n.h>
209  * Modified by Jan Kratochvil <short@ucw.cz>
210  */
211 #ifdef ENABLE_NLS
212 #ifdef HAVE_LIBINTL_H
213 #    include <libintl.h>
214 #endif /* HAVE_LIBINTL_H */
215 #    define _(String) gettext (String)
216 #    ifdef gettext_noop
217 #        define N_(String) gettext_noop (String)
218 #    else
219 #        define N_(String) (String)
220 #    endif
221 #else /* ENABLE_NLS */
222 /* Stubs that do something close enough.  */
223 #    define textdomain(String) (String)
224 #    define gettext(String) (String)
225 #    define dgettext(Domain,Message) (Message)
226 #    define dcgettext(Domain,Message,Type) (Message)
227 #    define bindtextdomain(Domain,Directory) (Domain)
228 #    define _(String) (String)
229 #    define N_(String) (String)
230 #endif /* ENABLE_NLS */
231 #endif /* !DONT_NEED_DECLARATIONS */