1 | /*
|
---|
2 | * User definable configuration options
|
---|
3 | */
|
---|
4 |
|
---|
5 | /* Undefine if you don't want talk emulation */
|
---|
6 | #undef EMULATE_TALK
|
---|
7 |
|
---|
8 | /* Define if you want the connection to be probed */
|
---|
9 | /* XXX Not working yet, so ignore this for now */
|
---|
10 | #undef PROBE_CONN
|
---|
11 |
|
---|
12 | /* Define to 1 if you want KEEPALIVE timers */
|
---|
13 | #define DO_KEEPALIVE 0
|
---|
14 |
|
---|
15 | /* Define to MAX interfaces you expect to use at once */
|
---|
16 | /* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */
|
---|
17 | /* MAX_PPP_INTERFACES determines max. number of PPP interfaces */
|
---|
18 | #define MAX_INTERFACES 1
|
---|
19 | #define MAX_PPP_INTERFACES 1
|
---|
20 |
|
---|
21 | /* Define if you want slirp's socket in /tmp */
|
---|
22 | /* XXXXXX Do this in ./configure */
|
---|
23 | #undef USE_TMPSOCKET
|
---|
24 |
|
---|
25 | /* Define if you want slirp to use cfsetXspeed() on the terminal */
|
---|
26 | #undef DO_CFSETSPEED
|
---|
27 |
|
---|
28 | /* Define this if you want slirp to write to the tty as fast as it can */
|
---|
29 | /* This should only be set if you are using load-balancing, slirp does a */
|
---|
30 | /* pretty good job on single modems already, and seting this will make */
|
---|
31 | /* interactive sessions less responsive */
|
---|
32 | /* XXXXX Talk about having fast modem as unit 0 */
|
---|
33 | #undef FULL_BOLT
|
---|
34 |
|
---|
35 | /*
|
---|
36 | * Define if you want slirp to use less CPU
|
---|
37 | * You will notice a small lag in interactive sessions, but it's not that bad
|
---|
38 | * Things like Netscape/ftp/etc. are completely unaffected
|
---|
39 | * This is mainly for sysadmins who have many slirp users
|
---|
40 | */
|
---|
41 | #undef USE_LOWCPU
|
---|
42 |
|
---|
43 | /* Define this if your compiler doesn't like prototypes */
|
---|
44 | #ifndef __STDC__
|
---|
45 | #define NO_PROTOTYPES
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | /*********************************************************/
|
---|
49 | /*
|
---|
50 | * Autoconf defined configuration options
|
---|
51 | * You shouldn't need to touch any of these
|
---|
52 | */
|
---|
53 |
|
---|
54 | #ifdef _MSC_VER
|
---|
55 | #undef HAVE_UNISTD_H
|
---|
56 | #else
|
---|
57 | /* Define if you have unistd.h */
|
---|
58 | #define HAVE_UNISTD_H
|
---|
59 | #endif
|
---|
60 |
|
---|
61 | /* Define if you have stdlib.h */
|
---|
62 | #define HAVE_STDLIB_H
|
---|
63 |
|
---|
64 | /* Define if you have sys/ioctl.h */
|
---|
65 | #undef HAVE_SYS_IOCTL_H
|
---|
66 | #ifndef RT_OS_WINDOWS
|
---|
67 | # define HAVE_SYS_IOCTL_H
|
---|
68 | #endif
|
---|
69 |
|
---|
70 | /* Define if you have sys/filio.h */
|
---|
71 | #undef HAVE_SYS_FILIO_H
|
---|
72 | #ifdef __APPLE__
|
---|
73 | #define HAVE_SYS_FILIO_H
|
---|
74 | #endif
|
---|
75 |
|
---|
76 | /* Define according to how time.h should be included */
|
---|
77 | #define TIME_WITH_SYS_TIME 0
|
---|
78 | #undef HAVE_SYS_TIME_H
|
---|
79 |
|
---|
80 | /* Define if you have sys/bitypes.h */
|
---|
81 | #undef HAVE_SYS_BITYPES_H
|
---|
82 |
|
---|
83 | /* Define if the machine is big endian */
|
---|
84 | /*#undef WORDS_BIGENDIAN */
|
---|
85 |
|
---|
86 | /* Define if you have readv */
|
---|
87 | #undef HAVE_READV
|
---|
88 |
|
---|
89 | /* Define if iovec needs to be declared */
|
---|
90 | #undef DECLARE_IOVEC
|
---|
91 | #ifdef RT_OS_WINDOWS
|
---|
92 | # define DECLARE_IOVEC
|
---|
93 | #endif
|
---|
94 |
|
---|
95 | /* Define if you have a POSIX.1 sys/wait.h */
|
---|
96 | #undef HAVE_SYS_WAIT_H
|
---|
97 |
|
---|
98 | /* Define if you have sys/select.h */
|
---|
99 | #undef HAVE_SYS_SELECT_H
|
---|
100 | #ifndef RT_OS_WINDOWS
|
---|
101 | # define HAVE_SYS_SELECT_H
|
---|
102 | #endif
|
---|
103 |
|
---|
104 | /* Define if you have strings.h */
|
---|
105 | #define HAVE_STRING_H
|
---|
106 |
|
---|
107 | /* Define if you have arpa/inet.h */
|
---|
108 | #undef HAVE_ARPA_INET_H
|
---|
109 | #ifndef RT_OS_WINDOWS
|
---|
110 | # define HAVE_ARPA_INET_H
|
---|
111 | #endif
|
---|
112 |
|
---|
113 | /* Define if you have sys/signal.h */
|
---|
114 | #undef HAVE_SYS_SIGNAL_H
|
---|
115 |
|
---|
116 | /* Define if you have sys/stropts.h */
|
---|
117 | #undef HAVE_SYS_STROPTS_H
|
---|
118 |
|
---|
119 | /* Define to whatever your compiler thinks inline should be */
|
---|
120 | #if defined(_MSC_VER) && !defined(__cplusplus)
|
---|
121 | # define inline _inline
|
---|
122 | #else
|
---|
123 | # define inline inline
|
---|
124 | #endif
|
---|
125 |
|
---|
126 | /* Define to whatever your compiler thinks const should be */
|
---|
127 | #define const const
|
---|
128 |
|
---|
129 | /* Define if your compiler doesn't like prototypes */
|
---|
130 | #undef NO_PROTOTYPES
|
---|
131 |
|
---|
132 | /* Define if you don't have u_int32_t etc. typedef'd */
|
---|
133 | #undef NEED_TYPEDEFS
|
---|
134 | #ifdef __sun__
|
---|
135 | #define NEED_TYPEDEFS
|
---|
136 | #endif
|
---|
137 |
|
---|
138 | /* Define to sizeof(char) */
|
---|
139 | #define SIZEOF_CHAR 1
|
---|
140 |
|
---|
141 | /* Define to sizeof(short) */
|
---|
142 | #define SIZEOF_SHORT 2
|
---|
143 |
|
---|
144 | /* Define to sizeof(int) */
|
---|
145 | #define SIZEOF_INT 4
|
---|
146 |
|
---|
147 | /* Define to sizeof(char *) */
|
---|
148 | #define HOST_LONG_BITS ARCH_BITS
|
---|
149 | #define SIZEOF_CHAR_P (HOST_LONG_BITS / 8)
|
---|
150 |
|
---|
151 | /* Define if you have random() */
|
---|
152 | #undef HAVE_RANDOM
|
---|
153 |
|
---|
154 | /* Define if you have srandom() */
|
---|
155 | #undef HAVE_SRANDOM
|
---|
156 |
|
---|
157 | /* Define if you have inet_aton */
|
---|
158 | #undef HAVE_INET_ATON
|
---|
159 | #ifndef RT_OS_WINDOWS
|
---|
160 | # define HAVE_INET_ATON
|
---|
161 | #endif
|
---|
162 |
|
---|
163 | /* Define if you have setenv */
|
---|
164 | #undef HAVE_SETENV
|
---|
165 |
|
---|
166 | /* Define if you have index() */
|
---|
167 | #undef HAVE_INDEX
|
---|
168 |
|
---|
169 | /* Define if you have bcmp() */
|
---|
170 | #undef HAVE_BCMP
|
---|
171 |
|
---|
172 | /* Define if you have drand48 */
|
---|
173 | #undef HAVE_DRAND48
|
---|
174 |
|
---|
175 | /* Define if you have memmove */
|
---|
176 | #define HAVE_MEMMOVE
|
---|
177 |
|
---|
178 | /* Define if you have gethostid */
|
---|
179 | #undef HAVE_GETHOSTID
|
---|
180 | #ifdef RT_OS_OS2
|
---|
181 | # define HAVE_GETHOSTID
|
---|
182 | #endif
|
---|
183 |
|
---|
184 | /* Define if you DON'T have unix-domain sockets */
|
---|
185 | #undef NO_UNIX_SOCKETS
|
---|
186 | #ifdef RT_OS_WINDOWS
|
---|
187 | # define NO_UNIX_SOCKETS
|
---|
188 | #endif
|
---|
189 |
|
---|
190 | /* Define if gettimeofday only takes one argument */
|
---|
191 | #undef GETTIMEOFDAY_ONE_ARG
|
---|
192 |
|
---|
193 | /* Define if you have revoke() */
|
---|
194 | #undef HAVE_REVOKE
|
---|
195 |
|
---|
196 | /* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */
|
---|
197 | #undef HAVE_GRANTPT
|
---|
198 |
|
---|
199 | /* Define if you have fchmod */
|
---|
200 | #undef HAVE_FCHMOD
|
---|
201 |
|
---|
202 | /* Define if you have <sys/type32.h> */
|
---|
203 | #undef HAVE_SYS_TYPES32_H
|
---|