1 /* acconfig.h Generated manually for use by autoheader. */
6 /* Define if your locale.h file contains LC_MESSAGES. */
7 #undef HAVE_LC_MESSAGES
9 /* Define to 1 if NLS is requested. */
12 /* Define as 1 if you have catgets and don't want to use GNU gettext. */
15 /* Define as 1 if you have gettext and don't want to use GNU gettext. */
18 /* Define as 1 if you have the stpcpy function. */
21 /* __NORETURN define - usually a GCC extension. */
24 /* __NORETURN2 define - usually a GCC extension. */
27 /* Turn on debugging to stderr. */
30 /* Disable runtime assertion checks. */
33 /* Provide stub for MAX-function if needed. */
36 #define MAX(a,b) ((a)>(b)?(a):(b))
39 /* Provide stub for MIN-function if needed. */
42 #define MIN(a,b) ((a)<(b)?(a):(b))
45 /* LINE_MAX from <limits.h>, provide default if not defined. */
49 /* CBAUD define, may be missing. */
53 /* CBAUDEX define, may be missing. */
57 /* FD_SETSIZE define, may be missing. */
58 #undef HAVE_FD_SETSIZE
60 /* offsetof() define, may be missing. */
63 /* snprintf(3) unsafe emulation */
66 /* vsnprintf(3) unsafe emulation */
69 /* found lockfile directory */
72 /* how to declare __atribute__ ((__unused__)) */
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))))
80 #define ATTR_PRINTFORMAT(a,b)
85 #ifndef DONT_NEED_DECLARATIONS
87 /* Declaration for gethostname(3)? */
88 #undef NEED_DECLARATION_GETHOSTNAME
89 #ifdef NEED_DECLARATION_GETHOSTNAME
91 int gethostname(char *name, size_t len);
94 /* Declaration for kill(2)? */
95 #undef NEED_DECLARATION_KILL
96 #ifdef NEED_DECLARATION_KILL
97 #include <sys/types.h>
99 int kill(pid_t pid, int sig);
102 /* Declaration for snprintf(3)? */
103 #undef NEED_DECLARATION_SNPRINTF
104 #ifdef NEED_DECLARATION_SNPRINTF
106 int snprintf(char *str, size_t n, const char *format, ...);
109 /* Declaration for vsnprintf(3)? */
110 #undef NEED_DECLARATION_VSNPRINTF
111 #ifdef NEED_DECLARATION_VSNPRINTF
114 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
117 /* Declaration for strdup(3)? */
118 #undef NEED_DECLARATION_STRDUP
119 #ifdef NEED_DECLARATION_STRDUP
121 char *strdup(const char *s);
124 /* Declaration for usleep(3)? */
125 #undef NEED_DECLARATION_USLEEP
126 #ifdef NEED_DECLARATION_USLEEP
128 void usleep(unsigned long usec);
131 /* Declaration for strcasecmp(3)? */
132 #undef NEED_DECLARATION_STRCASECMP
133 #ifdef NEED_DECLARATION_STRCASECMP
135 int strcasecmp(const char *s1, const char *s2);
138 /* Declaration for siginterrupt(3)? */
139 #undef NEED_DECLARATION_SIGINTERRUPT
140 #ifdef NEED_DECLARATION_SIGINTERRUPT
142 int siginterrupt(int sig, int flag);
145 /* Declaration for popen(3)? */
146 #undef NEED_DECLARATION_POPEN
147 #ifdef NEED_DECLARATION_POPEN
149 FILE *popen(const char *command, const char *type);
152 /* Declaration for pclose(3)? */
153 #undef NEED_DECLARATION_PCLOSE
154 #ifdef NEED_DECLARATION_PCLOSE
156 int pclose(FILE *stream);
159 #endif /* !DONT_NEED_DECLARATIONS */
161 /* snprintf(3) unsafe emulation */
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))
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))
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))
177 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
178 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
181 #ifndef HAVE_STRERROR
182 extern char *sys_errlist[];
183 #define strerror(i) sys_errlist[i]
191 #define strrchr rindex
194 #ifdef HAVE_STRCASECMP
195 #define strtrycasecmp strcasecmp
197 #define strtrycasecmp strcmp
200 #ifndef HAVE_OFFSETOF
201 #define offsetof(a,b) ((size_t)&((a *)0)->b)
204 #ifndef DONT_NEED_DECLARATIONS
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>
212 #ifdef HAVE_LIBINTL_H
213 # include <libintl.h>
214 #endif /* HAVE_LIBINTL_H */
215 # define _(String) gettext (String)
217 # define N_(String) gettext_noop (String)
219 # define N_(String) (String)
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 */