X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=acconfig.h;h=890db9d0ef8d22d624c45e7d618c8ac82eac6940;hp=39bf846415a8856a5ab65df2c7bdd028e3cdfa19;hb=daa9220332d7088444851d2d1142e28e3781049f;hpb=b56358ce77537daa7d462cb45030b71117452f5c diff --git a/acconfig.h b/acconfig.h index 39bf846..890db9d 100644 --- a/acconfig.h +++ b/acconfig.h @@ -1,13 +1,23 @@ /* acconfig.h Generated manually for use by autoheader. */ /* * $Id$ - * - * $Log$ - * Revision 1.1.1.1 1999/05/26 13:06:26 short - * First alpha release. - * */ +/* Define if your locale.h file contains LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + +/* Define to 1 if NLS is requested. */ +#undef ENABLE_NLS + +/* Define as 1 if you have catgets and don't want to use GNU gettext. */ +#undef HAVE_CATGETS + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +#undef HAVE_GETTEXT + +/* Define as 1 if you have the stpcpy function. */ +#undef HAVE_STPCPY + /* __NORETURN define - usually a GCC extension. */ #undef __NORETURN @@ -44,28 +54,178 @@ #undef HAVE_CBAUDEX #undef CBAUDEX +/* FD_SETSIZE define, may be missing. */ +#undef HAVE_FD_SETSIZE + +/* offsetof() define, may be missing. */ +#undef HAVE_OFFSETOF + /* snprintf(3) unsafe emulation */ #undef HAVE_SNPRINTF + +/* vsnprintf(3) unsafe emulation */ +#undef HAVE_VSNPRINTF + +/* found lockfile directory */ +#undef DEF_LOCKFILE + +/* how to declare __atribute__ ((__unused__)) */ +#undef ATTR_UNUSED + +/* whether they have __atttribute__ ((format(printf,...))) */ +#undef HAVE_PRINTFORMAT +#ifdef HAVE_PRINTFORMAT +#define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b)))) +#else +#define ATTR_PRINTFORMAT(a,b) +#endif + +@BOTTOM@ + +#ifndef DONT_NEED_DECLARATIONS + +/* Declaration for gethostname(3)? */ +#undef NEED_DECLARATION_GETHOSTNAME +#ifdef NEED_DECLARATION_GETHOSTNAME +#include +int gethostname(char *name, size_t len); +#endif + +/* Declaration for kill(2)? */ +#undef NEED_DECLARATION_KILL +#ifdef NEED_DECLARATION_KILL +#include +#include +int kill(pid_t pid, int sig); +#endif + +/* Declaration for snprintf(3)? */ +#undef NEED_DECLARATION_SNPRINTF +#ifdef NEED_DECLARATION_SNPRINTF +#include +int snprintf(char *str, size_t n, const char *format, ...); +#endif + +/* Declaration for vsnprintf(3)? */ +#undef NEED_DECLARATION_VSNPRINTF +#ifdef NEED_DECLARATION_VSNPRINTF +#include +#include +int vsnprintf(char *str, size_t n, const char *format, va_list ap); +#endif + +/* Declaration for strdup(3)? */ +#undef NEED_DECLARATION_STRDUP +#ifdef NEED_DECLARATION_STRDUP +#include +char *strdup(const char *s); +#endif + +/* Declaration for usleep(3)? */ +#undef NEED_DECLARATION_USLEEP +#ifdef NEED_DECLARATION_USLEEP +#include +void usleep(unsigned long usec); +#endif + +/* Declaration for strcasecmp(3)? */ +#undef NEED_DECLARATION_STRCASECMP +#ifdef NEED_DECLARATION_STRCASECMP +#include +int strcasecmp(const char *s1, const char *s2); +#endif + +/* Declaration for siginterrupt(3)? */ +#undef NEED_DECLARATION_SIGINTERRUPT +#ifdef NEED_DECLARATION_SIGINTERRUPT +#include +int siginterrupt(int sig, int flag); +#endif + +/* Declaration for popen(3)? */ +#undef NEED_DECLARATION_POPEN +#ifdef NEED_DECLARATION_POPEN +#include +FILE *popen(const char *command, const char *type); +#endif + +/* Declaration for pclose(3)? */ +#undef NEED_DECLARATION_PCLOSE +#ifdef NEED_DECLARATION_PCLOSE +#include +int pclose(FILE *stream); +#endif + +#endif /* !DONT_NEED_DECLARATIONS */ + +/* snprintf(3) unsafe emulation */ #ifdef HAVE_SNPRINTF -#define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d)) +#define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) ) +#define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2) ) +#define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5)) #else -#define VARPRINTF(v,f,d) sprintf((v),f,(d)) +#define VARPRINTF(v,f,d) sprintf((v),f,(d) ) +#define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2) ) +#define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5)) #endif /* vsnprintf(3) unsafe emulation */ -#undef HAVE_VSNPRINTF #ifdef HAVE_VSNPRINTF -#define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d)) +#define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) ) +#define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2)) #else -#define VARVPRINTF(v,f,d) vsprintf((v),f,(d)) +#define VARVPRINTF(v,f,d) vsprintf((v),f,(d) ) +#define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2)) #endif -/* printf family accepts %m */ -#undef PRINTF_WORKS_PM +#ifndef HAVE_STRERROR +extern char *sys_errlist[]; +#define strerror(i) sys_errlist[i] +#endif -/* found lockfile directory */ -#undef DEF_LOCKFILE +#ifndef HAVE_STRCHR +#define strchr index +#endif -/* how to declare __atribute__ ((__unused__)) */ -#undef ATTR_UNUSED +#ifndef HAVE_STRRCHR +#define strrchr rindex +#endif +#ifdef HAVE_STRCASECMP +#define strtrycasecmp strcasecmp +#else +#define strtrycasecmp strcmp +#endif + +#ifndef HAVE_OFFSETOF +#define offsetof(a,b) ((size_t)&((a *)0)->b) +#endif + +#ifndef DONT_NEED_DECLARATIONS +/* + * Handles all of the internationalization configuration options. + * Author: Tom Tromey + * Stolen from + * Modified by Jan Kratochvil + */ +#ifdef ENABLE_NLS +#ifdef HAVE_LIBINTL_H +# include +#endif /* HAVE_LIBINTL_H */ +# define _(String) gettext (String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else /* ENABLE_NLS */ +/* Stubs that do something close enough. */ +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif /* ENABLE_NLS */ +#endif /* !DONT_NEED_DECLARATIONS */