/* autoconf.h.in -- System-dependent configuration information */ #ifndef AUTOCONF_H #define AUTOCONF_H #include "copyright.h" /* --------------------------------------------------------------------------- * Configuration section: * * These defines are written by the configure script. * Change them if need be */ /* Define if we have stdlib.h et al */ #undef STDC_HEADERS /* Define if we have string.h instead of strings.h */ #undef USG /* Define if we have unistd.h */ #undef HAVE_UNISTD_H /* Define if we have memory.h and need it to get memcmp et al */ #undef NEED_MEMORY_H /* Decl for pid_t */ #undef pid_t /* signal() return type */ #define RETSIGTYPE void /* Define if we have vfork.h */ #undef HAVE_VFORK_H /* Define if vfork is broken */ #undef vfork /* Define if wait3 exists and works */ #undef HAVE_WAIT3 /* Define if struct tm is not in time.h */ #undef TM_IN_SYS_TIME /* Define if struct tm has a timezone member */ #undef HAVE_TM_ZONE /* Define if tzname[] exists */ #undef HAVE_TZNAME /* Define if setrlimit exists */ #undef HAVE_SETRLIMIT /* Define if getrusage exists */ #undef HAVE_GETRUSAGE /* Define if timelocal exists */ #undef HAVE_TIMELOCAL /* Define if mktime exists */ #undef HAVE_MKTIME /* Define if getdtablesize exists */ #undef HAVE_GETDTABLESIZE /* Define if getpagesize exists */ #undef HAVE_GETPAGESIZE /* Define if srandom exists */ #undef HAVE_SRANDOM /* Define if srandom exists */ #undef HAVE_DRAND48 /* Define if strftime exists */ #undef HAVE_STRFTIME /* Define if cbrt exists */ #undef HAVE_CBRT /* Define if asinh exists */ #undef HAVE_ASINH /* Define if remainer exists */ #undef HAVE_REMAINER /* Define if lgamma exists */ #undef HAVE_LGAMMA /* Define if erfc exists */ #undef HAVE_ERFC /* Define if y1 exists */ #undef HAVE_Y1 /* Define if j1 exists */ #undef HAVE_J1 /* Define if fabs exists */ #undef HAVE_FABS /* Define if isnormal exists */ #undef HAVE_ISNORMAL /* Define if issubnormal exists */ #undef HAVE_ISSUBNORMAL /* Define if finite exists */ #undef HAVE_FINITE /* Define if isinf exists */ #undef HAVE_ISINF /* Define if isnan exists */ #undef HAVE_ISNAN /* Define if sys_siglist[] exists */ #undef HAVE_SYS_SIGLIST /* Define if _sys_siglist[] exists */ #undef HAVE__SYS_SIGLIST /* Define if errno.h exists */ #undef HAVE_ERRNO_H /* Define if malloc.h exists */ #undef HAVE_MALLOC_H /* Define if sys/socketvar.h exists */ #undef HAVE_SYS_SOCKETVAR_H /* Define if const is broken */ #undef const /* Define if char type is unsigned */ #undef __CHAR_UNSIGNED__ /* Define if inline keyword is broken or nonstandard */ #undef inline /* Define if we need to declare vsprintf yourself */ #undef NEED_VSPRINTF_DCL /* Define if you need to declare sys_siglist yourself */ #undef NEED_SYS_SIGLIST_DCL /* Define if you need to declare _sys_siglist yourself */ #undef NEED__SYS_SIGLIST_DCL /* Define if you need to declare sys_errlist yourself */ #undef NEED_SYS_ERRLIST_DCL /* Define if you need to declare _sys_errlist yourself */ #undef NEED_SYS__ERRLIST_DCL /* Define if you need to declare perror yourself */ #undef NEED_PERROR_DCL /* Define if you need to declare sprintf yourself */ #undef NEED_SPRINTF_DCL /* Define if you need to declare getrusage yourself */ #undef NEED_GETRUSAGE_DCL /* Define if struct linger is defined */ #undef HAVE_LINGER /* Define if signal handlers have a struct sigcontext as their third arg */ #undef HAVE_STRUCT_SIGCONTEXT /* Define if stdio.h defines lots of extra functions */ #undef EXTENDED_STDIO_DCLS /* Define if sys/socket.h defines lots of extra functions */ #undef EXTENDED_SOCKET_DCLS /* Define if sys/wait.h defines union wait. */ #undef HAVE_UNION_WAIT /* Define if we have system-supplied ndbm routines */ #undef HAVE_NDBM /* Define if we have system-supplied (old) dbm routines */ #undef HAVE_DBM /* Define if sys/time.h includes time.h but time.h doesn't protect against * multiple inclusions. */ #undef TIME_H_BRAINDAMAGE /* Define this if your compiler is smart enough to allocate variable length * local character variables */ #undef HAVE_VAR_LOCAL_VAR /* --------------------------------------------------------------------------- * Setup section: * * Load system-dependent header files. */ #ifdef STDC_HEADERS #include <stdarg.h> #include <stdlib.h> #include <limits.h> #else #include <varargs.h> extern int atoi(const char *); extern double atof(const char *); #endif #ifdef NEED_MEMORY_H #include <memory.h> #endif #if defined(USG) || defined(STDC_HEADERS) #include <string.h> #define index strchr #define rindex strrchr #define bcopy(s,d,n) memcpy(d,s,n) #define bcmp(s1,s2,n) memcmp(s1,s2,n) #define bzero(s,n) memset(s,0,n) #else #include <strings.h> extern char *strtok(char *, char *); extern void bcopy(char *, char *, int); extern void bzero(char *, int); #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifndef TIME_H_BRAINDAMAGE #include <time.h> #endif #include <sys/time.h> #if defined(HAVE_SETRLIMIT) || defined(HAVE_GETRUSAGE) #include <sys/resource.h> #ifdef NEED_GETRUSAGE_DCL extern int getrusage(int, struct rusage *); #endif #endif #include <sys/param.h> #ifndef HAVE_GETPAGESIZE #ifdef EXEC_PAGESIZE #define getpagesize() EXEC_PAGESIZE #else #ifdef NBPG #ifndef CLSIZE #define CLSIZE 1 #endif /* no CLSIZE */ #define getpagesize() NBPG * CLSIZE #else /* no NBPG */ #define getpagesize() NBPC #endif /* no NBPG */ #endif /* no EXEC_PAGESIZE */ #else #ifndef HAVE_UNISTD_H extern int getpagesize(void); #endif /* HAVE_UNISTD_H */ #endif /* HAVE_GETPAGESIZE_H */ #ifdef HAVE_ERRNO_H #include <errno.h> #ifdef NEED_PERROR_DCL extern void perror(const char *); #endif #else extern int errno; extern void perror(const char *); #endif #ifdef HAVE_MALLOC_H #include <malloc.h> #else extern char *malloc(int); extern char *realloc(char *, int); extern int free(char *); #endif #ifdef NEED_SYS_ERRLIST_DCL extern char *sys_errlist[]; #endif #ifndef HAVE_TIMELOCAL #ifndef HAVE_MKTIME #define NEED_TIMELOCAL extern time_t timelocal (struct tm *); #else #define timelocal mktime #endif /* HAVE_MKTIME */ #endif /* HAVE_TIMELOCAL */ #ifndef tolower extern int tolower(int); #endif #ifndef toupper extern int toupper(int); #endif #ifndef HAVE_SRANDOM #define random rand #define srandom srand #else #ifndef random /* only if not a macro */ extern long random(void); #endif #endif /* HAVE_SRANDOM */ #ifdef HAVE_DRAND48 extern void srand48(long); extern double drand48(void); #endif #include <sys/types.h> #include <stdio.h> #include <ctype.h> #ifdef NEED_SPRINTF_DCL #ifdef STDC_HEADERS extern char *sprintf(char *, const char *, ...); #else extern int sprintf(); #endif #endif #ifndef EXTENDED_STDIO_DCLS #ifdef STDC_HEADERS extern int fprintf(FILE *, const char *, ...); extern int printf(const char *, ...); extern int sscanf(const char *, const char *, ...); #else extern int fprintf(); extern int printf(); extern int sscanf(); #endif extern int close(int); extern int fclose(FILE *); extern int fflush(FILE *); extern int fgetc(FILE *); extern int fputc(int, FILE *); extern int fputs(const char *, FILE *); extern int fread(void *, size_t, size_t, FILE *); extern int fseek(FILE *, long, int); extern pid_t getpid(void); extern int pclose(FILE *); extern int rename(char *, char *); extern time_t time(time_t *); extern int ungetc(int, FILE *); extern int unlink(char *); extern int write(int, char *, int); #endif #include <sys/socket.h> #ifndef EXTENDED_SOCKET_DCLS extern int accept(int, struct sockaddr *, int *); extern int bind(int, struct sockaddr *, int); extern int listen(int, int); extern int sendto(int, void *, int, unsigned int, struct sockaddr *, int); extern int setsockopt(int, int, int, void *, int); extern int shutdown(int, int); extern int socket(int, int, int); #endif #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef HAVE_SYS_SOCKETVAR_H #include <sys/socketvar.h> #endif #endif /* AUTOCONF_H */