1+ /* include/config.h. Generated automatically by configure. */
12/* the purpose of this file is to reduce the use of #ifdef's through
23 * the code base by those porting the software, and to facilitate the
34 * eventual use of autoconf to build the server
89
910#define BLCKSZ 8192
1011
11- #if defined(aix )
12- #define TERMIOS_H_LOCATION <termios.h>
12+ /*
13+ * The following is set using configure.
14+ */
15+
16+ /* Set to 1 if you have <termios.h> */
17+ #define HAVE_TERMIOS_H 1
18+
19+ /* Set to 1 if you have <limits.h> */
20+ #define HAVE_LIMITS_H 1
21+
22+ /* Set to 1 if you have <values.h> */
23+ /* #undef HAVE_VALUES_H */
24+
25+ /* Set to 1 if you have isinf() */
26+ #define HAVE_ISINF 1
27+
28+ /* Set to 1 if you have tzset() */
29+ #define HAVE_TZSET 1
30+
31+ /* Set to 1 if you have cbrt() */
32+ /* #undef HAVE_CBRT */
33+
34+ /*
35+ * Code below this point should not require changes
36+ */
37+
38+ #if defined(HAVE_TERMIOS_H )
39+ # define TERMIOS_H_LOCATION <termios.h>
1340#else
14- #define TERMIOS_H_LOCATION <sys/termios.h>
41+ # define TERMIOS_H_LOCATION <sys/termios.h>
1542#endif
1643
17- #if !defined(nextstep )
44+ /* Temporary: Need to change source files from USE_VALUES_H to HAVE_VALUES_H */
45+ #if defined(HAVE_VALUES_H )
1846#define USE_VALUES_H
1947#endif
2048
49+ /* Temporary: Need to change source files from USE_LIMITS_H to HAVE_LIMITS_H */
50+ #if defined(HAVE_LIMITS_H )
51+ # define USE_LIMITS_H
52+ #endif
53+
54+ #if !defined(HAVE_ISINF )
55+ # define NEED_ISINF
56+ #endif
57+
58+ #if !defined(HAVE_CBRT )
59+ # define NEED_CBRT
60+ #endif
61+
2162#define HAVE_MEMMOVE
2263
2364#if defined(aix )
2465# define CLASS_CONFLICT
2566# define DISABLE_XOPEN_NLS
26- # define NEED_ISINF
2767# define NEED_UNION_SEMUN
2868# define NEED_SYS_SELECT_H
29- # define HAVE_TZSET
3069# define HAVE_ANSI_CPP
3170# define HAS_TEST_AND_SET
3271typedef unsignedint slock_t ;
3675# define USE_POSIX_TIME
3776# define USE_POSIX_SIGNALS
3877# define DISABLE_XOPEN_NLS
39- # define NEED_ISINF
4078# define HAS_LONG_LONG
4179# define NEED_UNION_SEMUN
4280# define HAS_TEST_AND_SET
4583#endif
4684
4785#if defined(BSD44_derived )
48- # define USE_LIMITS_H
4986# define USE_POSIX_TIME
50- # define NEED_CBRT
5187# define NEED_I386_TAS_ASM
5288# define HAS_TEST_AND_SET
5389# if defined(__mips__ )
54- # undef HAS_TEST_AND_SET
90+ /* # undef HAS_TEST_AND_SET */
5591# endif
5692typedef unsignedchar slock_t ;
5793#endif
66102# if defined(PRE_BSDI_2_1 )
67103# define NEED_UNION_SEMUN
68104# endif
69- # define USE_LIMITS_H
70105# define USE_POSIX_TIME
71- # define NEED_CBRT
72106# define HAS_TEST_AND_SET
73107typedef unsignedchar slock_t ;
74108#endif
83117#if defined(hpux )
84118# define JMP_BUF
85119# define USE_POSIX_TIME
86- # define HAVE_TZSET
87- # define NEED_CBRT
88120# define NEED_RINT
89121# define NEED_UNION_SEMUN
90122# define HAS_TEST_AND_SET
91123typedef struct {int sem [4 ]; }slock_t ;
92124#endif
93125
94126#if defined(i386_solaris )
95- # define USE_LIMITS_H
96127# define USE_POSIX_TIME
97128# define USE_POSIX_SIGNALS
98- # define NEED_ISINF
99129# define NEED_RUSAGE
100130# define NO_EMPTY_STMTS
101- # define HAVE_TZSET
102131# define NEED_UNION_SEMUN
103132# define SYSV_DIRENT
104133# define HAS_TEST_AND_SET
108137#if defined(irix5 )
109138# define USE_POSIX_TIME
110139# define USE_POSIX_SIGNALS
111- # define NEED_ISINF
112140# define NO_EMPTY_STMTS
113141# define NO_VFORK
114- # define HAVE_TZSET
115142# define SYSV_DIRENT
116143# define HAS_TEST_AND_SET
117144# include <abi_mutex.h>
127154*/
128155# define JMP_BUF
129156# define USE_POSIX_TIME
130- # define HAVE_TZSET
131- # define NEED_CBRT
132157# define NEED_I386_TAS_ASM
133158# define HAS_TEST_AND_SET
134159typedef unsignedchar slock_t ;
152177# define NEED_SIG_JMP
153178# endif
154179
155- # define USE_LIMITS_H
156180# define JMP_BUF
157181# define NO_WAITPID
158182typedef struct mutex slock_t ;
163187#endif
164188
165189#if defined(sparc_solaris )
166- # define USE_LIMITS_H
167190# define USE_POSIX_TIME
168191# define USE_POSIX_SIGNALS
169- # define NEED_ISINF
170192# define NEED_RUSAGE
171193# define NO_EMPTY_STMTS
172194# define USE_POSIX_TIME
173- # define HAVE_TZSET
174195# define NEED_UNION_SEMUN
175196# define SYSV_DIRENT
176197# define HAS_TEST_AND_SET
@@ -179,16 +200,14 @@ typedef unsigned char slock_t;
179200
180201#if defined(sunos4 )
181202# define USE_POSIX_TIME
182- # undef HAVE_MEMMOVE
203+ /* # undef HAVE_MEMMOVE */
183204#endif
184205
185206#if defined(svr4 )
186207# define USE_POSIX_TIME
187208# define USE_POSIX_SIGNALS
188- # define NEED_ISINF
189209# define NEED_RUSAGE
190210# define NO_EMPTY_STMTS
191- # define HAVE_TZSET
192211# define NEED_UNION_SEMUN
193212# define SYSV_DIRENT
194213#endif
@@ -200,16 +219,12 @@ typedef unsigned char slock_t;
200219# define USES_WINSOCK
201220# define NOFILE100
202221# define NEED_UNION_SEMUN
203- # define HAVE_TZSET
204- # define NEED_CBRT
205- # define NEED_ISINF
206222# ifndef MAXPATHLEN
207223# define MAXPATHLEN 250
208224# endif
209225#endif /* WIN32 */
210226
211227#if defined(ultrix4 )
212- # define NEED_ISINF
213228# define USE_POSIX_TIME
214229# define NEED_UNION_SEMUN
215230# define NEED_STRDUP