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 /* LINE_MAX from <limits.h>, provide default if not defined. */
37 /* CBAUD define, may be missing. */
41 /* CBAUDEX define, may be missing. */
45 /* CRTSCTS define, may be missing. */
49 /* FD_SETSIZE define, may be missing. */
50 #undef HAVE_FD_SETSIZE
52 /* offsetof() define, may be missing. */
55 /* snprintf(3) unsafe emulation */
58 /* vsnprintf(3) unsafe emulation */
61 /* found lockfile directory */
64 /* how to declare __atribute__ ((__unused__)) */
67 /* whether they have __atttribute__ ((format(printf,...))) */
68 #undef HAVE_PRINTFORMAT
69 #ifdef HAVE_PRINTFORMAT
70 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
72 #define ATTR_PRINTFORMAT(a,b)
77 #ifndef DONT_NEED_DECLARATIONS
79 /* Declaration for gethostname(3)? */
80 #undef NEED_DECLARATION_GETHOSTNAME
81 #ifdef NEED_DECLARATION_GETHOSTNAME
83 int gethostname(char *name, size_t len);
86 /* Declaration for kill(2)? */
87 #undef NEED_DECLARATION_KILL
88 #ifdef NEED_DECLARATION_KILL
89 #include <sys/types.h>
91 int kill(pid_t pid, int sig);
94 /* Declaration for snprintf(3)? */
95 #undef NEED_DECLARATION_SNPRINTF
96 #ifdef NEED_DECLARATION_SNPRINTF
98 int snprintf(char *str, size_t n, const char *format, ...);
101 /* Declaration for vsnprintf(3)? */
102 #undef NEED_DECLARATION_VSNPRINTF
103 #ifdef NEED_DECLARATION_VSNPRINTF
106 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
109 /* Declaration for strdup(3)? */
110 #undef NEED_DECLARATION_STRDUP
111 #ifdef NEED_DECLARATION_STRDUP
113 char *strdup(const char *s);
116 /* Declaration for usleep(3)? */
117 #undef NEED_DECLARATION_USLEEP
118 #ifdef NEED_DECLARATION_USLEEP
120 void usleep(unsigned long usec);
123 /* Declaration for strcasecmp(3)? */
124 #undef NEED_DECLARATION_STRCASECMP
125 #ifdef NEED_DECLARATION_STRCASECMP
127 int strcasecmp(const char *s1, const char *s2);
130 /* Declaration for siginterrupt(3)? */
131 #undef NEED_DECLARATION_SIGINTERRUPT
132 #ifdef NEED_DECLARATION_SIGINTERRUPT
134 int siginterrupt(int sig, int flag);
137 /* Declaration for popen(3)? */
138 #undef NEED_DECLARATION_POPEN
139 #ifdef NEED_DECLARATION_POPEN
141 FILE *popen(const char *command, const char *type);
144 /* Declaration for pclose(3)? */
145 #undef NEED_DECLARATION_PCLOSE
146 #ifdef NEED_DECLARATION_PCLOSE
148 int pclose(FILE *stream);
151 #endif /* !DONT_NEED_DECLARATIONS */
153 /* snprintf(3) unsafe emulation */
155 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
156 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2) )
157 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
159 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
160 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2) )
161 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
164 /* vsnprintf(3) unsafe emulation */
165 #ifdef HAVE_VSNPRINTF
166 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
167 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
169 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
170 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
173 #ifndef HAVE_STRERROR
174 extern char *sys_errlist[];
175 #define strerror(i) sys_errlist[i]
183 #define strrchr rindex
186 #ifdef HAVE_STRCASECMP
187 #define strtrycasecmp strcasecmp
189 #define strtrycasecmp strcmp
192 #ifndef HAVE_OFFSETOF
193 #define offsetof(a,b) ((size_t)&((a *)0)->b)
196 #ifndef DONT_NEED_DECLARATIONS
198 * Handles all of the internationalization configuration options.
199 * Author: Tom Tromey <tromey@creche.cygnus.com>
200 * Stolen from <libgnome/gnome-i18n.h>
201 * Modified by Jan Kratochvil <short@ucw.cz>
204 #ifdef HAVE_LIBINTL_H
205 # include <libintl.h>
206 #endif /* HAVE_LIBINTL_H */
207 /* 'gettext()' may not be declared here and it will default to return 'int'! */
208 # define _(String) ((const char *)gettext (String))
210 # define N_(String) ((const char *)gettext_noop (String))
212 # define N_(String) (String)
214 #else /* ENABLE_NLS */
215 /* Stubs that do something close enough. */
216 # define textdomain(String) (String)
217 # define gettext(String) (String)
218 # define dgettext(Domain,Message) (Message)
219 # define dcgettext(Domain,Message,Type) (Message)
220 # define bindtextdomain(Domain,Directory) (Domain)
221 # define _(String) (String)
222 # define N_(String) (String)
223 #endif /* ENABLE_NLS */
224 #endif /* !DONT_NEED_DECLARATIONS */