diff options
-rw-r--r-- | .cvsignore | 30 | ||||
-rw-r--r-- | config.h.in | 1456 | ||||
-rwxr-xr-x | configure | 30975 | ||||
-rwxr-xr-x[-rw-r--r--] | contrib/solaris/README | 0 | ||||
-rw-r--r-- | moduli.0 | 72 | ||||
-rw-r--r-- | openbsd-compat/.cvsignore | 1 | ||||
-rw-r--r-- | openbsd-compat/regress/.cvsignore | 5 | ||||
-rwxr-xr-x[-rw-r--r--] | openbsd-compat/sha2.c | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | openbsd-compat/sha2.h | 0 | ||||
-rw-r--r-- | regress/.cvsignore | 1 | ||||
-rw-r--r-- | scard/.cvsignore | 2 | ||||
-rw-r--r-- | scp.0 | 148 | ||||
-rw-r--r-- | sftp-server.0 | 63 | ||||
-rw-r--r-- | sftp.0 | 319 | ||||
-rw-r--r-- | ssh-add.0 | 109 | ||||
-rw-r--r-- | ssh-agent.0 | 118 | ||||
-rw-r--r-- | ssh-keygen.0 | 434 | ||||
-rw-r--r-- | ssh-keyscan.0 | 107 | ||||
-rw-r--r-- | ssh-keysign.0 | 42 | ||||
-rw-r--r-- | ssh-pkcs11-helper.0 | 25 | ||||
-rw-r--r-- | ssh-rand-helper.0 | 51 | ||||
-rw-r--r-- | ssh.0 | 880 | ||||
-rw-r--r-- | ssh_config.0 | 676 | ||||
-rw-r--r-- | sshd.0 | 617 | ||||
-rw-r--r-- | sshd_config.0 | 659 |
25 files changed, 36751 insertions, 39 deletions
diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 8dd3ddff9..000000000 --- a/.cvsignore +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | *.0 | ||
2 | *.out | ||
3 | Makefile | ||
4 | autom4te.cache | ||
5 | buildit.sh | ||
6 | buildpkg.sh | ||
7 | config.cache | ||
8 | config.h | ||
9 | config.h.in | ||
10 | config.log | ||
11 | config.status | ||
12 | configure | ||
13 | openssh.xml | ||
14 | opensshd.init | ||
15 | scp | ||
16 | sftp | ||
17 | sftp-server | ||
18 | ssh | ||
19 | ssh-add | ||
20 | ssh-agent | ||
21 | ssh-keygen | ||
22 | ssh-keyscan | ||
23 | ssh-keysign | ||
24 | ssh-pkcs11-helper | ||
25 | ssh-rand-helper | ||
26 | ssh_prng_cmds | ||
27 | sshd | ||
28 | stamp-h.in | ||
29 | survey | ||
30 | survey.sh | ||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..a43ad5711 --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,1456 @@ | |||
1 | /* config.h.in. Generated from configure.ac by autoheader. */ | ||
2 | |||
3 | /* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address | ||
4 | */ | ||
5 | #undef AIX_GETNAMEINFO_HACK | ||
6 | |||
7 | /* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */ | ||
8 | #undef AIX_LOGINFAILED_4ARG | ||
9 | |||
10 | /* System only supports IPv4 audit records */ | ||
11 | #undef AU_IPv4 | ||
12 | |||
13 | /* Define if your resolver libs need this for getrrsetbyname */ | ||
14 | #undef BIND_8_COMPAT | ||
15 | |||
16 | /* Define if cmsg_type is not passed correctly */ | ||
17 | #undef BROKEN_CMSG_TYPE | ||
18 | |||
19 | /* getaddrinfo is broken (if present) */ | ||
20 | #undef BROKEN_GETADDRINFO | ||
21 | |||
22 | /* getgroups(0,NULL) will return -1 */ | ||
23 | #undef BROKEN_GETGROUPS | ||
24 | |||
25 | /* FreeBSD glob does not do what we need */ | ||
26 | #undef BROKEN_GLOB | ||
27 | |||
28 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ | ||
29 | #undef BROKEN_INET_NTOA | ||
30 | |||
31 | /* ia_uinfo routines not supported by OS yet */ | ||
32 | #undef BROKEN_LIBIAF | ||
33 | |||
34 | /* Ultrix mmap can't map files */ | ||
35 | #undef BROKEN_MMAP | ||
36 | |||
37 | /* Define if your struct dirent expects you to allocate extra space for d_name | ||
38 | */ | ||
39 | #undef BROKEN_ONE_BYTE_DIRENT_D_NAME | ||
40 | |||
41 | /* Can't do comparisons on readv */ | ||
42 | #undef BROKEN_READV_COMPARISON | ||
43 | |||
44 | /* Define if you have a broken realpath. */ | ||
45 | #undef BROKEN_REALPATH | ||
46 | |||
47 | /* Needed for NeXT */ | ||
48 | #undef BROKEN_SAVED_UIDS | ||
49 | |||
50 | /* Define if your setregid() is broken */ | ||
51 | #undef BROKEN_SETREGID | ||
52 | |||
53 | /* Define if your setresgid() is broken */ | ||
54 | #undef BROKEN_SETRESGID | ||
55 | |||
56 | /* Define if your setresuid() is broken */ | ||
57 | #undef BROKEN_SETRESUID | ||
58 | |||
59 | /* Define if your setreuid() is broken */ | ||
60 | #undef BROKEN_SETREUID | ||
61 | |||
62 | /* LynxOS has broken setvbuf() implementation */ | ||
63 | #undef BROKEN_SETVBUF | ||
64 | |||
65 | /* QNX shadow support is broken */ | ||
66 | #undef BROKEN_SHADOW_EXPIRE | ||
67 | |||
68 | /* Define if your snprintf is busted */ | ||
69 | #undef BROKEN_SNPRINTF | ||
70 | |||
71 | /* tcgetattr with ICANON may hang */ | ||
72 | #undef BROKEN_TCGETATTR_ICANON | ||
73 | |||
74 | /* updwtmpx is broken (if present) */ | ||
75 | #undef BROKEN_UPDWTMPX | ||
76 | |||
77 | /* Define if you have BSD auth support */ | ||
78 | #undef BSD_AUTH | ||
79 | |||
80 | /* Define if you want to specify the path to your lastlog file */ | ||
81 | #undef CONF_LASTLOG_FILE | ||
82 | |||
83 | /* Define if you want to specify the path to your utmp file */ | ||
84 | #undef CONF_UTMP_FILE | ||
85 | |||
86 | /* Define if you want to specify the path to your wtmpx file */ | ||
87 | #undef CONF_WTMPX_FILE | ||
88 | |||
89 | /* Define if you want to specify the path to your wtmp file */ | ||
90 | #undef CONF_WTMP_FILE | ||
91 | |||
92 | /* Define if your platform needs to skip post auth file descriptor passing */ | ||
93 | #undef DISABLE_FD_PASSING | ||
94 | |||
95 | /* Define if you don't want to use lastlog */ | ||
96 | #undef DISABLE_LASTLOG | ||
97 | |||
98 | /* Define if you don't want to use your system's login() call */ | ||
99 | #undef DISABLE_LOGIN | ||
100 | |||
101 | /* Define if you don't want to use pututline() etc. to write [uw]tmp */ | ||
102 | #undef DISABLE_PUTUTLINE | ||
103 | |||
104 | /* Define if you don't want to use pututxline() etc. to write [uw]tmpx */ | ||
105 | #undef DISABLE_PUTUTXLINE | ||
106 | |||
107 | /* Define if you want to disable shadow passwords */ | ||
108 | #undef DISABLE_SHADOW | ||
109 | |||
110 | /* Define if you don't want to use utmp */ | ||
111 | #undef DISABLE_UTMP | ||
112 | |||
113 | /* Define if you don't want to use utmpx */ | ||
114 | #undef DISABLE_UTMPX | ||
115 | |||
116 | /* Define if you don't want to use wtmp */ | ||
117 | #undef DISABLE_WTMP | ||
118 | |||
119 | /* Define if you don't want to use wtmpx */ | ||
120 | #undef DISABLE_WTMPX | ||
121 | |||
122 | /* Enable for PKCS#11 support */ | ||
123 | #undef ENABLE_PKCS11 | ||
124 | |||
125 | /* Builtin PRNG command timeout */ | ||
126 | #undef ENTROPY_TIMEOUT_MSEC | ||
127 | |||
128 | /* fsid_t has member val */ | ||
129 | #undef FSID_HAS_VAL | ||
130 | |||
131 | /* fsid_t has member __val */ | ||
132 | #undef FSID_HAS___VAL | ||
133 | |||
134 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
135 | #undef GETPGRP_VOID | ||
136 | |||
137 | /* Conflicting defs for getspnam */ | ||
138 | #undef GETSPNAM_CONFLICTING_DEFS | ||
139 | |||
140 | /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */ | ||
141 | #undef GLOB_HAS_ALTDIRFUNC | ||
142 | |||
143 | /* Define if your system glob() function has gl_matchc options in glob_t */ | ||
144 | #undef GLOB_HAS_GL_MATCHC | ||
145 | |||
146 | /* Define this if you want GSSAPI support in the version 2 protocol */ | ||
147 | #undef GSSAPI | ||
148 | |||
149 | /* Define if you want to use shadow password expire field */ | ||
150 | #undef HAS_SHADOW_EXPIRE | ||
151 | |||
152 | /* Define if your system uses access rights style file descriptor passing */ | ||
153 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
154 | |||
155 | /* Define if you have ut_addr in utmp.h */ | ||
156 | #undef HAVE_ADDR_IN_UTMP | ||
157 | |||
158 | /* Define if you have ut_addr in utmpx.h */ | ||
159 | #undef HAVE_ADDR_IN_UTMPX | ||
160 | |||
161 | /* Define if you have ut_addr_v6 in utmp.h */ | ||
162 | #undef HAVE_ADDR_V6_IN_UTMP | ||
163 | |||
164 | /* Define if you have ut_addr_v6 in utmpx.h */ | ||
165 | #undef HAVE_ADDR_V6_IN_UTMPX | ||
166 | |||
167 | /* Define to 1 if you have the `arc4random' function. */ | ||
168 | #undef HAVE_ARC4RANDOM | ||
169 | |||
170 | /* Define to 1 if you have the `arc4random_buf' function. */ | ||
171 | #undef HAVE_ARC4RANDOM_BUF | ||
172 | |||
173 | /* Define to 1 if you have the `arc4random_uniform' function. */ | ||
174 | #undef HAVE_ARC4RANDOM_UNIFORM | ||
175 | |||
176 | /* Define to 1 if you have the `asprintf' function. */ | ||
177 | #undef HAVE_ASPRINTF | ||
178 | |||
179 | /* OpenBSD's gcc has bounded */ | ||
180 | #undef HAVE_ATTRIBUTE__BOUNDED__ | ||
181 | |||
182 | /* Have attribute nonnull */ | ||
183 | #undef HAVE_ATTRIBUTE__NONNULL__ | ||
184 | |||
185 | /* OpenBSD's gcc has sentinel */ | ||
186 | #undef HAVE_ATTRIBUTE__SENTINEL__ | ||
187 | |||
188 | /* Define to 1 if you have the `aug_get_machine' function. */ | ||
189 | #undef HAVE_AUG_GET_MACHINE | ||
190 | |||
191 | /* Define to 1 if you have the `b64_ntop' function. */ | ||
192 | #undef HAVE_B64_NTOP | ||
193 | |||
194 | /* Define to 1 if you have the `b64_pton' function. */ | ||
195 | #undef HAVE_B64_PTON | ||
196 | |||
197 | /* Define if you have the basename function. */ | ||
198 | #undef HAVE_BASENAME | ||
199 | |||
200 | /* Define to 1 if you have the `bcopy' function. */ | ||
201 | #undef HAVE_BCOPY | ||
202 | |||
203 | /* Define to 1 if you have the `bindresvport_sa' function. */ | ||
204 | #undef HAVE_BINDRESVPORT_SA | ||
205 | |||
206 | /* Define to 1 if you have the <bsm/audit.h> header file. */ | ||
207 | #undef HAVE_BSM_AUDIT_H | ||
208 | |||
209 | /* Define to 1 if you have the <bstring.h> header file. */ | ||
210 | #undef HAVE_BSTRING_H | ||
211 | |||
212 | /* Define to 1 if you have the `clock' function. */ | ||
213 | #undef HAVE_CLOCK | ||
214 | |||
215 | /* define if you have clock_t data type */ | ||
216 | #undef HAVE_CLOCK_T | ||
217 | |||
218 | /* Define to 1 if you have the `closefrom' function. */ | ||
219 | #undef HAVE_CLOSEFROM | ||
220 | |||
221 | /* Define if gai_strerror() returns const char * */ | ||
222 | #undef HAVE_CONST_GAI_STRERROR_PROTO | ||
223 | |||
224 | /* Define if your system uses ancillary data style file descriptor passing */ | ||
225 | #undef HAVE_CONTROL_IN_MSGHDR | ||
226 | |||
227 | /* Define to 1 if you have the <crypto/sha2.h> header file. */ | ||
228 | #undef HAVE_CRYPTO_SHA2_H | ||
229 | |||
230 | /* Define to 1 if you have the <crypt.h> header file. */ | ||
231 | #undef HAVE_CRYPT_H | ||
232 | |||
233 | /* Define if you are on Cygwin */ | ||
234 | #undef HAVE_CYGWIN | ||
235 | |||
236 | /* Define if your libraries define daemon() */ | ||
237 | #undef HAVE_DAEMON | ||
238 | |||
239 | /* Define to 1 if you have the declaration of `authenticate', and to 0 if you | ||
240 | don't. */ | ||
241 | #undef HAVE_DECL_AUTHENTICATE | ||
242 | |||
243 | /* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you | ||
244 | don't. */ | ||
245 | #undef HAVE_DECL_GLOB_NOMATCH | ||
246 | |||
247 | /* Define to 1 if you have the declaration of `h_errno', and to 0 if you | ||
248 | don't. */ | ||
249 | #undef HAVE_DECL_H_ERRNO | ||
250 | |||
251 | /* Define to 1 if you have the declaration of `loginfailed', and to 0 if you | ||
252 | don't. */ | ||
253 | #undef HAVE_DECL_LOGINFAILED | ||
254 | |||
255 | /* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if | ||
256 | you don't. */ | ||
257 | #undef HAVE_DECL_LOGINRESTRICTIONS | ||
258 | |||
259 | /* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you | ||
260 | don't. */ | ||
261 | #undef HAVE_DECL_LOGINSUCCESS | ||
262 | |||
263 | /* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you | ||
264 | don't. */ | ||
265 | #undef HAVE_DECL_MAXSYMLINKS | ||
266 | |||
267 | /* Define to 1 if you have the declaration of `offsetof', and to 0 if you | ||
268 | don't. */ | ||
269 | #undef HAVE_DECL_OFFSETOF | ||
270 | |||
271 | /* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you | ||
272 | don't. */ | ||
273 | #undef HAVE_DECL_O_NONBLOCK | ||
274 | |||
275 | /* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you | ||
276 | don't. */ | ||
277 | #undef HAVE_DECL_PASSWDEXPIRED | ||
278 | |||
279 | /* Define to 1 if you have the declaration of `setauthdb', and to 0 if you | ||
280 | don't. */ | ||
281 | #undef HAVE_DECL_SETAUTHDB | ||
282 | |||
283 | /* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you | ||
284 | don't. */ | ||
285 | #undef HAVE_DECL_SHUT_RD | ||
286 | |||
287 | /* Define to 1 if you have the declaration of `writev', and to 0 if you don't. | ||
288 | */ | ||
289 | #undef HAVE_DECL_WRITEV | ||
290 | |||
291 | /* Define to 1 if you have the declaration of `_getlong', and to 0 if you | ||
292 | don't. */ | ||
293 | #undef HAVE_DECL__GETLONG | ||
294 | |||
295 | /* Define to 1 if you have the declaration of `_getshort', and to 0 if you | ||
296 | don't. */ | ||
297 | #undef HAVE_DECL__GETSHORT | ||
298 | |||
299 | /* Define if you have /dev/ptmx */ | ||
300 | #undef HAVE_DEV_PTMX | ||
301 | |||
302 | /* Define if you have /dev/ptc */ | ||
303 | #undef HAVE_DEV_PTS_AND_PTC | ||
304 | |||
305 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
306 | #undef HAVE_DIRENT_H | ||
307 | |||
308 | /* Define to 1 if you have the `dirfd' function. */ | ||
309 | #undef HAVE_DIRFD | ||
310 | |||
311 | /* Define to 1 if you have the `dirname' function. */ | ||
312 | #undef HAVE_DIRNAME | ||
313 | |||
314 | /* Define to 1 if you have the <endian.h> header file. */ | ||
315 | #undef HAVE_ENDIAN_H | ||
316 | |||
317 | /* Define to 1 if you have the `endutent' function. */ | ||
318 | #undef HAVE_ENDUTENT | ||
319 | |||
320 | /* Define to 1 if you have the `endutxent' function. */ | ||
321 | #undef HAVE_ENDUTXENT | ||
322 | |||
323 | /* Define if your system has /etc/default/login */ | ||
324 | #undef HAVE_ETC_DEFAULT_LOGIN | ||
325 | |||
326 | /* Define to 1 if you have the `EVP_sha256' function. */ | ||
327 | #undef HAVE_EVP_SHA256 | ||
328 | |||
329 | /* Define if you have ut_exit in utmp.h */ | ||
330 | #undef HAVE_EXIT_IN_UTMP | ||
331 | |||
332 | /* Define to 1 if you have the `fchmod' function. */ | ||
333 | #undef HAVE_FCHMOD | ||
334 | |||
335 | /* Define to 1 if you have the `fchown' function. */ | ||
336 | #undef HAVE_FCHOWN | ||
337 | |||
338 | /* Use F_CLOSEM fcntl for closefrom */ | ||
339 | #undef HAVE_FCNTL_CLOSEM | ||
340 | |||
341 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
342 | #undef HAVE_FCNTL_H | ||
343 | |||
344 | /* Define to 1 if you have the <features.h> header file. */ | ||
345 | #undef HAVE_FEATURES_H | ||
346 | |||
347 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
348 | #undef HAVE_FLOATINGPOINT_H | ||
349 | |||
350 | /* Define to 1 if you have the `fmt_scaled' function. */ | ||
351 | #undef HAVE_FMT_SCALED | ||
352 | |||
353 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
354 | #undef HAVE_FREEADDRINFO | ||
355 | |||
356 | /* Define to 1 if the system has the type `fsblkcnt_t'. */ | ||
357 | #undef HAVE_FSBLKCNT_T | ||
358 | |||
359 | /* Define to 1 if the system has the type `fsfilcnt_t'. */ | ||
360 | #undef HAVE_FSFILCNT_T | ||
361 | |||
362 | /* Define to 1 if you have the `fstatvfs' function. */ | ||
363 | #undef HAVE_FSTATVFS | ||
364 | |||
365 | /* Define to 1 if you have the `futimes' function. */ | ||
366 | #undef HAVE_FUTIMES | ||
367 | |||
368 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
369 | #undef HAVE_GAI_STRERROR | ||
370 | |||
371 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
372 | #undef HAVE_GETADDRINFO | ||
373 | |||
374 | /* Define to 1 if you have the `getaudit' function. */ | ||
375 | #undef HAVE_GETAUDIT | ||
376 | |||
377 | /* Define to 1 if you have the `getaudit_addr' function. */ | ||
378 | #undef HAVE_GETAUDIT_ADDR | ||
379 | |||
380 | /* Define to 1 if you have the `getcwd' function. */ | ||
381 | #undef HAVE_GETCWD | ||
382 | |||
383 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
384 | #undef HAVE_GETGROUPLIST | ||
385 | |||
386 | /* Define to 1 if you have the `getgrset' function. */ | ||
387 | #undef HAVE_GETGRSET | ||
388 | |||
389 | /* Define to 1 if you have the `getlastlogxbyname' function. */ | ||
390 | #undef HAVE_GETLASTLOGXBYNAME | ||
391 | |||
392 | /* Define to 1 if you have the `getluid' function. */ | ||
393 | #undef HAVE_GETLUID | ||
394 | |||
395 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
396 | #undef HAVE_GETNAMEINFO | ||
397 | |||
398 | /* Define to 1 if you have the `getopt' function. */ | ||
399 | #undef HAVE_GETOPT | ||
400 | |||
401 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
402 | #undef HAVE_GETOPT_H | ||
403 | |||
404 | /* Define if your getopt(3) defines and uses optreset */ | ||
405 | #undef HAVE_GETOPT_OPTRESET | ||
406 | |||
407 | /* Define if your libraries define getpagesize() */ | ||
408 | #undef HAVE_GETPAGESIZE | ||
409 | |||
410 | /* Define to 1 if you have the `getpeereid' function. */ | ||
411 | #undef HAVE_GETPEEREID | ||
412 | |||
413 | /* Define to 1 if you have the `getpeerucred' function. */ | ||
414 | #undef HAVE_GETPEERUCRED | ||
415 | |||
416 | /* Define to 1 if you have the `getpwanam' function. */ | ||
417 | #undef HAVE_GETPWANAM | ||
418 | |||
419 | /* Define to 1 if you have the `getrlimit' function. */ | ||
420 | #undef HAVE_GETRLIMIT | ||
421 | |||
422 | /* Define if getrrsetbyname() exists */ | ||
423 | #undef HAVE_GETRRSETBYNAME | ||
424 | |||
425 | /* Define to 1 if you have the `getrusage' function. */ | ||
426 | #undef HAVE_GETRUSAGE | ||
427 | |||
428 | /* Define to 1 if you have the `getseuserbyname' function. */ | ||
429 | #undef HAVE_GETSEUSERBYNAME | ||
430 | |||
431 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
432 | #undef HAVE_GETTIMEOFDAY | ||
433 | |||
434 | /* Define to 1 if you have the `getttyent' function. */ | ||
435 | #undef HAVE_GETTTYENT | ||
436 | |||
437 | /* Define to 1 if you have the `getutent' function. */ | ||
438 | #undef HAVE_GETUTENT | ||
439 | |||
440 | /* Define to 1 if you have the `getutid' function. */ | ||
441 | #undef HAVE_GETUTID | ||
442 | |||
443 | /* Define to 1 if you have the `getutline' function. */ | ||
444 | #undef HAVE_GETUTLINE | ||
445 | |||
446 | /* Define to 1 if you have the `getutxent' function. */ | ||
447 | #undef HAVE_GETUTXENT | ||
448 | |||
449 | /* Define to 1 if you have the `getutxid' function. */ | ||
450 | #undef HAVE_GETUTXID | ||
451 | |||
452 | /* Define to 1 if you have the `getutxline' function. */ | ||
453 | #undef HAVE_GETUTXLINE | ||
454 | |||
455 | /* Define to 1 if you have the `getutxuser' function. */ | ||
456 | #undef HAVE_GETUTXUSER | ||
457 | |||
458 | /* Define to 1 if you have the `get_default_context_with_level' function. */ | ||
459 | #undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL | ||
460 | |||
461 | /* Define to 1 if you have the `glob' function. */ | ||
462 | #undef HAVE_GLOB | ||
463 | |||
464 | /* Define to 1 if you have the <glob.h> header file. */ | ||
465 | #undef HAVE_GLOB_H | ||
466 | |||
467 | /* Define to 1 if you have the `group_from_gid' function. */ | ||
468 | #undef HAVE_GROUP_FROM_GID | ||
469 | |||
470 | /* Define to 1 if you have the <gssapi_generic.h> header file. */ | ||
471 | #undef HAVE_GSSAPI_GENERIC_H | ||
472 | |||
473 | /* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ | ||
474 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | ||
475 | |||
476 | /* Define to 1 if you have the <gssapi/gssapi.h> header file. */ | ||
477 | #undef HAVE_GSSAPI_GSSAPI_H | ||
478 | |||
479 | /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ | ||
480 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | ||
481 | |||
482 | /* Define to 1 if you have the <gssapi.h> header file. */ | ||
483 | #undef HAVE_GSSAPI_H | ||
484 | |||
485 | /* Define to 1 if you have the <gssapi_krb5.h> header file. */ | ||
486 | #undef HAVE_GSSAPI_KRB5_H | ||
487 | |||
488 | /* Define if HEADER.ad exists in arpa/nameser.h */ | ||
489 | #undef HAVE_HEADER_AD | ||
490 | |||
491 | /* Define if you have ut_host in utmp.h */ | ||
492 | #undef HAVE_HOST_IN_UTMP | ||
493 | |||
494 | /* Define if you have ut_host in utmpx.h */ | ||
495 | #undef HAVE_HOST_IN_UTMPX | ||
496 | |||
497 | /* Define to 1 if you have the <iaf.h> header file. */ | ||
498 | #undef HAVE_IAF_H | ||
499 | |||
500 | /* Define to 1 if you have the <ia.h> header file. */ | ||
501 | #undef HAVE_IA_H | ||
502 | |||
503 | /* Define if you have ut_id in utmp.h */ | ||
504 | #undef HAVE_ID_IN_UTMP | ||
505 | |||
506 | /* Define if you have ut_id in utmpx.h */ | ||
507 | #undef HAVE_ID_IN_UTMPX | ||
508 | |||
509 | /* Define to 1 if you have the `inet_aton' function. */ | ||
510 | #undef HAVE_INET_ATON | ||
511 | |||
512 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
513 | #undef HAVE_INET_NTOA | ||
514 | |||
515 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
516 | #undef HAVE_INET_NTOP | ||
517 | |||
518 | /* Define to 1 if you have the `innetgr' function. */ | ||
519 | #undef HAVE_INNETGR | ||
520 | |||
521 | /* define if you have int64_t data type */ | ||
522 | #undef HAVE_INT64_T | ||
523 | |||
524 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
525 | #undef HAVE_INTTYPES_H | ||
526 | |||
527 | /* define if you have intxx_t data type */ | ||
528 | #undef HAVE_INTXX_T | ||
529 | |||
530 | /* Define to 1 if the system has the type `in_addr_t'. */ | ||
531 | #undef HAVE_IN_ADDR_T | ||
532 | |||
533 | /* Define to 1 if the system has the type `in_port_t'. */ | ||
534 | #undef HAVE_IN_PORT_T | ||
535 | |||
536 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
537 | #undef HAVE_LASTLOG_H | ||
538 | |||
539 | /* Define to 1 if you have the `bsm' library (-lbsm). */ | ||
540 | #undef HAVE_LIBBSM | ||
541 | |||
542 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
543 | #undef HAVE_LIBCRYPT | ||
544 | |||
545 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
546 | #undef HAVE_LIBDL | ||
547 | |||
548 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
549 | #undef HAVE_LIBGEN_H | ||
550 | |||
551 | /* Define if system has libiaf that supports set_id */ | ||
552 | #undef HAVE_LIBIAF | ||
553 | |||
554 | /* Define to 1 if you have the `network' library (-lnetwork). */ | ||
555 | #undef HAVE_LIBNETWORK | ||
556 | |||
557 | /* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
558 | #undef HAVE_LIBNSL | ||
559 | |||
560 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
561 | #undef HAVE_LIBPAM | ||
562 | |||
563 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
564 | #undef HAVE_LIBSOCKET | ||
565 | |||
566 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
567 | #undef HAVE_LIBUTIL_H | ||
568 | |||
569 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
570 | #undef HAVE_LIBXNET | ||
571 | |||
572 | /* Define to 1 if you have the `z' library (-lz). */ | ||
573 | #undef HAVE_LIBZ | ||
574 | |||
575 | /* Define to 1 if you have the <limits.h> header file. */ | ||
576 | #undef HAVE_LIMITS_H | ||
577 | |||
578 | /* Define to 1 if you have the <linux/if_tun.h> header file. */ | ||
579 | #undef HAVE_LINUX_IF_TUN_H | ||
580 | |||
581 | /* Define if your libraries define login() */ | ||
582 | #undef HAVE_LOGIN | ||
583 | |||
584 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
585 | #undef HAVE_LOGIN_CAP_H | ||
586 | |||
587 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
588 | #undef HAVE_LOGIN_GETCAPBOOL | ||
589 | |||
590 | /* Define to 1 if you have the <login.h> header file. */ | ||
591 | #undef HAVE_LOGIN_H | ||
592 | |||
593 | /* Define to 1 if you have the `logout' function. */ | ||
594 | #undef HAVE_LOGOUT | ||
595 | |||
596 | /* Define to 1 if you have the `logwtmp' function. */ | ||
597 | #undef HAVE_LOGWTMP | ||
598 | |||
599 | /* Define to 1 if the system has the type `long double'. */ | ||
600 | #undef HAVE_LONG_DOUBLE | ||
601 | |||
602 | /* Define to 1 if the system has the type `long long'. */ | ||
603 | #undef HAVE_LONG_LONG | ||
604 | |||
605 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
606 | #undef HAVE_MAILLOCK_H | ||
607 | |||
608 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
609 | #undef HAVE_MD5_CRYPT | ||
610 | |||
611 | /* Define if you want to allow MD5 passwords */ | ||
612 | #undef HAVE_MD5_PASSWORDS | ||
613 | |||
614 | /* Define to 1 if you have the `memmove' function. */ | ||
615 | #undef HAVE_MEMMOVE | ||
616 | |||
617 | /* Define to 1 if you have the <memory.h> header file. */ | ||
618 | #undef HAVE_MEMORY_H | ||
619 | |||
620 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
621 | #undef HAVE_MKDTEMP | ||
622 | |||
623 | /* Define to 1 if you have the `mmap' function. */ | ||
624 | #undef HAVE_MMAP | ||
625 | |||
626 | /* define if you have mode_t data type */ | ||
627 | #undef HAVE_MODE_T | ||
628 | |||
629 | /* Some systems put nanosleep outside of libc */ | ||
630 | #undef HAVE_NANOSLEEP | ||
631 | |||
632 | /* Define to 1 if you have the <ndir.h> header file. */ | ||
633 | #undef HAVE_NDIR_H | ||
634 | |||
635 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
636 | #undef HAVE_NETDB_H | ||
637 | |||
638 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
639 | #undef HAVE_NETGROUP_H | ||
640 | |||
641 | /* Define to 1 if you have the <net/if_tun.h> header file. */ | ||
642 | #undef HAVE_NET_IF_TUN_H | ||
643 | |||
644 | /* Define if you are on NeXT */ | ||
645 | #undef HAVE_NEXT | ||
646 | |||
647 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
648 | #undef HAVE_NGETADDRINFO | ||
649 | |||
650 | /* Define to 1 if you have the `nsleep' function. */ | ||
651 | #undef HAVE_NSLEEP | ||
652 | |||
653 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
654 | #undef HAVE_OGETADDRINFO | ||
655 | |||
656 | /* Define if you have an old version of PAM which takes only one argument to | ||
657 | pam_strerror */ | ||
658 | #undef HAVE_OLD_PAM | ||
659 | |||
660 | /* Define to 1 if you have the `openlog_r' function. */ | ||
661 | #undef HAVE_OPENLOG_R | ||
662 | |||
663 | /* Define to 1 if you have the `openpty' function. */ | ||
664 | #undef HAVE_OPENPTY | ||
665 | |||
666 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
667 | #undef HAVE_OPENSSL | ||
668 | |||
669 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
670 | #undef HAVE_OSF_SIA | ||
671 | |||
672 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
673 | #undef HAVE_PAM_GETENVLIST | ||
674 | |||
675 | /* Define to 1 if you have the <pam/pam_appl.h> header file. */ | ||
676 | #undef HAVE_PAM_PAM_APPL_H | ||
677 | |||
678 | /* Define to 1 if you have the `pam_putenv' function. */ | ||
679 | #undef HAVE_PAM_PUTENV | ||
680 | |||
681 | /* Define to 1 if you have the <paths.h> header file. */ | ||
682 | #undef HAVE_PATHS_H | ||
683 | |||
684 | /* Define if you have ut_pid in utmp.h */ | ||
685 | #undef HAVE_PID_IN_UTMP | ||
686 | |||
687 | /* define if you have pid_t data type */ | ||
688 | #undef HAVE_PID_T | ||
689 | |||
690 | /* Define to 1 if you have the `poll' function. */ | ||
691 | #undef HAVE_POLL | ||
692 | |||
693 | /* Define to 1 if you have the <poll.h> header file. */ | ||
694 | #undef HAVE_POLL_H | ||
695 | |||
696 | /* Define to 1 if you have the `prctl' function. */ | ||
697 | #undef HAVE_PRCTL | ||
698 | |||
699 | /* Define if you have /proc/$pid/fd */ | ||
700 | #undef HAVE_PROC_PID | ||
701 | |||
702 | /* Define to 1 if you have the `pstat' function. */ | ||
703 | #undef HAVE_PSTAT | ||
704 | |||
705 | /* Define to 1 if you have the <pty.h> header file. */ | ||
706 | #undef HAVE_PTY_H | ||
707 | |||
708 | /* Define to 1 if you have the `pututline' function. */ | ||
709 | #undef HAVE_PUTUTLINE | ||
710 | |||
711 | /* Define to 1 if you have the `pututxline' function. */ | ||
712 | #undef HAVE_PUTUTXLINE | ||
713 | |||
714 | /* Define if your password has a pw_change field */ | ||
715 | #undef HAVE_PW_CHANGE_IN_PASSWD | ||
716 | |||
717 | /* Define if your password has a pw_class field */ | ||
718 | #undef HAVE_PW_CLASS_IN_PASSWD | ||
719 | |||
720 | /* Define if your password has a pw_expire field */ | ||
721 | #undef HAVE_PW_EXPIRE_IN_PASSWD | ||
722 | |||
723 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
724 | #undef HAVE_READPASSPHRASE | ||
725 | |||
726 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
727 | #undef HAVE_READPASSPHRASE_H | ||
728 | |||
729 | /* Define to 1 if you have the `realpath' function. */ | ||
730 | #undef HAVE_REALPATH | ||
731 | |||
732 | /* Define to 1 if you have the `recvmsg' function. */ | ||
733 | #undef HAVE_RECVMSG | ||
734 | |||
735 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
736 | #undef HAVE_RPC_TYPES_H | ||
737 | |||
738 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
739 | #undef HAVE_RRESVPORT_AF | ||
740 | |||
741 | /* define if you have sa_family_t data type */ | ||
742 | #undef HAVE_SA_FAMILY_T | ||
743 | |||
744 | /* Define if you have SecureWare-based protected password database */ | ||
745 | #undef HAVE_SECUREWARE | ||
746 | |||
747 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
748 | #undef HAVE_SECURITY_PAM_APPL_H | ||
749 | |||
750 | /* Define to 1 if you have the `sendmsg' function. */ | ||
751 | #undef HAVE_SENDMSG | ||
752 | |||
753 | /* Define to 1 if you have the `setauthdb' function. */ | ||
754 | #undef HAVE_SETAUTHDB | ||
755 | |||
756 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
757 | #undef HAVE_SETDTABLESIZE | ||
758 | |||
759 | /* Define to 1 if you have the `setegid' function. */ | ||
760 | #undef HAVE_SETEGID | ||
761 | |||
762 | /* Define to 1 if you have the `setenv' function. */ | ||
763 | #undef HAVE_SETENV | ||
764 | |||
765 | /* Define to 1 if you have the `seteuid' function. */ | ||
766 | #undef HAVE_SETEUID | ||
767 | |||
768 | /* Define to 1 if you have the `setgroupent' function. */ | ||
769 | #undef HAVE_SETGROUPENT | ||
770 | |||
771 | /* Define to 1 if you have the `setgroups' function. */ | ||
772 | #undef HAVE_SETGROUPS | ||
773 | |||
774 | /* Define to 1 if you have the `setlogin' function. */ | ||
775 | #undef HAVE_SETLOGIN | ||
776 | |||
777 | /* Define to 1 if you have the `setluid' function. */ | ||
778 | #undef HAVE_SETLUID | ||
779 | |||
780 | /* Define to 1 if you have the `setpassent' function. */ | ||
781 | #undef HAVE_SETPASSENT | ||
782 | |||
783 | /* Define to 1 if you have the `setpcred' function. */ | ||
784 | #undef HAVE_SETPCRED | ||
785 | |||
786 | /* Define to 1 if you have the `setproctitle' function. */ | ||
787 | #undef HAVE_SETPROCTITLE | ||
788 | |||
789 | /* Define to 1 if you have the `setregid' function. */ | ||
790 | #undef HAVE_SETREGID | ||
791 | |||
792 | /* Define to 1 if you have the `setresgid' function. */ | ||
793 | #undef HAVE_SETRESGID | ||
794 | |||
795 | /* Define to 1 if you have the `setresuid' function. */ | ||
796 | #undef HAVE_SETRESUID | ||
797 | |||
798 | /* Define to 1 if you have the `setreuid' function. */ | ||
799 | #undef HAVE_SETREUID | ||
800 | |||
801 | /* Define to 1 if you have the `setrlimit' function. */ | ||
802 | #undef HAVE_SETRLIMIT | ||
803 | |||
804 | /* Define to 1 if you have the `setsid' function. */ | ||
805 | #undef HAVE_SETSID | ||
806 | |||
807 | /* Define to 1 if you have the `setutent' function. */ | ||
808 | #undef HAVE_SETUTENT | ||
809 | |||
810 | /* Define to 1 if you have the `setutxdb' function. */ | ||
811 | #undef HAVE_SETUTXDB | ||
812 | |||
813 | /* Define to 1 if you have the `setutxent' function. */ | ||
814 | #undef HAVE_SETUTXENT | ||
815 | |||
816 | /* Define to 1 if you have the `setvbuf' function. */ | ||
817 | #undef HAVE_SETVBUF | ||
818 | |||
819 | /* Define to 1 if you have the `set_id' function. */ | ||
820 | #undef HAVE_SET_ID | ||
821 | |||
822 | /* Define to 1 if you have the `SHA256_Update' function. */ | ||
823 | #undef HAVE_SHA256_UPDATE | ||
824 | |||
825 | /* Define to 1 if you have the <sha2.h> header file. */ | ||
826 | #undef HAVE_SHA2_H | ||
827 | |||
828 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
829 | #undef HAVE_SHADOW_H | ||
830 | |||
831 | /* Define to 1 if you have the `sigaction' function. */ | ||
832 | #undef HAVE_SIGACTION | ||
833 | |||
834 | /* Define to 1 if you have the `sigvec' function. */ | ||
835 | #undef HAVE_SIGVEC | ||
836 | |||
837 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
838 | #undef HAVE_SIG_ATOMIC_T | ||
839 | |||
840 | /* define if you have size_t data type */ | ||
841 | #undef HAVE_SIZE_T | ||
842 | |||
843 | /* Define to 1 if you have the `snprintf' function. */ | ||
844 | #undef HAVE_SNPRINTF | ||
845 | |||
846 | /* Define to 1 if you have the `socketpair' function. */ | ||
847 | #undef HAVE_SOCKETPAIR | ||
848 | |||
849 | /* Have PEERCRED socket option */ | ||
850 | #undef HAVE_SO_PEERCRED | ||
851 | |||
852 | /* define if you have ssize_t data type */ | ||
853 | #undef HAVE_SSIZE_T | ||
854 | |||
855 | /* Fields in struct sockaddr_storage */ | ||
856 | #undef HAVE_SS_FAMILY_IN_SS | ||
857 | |||
858 | /* Define to 1 if you have the `statfs' function. */ | ||
859 | #undef HAVE_STATFS | ||
860 | |||
861 | /* Define to 1 if you have the `statvfs' function. */ | ||
862 | #undef HAVE_STATVFS | ||
863 | |||
864 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
865 | #undef HAVE_STDDEF_H | ||
866 | |||
867 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
868 | #undef HAVE_STDINT_H | ||
869 | |||
870 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
871 | #undef HAVE_STDLIB_H | ||
872 | |||
873 | /* Define to 1 if you have the `strdup' function. */ | ||
874 | #undef HAVE_STRDUP | ||
875 | |||
876 | /* Define to 1 if you have the `strerror' function. */ | ||
877 | #undef HAVE_STRERROR | ||
878 | |||
879 | /* Define to 1 if you have the `strftime' function. */ | ||
880 | #undef HAVE_STRFTIME | ||
881 | |||
882 | /* Silly mkstemp() */ | ||
883 | #undef HAVE_STRICT_MKSTEMP | ||
884 | |||
885 | /* Define to 1 if you have the <strings.h> header file. */ | ||
886 | #undef HAVE_STRINGS_H | ||
887 | |||
888 | /* Define to 1 if you have the <string.h> header file. */ | ||
889 | #undef HAVE_STRING_H | ||
890 | |||
891 | /* Define to 1 if you have the `strlcat' function. */ | ||
892 | #undef HAVE_STRLCAT | ||
893 | |||
894 | /* Define to 1 if you have the `strlcpy' function. */ | ||
895 | #undef HAVE_STRLCPY | ||
896 | |||
897 | /* Define to 1 if you have the `strmode' function. */ | ||
898 | #undef HAVE_STRMODE | ||
899 | |||
900 | /* Define to 1 if you have the `strnvis' function. */ | ||
901 | #undef HAVE_STRNVIS | ||
902 | |||
903 | /* Define to 1 if you have the `strsep' function. */ | ||
904 | #undef HAVE_STRSEP | ||
905 | |||
906 | /* Define to 1 if you have the `strtoll' function. */ | ||
907 | #undef HAVE_STRTOLL | ||
908 | |||
909 | /* Define to 1 if you have the `strtonum' function. */ | ||
910 | #undef HAVE_STRTONUM | ||
911 | |||
912 | /* Define to 1 if you have the `strtoul' function. */ | ||
913 | #undef HAVE_STRTOUL | ||
914 | |||
915 | /* define if you have struct addrinfo data type */ | ||
916 | #undef HAVE_STRUCT_ADDRINFO | ||
917 | |||
918 | /* define if you have struct in6_addr data type */ | ||
919 | #undef HAVE_STRUCT_IN6_ADDR | ||
920 | |||
921 | /* define if you have struct sockaddr_in6 data type */ | ||
922 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
923 | |||
924 | /* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */ | ||
925 | #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
926 | |||
927 | /* define if you have struct sockaddr_storage data type */ | ||
928 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
929 | |||
930 | /* Define to 1 if `st_blksize' is member of `struct stat'. */ | ||
931 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
932 | |||
933 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
934 | #undef HAVE_STRUCT_TIMESPEC | ||
935 | |||
936 | /* define if you have struct timeval */ | ||
937 | #undef HAVE_STRUCT_TIMEVAL | ||
938 | |||
939 | /* Define to 1 if you have the `swap32' function. */ | ||
940 | #undef HAVE_SWAP32 | ||
941 | |||
942 | /* Define to 1 if you have the `sysconf' function. */ | ||
943 | #undef HAVE_SYSCONF | ||
944 | |||
945 | /* Define if you have syslen in utmpx.h */ | ||
946 | #undef HAVE_SYSLEN_IN_UTMPX | ||
947 | |||
948 | /* Define to 1 if you have the <sys/audit.h> header file. */ | ||
949 | #undef HAVE_SYS_AUDIT_H | ||
950 | |||
951 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
952 | #undef HAVE_SYS_BITYPES_H | ||
953 | |||
954 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
955 | #undef HAVE_SYS_BSDTTY_H | ||
956 | |||
957 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
958 | #undef HAVE_SYS_CDEFS_H | ||
959 | |||
960 | /* Define to 1 if you have the <sys/dir.h> header file. */ | ||
961 | #undef HAVE_SYS_DIR_H | ||
962 | |||
963 | /* Define if your system defines sys_errlist[] */ | ||
964 | #undef HAVE_SYS_ERRLIST | ||
965 | |||
966 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
967 | #undef HAVE_SYS_MMAN_H | ||
968 | |||
969 | /* Define to 1 if you have the <sys/mount.h> header file. */ | ||
970 | #undef HAVE_SYS_MOUNT_H | ||
971 | |||
972 | /* Define to 1 if you have the <sys/ndir.h> header file. */ | ||
973 | #undef HAVE_SYS_NDIR_H | ||
974 | |||
975 | /* Define if your system defines sys_nerr */ | ||
976 | #undef HAVE_SYS_NERR | ||
977 | |||
978 | /* Define to 1 if you have the <sys/poll.h> header file. */ | ||
979 | #undef HAVE_SYS_POLL_H | ||
980 | |||
981 | /* Define to 1 if you have the <sys/prctl.h> header file. */ | ||
982 | #undef HAVE_SYS_PRCTL_H | ||
983 | |||
984 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
985 | #undef HAVE_SYS_PSTAT_H | ||
986 | |||
987 | /* Define to 1 if you have the <sys/ptms.h> header file. */ | ||
988 | #undef HAVE_SYS_PTMS_H | ||
989 | |||
990 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
991 | #undef HAVE_SYS_SELECT_H | ||
992 | |||
993 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
994 | #undef HAVE_SYS_STATVFS_H | ||
995 | |||
996 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
997 | #undef HAVE_SYS_STAT_H | ||
998 | |||
999 | /* Define to 1 if you have the <sys/stream.h> header file. */ | ||
1000 | #undef HAVE_SYS_STREAM_H | ||
1001 | |||
1002 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
1003 | #undef HAVE_SYS_STROPTS_H | ||
1004 | |||
1005 | /* Define to 1 if you have the <sys/strtio.h> header file. */ | ||
1006 | #undef HAVE_SYS_STRTIO_H | ||
1007 | |||
1008 | /* Force use of sys/syslog.h on Ultrix */ | ||
1009 | #undef HAVE_SYS_SYSLOG_H | ||
1010 | |||
1011 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
1012 | #undef HAVE_SYS_SYSMACROS_H | ||
1013 | |||
1014 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
1015 | #undef HAVE_SYS_TIMERS_H | ||
1016 | |||
1017 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
1018 | #undef HAVE_SYS_TIME_H | ||
1019 | |||
1020 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
1021 | #undef HAVE_SYS_TYPES_H | ||
1022 | |||
1023 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
1024 | #undef HAVE_SYS_UN_H | ||
1025 | |||
1026 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
1027 | #undef HAVE_TCGETPGRP | ||
1028 | |||
1029 | /* Define to 1 if you have the `tcsendbreak' function. */ | ||
1030 | #undef HAVE_TCSENDBREAK | ||
1031 | |||
1032 | /* Define to 1 if you have the `time' function. */ | ||
1033 | #undef HAVE_TIME | ||
1034 | |||
1035 | /* Define to 1 if you have the <time.h> header file. */ | ||
1036 | #undef HAVE_TIME_H | ||
1037 | |||
1038 | /* Define if you have ut_time in utmp.h */ | ||
1039 | #undef HAVE_TIME_IN_UTMP | ||
1040 | |||
1041 | /* Define if you have ut_time in utmpx.h */ | ||
1042 | #undef HAVE_TIME_IN_UTMPX | ||
1043 | |||
1044 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
1045 | #undef HAVE_TMPDIR_H | ||
1046 | |||
1047 | /* Define to 1 if you have the `truncate' function. */ | ||
1048 | #undef HAVE_TRUNCATE | ||
1049 | |||
1050 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
1051 | #undef HAVE_TTYENT_H | ||
1052 | |||
1053 | /* Define if you have ut_tv in utmp.h */ | ||
1054 | #undef HAVE_TV_IN_UTMP | ||
1055 | |||
1056 | /* Define if you have ut_tv in utmpx.h */ | ||
1057 | #undef HAVE_TV_IN_UTMPX | ||
1058 | |||
1059 | /* Define if you have ut_type in utmp.h */ | ||
1060 | #undef HAVE_TYPE_IN_UTMP | ||
1061 | |||
1062 | /* Define if you have ut_type in utmpx.h */ | ||
1063 | #undef HAVE_TYPE_IN_UTMPX | ||
1064 | |||
1065 | /* Define to 1 if you have the <ucred.h> header file. */ | ||
1066 | #undef HAVE_UCRED_H | ||
1067 | |||
1068 | /* define if you have uintxx_t data type */ | ||
1069 | #undef HAVE_UINTXX_T | ||
1070 | |||
1071 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
1072 | #undef HAVE_UNISTD_H | ||
1073 | |||
1074 | /* Define to 1 if you have the `unsetenv' function. */ | ||
1075 | #undef HAVE_UNSETENV | ||
1076 | |||
1077 | /* Define to 1 if the system has the type `unsigned long long'. */ | ||
1078 | #undef HAVE_UNSIGNED_LONG_LONG | ||
1079 | |||
1080 | /* Define to 1 if you have the `updwtmp' function. */ | ||
1081 | #undef HAVE_UPDWTMP | ||
1082 | |||
1083 | /* Define to 1 if you have the `updwtmpx' function. */ | ||
1084 | #undef HAVE_UPDWTMPX | ||
1085 | |||
1086 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
1087 | #undef HAVE_USERSEC_H | ||
1088 | |||
1089 | /* Define to 1 if you have the `user_from_uid' function. */ | ||
1090 | #undef HAVE_USER_FROM_UID | ||
1091 | |||
1092 | /* Define to 1 if you have the <util.h> header file. */ | ||
1093 | #undef HAVE_UTIL_H | ||
1094 | |||
1095 | /* Define to 1 if you have the `utimes' function. */ | ||
1096 | #undef HAVE_UTIMES | ||
1097 | |||
1098 | /* Define to 1 if you have the <utime.h> header file. */ | ||
1099 | #undef HAVE_UTIME_H | ||
1100 | |||
1101 | /* Define to 1 if you have the `utmpname' function. */ | ||
1102 | #undef HAVE_UTMPNAME | ||
1103 | |||
1104 | /* Define to 1 if you have the `utmpxname' function. */ | ||
1105 | #undef HAVE_UTMPXNAME | ||
1106 | |||
1107 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
1108 | #undef HAVE_UTMPX_H | ||
1109 | |||
1110 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
1111 | #undef HAVE_UTMP_H | ||
1112 | |||
1113 | /* define if you have u_char data type */ | ||
1114 | #undef HAVE_U_CHAR | ||
1115 | |||
1116 | /* define if you have u_int data type */ | ||
1117 | #undef HAVE_U_INT | ||
1118 | |||
1119 | /* define if you have u_int64_t data type */ | ||
1120 | #undef HAVE_U_INT64_T | ||
1121 | |||
1122 | /* define if you have u_intxx_t data type */ | ||
1123 | #undef HAVE_U_INTXX_T | ||
1124 | |||
1125 | /* Define to 1 if you have the `vasprintf' function. */ | ||
1126 | #undef HAVE_VASPRINTF | ||
1127 | |||
1128 | /* Define if va_copy exists */ | ||
1129 | #undef HAVE_VA_COPY | ||
1130 | |||
1131 | /* Define to 1 if you have the `vhangup' function. */ | ||
1132 | #undef HAVE_VHANGUP | ||
1133 | |||
1134 | /* Define to 1 if you have the <vis.h> header file. */ | ||
1135 | #undef HAVE_VIS_H | ||
1136 | |||
1137 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
1138 | #undef HAVE_VSNPRINTF | ||
1139 | |||
1140 | /* Define to 1 if you have the `waitpid' function. */ | ||
1141 | #undef HAVE_WAITPID | ||
1142 | |||
1143 | /* Define to 1 if you have the `_getlong' function. */ | ||
1144 | #undef HAVE__GETLONG | ||
1145 | |||
1146 | /* Define to 1 if you have the `_getpty' function. */ | ||
1147 | #undef HAVE__GETPTY | ||
1148 | |||
1149 | /* Define to 1 if you have the `_getshort' function. */ | ||
1150 | #undef HAVE__GETSHORT | ||
1151 | |||
1152 | /* Define if you have struct __res_state _res as an extern */ | ||
1153 | #undef HAVE__RES_EXTERN | ||
1154 | |||
1155 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
1156 | #undef HAVE___B64_NTOP | ||
1157 | |||
1158 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
1159 | #undef HAVE___B64_PTON | ||
1160 | |||
1161 | /* Define if compiler implements __FUNCTION__ */ | ||
1162 | #undef HAVE___FUNCTION__ | ||
1163 | |||
1164 | /* Define if libc defines __progname */ | ||
1165 | #undef HAVE___PROGNAME | ||
1166 | |||
1167 | /* Fields in struct sockaddr_storage */ | ||
1168 | #undef HAVE___SS_FAMILY_IN_SS | ||
1169 | |||
1170 | /* Define if __va_copy exists */ | ||
1171 | #undef HAVE___VA_COPY | ||
1172 | |||
1173 | /* Define if compiler implements __func__ */ | ||
1174 | #undef HAVE___func__ | ||
1175 | |||
1176 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
1177 | #undef HEIMDAL | ||
1178 | |||
1179 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
1180 | #undef IPADDR_IN_DISPLAY | ||
1181 | |||
1182 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
1183 | #undef IPV4_IN_IPV6 | ||
1184 | |||
1185 | /* Define if your system choked on IP TOS setting */ | ||
1186 | #undef IP_TOS_IS_BROKEN | ||
1187 | |||
1188 | /* Define if you want Kerberos 5 support */ | ||
1189 | #undef KRB5 | ||
1190 | |||
1191 | /* Define if pututxline updates lastlog too */ | ||
1192 | #undef LASTLOG_WRITE_PUTUTXLINE | ||
1193 | |||
1194 | /* Define if you want TCP Wrappers support */ | ||
1195 | #undef LIBWRAP | ||
1196 | |||
1197 | /* Define to whatever link() returns for "not supported" if it doesn't return | ||
1198 | EOPNOTSUPP. */ | ||
1199 | #undef LINK_OPNOTSUPP_ERRNO | ||
1200 | |||
1201 | /* Adjust Linux out-of-memory killer */ | ||
1202 | #undef LINUX_OOM_ADJUST | ||
1203 | |||
1204 | /* max value of long long calculated by configure */ | ||
1205 | #undef LLONG_MAX | ||
1206 | |||
1207 | /* min value of long long calculated by configure */ | ||
1208 | #undef LLONG_MIN | ||
1209 | |||
1210 | /* Account locked with pw(1) */ | ||
1211 | #undef LOCKED_PASSWD_PREFIX | ||
1212 | |||
1213 | /* String used in /etc/passwd to denote locked account */ | ||
1214 | #undef LOCKED_PASSWD_STRING | ||
1215 | |||
1216 | /* String used in /etc/passwd to denote locked account */ | ||
1217 | #undef LOCKED_PASSWD_SUBSTR | ||
1218 | |||
1219 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
1220 | #undef LOGIN_NEEDS_TERM | ||
1221 | |||
1222 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
1223 | #undef LOGIN_NEEDS_UTMPX | ||
1224 | |||
1225 | /* Define if your login program cannot handle end of options ("--") */ | ||
1226 | #undef LOGIN_NO_ENDOPT | ||
1227 | |||
1228 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) | ||
1229 | from environment and PATH */ | ||
1230 | #undef LOGIN_PROGRAM_FALLBACK | ||
1231 | |||
1232 | /* Set this to your mail directory if you don't have maillock.h */ | ||
1233 | #undef MAIL_DIRECTORY | ||
1234 | |||
1235 | /* Define on *nto-qnx systems */ | ||
1236 | #undef MISSING_FD_MASK | ||
1237 | |||
1238 | /* Define on *nto-qnx systems */ | ||
1239 | #undef MISSING_HOWMANY | ||
1240 | |||
1241 | /* Define on *nto-qnx systems */ | ||
1242 | #undef MISSING_NFDBITS | ||
1243 | |||
1244 | /* Need setpgrp to acquire controlling tty */ | ||
1245 | #undef NEED_SETPGRP | ||
1246 | |||
1247 | /* Define if the concept of ports only accessible to superusers isn't known */ | ||
1248 | #undef NO_IPPORT_RESERVED_CONCEPT | ||
1249 | |||
1250 | /* Define if you don't want to use lastlog in session.c */ | ||
1251 | #undef NO_SSH_LASTLOG | ||
1252 | |||
1253 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
1254 | #undef NO_X11_UNIX_SOCKETS | ||
1255 | |||
1256 | /* Define if EVP_DigestUpdate returns void */ | ||
1257 | #undef OPENSSL_EVP_DIGESTUPDATE_VOID | ||
1258 | |||
1259 | /* libcrypto is missing AES 192 and 256 bit functions */ | ||
1260 | #undef OPENSSL_LOBOTOMISED_AES | ||
1261 | |||
1262 | /* Define if you want OpenSSL's internally seeded PRNG only */ | ||
1263 | #undef OPENSSL_PRNG_ONLY | ||
1264 | |||
1265 | /* Define to the address where bug reports for this package should be sent. */ | ||
1266 | #undef PACKAGE_BUGREPORT | ||
1267 | |||
1268 | /* Define to the full name of this package. */ | ||
1269 | #undef PACKAGE_NAME | ||
1270 | |||
1271 | /* Define to the full name and version of this package. */ | ||
1272 | #undef PACKAGE_STRING | ||
1273 | |||
1274 | /* Define to the one symbol short name of this package. */ | ||
1275 | #undef PACKAGE_TARNAME | ||
1276 | |||
1277 | /* Define to the version of this package. */ | ||
1278 | #undef PACKAGE_VERSION | ||
1279 | |||
1280 | /* Define if you are using Solaris-derived PAM which passes pam_messages to | ||
1281 | the conversation function with an extra level of indirection */ | ||
1282 | #undef PAM_SUN_CODEBASE | ||
1283 | |||
1284 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
1285 | #undef PAM_TTY_KLUDGE | ||
1286 | |||
1287 | /* must supply username to passwd */ | ||
1288 | #undef PASSWD_NEEDS_USERNAME | ||
1289 | |||
1290 | /* Port number of PRNGD/EGD random number socket */ | ||
1291 | #undef PRNGD_PORT | ||
1292 | |||
1293 | /* Location of PRNGD/EGD random number socket */ | ||
1294 | #undef PRNGD_SOCKET | ||
1295 | |||
1296 | /* read(1) can return 0 for a non-closed fd */ | ||
1297 | #undef PTY_ZEROREAD | ||
1298 | |||
1299 | /* Define if your platform breaks doing a seteuid before a setuid */ | ||
1300 | #undef SETEUID_BREAKS_SETUID | ||
1301 | |||
1302 | /* The size of `char', as computed by sizeof. */ | ||
1303 | #undef SIZEOF_CHAR | ||
1304 | |||
1305 | /* The size of `int', as computed by sizeof. */ | ||
1306 | #undef SIZEOF_INT | ||
1307 | |||
1308 | /* The size of `long int', as computed by sizeof. */ | ||
1309 | #undef SIZEOF_LONG_INT | ||
1310 | |||
1311 | /* The size of `long long int', as computed by sizeof. */ | ||
1312 | #undef SIZEOF_LONG_LONG_INT | ||
1313 | |||
1314 | /* The size of `short int', as computed by sizeof. */ | ||
1315 | #undef SIZEOF_SHORT_INT | ||
1316 | |||
1317 | /* Define if you want S/Key support */ | ||
1318 | #undef SKEY | ||
1319 | |||
1320 | /* Define if your skeychallenge() function takes 4 arguments (NetBSD) */ | ||
1321 | #undef SKEYCHALLENGE_4ARG | ||
1322 | |||
1323 | /* Define as const if snprintf() can declare const char *fmt */ | ||
1324 | #undef SNPRINTF_CONST | ||
1325 | |||
1326 | /* Define to a Set Process Title type if your system is supported by | ||
1327 | bsd-setproctitle.c */ | ||
1328 | #undef SPT_TYPE | ||
1329 | |||
1330 | /* Define if sshd somehow reacquires a controlling TTY after setsid() */ | ||
1331 | #undef SSHD_ACQUIRES_CTTY | ||
1332 | |||
1333 | /* Define if pam_chauthtok wants real uid set to the unpriv'ed user */ | ||
1334 | #undef SSHPAM_CHAUTHTOK_NEEDS_RUID | ||
1335 | |||
1336 | /* Use audit debugging module */ | ||
1337 | #undef SSH_AUDIT_EVENTS | ||
1338 | |||
1339 | /* Windows is sensitive to read buffer size */ | ||
1340 | #undef SSH_IOBUFSZ | ||
1341 | |||
1342 | /* non-privileged user for privilege separation */ | ||
1343 | #undef SSH_PRIVSEP_USER | ||
1344 | |||
1345 | /* Use tunnel device compatibility to OpenBSD */ | ||
1346 | #undef SSH_TUN_COMPAT_AF | ||
1347 | |||
1348 | /* Open tunnel devices the FreeBSD way */ | ||
1349 | #undef SSH_TUN_FREEBSD | ||
1350 | |||
1351 | /* Open tunnel devices the Linux tun/tap way */ | ||
1352 | #undef SSH_TUN_LINUX | ||
1353 | |||
1354 | /* No layer 2 tunnel support */ | ||
1355 | #undef SSH_TUN_NO_L2 | ||
1356 | |||
1357 | /* Open tunnel devices the OpenBSD way */ | ||
1358 | #undef SSH_TUN_OPENBSD | ||
1359 | |||
1360 | /* Prepend the address family to IP tunnel traffic */ | ||
1361 | #undef SSH_TUN_PREPEND_AF | ||
1362 | |||
1363 | /* Define to 1 if you have the ANSI C header files. */ | ||
1364 | #undef STDC_HEADERS | ||
1365 | |||
1366 | /* Define if you want a different $PATH for the superuser */ | ||
1367 | #undef SUPERUSER_PATH | ||
1368 | |||
1369 | /* syslog_r function is safe to use in in a signal handler */ | ||
1370 | #undef SYSLOG_R_SAFE_IN_SIGHAND | ||
1371 | |||
1372 | /* Support passwords > 8 chars */ | ||
1373 | #undef UNIXWARE_LONG_PASSWORDS | ||
1374 | |||
1375 | /* Specify default $PATH */ | ||
1376 | #undef USER_PATH | ||
1377 | |||
1378 | /* Define this if you want to use libkafs' AFS support */ | ||
1379 | #undef USE_AFS | ||
1380 | |||
1381 | /* Use BSM audit module */ | ||
1382 | #undef USE_BSM_AUDIT | ||
1383 | |||
1384 | /* Use btmp to log bad logins */ | ||
1385 | #undef USE_BTMP | ||
1386 | |||
1387 | /* Use libedit for sftp */ | ||
1388 | #undef USE_LIBEDIT | ||
1389 | |||
1390 | /* Enable OpenSSL engine support */ | ||
1391 | #undef USE_OPENSSL_ENGINE | ||
1392 | |||
1393 | /* Define if you want to enable PAM support */ | ||
1394 | #undef USE_PAM | ||
1395 | |||
1396 | /* Use PIPES instead of a socketpair() */ | ||
1397 | #undef USE_PIPES | ||
1398 | |||
1399 | /* Define if you have Solaris process contracts */ | ||
1400 | #undef USE_SOLARIS_PROCESS_CONTRACTS | ||
1401 | |||
1402 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
1403 | #undef WITH_ABBREV_NO_TTY | ||
1404 | |||
1405 | /* Define if you want to enable AIX4's authenticate function */ | ||
1406 | #undef WITH_AIXAUTHENTICATE | ||
1407 | |||
1408 | /* Define if you have/want arrays (cluster-wide session managment, not C | ||
1409 | arrays) */ | ||
1410 | #undef WITH_IRIX_ARRAY | ||
1411 | |||
1412 | /* Define if you want IRIX audit trails */ | ||
1413 | #undef WITH_IRIX_AUDIT | ||
1414 | |||
1415 | /* Define if you want IRIX kernel jobs */ | ||
1416 | #undef WITH_IRIX_JOBS | ||
1417 | |||
1418 | /* Define if you want IRIX project management */ | ||
1419 | #undef WITH_IRIX_PROJECT | ||
1420 | |||
1421 | /* Define if you want SELinux support. */ | ||
1422 | #undef WITH_SELINUX | ||
1423 | |||
1424 | /* Define to 1 if your processor stores words with the most significant byte | ||
1425 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
1426 | #undef WORDS_BIGENDIAN | ||
1427 | |||
1428 | /* Define if xauth is found in your path */ | ||
1429 | #undef XAUTH_PATH | ||
1430 | |||
1431 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
1432 | #undef _FILE_OFFSET_BITS | ||
1433 | |||
1434 | /* Define for large files, on AIX-style hosts. */ | ||
1435 | #undef _LARGE_FILES | ||
1436 | |||
1437 | /* log for bad login attempts */ | ||
1438 | #undef _PATH_BTMP | ||
1439 | |||
1440 | /* Full path of your "passwd" program */ | ||
1441 | #undef _PATH_PASSWD_PROG | ||
1442 | |||
1443 | /* Specify location of ssh.pid */ | ||
1444 | #undef _PATH_SSH_PIDDIR | ||
1445 | |||
1446 | /* Define if we don't have struct __res_state in resolv.h */ | ||
1447 | #undef __res_state | ||
1448 | |||
1449 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
1450 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
1451 | #ifndef __cplusplus | ||
1452 | #undef inline | ||
1453 | #endif | ||
1454 | |||
1455 | /* type to use in place of socklen_t if not defined */ | ||
1456 | #undef socklen_t | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..5ebdb15c6 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,30975 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.449 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.61 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
10 | # This configure script is free software; the Free Software Foundation | ||
11 | # gives unlimited permission to copy, distribute and modify it. | ||
12 | ## --------------------- ## | ||
13 | ## M4sh Initialization. ## | ||
14 | ## --------------------- ## | ||
15 | |||
16 | # Be more Bourne compatible | ||
17 | DUALCASE=1; export DUALCASE # for MKS sh | ||
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
19 | emulate sh | ||
20 | NULLCMD=: | ||
21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
22 | # is contrary to our usage. Disable this feature. | ||
23 | alias -g '${1+"$@"}'='"$@"' | ||
24 | setopt NO_GLOB_SUBST | ||
25 | else | ||
26 | case `(set -o) 2>/dev/null` in | ||
27 | *posix*) set -o posix ;; | ||
28 | esac | ||
29 | |||
30 | fi | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | # PATH needs CR | ||
36 | # Avoid depending upon Character Ranges. | ||
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
40 | as_cr_digits='0123456789' | ||
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
42 | |||
43 | # The user is always right. | ||
44 | if test "${PATH_SEPARATOR+set}" != set; then | ||
45 | echo "#! /bin/sh" >conf$$.sh | ||
46 | echo "exit 0" >>conf$$.sh | ||
47 | chmod +x conf$$.sh | ||
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
49 | PATH_SEPARATOR=';' | ||
50 | else | ||
51 | PATH_SEPARATOR=: | ||
52 | fi | ||
53 | rm -f conf$$.sh | ||
54 | fi | ||
55 | |||
56 | # Support unset when possible. | ||
57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
58 | as_unset=unset | ||
59 | else | ||
60 | as_unset=false | ||
61 | fi | ||
62 | |||
63 | |||
64 | # IFS | ||
65 | # We need space, tab and new line, in precisely that order. Quoting is | ||
66 | # there to prevent editors from complaining about space-tab. | ||
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
68 | # splitting by setting IFS to empty value.) | ||
69 | as_nl=' | ||
70 | ' | ||
71 | IFS=" "" $as_nl" | ||
72 | |||
73 | # Find who we are. Look in the path if we contain no directory separator. | ||
74 | case $0 in | ||
75 | *[\\/]* ) as_myself=$0 ;; | ||
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
77 | for as_dir in $PATH | ||
78 | do | ||
79 | IFS=$as_save_IFS | ||
80 | test -z "$as_dir" && as_dir=. | ||
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
82 | done | ||
83 | IFS=$as_save_IFS | ||
84 | |||
85 | ;; | ||
86 | esac | ||
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
88 | # in which case we are not to be found in the path. | ||
89 | if test "x$as_myself" = x; then | ||
90 | as_myself=$0 | ||
91 | fi | ||
92 | if test ! -f "$as_myself"; then | ||
93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
94 | { (exit 1); exit 1; } | ||
95 | fi | ||
96 | |||
97 | # Work around bugs in pre-3.0 UWIN ksh. | ||
98 | for as_var in ENV MAIL MAILPATH | ||
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
100 | done | ||
101 | PS1='$ ' | ||
102 | PS2='> ' | ||
103 | PS4='+ ' | ||
104 | |||
105 | # NLS nuisances. | ||
106 | for as_var in \ | ||
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
109 | LC_TELEPHONE LC_TIME | ||
110 | do | ||
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
112 | eval $as_var=C; export $as_var | ||
113 | else | ||
114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
115 | fi | ||
116 | done | ||
117 | |||
118 | # Required to use basename. | ||
119 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
121 | as_expr=expr | ||
122 | else | ||
123 | as_expr=false | ||
124 | fi | ||
125 | |||
126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
127 | as_basename=basename | ||
128 | else | ||
129 | as_basename=false | ||
130 | fi | ||
131 | |||
132 | |||
133 | # Name of the executable. | ||
134 | as_me=`$as_basename -- "$0" || | ||
135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
136 | X"$0" : 'X\(//\)$' \| \ | ||
137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
138 | echo X/"$0" | | ||
139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
140 | s//\1/ | ||
141 | q | ||
142 | } | ||
143 | /^X\/\(\/\/\)$/{ | ||
144 | s//\1/ | ||
145 | q | ||
146 | } | ||
147 | /^X\/\(\/\).*/{ | ||
148 | s//\1/ | ||
149 | q | ||
150 | } | ||
151 | s/.*/./; q'` | ||
152 | |||
153 | # CDPATH. | ||
154 | $as_unset CDPATH | ||
155 | |||
156 | |||
157 | if test "x$CONFIG_SHELL" = x; then | ||
158 | if (eval ":") 2>/dev/null; then | ||
159 | as_have_required=yes | ||
160 | else | ||
161 | as_have_required=no | ||
162 | fi | ||
163 | |||
164 | if test $as_have_required = yes && (eval ": | ||
165 | (as_func_return () { | ||
166 | (exit \$1) | ||
167 | } | ||
168 | as_func_success () { | ||
169 | as_func_return 0 | ||
170 | } | ||
171 | as_func_failure () { | ||
172 | as_func_return 1 | ||
173 | } | ||
174 | as_func_ret_success () { | ||
175 | return 0 | ||
176 | } | ||
177 | as_func_ret_failure () { | ||
178 | return 1 | ||
179 | } | ||
180 | |||
181 | exitcode=0 | ||
182 | if as_func_success; then | ||
183 | : | ||
184 | else | ||
185 | exitcode=1 | ||
186 | echo as_func_success failed. | ||
187 | fi | ||
188 | |||
189 | if as_func_failure; then | ||
190 | exitcode=1 | ||
191 | echo as_func_failure succeeded. | ||
192 | fi | ||
193 | |||
194 | if as_func_ret_success; then | ||
195 | : | ||
196 | else | ||
197 | exitcode=1 | ||
198 | echo as_func_ret_success failed. | ||
199 | fi | ||
200 | |||
201 | if as_func_ret_failure; then | ||
202 | exitcode=1 | ||
203 | echo as_func_ret_failure succeeded. | ||
204 | fi | ||
205 | |||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
207 | : | ||
208 | else | ||
209 | exitcode=1 | ||
210 | echo positional parameters were not saved. | ||
211 | fi | ||
212 | |||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
214 | |||
215 | ( | ||
216 | as_lineno_1=\$LINENO | ||
217 | as_lineno_2=\$LINENO | ||
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
220 | ") 2> /dev/null; then | ||
221 | : | ||
222 | else | ||
223 | as_candidate_shells= | ||
224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
226 | do | ||
227 | IFS=$as_save_IFS | ||
228 | test -z "$as_dir" && as_dir=. | ||
229 | case $as_dir in | ||
230 | /*) | ||
231 | for as_base in sh bash ksh sh5; do | ||
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
233 | done;; | ||
234 | esac | ||
235 | done | ||
236 | IFS=$as_save_IFS | ||
237 | |||
238 | |||
239 | for as_shell in $as_candidate_shells $SHELL; do | ||
240 | # Try only shells that exist, to save several forks. | ||
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
244 | emulate sh | ||
245 | NULLCMD=: | ||
246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
247 | # is contrary to our usage. Disable this feature. | ||
248 | alias -g '${1+"$@"}'='"$@"' | ||
249 | setopt NO_GLOB_SUBST | ||
250 | else | ||
251 | case `(set -o) 2>/dev/null` in | ||
252 | *posix*) set -o posix ;; | ||
253 | esac | ||
254 | |||
255 | fi | ||
256 | |||
257 | |||
258 | : | ||
259 | _ASEOF | ||
260 | }; then | ||
261 | CONFIG_SHELL=$as_shell | ||
262 | as_have_required=yes | ||
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
265 | emulate sh | ||
266 | NULLCMD=: | ||
267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
268 | # is contrary to our usage. Disable this feature. | ||
269 | alias -g '${1+"$@"}'='"$@"' | ||
270 | setopt NO_GLOB_SUBST | ||
271 | else | ||
272 | case `(set -o) 2>/dev/null` in | ||
273 | *posix*) set -o posix ;; | ||
274 | esac | ||
275 | |||
276 | fi | ||
277 | |||
278 | |||
279 | : | ||
280 | (as_func_return () { | ||
281 | (exit $1) | ||
282 | } | ||
283 | as_func_success () { | ||
284 | as_func_return 0 | ||
285 | } | ||
286 | as_func_failure () { | ||
287 | as_func_return 1 | ||
288 | } | ||
289 | as_func_ret_success () { | ||
290 | return 0 | ||
291 | } | ||
292 | as_func_ret_failure () { | ||
293 | return 1 | ||
294 | } | ||
295 | |||
296 | exitcode=0 | ||
297 | if as_func_success; then | ||
298 | : | ||
299 | else | ||
300 | exitcode=1 | ||
301 | echo as_func_success failed. | ||
302 | fi | ||
303 | |||
304 | if as_func_failure; then | ||
305 | exitcode=1 | ||
306 | echo as_func_failure succeeded. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_success; then | ||
310 | : | ||
311 | else | ||
312 | exitcode=1 | ||
313 | echo as_func_ret_success failed. | ||
314 | fi | ||
315 | |||
316 | if as_func_ret_failure; then | ||
317 | exitcode=1 | ||
318 | echo as_func_ret_failure succeeded. | ||
319 | fi | ||
320 | |||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
322 | : | ||
323 | else | ||
324 | exitcode=1 | ||
325 | echo positional parameters were not saved. | ||
326 | fi | ||
327 | |||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
329 | |||
330 | ( | ||
331 | as_lineno_1=$LINENO | ||
332 | as_lineno_2=$LINENO | ||
333 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
335 | |||
336 | _ASEOF | ||
337 | }; then | ||
338 | break | ||
339 | fi | ||
340 | |||
341 | fi | ||
342 | |||
343 | done | ||
344 | |||
345 | if test "x$CONFIG_SHELL" != x; then | ||
346 | for as_var in BASH_ENV ENV | ||
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
348 | done | ||
349 | export CONFIG_SHELL | ||
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
351 | fi | ||
352 | |||
353 | |||
354 | if test $as_have_required = no; then | ||
355 | echo This script requires a shell more modern than all the | ||
356 | echo shells that I found on your system. Please install a | ||
357 | echo modern shell, or manually run the script under such a | ||
358 | echo shell if you do have one. | ||
359 | { (exit 1); exit 1; } | ||
360 | fi | ||
361 | |||
362 | |||
363 | fi | ||
364 | |||
365 | fi | ||
366 | |||
367 | |||
368 | |||
369 | (eval "as_func_return () { | ||
370 | (exit \$1) | ||
371 | } | ||
372 | as_func_success () { | ||
373 | as_func_return 0 | ||
374 | } | ||
375 | as_func_failure () { | ||
376 | as_func_return 1 | ||
377 | } | ||
378 | as_func_ret_success () { | ||
379 | return 0 | ||
380 | } | ||
381 | as_func_ret_failure () { | ||
382 | return 1 | ||
383 | } | ||
384 | |||
385 | exitcode=0 | ||
386 | if as_func_success; then | ||
387 | : | ||
388 | else | ||
389 | exitcode=1 | ||
390 | echo as_func_success failed. | ||
391 | fi | ||
392 | |||
393 | if as_func_failure; then | ||
394 | exitcode=1 | ||
395 | echo as_func_failure succeeded. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_success; then | ||
399 | : | ||
400 | else | ||
401 | exitcode=1 | ||
402 | echo as_func_ret_success failed. | ||
403 | fi | ||
404 | |||
405 | if as_func_ret_failure; then | ||
406 | exitcode=1 | ||
407 | echo as_func_ret_failure succeeded. | ||
408 | fi | ||
409 | |||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
411 | : | ||
412 | else | ||
413 | exitcode=1 | ||
414 | echo positional parameters were not saved. | ||
415 | fi | ||
416 | |||
417 | test \$exitcode = 0") || { | ||
418 | echo No shell found that supports shell functions. | ||
419 | echo Please tell autoconf@gnu.org about your system, | ||
420 | echo including any error possibly output before this | ||
421 | echo message | ||
422 | } | ||
423 | |||
424 | |||
425 | |||
426 | as_lineno_1=$LINENO | ||
427 | as_lineno_2=$LINENO | ||
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
430 | |||
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
432 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
433 | # line-number line after each line using $LINENO; the second 'sed' | ||
434 | # does the real work. The second script uses 'N' to pair each | ||
435 | # line-number line with the line containing $LINENO, and appends | ||
436 | # trailing '-' during substitution so that $LINENO is not a special | ||
437 | # case at line end. | ||
438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
439 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
441 | sed -n ' | ||
442 | p | ||
443 | /[$]LINENO/= | ||
444 | ' <$as_myself | | ||
445 | sed ' | ||
446 | s/[$]LINENO.*/&-/ | ||
447 | t lineno | ||
448 | b | ||
449 | :lineno | ||
450 | N | ||
451 | :loop | ||
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
453 | t loop | ||
454 | s/-\n.*// | ||
455 | ' >$as_me.lineno && | ||
456 | chmod +x "$as_me.lineno" || | ||
457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
458 | { (exit 1); exit 1; }; } | ||
459 | |||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
461 | # (the dirname of $[0] is not the place where we might find the | ||
462 | # original and so on. Autoconf is especially sensitive to this). | ||
463 | . "./$as_me.lineno" | ||
464 | # Exit status is that of the last command. | ||
465 | exit | ||
466 | } | ||
467 | |||
468 | |||
469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
470 | as_dirname=dirname | ||
471 | else | ||
472 | as_dirname=false | ||
473 | fi | ||
474 | |||
475 | ECHO_C= ECHO_N= ECHO_T= | ||
476 | case `echo -n x` in | ||
477 | -n*) | ||
478 | case `echo 'x\c'` in | ||
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
480 | *) ECHO_C='\c';; | ||
481 | esac;; | ||
482 | *) | ||
483 | ECHO_N='-n';; | ||
484 | esac | ||
485 | |||
486 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
488 | as_expr=expr | ||
489 | else | ||
490 | as_expr=false | ||
491 | fi | ||
492 | |||
493 | rm -f conf$$ conf$$.exe conf$$.file | ||
494 | if test -d conf$$.dir; then | ||
495 | rm -f conf$$.dir/conf$$.file | ||
496 | else | ||
497 | rm -f conf$$.dir | ||
498 | mkdir conf$$.dir | ||
499 | fi | ||
500 | echo >conf$$.file | ||
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
502 | as_ln_s='ln -s' | ||
503 | # ... but there are two gotchas: | ||
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
506 | # In both cases, we have to default to `cp -p'. | ||
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
508 | as_ln_s='cp -p' | ||
509 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
510 | as_ln_s=ln | ||
511 | else | ||
512 | as_ln_s='cp -p' | ||
513 | fi | ||
514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
515 | rmdir conf$$.dir 2>/dev/null | ||
516 | |||
517 | if mkdir -p . 2>/dev/null; then | ||
518 | as_mkdir_p=: | ||
519 | else | ||
520 | test -d ./-p && rmdir ./-p | ||
521 | as_mkdir_p=false | ||
522 | fi | ||
523 | |||
524 | if test -x / >/dev/null 2>&1; then | ||
525 | as_test_x='test -x' | ||
526 | else | ||
527 | if ls -dL / >/dev/null 2>&1; then | ||
528 | as_ls_L_option=L | ||
529 | else | ||
530 | as_ls_L_option= | ||
531 | fi | ||
532 | as_test_x=' | ||
533 | eval sh -c '\'' | ||
534 | if test -d "$1"; then | ||
535 | test -d "$1/."; | ||
536 | else | ||
537 | case $1 in | ||
538 | -*)set "./$1";; | ||
539 | esac; | ||
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
541 | ???[sx]*):;;*)false;;esac;fi | ||
542 | '\'' sh | ||
543 | ' | ||
544 | fi | ||
545 | as_executable_p=$as_test_x | ||
546 | |||
547 | # Sed expression to map a string onto a valid CPP name. | ||
548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
549 | |||
550 | # Sed expression to map a string onto a valid variable name. | ||
551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
552 | |||
553 | |||
554 | |||
555 | exec 7<&0 </dev/null 6>&1 | ||
556 | |||
557 | # Name of the host. | ||
558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
559 | # so uname gets run too. | ||
560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
561 | |||
562 | # | ||
563 | # Initializations. | ||
564 | # | ||
565 | ac_default_prefix=/usr/local | ||
566 | ac_clean_files= | ||
567 | ac_config_libobj_dir=. | ||
568 | LIBOBJS= | ||
569 | cross_compiling=no | ||
570 | subdirs= | ||
571 | MFLAGS= | ||
572 | MAKEFLAGS= | ||
573 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
574 | |||
575 | # Identity of this package. | ||
576 | PACKAGE_NAME='OpenSSH' | ||
577 | PACKAGE_TARNAME='openssh' | ||
578 | PACKAGE_VERSION='Portable' | ||
579 | PACKAGE_STRING='OpenSSH Portable' | ||
580 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
581 | |||
582 | ac_unique_file="ssh.c" | ||
583 | # Factoring default headers for most tests. | ||
584 | ac_includes_default="\ | ||
585 | #include <stdio.h> | ||
586 | #ifdef HAVE_SYS_TYPES_H | ||
587 | # include <sys/types.h> | ||
588 | #endif | ||
589 | #ifdef HAVE_SYS_STAT_H | ||
590 | # include <sys/stat.h> | ||
591 | #endif | ||
592 | #ifdef STDC_HEADERS | ||
593 | # include <stdlib.h> | ||
594 | # include <stddef.h> | ||
595 | #else | ||
596 | # ifdef HAVE_STDLIB_H | ||
597 | # include <stdlib.h> | ||
598 | # endif | ||
599 | #endif | ||
600 | #ifdef HAVE_STRING_H | ||
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
602 | # include <memory.h> | ||
603 | # endif | ||
604 | # include <string.h> | ||
605 | #endif | ||
606 | #ifdef HAVE_STRINGS_H | ||
607 | # include <strings.h> | ||
608 | #endif | ||
609 | #ifdef HAVE_INTTYPES_H | ||
610 | # include <inttypes.h> | ||
611 | #endif | ||
612 | #ifdef HAVE_STDINT_H | ||
613 | # include <stdint.h> | ||
614 | #endif | ||
615 | #ifdef HAVE_UNISTD_H | ||
616 | # include <unistd.h> | ||
617 | #endif" | ||
618 | |||
619 | ac_subst_vars='SHELL | ||
620 | PATH_SEPARATOR | ||
621 | PACKAGE_NAME | ||
622 | PACKAGE_TARNAME | ||
623 | PACKAGE_VERSION | ||
624 | PACKAGE_STRING | ||
625 | PACKAGE_BUGREPORT | ||
626 | exec_prefix | ||
627 | prefix | ||
628 | program_transform_name | ||
629 | bindir | ||
630 | sbindir | ||
631 | libexecdir | ||
632 | datarootdir | ||
633 | datadir | ||
634 | sysconfdir | ||
635 | sharedstatedir | ||
636 | localstatedir | ||
637 | includedir | ||
638 | oldincludedir | ||
639 | docdir | ||
640 | infodir | ||
641 | htmldir | ||
642 | dvidir | ||
643 | pdfdir | ||
644 | psdir | ||
645 | libdir | ||
646 | localedir | ||
647 | mandir | ||
648 | DEFS | ||
649 | ECHO_C | ||
650 | ECHO_N | ||
651 | ECHO_T | ||
652 | LIBS | ||
653 | build_alias | ||
654 | host_alias | ||
655 | target_alias | ||
656 | CC | ||
657 | CFLAGS | ||
658 | LDFLAGS | ||
659 | CPPFLAGS | ||
660 | ac_ct_CC | ||
661 | EXEEXT | ||
662 | OBJEXT | ||
663 | build | ||
664 | build_cpu | ||
665 | build_vendor | ||
666 | build_os | ||
667 | host | ||
668 | host_cpu | ||
669 | host_vendor | ||
670 | host_os | ||
671 | CPP | ||
672 | GREP | ||
673 | EGREP | ||
674 | AWK | ||
675 | RANLIB | ||
676 | INSTALL_PROGRAM | ||
677 | INSTALL_SCRIPT | ||
678 | INSTALL_DATA | ||
679 | AR | ||
680 | CAT | ||
681 | KILL | ||
682 | PERL | ||
683 | SED | ||
684 | ENT | ||
685 | TEST_MINUS_S_SH | ||
686 | SH | ||
687 | TEST_SHELL | ||
688 | PATH_GROUPADD_PROG | ||
689 | PATH_USERADD_PROG | ||
690 | MAKE_PACKAGE_SUPPORTED | ||
691 | STARTUP_SCRIPT_SHELL | ||
692 | LOGIN_PROGRAM_FALLBACK | ||
693 | PATH_PASSWD_PROG | ||
694 | LD | ||
695 | SSHDLIBS | ||
696 | PKGCONFIG | ||
697 | LIBEDIT | ||
698 | INSTALL_SSH_RAND_HELPER | ||
699 | SSH_PRIVSEP_USER | ||
700 | PROG_LS | ||
701 | PROG_NETSTAT | ||
702 | PROG_ARP | ||
703 | PROG_IFCONFIG | ||
704 | PROG_JSTAT | ||
705 | PROG_PS | ||
706 | PROG_SAR | ||
707 | PROG_W | ||
708 | PROG_WHO | ||
709 | PROG_LAST | ||
710 | PROG_LASTLOG | ||
711 | PROG_DF | ||
712 | PROG_VMSTAT | ||
713 | PROG_UPTIME | ||
714 | PROG_IPCS | ||
715 | PROG_TAIL | ||
716 | INSTALL_SSH_PRNG_CMDS | ||
717 | KRB5CONF | ||
718 | PRIVSEP_PATH | ||
719 | xauth_path | ||
720 | STRIP_OPT | ||
721 | XAUTH_PATH | ||
722 | NROFF | ||
723 | MANTYPE | ||
724 | mansubdir | ||
725 | user_path | ||
726 | piddir | ||
727 | TEST_SSH_IPV6 | ||
728 | LIBOBJS | ||
729 | LTLIBOBJS' | ||
730 | ac_subst_files='' | ||
731 | ac_precious_vars='build_alias | ||
732 | host_alias | ||
733 | target_alias | ||
734 | CC | ||
735 | CFLAGS | ||
736 | LDFLAGS | ||
737 | LIBS | ||
738 | CPPFLAGS | ||
739 | CPP' | ||
740 | |||
741 | |||
742 | # Initialize some variables set by options. | ||
743 | ac_init_help= | ||
744 | ac_init_version=false | ||
745 | # The variables have the same names as the options, with | ||
746 | # dashes changed to underlines. | ||
747 | cache_file=/dev/null | ||
748 | exec_prefix=NONE | ||
749 | no_create= | ||
750 | no_recursion= | ||
751 | prefix=NONE | ||
752 | program_prefix=NONE | ||
753 | program_suffix=NONE | ||
754 | program_transform_name=s,x,x, | ||
755 | silent= | ||
756 | site= | ||
757 | srcdir= | ||
758 | verbose= | ||
759 | x_includes=NONE | ||
760 | x_libraries=NONE | ||
761 | |||
762 | # Installation directory options. | ||
763 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
764 | # and all the variables that are supposed to be based on exec_prefix | ||
765 | # by default will actually change. | ||
766 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
767 | # (The list follows the same order as the GNU Coding Standards.) | ||
768 | bindir='${exec_prefix}/bin' | ||
769 | sbindir='${exec_prefix}/sbin' | ||
770 | libexecdir='${exec_prefix}/libexec' | ||
771 | datarootdir='${prefix}/share' | ||
772 | datadir='${datarootdir}' | ||
773 | sysconfdir='${prefix}/etc' | ||
774 | sharedstatedir='${prefix}/com' | ||
775 | localstatedir='${prefix}/var' | ||
776 | includedir='${prefix}/include' | ||
777 | oldincludedir='/usr/include' | ||
778 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
779 | infodir='${datarootdir}/info' | ||
780 | htmldir='${docdir}' | ||
781 | dvidir='${docdir}' | ||
782 | pdfdir='${docdir}' | ||
783 | psdir='${docdir}' | ||
784 | libdir='${exec_prefix}/lib' | ||
785 | localedir='${datarootdir}/locale' | ||
786 | mandir='${datarootdir}/man' | ||
787 | |||
788 | ac_prev= | ||
789 | ac_dashdash= | ||
790 | for ac_option | ||
791 | do | ||
792 | # If the previous option needs an argument, assign it. | ||
793 | if test -n "$ac_prev"; then | ||
794 | eval $ac_prev=\$ac_option | ||
795 | ac_prev= | ||
796 | continue | ||
797 | fi | ||
798 | |||
799 | case $ac_option in | ||
800 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
801 | *) ac_optarg=yes ;; | ||
802 | esac | ||
803 | |||
804 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
805 | |||
806 | case $ac_dashdash$ac_option in | ||
807 | --) | ||
808 | ac_dashdash=yes ;; | ||
809 | |||
810 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
811 | ac_prev=bindir ;; | ||
812 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
813 | bindir=$ac_optarg ;; | ||
814 | |||
815 | -build | --build | --buil | --bui | --bu) | ||
816 | ac_prev=build_alias ;; | ||
817 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
818 | build_alias=$ac_optarg ;; | ||
819 | |||
820 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
821 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
822 | ac_prev=cache_file ;; | ||
823 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
824 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
825 | cache_file=$ac_optarg ;; | ||
826 | |||
827 | --config-cache | -C) | ||
828 | cache_file=config.cache ;; | ||
829 | |||
830 | -datadir | --datadir | --datadi | --datad) | ||
831 | ac_prev=datadir ;; | ||
832 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
833 | datadir=$ac_optarg ;; | ||
834 | |||
835 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
836 | | --dataroo | --dataro | --datar) | ||
837 | ac_prev=datarootdir ;; | ||
838 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
839 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
840 | datarootdir=$ac_optarg ;; | ||
841 | |||
842 | -disable-* | --disable-*) | ||
843 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
844 | # Reject names that are not valid shell variable names. | ||
845 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
846 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
847 | { (exit 1); exit 1; }; } | ||
848 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
849 | eval enable_$ac_feature=no ;; | ||
850 | |||
851 | -docdir | --docdir | --docdi | --doc | --do) | ||
852 | ac_prev=docdir ;; | ||
853 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
854 | docdir=$ac_optarg ;; | ||
855 | |||
856 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
857 | ac_prev=dvidir ;; | ||
858 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
859 | dvidir=$ac_optarg ;; | ||
860 | |||
861 | -enable-* | --enable-*) | ||
862 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
863 | # Reject names that are not valid shell variable names. | ||
864 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
865 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
866 | { (exit 1); exit 1; }; } | ||
867 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
868 | eval enable_$ac_feature=\$ac_optarg ;; | ||
869 | |||
870 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
871 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
872 | | --exec | --exe | --ex) | ||
873 | ac_prev=exec_prefix ;; | ||
874 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
875 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
876 | | --exec=* | --exe=* | --ex=*) | ||
877 | exec_prefix=$ac_optarg ;; | ||
878 | |||
879 | -gas | --gas | --ga | --g) | ||
880 | # Obsolete; use --with-gas. | ||
881 | with_gas=yes ;; | ||
882 | |||
883 | -help | --help | --hel | --he | -h) | ||
884 | ac_init_help=long ;; | ||
885 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
886 | ac_init_help=recursive ;; | ||
887 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
888 | ac_init_help=short ;; | ||
889 | |||
890 | -host | --host | --hos | --ho) | ||
891 | ac_prev=host_alias ;; | ||
892 | -host=* | --host=* | --hos=* | --ho=*) | ||
893 | host_alias=$ac_optarg ;; | ||
894 | |||
895 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
896 | ac_prev=htmldir ;; | ||
897 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
898 | | --ht=*) | ||
899 | htmldir=$ac_optarg ;; | ||
900 | |||
901 | -includedir | --includedir | --includedi | --included | --include \ | ||
902 | | --includ | --inclu | --incl | --inc) | ||
903 | ac_prev=includedir ;; | ||
904 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
905 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
906 | includedir=$ac_optarg ;; | ||
907 | |||
908 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
909 | ac_prev=infodir ;; | ||
910 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
911 | infodir=$ac_optarg ;; | ||
912 | |||
913 | -libdir | --libdir | --libdi | --libd) | ||
914 | ac_prev=libdir ;; | ||
915 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
916 | libdir=$ac_optarg ;; | ||
917 | |||
918 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
919 | | --libexe | --libex | --libe) | ||
920 | ac_prev=libexecdir ;; | ||
921 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
922 | | --libexe=* | --libex=* | --libe=*) | ||
923 | libexecdir=$ac_optarg ;; | ||
924 | |||
925 | -localedir | --localedir | --localedi | --localed | --locale) | ||
926 | ac_prev=localedir ;; | ||
927 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
928 | localedir=$ac_optarg ;; | ||
929 | |||
930 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
931 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
932 | ac_prev=localstatedir ;; | ||
933 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
934 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
935 | localstatedir=$ac_optarg ;; | ||
936 | |||
937 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
938 | ac_prev=mandir ;; | ||
939 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
940 | mandir=$ac_optarg ;; | ||
941 | |||
942 | -nfp | --nfp | --nf) | ||
943 | # Obsolete; use --without-fp. | ||
944 | with_fp=no ;; | ||
945 | |||
946 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
947 | | --no-cr | --no-c | -n) | ||
948 | no_create=yes ;; | ||
949 | |||
950 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
951 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
952 | no_recursion=yes ;; | ||
953 | |||
954 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
955 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
956 | | --oldin | --oldi | --old | --ol | --o) | ||
957 | ac_prev=oldincludedir ;; | ||
958 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
959 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
960 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
961 | oldincludedir=$ac_optarg ;; | ||
962 | |||
963 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
964 | ac_prev=prefix ;; | ||
965 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
966 | prefix=$ac_optarg ;; | ||
967 | |||
968 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
969 | | --program-pre | --program-pr | --program-p) | ||
970 | ac_prev=program_prefix ;; | ||
971 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
972 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
973 | program_prefix=$ac_optarg ;; | ||
974 | |||
975 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
976 | | --program-suf | --program-su | --program-s) | ||
977 | ac_prev=program_suffix ;; | ||
978 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
979 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
980 | program_suffix=$ac_optarg ;; | ||
981 | |||
982 | -program-transform-name | --program-transform-name \ | ||
983 | | --program-transform-nam | --program-transform-na \ | ||
984 | | --program-transform-n | --program-transform- \ | ||
985 | | --program-transform | --program-transfor \ | ||
986 | | --program-transfo | --program-transf \ | ||
987 | | --program-trans | --program-tran \ | ||
988 | | --progr-tra | --program-tr | --program-t) | ||
989 | ac_prev=program_transform_name ;; | ||
990 | -program-transform-name=* | --program-transform-name=* \ | ||
991 | | --program-transform-nam=* | --program-transform-na=* \ | ||
992 | | --program-transform-n=* | --program-transform-=* \ | ||
993 | | --program-transform=* | --program-transfor=* \ | ||
994 | | --program-transfo=* | --program-transf=* \ | ||
995 | | --program-trans=* | --program-tran=* \ | ||
996 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
997 | program_transform_name=$ac_optarg ;; | ||
998 | |||
999 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1000 | ac_prev=pdfdir ;; | ||
1001 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1002 | pdfdir=$ac_optarg ;; | ||
1003 | |||
1004 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1005 | ac_prev=psdir ;; | ||
1006 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1007 | psdir=$ac_optarg ;; | ||
1008 | |||
1009 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1010 | | -silent | --silent | --silen | --sile | --sil) | ||
1011 | silent=yes ;; | ||
1012 | |||
1013 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1014 | ac_prev=sbindir ;; | ||
1015 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1016 | | --sbi=* | --sb=*) | ||
1017 | sbindir=$ac_optarg ;; | ||
1018 | |||
1019 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1020 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1021 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1022 | | --sha | --sh) | ||
1023 | ac_prev=sharedstatedir ;; | ||
1024 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1025 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1026 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1027 | | --sha=* | --sh=*) | ||
1028 | sharedstatedir=$ac_optarg ;; | ||
1029 | |||
1030 | -site | --site | --sit) | ||
1031 | ac_prev=site ;; | ||
1032 | -site=* | --site=* | --sit=*) | ||
1033 | site=$ac_optarg ;; | ||
1034 | |||
1035 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1036 | ac_prev=srcdir ;; | ||
1037 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1038 | srcdir=$ac_optarg ;; | ||
1039 | |||
1040 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1041 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1042 | ac_prev=sysconfdir ;; | ||
1043 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1044 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1045 | sysconfdir=$ac_optarg ;; | ||
1046 | |||
1047 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1048 | ac_prev=target_alias ;; | ||
1049 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1050 | target_alias=$ac_optarg ;; | ||
1051 | |||
1052 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1053 | verbose=yes ;; | ||
1054 | |||
1055 | -version | --version | --versio | --versi | --vers | -V) | ||
1056 | ac_init_version=: ;; | ||
1057 | |||
1058 | -with-* | --with-*) | ||
1059 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1060 | # Reject names that are not valid shell variable names. | ||
1061 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1062 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1063 | { (exit 1); exit 1; }; } | ||
1064 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1065 | eval with_$ac_package=\$ac_optarg ;; | ||
1066 | |||
1067 | -without-* | --without-*) | ||
1068 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1069 | # Reject names that are not valid shell variable names. | ||
1070 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1071 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1072 | { (exit 1); exit 1; }; } | ||
1073 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1074 | eval with_$ac_package=no ;; | ||
1075 | |||
1076 | --x) | ||
1077 | # Obsolete; use --with-x. | ||
1078 | with_x=yes ;; | ||
1079 | |||
1080 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1081 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1082 | ac_prev=x_includes ;; | ||
1083 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1084 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1085 | x_includes=$ac_optarg ;; | ||
1086 | |||
1087 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1088 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1089 | ac_prev=x_libraries ;; | ||
1090 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1091 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1092 | x_libraries=$ac_optarg ;; | ||
1093 | |||
1094 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1095 | Try \`$0 --help' for more information." >&2 | ||
1096 | { (exit 1); exit 1; }; } | ||
1097 | ;; | ||
1098 | |||
1099 | *=*) | ||
1100 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1101 | # Reject names that are not valid shell variable names. | ||
1102 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1103 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1104 | { (exit 1); exit 1; }; } | ||
1105 | eval $ac_envvar=\$ac_optarg | ||
1106 | export $ac_envvar ;; | ||
1107 | |||
1108 | *) | ||
1109 | # FIXME: should be removed in autoconf 3.0. | ||
1110 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1111 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1112 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1113 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1114 | ;; | ||
1115 | |||
1116 | esac | ||
1117 | done | ||
1118 | |||
1119 | if test -n "$ac_prev"; then | ||
1120 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1121 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1122 | { (exit 1); exit 1; }; } | ||
1123 | fi | ||
1124 | |||
1125 | # Be sure to have absolute directory names. | ||
1126 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1127 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1128 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1129 | libdir localedir mandir | ||
1130 | do | ||
1131 | eval ac_val=\$$ac_var | ||
1132 | case $ac_val in | ||
1133 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1134 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1135 | esac | ||
1136 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1137 | { (exit 1); exit 1; }; } | ||
1138 | done | ||
1139 | |||
1140 | # There might be people who depend on the old broken behavior: `$host' | ||
1141 | # used to hold the argument of --host etc. | ||
1142 | # FIXME: To remove some day. | ||
1143 | build=$build_alias | ||
1144 | host=$host_alias | ||
1145 | target=$target_alias | ||
1146 | |||
1147 | # FIXME: To remove some day. | ||
1148 | if test "x$host_alias" != x; then | ||
1149 | if test "x$build_alias" = x; then | ||
1150 | cross_compiling=maybe | ||
1151 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1152 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1153 | elif test "x$build_alias" != "x$host_alias"; then | ||
1154 | cross_compiling=yes | ||
1155 | fi | ||
1156 | fi | ||
1157 | |||
1158 | ac_tool_prefix= | ||
1159 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1160 | |||
1161 | test "$silent" = yes && exec 6>/dev/null | ||
1162 | |||
1163 | |||
1164 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1165 | ac_ls_di=`ls -di .` && | ||
1166 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1167 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1168 | { (exit 1); exit 1; }; } | ||
1169 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1170 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1171 | { (exit 1); exit 1; }; } | ||
1172 | |||
1173 | |||
1174 | # Find the source files, if location was not specified. | ||
1175 | if test -z "$srcdir"; then | ||
1176 | ac_srcdir_defaulted=yes | ||
1177 | # Try the directory containing this script, then the parent directory. | ||
1178 | ac_confdir=`$as_dirname -- "$0" || | ||
1179 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1180 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1181 | X"$0" : 'X\(//\)$' \| \ | ||
1182 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1183 | echo X"$0" | | ||
1184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1185 | s//\1/ | ||
1186 | q | ||
1187 | } | ||
1188 | /^X\(\/\/\)[^/].*/{ | ||
1189 | s//\1/ | ||
1190 | q | ||
1191 | } | ||
1192 | /^X\(\/\/\)$/{ | ||
1193 | s//\1/ | ||
1194 | q | ||
1195 | } | ||
1196 | /^X\(\/\).*/{ | ||
1197 | s//\1/ | ||
1198 | q | ||
1199 | } | ||
1200 | s/.*/./; q'` | ||
1201 | srcdir=$ac_confdir | ||
1202 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1203 | srcdir=.. | ||
1204 | fi | ||
1205 | else | ||
1206 | ac_srcdir_defaulted=no | ||
1207 | fi | ||
1208 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1209 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1210 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1211 | { (exit 1); exit 1; }; } | ||
1212 | fi | ||
1213 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1214 | ac_abs_confdir=`( | ||
1215 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1216 | { (exit 1); exit 1; }; } | ||
1217 | pwd)` | ||
1218 | # When building in place, set srcdir=. | ||
1219 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1220 | srcdir=. | ||
1221 | fi | ||
1222 | # Remove unnecessary trailing slashes from srcdir. | ||
1223 | # Double slashes in file names in object file debugging info | ||
1224 | # mess up M-x gdb in Emacs. | ||
1225 | case $srcdir in | ||
1226 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1227 | esac | ||
1228 | for ac_var in $ac_precious_vars; do | ||
1229 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1230 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1231 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1232 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1233 | done | ||
1234 | |||
1235 | # | ||
1236 | # Report the --help message. | ||
1237 | # | ||
1238 | if test "$ac_init_help" = "long"; then | ||
1239 | # Omit some internal or obsolete options to make the list less imposing. | ||
1240 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1241 | cat <<_ACEOF | ||
1242 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1243 | |||
1244 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1245 | |||
1246 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1247 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1248 | |||
1249 | Defaults for the options are specified in brackets. | ||
1250 | |||
1251 | Configuration: | ||
1252 | -h, --help display this help and exit | ||
1253 | --help=short display options specific to this package | ||
1254 | --help=recursive display the short help of all the included packages | ||
1255 | -V, --version display version information and exit | ||
1256 | -q, --quiet, --silent do not print \`checking...' messages | ||
1257 | --cache-file=FILE cache test results in FILE [disabled] | ||
1258 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1259 | -n, --no-create do not create output files | ||
1260 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1261 | |||
1262 | Installation directories: | ||
1263 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1264 | [$ac_default_prefix] | ||
1265 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1266 | [PREFIX] | ||
1267 | |||
1268 | By default, \`make install' will install all the files in | ||
1269 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1270 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1271 | for instance \`--prefix=\$HOME'. | ||
1272 | |||
1273 | For better control, use the options below. | ||
1274 | |||
1275 | Fine tuning of the installation directories: | ||
1276 | --bindir=DIR user executables [EPREFIX/bin] | ||
1277 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1278 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1279 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1280 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1281 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1282 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1283 | --includedir=DIR C header files [PREFIX/include] | ||
1284 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1285 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1286 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1287 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1288 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1289 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1290 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1291 | --htmldir=DIR html documentation [DOCDIR] | ||
1292 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1293 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1294 | --psdir=DIR ps documentation [DOCDIR] | ||
1295 | _ACEOF | ||
1296 | |||
1297 | cat <<\_ACEOF | ||
1298 | |||
1299 | System types: | ||
1300 | --build=BUILD configure for building on BUILD [guessed] | ||
1301 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1302 | _ACEOF | ||
1303 | fi | ||
1304 | |||
1305 | if test -n "$ac_init_help"; then | ||
1306 | case $ac_init_help in | ||
1307 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1308 | esac | ||
1309 | cat <<\_ACEOF | ||
1310 | |||
1311 | Optional Features: | ||
1312 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1313 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1314 | --disable-largefile omit support for large files | ||
1315 | --disable-strip Disable calling strip(1) on install | ||
1316 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1317 | --disable-lastlog disable use of lastlog even if detected no | ||
1318 | --disable-utmp disable use of utmp even if detected no | ||
1319 | --disable-utmpx disable use of utmpx even if detected no | ||
1320 | --disable-wtmp disable use of wtmp even if detected no | ||
1321 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1322 | --disable-libutil disable use of libutil (login() etc.) no | ||
1323 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1324 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1325 | |||
1326 | Optional Packages: | ||
1327 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1328 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1329 | --without-stackprotect Don't use compiler's stack protection | ||
1330 | --without-rpath Disable auto-added -R linker paths | ||
1331 | --with-cflags Specify additional flags to pass to compiler | ||
1332 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1333 | --with-ldflags Specify additional flags to pass to linker | ||
1334 | --with-libs Specify additional libraries to link with | ||
1335 | --with-Werror Build main code with -Werror | ||
1336 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1337 | --with-osfsia Enable Digital Unix SIA | ||
1338 | --with-zlib=PATH Use zlib in PATH | ||
1339 | --without-zlib-version-check Disable zlib version check | ||
1340 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1341 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1342 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1343 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
1344 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1345 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1346 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1347 | --with-pam Enable PAM support | ||
1348 | --with-rand-helper Use subprocess to gather strong randomness | ||
1349 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1350 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1351 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1352 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1353 | --with-selinux Enable SELinux support | ||
1354 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1355 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1356 | --with-xauth=PATH Specify path to xauth program | ||
1357 | --with-mantype=man|cat|doc Set man page type | ||
1358 | --with-md5-passwords Enable use of MD5 passwords | ||
1359 | --without-shadow Disable shadow password support | ||
1360 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1361 | --with-default-path= Specify default \$PATH environment for server | ||
1362 | --with-superuser-path= Specify different path for super-user | ||
1363 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1364 | --with-bsd-auth Enable BSD auth support | ||
1365 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1366 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1367 | |||
1368 | Some influential environment variables: | ||
1369 | CC C compiler command | ||
1370 | CFLAGS C compiler flags | ||
1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1372 | nonstandard directory <lib dir> | ||
1373 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1374 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1375 | you have headers in a nonstandard directory <include dir> | ||
1376 | CPP C preprocessor | ||
1377 | |||
1378 | Use these variables to override the choices made by `configure' or to help | ||
1379 | it to find libraries and programs with nonstandard names/locations. | ||
1380 | |||
1381 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1382 | _ACEOF | ||
1383 | ac_status=$? | ||
1384 | fi | ||
1385 | |||
1386 | if test "$ac_init_help" = "recursive"; then | ||
1387 | # If there are subdirs, report their specific --help. | ||
1388 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1389 | test -d "$ac_dir" || continue | ||
1390 | ac_builddir=. | ||
1391 | |||
1392 | case "$ac_dir" in | ||
1393 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1394 | *) | ||
1395 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1396 | # A ".." for each directory in $ac_dir_suffix. | ||
1397 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1398 | case $ac_top_builddir_sub in | ||
1399 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1400 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1401 | esac ;; | ||
1402 | esac | ||
1403 | ac_abs_top_builddir=$ac_pwd | ||
1404 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1405 | # for backward compatibility: | ||
1406 | ac_top_builddir=$ac_top_build_prefix | ||
1407 | |||
1408 | case $srcdir in | ||
1409 | .) # We are building in place. | ||
1410 | ac_srcdir=. | ||
1411 | ac_top_srcdir=$ac_top_builddir_sub | ||
1412 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1413 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1414 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1415 | ac_top_srcdir=$srcdir | ||
1416 | ac_abs_top_srcdir=$srcdir ;; | ||
1417 | *) # Relative name. | ||
1418 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1419 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1420 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1421 | esac | ||
1422 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1423 | |||
1424 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1425 | # Check for guested configure. | ||
1426 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1427 | echo && | ||
1428 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1429 | elif test -f "$ac_srcdir/configure"; then | ||
1430 | echo && | ||
1431 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1432 | else | ||
1433 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1434 | fi || ac_status=$? | ||
1435 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1436 | done | ||
1437 | fi | ||
1438 | |||
1439 | test -n "$ac_init_help" && exit $ac_status | ||
1440 | if $ac_init_version; then | ||
1441 | cat <<\_ACEOF | ||
1442 | OpenSSH configure Portable | ||
1443 | generated by GNU Autoconf 2.61 | ||
1444 | |||
1445 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1446 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1447 | This configure script is free software; the Free Software Foundation | ||
1448 | gives unlimited permission to copy, distribute and modify it. | ||
1449 | _ACEOF | ||
1450 | exit | ||
1451 | fi | ||
1452 | cat >config.log <<_ACEOF | ||
1453 | This file contains any messages produced by compilers while | ||
1454 | running configure, to aid debugging if configure makes a mistake. | ||
1455 | |||
1456 | It was created by OpenSSH $as_me Portable, which was | ||
1457 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1458 | |||
1459 | $ $0 $@ | ||
1460 | |||
1461 | _ACEOF | ||
1462 | exec 5>>config.log | ||
1463 | { | ||
1464 | cat <<_ASUNAME | ||
1465 | ## --------- ## | ||
1466 | ## Platform. ## | ||
1467 | ## --------- ## | ||
1468 | |||
1469 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1470 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1471 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1472 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1473 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1474 | |||
1475 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1476 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1477 | |||
1478 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1479 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1480 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1481 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1482 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1483 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1484 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1485 | |||
1486 | _ASUNAME | ||
1487 | |||
1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1489 | for as_dir in $PATH | ||
1490 | do | ||
1491 | IFS=$as_save_IFS | ||
1492 | test -z "$as_dir" && as_dir=. | ||
1493 | echo "PATH: $as_dir" | ||
1494 | done | ||
1495 | IFS=$as_save_IFS | ||
1496 | |||
1497 | } >&5 | ||
1498 | |||
1499 | cat >&5 <<_ACEOF | ||
1500 | |||
1501 | |||
1502 | ## ----------- ## | ||
1503 | ## Core tests. ## | ||
1504 | ## ----------- ## | ||
1505 | |||
1506 | _ACEOF | ||
1507 | |||
1508 | |||
1509 | # Keep a trace of the command line. | ||
1510 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1511 | # Strip out --silent because we don't want to record it for future runs. | ||
1512 | # Also quote any args containing shell meta-characters. | ||
1513 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1514 | ac_configure_args= | ||
1515 | ac_configure_args0= | ||
1516 | ac_configure_args1= | ||
1517 | ac_must_keep_next=false | ||
1518 | for ac_pass in 1 2 | ||
1519 | do | ||
1520 | for ac_arg | ||
1521 | do | ||
1522 | case $ac_arg in | ||
1523 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1525 | | -silent | --silent | --silen | --sile | --sil) | ||
1526 | continue ;; | ||
1527 | *\'*) | ||
1528 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1529 | esac | ||
1530 | case $ac_pass in | ||
1531 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1532 | 2) | ||
1533 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1534 | if test $ac_must_keep_next = true; then | ||
1535 | ac_must_keep_next=false # Got value, back to normal. | ||
1536 | else | ||
1537 | case $ac_arg in | ||
1538 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1539 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1540 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1541 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1542 | case "$ac_configure_args0 " in | ||
1543 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1544 | esac | ||
1545 | ;; | ||
1546 | -* ) ac_must_keep_next=true ;; | ||
1547 | esac | ||
1548 | fi | ||
1549 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1550 | ;; | ||
1551 | esac | ||
1552 | done | ||
1553 | done | ||
1554 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1555 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1556 | |||
1557 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1558 | # config.log. We remove comments because anyway the quotes in there | ||
1559 | # would cause problems or look ugly. | ||
1560 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1561 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1562 | trap 'exit_status=$? | ||
1563 | # Save into config.log some information that might help in debugging. | ||
1564 | { | ||
1565 | echo | ||
1566 | |||
1567 | cat <<\_ASBOX | ||
1568 | ## ---------------- ## | ||
1569 | ## Cache variables. ## | ||
1570 | ## ---------------- ## | ||
1571 | _ASBOX | ||
1572 | echo | ||
1573 | # The following way of writing the cache mishandles newlines in values, | ||
1574 | ( | ||
1575 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1576 | eval ac_val=\$$ac_var | ||
1577 | case $ac_val in #( | ||
1578 | *${as_nl}*) | ||
1579 | case $ac_var in #( | ||
1580 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1581 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1582 | esac | ||
1583 | case $ac_var in #( | ||
1584 | _ | IFS | as_nl) ;; #( | ||
1585 | *) $as_unset $ac_var ;; | ||
1586 | esac ;; | ||
1587 | esac | ||
1588 | done | ||
1589 | (set) 2>&1 | | ||
1590 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1591 | *${as_nl}ac_space=\ *) | ||
1592 | sed -n \ | ||
1593 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1594 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1595 | ;; #( | ||
1596 | *) | ||
1597 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1598 | ;; | ||
1599 | esac | | ||
1600 | sort | ||
1601 | ) | ||
1602 | echo | ||
1603 | |||
1604 | cat <<\_ASBOX | ||
1605 | ## ----------------- ## | ||
1606 | ## Output variables. ## | ||
1607 | ## ----------------- ## | ||
1608 | _ASBOX | ||
1609 | echo | ||
1610 | for ac_var in $ac_subst_vars | ||
1611 | do | ||
1612 | eval ac_val=\$$ac_var | ||
1613 | case $ac_val in | ||
1614 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1615 | esac | ||
1616 | echo "$ac_var='\''$ac_val'\''" | ||
1617 | done | sort | ||
1618 | echo | ||
1619 | |||
1620 | if test -n "$ac_subst_files"; then | ||
1621 | cat <<\_ASBOX | ||
1622 | ## ------------------- ## | ||
1623 | ## File substitutions. ## | ||
1624 | ## ------------------- ## | ||
1625 | _ASBOX | ||
1626 | echo | ||
1627 | for ac_var in $ac_subst_files | ||
1628 | do | ||
1629 | eval ac_val=\$$ac_var | ||
1630 | case $ac_val in | ||
1631 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1632 | esac | ||
1633 | echo "$ac_var='\''$ac_val'\''" | ||
1634 | done | sort | ||
1635 | echo | ||
1636 | fi | ||
1637 | |||
1638 | if test -s confdefs.h; then | ||
1639 | cat <<\_ASBOX | ||
1640 | ## ----------- ## | ||
1641 | ## confdefs.h. ## | ||
1642 | ## ----------- ## | ||
1643 | _ASBOX | ||
1644 | echo | ||
1645 | cat confdefs.h | ||
1646 | echo | ||
1647 | fi | ||
1648 | test "$ac_signal" != 0 && | ||
1649 | echo "$as_me: caught signal $ac_signal" | ||
1650 | echo "$as_me: exit $exit_status" | ||
1651 | } >&5 | ||
1652 | rm -f core *.core core.conftest.* && | ||
1653 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1654 | exit $exit_status | ||
1655 | ' 0 | ||
1656 | for ac_signal in 1 2 13 15; do | ||
1657 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1658 | done | ||
1659 | ac_signal=0 | ||
1660 | |||
1661 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1662 | rm -f -r conftest* confdefs.h | ||
1663 | |||
1664 | # Predefined preprocessor variables. | ||
1665 | |||
1666 | cat >>confdefs.h <<_ACEOF | ||
1667 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1668 | _ACEOF | ||
1669 | |||
1670 | |||
1671 | cat >>confdefs.h <<_ACEOF | ||
1672 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1673 | _ACEOF | ||
1674 | |||
1675 | |||
1676 | cat >>confdefs.h <<_ACEOF | ||
1677 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1678 | _ACEOF | ||
1679 | |||
1680 | |||
1681 | cat >>confdefs.h <<_ACEOF | ||
1682 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1683 | _ACEOF | ||
1684 | |||
1685 | |||
1686 | cat >>confdefs.h <<_ACEOF | ||
1687 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1688 | _ACEOF | ||
1689 | |||
1690 | |||
1691 | # Let the site file select an alternate cache file if it wants to. | ||
1692 | # Prefer explicitly selected file to automatically selected ones. | ||
1693 | if test -n "$CONFIG_SITE"; then | ||
1694 | set x "$CONFIG_SITE" | ||
1695 | elif test "x$prefix" != xNONE; then | ||
1696 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1697 | else | ||
1698 | set x "$ac_default_prefix/share/config.site" \ | ||
1699 | "$ac_default_prefix/etc/config.site" | ||
1700 | fi | ||
1701 | shift | ||
1702 | for ac_site_file | ||
1703 | do | ||
1704 | if test -r "$ac_site_file"; then | ||
1705 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1706 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1707 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1708 | . "$ac_site_file" | ||
1709 | fi | ||
1710 | done | ||
1711 | |||
1712 | if test -r "$cache_file"; then | ||
1713 | # Some versions of bash will fail to source /dev/null (special | ||
1714 | # files actually), so we avoid doing that. | ||
1715 | if test -f "$cache_file"; then | ||
1716 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1717 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1718 | case $cache_file in | ||
1719 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1720 | *) . "./$cache_file";; | ||
1721 | esac | ||
1722 | fi | ||
1723 | else | ||
1724 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1725 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1726 | >$cache_file | ||
1727 | fi | ||
1728 | |||
1729 | # Check that the precious variables saved in the cache have kept the same | ||
1730 | # value. | ||
1731 | ac_cache_corrupted=false | ||
1732 | for ac_var in $ac_precious_vars; do | ||
1733 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1734 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1735 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1736 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1737 | case $ac_old_set,$ac_new_set in | ||
1738 | set,) | ||
1739 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1740 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1741 | ac_cache_corrupted=: ;; | ||
1742 | ,set) | ||
1743 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1744 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1745 | ac_cache_corrupted=: ;; | ||
1746 | ,);; | ||
1747 | *) | ||
1748 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1749 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1750 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1751 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1752 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1753 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1754 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1755 | ac_cache_corrupted=: | ||
1756 | fi;; | ||
1757 | esac | ||
1758 | # Pass precious variables to config.status. | ||
1759 | if test "$ac_new_set" = set; then | ||
1760 | case $ac_new_val in | ||
1761 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1762 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1763 | esac | ||
1764 | case " $ac_configure_args " in | ||
1765 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1766 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1767 | esac | ||
1768 | fi | ||
1769 | done | ||
1770 | if $ac_cache_corrupted; then | ||
1771 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1772 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1773 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1774 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1775 | { (exit 1); exit 1; }; } | ||
1776 | fi | ||
1777 | |||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | ac_ext=c | ||
1803 | ac_cpp='$CPP $CPPFLAGS' | ||
1804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1807 | |||
1808 | |||
1809 | |||
1810 | |||
1811 | |||
1812 | ac_config_headers="$ac_config_headers config.h" | ||
1813 | |||
1814 | ac_ext=c | ||
1815 | ac_cpp='$CPP $CPPFLAGS' | ||
1816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1819 | if test -n "$ac_tool_prefix"; then | ||
1820 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1821 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1824 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1826 | else | ||
1827 | if test -n "$CC"; then | ||
1828 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1829 | else | ||
1830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1831 | for as_dir in $PATH | ||
1832 | do | ||
1833 | IFS=$as_save_IFS | ||
1834 | test -z "$as_dir" && as_dir=. | ||
1835 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1837 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1839 | break 2 | ||
1840 | fi | ||
1841 | done | ||
1842 | done | ||
1843 | IFS=$as_save_IFS | ||
1844 | |||
1845 | fi | ||
1846 | fi | ||
1847 | CC=$ac_cv_prog_CC | ||
1848 | if test -n "$CC"; then | ||
1849 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1850 | echo "${ECHO_T}$CC" >&6; } | ||
1851 | else | ||
1852 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1853 | echo "${ECHO_T}no" >&6; } | ||
1854 | fi | ||
1855 | |||
1856 | |||
1857 | fi | ||
1858 | if test -z "$ac_cv_prog_CC"; then | ||
1859 | ac_ct_CC=$CC | ||
1860 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1861 | set dummy gcc; ac_word=$2 | ||
1862 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1866 | else | ||
1867 | if test -n "$ac_ct_CC"; then | ||
1868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1869 | else | ||
1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1871 | for as_dir in $PATH | ||
1872 | do | ||
1873 | IFS=$as_save_IFS | ||
1874 | test -z "$as_dir" && as_dir=. | ||
1875 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1877 | ac_cv_prog_ac_ct_CC="gcc" | ||
1878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1879 | break 2 | ||
1880 | fi | ||
1881 | done | ||
1882 | done | ||
1883 | IFS=$as_save_IFS | ||
1884 | |||
1885 | fi | ||
1886 | fi | ||
1887 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1888 | if test -n "$ac_ct_CC"; then | ||
1889 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1890 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1891 | else | ||
1892 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1893 | echo "${ECHO_T}no" >&6; } | ||
1894 | fi | ||
1895 | |||
1896 | if test "x$ac_ct_CC" = x; then | ||
1897 | CC="" | ||
1898 | else | ||
1899 | case $cross_compiling:$ac_tool_warned in | ||
1900 | yes:) | ||
1901 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1902 | whose name does not start with the host triplet. If you think this | ||
1903 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1904 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1905 | whose name does not start with the host triplet. If you think this | ||
1906 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1907 | ac_tool_warned=yes ;; | ||
1908 | esac | ||
1909 | CC=$ac_ct_CC | ||
1910 | fi | ||
1911 | else | ||
1912 | CC="$ac_cv_prog_CC" | ||
1913 | fi | ||
1914 | |||
1915 | if test -z "$CC"; then | ||
1916 | if test -n "$ac_tool_prefix"; then | ||
1917 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1918 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1919 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1921 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1923 | else | ||
1924 | if test -n "$CC"; then | ||
1925 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1926 | else | ||
1927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1928 | for as_dir in $PATH | ||
1929 | do | ||
1930 | IFS=$as_save_IFS | ||
1931 | test -z "$as_dir" && as_dir=. | ||
1932 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1934 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1936 | break 2 | ||
1937 | fi | ||
1938 | done | ||
1939 | done | ||
1940 | IFS=$as_save_IFS | ||
1941 | |||
1942 | fi | ||
1943 | fi | ||
1944 | CC=$ac_cv_prog_CC | ||
1945 | if test -n "$CC"; then | ||
1946 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1947 | echo "${ECHO_T}$CC" >&6; } | ||
1948 | else | ||
1949 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1950 | echo "${ECHO_T}no" >&6; } | ||
1951 | fi | ||
1952 | |||
1953 | |||
1954 | fi | ||
1955 | fi | ||
1956 | if test -z "$CC"; then | ||
1957 | # Extract the first word of "cc", so it can be a program name with args. | ||
1958 | set dummy cc; ac_word=$2 | ||
1959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1961 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1963 | else | ||
1964 | if test -n "$CC"; then | ||
1965 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1966 | else | ||
1967 | ac_prog_rejected=no | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1969 | for as_dir in $PATH | ||
1970 | do | ||
1971 | IFS=$as_save_IFS | ||
1972 | test -z "$as_dir" && as_dir=. | ||
1973 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1975 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1976 | ac_prog_rejected=yes | ||
1977 | continue | ||
1978 | fi | ||
1979 | ac_cv_prog_CC="cc" | ||
1980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1981 | break 2 | ||
1982 | fi | ||
1983 | done | ||
1984 | done | ||
1985 | IFS=$as_save_IFS | ||
1986 | |||
1987 | if test $ac_prog_rejected = yes; then | ||
1988 | # We found a bogon in the path, so make sure we never use it. | ||
1989 | set dummy $ac_cv_prog_CC | ||
1990 | shift | ||
1991 | if test $# != 0; then | ||
1992 | # We chose a different compiler from the bogus one. | ||
1993 | # However, it has the same basename, so the bogon will be chosen | ||
1994 | # first if we set CC to just the basename; use the full file name. | ||
1995 | shift | ||
1996 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1997 | fi | ||
1998 | fi | ||
1999 | fi | ||
2000 | fi | ||
2001 | CC=$ac_cv_prog_CC | ||
2002 | if test -n "$CC"; then | ||
2003 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2004 | echo "${ECHO_T}$CC" >&6; } | ||
2005 | else | ||
2006 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2007 | echo "${ECHO_T}no" >&6; } | ||
2008 | fi | ||
2009 | |||
2010 | |||
2011 | fi | ||
2012 | if test -z "$CC"; then | ||
2013 | if test -n "$ac_tool_prefix"; then | ||
2014 | for ac_prog in cl.exe | ||
2015 | do | ||
2016 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2017 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2018 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2020 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2022 | else | ||
2023 | if test -n "$CC"; then | ||
2024 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2025 | else | ||
2026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2027 | for as_dir in $PATH | ||
2028 | do | ||
2029 | IFS=$as_save_IFS | ||
2030 | test -z "$as_dir" && as_dir=. | ||
2031 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2033 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2035 | break 2 | ||
2036 | fi | ||
2037 | done | ||
2038 | done | ||
2039 | IFS=$as_save_IFS | ||
2040 | |||
2041 | fi | ||
2042 | fi | ||
2043 | CC=$ac_cv_prog_CC | ||
2044 | if test -n "$CC"; then | ||
2045 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2046 | echo "${ECHO_T}$CC" >&6; } | ||
2047 | else | ||
2048 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2049 | echo "${ECHO_T}no" >&6; } | ||
2050 | fi | ||
2051 | |||
2052 | |||
2053 | test -n "$CC" && break | ||
2054 | done | ||
2055 | fi | ||
2056 | if test -z "$CC"; then | ||
2057 | ac_ct_CC=$CC | ||
2058 | for ac_prog in cl.exe | ||
2059 | do | ||
2060 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2061 | set dummy $ac_prog; ac_word=$2 | ||
2062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2064 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2066 | else | ||
2067 | if test -n "$ac_ct_CC"; then | ||
2068 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2069 | else | ||
2070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2071 | for as_dir in $PATH | ||
2072 | do | ||
2073 | IFS=$as_save_IFS | ||
2074 | test -z "$as_dir" && as_dir=. | ||
2075 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2077 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2079 | break 2 | ||
2080 | fi | ||
2081 | done | ||
2082 | done | ||
2083 | IFS=$as_save_IFS | ||
2084 | |||
2085 | fi | ||
2086 | fi | ||
2087 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2088 | if test -n "$ac_ct_CC"; then | ||
2089 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2090 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2091 | else | ||
2092 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2093 | echo "${ECHO_T}no" >&6; } | ||
2094 | fi | ||
2095 | |||
2096 | |||
2097 | test -n "$ac_ct_CC" && break | ||
2098 | done | ||
2099 | |||
2100 | if test "x$ac_ct_CC" = x; then | ||
2101 | CC="" | ||
2102 | else | ||
2103 | case $cross_compiling:$ac_tool_warned in | ||
2104 | yes:) | ||
2105 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2106 | whose name does not start with the host triplet. If you think this | ||
2107 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2108 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2109 | whose name does not start with the host triplet. If you think this | ||
2110 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2111 | ac_tool_warned=yes ;; | ||
2112 | esac | ||
2113 | CC=$ac_ct_CC | ||
2114 | fi | ||
2115 | fi | ||
2116 | |||
2117 | fi | ||
2118 | |||
2119 | |||
2120 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2121 | See \`config.log' for more details." >&5 | ||
2122 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2123 | See \`config.log' for more details." >&2;} | ||
2124 | { (exit 1); exit 1; }; } | ||
2125 | |||
2126 | # Provide some information about the compiler. | ||
2127 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2128 | ac_compiler=`set X $ac_compile; echo $2` | ||
2129 | { (ac_try="$ac_compiler --version >&5" | ||
2130 | case "(($ac_try" in | ||
2131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2132 | *) ac_try_echo=$ac_try;; | ||
2133 | esac | ||
2134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2135 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2136 | ac_status=$? | ||
2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2138 | (exit $ac_status); } | ||
2139 | { (ac_try="$ac_compiler -v >&5" | ||
2140 | case "(($ac_try" in | ||
2141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2142 | *) ac_try_echo=$ac_try;; | ||
2143 | esac | ||
2144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2145 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2146 | ac_status=$? | ||
2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2148 | (exit $ac_status); } | ||
2149 | { (ac_try="$ac_compiler -V >&5" | ||
2150 | case "(($ac_try" in | ||
2151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2152 | *) ac_try_echo=$ac_try;; | ||
2153 | esac | ||
2154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2155 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2156 | ac_status=$? | ||
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2158 | (exit $ac_status); } | ||
2159 | |||
2160 | cat >conftest.$ac_ext <<_ACEOF | ||
2161 | /* confdefs.h. */ | ||
2162 | _ACEOF | ||
2163 | cat confdefs.h >>conftest.$ac_ext | ||
2164 | cat >>conftest.$ac_ext <<_ACEOF | ||
2165 | /* end confdefs.h. */ | ||
2166 | |||
2167 | int | ||
2168 | main () | ||
2169 | { | ||
2170 | |||
2171 | ; | ||
2172 | return 0; | ||
2173 | } | ||
2174 | _ACEOF | ||
2175 | ac_clean_files_save=$ac_clean_files | ||
2176 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2177 | # Try to create an executable without -o first, disregard a.out. | ||
2178 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2179 | # of exeext. | ||
2180 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2181 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2182 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2183 | # | ||
2184 | # List of possible output files, starting from the most likely. | ||
2185 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2186 | # only as a last resort. b.out is created by i960 compilers. | ||
2187 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2188 | # | ||
2189 | # The IRIX 6 linker writes into existing files which may not be | ||
2190 | # executable, retaining their permissions. Remove them first so a | ||
2191 | # subsequent execution test works. | ||
2192 | ac_rmfiles= | ||
2193 | for ac_file in $ac_files | ||
2194 | do | ||
2195 | case $ac_file in | ||
2196 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2197 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2198 | esac | ||
2199 | done | ||
2200 | rm -f $ac_rmfiles | ||
2201 | |||
2202 | if { (ac_try="$ac_link_default" | ||
2203 | case "(($ac_try" in | ||
2204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2205 | *) ac_try_echo=$ac_try;; | ||
2206 | esac | ||
2207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2208 | (eval "$ac_link_default") 2>&5 | ||
2209 | ac_status=$? | ||
2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2211 | (exit $ac_status); }; then | ||
2212 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2213 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2214 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2215 | # so that the user can short-circuit this test for compilers unknown to | ||
2216 | # Autoconf. | ||
2217 | for ac_file in $ac_files '' | ||
2218 | do | ||
2219 | test -f "$ac_file" || continue | ||
2220 | case $ac_file in | ||
2221 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2222 | ;; | ||
2223 | [ab].out ) | ||
2224 | # We found the default executable, but exeext='' is most | ||
2225 | # certainly right. | ||
2226 | break;; | ||
2227 | *.* ) | ||
2228 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2229 | then :; else | ||
2230 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2231 | fi | ||
2232 | # We set ac_cv_exeext here because the later test for it is not | ||
2233 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2234 | # argument, so we may need to know it at that point already. | ||
2235 | # Even if this section looks crufty: it has the advantage of | ||
2236 | # actually working. | ||
2237 | break;; | ||
2238 | * ) | ||
2239 | break;; | ||
2240 | esac | ||
2241 | done | ||
2242 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2243 | |||
2244 | else | ||
2245 | ac_file='' | ||
2246 | fi | ||
2247 | |||
2248 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2249 | echo "${ECHO_T}$ac_file" >&6; } | ||
2250 | if test -z "$ac_file"; then | ||
2251 | echo "$as_me: failed program was:" >&5 | ||
2252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2253 | |||
2254 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2255 | See \`config.log' for more details." >&5 | ||
2256 | echo "$as_me: error: C compiler cannot create executables | ||
2257 | See \`config.log' for more details." >&2;} | ||
2258 | { (exit 77); exit 77; }; } | ||
2259 | fi | ||
2260 | |||
2261 | ac_exeext=$ac_cv_exeext | ||
2262 | |||
2263 | # Check that the compiler produces executables we can run. If not, either | ||
2264 | # the compiler is broken, or we cross compile. | ||
2265 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2266 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2267 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2268 | # If not cross compiling, check that we can run a simple program. | ||
2269 | if test "$cross_compiling" != yes; then | ||
2270 | if { ac_try='./$ac_file' | ||
2271 | { (case "(($ac_try" in | ||
2272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2273 | *) ac_try_echo=$ac_try;; | ||
2274 | esac | ||
2275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2276 | (eval "$ac_try") 2>&5 | ||
2277 | ac_status=$? | ||
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2279 | (exit $ac_status); }; }; then | ||
2280 | cross_compiling=no | ||
2281 | else | ||
2282 | if test "$cross_compiling" = maybe; then | ||
2283 | cross_compiling=yes | ||
2284 | else | ||
2285 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2286 | If you meant to cross compile, use \`--host'. | ||
2287 | See \`config.log' for more details." >&5 | ||
2288 | echo "$as_me: error: cannot run C compiled programs. | ||
2289 | If you meant to cross compile, use \`--host'. | ||
2290 | See \`config.log' for more details." >&2;} | ||
2291 | { (exit 1); exit 1; }; } | ||
2292 | fi | ||
2293 | fi | ||
2294 | fi | ||
2295 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2296 | echo "${ECHO_T}yes" >&6; } | ||
2297 | |||
2298 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2299 | ac_clean_files=$ac_clean_files_save | ||
2300 | # Check that the compiler produces executables we can run. If not, either | ||
2301 | # the compiler is broken, or we cross compile. | ||
2302 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2303 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2304 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2305 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2306 | |||
2307 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2308 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2309 | if { (ac_try="$ac_link" | ||
2310 | case "(($ac_try" in | ||
2311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2312 | *) ac_try_echo=$ac_try;; | ||
2313 | esac | ||
2314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2315 | (eval "$ac_link") 2>&5 | ||
2316 | ac_status=$? | ||
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2318 | (exit $ac_status); }; then | ||
2319 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2320 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2321 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2322 | # `rm'. | ||
2323 | for ac_file in conftest.exe conftest conftest.*; do | ||
2324 | test -f "$ac_file" || continue | ||
2325 | case $ac_file in | ||
2326 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2327 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2328 | break;; | ||
2329 | * ) break;; | ||
2330 | esac | ||
2331 | done | ||
2332 | else | ||
2333 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2334 | See \`config.log' for more details." >&5 | ||
2335 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2336 | See \`config.log' for more details." >&2;} | ||
2337 | { (exit 1); exit 1; }; } | ||
2338 | fi | ||
2339 | |||
2340 | rm -f conftest$ac_cv_exeext | ||
2341 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2342 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2343 | |||
2344 | rm -f conftest.$ac_ext | ||
2345 | EXEEXT=$ac_cv_exeext | ||
2346 | ac_exeext=$EXEEXT | ||
2347 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2348 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2349 | if test "${ac_cv_objext+set}" = set; then | ||
2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2351 | else | ||
2352 | cat >conftest.$ac_ext <<_ACEOF | ||
2353 | /* confdefs.h. */ | ||
2354 | _ACEOF | ||
2355 | cat confdefs.h >>conftest.$ac_ext | ||
2356 | cat >>conftest.$ac_ext <<_ACEOF | ||
2357 | /* end confdefs.h. */ | ||
2358 | |||
2359 | int | ||
2360 | main () | ||
2361 | { | ||
2362 | |||
2363 | ; | ||
2364 | return 0; | ||
2365 | } | ||
2366 | _ACEOF | ||
2367 | rm -f conftest.o conftest.obj | ||
2368 | if { (ac_try="$ac_compile" | ||
2369 | case "(($ac_try" in | ||
2370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2371 | *) ac_try_echo=$ac_try;; | ||
2372 | esac | ||
2373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2374 | (eval "$ac_compile") 2>&5 | ||
2375 | ac_status=$? | ||
2376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2377 | (exit $ac_status); }; then | ||
2378 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2379 | test -f "$ac_file" || continue; | ||
2380 | case $ac_file in | ||
2381 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2382 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2383 | break;; | ||
2384 | esac | ||
2385 | done | ||
2386 | else | ||
2387 | echo "$as_me: failed program was:" >&5 | ||
2388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2389 | |||
2390 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2391 | See \`config.log' for more details." >&5 | ||
2392 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2393 | See \`config.log' for more details." >&2;} | ||
2394 | { (exit 1); exit 1; }; } | ||
2395 | fi | ||
2396 | |||
2397 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2398 | fi | ||
2399 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2400 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2401 | OBJEXT=$ac_cv_objext | ||
2402 | ac_objext=$OBJEXT | ||
2403 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2404 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2405 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2407 | else | ||
2408 | cat >conftest.$ac_ext <<_ACEOF | ||
2409 | /* confdefs.h. */ | ||
2410 | _ACEOF | ||
2411 | cat confdefs.h >>conftest.$ac_ext | ||
2412 | cat >>conftest.$ac_ext <<_ACEOF | ||
2413 | /* end confdefs.h. */ | ||
2414 | |||
2415 | int | ||
2416 | main () | ||
2417 | { | ||
2418 | #ifndef __GNUC__ | ||
2419 | choke me | ||
2420 | #endif | ||
2421 | |||
2422 | ; | ||
2423 | return 0; | ||
2424 | } | ||
2425 | _ACEOF | ||
2426 | rm -f conftest.$ac_objext | ||
2427 | if { (ac_try="$ac_compile" | ||
2428 | case "(($ac_try" in | ||
2429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2430 | *) ac_try_echo=$ac_try;; | ||
2431 | esac | ||
2432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2433 | (eval "$ac_compile") 2>conftest.er1 | ||
2434 | ac_status=$? | ||
2435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2436 | rm -f conftest.er1 | ||
2437 | cat conftest.err >&5 | ||
2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2439 | (exit $ac_status); } && { | ||
2440 | test -z "$ac_c_werror_flag" || | ||
2441 | test ! -s conftest.err | ||
2442 | } && test -s conftest.$ac_objext; then | ||
2443 | ac_compiler_gnu=yes | ||
2444 | else | ||
2445 | echo "$as_me: failed program was:" >&5 | ||
2446 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2447 | |||
2448 | ac_compiler_gnu=no | ||
2449 | fi | ||
2450 | |||
2451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2452 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2453 | |||
2454 | fi | ||
2455 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2456 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2457 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2458 | ac_test_CFLAGS=${CFLAGS+set} | ||
2459 | ac_save_CFLAGS=$CFLAGS | ||
2460 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2461 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2462 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2464 | else | ||
2465 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2466 | ac_c_werror_flag=yes | ||
2467 | ac_cv_prog_cc_g=no | ||
2468 | CFLAGS="-g" | ||
2469 | cat >conftest.$ac_ext <<_ACEOF | ||
2470 | /* confdefs.h. */ | ||
2471 | _ACEOF | ||
2472 | cat confdefs.h >>conftest.$ac_ext | ||
2473 | cat >>conftest.$ac_ext <<_ACEOF | ||
2474 | /* end confdefs.h. */ | ||
2475 | |||
2476 | int | ||
2477 | main () | ||
2478 | { | ||
2479 | |||
2480 | ; | ||
2481 | return 0; | ||
2482 | } | ||
2483 | _ACEOF | ||
2484 | rm -f conftest.$ac_objext | ||
2485 | if { (ac_try="$ac_compile" | ||
2486 | case "(($ac_try" in | ||
2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2488 | *) ac_try_echo=$ac_try;; | ||
2489 | esac | ||
2490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2491 | (eval "$ac_compile") 2>conftest.er1 | ||
2492 | ac_status=$? | ||
2493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2494 | rm -f conftest.er1 | ||
2495 | cat conftest.err >&5 | ||
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2497 | (exit $ac_status); } && { | ||
2498 | test -z "$ac_c_werror_flag" || | ||
2499 | test ! -s conftest.err | ||
2500 | } && test -s conftest.$ac_objext; then | ||
2501 | ac_cv_prog_cc_g=yes | ||
2502 | else | ||
2503 | echo "$as_me: failed program was:" >&5 | ||
2504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2505 | |||
2506 | CFLAGS="" | ||
2507 | cat >conftest.$ac_ext <<_ACEOF | ||
2508 | /* confdefs.h. */ | ||
2509 | _ACEOF | ||
2510 | cat confdefs.h >>conftest.$ac_ext | ||
2511 | cat >>conftest.$ac_ext <<_ACEOF | ||
2512 | /* end confdefs.h. */ | ||
2513 | |||
2514 | int | ||
2515 | main () | ||
2516 | { | ||
2517 | |||
2518 | ; | ||
2519 | return 0; | ||
2520 | } | ||
2521 | _ACEOF | ||
2522 | rm -f conftest.$ac_objext | ||
2523 | if { (ac_try="$ac_compile" | ||
2524 | case "(($ac_try" in | ||
2525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2526 | *) ac_try_echo=$ac_try;; | ||
2527 | esac | ||
2528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2529 | (eval "$ac_compile") 2>conftest.er1 | ||
2530 | ac_status=$? | ||
2531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2532 | rm -f conftest.er1 | ||
2533 | cat conftest.err >&5 | ||
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2535 | (exit $ac_status); } && { | ||
2536 | test -z "$ac_c_werror_flag" || | ||
2537 | test ! -s conftest.err | ||
2538 | } && test -s conftest.$ac_objext; then | ||
2539 | : | ||
2540 | else | ||
2541 | echo "$as_me: failed program was:" >&5 | ||
2542 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2543 | |||
2544 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2545 | CFLAGS="-g" | ||
2546 | cat >conftest.$ac_ext <<_ACEOF | ||
2547 | /* confdefs.h. */ | ||
2548 | _ACEOF | ||
2549 | cat confdefs.h >>conftest.$ac_ext | ||
2550 | cat >>conftest.$ac_ext <<_ACEOF | ||
2551 | /* end confdefs.h. */ | ||
2552 | |||
2553 | int | ||
2554 | main () | ||
2555 | { | ||
2556 | |||
2557 | ; | ||
2558 | return 0; | ||
2559 | } | ||
2560 | _ACEOF | ||
2561 | rm -f conftest.$ac_objext | ||
2562 | if { (ac_try="$ac_compile" | ||
2563 | case "(($ac_try" in | ||
2564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2565 | *) ac_try_echo=$ac_try;; | ||
2566 | esac | ||
2567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2568 | (eval "$ac_compile") 2>conftest.er1 | ||
2569 | ac_status=$? | ||
2570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2571 | rm -f conftest.er1 | ||
2572 | cat conftest.err >&5 | ||
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2574 | (exit $ac_status); } && { | ||
2575 | test -z "$ac_c_werror_flag" || | ||
2576 | test ! -s conftest.err | ||
2577 | } && test -s conftest.$ac_objext; then | ||
2578 | ac_cv_prog_cc_g=yes | ||
2579 | else | ||
2580 | echo "$as_me: failed program was:" >&5 | ||
2581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2582 | |||
2583 | |||
2584 | fi | ||
2585 | |||
2586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2587 | fi | ||
2588 | |||
2589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2590 | fi | ||
2591 | |||
2592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2593 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2594 | fi | ||
2595 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2596 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2597 | if test "$ac_test_CFLAGS" = set; then | ||
2598 | CFLAGS=$ac_save_CFLAGS | ||
2599 | elif test $ac_cv_prog_cc_g = yes; then | ||
2600 | if test "$GCC" = yes; then | ||
2601 | CFLAGS="-g -O2" | ||
2602 | else | ||
2603 | CFLAGS="-g" | ||
2604 | fi | ||
2605 | else | ||
2606 | if test "$GCC" = yes; then | ||
2607 | CFLAGS="-O2" | ||
2608 | else | ||
2609 | CFLAGS= | ||
2610 | fi | ||
2611 | fi | ||
2612 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2613 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2614 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2616 | else | ||
2617 | ac_cv_prog_cc_c89=no | ||
2618 | ac_save_CC=$CC | ||
2619 | cat >conftest.$ac_ext <<_ACEOF | ||
2620 | /* confdefs.h. */ | ||
2621 | _ACEOF | ||
2622 | cat confdefs.h >>conftest.$ac_ext | ||
2623 | cat >>conftest.$ac_ext <<_ACEOF | ||
2624 | /* end confdefs.h. */ | ||
2625 | #include <stdarg.h> | ||
2626 | #include <stdio.h> | ||
2627 | #include <sys/types.h> | ||
2628 | #include <sys/stat.h> | ||
2629 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2630 | struct buf { int x; }; | ||
2631 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2632 | static char *e (p, i) | ||
2633 | char **p; | ||
2634 | int i; | ||
2635 | { | ||
2636 | return p[i]; | ||
2637 | } | ||
2638 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2639 | { | ||
2640 | char *s; | ||
2641 | va_list v; | ||
2642 | va_start (v,p); | ||
2643 | s = g (p, va_arg (v,int)); | ||
2644 | va_end (v); | ||
2645 | return s; | ||
2646 | } | ||
2647 | |||
2648 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2649 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2650 | These don't provoke an error unfortunately, instead are silently treated | ||
2651 | as 'x'. The following induces an error, until -std is added to get | ||
2652 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2653 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2654 | that's true only with -std. */ | ||
2655 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2656 | |||
2657 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2658 | inside strings and character constants. */ | ||
2659 | #define FOO(x) 'x' | ||
2660 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2661 | |||
2662 | int test (int i, double x); | ||
2663 | struct s1 {int (*f) (int a);}; | ||
2664 | struct s2 {int (*f) (double a);}; | ||
2665 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2666 | int argc; | ||
2667 | char **argv; | ||
2668 | int | ||
2669 | main () | ||
2670 | { | ||
2671 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2672 | ; | ||
2673 | return 0; | ||
2674 | } | ||
2675 | _ACEOF | ||
2676 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2677 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2678 | do | ||
2679 | CC="$ac_save_CC $ac_arg" | ||
2680 | rm -f conftest.$ac_objext | ||
2681 | if { (ac_try="$ac_compile" | ||
2682 | case "(($ac_try" in | ||
2683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2684 | *) ac_try_echo=$ac_try;; | ||
2685 | esac | ||
2686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2687 | (eval "$ac_compile") 2>conftest.er1 | ||
2688 | ac_status=$? | ||
2689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2690 | rm -f conftest.er1 | ||
2691 | cat conftest.err >&5 | ||
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2693 | (exit $ac_status); } && { | ||
2694 | test -z "$ac_c_werror_flag" || | ||
2695 | test ! -s conftest.err | ||
2696 | } && test -s conftest.$ac_objext; then | ||
2697 | ac_cv_prog_cc_c89=$ac_arg | ||
2698 | else | ||
2699 | echo "$as_me: failed program was:" >&5 | ||
2700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2701 | |||
2702 | |||
2703 | fi | ||
2704 | |||
2705 | rm -f core conftest.err conftest.$ac_objext | ||
2706 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2707 | done | ||
2708 | rm -f conftest.$ac_ext | ||
2709 | CC=$ac_save_CC | ||
2710 | |||
2711 | fi | ||
2712 | # AC_CACHE_VAL | ||
2713 | case "x$ac_cv_prog_cc_c89" in | ||
2714 | x) | ||
2715 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2716 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2717 | xno) | ||
2718 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2719 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2720 | *) | ||
2721 | CC="$CC $ac_cv_prog_cc_c89" | ||
2722 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2723 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2724 | esac | ||
2725 | |||
2726 | |||
2727 | ac_ext=c | ||
2728 | ac_cpp='$CPP $CPPFLAGS' | ||
2729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2732 | |||
2733 | ac_aux_dir= | ||
2734 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2735 | if test -f "$ac_dir/install-sh"; then | ||
2736 | ac_aux_dir=$ac_dir | ||
2737 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2738 | break | ||
2739 | elif test -f "$ac_dir/install.sh"; then | ||
2740 | ac_aux_dir=$ac_dir | ||
2741 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2742 | break | ||
2743 | elif test -f "$ac_dir/shtool"; then | ||
2744 | ac_aux_dir=$ac_dir | ||
2745 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2746 | break | ||
2747 | fi | ||
2748 | done | ||
2749 | if test -z "$ac_aux_dir"; then | ||
2750 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2751 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2752 | { (exit 1); exit 1; }; } | ||
2753 | fi | ||
2754 | |||
2755 | # These three variables are undocumented and unsupported, | ||
2756 | # and are intended to be withdrawn in a future Autoconf release. | ||
2757 | # They can cause serious problems if a builder's source tree is in a directory | ||
2758 | # whose full name contains unusual characters. | ||
2759 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2760 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2761 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2762 | |||
2763 | |||
2764 | # Make sure we can run config.sub. | ||
2765 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2766 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2767 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2768 | { (exit 1); exit 1; }; } | ||
2769 | |||
2770 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2771 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2772 | if test "${ac_cv_build+set}" = set; then | ||
2773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2774 | else | ||
2775 | ac_build_alias=$build_alias | ||
2776 | test "x$ac_build_alias" = x && | ||
2777 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2778 | test "x$ac_build_alias" = x && | ||
2779 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2780 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2781 | { (exit 1); exit 1; }; } | ||
2782 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2783 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2784 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2785 | { (exit 1); exit 1; }; } | ||
2786 | |||
2787 | fi | ||
2788 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2789 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2790 | case $ac_cv_build in | ||
2791 | *-*-*) ;; | ||
2792 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2793 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2794 | { (exit 1); exit 1; }; };; | ||
2795 | esac | ||
2796 | build=$ac_cv_build | ||
2797 | ac_save_IFS=$IFS; IFS='-' | ||
2798 | set x $ac_cv_build | ||
2799 | shift | ||
2800 | build_cpu=$1 | ||
2801 | build_vendor=$2 | ||
2802 | shift; shift | ||
2803 | # Remember, the first character of IFS is used to create $*, | ||
2804 | # except with old shells: | ||
2805 | build_os=$* | ||
2806 | IFS=$ac_save_IFS | ||
2807 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2808 | |||
2809 | |||
2810 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2811 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2812 | if test "${ac_cv_host+set}" = set; then | ||
2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2814 | else | ||
2815 | if test "x$host_alias" = x; then | ||
2816 | ac_cv_host=$ac_cv_build | ||
2817 | else | ||
2818 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2819 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2820 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2821 | { (exit 1); exit 1; }; } | ||
2822 | fi | ||
2823 | |||
2824 | fi | ||
2825 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2826 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2827 | case $ac_cv_host in | ||
2828 | *-*-*) ;; | ||
2829 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2830 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2831 | { (exit 1); exit 1; }; };; | ||
2832 | esac | ||
2833 | host=$ac_cv_host | ||
2834 | ac_save_IFS=$IFS; IFS='-' | ||
2835 | set x $ac_cv_host | ||
2836 | shift | ||
2837 | host_cpu=$1 | ||
2838 | host_vendor=$2 | ||
2839 | shift; shift | ||
2840 | # Remember, the first character of IFS is used to create $*, | ||
2841 | # except with old shells: | ||
2842 | host_os=$* | ||
2843 | IFS=$ac_save_IFS | ||
2844 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2845 | |||
2846 | |||
2847 | |||
2848 | ac_ext=c | ||
2849 | ac_cpp='$CPP $CPPFLAGS' | ||
2850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2853 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2854 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2855 | # On Suns, sometimes $CPP names a directory. | ||
2856 | if test -n "$CPP" && test -d "$CPP"; then | ||
2857 | CPP= | ||
2858 | fi | ||
2859 | if test -z "$CPP"; then | ||
2860 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2862 | else | ||
2863 | # Double quotes because CPP needs to be expanded | ||
2864 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2865 | do | ||
2866 | ac_preproc_ok=false | ||
2867 | for ac_c_preproc_warn_flag in '' yes | ||
2868 | do | ||
2869 | # Use a header file that comes with gcc, so configuring glibc | ||
2870 | # with a fresh cross-compiler works. | ||
2871 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2872 | # <limits.h> exists even on freestanding compilers. | ||
2873 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2874 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2875 | cat >conftest.$ac_ext <<_ACEOF | ||
2876 | /* confdefs.h. */ | ||
2877 | _ACEOF | ||
2878 | cat confdefs.h >>conftest.$ac_ext | ||
2879 | cat >>conftest.$ac_ext <<_ACEOF | ||
2880 | /* end confdefs.h. */ | ||
2881 | #ifdef __STDC__ | ||
2882 | # include <limits.h> | ||
2883 | #else | ||
2884 | # include <assert.h> | ||
2885 | #endif | ||
2886 | Syntax error | ||
2887 | _ACEOF | ||
2888 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2889 | case "(($ac_try" in | ||
2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2891 | *) ac_try_echo=$ac_try;; | ||
2892 | esac | ||
2893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2894 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2895 | ac_status=$? | ||
2896 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2897 | rm -f conftest.er1 | ||
2898 | cat conftest.err >&5 | ||
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2900 | (exit $ac_status); } >/dev/null && { | ||
2901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2902 | test ! -s conftest.err | ||
2903 | }; then | ||
2904 | : | ||
2905 | else | ||
2906 | echo "$as_me: failed program was:" >&5 | ||
2907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2908 | |||
2909 | # Broken: fails on valid input. | ||
2910 | continue | ||
2911 | fi | ||
2912 | |||
2913 | rm -f conftest.err conftest.$ac_ext | ||
2914 | |||
2915 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2916 | # can be detected and how. | ||
2917 | cat >conftest.$ac_ext <<_ACEOF | ||
2918 | /* confdefs.h. */ | ||
2919 | _ACEOF | ||
2920 | cat confdefs.h >>conftest.$ac_ext | ||
2921 | cat >>conftest.$ac_ext <<_ACEOF | ||
2922 | /* end confdefs.h. */ | ||
2923 | #include <ac_nonexistent.h> | ||
2924 | _ACEOF | ||
2925 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2926 | case "(($ac_try" in | ||
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2928 | *) ac_try_echo=$ac_try;; | ||
2929 | esac | ||
2930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2931 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2932 | ac_status=$? | ||
2933 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2934 | rm -f conftest.er1 | ||
2935 | cat conftest.err >&5 | ||
2936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2937 | (exit $ac_status); } >/dev/null && { | ||
2938 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2939 | test ! -s conftest.err | ||
2940 | }; then | ||
2941 | # Broken: success on invalid input. | ||
2942 | continue | ||
2943 | else | ||
2944 | echo "$as_me: failed program was:" >&5 | ||
2945 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2946 | |||
2947 | # Passes both tests. | ||
2948 | ac_preproc_ok=: | ||
2949 | break | ||
2950 | fi | ||
2951 | |||
2952 | rm -f conftest.err conftest.$ac_ext | ||
2953 | |||
2954 | done | ||
2955 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2956 | rm -f conftest.err conftest.$ac_ext | ||
2957 | if $ac_preproc_ok; then | ||
2958 | break | ||
2959 | fi | ||
2960 | |||
2961 | done | ||
2962 | ac_cv_prog_CPP=$CPP | ||
2963 | |||
2964 | fi | ||
2965 | CPP=$ac_cv_prog_CPP | ||
2966 | else | ||
2967 | ac_cv_prog_CPP=$CPP | ||
2968 | fi | ||
2969 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2970 | echo "${ECHO_T}$CPP" >&6; } | ||
2971 | ac_preproc_ok=false | ||
2972 | for ac_c_preproc_warn_flag in '' yes | ||
2973 | do | ||
2974 | # Use a header file that comes with gcc, so configuring glibc | ||
2975 | # with a fresh cross-compiler works. | ||
2976 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2977 | # <limits.h> exists even on freestanding compilers. | ||
2978 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2979 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2980 | cat >conftest.$ac_ext <<_ACEOF | ||
2981 | /* confdefs.h. */ | ||
2982 | _ACEOF | ||
2983 | cat confdefs.h >>conftest.$ac_ext | ||
2984 | cat >>conftest.$ac_ext <<_ACEOF | ||
2985 | /* end confdefs.h. */ | ||
2986 | #ifdef __STDC__ | ||
2987 | # include <limits.h> | ||
2988 | #else | ||
2989 | # include <assert.h> | ||
2990 | #endif | ||
2991 | Syntax error | ||
2992 | _ACEOF | ||
2993 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2994 | case "(($ac_try" in | ||
2995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2996 | *) ac_try_echo=$ac_try;; | ||
2997 | esac | ||
2998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2999 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3000 | ac_status=$? | ||
3001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3002 | rm -f conftest.er1 | ||
3003 | cat conftest.err >&5 | ||
3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3005 | (exit $ac_status); } >/dev/null && { | ||
3006 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3007 | test ! -s conftest.err | ||
3008 | }; then | ||
3009 | : | ||
3010 | else | ||
3011 | echo "$as_me: failed program was:" >&5 | ||
3012 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3013 | |||
3014 | # Broken: fails on valid input. | ||
3015 | continue | ||
3016 | fi | ||
3017 | |||
3018 | rm -f conftest.err conftest.$ac_ext | ||
3019 | |||
3020 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3021 | # can be detected and how. | ||
3022 | cat >conftest.$ac_ext <<_ACEOF | ||
3023 | /* confdefs.h. */ | ||
3024 | _ACEOF | ||
3025 | cat confdefs.h >>conftest.$ac_ext | ||
3026 | cat >>conftest.$ac_ext <<_ACEOF | ||
3027 | /* end confdefs.h. */ | ||
3028 | #include <ac_nonexistent.h> | ||
3029 | _ACEOF | ||
3030 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3031 | case "(($ac_try" in | ||
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3033 | *) ac_try_echo=$ac_try;; | ||
3034 | esac | ||
3035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3036 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3037 | ac_status=$? | ||
3038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3039 | rm -f conftest.er1 | ||
3040 | cat conftest.err >&5 | ||
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3042 | (exit $ac_status); } >/dev/null && { | ||
3043 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3044 | test ! -s conftest.err | ||
3045 | }; then | ||
3046 | # Broken: success on invalid input. | ||
3047 | continue | ||
3048 | else | ||
3049 | echo "$as_me: failed program was:" >&5 | ||
3050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3051 | |||
3052 | # Passes both tests. | ||
3053 | ac_preproc_ok=: | ||
3054 | break | ||
3055 | fi | ||
3056 | |||
3057 | rm -f conftest.err conftest.$ac_ext | ||
3058 | |||
3059 | done | ||
3060 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3061 | rm -f conftest.err conftest.$ac_ext | ||
3062 | if $ac_preproc_ok; then | ||
3063 | : | ||
3064 | else | ||
3065 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3066 | See \`config.log' for more details." >&5 | ||
3067 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3068 | See \`config.log' for more details." >&2;} | ||
3069 | { (exit 1); exit 1; }; } | ||
3070 | fi | ||
3071 | |||
3072 | ac_ext=c | ||
3073 | ac_cpp='$CPP $CPPFLAGS' | ||
3074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3077 | |||
3078 | |||
3079 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3080 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3081 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3083 | else | ||
3084 | # Extract the first word of "grep ggrep" to use in msg output | ||
3085 | if test -z "$GREP"; then | ||
3086 | set dummy grep ggrep; ac_prog_name=$2 | ||
3087 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3089 | else | ||
3090 | ac_path_GREP_found=false | ||
3091 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3093 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3094 | do | ||
3095 | IFS=$as_save_IFS | ||
3096 | test -z "$as_dir" && as_dir=. | ||
3097 | for ac_prog in grep ggrep; do | ||
3098 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3099 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3100 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3101 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3102 | # Check for GNU $ac_path_GREP | ||
3103 | case `"$ac_path_GREP" --version 2>&1` in | ||
3104 | *GNU*) | ||
3105 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3106 | *) | ||
3107 | ac_count=0 | ||
3108 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3109 | while : | ||
3110 | do | ||
3111 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3112 | mv "conftest.tmp" "conftest.in" | ||
3113 | cp "conftest.in" "conftest.nl" | ||
3114 | echo 'GREP' >> "conftest.nl" | ||
3115 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3116 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3117 | ac_count=`expr $ac_count + 1` | ||
3118 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3119 | # Best one so far, save it but keep looking for a better one | ||
3120 | ac_cv_path_GREP="$ac_path_GREP" | ||
3121 | ac_path_GREP_max=$ac_count | ||
3122 | fi | ||
3123 | # 10*(2^10) chars as input seems more than enough | ||
3124 | test $ac_count -gt 10 && break | ||
3125 | done | ||
3126 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3127 | esac | ||
3128 | |||
3129 | |||
3130 | $ac_path_GREP_found && break 3 | ||
3131 | done | ||
3132 | done | ||
3133 | |||
3134 | done | ||
3135 | IFS=$as_save_IFS | ||
3136 | |||
3137 | |||
3138 | fi | ||
3139 | |||
3140 | GREP="$ac_cv_path_GREP" | ||
3141 | if test -z "$GREP"; then | ||
3142 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3143 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3144 | { (exit 1); exit 1; }; } | ||
3145 | fi | ||
3146 | |||
3147 | else | ||
3148 | ac_cv_path_GREP=$GREP | ||
3149 | fi | ||
3150 | |||
3151 | |||
3152 | fi | ||
3153 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3154 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3155 | GREP="$ac_cv_path_GREP" | ||
3156 | |||
3157 | |||
3158 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3159 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3160 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3162 | else | ||
3163 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3164 | then ac_cv_path_EGREP="$GREP -E" | ||
3165 | else | ||
3166 | # Extract the first word of "egrep" to use in msg output | ||
3167 | if test -z "$EGREP"; then | ||
3168 | set dummy egrep; ac_prog_name=$2 | ||
3169 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3171 | else | ||
3172 | ac_path_EGREP_found=false | ||
3173 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3176 | do | ||
3177 | IFS=$as_save_IFS | ||
3178 | test -z "$as_dir" && as_dir=. | ||
3179 | for ac_prog in egrep; do | ||
3180 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3181 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3182 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3183 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3184 | # Check for GNU $ac_path_EGREP | ||
3185 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3186 | *GNU*) | ||
3187 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3188 | *) | ||
3189 | ac_count=0 | ||
3190 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3191 | while : | ||
3192 | do | ||
3193 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3194 | mv "conftest.tmp" "conftest.in" | ||
3195 | cp "conftest.in" "conftest.nl" | ||
3196 | echo 'EGREP' >> "conftest.nl" | ||
3197 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3199 | ac_count=`expr $ac_count + 1` | ||
3200 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3201 | # Best one so far, save it but keep looking for a better one | ||
3202 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3203 | ac_path_EGREP_max=$ac_count | ||
3204 | fi | ||
3205 | # 10*(2^10) chars as input seems more than enough | ||
3206 | test $ac_count -gt 10 && break | ||
3207 | done | ||
3208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3209 | esac | ||
3210 | |||
3211 | |||
3212 | $ac_path_EGREP_found && break 3 | ||
3213 | done | ||
3214 | done | ||
3215 | |||
3216 | done | ||
3217 | IFS=$as_save_IFS | ||
3218 | |||
3219 | |||
3220 | fi | ||
3221 | |||
3222 | EGREP="$ac_cv_path_EGREP" | ||
3223 | if test -z "$EGREP"; then | ||
3224 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3225 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3226 | { (exit 1); exit 1; }; } | ||
3227 | fi | ||
3228 | |||
3229 | else | ||
3230 | ac_cv_path_EGREP=$EGREP | ||
3231 | fi | ||
3232 | |||
3233 | |||
3234 | fi | ||
3235 | fi | ||
3236 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3237 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3238 | EGREP="$ac_cv_path_EGREP" | ||
3239 | |||
3240 | |||
3241 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3242 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3243 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3245 | else | ||
3246 | cat >conftest.$ac_ext <<_ACEOF | ||
3247 | /* confdefs.h. */ | ||
3248 | _ACEOF | ||
3249 | cat confdefs.h >>conftest.$ac_ext | ||
3250 | cat >>conftest.$ac_ext <<_ACEOF | ||
3251 | /* end confdefs.h. */ | ||
3252 | #include <stdlib.h> | ||
3253 | #include <stdarg.h> | ||
3254 | #include <string.h> | ||
3255 | #include <float.h> | ||
3256 | |||
3257 | int | ||
3258 | main () | ||
3259 | { | ||
3260 | |||
3261 | ; | ||
3262 | return 0; | ||
3263 | } | ||
3264 | _ACEOF | ||
3265 | rm -f conftest.$ac_objext | ||
3266 | if { (ac_try="$ac_compile" | ||
3267 | case "(($ac_try" in | ||
3268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3269 | *) ac_try_echo=$ac_try;; | ||
3270 | esac | ||
3271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3272 | (eval "$ac_compile") 2>conftest.er1 | ||
3273 | ac_status=$? | ||
3274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3275 | rm -f conftest.er1 | ||
3276 | cat conftest.err >&5 | ||
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3278 | (exit $ac_status); } && { | ||
3279 | test -z "$ac_c_werror_flag" || | ||
3280 | test ! -s conftest.err | ||
3281 | } && test -s conftest.$ac_objext; then | ||
3282 | ac_cv_header_stdc=yes | ||
3283 | else | ||
3284 | echo "$as_me: failed program was:" >&5 | ||
3285 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3286 | |||
3287 | ac_cv_header_stdc=no | ||
3288 | fi | ||
3289 | |||
3290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3291 | |||
3292 | if test $ac_cv_header_stdc = yes; then | ||
3293 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3294 | cat >conftest.$ac_ext <<_ACEOF | ||
3295 | /* confdefs.h. */ | ||
3296 | _ACEOF | ||
3297 | cat confdefs.h >>conftest.$ac_ext | ||
3298 | cat >>conftest.$ac_ext <<_ACEOF | ||
3299 | /* end confdefs.h. */ | ||
3300 | #include <string.h> | ||
3301 | |||
3302 | _ACEOF | ||
3303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3304 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3305 | : | ||
3306 | else | ||
3307 | ac_cv_header_stdc=no | ||
3308 | fi | ||
3309 | rm -f conftest* | ||
3310 | |||
3311 | fi | ||
3312 | |||
3313 | if test $ac_cv_header_stdc = yes; then | ||
3314 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3315 | cat >conftest.$ac_ext <<_ACEOF | ||
3316 | /* confdefs.h. */ | ||
3317 | _ACEOF | ||
3318 | cat confdefs.h >>conftest.$ac_ext | ||
3319 | cat >>conftest.$ac_ext <<_ACEOF | ||
3320 | /* end confdefs.h. */ | ||
3321 | #include <stdlib.h> | ||
3322 | |||
3323 | _ACEOF | ||
3324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3325 | $EGREP "free" >/dev/null 2>&1; then | ||
3326 | : | ||
3327 | else | ||
3328 | ac_cv_header_stdc=no | ||
3329 | fi | ||
3330 | rm -f conftest* | ||
3331 | |||
3332 | fi | ||
3333 | |||
3334 | if test $ac_cv_header_stdc = yes; then | ||
3335 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3336 | if test "$cross_compiling" = yes; then | ||
3337 | : | ||
3338 | else | ||
3339 | cat >conftest.$ac_ext <<_ACEOF | ||
3340 | /* confdefs.h. */ | ||
3341 | _ACEOF | ||
3342 | cat confdefs.h >>conftest.$ac_ext | ||
3343 | cat >>conftest.$ac_ext <<_ACEOF | ||
3344 | /* end confdefs.h. */ | ||
3345 | #include <ctype.h> | ||
3346 | #include <stdlib.h> | ||
3347 | #if ((' ' & 0x0FF) == 0x020) | ||
3348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3350 | #else | ||
3351 | # define ISLOWER(c) \ | ||
3352 | (('a' <= (c) && (c) <= 'i') \ | ||
3353 | || ('j' <= (c) && (c) <= 'r') \ | ||
3354 | || ('s' <= (c) && (c) <= 'z')) | ||
3355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3356 | #endif | ||
3357 | |||
3358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3359 | int | ||
3360 | main () | ||
3361 | { | ||
3362 | int i; | ||
3363 | for (i = 0; i < 256; i++) | ||
3364 | if (XOR (islower (i), ISLOWER (i)) | ||
3365 | || toupper (i) != TOUPPER (i)) | ||
3366 | return 2; | ||
3367 | return 0; | ||
3368 | } | ||
3369 | _ACEOF | ||
3370 | rm -f conftest$ac_exeext | ||
3371 | if { (ac_try="$ac_link" | ||
3372 | case "(($ac_try" in | ||
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3374 | *) ac_try_echo=$ac_try;; | ||
3375 | esac | ||
3376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3377 | (eval "$ac_link") 2>&5 | ||
3378 | ac_status=$? | ||
3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3381 | { (case "(($ac_try" in | ||
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3383 | *) ac_try_echo=$ac_try;; | ||
3384 | esac | ||
3385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3386 | (eval "$ac_try") 2>&5 | ||
3387 | ac_status=$? | ||
3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3389 | (exit $ac_status); }; }; then | ||
3390 | : | ||
3391 | else | ||
3392 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3393 | echo "$as_me: failed program was:" >&5 | ||
3394 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3395 | |||
3396 | ( exit $ac_status ) | ||
3397 | ac_cv_header_stdc=no | ||
3398 | fi | ||
3399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3400 | fi | ||
3401 | |||
3402 | |||
3403 | fi | ||
3404 | fi | ||
3405 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3406 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3407 | if test $ac_cv_header_stdc = yes; then | ||
3408 | |||
3409 | cat >>confdefs.h <<\_ACEOF | ||
3410 | #define STDC_HEADERS 1 | ||
3411 | _ACEOF | ||
3412 | |||
3413 | fi | ||
3414 | |||
3415 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3416 | |||
3417 | |||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3426 | inttypes.h stdint.h unistd.h | ||
3427 | do | ||
3428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3433 | else | ||
3434 | cat >conftest.$ac_ext <<_ACEOF | ||
3435 | /* confdefs.h. */ | ||
3436 | _ACEOF | ||
3437 | cat confdefs.h >>conftest.$ac_ext | ||
3438 | cat >>conftest.$ac_ext <<_ACEOF | ||
3439 | /* end confdefs.h. */ | ||
3440 | $ac_includes_default | ||
3441 | |||
3442 | #include <$ac_header> | ||
3443 | _ACEOF | ||
3444 | rm -f conftest.$ac_objext | ||
3445 | if { (ac_try="$ac_compile" | ||
3446 | case "(($ac_try" in | ||
3447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3448 | *) ac_try_echo=$ac_try;; | ||
3449 | esac | ||
3450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3451 | (eval "$ac_compile") 2>conftest.er1 | ||
3452 | ac_status=$? | ||
3453 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3454 | rm -f conftest.er1 | ||
3455 | cat conftest.err >&5 | ||
3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3457 | (exit $ac_status); } && { | ||
3458 | test -z "$ac_c_werror_flag" || | ||
3459 | test ! -s conftest.err | ||
3460 | } && test -s conftest.$ac_objext; then | ||
3461 | eval "$as_ac_Header=yes" | ||
3462 | else | ||
3463 | echo "$as_me: failed program was:" >&5 | ||
3464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3465 | |||
3466 | eval "$as_ac_Header=no" | ||
3467 | fi | ||
3468 | |||
3469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3470 | fi | ||
3471 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3473 | echo "${ECHO_T}$ac_res" >&6; } | ||
3474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3475 | cat >>confdefs.h <<_ACEOF | ||
3476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3477 | _ACEOF | ||
3478 | |||
3479 | fi | ||
3480 | |||
3481 | done | ||
3482 | |||
3483 | |||
3484 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3485 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3486 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3488 | else | ||
3489 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3490 | cat >conftest.$ac_ext <<_ACEOF | ||
3491 | /* confdefs.h. */ | ||
3492 | _ACEOF | ||
3493 | cat confdefs.h >>conftest.$ac_ext | ||
3494 | cat >>conftest.$ac_ext <<_ACEOF | ||
3495 | /* end confdefs.h. */ | ||
3496 | #include <sys/types.h> | ||
3497 | #include <sys/param.h> | ||
3498 | |||
3499 | int | ||
3500 | main () | ||
3501 | { | ||
3502 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3503 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3504 | bogus endian macros | ||
3505 | #endif | ||
3506 | |||
3507 | ; | ||
3508 | return 0; | ||
3509 | } | ||
3510 | _ACEOF | ||
3511 | rm -f conftest.$ac_objext | ||
3512 | if { (ac_try="$ac_compile" | ||
3513 | case "(($ac_try" in | ||
3514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3515 | *) ac_try_echo=$ac_try;; | ||
3516 | esac | ||
3517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3518 | (eval "$ac_compile") 2>conftest.er1 | ||
3519 | ac_status=$? | ||
3520 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3521 | rm -f conftest.er1 | ||
3522 | cat conftest.err >&5 | ||
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3524 | (exit $ac_status); } && { | ||
3525 | test -z "$ac_c_werror_flag" || | ||
3526 | test ! -s conftest.err | ||
3527 | } && test -s conftest.$ac_objext; then | ||
3528 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3529 | cat >conftest.$ac_ext <<_ACEOF | ||
3530 | /* confdefs.h. */ | ||
3531 | _ACEOF | ||
3532 | cat confdefs.h >>conftest.$ac_ext | ||
3533 | cat >>conftest.$ac_ext <<_ACEOF | ||
3534 | /* end confdefs.h. */ | ||
3535 | #include <sys/types.h> | ||
3536 | #include <sys/param.h> | ||
3537 | |||
3538 | int | ||
3539 | main () | ||
3540 | { | ||
3541 | #if BYTE_ORDER != BIG_ENDIAN | ||
3542 | not big endian | ||
3543 | #endif | ||
3544 | |||
3545 | ; | ||
3546 | return 0; | ||
3547 | } | ||
3548 | _ACEOF | ||
3549 | rm -f conftest.$ac_objext | ||
3550 | if { (ac_try="$ac_compile" | ||
3551 | case "(($ac_try" in | ||
3552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3553 | *) ac_try_echo=$ac_try;; | ||
3554 | esac | ||
3555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3556 | (eval "$ac_compile") 2>conftest.er1 | ||
3557 | ac_status=$? | ||
3558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3559 | rm -f conftest.er1 | ||
3560 | cat conftest.err >&5 | ||
3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3562 | (exit $ac_status); } && { | ||
3563 | test -z "$ac_c_werror_flag" || | ||
3564 | test ! -s conftest.err | ||
3565 | } && test -s conftest.$ac_objext; then | ||
3566 | ac_cv_c_bigendian=yes | ||
3567 | else | ||
3568 | echo "$as_me: failed program was:" >&5 | ||
3569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3570 | |||
3571 | ac_cv_c_bigendian=no | ||
3572 | fi | ||
3573 | |||
3574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3575 | else | ||
3576 | echo "$as_me: failed program was:" >&5 | ||
3577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3578 | |||
3579 | # It does not; compile a test program. | ||
3580 | if test "$cross_compiling" = yes; then | ||
3581 | # try to guess the endianness by grepping values into an object file | ||
3582 | ac_cv_c_bigendian=unknown | ||
3583 | cat >conftest.$ac_ext <<_ACEOF | ||
3584 | /* confdefs.h. */ | ||
3585 | _ACEOF | ||
3586 | cat confdefs.h >>conftest.$ac_ext | ||
3587 | cat >>conftest.$ac_ext <<_ACEOF | ||
3588 | /* end confdefs.h. */ | ||
3589 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3590 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3591 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3592 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3593 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3594 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3595 | int | ||
3596 | main () | ||
3597 | { | ||
3598 | _ascii (); _ebcdic (); | ||
3599 | ; | ||
3600 | return 0; | ||
3601 | } | ||
3602 | _ACEOF | ||
3603 | rm -f conftest.$ac_objext | ||
3604 | if { (ac_try="$ac_compile" | ||
3605 | case "(($ac_try" in | ||
3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3607 | *) ac_try_echo=$ac_try;; | ||
3608 | esac | ||
3609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3610 | (eval "$ac_compile") 2>conftest.er1 | ||
3611 | ac_status=$? | ||
3612 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3613 | rm -f conftest.er1 | ||
3614 | cat conftest.err >&5 | ||
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3616 | (exit $ac_status); } && { | ||
3617 | test -z "$ac_c_werror_flag" || | ||
3618 | test ! -s conftest.err | ||
3619 | } && test -s conftest.$ac_objext; then | ||
3620 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3621 | ac_cv_c_bigendian=yes | ||
3622 | fi | ||
3623 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3624 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3625 | ac_cv_c_bigendian=no | ||
3626 | else | ||
3627 | # finding both strings is unlikely to happen, but who knows? | ||
3628 | ac_cv_c_bigendian=unknown | ||
3629 | fi | ||
3630 | fi | ||
3631 | else | ||
3632 | echo "$as_me: failed program was:" >&5 | ||
3633 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3634 | |||
3635 | |||
3636 | fi | ||
3637 | |||
3638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3639 | else | ||
3640 | cat >conftest.$ac_ext <<_ACEOF | ||
3641 | /* confdefs.h. */ | ||
3642 | _ACEOF | ||
3643 | cat confdefs.h >>conftest.$ac_ext | ||
3644 | cat >>conftest.$ac_ext <<_ACEOF | ||
3645 | /* end confdefs.h. */ | ||
3646 | $ac_includes_default | ||
3647 | int | ||
3648 | main () | ||
3649 | { | ||
3650 | |||
3651 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3652 | union | ||
3653 | { | ||
3654 | long int l; | ||
3655 | char c[sizeof (long int)]; | ||
3656 | } u; | ||
3657 | u.l = 1; | ||
3658 | return u.c[sizeof (long int) - 1] == 1; | ||
3659 | |||
3660 | ; | ||
3661 | return 0; | ||
3662 | } | ||
3663 | _ACEOF | ||
3664 | rm -f conftest$ac_exeext | ||
3665 | if { (ac_try="$ac_link" | ||
3666 | case "(($ac_try" in | ||
3667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3668 | *) ac_try_echo=$ac_try;; | ||
3669 | esac | ||
3670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3671 | (eval "$ac_link") 2>&5 | ||
3672 | ac_status=$? | ||
3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3675 | { (case "(($ac_try" in | ||
3676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3677 | *) ac_try_echo=$ac_try;; | ||
3678 | esac | ||
3679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3680 | (eval "$ac_try") 2>&5 | ||
3681 | ac_status=$? | ||
3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3683 | (exit $ac_status); }; }; then | ||
3684 | ac_cv_c_bigendian=no | ||
3685 | else | ||
3686 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3687 | echo "$as_me: failed program was:" >&5 | ||
3688 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3689 | |||
3690 | ( exit $ac_status ) | ||
3691 | ac_cv_c_bigendian=yes | ||
3692 | fi | ||
3693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3694 | fi | ||
3695 | |||
3696 | |||
3697 | fi | ||
3698 | |||
3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3700 | fi | ||
3701 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3702 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3703 | case $ac_cv_c_bigendian in | ||
3704 | yes) | ||
3705 | |||
3706 | cat >>confdefs.h <<\_ACEOF | ||
3707 | #define WORDS_BIGENDIAN 1 | ||
3708 | _ACEOF | ||
3709 | ;; | ||
3710 | no) | ||
3711 | ;; | ||
3712 | *) | ||
3713 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3714 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3715 | echo "$as_me: error: unknown endianness | ||
3716 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3717 | { (exit 1); exit 1; }; } ;; | ||
3718 | esac | ||
3719 | |||
3720 | |||
3721 | # Checks for programs. | ||
3722 | for ac_prog in gawk mawk nawk awk | ||
3723 | do | ||
3724 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3725 | set dummy $ac_prog; ac_word=$2 | ||
3726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3728 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3730 | else | ||
3731 | if test -n "$AWK"; then | ||
3732 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3733 | else | ||
3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3735 | for as_dir in $PATH | ||
3736 | do | ||
3737 | IFS=$as_save_IFS | ||
3738 | test -z "$as_dir" && as_dir=. | ||
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3741 | ac_cv_prog_AWK="$ac_prog" | ||
3742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3743 | break 2 | ||
3744 | fi | ||
3745 | done | ||
3746 | done | ||
3747 | IFS=$as_save_IFS | ||
3748 | |||
3749 | fi | ||
3750 | fi | ||
3751 | AWK=$ac_cv_prog_AWK | ||
3752 | if test -n "$AWK"; then | ||
3753 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3754 | echo "${ECHO_T}$AWK" >&6; } | ||
3755 | else | ||
3756 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3757 | echo "${ECHO_T}no" >&6; } | ||
3758 | fi | ||
3759 | |||
3760 | |||
3761 | test -n "$AWK" && break | ||
3762 | done | ||
3763 | |||
3764 | ac_ext=c | ||
3765 | ac_cpp='$CPP $CPPFLAGS' | ||
3766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3769 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3770 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3771 | # On Suns, sometimes $CPP names a directory. | ||
3772 | if test -n "$CPP" && test -d "$CPP"; then | ||
3773 | CPP= | ||
3774 | fi | ||
3775 | if test -z "$CPP"; then | ||
3776 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3778 | else | ||
3779 | # Double quotes because CPP needs to be expanded | ||
3780 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3781 | do | ||
3782 | ac_preproc_ok=false | ||
3783 | for ac_c_preproc_warn_flag in '' yes | ||
3784 | do | ||
3785 | # Use a header file that comes with gcc, so configuring glibc | ||
3786 | # with a fresh cross-compiler works. | ||
3787 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3788 | # <limits.h> exists even on freestanding compilers. | ||
3789 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3790 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3791 | cat >conftest.$ac_ext <<_ACEOF | ||
3792 | /* confdefs.h. */ | ||
3793 | _ACEOF | ||
3794 | cat confdefs.h >>conftest.$ac_ext | ||
3795 | cat >>conftest.$ac_ext <<_ACEOF | ||
3796 | /* end confdefs.h. */ | ||
3797 | #ifdef __STDC__ | ||
3798 | # include <limits.h> | ||
3799 | #else | ||
3800 | # include <assert.h> | ||
3801 | #endif | ||
3802 | Syntax error | ||
3803 | _ACEOF | ||
3804 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3805 | case "(($ac_try" in | ||
3806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3807 | *) ac_try_echo=$ac_try;; | ||
3808 | esac | ||
3809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3811 | ac_status=$? | ||
3812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3813 | rm -f conftest.er1 | ||
3814 | cat conftest.err >&5 | ||
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3816 | (exit $ac_status); } >/dev/null && { | ||
3817 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3818 | test ! -s conftest.err | ||
3819 | }; then | ||
3820 | : | ||
3821 | else | ||
3822 | echo "$as_me: failed program was:" >&5 | ||
3823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3824 | |||
3825 | # Broken: fails on valid input. | ||
3826 | continue | ||
3827 | fi | ||
3828 | |||
3829 | rm -f conftest.err conftest.$ac_ext | ||
3830 | |||
3831 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3832 | # can be detected and how. | ||
3833 | cat >conftest.$ac_ext <<_ACEOF | ||
3834 | /* confdefs.h. */ | ||
3835 | _ACEOF | ||
3836 | cat confdefs.h >>conftest.$ac_ext | ||
3837 | cat >>conftest.$ac_ext <<_ACEOF | ||
3838 | /* end confdefs.h. */ | ||
3839 | #include <ac_nonexistent.h> | ||
3840 | _ACEOF | ||
3841 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3842 | case "(($ac_try" in | ||
3843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3844 | *) ac_try_echo=$ac_try;; | ||
3845 | esac | ||
3846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3848 | ac_status=$? | ||
3849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3850 | rm -f conftest.er1 | ||
3851 | cat conftest.err >&5 | ||
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3853 | (exit $ac_status); } >/dev/null && { | ||
3854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3855 | test ! -s conftest.err | ||
3856 | }; then | ||
3857 | # Broken: success on invalid input. | ||
3858 | continue | ||
3859 | else | ||
3860 | echo "$as_me: failed program was:" >&5 | ||
3861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3862 | |||
3863 | # Passes both tests. | ||
3864 | ac_preproc_ok=: | ||
3865 | break | ||
3866 | fi | ||
3867 | |||
3868 | rm -f conftest.err conftest.$ac_ext | ||
3869 | |||
3870 | done | ||
3871 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3872 | rm -f conftest.err conftest.$ac_ext | ||
3873 | if $ac_preproc_ok; then | ||
3874 | break | ||
3875 | fi | ||
3876 | |||
3877 | done | ||
3878 | ac_cv_prog_CPP=$CPP | ||
3879 | |||
3880 | fi | ||
3881 | CPP=$ac_cv_prog_CPP | ||
3882 | else | ||
3883 | ac_cv_prog_CPP=$CPP | ||
3884 | fi | ||
3885 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3886 | echo "${ECHO_T}$CPP" >&6; } | ||
3887 | ac_preproc_ok=false | ||
3888 | for ac_c_preproc_warn_flag in '' yes | ||
3889 | do | ||
3890 | # Use a header file that comes with gcc, so configuring glibc | ||
3891 | # with a fresh cross-compiler works. | ||
3892 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3893 | # <limits.h> exists even on freestanding compilers. | ||
3894 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3895 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3896 | cat >conftest.$ac_ext <<_ACEOF | ||
3897 | /* confdefs.h. */ | ||
3898 | _ACEOF | ||
3899 | cat confdefs.h >>conftest.$ac_ext | ||
3900 | cat >>conftest.$ac_ext <<_ACEOF | ||
3901 | /* end confdefs.h. */ | ||
3902 | #ifdef __STDC__ | ||
3903 | # include <limits.h> | ||
3904 | #else | ||
3905 | # include <assert.h> | ||
3906 | #endif | ||
3907 | Syntax error | ||
3908 | _ACEOF | ||
3909 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3910 | case "(($ac_try" in | ||
3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3912 | *) ac_try_echo=$ac_try;; | ||
3913 | esac | ||
3914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3915 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3916 | ac_status=$? | ||
3917 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3918 | rm -f conftest.er1 | ||
3919 | cat conftest.err >&5 | ||
3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3921 | (exit $ac_status); } >/dev/null && { | ||
3922 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3923 | test ! -s conftest.err | ||
3924 | }; then | ||
3925 | : | ||
3926 | else | ||
3927 | echo "$as_me: failed program was:" >&5 | ||
3928 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3929 | |||
3930 | # Broken: fails on valid input. | ||
3931 | continue | ||
3932 | fi | ||
3933 | |||
3934 | rm -f conftest.err conftest.$ac_ext | ||
3935 | |||
3936 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3937 | # can be detected and how. | ||
3938 | cat >conftest.$ac_ext <<_ACEOF | ||
3939 | /* confdefs.h. */ | ||
3940 | _ACEOF | ||
3941 | cat confdefs.h >>conftest.$ac_ext | ||
3942 | cat >>conftest.$ac_ext <<_ACEOF | ||
3943 | /* end confdefs.h. */ | ||
3944 | #include <ac_nonexistent.h> | ||
3945 | _ACEOF | ||
3946 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3947 | case "(($ac_try" in | ||
3948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3949 | *) ac_try_echo=$ac_try;; | ||
3950 | esac | ||
3951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3953 | ac_status=$? | ||
3954 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3955 | rm -f conftest.er1 | ||
3956 | cat conftest.err >&5 | ||
3957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3958 | (exit $ac_status); } >/dev/null && { | ||
3959 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3960 | test ! -s conftest.err | ||
3961 | }; then | ||
3962 | # Broken: success on invalid input. | ||
3963 | continue | ||
3964 | else | ||
3965 | echo "$as_me: failed program was:" >&5 | ||
3966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3967 | |||
3968 | # Passes both tests. | ||
3969 | ac_preproc_ok=: | ||
3970 | break | ||
3971 | fi | ||
3972 | |||
3973 | rm -f conftest.err conftest.$ac_ext | ||
3974 | |||
3975 | done | ||
3976 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3977 | rm -f conftest.err conftest.$ac_ext | ||
3978 | if $ac_preproc_ok; then | ||
3979 | : | ||
3980 | else | ||
3981 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3982 | See \`config.log' for more details." >&5 | ||
3983 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3984 | See \`config.log' for more details." >&2;} | ||
3985 | { (exit 1); exit 1; }; } | ||
3986 | fi | ||
3987 | |||
3988 | ac_ext=c | ||
3989 | ac_cpp='$CPP $CPPFLAGS' | ||
3990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3993 | |||
3994 | if test -n "$ac_tool_prefix"; then | ||
3995 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
3996 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
3997 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3999 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4001 | else | ||
4002 | if test -n "$RANLIB"; then | ||
4003 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4004 | else | ||
4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4006 | for as_dir in $PATH | ||
4007 | do | ||
4008 | IFS=$as_save_IFS | ||
4009 | test -z "$as_dir" && as_dir=. | ||
4010 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4012 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4014 | break 2 | ||
4015 | fi | ||
4016 | done | ||
4017 | done | ||
4018 | IFS=$as_save_IFS | ||
4019 | |||
4020 | fi | ||
4021 | fi | ||
4022 | RANLIB=$ac_cv_prog_RANLIB | ||
4023 | if test -n "$RANLIB"; then | ||
4024 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4025 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4026 | else | ||
4027 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4028 | echo "${ECHO_T}no" >&6; } | ||
4029 | fi | ||
4030 | |||
4031 | |||
4032 | fi | ||
4033 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4034 | ac_ct_RANLIB=$RANLIB | ||
4035 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4036 | set dummy ranlib; ac_word=$2 | ||
4037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4039 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4041 | else | ||
4042 | if test -n "$ac_ct_RANLIB"; then | ||
4043 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4044 | else | ||
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4046 | for as_dir in $PATH | ||
4047 | do | ||
4048 | IFS=$as_save_IFS | ||
4049 | test -z "$as_dir" && as_dir=. | ||
4050 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4052 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4054 | break 2 | ||
4055 | fi | ||
4056 | done | ||
4057 | done | ||
4058 | IFS=$as_save_IFS | ||
4059 | |||
4060 | fi | ||
4061 | fi | ||
4062 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4063 | if test -n "$ac_ct_RANLIB"; then | ||
4064 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4065 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4066 | else | ||
4067 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4068 | echo "${ECHO_T}no" >&6; } | ||
4069 | fi | ||
4070 | |||
4071 | if test "x$ac_ct_RANLIB" = x; then | ||
4072 | RANLIB=":" | ||
4073 | else | ||
4074 | case $cross_compiling:$ac_tool_warned in | ||
4075 | yes:) | ||
4076 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4077 | whose name does not start with the host triplet. If you think this | ||
4078 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4079 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4080 | whose name does not start with the host triplet. If you think this | ||
4081 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4082 | ac_tool_warned=yes ;; | ||
4083 | esac | ||
4084 | RANLIB=$ac_ct_RANLIB | ||
4085 | fi | ||
4086 | else | ||
4087 | RANLIB="$ac_cv_prog_RANLIB" | ||
4088 | fi | ||
4089 | |||
4090 | # Find a good install program. We prefer a C program (faster), | ||
4091 | # so one script is as good as another. But avoid the broken or | ||
4092 | # incompatible versions: | ||
4093 | # SysV /etc/install, /usr/sbin/install | ||
4094 | # SunOS /usr/etc/install | ||
4095 | # IRIX /sbin/install | ||
4096 | # AIX /bin/install | ||
4097 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4098 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4099 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4100 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4101 | # OS/2's system install, which has a completely different semantic | ||
4102 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4103 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4104 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4105 | if test -z "$INSTALL"; then | ||
4106 | if test "${ac_cv_path_install+set}" = set; then | ||
4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4108 | else | ||
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4110 | for as_dir in $PATH | ||
4111 | do | ||
4112 | IFS=$as_save_IFS | ||
4113 | test -z "$as_dir" && as_dir=. | ||
4114 | # Account for people who put trailing slashes in PATH elements. | ||
4115 | case $as_dir/ in | ||
4116 | ./ | .// | /cC/* | \ | ||
4117 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4118 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4119 | /usr/ucb/* ) ;; | ||
4120 | *) | ||
4121 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4122 | # Don't use installbsd from OSF since it installs stuff as root | ||
4123 | # by default. | ||
4124 | for ac_prog in ginstall scoinst install; do | ||
4125 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4126 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4127 | if test $ac_prog = install && | ||
4128 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4129 | # AIX install. It has an incompatible calling convention. | ||
4130 | : | ||
4131 | elif test $ac_prog = install && | ||
4132 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4133 | # program-specific install script used by HP pwplus--don't use. | ||
4134 | : | ||
4135 | else | ||
4136 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4137 | break 3 | ||
4138 | fi | ||
4139 | fi | ||
4140 | done | ||
4141 | done | ||
4142 | ;; | ||
4143 | esac | ||
4144 | done | ||
4145 | IFS=$as_save_IFS | ||
4146 | |||
4147 | |||
4148 | fi | ||
4149 | if test "${ac_cv_path_install+set}" = set; then | ||
4150 | INSTALL=$ac_cv_path_install | ||
4151 | else | ||
4152 | # As a last resort, use the slow shell script. Don't cache a | ||
4153 | # value for INSTALL within a source directory, because that will | ||
4154 | # break other packages using the cache if that directory is | ||
4155 | # removed, or if the value is a relative name. | ||
4156 | INSTALL=$ac_install_sh | ||
4157 | fi | ||
4158 | fi | ||
4159 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4160 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4161 | |||
4162 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4163 | # It thinks the first close brace ends the variable substitution. | ||
4164 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4165 | |||
4166 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4167 | |||
4168 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4169 | |||
4170 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4171 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4172 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4174 | else | ||
4175 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4176 | then ac_cv_path_EGREP="$GREP -E" | ||
4177 | else | ||
4178 | # Extract the first word of "egrep" to use in msg output | ||
4179 | if test -z "$EGREP"; then | ||
4180 | set dummy egrep; ac_prog_name=$2 | ||
4181 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4183 | else | ||
4184 | ac_path_EGREP_found=false | ||
4185 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4187 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4188 | do | ||
4189 | IFS=$as_save_IFS | ||
4190 | test -z "$as_dir" && as_dir=. | ||
4191 | for ac_prog in egrep; do | ||
4192 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4193 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4194 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4195 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4196 | # Check for GNU $ac_path_EGREP | ||
4197 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4198 | *GNU*) | ||
4199 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4200 | *) | ||
4201 | ac_count=0 | ||
4202 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4203 | while : | ||
4204 | do | ||
4205 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4206 | mv "conftest.tmp" "conftest.in" | ||
4207 | cp "conftest.in" "conftest.nl" | ||
4208 | echo 'EGREP' >> "conftest.nl" | ||
4209 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4210 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4211 | ac_count=`expr $ac_count + 1` | ||
4212 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4213 | # Best one so far, save it but keep looking for a better one | ||
4214 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4215 | ac_path_EGREP_max=$ac_count | ||
4216 | fi | ||
4217 | # 10*(2^10) chars as input seems more than enough | ||
4218 | test $ac_count -gt 10 && break | ||
4219 | done | ||
4220 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4221 | esac | ||
4222 | |||
4223 | |||
4224 | $ac_path_EGREP_found && break 3 | ||
4225 | done | ||
4226 | done | ||
4227 | |||
4228 | done | ||
4229 | IFS=$as_save_IFS | ||
4230 | |||
4231 | |||
4232 | fi | ||
4233 | |||
4234 | EGREP="$ac_cv_path_EGREP" | ||
4235 | if test -z "$EGREP"; then | ||
4236 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4237 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4238 | { (exit 1); exit 1; }; } | ||
4239 | fi | ||
4240 | |||
4241 | else | ||
4242 | ac_cv_path_EGREP=$EGREP | ||
4243 | fi | ||
4244 | |||
4245 | |||
4246 | fi | ||
4247 | fi | ||
4248 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4249 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4250 | EGREP="$ac_cv_path_EGREP" | ||
4251 | |||
4252 | |||
4253 | # Extract the first word of "ar", so it can be a program name with args. | ||
4254 | set dummy ar; ac_word=$2 | ||
4255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4257 | if test "${ac_cv_path_AR+set}" = set; then | ||
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4259 | else | ||
4260 | case $AR in | ||
4261 | [\\/]* | ?:[\\/]*) | ||
4262 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4263 | ;; | ||
4264 | *) | ||
4265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4266 | for as_dir in $PATH | ||
4267 | do | ||
4268 | IFS=$as_save_IFS | ||
4269 | test -z "$as_dir" && as_dir=. | ||
4270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4272 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4274 | break 2 | ||
4275 | fi | ||
4276 | done | ||
4277 | done | ||
4278 | IFS=$as_save_IFS | ||
4279 | |||
4280 | ;; | ||
4281 | esac | ||
4282 | fi | ||
4283 | AR=$ac_cv_path_AR | ||
4284 | if test -n "$AR"; then | ||
4285 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4286 | echo "${ECHO_T}$AR" >&6; } | ||
4287 | else | ||
4288 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4289 | echo "${ECHO_T}no" >&6; } | ||
4290 | fi | ||
4291 | |||
4292 | |||
4293 | # Extract the first word of "cat", so it can be a program name with args. | ||
4294 | set dummy cat; ac_word=$2 | ||
4295 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4297 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4299 | else | ||
4300 | case $CAT in | ||
4301 | [\\/]* | ?:[\\/]*) | ||
4302 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4303 | ;; | ||
4304 | *) | ||
4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4306 | for as_dir in $PATH | ||
4307 | do | ||
4308 | IFS=$as_save_IFS | ||
4309 | test -z "$as_dir" && as_dir=. | ||
4310 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4312 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4314 | break 2 | ||
4315 | fi | ||
4316 | done | ||
4317 | done | ||
4318 | IFS=$as_save_IFS | ||
4319 | |||
4320 | ;; | ||
4321 | esac | ||
4322 | fi | ||
4323 | CAT=$ac_cv_path_CAT | ||
4324 | if test -n "$CAT"; then | ||
4325 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4326 | echo "${ECHO_T}$CAT" >&6; } | ||
4327 | else | ||
4328 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4329 | echo "${ECHO_T}no" >&6; } | ||
4330 | fi | ||
4331 | |||
4332 | |||
4333 | # Extract the first word of "kill", so it can be a program name with args. | ||
4334 | set dummy kill; ac_word=$2 | ||
4335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4337 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4339 | else | ||
4340 | case $KILL in | ||
4341 | [\\/]* | ?:[\\/]*) | ||
4342 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4343 | ;; | ||
4344 | *) | ||
4345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4346 | for as_dir in $PATH | ||
4347 | do | ||
4348 | IFS=$as_save_IFS | ||
4349 | test -z "$as_dir" && as_dir=. | ||
4350 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4352 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4354 | break 2 | ||
4355 | fi | ||
4356 | done | ||
4357 | done | ||
4358 | IFS=$as_save_IFS | ||
4359 | |||
4360 | ;; | ||
4361 | esac | ||
4362 | fi | ||
4363 | KILL=$ac_cv_path_KILL | ||
4364 | if test -n "$KILL"; then | ||
4365 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4366 | echo "${ECHO_T}$KILL" >&6; } | ||
4367 | else | ||
4368 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4369 | echo "${ECHO_T}no" >&6; } | ||
4370 | fi | ||
4371 | |||
4372 | |||
4373 | for ac_prog in perl5 perl | ||
4374 | do | ||
4375 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4376 | set dummy $ac_prog; ac_word=$2 | ||
4377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4379 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4381 | else | ||
4382 | case $PERL in | ||
4383 | [\\/]* | ?:[\\/]*) | ||
4384 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4385 | ;; | ||
4386 | *) | ||
4387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4388 | for as_dir in $PATH | ||
4389 | do | ||
4390 | IFS=$as_save_IFS | ||
4391 | test -z "$as_dir" && as_dir=. | ||
4392 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4394 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4396 | break 2 | ||
4397 | fi | ||
4398 | done | ||
4399 | done | ||
4400 | IFS=$as_save_IFS | ||
4401 | |||
4402 | ;; | ||
4403 | esac | ||
4404 | fi | ||
4405 | PERL=$ac_cv_path_PERL | ||
4406 | if test -n "$PERL"; then | ||
4407 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4408 | echo "${ECHO_T}$PERL" >&6; } | ||
4409 | else | ||
4410 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4411 | echo "${ECHO_T}no" >&6; } | ||
4412 | fi | ||
4413 | |||
4414 | |||
4415 | test -n "$PERL" && break | ||
4416 | done | ||
4417 | |||
4418 | # Extract the first word of "sed", so it can be a program name with args. | ||
4419 | set dummy sed; ac_word=$2 | ||
4420 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4422 | if test "${ac_cv_path_SED+set}" = set; then | ||
4423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4424 | else | ||
4425 | case $SED in | ||
4426 | [\\/]* | ?:[\\/]*) | ||
4427 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4428 | ;; | ||
4429 | *) | ||
4430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4431 | for as_dir in $PATH | ||
4432 | do | ||
4433 | IFS=$as_save_IFS | ||
4434 | test -z "$as_dir" && as_dir=. | ||
4435 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4437 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4439 | break 2 | ||
4440 | fi | ||
4441 | done | ||
4442 | done | ||
4443 | IFS=$as_save_IFS | ||
4444 | |||
4445 | ;; | ||
4446 | esac | ||
4447 | fi | ||
4448 | SED=$ac_cv_path_SED | ||
4449 | if test -n "$SED"; then | ||
4450 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4451 | echo "${ECHO_T}$SED" >&6; } | ||
4452 | else | ||
4453 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4454 | echo "${ECHO_T}no" >&6; } | ||
4455 | fi | ||
4456 | |||
4457 | |||
4458 | |||
4459 | # Extract the first word of "ent", so it can be a program name with args. | ||
4460 | set dummy ent; ac_word=$2 | ||
4461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4463 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4465 | else | ||
4466 | case $ENT in | ||
4467 | [\\/]* | ?:[\\/]*) | ||
4468 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4469 | ;; | ||
4470 | *) | ||
4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4472 | for as_dir in $PATH | ||
4473 | do | ||
4474 | IFS=$as_save_IFS | ||
4475 | test -z "$as_dir" && as_dir=. | ||
4476 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4478 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4480 | break 2 | ||
4481 | fi | ||
4482 | done | ||
4483 | done | ||
4484 | IFS=$as_save_IFS | ||
4485 | |||
4486 | ;; | ||
4487 | esac | ||
4488 | fi | ||
4489 | ENT=$ac_cv_path_ENT | ||
4490 | if test -n "$ENT"; then | ||
4491 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4492 | echo "${ECHO_T}$ENT" >&6; } | ||
4493 | else | ||
4494 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4495 | echo "${ECHO_T}no" >&6; } | ||
4496 | fi | ||
4497 | |||
4498 | |||
4499 | |||
4500 | # Extract the first word of "bash", so it can be a program name with args. | ||
4501 | set dummy bash; ac_word=$2 | ||
4502 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4504 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4506 | else | ||
4507 | case $TEST_MINUS_S_SH in | ||
4508 | [\\/]* | ?:[\\/]*) | ||
4509 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4510 | ;; | ||
4511 | *) | ||
4512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4513 | for as_dir in $PATH | ||
4514 | do | ||
4515 | IFS=$as_save_IFS | ||
4516 | test -z "$as_dir" && as_dir=. | ||
4517 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4519 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4521 | break 2 | ||
4522 | fi | ||
4523 | done | ||
4524 | done | ||
4525 | IFS=$as_save_IFS | ||
4526 | |||
4527 | ;; | ||
4528 | esac | ||
4529 | fi | ||
4530 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4531 | if test -n "$TEST_MINUS_S_SH"; then | ||
4532 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4533 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4534 | else | ||
4535 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4536 | echo "${ECHO_T}no" >&6; } | ||
4537 | fi | ||
4538 | |||
4539 | |||
4540 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4541 | set dummy ksh; ac_word=$2 | ||
4542 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4544 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4546 | else | ||
4547 | case $TEST_MINUS_S_SH in | ||
4548 | [\\/]* | ?:[\\/]*) | ||
4549 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4550 | ;; | ||
4551 | *) | ||
4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4553 | for as_dir in $PATH | ||
4554 | do | ||
4555 | IFS=$as_save_IFS | ||
4556 | test -z "$as_dir" && as_dir=. | ||
4557 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4559 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4561 | break 2 | ||
4562 | fi | ||
4563 | done | ||
4564 | done | ||
4565 | IFS=$as_save_IFS | ||
4566 | |||
4567 | ;; | ||
4568 | esac | ||
4569 | fi | ||
4570 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4571 | if test -n "$TEST_MINUS_S_SH"; then | ||
4572 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4573 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4574 | else | ||
4575 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4576 | echo "${ECHO_T}no" >&6; } | ||
4577 | fi | ||
4578 | |||
4579 | |||
4580 | # Extract the first word of "sh", so it can be a program name with args. | ||
4581 | set dummy sh; ac_word=$2 | ||
4582 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4584 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4586 | else | ||
4587 | case $TEST_MINUS_S_SH in | ||
4588 | [\\/]* | ?:[\\/]*) | ||
4589 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4590 | ;; | ||
4591 | *) | ||
4592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4593 | for as_dir in $PATH | ||
4594 | do | ||
4595 | IFS=$as_save_IFS | ||
4596 | test -z "$as_dir" && as_dir=. | ||
4597 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4599 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4601 | break 2 | ||
4602 | fi | ||
4603 | done | ||
4604 | done | ||
4605 | IFS=$as_save_IFS | ||
4606 | |||
4607 | ;; | ||
4608 | esac | ||
4609 | fi | ||
4610 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4611 | if test -n "$TEST_MINUS_S_SH"; then | ||
4612 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4613 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4614 | else | ||
4615 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4616 | echo "${ECHO_T}no" >&6; } | ||
4617 | fi | ||
4618 | |||
4619 | |||
4620 | # Extract the first word of "sh", so it can be a program name with args. | ||
4621 | set dummy sh; ac_word=$2 | ||
4622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4624 | if test "${ac_cv_path_SH+set}" = set; then | ||
4625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4626 | else | ||
4627 | case $SH in | ||
4628 | [\\/]* | ?:[\\/]*) | ||
4629 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4630 | ;; | ||
4631 | *) | ||
4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4633 | for as_dir in $PATH | ||
4634 | do | ||
4635 | IFS=$as_save_IFS | ||
4636 | test -z "$as_dir" && as_dir=. | ||
4637 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4639 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4641 | break 2 | ||
4642 | fi | ||
4643 | done | ||
4644 | done | ||
4645 | IFS=$as_save_IFS | ||
4646 | |||
4647 | ;; | ||
4648 | esac | ||
4649 | fi | ||
4650 | SH=$ac_cv_path_SH | ||
4651 | if test -n "$SH"; then | ||
4652 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4653 | echo "${ECHO_T}$SH" >&6; } | ||
4654 | else | ||
4655 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4656 | echo "${ECHO_T}no" >&6; } | ||
4657 | fi | ||
4658 | |||
4659 | |||
4660 | TEST_SHELL=sh | ||
4661 | |||
4662 | |||
4663 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4664 | set dummy groupadd; ac_word=$2 | ||
4665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4667 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4669 | else | ||
4670 | case $PATH_GROUPADD_PROG in | ||
4671 | [\\/]* | ?:[\\/]*) | ||
4672 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4673 | ;; | ||
4674 | *) | ||
4675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4676 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4677 | do | ||
4678 | IFS=$as_save_IFS | ||
4679 | test -z "$as_dir" && as_dir=. | ||
4680 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4682 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4684 | break 2 | ||
4685 | fi | ||
4686 | done | ||
4687 | done | ||
4688 | IFS=$as_save_IFS | ||
4689 | |||
4690 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4691 | ;; | ||
4692 | esac | ||
4693 | fi | ||
4694 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4695 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4696 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4697 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4698 | else | ||
4699 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4700 | echo "${ECHO_T}no" >&6; } | ||
4701 | fi | ||
4702 | |||
4703 | |||
4704 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4705 | set dummy useradd; ac_word=$2 | ||
4706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4708 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4710 | else | ||
4711 | case $PATH_USERADD_PROG in | ||
4712 | [\\/]* | ?:[\\/]*) | ||
4713 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4714 | ;; | ||
4715 | *) | ||
4716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4717 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4718 | do | ||
4719 | IFS=$as_save_IFS | ||
4720 | test -z "$as_dir" && as_dir=. | ||
4721 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4722 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4723 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4725 | break 2 | ||
4726 | fi | ||
4727 | done | ||
4728 | done | ||
4729 | IFS=$as_save_IFS | ||
4730 | |||
4731 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4732 | ;; | ||
4733 | esac | ||
4734 | fi | ||
4735 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4736 | if test -n "$PATH_USERADD_PROG"; then | ||
4737 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4738 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4739 | else | ||
4740 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4741 | echo "${ECHO_T}no" >&6; } | ||
4742 | fi | ||
4743 | |||
4744 | |||
4745 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4746 | set dummy pkgmk; ac_word=$2 | ||
4747 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4749 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4751 | else | ||
4752 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4753 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4754 | else | ||
4755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4756 | for as_dir in $PATH | ||
4757 | do | ||
4758 | IFS=$as_save_IFS | ||
4759 | test -z "$as_dir" && as_dir=. | ||
4760 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4762 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4764 | break 2 | ||
4765 | fi | ||
4766 | done | ||
4767 | done | ||
4768 | IFS=$as_save_IFS | ||
4769 | |||
4770 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4771 | fi | ||
4772 | fi | ||
4773 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4774 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4775 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4776 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4777 | else | ||
4778 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4779 | echo "${ECHO_T}no" >&6; } | ||
4780 | fi | ||
4781 | |||
4782 | |||
4783 | if test -x /sbin/sh; then | ||
4784 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4785 | |||
4786 | else | ||
4787 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4788 | |||
4789 | fi | ||
4790 | |||
4791 | # System features | ||
4792 | # Check whether --enable-largefile was given. | ||
4793 | if test "${enable_largefile+set}" = set; then | ||
4794 | enableval=$enable_largefile; | ||
4795 | fi | ||
4796 | |||
4797 | if test "$enable_largefile" != no; then | ||
4798 | |||
4799 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4800 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4801 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4803 | else | ||
4804 | ac_cv_sys_largefile_CC=no | ||
4805 | if test "$GCC" != yes; then | ||
4806 | ac_save_CC=$CC | ||
4807 | while :; do | ||
4808 | # IRIX 6.2 and later do not support large files by default, | ||
4809 | # so use the C compiler's -n32 option if that helps. | ||
4810 | cat >conftest.$ac_ext <<_ACEOF | ||
4811 | /* confdefs.h. */ | ||
4812 | _ACEOF | ||
4813 | cat confdefs.h >>conftest.$ac_ext | ||
4814 | cat >>conftest.$ac_ext <<_ACEOF | ||
4815 | /* end confdefs.h. */ | ||
4816 | #include <sys/types.h> | ||
4817 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4818 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4819 | since some C++ compilers masquerading as C compilers | ||
4820 | incorrectly reject 9223372036854775807. */ | ||
4821 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4822 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4823 | && LARGE_OFF_T % 2147483647 == 1) | ||
4824 | ? 1 : -1]; | ||
4825 | int | ||
4826 | main () | ||
4827 | { | ||
4828 | |||
4829 | ; | ||
4830 | return 0; | ||
4831 | } | ||
4832 | _ACEOF | ||
4833 | rm -f conftest.$ac_objext | ||
4834 | if { (ac_try="$ac_compile" | ||
4835 | case "(($ac_try" in | ||
4836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4837 | *) ac_try_echo=$ac_try;; | ||
4838 | esac | ||
4839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4840 | (eval "$ac_compile") 2>conftest.er1 | ||
4841 | ac_status=$? | ||
4842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4843 | rm -f conftest.er1 | ||
4844 | cat conftest.err >&5 | ||
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4846 | (exit $ac_status); } && { | ||
4847 | test -z "$ac_c_werror_flag" || | ||
4848 | test ! -s conftest.err | ||
4849 | } && test -s conftest.$ac_objext; then | ||
4850 | break | ||
4851 | else | ||
4852 | echo "$as_me: failed program was:" >&5 | ||
4853 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4854 | |||
4855 | |||
4856 | fi | ||
4857 | |||
4858 | rm -f core conftest.err conftest.$ac_objext | ||
4859 | CC="$CC -n32" | ||
4860 | rm -f conftest.$ac_objext | ||
4861 | if { (ac_try="$ac_compile" | ||
4862 | case "(($ac_try" in | ||
4863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4864 | *) ac_try_echo=$ac_try;; | ||
4865 | esac | ||
4866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4867 | (eval "$ac_compile") 2>conftest.er1 | ||
4868 | ac_status=$? | ||
4869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4870 | rm -f conftest.er1 | ||
4871 | cat conftest.err >&5 | ||
4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4873 | (exit $ac_status); } && { | ||
4874 | test -z "$ac_c_werror_flag" || | ||
4875 | test ! -s conftest.err | ||
4876 | } && test -s conftest.$ac_objext; then | ||
4877 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4878 | else | ||
4879 | echo "$as_me: failed program was:" >&5 | ||
4880 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4881 | |||
4882 | |||
4883 | fi | ||
4884 | |||
4885 | rm -f core conftest.err conftest.$ac_objext | ||
4886 | break | ||
4887 | done | ||
4888 | CC=$ac_save_CC | ||
4889 | rm -f conftest.$ac_ext | ||
4890 | fi | ||
4891 | fi | ||
4892 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
4893 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
4894 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4895 | CC=$CC$ac_cv_sys_largefile_CC | ||
4896 | fi | ||
4897 | |||
4898 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4899 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
4900 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4902 | else | ||
4903 | while :; do | ||
4904 | cat >conftest.$ac_ext <<_ACEOF | ||
4905 | /* confdefs.h. */ | ||
4906 | _ACEOF | ||
4907 | cat confdefs.h >>conftest.$ac_ext | ||
4908 | cat >>conftest.$ac_ext <<_ACEOF | ||
4909 | /* end confdefs.h. */ | ||
4910 | #include <sys/types.h> | ||
4911 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4912 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4913 | since some C++ compilers masquerading as C compilers | ||
4914 | incorrectly reject 9223372036854775807. */ | ||
4915 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4916 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4917 | && LARGE_OFF_T % 2147483647 == 1) | ||
4918 | ? 1 : -1]; | ||
4919 | int | ||
4920 | main () | ||
4921 | { | ||
4922 | |||
4923 | ; | ||
4924 | return 0; | ||
4925 | } | ||
4926 | _ACEOF | ||
4927 | rm -f conftest.$ac_objext | ||
4928 | if { (ac_try="$ac_compile" | ||
4929 | case "(($ac_try" in | ||
4930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4931 | *) ac_try_echo=$ac_try;; | ||
4932 | esac | ||
4933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4934 | (eval "$ac_compile") 2>conftest.er1 | ||
4935 | ac_status=$? | ||
4936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4937 | rm -f conftest.er1 | ||
4938 | cat conftest.err >&5 | ||
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4940 | (exit $ac_status); } && { | ||
4941 | test -z "$ac_c_werror_flag" || | ||
4942 | test ! -s conftest.err | ||
4943 | } && test -s conftest.$ac_objext; then | ||
4944 | ac_cv_sys_file_offset_bits=no; break | ||
4945 | else | ||
4946 | echo "$as_me: failed program was:" >&5 | ||
4947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4948 | |||
4949 | |||
4950 | fi | ||
4951 | |||
4952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4953 | cat >conftest.$ac_ext <<_ACEOF | ||
4954 | /* confdefs.h. */ | ||
4955 | _ACEOF | ||
4956 | cat confdefs.h >>conftest.$ac_ext | ||
4957 | cat >>conftest.$ac_ext <<_ACEOF | ||
4958 | /* end confdefs.h. */ | ||
4959 | #define _FILE_OFFSET_BITS 64 | ||
4960 | #include <sys/types.h> | ||
4961 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4962 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4963 | since some C++ compilers masquerading as C compilers | ||
4964 | incorrectly reject 9223372036854775807. */ | ||
4965 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4966 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4967 | && LARGE_OFF_T % 2147483647 == 1) | ||
4968 | ? 1 : -1]; | ||
4969 | int | ||
4970 | main () | ||
4971 | { | ||
4972 | |||
4973 | ; | ||
4974 | return 0; | ||
4975 | } | ||
4976 | _ACEOF | ||
4977 | rm -f conftest.$ac_objext | ||
4978 | if { (ac_try="$ac_compile" | ||
4979 | case "(($ac_try" in | ||
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4981 | *) ac_try_echo=$ac_try;; | ||
4982 | esac | ||
4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4984 | (eval "$ac_compile") 2>conftest.er1 | ||
4985 | ac_status=$? | ||
4986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4987 | rm -f conftest.er1 | ||
4988 | cat conftest.err >&5 | ||
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4990 | (exit $ac_status); } && { | ||
4991 | test -z "$ac_c_werror_flag" || | ||
4992 | test ! -s conftest.err | ||
4993 | } && test -s conftest.$ac_objext; then | ||
4994 | ac_cv_sys_file_offset_bits=64; break | ||
4995 | else | ||
4996 | echo "$as_me: failed program was:" >&5 | ||
4997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4998 | |||
4999 | |||
5000 | fi | ||
5001 | |||
5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5003 | ac_cv_sys_file_offset_bits=unknown | ||
5004 | break | ||
5005 | done | ||
5006 | fi | ||
5007 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5008 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5009 | case $ac_cv_sys_file_offset_bits in #( | ||
5010 | no | unknown) ;; | ||
5011 | *) | ||
5012 | cat >>confdefs.h <<_ACEOF | ||
5013 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5014 | _ACEOF | ||
5015 | ;; | ||
5016 | esac | ||
5017 | rm -f conftest* | ||
5018 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5019 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5020 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5021 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5023 | else | ||
5024 | while :; do | ||
5025 | cat >conftest.$ac_ext <<_ACEOF | ||
5026 | /* confdefs.h. */ | ||
5027 | _ACEOF | ||
5028 | cat confdefs.h >>conftest.$ac_ext | ||
5029 | cat >>conftest.$ac_ext <<_ACEOF | ||
5030 | /* end confdefs.h. */ | ||
5031 | #include <sys/types.h> | ||
5032 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5033 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5034 | since some C++ compilers masquerading as C compilers | ||
5035 | incorrectly reject 9223372036854775807. */ | ||
5036 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5037 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5038 | && LARGE_OFF_T % 2147483647 == 1) | ||
5039 | ? 1 : -1]; | ||
5040 | int | ||
5041 | main () | ||
5042 | { | ||
5043 | |||
5044 | ; | ||
5045 | return 0; | ||
5046 | } | ||
5047 | _ACEOF | ||
5048 | rm -f conftest.$ac_objext | ||
5049 | if { (ac_try="$ac_compile" | ||
5050 | case "(($ac_try" in | ||
5051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5052 | *) ac_try_echo=$ac_try;; | ||
5053 | esac | ||
5054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5055 | (eval "$ac_compile") 2>conftest.er1 | ||
5056 | ac_status=$? | ||
5057 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5058 | rm -f conftest.er1 | ||
5059 | cat conftest.err >&5 | ||
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5061 | (exit $ac_status); } && { | ||
5062 | test -z "$ac_c_werror_flag" || | ||
5063 | test ! -s conftest.err | ||
5064 | } && test -s conftest.$ac_objext; then | ||
5065 | ac_cv_sys_large_files=no; break | ||
5066 | else | ||
5067 | echo "$as_me: failed program was:" >&5 | ||
5068 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5069 | |||
5070 | |||
5071 | fi | ||
5072 | |||
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5074 | cat >conftest.$ac_ext <<_ACEOF | ||
5075 | /* confdefs.h. */ | ||
5076 | _ACEOF | ||
5077 | cat confdefs.h >>conftest.$ac_ext | ||
5078 | cat >>conftest.$ac_ext <<_ACEOF | ||
5079 | /* end confdefs.h. */ | ||
5080 | #define _LARGE_FILES 1 | ||
5081 | #include <sys/types.h> | ||
5082 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5083 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5084 | since some C++ compilers masquerading as C compilers | ||
5085 | incorrectly reject 9223372036854775807. */ | ||
5086 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5087 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5088 | && LARGE_OFF_T % 2147483647 == 1) | ||
5089 | ? 1 : -1]; | ||
5090 | int | ||
5091 | main () | ||
5092 | { | ||
5093 | |||
5094 | ; | ||
5095 | return 0; | ||
5096 | } | ||
5097 | _ACEOF | ||
5098 | rm -f conftest.$ac_objext | ||
5099 | if { (ac_try="$ac_compile" | ||
5100 | case "(($ac_try" in | ||
5101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5102 | *) ac_try_echo=$ac_try;; | ||
5103 | esac | ||
5104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5105 | (eval "$ac_compile") 2>conftest.er1 | ||
5106 | ac_status=$? | ||
5107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5108 | rm -f conftest.er1 | ||
5109 | cat conftest.err >&5 | ||
5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5111 | (exit $ac_status); } && { | ||
5112 | test -z "$ac_c_werror_flag" || | ||
5113 | test ! -s conftest.err | ||
5114 | } && test -s conftest.$ac_objext; then | ||
5115 | ac_cv_sys_large_files=1; break | ||
5116 | else | ||
5117 | echo "$as_me: failed program was:" >&5 | ||
5118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5119 | |||
5120 | |||
5121 | fi | ||
5122 | |||
5123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5124 | ac_cv_sys_large_files=unknown | ||
5125 | break | ||
5126 | done | ||
5127 | fi | ||
5128 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5129 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5130 | case $ac_cv_sys_large_files in #( | ||
5131 | no | unknown) ;; | ||
5132 | *) | ||
5133 | cat >>confdefs.h <<_ACEOF | ||
5134 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5135 | _ACEOF | ||
5136 | ;; | ||
5137 | esac | ||
5138 | rm -f conftest* | ||
5139 | fi | ||
5140 | fi | ||
5141 | |||
5142 | |||
5143 | if test -z "$AR" ; then | ||
5144 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5145 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5146 | { (exit 1); exit 1; }; } | ||
5147 | fi | ||
5148 | |||
5149 | # Use LOGIN_PROGRAM from environment if possible | ||
5150 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5151 | |||
5152 | cat >>confdefs.h <<_ACEOF | ||
5153 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5154 | _ACEOF | ||
5155 | |||
5156 | else | ||
5157 | # Search for login | ||
5158 | # Extract the first word of "login", so it can be a program name with args. | ||
5159 | set dummy login; ac_word=$2 | ||
5160 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5162 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5164 | else | ||
5165 | case $LOGIN_PROGRAM_FALLBACK in | ||
5166 | [\\/]* | ?:[\\/]*) | ||
5167 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5168 | ;; | ||
5169 | *) | ||
5170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5171 | for as_dir in $PATH | ||
5172 | do | ||
5173 | IFS=$as_save_IFS | ||
5174 | test -z "$as_dir" && as_dir=. | ||
5175 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5177 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5179 | break 2 | ||
5180 | fi | ||
5181 | done | ||
5182 | done | ||
5183 | IFS=$as_save_IFS | ||
5184 | |||
5185 | ;; | ||
5186 | esac | ||
5187 | fi | ||
5188 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5189 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5190 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5191 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5192 | else | ||
5193 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5194 | echo "${ECHO_T}no" >&6; } | ||
5195 | fi | ||
5196 | |||
5197 | |||
5198 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5199 | cat >>confdefs.h <<_ACEOF | ||
5200 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5201 | _ACEOF | ||
5202 | |||
5203 | fi | ||
5204 | fi | ||
5205 | |||
5206 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5207 | set dummy passwd; ac_word=$2 | ||
5208 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5210 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5212 | else | ||
5213 | case $PATH_PASSWD_PROG in | ||
5214 | [\\/]* | ?:[\\/]*) | ||
5215 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5216 | ;; | ||
5217 | *) | ||
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5219 | for as_dir in $PATH | ||
5220 | do | ||
5221 | IFS=$as_save_IFS | ||
5222 | test -z "$as_dir" && as_dir=. | ||
5223 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5225 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5227 | break 2 | ||
5228 | fi | ||
5229 | done | ||
5230 | done | ||
5231 | IFS=$as_save_IFS | ||
5232 | |||
5233 | ;; | ||
5234 | esac | ||
5235 | fi | ||
5236 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5237 | if test -n "$PATH_PASSWD_PROG"; then | ||
5238 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5239 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5240 | else | ||
5241 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5242 | echo "${ECHO_T}no" >&6; } | ||
5243 | fi | ||
5244 | |||
5245 | |||
5246 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5247 | |||
5248 | cat >>confdefs.h <<_ACEOF | ||
5249 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5250 | _ACEOF | ||
5251 | |||
5252 | fi | ||
5253 | |||
5254 | if test -z "$LD" ; then | ||
5255 | LD=$CC | ||
5256 | fi | ||
5257 | |||
5258 | |||
5259 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5260 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5261 | if test "${ac_cv_c_inline+set}" = set; then | ||
5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5263 | else | ||
5264 | ac_cv_c_inline=no | ||
5265 | for ac_kw in inline __inline__ __inline; do | ||
5266 | cat >conftest.$ac_ext <<_ACEOF | ||
5267 | /* confdefs.h. */ | ||
5268 | _ACEOF | ||
5269 | cat confdefs.h >>conftest.$ac_ext | ||
5270 | cat >>conftest.$ac_ext <<_ACEOF | ||
5271 | /* end confdefs.h. */ | ||
5272 | #ifndef __cplusplus | ||
5273 | typedef int foo_t; | ||
5274 | static $ac_kw foo_t static_foo () {return 0; } | ||
5275 | $ac_kw foo_t foo () {return 0; } | ||
5276 | #endif | ||
5277 | |||
5278 | _ACEOF | ||
5279 | rm -f conftest.$ac_objext | ||
5280 | if { (ac_try="$ac_compile" | ||
5281 | case "(($ac_try" in | ||
5282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5283 | *) ac_try_echo=$ac_try;; | ||
5284 | esac | ||
5285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5286 | (eval "$ac_compile") 2>conftest.er1 | ||
5287 | ac_status=$? | ||
5288 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5289 | rm -f conftest.er1 | ||
5290 | cat conftest.err >&5 | ||
5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5292 | (exit $ac_status); } && { | ||
5293 | test -z "$ac_c_werror_flag" || | ||
5294 | test ! -s conftest.err | ||
5295 | } && test -s conftest.$ac_objext; then | ||
5296 | ac_cv_c_inline=$ac_kw | ||
5297 | else | ||
5298 | echo "$as_me: failed program was:" >&5 | ||
5299 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5300 | |||
5301 | |||
5302 | fi | ||
5303 | |||
5304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5305 | test "$ac_cv_c_inline" != no && break | ||
5306 | done | ||
5307 | |||
5308 | fi | ||
5309 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5310 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5311 | |||
5312 | |||
5313 | case $ac_cv_c_inline in | ||
5314 | inline | yes) ;; | ||
5315 | *) | ||
5316 | case $ac_cv_c_inline in | ||
5317 | no) ac_val=;; | ||
5318 | *) ac_val=$ac_cv_c_inline;; | ||
5319 | esac | ||
5320 | cat >>confdefs.h <<_ACEOF | ||
5321 | #ifndef __cplusplus | ||
5322 | #define inline $ac_val | ||
5323 | #endif | ||
5324 | _ACEOF | ||
5325 | ;; | ||
5326 | esac | ||
5327 | |||
5328 | |||
5329 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5330 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5331 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5333 | else | ||
5334 | cat >conftest.$ac_ext <<_ACEOF | ||
5335 | /* confdefs.h. */ | ||
5336 | _ACEOF | ||
5337 | cat confdefs.h >>conftest.$ac_ext | ||
5338 | cat >>conftest.$ac_ext <<_ACEOF | ||
5339 | /* end confdefs.h. */ | ||
5340 | #include <limits.h> | ||
5341 | |||
5342 | int | ||
5343 | main () | ||
5344 | { | ||
5345 | #ifndef LLONG_MAX | ||
5346 | (void) LLONG_MAX; | ||
5347 | #endif | ||
5348 | |||
5349 | ; | ||
5350 | return 0; | ||
5351 | } | ||
5352 | _ACEOF | ||
5353 | rm -f conftest.$ac_objext | ||
5354 | if { (ac_try="$ac_compile" | ||
5355 | case "(($ac_try" in | ||
5356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5357 | *) ac_try_echo=$ac_try;; | ||
5358 | esac | ||
5359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5360 | (eval "$ac_compile") 2>conftest.er1 | ||
5361 | ac_status=$? | ||
5362 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5363 | rm -f conftest.er1 | ||
5364 | cat conftest.err >&5 | ||
5365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5366 | (exit $ac_status); } && { | ||
5367 | test -z "$ac_c_werror_flag" || | ||
5368 | test ! -s conftest.err | ||
5369 | } && test -s conftest.$ac_objext; then | ||
5370 | ac_cv_have_decl_LLONG_MAX=yes | ||
5371 | else | ||
5372 | echo "$as_me: failed program was:" >&5 | ||
5373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5374 | |||
5375 | ac_cv_have_decl_LLONG_MAX=no | ||
5376 | fi | ||
5377 | |||
5378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5379 | fi | ||
5380 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5381 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5382 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5383 | have_llong_max=1 | ||
5384 | fi | ||
5385 | |||
5386 | |||
5387 | use_stack_protector=1 | ||
5388 | |||
5389 | # Check whether --with-stackprotect was given. | ||
5390 | if test "${with_stackprotect+set}" = set; then | ||
5391 | withval=$with_stackprotect; | ||
5392 | if test "x$withval" = "xno"; then | ||
5393 | use_stack_protector=0 | ||
5394 | fi | ||
5395 | fi | ||
5396 | |||
5397 | |||
5398 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5399 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5400 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5401 | case $GCC_VER in | ||
5402 | 1.*) no_attrib_nonnull=1 ;; | ||
5403 | 2.8* | 2.9*) | ||
5404 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5405 | no_attrib_nonnull=1 | ||
5406 | ;; | ||
5407 | 2.*) no_attrib_nonnull=1 ;; | ||
5408 | 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; | ||
5409 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;; | ||
5410 | *) ;; | ||
5411 | esac | ||
5412 | |||
5413 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5414 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
5415 | saved_CFLAGS="$CFLAGS" | ||
5416 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5417 | cat >conftest.$ac_ext <<_ACEOF | ||
5418 | /* confdefs.h. */ | ||
5419 | _ACEOF | ||
5420 | cat confdefs.h >>conftest.$ac_ext | ||
5421 | cat >>conftest.$ac_ext <<_ACEOF | ||
5422 | /* end confdefs.h. */ | ||
5423 | |||
5424 | #include <string.h> | ||
5425 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5426 | |||
5427 | _ACEOF | ||
5428 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5429 | if { (ac_try="$ac_link" | ||
5430 | case "(($ac_try" in | ||
5431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5432 | *) ac_try_echo=$ac_try;; | ||
5433 | esac | ||
5434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5435 | (eval "$ac_link") 2>conftest.er1 | ||
5436 | ac_status=$? | ||
5437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5438 | rm -f conftest.er1 | ||
5439 | cat conftest.err >&5 | ||
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5441 | (exit $ac_status); } && { | ||
5442 | test -z "$ac_c_werror_flag" || | ||
5443 | test ! -s conftest.err | ||
5444 | } && test -s conftest$ac_exeext && | ||
5445 | $as_test_x conftest$ac_exeext; then | ||
5446 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5447 | echo "${ECHO_T}yes" >&6; } | ||
5448 | else | ||
5449 | echo "$as_me: failed program was:" >&5 | ||
5450 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5451 | |||
5452 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5453 | echo "${ECHO_T}no" >&6; } | ||
5454 | CFLAGS="$saved_CFLAGS" | ||
5455 | |||
5456 | fi | ||
5457 | |||
5458 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5459 | conftest$ac_exeext conftest.$ac_ext | ||
5460 | |||
5461 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5462 | # and/or platforms, so we test if we can. If it's not supported | ||
5463 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5464 | if test "x$use_stack_protector" = "x1"; then | ||
5465 | for t in -fstack-protector-all -fstack-protector; do | ||
5466 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5467 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
5468 | saved_CFLAGS="$CFLAGS" | ||
5469 | saved_LDFLAGS="$LDFLAGS" | ||
5470 | CFLAGS="$CFLAGS $t -Werror" | ||
5471 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5472 | cat >conftest.$ac_ext <<_ACEOF | ||
5473 | /* confdefs.h. */ | ||
5474 | _ACEOF | ||
5475 | cat confdefs.h >>conftest.$ac_ext | ||
5476 | cat >>conftest.$ac_ext <<_ACEOF | ||
5477 | /* end confdefs.h. */ | ||
5478 | |||
5479 | #include <stdio.h> | ||
5480 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5481 | |||
5482 | _ACEOF | ||
5483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5484 | if { (ac_try="$ac_link" | ||
5485 | case "(($ac_try" in | ||
5486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5487 | *) ac_try_echo=$ac_try;; | ||
5488 | esac | ||
5489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5490 | (eval "$ac_link") 2>conftest.er1 | ||
5491 | ac_status=$? | ||
5492 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5493 | rm -f conftest.er1 | ||
5494 | cat conftest.err >&5 | ||
5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5496 | (exit $ac_status); } && { | ||
5497 | test -z "$ac_c_werror_flag" || | ||
5498 | test ! -s conftest.err | ||
5499 | } && test -s conftest$ac_exeext && | ||
5500 | $as_test_x conftest$ac_exeext; then | ||
5501 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5502 | echo "${ECHO_T}yes" >&6; } | ||
5503 | CFLAGS="$saved_CFLAGS $t" | ||
5504 | LDFLAGS="$saved_LDFLAGS $t" | ||
5505 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5506 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
5507 | if test "$cross_compiling" = yes; then | ||
5508 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5509 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5510 | break | ||
5511 | |||
5512 | else | ||
5513 | cat >conftest.$ac_ext <<_ACEOF | ||
5514 | /* confdefs.h. */ | ||
5515 | _ACEOF | ||
5516 | cat confdefs.h >>conftest.$ac_ext | ||
5517 | cat >>conftest.$ac_ext <<_ACEOF | ||
5518 | /* end confdefs.h. */ | ||
5519 | |||
5520 | #include <stdio.h> | ||
5521 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5522 | |||
5523 | _ACEOF | ||
5524 | rm -f conftest$ac_exeext | ||
5525 | if { (ac_try="$ac_link" | ||
5526 | case "(($ac_try" in | ||
5527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5528 | *) ac_try_echo=$ac_try;; | ||
5529 | esac | ||
5530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5531 | (eval "$ac_link") 2>&5 | ||
5532 | ac_status=$? | ||
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5535 | { (case "(($ac_try" in | ||
5536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5537 | *) ac_try_echo=$ac_try;; | ||
5538 | esac | ||
5539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5540 | (eval "$ac_try") 2>&5 | ||
5541 | ac_status=$? | ||
5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5543 | (exit $ac_status); }; }; then | ||
5544 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5545 | echo "${ECHO_T}yes" >&6; } | ||
5546 | break | ||
5547 | else | ||
5548 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5549 | echo "$as_me: failed program was:" >&5 | ||
5550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5551 | |||
5552 | ( exit $ac_status ) | ||
5553 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5554 | echo "${ECHO_T}no" >&6; } | ||
5555 | fi | ||
5556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5557 | fi | ||
5558 | |||
5559 | |||
5560 | |||
5561 | else | ||
5562 | echo "$as_me: failed program was:" >&5 | ||
5563 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5564 | |||
5565 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5566 | echo "${ECHO_T}no" >&6; } | ||
5567 | |||
5568 | fi | ||
5569 | |||
5570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5571 | conftest$ac_exeext conftest.$ac_ext | ||
5572 | CFLAGS="$saved_CFLAGS" | ||
5573 | LDFLAGS="$saved_LDFLAGS" | ||
5574 | done | ||
5575 | fi | ||
5576 | |||
5577 | if test -z "$have_llong_max"; then | ||
5578 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5579 | unset ac_cv_have_decl_LLONG_MAX | ||
5580 | saved_CFLAGS="$CFLAGS" | ||
5581 | CFLAGS="$CFLAGS -std=gnu99" | ||
5582 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5583 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5584 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5586 | else | ||
5587 | cat >conftest.$ac_ext <<_ACEOF | ||
5588 | /* confdefs.h. */ | ||
5589 | _ACEOF | ||
5590 | cat confdefs.h >>conftest.$ac_ext | ||
5591 | cat >>conftest.$ac_ext <<_ACEOF | ||
5592 | /* end confdefs.h. */ | ||
5593 | #include <limits.h> | ||
5594 | |||
5595 | |||
5596 | int | ||
5597 | main () | ||
5598 | { | ||
5599 | #ifndef LLONG_MAX | ||
5600 | (void) LLONG_MAX; | ||
5601 | #endif | ||
5602 | |||
5603 | ; | ||
5604 | return 0; | ||
5605 | } | ||
5606 | _ACEOF | ||
5607 | rm -f conftest.$ac_objext | ||
5608 | if { (ac_try="$ac_compile" | ||
5609 | case "(($ac_try" in | ||
5610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5611 | *) ac_try_echo=$ac_try;; | ||
5612 | esac | ||
5613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5614 | (eval "$ac_compile") 2>conftest.er1 | ||
5615 | ac_status=$? | ||
5616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5617 | rm -f conftest.er1 | ||
5618 | cat conftest.err >&5 | ||
5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5620 | (exit $ac_status); } && { | ||
5621 | test -z "$ac_c_werror_flag" || | ||
5622 | test ! -s conftest.err | ||
5623 | } && test -s conftest.$ac_objext; then | ||
5624 | ac_cv_have_decl_LLONG_MAX=yes | ||
5625 | else | ||
5626 | echo "$as_me: failed program was:" >&5 | ||
5627 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5628 | |||
5629 | ac_cv_have_decl_LLONG_MAX=no | ||
5630 | fi | ||
5631 | |||
5632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5633 | fi | ||
5634 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5635 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5636 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5637 | have_llong_max=1 | ||
5638 | else | ||
5639 | CFLAGS="$saved_CFLAGS" | ||
5640 | fi | ||
5641 | |||
5642 | fi | ||
5643 | fi | ||
5644 | |||
5645 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5646 | |||
5647 | cat >>confdefs.h <<\_ACEOF | ||
5648 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
5649 | _ACEOF | ||
5650 | |||
5651 | fi | ||
5652 | |||
5653 | |||
5654 | # Check whether --with-rpath was given. | ||
5655 | if test "${with_rpath+set}" = set; then | ||
5656 | withval=$with_rpath; | ||
5657 | if test "x$withval" = "xno" ; then | ||
5658 | need_dash_r="" | ||
5659 | fi | ||
5660 | if test "x$withval" = "xyes" ; then | ||
5661 | need_dash_r=1 | ||
5662 | fi | ||
5663 | |||
5664 | |||
5665 | fi | ||
5666 | |||
5667 | |||
5668 | # Allow user to specify flags | ||
5669 | |||
5670 | # Check whether --with-cflags was given. | ||
5671 | if test "${with_cflags+set}" = set; then | ||
5672 | withval=$with_cflags; | ||
5673 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5674 | test "x${withval}" != "xyes"; then | ||
5675 | CFLAGS="$CFLAGS $withval" | ||
5676 | fi | ||
5677 | |||
5678 | |||
5679 | fi | ||
5680 | |||
5681 | |||
5682 | # Check whether --with-cppflags was given. | ||
5683 | if test "${with_cppflags+set}" = set; then | ||
5684 | withval=$with_cppflags; | ||
5685 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5686 | test "x${withval}" != "xyes"; then | ||
5687 | CPPFLAGS="$CPPFLAGS $withval" | ||
5688 | fi | ||
5689 | |||
5690 | |||
5691 | fi | ||
5692 | |||
5693 | |||
5694 | # Check whether --with-ldflags was given. | ||
5695 | if test "${with_ldflags+set}" = set; then | ||
5696 | withval=$with_ldflags; | ||
5697 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5698 | test "x${withval}" != "xyes"; then | ||
5699 | LDFLAGS="$LDFLAGS $withval" | ||
5700 | fi | ||
5701 | |||
5702 | |||
5703 | fi | ||
5704 | |||
5705 | |||
5706 | # Check whether --with-libs was given. | ||
5707 | if test "${with_libs+set}" = set; then | ||
5708 | withval=$with_libs; | ||
5709 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5710 | test "x${withval}" != "xyes"; then | ||
5711 | LIBS="$LIBS $withval" | ||
5712 | fi | ||
5713 | |||
5714 | |||
5715 | fi | ||
5716 | |||
5717 | |||
5718 | # Check whether --with-Werror was given. | ||
5719 | if test "${with_Werror+set}" = set; then | ||
5720 | withval=$with_Werror; | ||
5721 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5722 | werror_flags="-Werror" | ||
5723 | if test "x${withval}" != "xyes"; then | ||
5724 | werror_flags="$withval" | ||
5725 | fi | ||
5726 | fi | ||
5727 | |||
5728 | |||
5729 | fi | ||
5730 | |||
5731 | |||
5732 | |||
5733 | |||
5734 | |||
5735 | |||
5736 | |||
5737 | |||
5738 | |||
5739 | |||
5740 | |||
5741 | |||
5742 | |||
5743 | |||
5744 | |||
5745 | |||
5746 | |||
5747 | |||
5748 | |||
5749 | |||
5750 | |||
5751 | |||
5752 | |||
5753 | |||
5754 | |||
5755 | |||
5756 | |||
5757 | |||
5758 | |||
5759 | |||
5760 | |||
5761 | |||
5762 | |||
5763 | |||
5764 | |||
5765 | |||
5766 | |||
5767 | |||
5768 | |||
5769 | |||
5770 | |||
5771 | |||
5772 | |||
5773 | |||
5774 | |||
5775 | |||
5776 | |||
5777 | |||
5778 | |||
5779 | |||
5780 | |||
5781 | |||
5782 | |||
5783 | |||
5784 | |||
5785 | |||
5786 | |||
5787 | |||
5788 | |||
5789 | |||
5790 | |||
5791 | |||
5792 | |||
5793 | |||
5794 | |||
5795 | for ac_header in \ | ||
5796 | bstring.h \ | ||
5797 | crypt.h \ | ||
5798 | crypto/sha2.h \ | ||
5799 | dirent.h \ | ||
5800 | endian.h \ | ||
5801 | features.h \ | ||
5802 | fcntl.h \ | ||
5803 | floatingpoint.h \ | ||
5804 | getopt.h \ | ||
5805 | glob.h \ | ||
5806 | ia.h \ | ||
5807 | iaf.h \ | ||
5808 | limits.h \ | ||
5809 | login.h \ | ||
5810 | maillock.h \ | ||
5811 | ndir.h \ | ||
5812 | net/if_tun.h \ | ||
5813 | netdb.h \ | ||
5814 | netgroup.h \ | ||
5815 | pam/pam_appl.h \ | ||
5816 | paths.h \ | ||
5817 | poll.h \ | ||
5818 | pty.h \ | ||
5819 | readpassphrase.h \ | ||
5820 | rpc/types.h \ | ||
5821 | security/pam_appl.h \ | ||
5822 | sha2.h \ | ||
5823 | shadow.h \ | ||
5824 | stddef.h \ | ||
5825 | stdint.h \ | ||
5826 | string.h \ | ||
5827 | strings.h \ | ||
5828 | sys/audit.h \ | ||
5829 | sys/bitypes.h \ | ||
5830 | sys/bsdtty.h \ | ||
5831 | sys/cdefs.h \ | ||
5832 | sys/dir.h \ | ||
5833 | sys/mman.h \ | ||
5834 | sys/ndir.h \ | ||
5835 | sys/poll.h \ | ||
5836 | sys/prctl.h \ | ||
5837 | sys/pstat.h \ | ||
5838 | sys/select.h \ | ||
5839 | sys/stat.h \ | ||
5840 | sys/stream.h \ | ||
5841 | sys/stropts.h \ | ||
5842 | sys/strtio.h \ | ||
5843 | sys/statvfs.h \ | ||
5844 | sys/sysmacros.h \ | ||
5845 | sys/time.h \ | ||
5846 | sys/timers.h \ | ||
5847 | sys/un.h \ | ||
5848 | time.h \ | ||
5849 | tmpdir.h \ | ||
5850 | ttyent.h \ | ||
5851 | ucred.h \ | ||
5852 | unistd.h \ | ||
5853 | usersec.h \ | ||
5854 | util.h \ | ||
5855 | utime.h \ | ||
5856 | utmp.h \ | ||
5857 | utmpx.h \ | ||
5858 | vis.h \ | ||
5859 | |||
5860 | do | ||
5861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5867 | fi | ||
5868 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5870 | echo "${ECHO_T}$ac_res" >&6; } | ||
5871 | else | ||
5872 | # Is the header compilable? | ||
5873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5875 | cat >conftest.$ac_ext <<_ACEOF | ||
5876 | /* confdefs.h. */ | ||
5877 | _ACEOF | ||
5878 | cat confdefs.h >>conftest.$ac_ext | ||
5879 | cat >>conftest.$ac_ext <<_ACEOF | ||
5880 | /* end confdefs.h. */ | ||
5881 | $ac_includes_default | ||
5882 | #include <$ac_header> | ||
5883 | _ACEOF | ||
5884 | rm -f conftest.$ac_objext | ||
5885 | if { (ac_try="$ac_compile" | ||
5886 | case "(($ac_try" in | ||
5887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5888 | *) ac_try_echo=$ac_try;; | ||
5889 | esac | ||
5890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5891 | (eval "$ac_compile") 2>conftest.er1 | ||
5892 | ac_status=$? | ||
5893 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5894 | rm -f conftest.er1 | ||
5895 | cat conftest.err >&5 | ||
5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5897 | (exit $ac_status); } && { | ||
5898 | test -z "$ac_c_werror_flag" || | ||
5899 | test ! -s conftest.err | ||
5900 | } && test -s conftest.$ac_objext; then | ||
5901 | ac_header_compiler=yes | ||
5902 | else | ||
5903 | echo "$as_me: failed program was:" >&5 | ||
5904 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5905 | |||
5906 | ac_header_compiler=no | ||
5907 | fi | ||
5908 | |||
5909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5911 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5912 | |||
5913 | # Is the header present? | ||
5914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5916 | cat >conftest.$ac_ext <<_ACEOF | ||
5917 | /* confdefs.h. */ | ||
5918 | _ACEOF | ||
5919 | cat confdefs.h >>conftest.$ac_ext | ||
5920 | cat >>conftest.$ac_ext <<_ACEOF | ||
5921 | /* end confdefs.h. */ | ||
5922 | #include <$ac_header> | ||
5923 | _ACEOF | ||
5924 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5925 | case "(($ac_try" in | ||
5926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5927 | *) ac_try_echo=$ac_try;; | ||
5928 | esac | ||
5929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5931 | ac_status=$? | ||
5932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5933 | rm -f conftest.er1 | ||
5934 | cat conftest.err >&5 | ||
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5936 | (exit $ac_status); } >/dev/null && { | ||
5937 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5938 | test ! -s conftest.err | ||
5939 | }; then | ||
5940 | ac_header_preproc=yes | ||
5941 | else | ||
5942 | echo "$as_me: failed program was:" >&5 | ||
5943 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5944 | |||
5945 | ac_header_preproc=no | ||
5946 | fi | ||
5947 | |||
5948 | rm -f conftest.err conftest.$ac_ext | ||
5949 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5950 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5951 | |||
5952 | # So? What about this header? | ||
5953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5954 | yes:no: ) | ||
5955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5959 | ac_header_preproc=yes | ||
5960 | ;; | ||
5961 | no:yes:* ) | ||
5962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5974 | ( cat <<\_ASBOX | ||
5975 | ## ------------------------------------------- ## | ||
5976 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5977 | ## ------------------------------------------- ## | ||
5978 | _ASBOX | ||
5979 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5980 | ;; | ||
5981 | esac | ||
5982 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5984 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5986 | else | ||
5987 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5988 | fi | ||
5989 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5991 | echo "${ECHO_T}$ac_res" >&6; } | ||
5992 | |||
5993 | fi | ||
5994 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5995 | cat >>confdefs.h <<_ACEOF | ||
5996 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5997 | _ACEOF | ||
5998 | |||
5999 | fi | ||
6000 | |||
6001 | done | ||
6002 | |||
6003 | |||
6004 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6005 | |||
6006 | for ac_header in lastlog.h | ||
6007 | do | ||
6008 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6009 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6013 | else | ||
6014 | cat >conftest.$ac_ext <<_ACEOF | ||
6015 | /* confdefs.h. */ | ||
6016 | _ACEOF | ||
6017 | cat confdefs.h >>conftest.$ac_ext | ||
6018 | cat >>conftest.$ac_ext <<_ACEOF | ||
6019 | /* end confdefs.h. */ | ||
6020 | |||
6021 | #ifdef HAVE_SYS_TIME_H | ||
6022 | # include <sys/time.h> | ||
6023 | #endif | ||
6024 | |||
6025 | |||
6026 | #include <$ac_header> | ||
6027 | _ACEOF | ||
6028 | rm -f conftest.$ac_objext | ||
6029 | if { (ac_try="$ac_compile" | ||
6030 | case "(($ac_try" in | ||
6031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6032 | *) ac_try_echo=$ac_try;; | ||
6033 | esac | ||
6034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6035 | (eval "$ac_compile") 2>conftest.er1 | ||
6036 | ac_status=$? | ||
6037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6038 | rm -f conftest.er1 | ||
6039 | cat conftest.err >&5 | ||
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6041 | (exit $ac_status); } && { | ||
6042 | test -z "$ac_c_werror_flag" || | ||
6043 | test ! -s conftest.err | ||
6044 | } && test -s conftest.$ac_objext; then | ||
6045 | eval "$as_ac_Header=yes" | ||
6046 | else | ||
6047 | echo "$as_me: failed program was:" >&5 | ||
6048 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6049 | |||
6050 | eval "$as_ac_Header=no" | ||
6051 | fi | ||
6052 | |||
6053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6054 | fi | ||
6055 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6057 | echo "${ECHO_T}$ac_res" >&6; } | ||
6058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6059 | cat >>confdefs.h <<_ACEOF | ||
6060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6061 | _ACEOF | ||
6062 | |||
6063 | fi | ||
6064 | |||
6065 | done | ||
6066 | |||
6067 | |||
6068 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6069 | |||
6070 | for ac_header in sys/ptms.h | ||
6071 | do | ||
6072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6073 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6074 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6075 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6077 | else | ||
6078 | cat >conftest.$ac_ext <<_ACEOF | ||
6079 | /* confdefs.h. */ | ||
6080 | _ACEOF | ||
6081 | cat confdefs.h >>conftest.$ac_ext | ||
6082 | cat >>conftest.$ac_ext <<_ACEOF | ||
6083 | /* end confdefs.h. */ | ||
6084 | |||
6085 | #ifdef HAVE_SYS_STREAM_H | ||
6086 | # include <sys/stream.h> | ||
6087 | #endif | ||
6088 | |||
6089 | |||
6090 | #include <$ac_header> | ||
6091 | _ACEOF | ||
6092 | rm -f conftest.$ac_objext | ||
6093 | if { (ac_try="$ac_compile" | ||
6094 | case "(($ac_try" in | ||
6095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6096 | *) ac_try_echo=$ac_try;; | ||
6097 | esac | ||
6098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6099 | (eval "$ac_compile") 2>conftest.er1 | ||
6100 | ac_status=$? | ||
6101 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6102 | rm -f conftest.er1 | ||
6103 | cat conftest.err >&5 | ||
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6105 | (exit $ac_status); } && { | ||
6106 | test -z "$ac_c_werror_flag" || | ||
6107 | test ! -s conftest.err | ||
6108 | } && test -s conftest.$ac_objext; then | ||
6109 | eval "$as_ac_Header=yes" | ||
6110 | else | ||
6111 | echo "$as_me: failed program was:" >&5 | ||
6112 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6113 | |||
6114 | eval "$as_ac_Header=no" | ||
6115 | fi | ||
6116 | |||
6117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6118 | fi | ||
6119 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6120 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6121 | echo "${ECHO_T}$ac_res" >&6; } | ||
6122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6123 | cat >>confdefs.h <<_ACEOF | ||
6124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6125 | _ACEOF | ||
6126 | |||
6127 | fi | ||
6128 | |||
6129 | done | ||
6130 | |||
6131 | |||
6132 | # login_cap.h requires sys/types.h on NetBSD | ||
6133 | |||
6134 | for ac_header in login_cap.h | ||
6135 | do | ||
6136 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6137 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6141 | else | ||
6142 | cat >conftest.$ac_ext <<_ACEOF | ||
6143 | /* confdefs.h. */ | ||
6144 | _ACEOF | ||
6145 | cat confdefs.h >>conftest.$ac_ext | ||
6146 | cat >>conftest.$ac_ext <<_ACEOF | ||
6147 | /* end confdefs.h. */ | ||
6148 | |||
6149 | #include <sys/types.h> | ||
6150 | |||
6151 | |||
6152 | #include <$ac_header> | ||
6153 | _ACEOF | ||
6154 | rm -f conftest.$ac_objext | ||
6155 | if { (ac_try="$ac_compile" | ||
6156 | case "(($ac_try" in | ||
6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6158 | *) ac_try_echo=$ac_try;; | ||
6159 | esac | ||
6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6161 | (eval "$ac_compile") 2>conftest.er1 | ||
6162 | ac_status=$? | ||
6163 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6164 | rm -f conftest.er1 | ||
6165 | cat conftest.err >&5 | ||
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6167 | (exit $ac_status); } && { | ||
6168 | test -z "$ac_c_werror_flag" || | ||
6169 | test ! -s conftest.err | ||
6170 | } && test -s conftest.$ac_objext; then | ||
6171 | eval "$as_ac_Header=yes" | ||
6172 | else | ||
6173 | echo "$as_me: failed program was:" >&5 | ||
6174 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6175 | |||
6176 | eval "$as_ac_Header=no" | ||
6177 | fi | ||
6178 | |||
6179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6180 | fi | ||
6181 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6183 | echo "${ECHO_T}$ac_res" >&6; } | ||
6184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6185 | cat >>confdefs.h <<_ACEOF | ||
6186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6187 | _ACEOF | ||
6188 | |||
6189 | fi | ||
6190 | |||
6191 | done | ||
6192 | |||
6193 | |||
6194 | # older BSDs need sys/param.h before sys/mount.h | ||
6195 | |||
6196 | for ac_header in sys/mount.h | ||
6197 | do | ||
6198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6199 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6203 | else | ||
6204 | cat >conftest.$ac_ext <<_ACEOF | ||
6205 | /* confdefs.h. */ | ||
6206 | _ACEOF | ||
6207 | cat confdefs.h >>conftest.$ac_ext | ||
6208 | cat >>conftest.$ac_ext <<_ACEOF | ||
6209 | /* end confdefs.h. */ | ||
6210 | |||
6211 | #include <sys/param.h> | ||
6212 | |||
6213 | |||
6214 | #include <$ac_header> | ||
6215 | _ACEOF | ||
6216 | rm -f conftest.$ac_objext | ||
6217 | if { (ac_try="$ac_compile" | ||
6218 | case "(($ac_try" in | ||
6219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6220 | *) ac_try_echo=$ac_try;; | ||
6221 | esac | ||
6222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6223 | (eval "$ac_compile") 2>conftest.er1 | ||
6224 | ac_status=$? | ||
6225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6226 | rm -f conftest.er1 | ||
6227 | cat conftest.err >&5 | ||
6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6229 | (exit $ac_status); } && { | ||
6230 | test -z "$ac_c_werror_flag" || | ||
6231 | test ! -s conftest.err | ||
6232 | } && test -s conftest.$ac_objext; then | ||
6233 | eval "$as_ac_Header=yes" | ||
6234 | else | ||
6235 | echo "$as_me: failed program was:" >&5 | ||
6236 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6237 | |||
6238 | eval "$as_ac_Header=no" | ||
6239 | fi | ||
6240 | |||
6241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6242 | fi | ||
6243 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6244 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6245 | echo "${ECHO_T}$ac_res" >&6; } | ||
6246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6247 | cat >>confdefs.h <<_ACEOF | ||
6248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6249 | _ACEOF | ||
6250 | |||
6251 | fi | ||
6252 | |||
6253 | done | ||
6254 | |||
6255 | |||
6256 | # Messages for features tested for in target-specific section | ||
6257 | SIA_MSG="no" | ||
6258 | SPC_MSG="no" | ||
6259 | |||
6260 | # Check for some target-specific stuff | ||
6261 | case "$host" in | ||
6262 | *-*-aix*) | ||
6263 | # Some versions of VAC won't allow macro redefinitions at | ||
6264 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6265 | # particularly with older versions of vac or xlc. | ||
6266 | # It also throws errors about null macro argments, but these are | ||
6267 | # not fatal. | ||
6268 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6269 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6270 | cat >conftest.$ac_ext <<_ACEOF | ||
6271 | /* confdefs.h. */ | ||
6272 | _ACEOF | ||
6273 | cat confdefs.h >>conftest.$ac_ext | ||
6274 | cat >>conftest.$ac_ext <<_ACEOF | ||
6275 | /* end confdefs.h. */ | ||
6276 | |||
6277 | #define testmacro foo | ||
6278 | #define testmacro bar | ||
6279 | int main(void) { exit(0); } | ||
6280 | |||
6281 | _ACEOF | ||
6282 | rm -f conftest.$ac_objext | ||
6283 | if { (ac_try="$ac_compile" | ||
6284 | case "(($ac_try" in | ||
6285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6286 | *) ac_try_echo=$ac_try;; | ||
6287 | esac | ||
6288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6289 | (eval "$ac_compile") 2>conftest.er1 | ||
6290 | ac_status=$? | ||
6291 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6292 | rm -f conftest.er1 | ||
6293 | cat conftest.err >&5 | ||
6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6295 | (exit $ac_status); } && { | ||
6296 | test -z "$ac_c_werror_flag" || | ||
6297 | test ! -s conftest.err | ||
6298 | } && test -s conftest.$ac_objext; then | ||
6299 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6300 | echo "${ECHO_T}yes" >&6; } | ||
6301 | else | ||
6302 | echo "$as_me: failed program was:" >&5 | ||
6303 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6304 | |||
6305 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6306 | echo "${ECHO_T}no" >&6; } | ||
6307 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6308 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6309 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6310 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6311 | |||
6312 | |||
6313 | fi | ||
6314 | |||
6315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6316 | |||
6317 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6318 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6319 | if (test -z "$blibpath"); then | ||
6320 | blibpath="/usr/lib:/lib" | ||
6321 | fi | ||
6322 | saved_LDFLAGS="$LDFLAGS" | ||
6323 | if test "$GCC" = "yes"; then | ||
6324 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6325 | else | ||
6326 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6327 | fi | ||
6328 | for tryflags in $flags ;do | ||
6329 | if (test -z "$blibflags"); then | ||
6330 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6331 | cat >conftest.$ac_ext <<_ACEOF | ||
6332 | /* confdefs.h. */ | ||
6333 | _ACEOF | ||
6334 | cat confdefs.h >>conftest.$ac_ext | ||
6335 | cat >>conftest.$ac_ext <<_ACEOF | ||
6336 | /* end confdefs.h. */ | ||
6337 | |||
6338 | int | ||
6339 | main () | ||
6340 | { | ||
6341 | |||
6342 | ; | ||
6343 | return 0; | ||
6344 | } | ||
6345 | _ACEOF | ||
6346 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6347 | if { (ac_try="$ac_link" | ||
6348 | case "(($ac_try" in | ||
6349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6350 | *) ac_try_echo=$ac_try;; | ||
6351 | esac | ||
6352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6353 | (eval "$ac_link") 2>conftest.er1 | ||
6354 | ac_status=$? | ||
6355 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6356 | rm -f conftest.er1 | ||
6357 | cat conftest.err >&5 | ||
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6359 | (exit $ac_status); } && { | ||
6360 | test -z "$ac_c_werror_flag" || | ||
6361 | test ! -s conftest.err | ||
6362 | } && test -s conftest$ac_exeext && | ||
6363 | $as_test_x conftest$ac_exeext; then | ||
6364 | blibflags=$tryflags | ||
6365 | else | ||
6366 | echo "$as_me: failed program was:" >&5 | ||
6367 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6368 | |||
6369 | |||
6370 | fi | ||
6371 | |||
6372 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6373 | conftest$ac_exeext conftest.$ac_ext | ||
6374 | fi | ||
6375 | done | ||
6376 | if (test -z "$blibflags"); then | ||
6377 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6378 | echo "${ECHO_T}not found" >&6; } | ||
6379 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6380 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6381 | { (exit 1); exit 1; }; } | ||
6382 | else | ||
6383 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6384 | echo "${ECHO_T}$blibflags" >&6; } | ||
6385 | fi | ||
6386 | LDFLAGS="$saved_LDFLAGS" | ||
6387 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6388 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6389 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6391 | else | ||
6392 | cat >conftest.$ac_ext <<_ACEOF | ||
6393 | /* confdefs.h. */ | ||
6394 | _ACEOF | ||
6395 | cat confdefs.h >>conftest.$ac_ext | ||
6396 | cat >>conftest.$ac_ext <<_ACEOF | ||
6397 | /* end confdefs.h. */ | ||
6398 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6400 | #define authenticate innocuous_authenticate | ||
6401 | |||
6402 | /* System header to define __stub macros and hopefully few prototypes, | ||
6403 | which can conflict with char authenticate (); below. | ||
6404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6405 | <limits.h> exists even on freestanding compilers. */ | ||
6406 | |||
6407 | #ifdef __STDC__ | ||
6408 | # include <limits.h> | ||
6409 | #else | ||
6410 | # include <assert.h> | ||
6411 | #endif | ||
6412 | |||
6413 | #undef authenticate | ||
6414 | |||
6415 | /* Override any GCC internal prototype to avoid an error. | ||
6416 | Use char because int might match the return type of a GCC | ||
6417 | builtin and then its argument prototype would still apply. */ | ||
6418 | #ifdef __cplusplus | ||
6419 | extern "C" | ||
6420 | #endif | ||
6421 | char authenticate (); | ||
6422 | /* The GNU C library defines this for functions which it implements | ||
6423 | to always fail with ENOSYS. Some functions are actually named | ||
6424 | something starting with __ and the normal name is an alias. */ | ||
6425 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6426 | choke me | ||
6427 | #endif | ||
6428 | |||
6429 | int | ||
6430 | main () | ||
6431 | { | ||
6432 | return authenticate (); | ||
6433 | ; | ||
6434 | return 0; | ||
6435 | } | ||
6436 | _ACEOF | ||
6437 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6438 | if { (ac_try="$ac_link" | ||
6439 | case "(($ac_try" in | ||
6440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6441 | *) ac_try_echo=$ac_try;; | ||
6442 | esac | ||
6443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6444 | (eval "$ac_link") 2>conftest.er1 | ||
6445 | ac_status=$? | ||
6446 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6447 | rm -f conftest.er1 | ||
6448 | cat conftest.err >&5 | ||
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6450 | (exit $ac_status); } && { | ||
6451 | test -z "$ac_c_werror_flag" || | ||
6452 | test ! -s conftest.err | ||
6453 | } && test -s conftest$ac_exeext && | ||
6454 | $as_test_x conftest$ac_exeext; then | ||
6455 | ac_cv_func_authenticate=yes | ||
6456 | else | ||
6457 | echo "$as_me: failed program was:" >&5 | ||
6458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6459 | |||
6460 | ac_cv_func_authenticate=no | ||
6461 | fi | ||
6462 | |||
6463 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6464 | conftest$ac_exeext conftest.$ac_ext | ||
6465 | fi | ||
6466 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6467 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6468 | if test $ac_cv_func_authenticate = yes; then | ||
6469 | |||
6470 | cat >>confdefs.h <<\_ACEOF | ||
6471 | #define WITH_AIXAUTHENTICATE 1 | ||
6472 | _ACEOF | ||
6473 | |||
6474 | else | ||
6475 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6476 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6477 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6479 | else | ||
6480 | ac_check_lib_save_LIBS=$LIBS | ||
6481 | LIBS="-ls $LIBS" | ||
6482 | cat >conftest.$ac_ext <<_ACEOF | ||
6483 | /* confdefs.h. */ | ||
6484 | _ACEOF | ||
6485 | cat confdefs.h >>conftest.$ac_ext | ||
6486 | cat >>conftest.$ac_ext <<_ACEOF | ||
6487 | /* end confdefs.h. */ | ||
6488 | |||
6489 | /* Override any GCC internal prototype to avoid an error. | ||
6490 | Use char because int might match the return type of a GCC | ||
6491 | builtin and then its argument prototype would still apply. */ | ||
6492 | #ifdef __cplusplus | ||
6493 | extern "C" | ||
6494 | #endif | ||
6495 | char authenticate (); | ||
6496 | int | ||
6497 | main () | ||
6498 | { | ||
6499 | return authenticate (); | ||
6500 | ; | ||
6501 | return 0; | ||
6502 | } | ||
6503 | _ACEOF | ||
6504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6505 | if { (ac_try="$ac_link" | ||
6506 | case "(($ac_try" in | ||
6507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6508 | *) ac_try_echo=$ac_try;; | ||
6509 | esac | ||
6510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6511 | (eval "$ac_link") 2>conftest.er1 | ||
6512 | ac_status=$? | ||
6513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6514 | rm -f conftest.er1 | ||
6515 | cat conftest.err >&5 | ||
6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6517 | (exit $ac_status); } && { | ||
6518 | test -z "$ac_c_werror_flag" || | ||
6519 | test ! -s conftest.err | ||
6520 | } && test -s conftest$ac_exeext && | ||
6521 | $as_test_x conftest$ac_exeext; then | ||
6522 | ac_cv_lib_s_authenticate=yes | ||
6523 | else | ||
6524 | echo "$as_me: failed program was:" >&5 | ||
6525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6526 | |||
6527 | ac_cv_lib_s_authenticate=no | ||
6528 | fi | ||
6529 | |||
6530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6531 | conftest$ac_exeext conftest.$ac_ext | ||
6532 | LIBS=$ac_check_lib_save_LIBS | ||
6533 | fi | ||
6534 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6535 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6536 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6537 | cat >>confdefs.h <<\_ACEOF | ||
6538 | #define WITH_AIXAUTHENTICATE 1 | ||
6539 | _ACEOF | ||
6540 | |||
6541 | LIBS="$LIBS -ls" | ||
6542 | |||
6543 | fi | ||
6544 | |||
6545 | |||
6546 | fi | ||
6547 | |||
6548 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6549 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
6550 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6552 | else | ||
6553 | cat >conftest.$ac_ext <<_ACEOF | ||
6554 | /* confdefs.h. */ | ||
6555 | _ACEOF | ||
6556 | cat confdefs.h >>conftest.$ac_ext | ||
6557 | cat >>conftest.$ac_ext <<_ACEOF | ||
6558 | /* end confdefs.h. */ | ||
6559 | #include <usersec.h> | ||
6560 | |||
6561 | int | ||
6562 | main () | ||
6563 | { | ||
6564 | #ifndef authenticate | ||
6565 | (void) authenticate; | ||
6566 | #endif | ||
6567 | |||
6568 | ; | ||
6569 | return 0; | ||
6570 | } | ||
6571 | _ACEOF | ||
6572 | rm -f conftest.$ac_objext | ||
6573 | if { (ac_try="$ac_compile" | ||
6574 | case "(($ac_try" in | ||
6575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6576 | *) ac_try_echo=$ac_try;; | ||
6577 | esac | ||
6578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6579 | (eval "$ac_compile") 2>conftest.er1 | ||
6580 | ac_status=$? | ||
6581 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6582 | rm -f conftest.er1 | ||
6583 | cat conftest.err >&5 | ||
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6585 | (exit $ac_status); } && { | ||
6586 | test -z "$ac_c_werror_flag" || | ||
6587 | test ! -s conftest.err | ||
6588 | } && test -s conftest.$ac_objext; then | ||
6589 | ac_cv_have_decl_authenticate=yes | ||
6590 | else | ||
6591 | echo "$as_me: failed program was:" >&5 | ||
6592 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6593 | |||
6594 | ac_cv_have_decl_authenticate=no | ||
6595 | fi | ||
6596 | |||
6597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6598 | fi | ||
6599 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6600 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
6601 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6602 | |||
6603 | cat >>confdefs.h <<_ACEOF | ||
6604 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6605 | _ACEOF | ||
6606 | |||
6607 | |||
6608 | else | ||
6609 | cat >>confdefs.h <<_ACEOF | ||
6610 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6611 | _ACEOF | ||
6612 | |||
6613 | |||
6614 | fi | ||
6615 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6616 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
6617 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6619 | else | ||
6620 | cat >conftest.$ac_ext <<_ACEOF | ||
6621 | /* confdefs.h. */ | ||
6622 | _ACEOF | ||
6623 | cat confdefs.h >>conftest.$ac_ext | ||
6624 | cat >>conftest.$ac_ext <<_ACEOF | ||
6625 | /* end confdefs.h. */ | ||
6626 | #include <usersec.h> | ||
6627 | |||
6628 | int | ||
6629 | main () | ||
6630 | { | ||
6631 | #ifndef loginrestrictions | ||
6632 | (void) loginrestrictions; | ||
6633 | #endif | ||
6634 | |||
6635 | ; | ||
6636 | return 0; | ||
6637 | } | ||
6638 | _ACEOF | ||
6639 | rm -f conftest.$ac_objext | ||
6640 | if { (ac_try="$ac_compile" | ||
6641 | case "(($ac_try" in | ||
6642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6643 | *) ac_try_echo=$ac_try;; | ||
6644 | esac | ||
6645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6646 | (eval "$ac_compile") 2>conftest.er1 | ||
6647 | ac_status=$? | ||
6648 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6649 | rm -f conftest.er1 | ||
6650 | cat conftest.err >&5 | ||
6651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6652 | (exit $ac_status); } && { | ||
6653 | test -z "$ac_c_werror_flag" || | ||
6654 | test ! -s conftest.err | ||
6655 | } && test -s conftest.$ac_objext; then | ||
6656 | ac_cv_have_decl_loginrestrictions=yes | ||
6657 | else | ||
6658 | echo "$as_me: failed program was:" >&5 | ||
6659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6660 | |||
6661 | ac_cv_have_decl_loginrestrictions=no | ||
6662 | fi | ||
6663 | |||
6664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6665 | fi | ||
6666 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
6667 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
6668 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
6669 | |||
6670 | cat >>confdefs.h <<_ACEOF | ||
6671 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
6672 | _ACEOF | ||
6673 | |||
6674 | |||
6675 | else | ||
6676 | cat >>confdefs.h <<_ACEOF | ||
6677 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
6678 | _ACEOF | ||
6679 | |||
6680 | |||
6681 | fi | ||
6682 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
6683 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
6684 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
6685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6686 | else | ||
6687 | cat >conftest.$ac_ext <<_ACEOF | ||
6688 | /* confdefs.h. */ | ||
6689 | _ACEOF | ||
6690 | cat confdefs.h >>conftest.$ac_ext | ||
6691 | cat >>conftest.$ac_ext <<_ACEOF | ||
6692 | /* end confdefs.h. */ | ||
6693 | #include <usersec.h> | ||
6694 | |||
6695 | int | ||
6696 | main () | ||
6697 | { | ||
6698 | #ifndef loginsuccess | ||
6699 | (void) loginsuccess; | ||
6700 | #endif | ||
6701 | |||
6702 | ; | ||
6703 | return 0; | ||
6704 | } | ||
6705 | _ACEOF | ||
6706 | rm -f conftest.$ac_objext | ||
6707 | if { (ac_try="$ac_compile" | ||
6708 | case "(($ac_try" in | ||
6709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6710 | *) ac_try_echo=$ac_try;; | ||
6711 | esac | ||
6712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6713 | (eval "$ac_compile") 2>conftest.er1 | ||
6714 | ac_status=$? | ||
6715 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6716 | rm -f conftest.er1 | ||
6717 | cat conftest.err >&5 | ||
6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6719 | (exit $ac_status); } && { | ||
6720 | test -z "$ac_c_werror_flag" || | ||
6721 | test ! -s conftest.err | ||
6722 | } && test -s conftest.$ac_objext; then | ||
6723 | ac_cv_have_decl_loginsuccess=yes | ||
6724 | else | ||
6725 | echo "$as_me: failed program was:" >&5 | ||
6726 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6727 | |||
6728 | ac_cv_have_decl_loginsuccess=no | ||
6729 | fi | ||
6730 | |||
6731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6732 | fi | ||
6733 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
6734 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
6735 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
6736 | |||
6737 | cat >>confdefs.h <<_ACEOF | ||
6738 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
6739 | _ACEOF | ||
6740 | |||
6741 | |||
6742 | else | ||
6743 | cat >>confdefs.h <<_ACEOF | ||
6744 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
6745 | _ACEOF | ||
6746 | |||
6747 | |||
6748 | fi | ||
6749 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
6750 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
6751 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6753 | else | ||
6754 | cat >conftest.$ac_ext <<_ACEOF | ||
6755 | /* confdefs.h. */ | ||
6756 | _ACEOF | ||
6757 | cat confdefs.h >>conftest.$ac_ext | ||
6758 | cat >>conftest.$ac_ext <<_ACEOF | ||
6759 | /* end confdefs.h. */ | ||
6760 | #include <usersec.h> | ||
6761 | |||
6762 | int | ||
6763 | main () | ||
6764 | { | ||
6765 | #ifndef passwdexpired | ||
6766 | (void) passwdexpired; | ||
6767 | #endif | ||
6768 | |||
6769 | ; | ||
6770 | return 0; | ||
6771 | } | ||
6772 | _ACEOF | ||
6773 | rm -f conftest.$ac_objext | ||
6774 | if { (ac_try="$ac_compile" | ||
6775 | case "(($ac_try" in | ||
6776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6777 | *) ac_try_echo=$ac_try;; | ||
6778 | esac | ||
6779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6780 | (eval "$ac_compile") 2>conftest.er1 | ||
6781 | ac_status=$? | ||
6782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6783 | rm -f conftest.er1 | ||
6784 | cat conftest.err >&5 | ||
6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6786 | (exit $ac_status); } && { | ||
6787 | test -z "$ac_c_werror_flag" || | ||
6788 | test ! -s conftest.err | ||
6789 | } && test -s conftest.$ac_objext; then | ||
6790 | ac_cv_have_decl_passwdexpired=yes | ||
6791 | else | ||
6792 | echo "$as_me: failed program was:" >&5 | ||
6793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6794 | |||
6795 | ac_cv_have_decl_passwdexpired=no | ||
6796 | fi | ||
6797 | |||
6798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6799 | fi | ||
6800 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
6801 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
6802 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
6803 | |||
6804 | cat >>confdefs.h <<_ACEOF | ||
6805 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
6806 | _ACEOF | ||
6807 | |||
6808 | |||
6809 | else | ||
6810 | cat >>confdefs.h <<_ACEOF | ||
6811 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
6812 | _ACEOF | ||
6813 | |||
6814 | |||
6815 | fi | ||
6816 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
6817 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
6818 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
6819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6820 | else | ||
6821 | cat >conftest.$ac_ext <<_ACEOF | ||
6822 | /* confdefs.h. */ | ||
6823 | _ACEOF | ||
6824 | cat confdefs.h >>conftest.$ac_ext | ||
6825 | cat >>conftest.$ac_ext <<_ACEOF | ||
6826 | /* end confdefs.h. */ | ||
6827 | #include <usersec.h> | ||
6828 | |||
6829 | int | ||
6830 | main () | ||
6831 | { | ||
6832 | #ifndef setauthdb | ||
6833 | (void) setauthdb; | ||
6834 | #endif | ||
6835 | |||
6836 | ; | ||
6837 | return 0; | ||
6838 | } | ||
6839 | _ACEOF | ||
6840 | rm -f conftest.$ac_objext | ||
6841 | if { (ac_try="$ac_compile" | ||
6842 | case "(($ac_try" in | ||
6843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6844 | *) ac_try_echo=$ac_try;; | ||
6845 | esac | ||
6846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6847 | (eval "$ac_compile") 2>conftest.er1 | ||
6848 | ac_status=$? | ||
6849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6850 | rm -f conftest.er1 | ||
6851 | cat conftest.err >&5 | ||
6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6853 | (exit $ac_status); } && { | ||
6854 | test -z "$ac_c_werror_flag" || | ||
6855 | test ! -s conftest.err | ||
6856 | } && test -s conftest.$ac_objext; then | ||
6857 | ac_cv_have_decl_setauthdb=yes | ||
6858 | else | ||
6859 | echo "$as_me: failed program was:" >&5 | ||
6860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6861 | |||
6862 | ac_cv_have_decl_setauthdb=no | ||
6863 | fi | ||
6864 | |||
6865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6866 | fi | ||
6867 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
6868 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
6869 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
6870 | |||
6871 | cat >>confdefs.h <<_ACEOF | ||
6872 | #define HAVE_DECL_SETAUTHDB 1 | ||
6873 | _ACEOF | ||
6874 | |||
6875 | |||
6876 | else | ||
6877 | cat >>confdefs.h <<_ACEOF | ||
6878 | #define HAVE_DECL_SETAUTHDB 0 | ||
6879 | _ACEOF | ||
6880 | |||
6881 | |||
6882 | fi | ||
6883 | |||
6884 | |||
6885 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
6886 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
6887 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6889 | else | ||
6890 | cat >conftest.$ac_ext <<_ACEOF | ||
6891 | /* confdefs.h. */ | ||
6892 | _ACEOF | ||
6893 | cat confdefs.h >>conftest.$ac_ext | ||
6894 | cat >>conftest.$ac_ext <<_ACEOF | ||
6895 | /* end confdefs.h. */ | ||
6896 | #include <usersec.h> | ||
6897 | |||
6898 | |||
6899 | int | ||
6900 | main () | ||
6901 | { | ||
6902 | #ifndef loginfailed | ||
6903 | (void) loginfailed; | ||
6904 | #endif | ||
6905 | |||
6906 | ; | ||
6907 | return 0; | ||
6908 | } | ||
6909 | _ACEOF | ||
6910 | rm -f conftest.$ac_objext | ||
6911 | if { (ac_try="$ac_compile" | ||
6912 | case "(($ac_try" in | ||
6913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6914 | *) ac_try_echo=$ac_try;; | ||
6915 | esac | ||
6916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6917 | (eval "$ac_compile") 2>conftest.er1 | ||
6918 | ac_status=$? | ||
6919 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6920 | rm -f conftest.er1 | ||
6921 | cat conftest.err >&5 | ||
6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6923 | (exit $ac_status); } && { | ||
6924 | test -z "$ac_c_werror_flag" || | ||
6925 | test ! -s conftest.err | ||
6926 | } && test -s conftest.$ac_objext; then | ||
6927 | ac_cv_have_decl_loginfailed=yes | ||
6928 | else | ||
6929 | echo "$as_me: failed program was:" >&5 | ||
6930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6931 | |||
6932 | ac_cv_have_decl_loginfailed=no | ||
6933 | fi | ||
6934 | |||
6935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6936 | fi | ||
6937 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
6938 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
6939 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
6940 | |||
6941 | cat >>confdefs.h <<_ACEOF | ||
6942 | #define HAVE_DECL_LOGINFAILED 1 | ||
6943 | _ACEOF | ||
6944 | |||
6945 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
6946 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
6947 | cat >conftest.$ac_ext <<_ACEOF | ||
6948 | /* confdefs.h. */ | ||
6949 | _ACEOF | ||
6950 | cat confdefs.h >>conftest.$ac_ext | ||
6951 | cat >>conftest.$ac_ext <<_ACEOF | ||
6952 | /* end confdefs.h. */ | ||
6953 | #include <usersec.h> | ||
6954 | int | ||
6955 | main () | ||
6956 | { | ||
6957 | (void)loginfailed("user","host","tty",0); | ||
6958 | ; | ||
6959 | return 0; | ||
6960 | } | ||
6961 | _ACEOF | ||
6962 | rm -f conftest.$ac_objext | ||
6963 | if { (ac_try="$ac_compile" | ||
6964 | case "(($ac_try" in | ||
6965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6966 | *) ac_try_echo=$ac_try;; | ||
6967 | esac | ||
6968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6969 | (eval "$ac_compile") 2>conftest.er1 | ||
6970 | ac_status=$? | ||
6971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6972 | rm -f conftest.er1 | ||
6973 | cat conftest.err >&5 | ||
6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6975 | (exit $ac_status); } && { | ||
6976 | test -z "$ac_c_werror_flag" || | ||
6977 | test ! -s conftest.err | ||
6978 | } && test -s conftest.$ac_objext; then | ||
6979 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6980 | echo "${ECHO_T}yes" >&6; } | ||
6981 | |||
6982 | cat >>confdefs.h <<\_ACEOF | ||
6983 | #define AIX_LOGINFAILED_4ARG 1 | ||
6984 | _ACEOF | ||
6985 | |||
6986 | else | ||
6987 | echo "$as_me: failed program was:" >&5 | ||
6988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6989 | |||
6990 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6991 | echo "${ECHO_T}no" >&6; } | ||
6992 | |||
6993 | fi | ||
6994 | |||
6995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6996 | else | ||
6997 | cat >>confdefs.h <<_ACEOF | ||
6998 | #define HAVE_DECL_LOGINFAILED 0 | ||
6999 | _ACEOF | ||
7000 | |||
7001 | |||
7002 | fi | ||
7003 | |||
7004 | |||
7005 | |||
7006 | |||
7007 | for ac_func in getgrset setauthdb | ||
7008 | do | ||
7009 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7010 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7011 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
7012 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7014 | else | ||
7015 | cat >conftest.$ac_ext <<_ACEOF | ||
7016 | /* confdefs.h. */ | ||
7017 | _ACEOF | ||
7018 | cat confdefs.h >>conftest.$ac_ext | ||
7019 | cat >>conftest.$ac_ext <<_ACEOF | ||
7020 | /* end confdefs.h. */ | ||
7021 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7022 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7023 | #define $ac_func innocuous_$ac_func | ||
7024 | |||
7025 | /* System header to define __stub macros and hopefully few prototypes, | ||
7026 | which can conflict with char $ac_func (); below. | ||
7027 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7028 | <limits.h> exists even on freestanding compilers. */ | ||
7029 | |||
7030 | #ifdef __STDC__ | ||
7031 | # include <limits.h> | ||
7032 | #else | ||
7033 | # include <assert.h> | ||
7034 | #endif | ||
7035 | |||
7036 | #undef $ac_func | ||
7037 | |||
7038 | /* Override any GCC internal prototype to avoid an error. | ||
7039 | Use char because int might match the return type of a GCC | ||
7040 | builtin and then its argument prototype would still apply. */ | ||
7041 | #ifdef __cplusplus | ||
7042 | extern "C" | ||
7043 | #endif | ||
7044 | char $ac_func (); | ||
7045 | /* The GNU C library defines this for functions which it implements | ||
7046 | to always fail with ENOSYS. Some functions are actually named | ||
7047 | something starting with __ and the normal name is an alias. */ | ||
7048 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
7049 | choke me | ||
7050 | #endif | ||
7051 | |||
7052 | int | ||
7053 | main () | ||
7054 | { | ||
7055 | return $ac_func (); | ||
7056 | ; | ||
7057 | return 0; | ||
7058 | } | ||
7059 | _ACEOF | ||
7060 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7061 | if { (ac_try="$ac_link" | ||
7062 | case "(($ac_try" in | ||
7063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7064 | *) ac_try_echo=$ac_try;; | ||
7065 | esac | ||
7066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7067 | (eval "$ac_link") 2>conftest.er1 | ||
7068 | ac_status=$? | ||
7069 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7070 | rm -f conftest.er1 | ||
7071 | cat conftest.err >&5 | ||
7072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7073 | (exit $ac_status); } && { | ||
7074 | test -z "$ac_c_werror_flag" || | ||
7075 | test ! -s conftest.err | ||
7076 | } && test -s conftest$ac_exeext && | ||
7077 | $as_test_x conftest$ac_exeext; then | ||
7078 | eval "$as_ac_var=yes" | ||
7079 | else | ||
7080 | echo "$as_me: failed program was:" >&5 | ||
7081 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7082 | |||
7083 | eval "$as_ac_var=no" | ||
7084 | fi | ||
7085 | |||
7086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7087 | conftest$ac_exeext conftest.$ac_ext | ||
7088 | fi | ||
7089 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
7090 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7091 | echo "${ECHO_T}$ac_res" >&6; } | ||
7092 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7093 | cat >>confdefs.h <<_ACEOF | ||
7094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7095 | _ACEOF | ||
7096 | |||
7097 | fi | ||
7098 | done | ||
7099 | |||
7100 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7101 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
7102 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7104 | else | ||
7105 | cat >conftest.$ac_ext <<_ACEOF | ||
7106 | /* confdefs.h. */ | ||
7107 | _ACEOF | ||
7108 | cat confdefs.h >>conftest.$ac_ext | ||
7109 | cat >>conftest.$ac_ext <<_ACEOF | ||
7110 | /* end confdefs.h. */ | ||
7111 | #include <limits.h> | ||
7112 | #include <fcntl.h> | ||
7113 | |||
7114 | |||
7115 | int | ||
7116 | main () | ||
7117 | { | ||
7118 | #ifndef F_CLOSEM | ||
7119 | (void) F_CLOSEM; | ||
7120 | #endif | ||
7121 | |||
7122 | ; | ||
7123 | return 0; | ||
7124 | } | ||
7125 | _ACEOF | ||
7126 | rm -f conftest.$ac_objext | ||
7127 | if { (ac_try="$ac_compile" | ||
7128 | case "(($ac_try" in | ||
7129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7130 | *) ac_try_echo=$ac_try;; | ||
7131 | esac | ||
7132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7133 | (eval "$ac_compile") 2>conftest.er1 | ||
7134 | ac_status=$? | ||
7135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7136 | rm -f conftest.er1 | ||
7137 | cat conftest.err >&5 | ||
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7139 | (exit $ac_status); } && { | ||
7140 | test -z "$ac_c_werror_flag" || | ||
7141 | test ! -s conftest.err | ||
7142 | } && test -s conftest.$ac_objext; then | ||
7143 | ac_cv_have_decl_F_CLOSEM=yes | ||
7144 | else | ||
7145 | echo "$as_me: failed program was:" >&5 | ||
7146 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7147 | |||
7148 | ac_cv_have_decl_F_CLOSEM=no | ||
7149 | fi | ||
7150 | |||
7151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7152 | fi | ||
7153 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7154 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7155 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7156 | |||
7157 | cat >>confdefs.h <<\_ACEOF | ||
7158 | #define HAVE_FCNTL_CLOSEM 1 | ||
7159 | _ACEOF | ||
7160 | |||
7161 | fi | ||
7162 | |||
7163 | check_for_aix_broken_getaddrinfo=1 | ||
7164 | |||
7165 | cat >>confdefs.h <<\_ACEOF | ||
7166 | #define BROKEN_REALPATH 1 | ||
7167 | _ACEOF | ||
7168 | |||
7169 | |||
7170 | cat >>confdefs.h <<\_ACEOF | ||
7171 | #define SETEUID_BREAKS_SETUID 1 | ||
7172 | _ACEOF | ||
7173 | |||
7174 | |||
7175 | cat >>confdefs.h <<\_ACEOF | ||
7176 | #define BROKEN_SETREUID 1 | ||
7177 | _ACEOF | ||
7178 | |||
7179 | |||
7180 | cat >>confdefs.h <<\_ACEOF | ||
7181 | #define BROKEN_SETREGID 1 | ||
7182 | _ACEOF | ||
7183 | |||
7184 | |||
7185 | cat >>confdefs.h <<\_ACEOF | ||
7186 | #define DISABLE_LASTLOG 1 | ||
7187 | _ACEOF | ||
7188 | |||
7189 | |||
7190 | cat >>confdefs.h <<\_ACEOF | ||
7191 | #define LOGIN_NEEDS_UTMPX 1 | ||
7192 | _ACEOF | ||
7193 | |||
7194 | |||
7195 | cat >>confdefs.h <<\_ACEOF | ||
7196 | #define SPT_TYPE SPT_REUSEARGV | ||
7197 | _ACEOF | ||
7198 | |||
7199 | |||
7200 | cat >>confdefs.h <<\_ACEOF | ||
7201 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7202 | _ACEOF | ||
7203 | |||
7204 | |||
7205 | cat >>confdefs.h <<\_ACEOF | ||
7206 | #define PTY_ZEROREAD 1 | ||
7207 | _ACEOF | ||
7208 | |||
7209 | ;; | ||
7210 | *-*-cygwin*) | ||
7211 | check_for_libcrypt_later=1 | ||
7212 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7213 | |||
7214 | cat >>confdefs.h <<\_ACEOF | ||
7215 | #define HAVE_CYGWIN 1 | ||
7216 | _ACEOF | ||
7217 | |||
7218 | |||
7219 | cat >>confdefs.h <<\_ACEOF | ||
7220 | #define USE_PIPES 1 | ||
7221 | _ACEOF | ||
7222 | |||
7223 | |||
7224 | cat >>confdefs.h <<\_ACEOF | ||
7225 | #define DISABLE_SHADOW 1 | ||
7226 | _ACEOF | ||
7227 | |||
7228 | |||
7229 | cat >>confdefs.h <<\_ACEOF | ||
7230 | #define NO_X11_UNIX_SOCKETS 1 | ||
7231 | _ACEOF | ||
7232 | |||
7233 | |||
7234 | cat >>confdefs.h <<\_ACEOF | ||
7235 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7236 | _ACEOF | ||
7237 | |||
7238 | |||
7239 | cat >>confdefs.h <<\_ACEOF | ||
7240 | #define DISABLE_FD_PASSING 1 | ||
7241 | _ACEOF | ||
7242 | |||
7243 | |||
7244 | cat >>confdefs.h <<\_ACEOF | ||
7245 | #define SSH_IOBUFSZ 65535 | ||
7246 | _ACEOF | ||
7247 | |||
7248 | ;; | ||
7249 | *-*-dgux*) | ||
7250 | |||
7251 | cat >>confdefs.h <<\_ACEOF | ||
7252 | #define IP_TOS_IS_BROKEN 1 | ||
7253 | _ACEOF | ||
7254 | |||
7255 | cat >>confdefs.h <<\_ACEOF | ||
7256 | #define SETEUID_BREAKS_SETUID 1 | ||
7257 | _ACEOF | ||
7258 | |||
7259 | cat >>confdefs.h <<\_ACEOF | ||
7260 | #define BROKEN_SETREUID 1 | ||
7261 | _ACEOF | ||
7262 | |||
7263 | cat >>confdefs.h <<\_ACEOF | ||
7264 | #define BROKEN_SETREGID 1 | ||
7265 | _ACEOF | ||
7266 | |||
7267 | ;; | ||
7268 | *-*-darwin*) | ||
7269 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7270 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7271 | if test "$cross_compiling" = yes; then | ||
7272 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7273 | echo "${ECHO_T}assume it is working" >&6; } | ||
7274 | else | ||
7275 | cat >conftest.$ac_ext <<_ACEOF | ||
7276 | /* confdefs.h. */ | ||
7277 | _ACEOF | ||
7278 | cat confdefs.h >>conftest.$ac_ext | ||
7279 | cat >>conftest.$ac_ext <<_ACEOF | ||
7280 | /* end confdefs.h. */ | ||
7281 | #include <mach-o/dyld.h> | ||
7282 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7283 | exit(0); | ||
7284 | else | ||
7285 | exit(1); | ||
7286 | } | ||
7287 | _ACEOF | ||
7288 | rm -f conftest$ac_exeext | ||
7289 | if { (ac_try="$ac_link" | ||
7290 | case "(($ac_try" in | ||
7291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7292 | *) ac_try_echo=$ac_try;; | ||
7293 | esac | ||
7294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7295 | (eval "$ac_link") 2>&5 | ||
7296 | ac_status=$? | ||
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7298 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7299 | { (case "(($ac_try" in | ||
7300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7301 | *) ac_try_echo=$ac_try;; | ||
7302 | esac | ||
7303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7304 | (eval "$ac_try") 2>&5 | ||
7305 | ac_status=$? | ||
7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7307 | (exit $ac_status); }; }; then | ||
7308 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7309 | echo "${ECHO_T}working" >&6; } | ||
7310 | else | ||
7311 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7312 | echo "$as_me: failed program was:" >&5 | ||
7313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7314 | |||
7315 | ( exit $ac_status ) | ||
7316 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7317 | echo "${ECHO_T}buggy" >&6; } | ||
7318 | |||
7319 | cat >>confdefs.h <<\_ACEOF | ||
7320 | #define BROKEN_GETADDRINFO 1 | ||
7321 | _ACEOF | ||
7322 | |||
7323 | fi | ||
7324 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7325 | fi | ||
7326 | |||
7327 | |||
7328 | cat >>confdefs.h <<\_ACEOF | ||
7329 | #define SETEUID_BREAKS_SETUID 1 | ||
7330 | _ACEOF | ||
7331 | |||
7332 | cat >>confdefs.h <<\_ACEOF | ||
7333 | #define BROKEN_SETREUID 1 | ||
7334 | _ACEOF | ||
7335 | |||
7336 | cat >>confdefs.h <<\_ACEOF | ||
7337 | #define BROKEN_SETREGID 1 | ||
7338 | _ACEOF | ||
7339 | |||
7340 | |||
7341 | cat >>confdefs.h <<\_ACEOF | ||
7342 | #define BROKEN_GLOB 1 | ||
7343 | _ACEOF | ||
7344 | |||
7345 | |||
7346 | cat >>confdefs.h <<_ACEOF | ||
7347 | #define BIND_8_COMPAT 1 | ||
7348 | _ACEOF | ||
7349 | |||
7350 | |||
7351 | cat >>confdefs.h <<\_ACEOF | ||
7352 | #define SSH_TUN_FREEBSD 1 | ||
7353 | _ACEOF | ||
7354 | |||
7355 | |||
7356 | cat >>confdefs.h <<\_ACEOF | ||
7357 | #define SSH_TUN_COMPAT_AF 1 | ||
7358 | _ACEOF | ||
7359 | |||
7360 | |||
7361 | cat >>confdefs.h <<\_ACEOF | ||
7362 | #define SSH_TUN_PREPEND_AF 1 | ||
7363 | _ACEOF | ||
7364 | |||
7365 | |||
7366 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7367 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
7368 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7370 | else | ||
7371 | cat >conftest.$ac_ext <<_ACEOF | ||
7372 | /* confdefs.h. */ | ||
7373 | _ACEOF | ||
7374 | cat confdefs.h >>conftest.$ac_ext | ||
7375 | cat >>conftest.$ac_ext <<_ACEOF | ||
7376 | /* end confdefs.h. */ | ||
7377 | $ac_includes_default | ||
7378 | int | ||
7379 | main () | ||
7380 | { | ||
7381 | #ifndef AU_IPv4 | ||
7382 | (void) AU_IPv4; | ||
7383 | #endif | ||
7384 | |||
7385 | ; | ||
7386 | return 0; | ||
7387 | } | ||
7388 | _ACEOF | ||
7389 | rm -f conftest.$ac_objext | ||
7390 | if { (ac_try="$ac_compile" | ||
7391 | case "(($ac_try" in | ||
7392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7393 | *) ac_try_echo=$ac_try;; | ||
7394 | esac | ||
7395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7396 | (eval "$ac_compile") 2>conftest.er1 | ||
7397 | ac_status=$? | ||
7398 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7399 | rm -f conftest.er1 | ||
7400 | cat conftest.err >&5 | ||
7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7402 | (exit $ac_status); } && { | ||
7403 | test -z "$ac_c_werror_flag" || | ||
7404 | test ! -s conftest.err | ||
7405 | } && test -s conftest.$ac_objext; then | ||
7406 | ac_cv_have_decl_AU_IPv4=yes | ||
7407 | else | ||
7408 | echo "$as_me: failed program was:" >&5 | ||
7409 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7410 | |||
7411 | ac_cv_have_decl_AU_IPv4=no | ||
7412 | fi | ||
7413 | |||
7414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7415 | fi | ||
7416 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7417 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7418 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7419 | : | ||
7420 | else | ||
7421 | |||
7422 | cat >>confdefs.h <<\_ACEOF | ||
7423 | #define AU_IPv4 0 | ||
7424 | _ACEOF | ||
7425 | |||
7426 | #include <bsm/audit.h> | ||
7427 | |||
7428 | cat >>confdefs.h <<\_ACEOF | ||
7429 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
7430 | _ACEOF | ||
7431 | |||
7432 | |||
7433 | fi | ||
7434 | |||
7435 | ;; | ||
7436 | *-*-dragonfly*) | ||
7437 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7438 | ;; | ||
7439 | *-*-haiku*) | ||
7440 | LIBS="$LIBS -lbsd " | ||
7441 | |||
7442 | { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5 | ||
7443 | echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; } | ||
7444 | if test "${ac_cv_lib_network_socket+set}" = set; then | ||
7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7446 | else | ||
7447 | ac_check_lib_save_LIBS=$LIBS | ||
7448 | LIBS="-lnetwork $LIBS" | ||
7449 | cat >conftest.$ac_ext <<_ACEOF | ||
7450 | /* confdefs.h. */ | ||
7451 | _ACEOF | ||
7452 | cat confdefs.h >>conftest.$ac_ext | ||
7453 | cat >>conftest.$ac_ext <<_ACEOF | ||
7454 | /* end confdefs.h. */ | ||
7455 | |||
7456 | /* Override any GCC internal prototype to avoid an error. | ||
7457 | Use char because int might match the return type of a GCC | ||
7458 | builtin and then its argument prototype would still apply. */ | ||
7459 | #ifdef __cplusplus | ||
7460 | extern "C" | ||
7461 | #endif | ||
7462 | char socket (); | ||
7463 | int | ||
7464 | main () | ||
7465 | { | ||
7466 | return socket (); | ||
7467 | ; | ||
7468 | return 0; | ||
7469 | } | ||
7470 | _ACEOF | ||
7471 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7472 | if { (ac_try="$ac_link" | ||
7473 | case "(($ac_try" in | ||
7474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7475 | *) ac_try_echo=$ac_try;; | ||
7476 | esac | ||
7477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7478 | (eval "$ac_link") 2>conftest.er1 | ||
7479 | ac_status=$? | ||
7480 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7481 | rm -f conftest.er1 | ||
7482 | cat conftest.err >&5 | ||
7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7484 | (exit $ac_status); } && { | ||
7485 | test -z "$ac_c_werror_flag" || | ||
7486 | test ! -s conftest.err | ||
7487 | } && test -s conftest$ac_exeext && | ||
7488 | $as_test_x conftest$ac_exeext; then | ||
7489 | ac_cv_lib_network_socket=yes | ||
7490 | else | ||
7491 | echo "$as_me: failed program was:" >&5 | ||
7492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7493 | |||
7494 | ac_cv_lib_network_socket=no | ||
7495 | fi | ||
7496 | |||
7497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7498 | conftest$ac_exeext conftest.$ac_ext | ||
7499 | LIBS=$ac_check_lib_save_LIBS | ||
7500 | fi | ||
7501 | { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5 | ||
7502 | echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; } | ||
7503 | if test $ac_cv_lib_network_socket = yes; then | ||
7504 | cat >>confdefs.h <<_ACEOF | ||
7505 | #define HAVE_LIBNETWORK 1 | ||
7506 | _ACEOF | ||
7507 | |||
7508 | LIBS="-lnetwork $LIBS" | ||
7509 | |||
7510 | fi | ||
7511 | |||
7512 | cat >>confdefs.h <<\_ACEOF | ||
7513 | #define HAVE_U_INT64_T 1 | ||
7514 | _ACEOF | ||
7515 | |||
7516 | MANTYPE=man | ||
7517 | ;; | ||
7518 | *-*-hpux*) | ||
7519 | # first we define all of the options common to all HP-UX releases | ||
7520 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7521 | IPADDR_IN_DISPLAY=yes | ||
7522 | cat >>confdefs.h <<\_ACEOF | ||
7523 | #define USE_PIPES 1 | ||
7524 | _ACEOF | ||
7525 | |||
7526 | |||
7527 | cat >>confdefs.h <<\_ACEOF | ||
7528 | #define LOGIN_NO_ENDOPT 1 | ||
7529 | _ACEOF | ||
7530 | |||
7531 | cat >>confdefs.h <<\_ACEOF | ||
7532 | #define LOGIN_NEEDS_UTMPX 1 | ||
7533 | _ACEOF | ||
7534 | |||
7535 | |||
7536 | cat >>confdefs.h <<\_ACEOF | ||
7537 | #define LOCKED_PASSWD_STRING "*" | ||
7538 | _ACEOF | ||
7539 | |||
7540 | cat >>confdefs.h <<\_ACEOF | ||
7541 | #define SPT_TYPE SPT_PSTAT | ||
7542 | _ACEOF | ||
7543 | |||
7544 | MAIL="/var/mail/username" | ||
7545 | LIBS="$LIBS -lsec" | ||
7546 | |||
7547 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7548 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
7549 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7551 | else | ||
7552 | ac_check_lib_save_LIBS=$LIBS | ||
7553 | LIBS="-lxnet $LIBS" | ||
7554 | cat >conftest.$ac_ext <<_ACEOF | ||
7555 | /* confdefs.h. */ | ||
7556 | _ACEOF | ||
7557 | cat confdefs.h >>conftest.$ac_ext | ||
7558 | cat >>conftest.$ac_ext <<_ACEOF | ||
7559 | /* end confdefs.h. */ | ||
7560 | |||
7561 | /* Override any GCC internal prototype to avoid an error. | ||
7562 | Use char because int might match the return type of a GCC | ||
7563 | builtin and then its argument prototype would still apply. */ | ||
7564 | #ifdef __cplusplus | ||
7565 | extern "C" | ||
7566 | #endif | ||
7567 | char t_error (); | ||
7568 | int | ||
7569 | main () | ||
7570 | { | ||
7571 | return t_error (); | ||
7572 | ; | ||
7573 | return 0; | ||
7574 | } | ||
7575 | _ACEOF | ||
7576 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7577 | if { (ac_try="$ac_link" | ||
7578 | case "(($ac_try" in | ||
7579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7580 | *) ac_try_echo=$ac_try;; | ||
7581 | esac | ||
7582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7583 | (eval "$ac_link") 2>conftest.er1 | ||
7584 | ac_status=$? | ||
7585 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7586 | rm -f conftest.er1 | ||
7587 | cat conftest.err >&5 | ||
7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7589 | (exit $ac_status); } && { | ||
7590 | test -z "$ac_c_werror_flag" || | ||
7591 | test ! -s conftest.err | ||
7592 | } && test -s conftest$ac_exeext && | ||
7593 | $as_test_x conftest$ac_exeext; then | ||
7594 | ac_cv_lib_xnet_t_error=yes | ||
7595 | else | ||
7596 | echo "$as_me: failed program was:" >&5 | ||
7597 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7598 | |||
7599 | ac_cv_lib_xnet_t_error=no | ||
7600 | fi | ||
7601 | |||
7602 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7603 | conftest$ac_exeext conftest.$ac_ext | ||
7604 | LIBS=$ac_check_lib_save_LIBS | ||
7605 | fi | ||
7606 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7607 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
7608 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7609 | cat >>confdefs.h <<_ACEOF | ||
7610 | #define HAVE_LIBXNET 1 | ||
7611 | _ACEOF | ||
7612 | |||
7613 | LIBS="-lxnet $LIBS" | ||
7614 | |||
7615 | else | ||
7616 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7617 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7618 | { (exit 1); exit 1; }; } | ||
7619 | fi | ||
7620 | |||
7621 | |||
7622 | # next, we define all of the options specific to major releases | ||
7623 | case "$host" in | ||
7624 | *-*-hpux10*) | ||
7625 | if test -z "$GCC"; then | ||
7626 | CFLAGS="$CFLAGS -Ae" | ||
7627 | fi | ||
7628 | ;; | ||
7629 | *-*-hpux11*) | ||
7630 | |||
7631 | cat >>confdefs.h <<\_ACEOF | ||
7632 | #define PAM_SUN_CODEBASE 1 | ||
7633 | _ACEOF | ||
7634 | |||
7635 | |||
7636 | cat >>confdefs.h <<\_ACEOF | ||
7637 | #define DISABLE_UTMP 1 | ||
7638 | _ACEOF | ||
7639 | |||
7640 | |||
7641 | cat >>confdefs.h <<\_ACEOF | ||
7642 | #define USE_BTMP 1 | ||
7643 | _ACEOF | ||
7644 | |||
7645 | check_for_hpux_broken_getaddrinfo=1 | ||
7646 | check_for_conflicting_getspnam=1 | ||
7647 | ;; | ||
7648 | esac | ||
7649 | |||
7650 | # lastly, we define options specific to minor releases | ||
7651 | case "$host" in | ||
7652 | *-*-hpux10.26) | ||
7653 | |||
7654 | cat >>confdefs.h <<\_ACEOF | ||
7655 | #define HAVE_SECUREWARE 1 | ||
7656 | _ACEOF | ||
7657 | |||
7658 | disable_ptmx_check=yes | ||
7659 | LIBS="$LIBS -lsecpw" | ||
7660 | ;; | ||
7661 | esac | ||
7662 | ;; | ||
7663 | *-*-irix5*) | ||
7664 | PATH="$PATH:/usr/etc" | ||
7665 | |||
7666 | cat >>confdefs.h <<\_ACEOF | ||
7667 | #define BROKEN_INET_NTOA 1 | ||
7668 | _ACEOF | ||
7669 | |||
7670 | cat >>confdefs.h <<\_ACEOF | ||
7671 | #define SETEUID_BREAKS_SETUID 1 | ||
7672 | _ACEOF | ||
7673 | |||
7674 | cat >>confdefs.h <<\_ACEOF | ||
7675 | #define BROKEN_SETREUID 1 | ||
7676 | _ACEOF | ||
7677 | |||
7678 | cat >>confdefs.h <<\_ACEOF | ||
7679 | #define BROKEN_SETREGID 1 | ||
7680 | _ACEOF | ||
7681 | |||
7682 | |||
7683 | cat >>confdefs.h <<\_ACEOF | ||
7684 | #define WITH_ABBREV_NO_TTY 1 | ||
7685 | _ACEOF | ||
7686 | |||
7687 | cat >>confdefs.h <<\_ACEOF | ||
7688 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7689 | _ACEOF | ||
7690 | |||
7691 | ;; | ||
7692 | *-*-irix6*) | ||
7693 | PATH="$PATH:/usr/etc" | ||
7694 | |||
7695 | cat >>confdefs.h <<\_ACEOF | ||
7696 | #define WITH_IRIX_ARRAY 1 | ||
7697 | _ACEOF | ||
7698 | |||
7699 | |||
7700 | cat >>confdefs.h <<\_ACEOF | ||
7701 | #define WITH_IRIX_PROJECT 1 | ||
7702 | _ACEOF | ||
7703 | |||
7704 | |||
7705 | cat >>confdefs.h <<\_ACEOF | ||
7706 | #define WITH_IRIX_AUDIT 1 | ||
7707 | _ACEOF | ||
7708 | |||
7709 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
7710 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
7711 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
7712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7713 | else | ||
7714 | cat >conftest.$ac_ext <<_ACEOF | ||
7715 | /* confdefs.h. */ | ||
7716 | _ACEOF | ||
7717 | cat confdefs.h >>conftest.$ac_ext | ||
7718 | cat >>conftest.$ac_ext <<_ACEOF | ||
7719 | /* end confdefs.h. */ | ||
7720 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
7721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7722 | #define jlimit_startjob innocuous_jlimit_startjob | ||
7723 | |||
7724 | /* System header to define __stub macros and hopefully few prototypes, | ||
7725 | which can conflict with char jlimit_startjob (); below. | ||
7726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7727 | <limits.h> exists even on freestanding compilers. */ | ||
7728 | |||
7729 | #ifdef __STDC__ | ||
7730 | # include <limits.h> | ||
7731 | #else | ||
7732 | # include <assert.h> | ||
7733 | #endif | ||
7734 | |||
7735 | #undef jlimit_startjob | ||
7736 | |||
7737 | /* Override any GCC internal prototype to avoid an error. | ||
7738 | Use char because int might match the return type of a GCC | ||
7739 | builtin and then its argument prototype would still apply. */ | ||
7740 | #ifdef __cplusplus | ||
7741 | extern "C" | ||
7742 | #endif | ||
7743 | char jlimit_startjob (); | ||
7744 | /* The GNU C library defines this for functions which it implements | ||
7745 | to always fail with ENOSYS. Some functions are actually named | ||
7746 | something starting with __ and the normal name is an alias. */ | ||
7747 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
7748 | choke me | ||
7749 | #endif | ||
7750 | |||
7751 | int | ||
7752 | main () | ||
7753 | { | ||
7754 | return jlimit_startjob (); | ||
7755 | ; | ||
7756 | return 0; | ||
7757 | } | ||
7758 | _ACEOF | ||
7759 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7760 | if { (ac_try="$ac_link" | ||
7761 | case "(($ac_try" in | ||
7762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7763 | *) ac_try_echo=$ac_try;; | ||
7764 | esac | ||
7765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7766 | (eval "$ac_link") 2>conftest.er1 | ||
7767 | ac_status=$? | ||
7768 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7769 | rm -f conftest.er1 | ||
7770 | cat conftest.err >&5 | ||
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7772 | (exit $ac_status); } && { | ||
7773 | test -z "$ac_c_werror_flag" || | ||
7774 | test ! -s conftest.err | ||
7775 | } && test -s conftest$ac_exeext && | ||
7776 | $as_test_x conftest$ac_exeext; then | ||
7777 | ac_cv_func_jlimit_startjob=yes | ||
7778 | else | ||
7779 | echo "$as_me: failed program was:" >&5 | ||
7780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7781 | |||
7782 | ac_cv_func_jlimit_startjob=no | ||
7783 | fi | ||
7784 | |||
7785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7786 | conftest$ac_exeext conftest.$ac_ext | ||
7787 | fi | ||
7788 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
7789 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
7790 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
7791 | |||
7792 | cat >>confdefs.h <<\_ACEOF | ||
7793 | #define WITH_IRIX_JOBS 1 | ||
7794 | _ACEOF | ||
7795 | |||
7796 | fi | ||
7797 | |||
7798 | cat >>confdefs.h <<\_ACEOF | ||
7799 | #define BROKEN_INET_NTOA 1 | ||
7800 | _ACEOF | ||
7801 | |||
7802 | cat >>confdefs.h <<\_ACEOF | ||
7803 | #define SETEUID_BREAKS_SETUID 1 | ||
7804 | _ACEOF | ||
7805 | |||
7806 | cat >>confdefs.h <<\_ACEOF | ||
7807 | #define BROKEN_SETREUID 1 | ||
7808 | _ACEOF | ||
7809 | |||
7810 | cat >>confdefs.h <<\_ACEOF | ||
7811 | #define BROKEN_SETREGID 1 | ||
7812 | _ACEOF | ||
7813 | |||
7814 | |||
7815 | cat >>confdefs.h <<\_ACEOF | ||
7816 | #define BROKEN_UPDWTMPX 1 | ||
7817 | _ACEOF | ||
7818 | |||
7819 | cat >>confdefs.h <<\_ACEOF | ||
7820 | #define WITH_ABBREV_NO_TTY 1 | ||
7821 | _ACEOF | ||
7822 | |||
7823 | cat >>confdefs.h <<\_ACEOF | ||
7824 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7825 | _ACEOF | ||
7826 | |||
7827 | ;; | ||
7828 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7829 | check_for_libcrypt_later=1 | ||
7830 | cat >>confdefs.h <<\_ACEOF | ||
7831 | #define PAM_TTY_KLUDGE 1 | ||
7832 | _ACEOF | ||
7833 | |||
7834 | cat >>confdefs.h <<\_ACEOF | ||
7835 | #define LOCKED_PASSWD_PREFIX "!" | ||
7836 | _ACEOF | ||
7837 | |||
7838 | cat >>confdefs.h <<\_ACEOF | ||
7839 | #define SPT_TYPE SPT_REUSEARGV | ||
7840 | _ACEOF | ||
7841 | |||
7842 | |||
7843 | cat >>confdefs.h <<\_ACEOF | ||
7844 | #define _PATH_BTMP "/var/log/btmp" | ||
7845 | _ACEOF | ||
7846 | |||
7847 | |||
7848 | cat >>confdefs.h <<\_ACEOF | ||
7849 | #define USE_BTMP 1 | ||
7850 | _ACEOF | ||
7851 | |||
7852 | ;; | ||
7853 | *-*-linux*) | ||
7854 | no_dev_ptmx=1 | ||
7855 | check_for_libcrypt_later=1 | ||
7856 | check_for_openpty_ctty_bug=1 | ||
7857 | |||
7858 | cat >>confdefs.h <<\_ACEOF | ||
7859 | #define PAM_TTY_KLUDGE 1 | ||
7860 | _ACEOF | ||
7861 | |||
7862 | |||
7863 | cat >>confdefs.h <<\_ACEOF | ||
7864 | #define LOCKED_PASSWD_PREFIX "!" | ||
7865 | _ACEOF | ||
7866 | |||
7867 | cat >>confdefs.h <<\_ACEOF | ||
7868 | #define SPT_TYPE SPT_REUSEARGV | ||
7869 | _ACEOF | ||
7870 | |||
7871 | |||
7872 | cat >>confdefs.h <<\_ACEOF | ||
7873 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
7874 | _ACEOF | ||
7875 | |||
7876 | |||
7877 | cat >>confdefs.h <<\_ACEOF | ||
7878 | #define _PATH_BTMP "/var/log/btmp" | ||
7879 | _ACEOF | ||
7880 | |||
7881 | cat >>confdefs.h <<\_ACEOF | ||
7882 | #define USE_BTMP 1 | ||
7883 | _ACEOF | ||
7884 | |||
7885 | |||
7886 | cat >>confdefs.h <<\_ACEOF | ||
7887 | #define LINUX_OOM_ADJUST 1 | ||
7888 | _ACEOF | ||
7889 | |||
7890 | inet6_default_4in6=yes | ||
7891 | case `uname -r` in | ||
7892 | 1.*|2.0.*) | ||
7893 | |||
7894 | cat >>confdefs.h <<\_ACEOF | ||
7895 | #define BROKEN_CMSG_TYPE 1 | ||
7896 | _ACEOF | ||
7897 | |||
7898 | ;; | ||
7899 | esac | ||
7900 | # tun(4) forwarding compat code | ||
7901 | |||
7902 | for ac_header in linux/if_tun.h | ||
7903 | do | ||
7904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7906 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7910 | fi | ||
7911 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7912 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7913 | echo "${ECHO_T}$ac_res" >&6; } | ||
7914 | else | ||
7915 | # Is the header compilable? | ||
7916 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7918 | cat >conftest.$ac_ext <<_ACEOF | ||
7919 | /* confdefs.h. */ | ||
7920 | _ACEOF | ||
7921 | cat confdefs.h >>conftest.$ac_ext | ||
7922 | cat >>conftest.$ac_ext <<_ACEOF | ||
7923 | /* end confdefs.h. */ | ||
7924 | $ac_includes_default | ||
7925 | #include <$ac_header> | ||
7926 | _ACEOF | ||
7927 | rm -f conftest.$ac_objext | ||
7928 | if { (ac_try="$ac_compile" | ||
7929 | case "(($ac_try" in | ||
7930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7931 | *) ac_try_echo=$ac_try;; | ||
7932 | esac | ||
7933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7934 | (eval "$ac_compile") 2>conftest.er1 | ||
7935 | ac_status=$? | ||
7936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7937 | rm -f conftest.er1 | ||
7938 | cat conftest.err >&5 | ||
7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7940 | (exit $ac_status); } && { | ||
7941 | test -z "$ac_c_werror_flag" || | ||
7942 | test ! -s conftest.err | ||
7943 | } && test -s conftest.$ac_objext; then | ||
7944 | ac_header_compiler=yes | ||
7945 | else | ||
7946 | echo "$as_me: failed program was:" >&5 | ||
7947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7948 | |||
7949 | ac_header_compiler=no | ||
7950 | fi | ||
7951 | |||
7952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7953 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7954 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7955 | |||
7956 | # Is the header present? | ||
7957 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7958 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7959 | cat >conftest.$ac_ext <<_ACEOF | ||
7960 | /* confdefs.h. */ | ||
7961 | _ACEOF | ||
7962 | cat confdefs.h >>conftest.$ac_ext | ||
7963 | cat >>conftest.$ac_ext <<_ACEOF | ||
7964 | /* end confdefs.h. */ | ||
7965 | #include <$ac_header> | ||
7966 | _ACEOF | ||
7967 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7968 | case "(($ac_try" in | ||
7969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7970 | *) ac_try_echo=$ac_try;; | ||
7971 | esac | ||
7972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7974 | ac_status=$? | ||
7975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7976 | rm -f conftest.er1 | ||
7977 | cat conftest.err >&5 | ||
7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7979 | (exit $ac_status); } >/dev/null && { | ||
7980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7981 | test ! -s conftest.err | ||
7982 | }; then | ||
7983 | ac_header_preproc=yes | ||
7984 | else | ||
7985 | echo "$as_me: failed program was:" >&5 | ||
7986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7987 | |||
7988 | ac_header_preproc=no | ||
7989 | fi | ||
7990 | |||
7991 | rm -f conftest.err conftest.$ac_ext | ||
7992 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7993 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7994 | |||
7995 | # So? What about this header? | ||
7996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7997 | yes:no: ) | ||
7998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8002 | ac_header_preproc=yes | ||
8003 | ;; | ||
8004 | no:yes:* ) | ||
8005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8017 | ( cat <<\_ASBOX | ||
8018 | ## ------------------------------------------- ## | ||
8019 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8020 | ## ------------------------------------------- ## | ||
8021 | _ASBOX | ||
8022 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8023 | ;; | ||
8024 | esac | ||
8025 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8029 | else | ||
8030 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8031 | fi | ||
8032 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8033 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8034 | echo "${ECHO_T}$ac_res" >&6; } | ||
8035 | |||
8036 | fi | ||
8037 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8038 | cat >>confdefs.h <<_ACEOF | ||
8039 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8040 | _ACEOF | ||
8041 | |||
8042 | fi | ||
8043 | |||
8044 | done | ||
8045 | |||
8046 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
8047 | |||
8048 | cat >>confdefs.h <<\_ACEOF | ||
8049 | #define SSH_TUN_LINUX 1 | ||
8050 | _ACEOF | ||
8051 | |||
8052 | |||
8053 | cat >>confdefs.h <<\_ACEOF | ||
8054 | #define SSH_TUN_COMPAT_AF 1 | ||
8055 | _ACEOF | ||
8056 | |||
8057 | |||
8058 | cat >>confdefs.h <<\_ACEOF | ||
8059 | #define SSH_TUN_PREPEND_AF 1 | ||
8060 | _ACEOF | ||
8061 | |||
8062 | fi | ||
8063 | ;; | ||
8064 | mips-sony-bsd|mips-sony-newsos4) | ||
8065 | |||
8066 | cat >>confdefs.h <<\_ACEOF | ||
8067 | #define NEED_SETPGRP 1 | ||
8068 | _ACEOF | ||
8069 | |||
8070 | SONY=1 | ||
8071 | ;; | ||
8072 | *-*-netbsd*) | ||
8073 | check_for_libcrypt_before=1 | ||
8074 | if test "x$withval" != "xno" ; then | ||
8075 | need_dash_r=1 | ||
8076 | fi | ||
8077 | |||
8078 | cat >>confdefs.h <<\_ACEOF | ||
8079 | #define SSH_TUN_FREEBSD 1 | ||
8080 | _ACEOF | ||
8081 | |||
8082 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8083 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8084 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8085 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8087 | fi | ||
8088 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8089 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8090 | else | ||
8091 | # Is the header compilable? | ||
8092 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8093 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8094 | cat >conftest.$ac_ext <<_ACEOF | ||
8095 | /* confdefs.h. */ | ||
8096 | _ACEOF | ||
8097 | cat confdefs.h >>conftest.$ac_ext | ||
8098 | cat >>conftest.$ac_ext <<_ACEOF | ||
8099 | /* end confdefs.h. */ | ||
8100 | $ac_includes_default | ||
8101 | #include <net/if_tap.h> | ||
8102 | _ACEOF | ||
8103 | rm -f conftest.$ac_objext | ||
8104 | if { (ac_try="$ac_compile" | ||
8105 | case "(($ac_try" in | ||
8106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8107 | *) ac_try_echo=$ac_try;; | ||
8108 | esac | ||
8109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8110 | (eval "$ac_compile") 2>conftest.er1 | ||
8111 | ac_status=$? | ||
8112 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8113 | rm -f conftest.er1 | ||
8114 | cat conftest.err >&5 | ||
8115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8116 | (exit $ac_status); } && { | ||
8117 | test -z "$ac_c_werror_flag" || | ||
8118 | test ! -s conftest.err | ||
8119 | } && test -s conftest.$ac_objext; then | ||
8120 | ac_header_compiler=yes | ||
8121 | else | ||
8122 | echo "$as_me: failed program was:" >&5 | ||
8123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8124 | |||
8125 | ac_header_compiler=no | ||
8126 | fi | ||
8127 | |||
8128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8129 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8130 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8131 | |||
8132 | # Is the header present? | ||
8133 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8134 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8135 | cat >conftest.$ac_ext <<_ACEOF | ||
8136 | /* confdefs.h. */ | ||
8137 | _ACEOF | ||
8138 | cat confdefs.h >>conftest.$ac_ext | ||
8139 | cat >>conftest.$ac_ext <<_ACEOF | ||
8140 | /* end confdefs.h. */ | ||
8141 | #include <net/if_tap.h> | ||
8142 | _ACEOF | ||
8143 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8144 | case "(($ac_try" in | ||
8145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8146 | *) ac_try_echo=$ac_try;; | ||
8147 | esac | ||
8148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8150 | ac_status=$? | ||
8151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8152 | rm -f conftest.er1 | ||
8153 | cat conftest.err >&5 | ||
8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8155 | (exit $ac_status); } >/dev/null && { | ||
8156 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8157 | test ! -s conftest.err | ||
8158 | }; then | ||
8159 | ac_header_preproc=yes | ||
8160 | else | ||
8161 | echo "$as_me: failed program was:" >&5 | ||
8162 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8163 | |||
8164 | ac_header_preproc=no | ||
8165 | fi | ||
8166 | |||
8167 | rm -f conftest.err conftest.$ac_ext | ||
8168 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8169 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8170 | |||
8171 | # So? What about this header? | ||
8172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8173 | yes:no: ) | ||
8174 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8175 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8176 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8177 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8178 | ac_header_preproc=yes | ||
8179 | ;; | ||
8180 | no:yes:* ) | ||
8181 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8182 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8183 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8184 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8185 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8186 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8187 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8188 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8189 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8190 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8191 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8192 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8193 | ( cat <<\_ASBOX | ||
8194 | ## ------------------------------------------- ## | ||
8195 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8196 | ## ------------------------------------------- ## | ||
8197 | _ASBOX | ||
8198 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8199 | ;; | ||
8200 | esac | ||
8201 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8202 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8203 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8205 | else | ||
8206 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8207 | fi | ||
8208 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8209 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8210 | |||
8211 | fi | ||
8212 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8213 | : | ||
8214 | else | ||
8215 | |||
8216 | cat >>confdefs.h <<\_ACEOF | ||
8217 | #define SSH_TUN_NO_L2 1 | ||
8218 | _ACEOF | ||
8219 | |||
8220 | fi | ||
8221 | |||
8222 | |||
8223 | |||
8224 | cat >>confdefs.h <<\_ACEOF | ||
8225 | #define SSH_TUN_PREPEND_AF 1 | ||
8226 | _ACEOF | ||
8227 | |||
8228 | ;; | ||
8229 | *-*-freebsd*) | ||
8230 | check_for_libcrypt_later=1 | ||
8231 | |||
8232 | cat >>confdefs.h <<\_ACEOF | ||
8233 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8234 | _ACEOF | ||
8235 | |||
8236 | |||
8237 | cat >>confdefs.h <<\_ACEOF | ||
8238 | #define SSH_TUN_FREEBSD 1 | ||
8239 | _ACEOF | ||
8240 | |||
8241 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8242 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8243 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8244 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8246 | fi | ||
8247 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8248 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8249 | else | ||
8250 | # Is the header compilable? | ||
8251 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8252 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8253 | cat >conftest.$ac_ext <<_ACEOF | ||
8254 | /* confdefs.h. */ | ||
8255 | _ACEOF | ||
8256 | cat confdefs.h >>conftest.$ac_ext | ||
8257 | cat >>conftest.$ac_ext <<_ACEOF | ||
8258 | /* end confdefs.h. */ | ||
8259 | $ac_includes_default | ||
8260 | #include <net/if_tap.h> | ||
8261 | _ACEOF | ||
8262 | rm -f conftest.$ac_objext | ||
8263 | if { (ac_try="$ac_compile" | ||
8264 | case "(($ac_try" in | ||
8265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8266 | *) ac_try_echo=$ac_try;; | ||
8267 | esac | ||
8268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8269 | (eval "$ac_compile") 2>conftest.er1 | ||
8270 | ac_status=$? | ||
8271 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8272 | rm -f conftest.er1 | ||
8273 | cat conftest.err >&5 | ||
8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8275 | (exit $ac_status); } && { | ||
8276 | test -z "$ac_c_werror_flag" || | ||
8277 | test ! -s conftest.err | ||
8278 | } && test -s conftest.$ac_objext; then | ||
8279 | ac_header_compiler=yes | ||
8280 | else | ||
8281 | echo "$as_me: failed program was:" >&5 | ||
8282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8283 | |||
8284 | ac_header_compiler=no | ||
8285 | fi | ||
8286 | |||
8287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8288 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8289 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8290 | |||
8291 | # Is the header present? | ||
8292 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8293 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8294 | cat >conftest.$ac_ext <<_ACEOF | ||
8295 | /* confdefs.h. */ | ||
8296 | _ACEOF | ||
8297 | cat confdefs.h >>conftest.$ac_ext | ||
8298 | cat >>conftest.$ac_ext <<_ACEOF | ||
8299 | /* end confdefs.h. */ | ||
8300 | #include <net/if_tap.h> | ||
8301 | _ACEOF | ||
8302 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8303 | case "(($ac_try" in | ||
8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8305 | *) ac_try_echo=$ac_try;; | ||
8306 | esac | ||
8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8309 | ac_status=$? | ||
8310 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8311 | rm -f conftest.er1 | ||
8312 | cat conftest.err >&5 | ||
8313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8314 | (exit $ac_status); } >/dev/null && { | ||
8315 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8316 | test ! -s conftest.err | ||
8317 | }; then | ||
8318 | ac_header_preproc=yes | ||
8319 | else | ||
8320 | echo "$as_me: failed program was:" >&5 | ||
8321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8322 | |||
8323 | ac_header_preproc=no | ||
8324 | fi | ||
8325 | |||
8326 | rm -f conftest.err conftest.$ac_ext | ||
8327 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8328 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8329 | |||
8330 | # So? What about this header? | ||
8331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8332 | yes:no: ) | ||
8333 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8334 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8335 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8336 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8337 | ac_header_preproc=yes | ||
8338 | ;; | ||
8339 | no:yes:* ) | ||
8340 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8341 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8342 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8343 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8344 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8345 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8346 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8347 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8348 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8349 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8350 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8351 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8352 | ( cat <<\_ASBOX | ||
8353 | ## ------------------------------------------- ## | ||
8354 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8355 | ## ------------------------------------------- ## | ||
8356 | _ASBOX | ||
8357 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8358 | ;; | ||
8359 | esac | ||
8360 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8361 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8362 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8364 | else | ||
8365 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8366 | fi | ||
8367 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8368 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8369 | |||
8370 | fi | ||
8371 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8372 | : | ||
8373 | else | ||
8374 | |||
8375 | cat >>confdefs.h <<\_ACEOF | ||
8376 | #define SSH_TUN_NO_L2 1 | ||
8377 | _ACEOF | ||
8378 | |||
8379 | fi | ||
8380 | |||
8381 | |||
8382 | |||
8383 | cat >>confdefs.h <<\_ACEOF | ||
8384 | #define BROKEN_GLOB 1 | ||
8385 | _ACEOF | ||
8386 | |||
8387 | ;; | ||
8388 | *-*-bsdi*) | ||
8389 | cat >>confdefs.h <<\_ACEOF | ||
8390 | #define SETEUID_BREAKS_SETUID 1 | ||
8391 | _ACEOF | ||
8392 | |||
8393 | cat >>confdefs.h <<\_ACEOF | ||
8394 | #define BROKEN_SETREUID 1 | ||
8395 | _ACEOF | ||
8396 | |||
8397 | cat >>confdefs.h <<\_ACEOF | ||
8398 | #define BROKEN_SETREGID 1 | ||
8399 | _ACEOF | ||
8400 | |||
8401 | ;; | ||
8402 | *-next-*) | ||
8403 | conf_lastlog_location="/usr/adm/lastlog" | ||
8404 | conf_utmp_location=/etc/utmp | ||
8405 | conf_wtmp_location=/usr/adm/wtmp | ||
8406 | MAIL=/usr/spool/mail | ||
8407 | |||
8408 | cat >>confdefs.h <<\_ACEOF | ||
8409 | #define HAVE_NEXT 1 | ||
8410 | _ACEOF | ||
8411 | |||
8412 | cat >>confdefs.h <<\_ACEOF | ||
8413 | #define BROKEN_REALPATH 1 | ||
8414 | _ACEOF | ||
8415 | |||
8416 | cat >>confdefs.h <<\_ACEOF | ||
8417 | #define USE_PIPES 1 | ||
8418 | _ACEOF | ||
8419 | |||
8420 | |||
8421 | cat >>confdefs.h <<\_ACEOF | ||
8422 | #define BROKEN_SAVED_UIDS 1 | ||
8423 | _ACEOF | ||
8424 | |||
8425 | ;; | ||
8426 | *-*-openbsd*) | ||
8427 | |||
8428 | cat >>confdefs.h <<\_ACEOF | ||
8429 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8430 | _ACEOF | ||
8431 | |||
8432 | |||
8433 | cat >>confdefs.h <<\_ACEOF | ||
8434 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8435 | _ACEOF | ||
8436 | |||
8437 | |||
8438 | cat >>confdefs.h <<\_ACEOF | ||
8439 | #define SSH_TUN_OPENBSD 1 | ||
8440 | _ACEOF | ||
8441 | |||
8442 | |||
8443 | cat >>confdefs.h <<\_ACEOF | ||
8444 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8445 | _ACEOF | ||
8446 | |||
8447 | ;; | ||
8448 | *-*-solaris*) | ||
8449 | if test "x$withval" != "xno" ; then | ||
8450 | need_dash_r=1 | ||
8451 | fi | ||
8452 | cat >>confdefs.h <<\_ACEOF | ||
8453 | #define PAM_SUN_CODEBASE 1 | ||
8454 | _ACEOF | ||
8455 | |||
8456 | cat >>confdefs.h <<\_ACEOF | ||
8457 | #define LOGIN_NEEDS_UTMPX 1 | ||
8458 | _ACEOF | ||
8459 | |||
8460 | |||
8461 | cat >>confdefs.h <<\_ACEOF | ||
8462 | #define LOGIN_NEEDS_TERM 1 | ||
8463 | _ACEOF | ||
8464 | |||
8465 | cat >>confdefs.h <<\_ACEOF | ||
8466 | #define PAM_TTY_KLUDGE 1 | ||
8467 | _ACEOF | ||
8468 | |||
8469 | |||
8470 | cat >>confdefs.h <<\_ACEOF | ||
8471 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8472 | _ACEOF | ||
8473 | |||
8474 | cat >>confdefs.h <<\_ACEOF | ||
8475 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8476 | _ACEOF | ||
8477 | |||
8478 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8479 | |||
8480 | cat >>confdefs.h <<\_ACEOF | ||
8481 | #define SSHD_ACQUIRES_CTTY 1 | ||
8482 | _ACEOF | ||
8483 | |||
8484 | |||
8485 | cat >>confdefs.h <<\_ACEOF | ||
8486 | #define PASSWD_NEEDS_USERNAME 1 | ||
8487 | _ACEOF | ||
8488 | |||
8489 | |||
8490 | cat >>confdefs.h <<\_ACEOF | ||
8491 | #define BROKEN_TCGETATTR_ICANON 1 | ||
8492 | _ACEOF | ||
8493 | |||
8494 | external_path_file=/etc/default/login | ||
8495 | # hardwire lastlog location (can't detect it on some versions) | ||
8496 | conf_lastlog_location="/var/adm/lastlog" | ||
8497 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8498 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8499 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8500 | if test "$sol2ver" -ge 8; then | ||
8501 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8502 | echo "${ECHO_T}yes" >&6; } | ||
8503 | cat >>confdefs.h <<\_ACEOF | ||
8504 | #define DISABLE_UTMP 1 | ||
8505 | _ACEOF | ||
8506 | |||
8507 | |||
8508 | cat >>confdefs.h <<\_ACEOF | ||
8509 | #define DISABLE_WTMP 1 | ||
8510 | _ACEOF | ||
8511 | |||
8512 | else | ||
8513 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8514 | echo "${ECHO_T}no" >&6; } | ||
8515 | fi | ||
8516 | |||
8517 | # Check whether --with-solaris-contracts was given. | ||
8518 | if test "${with_solaris_contracts+set}" = set; then | ||
8519 | withval=$with_solaris_contracts; | ||
8520 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8521 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8522 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8524 | else | ||
8525 | ac_check_lib_save_LIBS=$LIBS | ||
8526 | LIBS="-lcontract $LIBS" | ||
8527 | cat >conftest.$ac_ext <<_ACEOF | ||
8528 | /* confdefs.h. */ | ||
8529 | _ACEOF | ||
8530 | cat confdefs.h >>conftest.$ac_ext | ||
8531 | cat >>conftest.$ac_ext <<_ACEOF | ||
8532 | /* end confdefs.h. */ | ||
8533 | |||
8534 | /* Override any GCC internal prototype to avoid an error. | ||
8535 | Use char because int might match the return type of a GCC | ||
8536 | builtin and then its argument prototype would still apply. */ | ||
8537 | #ifdef __cplusplus | ||
8538 | extern "C" | ||
8539 | #endif | ||
8540 | char ct_tmpl_activate (); | ||
8541 | int | ||
8542 | main () | ||
8543 | { | ||
8544 | return ct_tmpl_activate (); | ||
8545 | ; | ||
8546 | return 0; | ||
8547 | } | ||
8548 | _ACEOF | ||
8549 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8550 | if { (ac_try="$ac_link" | ||
8551 | case "(($ac_try" in | ||
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8553 | *) ac_try_echo=$ac_try;; | ||
8554 | esac | ||
8555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8556 | (eval "$ac_link") 2>conftest.er1 | ||
8557 | ac_status=$? | ||
8558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8559 | rm -f conftest.er1 | ||
8560 | cat conftest.err >&5 | ||
8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8562 | (exit $ac_status); } && { | ||
8563 | test -z "$ac_c_werror_flag" || | ||
8564 | test ! -s conftest.err | ||
8565 | } && test -s conftest$ac_exeext && | ||
8566 | $as_test_x conftest$ac_exeext; then | ||
8567 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8568 | else | ||
8569 | echo "$as_me: failed program was:" >&5 | ||
8570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8571 | |||
8572 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8573 | fi | ||
8574 | |||
8575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8576 | conftest$ac_exeext conftest.$ac_ext | ||
8577 | LIBS=$ac_check_lib_save_LIBS | ||
8578 | fi | ||
8579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8580 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8581 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8582 | |||
8583 | cat >>confdefs.h <<\_ACEOF | ||
8584 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8585 | _ACEOF | ||
8586 | |||
8587 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8588 | |||
8589 | SPC_MSG="yes" | ||
8590 | fi | ||
8591 | |||
8592 | |||
8593 | fi | ||
8594 | |||
8595 | ;; | ||
8596 | *-*-sunos4*) | ||
8597 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8598 | |||
8599 | for ac_func in getpwanam | ||
8600 | do | ||
8601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8602 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8604 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8606 | else | ||
8607 | cat >conftest.$ac_ext <<_ACEOF | ||
8608 | /* confdefs.h. */ | ||
8609 | _ACEOF | ||
8610 | cat confdefs.h >>conftest.$ac_ext | ||
8611 | cat >>conftest.$ac_ext <<_ACEOF | ||
8612 | /* end confdefs.h. */ | ||
8613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8615 | #define $ac_func innocuous_$ac_func | ||
8616 | |||
8617 | /* System header to define __stub macros and hopefully few prototypes, | ||
8618 | which can conflict with char $ac_func (); below. | ||
8619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8620 | <limits.h> exists even on freestanding compilers. */ | ||
8621 | |||
8622 | #ifdef __STDC__ | ||
8623 | # include <limits.h> | ||
8624 | #else | ||
8625 | # include <assert.h> | ||
8626 | #endif | ||
8627 | |||
8628 | #undef $ac_func | ||
8629 | |||
8630 | /* Override any GCC internal prototype to avoid an error. | ||
8631 | Use char because int might match the return type of a GCC | ||
8632 | builtin and then its argument prototype would still apply. */ | ||
8633 | #ifdef __cplusplus | ||
8634 | extern "C" | ||
8635 | #endif | ||
8636 | char $ac_func (); | ||
8637 | /* The GNU C library defines this for functions which it implements | ||
8638 | to always fail with ENOSYS. Some functions are actually named | ||
8639 | something starting with __ and the normal name is an alias. */ | ||
8640 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8641 | choke me | ||
8642 | #endif | ||
8643 | |||
8644 | int | ||
8645 | main () | ||
8646 | { | ||
8647 | return $ac_func (); | ||
8648 | ; | ||
8649 | return 0; | ||
8650 | } | ||
8651 | _ACEOF | ||
8652 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8653 | if { (ac_try="$ac_link" | ||
8654 | case "(($ac_try" in | ||
8655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8656 | *) ac_try_echo=$ac_try;; | ||
8657 | esac | ||
8658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8659 | (eval "$ac_link") 2>conftest.er1 | ||
8660 | ac_status=$? | ||
8661 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8662 | rm -f conftest.er1 | ||
8663 | cat conftest.err >&5 | ||
8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8665 | (exit $ac_status); } && { | ||
8666 | test -z "$ac_c_werror_flag" || | ||
8667 | test ! -s conftest.err | ||
8668 | } && test -s conftest$ac_exeext && | ||
8669 | $as_test_x conftest$ac_exeext; then | ||
8670 | eval "$as_ac_var=yes" | ||
8671 | else | ||
8672 | echo "$as_me: failed program was:" >&5 | ||
8673 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8674 | |||
8675 | eval "$as_ac_var=no" | ||
8676 | fi | ||
8677 | |||
8678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8679 | conftest$ac_exeext conftest.$ac_ext | ||
8680 | fi | ||
8681 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8682 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8683 | echo "${ECHO_T}$ac_res" >&6; } | ||
8684 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8685 | cat >>confdefs.h <<_ACEOF | ||
8686 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8687 | _ACEOF | ||
8688 | |||
8689 | fi | ||
8690 | done | ||
8691 | |||
8692 | cat >>confdefs.h <<\_ACEOF | ||
8693 | #define PAM_SUN_CODEBASE 1 | ||
8694 | _ACEOF | ||
8695 | |||
8696 | conf_utmp_location=/etc/utmp | ||
8697 | conf_wtmp_location=/var/adm/wtmp | ||
8698 | conf_lastlog_location=/var/adm/lastlog | ||
8699 | cat >>confdefs.h <<\_ACEOF | ||
8700 | #define USE_PIPES 1 | ||
8701 | _ACEOF | ||
8702 | |||
8703 | ;; | ||
8704 | *-ncr-sysv*) | ||
8705 | LIBS="$LIBS -lc89" | ||
8706 | cat >>confdefs.h <<\_ACEOF | ||
8707 | #define USE_PIPES 1 | ||
8708 | _ACEOF | ||
8709 | |||
8710 | cat >>confdefs.h <<\_ACEOF | ||
8711 | #define SSHD_ACQUIRES_CTTY 1 | ||
8712 | _ACEOF | ||
8713 | |||
8714 | cat >>confdefs.h <<\_ACEOF | ||
8715 | #define SETEUID_BREAKS_SETUID 1 | ||
8716 | _ACEOF | ||
8717 | |||
8718 | cat >>confdefs.h <<\_ACEOF | ||
8719 | #define BROKEN_SETREUID 1 | ||
8720 | _ACEOF | ||
8721 | |||
8722 | cat >>confdefs.h <<\_ACEOF | ||
8723 | #define BROKEN_SETREGID 1 | ||
8724 | _ACEOF | ||
8725 | |||
8726 | ;; | ||
8727 | *-sni-sysv*) | ||
8728 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8729 | |||
8730 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
8731 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
8732 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
8733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8734 | else | ||
8735 | ac_check_lib_save_LIBS=$LIBS | ||
8736 | LIBS="-ldl $LIBS" | ||
8737 | cat >conftest.$ac_ext <<_ACEOF | ||
8738 | /* confdefs.h. */ | ||
8739 | _ACEOF | ||
8740 | cat confdefs.h >>conftest.$ac_ext | ||
8741 | cat >>conftest.$ac_ext <<_ACEOF | ||
8742 | /* end confdefs.h. */ | ||
8743 | |||
8744 | /* Override any GCC internal prototype to avoid an error. | ||
8745 | Use char because int might match the return type of a GCC | ||
8746 | builtin and then its argument prototype would still apply. */ | ||
8747 | #ifdef __cplusplus | ||
8748 | extern "C" | ||
8749 | #endif | ||
8750 | char dlsym (); | ||
8751 | int | ||
8752 | main () | ||
8753 | { | ||
8754 | return dlsym (); | ||
8755 | ; | ||
8756 | return 0; | ||
8757 | } | ||
8758 | _ACEOF | ||
8759 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8760 | if { (ac_try="$ac_link" | ||
8761 | case "(($ac_try" in | ||
8762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8763 | *) ac_try_echo=$ac_try;; | ||
8764 | esac | ||
8765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8766 | (eval "$ac_link") 2>conftest.er1 | ||
8767 | ac_status=$? | ||
8768 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8769 | rm -f conftest.er1 | ||
8770 | cat conftest.err >&5 | ||
8771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8772 | (exit $ac_status); } && { | ||
8773 | test -z "$ac_c_werror_flag" || | ||
8774 | test ! -s conftest.err | ||
8775 | } && test -s conftest$ac_exeext && | ||
8776 | $as_test_x conftest$ac_exeext; then | ||
8777 | ac_cv_lib_dl_dlsym=yes | ||
8778 | else | ||
8779 | echo "$as_me: failed program was:" >&5 | ||
8780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8781 | |||
8782 | ac_cv_lib_dl_dlsym=no | ||
8783 | fi | ||
8784 | |||
8785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8786 | conftest$ac_exeext conftest.$ac_ext | ||
8787 | LIBS=$ac_check_lib_save_LIBS | ||
8788 | fi | ||
8789 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8790 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
8791 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
8792 | cat >>confdefs.h <<_ACEOF | ||
8793 | #define HAVE_LIBDL 1 | ||
8794 | _ACEOF | ||
8795 | |||
8796 | LIBS="-ldl $LIBS" | ||
8797 | |||
8798 | fi | ||
8799 | |||
8800 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8801 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
8802 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
8803 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
8804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8805 | else | ||
8806 | ac_check_lib_save_LIBS=$LIBS | ||
8807 | LIBS="-lresolv $LIBS" | ||
8808 | cat >conftest.$ac_ext <<_ACEOF | ||
8809 | /* confdefs.h. */ | ||
8810 | _ACEOF | ||
8811 | cat confdefs.h >>conftest.$ac_ext | ||
8812 | cat >>conftest.$ac_ext <<_ACEOF | ||
8813 | /* end confdefs.h. */ | ||
8814 | |||
8815 | /* Override any GCC internal prototype to avoid an error. | ||
8816 | Use char because int might match the return type of a GCC | ||
8817 | builtin and then its argument prototype would still apply. */ | ||
8818 | #ifdef __cplusplus | ||
8819 | extern "C" | ||
8820 | #endif | ||
8821 | char res_query (); | ||
8822 | int | ||
8823 | main () | ||
8824 | { | ||
8825 | return res_query (); | ||
8826 | ; | ||
8827 | return 0; | ||
8828 | } | ||
8829 | _ACEOF | ||
8830 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8831 | if { (ac_try="$ac_link" | ||
8832 | case "(($ac_try" in | ||
8833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8834 | *) ac_try_echo=$ac_try;; | ||
8835 | esac | ||
8836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8837 | (eval "$ac_link") 2>conftest.er1 | ||
8838 | ac_status=$? | ||
8839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8840 | rm -f conftest.er1 | ||
8841 | cat conftest.err >&5 | ||
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8843 | (exit $ac_status); } && { | ||
8844 | test -z "$ac_c_werror_flag" || | ||
8845 | test ! -s conftest.err | ||
8846 | } && test -s conftest$ac_exeext && | ||
8847 | $as_test_x conftest$ac_exeext; then | ||
8848 | ac_cv_lib_resolv_res_query=yes | ||
8849 | else | ||
8850 | echo "$as_me: failed program was:" >&5 | ||
8851 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8852 | |||
8853 | ac_cv_lib_resolv_res_query=no | ||
8854 | fi | ||
8855 | |||
8856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8857 | conftest$ac_exeext conftest.$ac_ext | ||
8858 | LIBS=$ac_check_lib_save_LIBS | ||
8859 | fi | ||
8860 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8861 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
8862 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
8863 | LIBS="$LIBS -lresolv" | ||
8864 | fi | ||
8865 | |||
8866 | IPADDR_IN_DISPLAY=yes | ||
8867 | cat >>confdefs.h <<\_ACEOF | ||
8868 | #define USE_PIPES 1 | ||
8869 | _ACEOF | ||
8870 | |||
8871 | cat >>confdefs.h <<\_ACEOF | ||
8872 | #define IP_TOS_IS_BROKEN 1 | ||
8873 | _ACEOF | ||
8874 | |||
8875 | cat >>confdefs.h <<\_ACEOF | ||
8876 | #define SETEUID_BREAKS_SETUID 1 | ||
8877 | _ACEOF | ||
8878 | |||
8879 | cat >>confdefs.h <<\_ACEOF | ||
8880 | #define BROKEN_SETREUID 1 | ||
8881 | _ACEOF | ||
8882 | |||
8883 | cat >>confdefs.h <<\_ACEOF | ||
8884 | #define BROKEN_SETREGID 1 | ||
8885 | _ACEOF | ||
8886 | |||
8887 | cat >>confdefs.h <<\_ACEOF | ||
8888 | #define SSHD_ACQUIRES_CTTY 1 | ||
8889 | _ACEOF | ||
8890 | |||
8891 | external_path_file=/etc/default/login | ||
8892 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8893 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8894 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8895 | ;; | ||
8896 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8897 | *-*-sysv4.2*) | ||
8898 | cat >>confdefs.h <<\_ACEOF | ||
8899 | #define USE_PIPES 1 | ||
8900 | _ACEOF | ||
8901 | |||
8902 | cat >>confdefs.h <<\_ACEOF | ||
8903 | #define SETEUID_BREAKS_SETUID 1 | ||
8904 | _ACEOF | ||
8905 | |||
8906 | cat >>confdefs.h <<\_ACEOF | ||
8907 | #define BROKEN_SETREUID 1 | ||
8908 | _ACEOF | ||
8909 | |||
8910 | cat >>confdefs.h <<\_ACEOF | ||
8911 | #define BROKEN_SETREGID 1 | ||
8912 | _ACEOF | ||
8913 | |||
8914 | |||
8915 | cat >>confdefs.h <<\_ACEOF | ||
8916 | #define PASSWD_NEEDS_USERNAME 1 | ||
8917 | _ACEOF | ||
8918 | |||
8919 | cat >>confdefs.h <<\_ACEOF | ||
8920 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8921 | _ACEOF | ||
8922 | |||
8923 | ;; | ||
8924 | # UnixWare 7.x, OpenUNIX 8 | ||
8925 | *-*-sysv5*) | ||
8926 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8927 | |||
8928 | cat >>confdefs.h <<\_ACEOF | ||
8929 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
8930 | _ACEOF | ||
8931 | |||
8932 | cat >>confdefs.h <<\_ACEOF | ||
8933 | #define USE_PIPES 1 | ||
8934 | _ACEOF | ||
8935 | |||
8936 | cat >>confdefs.h <<\_ACEOF | ||
8937 | #define SETEUID_BREAKS_SETUID 1 | ||
8938 | _ACEOF | ||
8939 | |||
8940 | cat >>confdefs.h <<\_ACEOF | ||
8941 | #define BROKEN_GETADDRINFO 1 | ||
8942 | _ACEOF | ||
8943 | |||
8944 | cat >>confdefs.h <<\_ACEOF | ||
8945 | #define BROKEN_SETREUID 1 | ||
8946 | _ACEOF | ||
8947 | |||
8948 | cat >>confdefs.h <<\_ACEOF | ||
8949 | #define BROKEN_SETREGID 1 | ||
8950 | _ACEOF | ||
8951 | |||
8952 | cat >>confdefs.h <<\_ACEOF | ||
8953 | #define PASSWD_NEEDS_USERNAME 1 | ||
8954 | _ACEOF | ||
8955 | |||
8956 | case "$host" in | ||
8957 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8958 | TEST_SHELL=/u95/bin/sh | ||
8959 | |||
8960 | cat >>confdefs.h <<\_ACEOF | ||
8961 | #define BROKEN_LIBIAF 1 | ||
8962 | _ACEOF | ||
8963 | |||
8964 | cat >>confdefs.h <<\_ACEOF | ||
8965 | #define BROKEN_UPDWTMPX 1 | ||
8966 | _ACEOF | ||
8967 | |||
8968 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
8969 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
8970 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
8971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8972 | else | ||
8973 | ac_check_lib_save_LIBS=$LIBS | ||
8974 | LIBS="-lprot $LIBS" | ||
8975 | cat >conftest.$ac_ext <<_ACEOF | ||
8976 | /* confdefs.h. */ | ||
8977 | _ACEOF | ||
8978 | cat confdefs.h >>conftest.$ac_ext | ||
8979 | cat >>conftest.$ac_ext <<_ACEOF | ||
8980 | /* end confdefs.h. */ | ||
8981 | |||
8982 | /* Override any GCC internal prototype to avoid an error. | ||
8983 | Use char because int might match the return type of a GCC | ||
8984 | builtin and then its argument prototype would still apply. */ | ||
8985 | #ifdef __cplusplus | ||
8986 | extern "C" | ||
8987 | #endif | ||
8988 | char getluid (); | ||
8989 | int | ||
8990 | main () | ||
8991 | { | ||
8992 | return getluid (); | ||
8993 | ; | ||
8994 | return 0; | ||
8995 | } | ||
8996 | _ACEOF | ||
8997 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8998 | if { (ac_try="$ac_link" | ||
8999 | case "(($ac_try" in | ||
9000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9001 | *) ac_try_echo=$ac_try;; | ||
9002 | esac | ||
9003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9004 | (eval "$ac_link") 2>conftest.er1 | ||
9005 | ac_status=$? | ||
9006 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9007 | rm -f conftest.er1 | ||
9008 | cat conftest.err >&5 | ||
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9010 | (exit $ac_status); } && { | ||
9011 | test -z "$ac_c_werror_flag" || | ||
9012 | test ! -s conftest.err | ||
9013 | } && test -s conftest$ac_exeext && | ||
9014 | $as_test_x conftest$ac_exeext; then | ||
9015 | ac_cv_lib_prot_getluid=yes | ||
9016 | else | ||
9017 | echo "$as_me: failed program was:" >&5 | ||
9018 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9019 | |||
9020 | ac_cv_lib_prot_getluid=no | ||
9021 | fi | ||
9022 | |||
9023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9024 | conftest$ac_exeext conftest.$ac_ext | ||
9025 | LIBS=$ac_check_lib_save_LIBS | ||
9026 | fi | ||
9027 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
9028 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
9029 | if test $ac_cv_lib_prot_getluid = yes; then | ||
9030 | LIBS="$LIBS -lprot" | ||
9031 | |||
9032 | |||
9033 | for ac_func in getluid setluid | ||
9034 | do | ||
9035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9036 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9038 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9040 | else | ||
9041 | cat >conftest.$ac_ext <<_ACEOF | ||
9042 | /* confdefs.h. */ | ||
9043 | _ACEOF | ||
9044 | cat confdefs.h >>conftest.$ac_ext | ||
9045 | cat >>conftest.$ac_ext <<_ACEOF | ||
9046 | /* end confdefs.h. */ | ||
9047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9049 | #define $ac_func innocuous_$ac_func | ||
9050 | |||
9051 | /* System header to define __stub macros and hopefully few prototypes, | ||
9052 | which can conflict with char $ac_func (); below. | ||
9053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9054 | <limits.h> exists even on freestanding compilers. */ | ||
9055 | |||
9056 | #ifdef __STDC__ | ||
9057 | # include <limits.h> | ||
9058 | #else | ||
9059 | # include <assert.h> | ||
9060 | #endif | ||
9061 | |||
9062 | #undef $ac_func | ||
9063 | |||
9064 | /* Override any GCC internal prototype to avoid an error. | ||
9065 | Use char because int might match the return type of a GCC | ||
9066 | builtin and then its argument prototype would still apply. */ | ||
9067 | #ifdef __cplusplus | ||
9068 | extern "C" | ||
9069 | #endif | ||
9070 | char $ac_func (); | ||
9071 | /* The GNU C library defines this for functions which it implements | ||
9072 | to always fail with ENOSYS. Some functions are actually named | ||
9073 | something starting with __ and the normal name is an alias. */ | ||
9074 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9075 | choke me | ||
9076 | #endif | ||
9077 | |||
9078 | int | ||
9079 | main () | ||
9080 | { | ||
9081 | return $ac_func (); | ||
9082 | ; | ||
9083 | return 0; | ||
9084 | } | ||
9085 | _ACEOF | ||
9086 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9087 | if { (ac_try="$ac_link" | ||
9088 | case "(($ac_try" in | ||
9089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9090 | *) ac_try_echo=$ac_try;; | ||
9091 | esac | ||
9092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9093 | (eval "$ac_link") 2>conftest.er1 | ||
9094 | ac_status=$? | ||
9095 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9096 | rm -f conftest.er1 | ||
9097 | cat conftest.err >&5 | ||
9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9099 | (exit $ac_status); } && { | ||
9100 | test -z "$ac_c_werror_flag" || | ||
9101 | test ! -s conftest.err | ||
9102 | } && test -s conftest$ac_exeext && | ||
9103 | $as_test_x conftest$ac_exeext; then | ||
9104 | eval "$as_ac_var=yes" | ||
9105 | else | ||
9106 | echo "$as_me: failed program was:" >&5 | ||
9107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9108 | |||
9109 | eval "$as_ac_var=no" | ||
9110 | fi | ||
9111 | |||
9112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9113 | conftest$ac_exeext conftest.$ac_ext | ||
9114 | fi | ||
9115 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9116 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9117 | echo "${ECHO_T}$ac_res" >&6; } | ||
9118 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9119 | cat >>confdefs.h <<_ACEOF | ||
9120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9121 | _ACEOF | ||
9122 | |||
9123 | fi | ||
9124 | done | ||
9125 | |||
9126 | cat >>confdefs.h <<\_ACEOF | ||
9127 | #define HAVE_SECUREWARE 1 | ||
9128 | _ACEOF | ||
9129 | |||
9130 | cat >>confdefs.h <<\_ACEOF | ||
9131 | #define DISABLE_SHADOW 1 | ||
9132 | _ACEOF | ||
9133 | |||
9134 | |||
9135 | fi | ||
9136 | |||
9137 | ;; | ||
9138 | *) cat >>confdefs.h <<\_ACEOF | ||
9139 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9140 | _ACEOF | ||
9141 | |||
9142 | check_for_libcrypt_later=1 | ||
9143 | ;; | ||
9144 | esac | ||
9145 | ;; | ||
9146 | *-*-sysv*) | ||
9147 | ;; | ||
9148 | # SCO UNIX and OEM versions of SCO UNIX | ||
9149 | *-*-sco3.2v4*) | ||
9150 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
9151 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
9152 | { (exit 1); exit 1; }; } | ||
9153 | ;; | ||
9154 | # SCO OpenServer 5.x | ||
9155 | *-*-sco3.2v5*) | ||
9156 | if test -z "$GCC"; then | ||
9157 | CFLAGS="$CFLAGS -belf" | ||
9158 | fi | ||
9159 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
9160 | no_dev_ptmx=1 | ||
9161 | cat >>confdefs.h <<\_ACEOF | ||
9162 | #define USE_PIPES 1 | ||
9163 | _ACEOF | ||
9164 | |||
9165 | cat >>confdefs.h <<\_ACEOF | ||
9166 | #define HAVE_SECUREWARE 1 | ||
9167 | _ACEOF | ||
9168 | |||
9169 | cat >>confdefs.h <<\_ACEOF | ||
9170 | #define DISABLE_SHADOW 1 | ||
9171 | _ACEOF | ||
9172 | |||
9173 | cat >>confdefs.h <<\_ACEOF | ||
9174 | #define DISABLE_FD_PASSING 1 | ||
9175 | _ACEOF | ||
9176 | |||
9177 | cat >>confdefs.h <<\_ACEOF | ||
9178 | #define SETEUID_BREAKS_SETUID 1 | ||
9179 | _ACEOF | ||
9180 | |||
9181 | cat >>confdefs.h <<\_ACEOF | ||
9182 | #define BROKEN_GETADDRINFO 1 | ||
9183 | _ACEOF | ||
9184 | |||
9185 | cat >>confdefs.h <<\_ACEOF | ||
9186 | #define BROKEN_SETREUID 1 | ||
9187 | _ACEOF | ||
9188 | |||
9189 | cat >>confdefs.h <<\_ACEOF | ||
9190 | #define BROKEN_SETREGID 1 | ||
9191 | _ACEOF | ||
9192 | |||
9193 | cat >>confdefs.h <<\_ACEOF | ||
9194 | #define WITH_ABBREV_NO_TTY 1 | ||
9195 | _ACEOF | ||
9196 | |||
9197 | cat >>confdefs.h <<\_ACEOF | ||
9198 | #define BROKEN_UPDWTMPX 1 | ||
9199 | _ACEOF | ||
9200 | |||
9201 | cat >>confdefs.h <<\_ACEOF | ||
9202 | #define PASSWD_NEEDS_USERNAME 1 | ||
9203 | _ACEOF | ||
9204 | |||
9205 | |||
9206 | |||
9207 | for ac_func in getluid setluid | ||
9208 | do | ||
9209 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9210 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9211 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9212 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9214 | else | ||
9215 | cat >conftest.$ac_ext <<_ACEOF | ||
9216 | /* confdefs.h. */ | ||
9217 | _ACEOF | ||
9218 | cat confdefs.h >>conftest.$ac_ext | ||
9219 | cat >>conftest.$ac_ext <<_ACEOF | ||
9220 | /* end confdefs.h. */ | ||
9221 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9223 | #define $ac_func innocuous_$ac_func | ||
9224 | |||
9225 | /* System header to define __stub macros and hopefully few prototypes, | ||
9226 | which can conflict with char $ac_func (); below. | ||
9227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9228 | <limits.h> exists even on freestanding compilers. */ | ||
9229 | |||
9230 | #ifdef __STDC__ | ||
9231 | # include <limits.h> | ||
9232 | #else | ||
9233 | # include <assert.h> | ||
9234 | #endif | ||
9235 | |||
9236 | #undef $ac_func | ||
9237 | |||
9238 | /* Override any GCC internal prototype to avoid an error. | ||
9239 | Use char because int might match the return type of a GCC | ||
9240 | builtin and then its argument prototype would still apply. */ | ||
9241 | #ifdef __cplusplus | ||
9242 | extern "C" | ||
9243 | #endif | ||
9244 | char $ac_func (); | ||
9245 | /* The GNU C library defines this for functions which it implements | ||
9246 | to always fail with ENOSYS. Some functions are actually named | ||
9247 | something starting with __ and the normal name is an alias. */ | ||
9248 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9249 | choke me | ||
9250 | #endif | ||
9251 | |||
9252 | int | ||
9253 | main () | ||
9254 | { | ||
9255 | return $ac_func (); | ||
9256 | ; | ||
9257 | return 0; | ||
9258 | } | ||
9259 | _ACEOF | ||
9260 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9261 | if { (ac_try="$ac_link" | ||
9262 | case "(($ac_try" in | ||
9263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9264 | *) ac_try_echo=$ac_try;; | ||
9265 | esac | ||
9266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9267 | (eval "$ac_link") 2>conftest.er1 | ||
9268 | ac_status=$? | ||
9269 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9270 | rm -f conftest.er1 | ||
9271 | cat conftest.err >&5 | ||
9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9273 | (exit $ac_status); } && { | ||
9274 | test -z "$ac_c_werror_flag" || | ||
9275 | test ! -s conftest.err | ||
9276 | } && test -s conftest$ac_exeext && | ||
9277 | $as_test_x conftest$ac_exeext; then | ||
9278 | eval "$as_ac_var=yes" | ||
9279 | else | ||
9280 | echo "$as_me: failed program was:" >&5 | ||
9281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9282 | |||
9283 | eval "$as_ac_var=no" | ||
9284 | fi | ||
9285 | |||
9286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9287 | conftest$ac_exeext conftest.$ac_ext | ||
9288 | fi | ||
9289 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9290 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9291 | echo "${ECHO_T}$ac_res" >&6; } | ||
9292 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9293 | cat >>confdefs.h <<_ACEOF | ||
9294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9295 | _ACEOF | ||
9296 | |||
9297 | fi | ||
9298 | done | ||
9299 | |||
9300 | MANTYPE=man | ||
9301 | TEST_SHELL=ksh | ||
9302 | ;; | ||
9303 | *-*-unicosmk*) | ||
9304 | |||
9305 | cat >>confdefs.h <<\_ACEOF | ||
9306 | #define NO_SSH_LASTLOG 1 | ||
9307 | _ACEOF | ||
9308 | |||
9309 | cat >>confdefs.h <<\_ACEOF | ||
9310 | #define SETEUID_BREAKS_SETUID 1 | ||
9311 | _ACEOF | ||
9312 | |||
9313 | cat >>confdefs.h <<\_ACEOF | ||
9314 | #define BROKEN_SETREUID 1 | ||
9315 | _ACEOF | ||
9316 | |||
9317 | cat >>confdefs.h <<\_ACEOF | ||
9318 | #define BROKEN_SETREGID 1 | ||
9319 | _ACEOF | ||
9320 | |||
9321 | cat >>confdefs.h <<\_ACEOF | ||
9322 | #define USE_PIPES 1 | ||
9323 | _ACEOF | ||
9324 | |||
9325 | cat >>confdefs.h <<\_ACEOF | ||
9326 | #define DISABLE_FD_PASSING 1 | ||
9327 | _ACEOF | ||
9328 | |||
9329 | LDFLAGS="$LDFLAGS" | ||
9330 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9331 | MANTYPE=cat | ||
9332 | ;; | ||
9333 | *-*-unicosmp*) | ||
9334 | cat >>confdefs.h <<\_ACEOF | ||
9335 | #define SETEUID_BREAKS_SETUID 1 | ||
9336 | _ACEOF | ||
9337 | |||
9338 | cat >>confdefs.h <<\_ACEOF | ||
9339 | #define BROKEN_SETREUID 1 | ||
9340 | _ACEOF | ||
9341 | |||
9342 | cat >>confdefs.h <<\_ACEOF | ||
9343 | #define BROKEN_SETREGID 1 | ||
9344 | _ACEOF | ||
9345 | |||
9346 | cat >>confdefs.h <<\_ACEOF | ||
9347 | #define WITH_ABBREV_NO_TTY 1 | ||
9348 | _ACEOF | ||
9349 | |||
9350 | cat >>confdefs.h <<\_ACEOF | ||
9351 | #define USE_PIPES 1 | ||
9352 | _ACEOF | ||
9353 | |||
9354 | cat >>confdefs.h <<\_ACEOF | ||
9355 | #define DISABLE_FD_PASSING 1 | ||
9356 | _ACEOF | ||
9357 | |||
9358 | LDFLAGS="$LDFLAGS" | ||
9359 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9360 | MANTYPE=cat | ||
9361 | ;; | ||
9362 | *-*-unicos*) | ||
9363 | cat >>confdefs.h <<\_ACEOF | ||
9364 | #define SETEUID_BREAKS_SETUID 1 | ||
9365 | _ACEOF | ||
9366 | |||
9367 | cat >>confdefs.h <<\_ACEOF | ||
9368 | #define BROKEN_SETREUID 1 | ||
9369 | _ACEOF | ||
9370 | |||
9371 | cat >>confdefs.h <<\_ACEOF | ||
9372 | #define BROKEN_SETREGID 1 | ||
9373 | _ACEOF | ||
9374 | |||
9375 | cat >>confdefs.h <<\_ACEOF | ||
9376 | #define USE_PIPES 1 | ||
9377 | _ACEOF | ||
9378 | |||
9379 | cat >>confdefs.h <<\_ACEOF | ||
9380 | #define DISABLE_FD_PASSING 1 | ||
9381 | _ACEOF | ||
9382 | |||
9383 | cat >>confdefs.h <<\_ACEOF | ||
9384 | #define NO_SSH_LASTLOG 1 | ||
9385 | _ACEOF | ||
9386 | |||
9387 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9388 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9389 | MANTYPE=cat | ||
9390 | ;; | ||
9391 | *-dec-osf*) | ||
9392 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9393 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
9394 | no_osfsia="" | ||
9395 | |||
9396 | # Check whether --with-osfsia was given. | ||
9397 | if test "${with_osfsia+set}" = set; then | ||
9398 | withval=$with_osfsia; | ||
9399 | if test "x$withval" = "xno" ; then | ||
9400 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
9401 | echo "${ECHO_T}disabled" >&6; } | ||
9402 | no_osfsia=1 | ||
9403 | fi | ||
9404 | |||
9405 | fi | ||
9406 | |||
9407 | if test -z "$no_osfsia" ; then | ||
9408 | if test -f /etc/sia/matrix.conf; then | ||
9409 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9410 | echo "${ECHO_T}yes" >&6; } | ||
9411 | |||
9412 | cat >>confdefs.h <<\_ACEOF | ||
9413 | #define HAVE_OSF_SIA 1 | ||
9414 | _ACEOF | ||
9415 | |||
9416 | |||
9417 | cat >>confdefs.h <<\_ACEOF | ||
9418 | #define DISABLE_LOGIN 1 | ||
9419 | _ACEOF | ||
9420 | |||
9421 | cat >>confdefs.h <<\_ACEOF | ||
9422 | #define DISABLE_FD_PASSING 1 | ||
9423 | _ACEOF | ||
9424 | |||
9425 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9426 | SIA_MSG="yes" | ||
9427 | else | ||
9428 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9429 | echo "${ECHO_T}no" >&6; } | ||
9430 | |||
9431 | cat >>confdefs.h <<\_ACEOF | ||
9432 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9433 | _ACEOF | ||
9434 | |||
9435 | fi | ||
9436 | fi | ||
9437 | cat >>confdefs.h <<\_ACEOF | ||
9438 | #define BROKEN_GETADDRINFO 1 | ||
9439 | _ACEOF | ||
9440 | |||
9441 | cat >>confdefs.h <<\_ACEOF | ||
9442 | #define SETEUID_BREAKS_SETUID 1 | ||
9443 | _ACEOF | ||
9444 | |||
9445 | cat >>confdefs.h <<\_ACEOF | ||
9446 | #define BROKEN_SETREUID 1 | ||
9447 | _ACEOF | ||
9448 | |||
9449 | cat >>confdefs.h <<\_ACEOF | ||
9450 | #define BROKEN_SETREGID 1 | ||
9451 | _ACEOF | ||
9452 | |||
9453 | |||
9454 | cat >>confdefs.h <<\_ACEOF | ||
9455 | #define BROKEN_READV_COMPARISON 1 | ||
9456 | _ACEOF | ||
9457 | |||
9458 | ;; | ||
9459 | |||
9460 | *-*-nto-qnx*) | ||
9461 | cat >>confdefs.h <<\_ACEOF | ||
9462 | #define USE_PIPES 1 | ||
9463 | _ACEOF | ||
9464 | |||
9465 | cat >>confdefs.h <<\_ACEOF | ||
9466 | #define NO_X11_UNIX_SOCKETS 1 | ||
9467 | _ACEOF | ||
9468 | |||
9469 | |||
9470 | cat >>confdefs.h <<\_ACEOF | ||
9471 | #define MISSING_NFDBITS 1 | ||
9472 | _ACEOF | ||
9473 | |||
9474 | |||
9475 | cat >>confdefs.h <<\_ACEOF | ||
9476 | #define MISSING_HOWMANY 1 | ||
9477 | _ACEOF | ||
9478 | |||
9479 | |||
9480 | cat >>confdefs.h <<\_ACEOF | ||
9481 | #define MISSING_FD_MASK 1 | ||
9482 | _ACEOF | ||
9483 | |||
9484 | cat >>confdefs.h <<\_ACEOF | ||
9485 | #define DISABLE_LASTLOG 1 | ||
9486 | _ACEOF | ||
9487 | |||
9488 | cat >>confdefs.h <<\_ACEOF | ||
9489 | #define SSHD_ACQUIRES_CTTY 1 | ||
9490 | _ACEOF | ||
9491 | |||
9492 | |||
9493 | cat >>confdefs.h <<\_ACEOF | ||
9494 | #define BROKEN_SHADOW_EXPIRE 1 | ||
9495 | _ACEOF | ||
9496 | |||
9497 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
9498 | case "$host" in | ||
9499 | *-*-nto-qnx6*) | ||
9500 | cat >>confdefs.h <<\_ACEOF | ||
9501 | #define DISABLE_FD_PASSING 1 | ||
9502 | _ACEOF | ||
9503 | |||
9504 | ;; | ||
9505 | esac | ||
9506 | ;; | ||
9507 | |||
9508 | *-*-ultrix*) | ||
9509 | |||
9510 | cat >>confdefs.h <<\_ACEOF | ||
9511 | #define BROKEN_GETGROUPS 1 | ||
9512 | _ACEOF | ||
9513 | |||
9514 | |||
9515 | cat >>confdefs.h <<\_ACEOF | ||
9516 | #define BROKEN_MMAP 1 | ||
9517 | _ACEOF | ||
9518 | |||
9519 | cat >>confdefs.h <<\_ACEOF | ||
9520 | #define NEED_SETPGRP 1 | ||
9521 | _ACEOF | ||
9522 | |||
9523 | |||
9524 | cat >>confdefs.h <<\_ACEOF | ||
9525 | #define HAVE_SYS_SYSLOG_H 1 | ||
9526 | _ACEOF | ||
9527 | |||
9528 | ;; | ||
9529 | |||
9530 | *-*-lynxos) | ||
9531 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
9532 | cat >>confdefs.h <<\_ACEOF | ||
9533 | #define MISSING_HOWMANY 1 | ||
9534 | _ACEOF | ||
9535 | |||
9536 | |||
9537 | cat >>confdefs.h <<\_ACEOF | ||
9538 | #define BROKEN_SETVBUF 1 | ||
9539 | _ACEOF | ||
9540 | |||
9541 | ;; | ||
9542 | esac | ||
9543 | |||
9544 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
9545 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
9546 | if test "$cross_compiling" = yes; then | ||
9547 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
9548 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
9549 | |||
9550 | else | ||
9551 | cat >conftest.$ac_ext <<_ACEOF | ||
9552 | /* confdefs.h. */ | ||
9553 | _ACEOF | ||
9554 | cat confdefs.h >>conftest.$ac_ext | ||
9555 | cat >>conftest.$ac_ext <<_ACEOF | ||
9556 | /* end confdefs.h. */ | ||
9557 | |||
9558 | #include <stdio.h> | ||
9559 | int main(){exit(0);} | ||
9560 | |||
9561 | _ACEOF | ||
9562 | rm -f conftest$ac_exeext | ||
9563 | if { (ac_try="$ac_link" | ||
9564 | case "(($ac_try" in | ||
9565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9566 | *) ac_try_echo=$ac_try;; | ||
9567 | esac | ||
9568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9569 | (eval "$ac_link") 2>&5 | ||
9570 | ac_status=$? | ||
9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9573 | { (case "(($ac_try" in | ||
9574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9575 | *) ac_try_echo=$ac_try;; | ||
9576 | esac | ||
9577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9578 | (eval "$ac_try") 2>&5 | ||
9579 | ac_status=$? | ||
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9581 | (exit $ac_status); }; }; then | ||
9582 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9583 | echo "${ECHO_T}yes" >&6; } | ||
9584 | else | ||
9585 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9586 | echo "$as_me: failed program was:" >&5 | ||
9587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9588 | |||
9589 | ( exit $ac_status ) | ||
9590 | |||
9591 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9592 | echo "${ECHO_T}no" >&6; } | ||
9593 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
9594 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
9595 | { (exit 1); exit 1; }; } | ||
9596 | |||
9597 | fi | ||
9598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9599 | fi | ||
9600 | |||
9601 | |||
9602 | |||
9603 | # Checks for libraries. | ||
9604 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
9605 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
9606 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
9607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9608 | else | ||
9609 | cat >conftest.$ac_ext <<_ACEOF | ||
9610 | /* confdefs.h. */ | ||
9611 | _ACEOF | ||
9612 | cat confdefs.h >>conftest.$ac_ext | ||
9613 | cat >>conftest.$ac_ext <<_ACEOF | ||
9614 | /* end confdefs.h. */ | ||
9615 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
9616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9617 | #define yp_match innocuous_yp_match | ||
9618 | |||
9619 | /* System header to define __stub macros and hopefully few prototypes, | ||
9620 | which can conflict with char yp_match (); below. | ||
9621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9622 | <limits.h> exists even on freestanding compilers. */ | ||
9623 | |||
9624 | #ifdef __STDC__ | ||
9625 | # include <limits.h> | ||
9626 | #else | ||
9627 | # include <assert.h> | ||
9628 | #endif | ||
9629 | |||
9630 | #undef yp_match | ||
9631 | |||
9632 | /* Override any GCC internal prototype to avoid an error. | ||
9633 | Use char because int might match the return type of a GCC | ||
9634 | builtin and then its argument prototype would still apply. */ | ||
9635 | #ifdef __cplusplus | ||
9636 | extern "C" | ||
9637 | #endif | ||
9638 | char yp_match (); | ||
9639 | /* The GNU C library defines this for functions which it implements | ||
9640 | to always fail with ENOSYS. Some functions are actually named | ||
9641 | something starting with __ and the normal name is an alias. */ | ||
9642 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9643 | choke me | ||
9644 | #endif | ||
9645 | |||
9646 | int | ||
9647 | main () | ||
9648 | { | ||
9649 | return yp_match (); | ||
9650 | ; | ||
9651 | return 0; | ||
9652 | } | ||
9653 | _ACEOF | ||
9654 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9655 | if { (ac_try="$ac_link" | ||
9656 | case "(($ac_try" in | ||
9657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9658 | *) ac_try_echo=$ac_try;; | ||
9659 | esac | ||
9660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9661 | (eval "$ac_link") 2>conftest.er1 | ||
9662 | ac_status=$? | ||
9663 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9664 | rm -f conftest.er1 | ||
9665 | cat conftest.err >&5 | ||
9666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9667 | (exit $ac_status); } && { | ||
9668 | test -z "$ac_c_werror_flag" || | ||
9669 | test ! -s conftest.err | ||
9670 | } && test -s conftest$ac_exeext && | ||
9671 | $as_test_x conftest$ac_exeext; then | ||
9672 | ac_cv_func_yp_match=yes | ||
9673 | else | ||
9674 | echo "$as_me: failed program was:" >&5 | ||
9675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9676 | |||
9677 | ac_cv_func_yp_match=no | ||
9678 | fi | ||
9679 | |||
9680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9681 | conftest$ac_exeext conftest.$ac_ext | ||
9682 | fi | ||
9683 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
9684 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
9685 | if test $ac_cv_func_yp_match = yes; then | ||
9686 | : | ||
9687 | else | ||
9688 | |||
9689 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
9690 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
9691 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
9692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9693 | else | ||
9694 | ac_check_lib_save_LIBS=$LIBS | ||
9695 | LIBS="-lnsl $LIBS" | ||
9696 | cat >conftest.$ac_ext <<_ACEOF | ||
9697 | /* confdefs.h. */ | ||
9698 | _ACEOF | ||
9699 | cat confdefs.h >>conftest.$ac_ext | ||
9700 | cat >>conftest.$ac_ext <<_ACEOF | ||
9701 | /* end confdefs.h. */ | ||
9702 | |||
9703 | /* Override any GCC internal prototype to avoid an error. | ||
9704 | Use char because int might match the return type of a GCC | ||
9705 | builtin and then its argument prototype would still apply. */ | ||
9706 | #ifdef __cplusplus | ||
9707 | extern "C" | ||
9708 | #endif | ||
9709 | char yp_match (); | ||
9710 | int | ||
9711 | main () | ||
9712 | { | ||
9713 | return yp_match (); | ||
9714 | ; | ||
9715 | return 0; | ||
9716 | } | ||
9717 | _ACEOF | ||
9718 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9719 | if { (ac_try="$ac_link" | ||
9720 | case "(($ac_try" in | ||
9721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9722 | *) ac_try_echo=$ac_try;; | ||
9723 | esac | ||
9724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9725 | (eval "$ac_link") 2>conftest.er1 | ||
9726 | ac_status=$? | ||
9727 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9728 | rm -f conftest.er1 | ||
9729 | cat conftest.err >&5 | ||
9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9731 | (exit $ac_status); } && { | ||
9732 | test -z "$ac_c_werror_flag" || | ||
9733 | test ! -s conftest.err | ||
9734 | } && test -s conftest$ac_exeext && | ||
9735 | $as_test_x conftest$ac_exeext; then | ||
9736 | ac_cv_lib_nsl_yp_match=yes | ||
9737 | else | ||
9738 | echo "$as_me: failed program was:" >&5 | ||
9739 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9740 | |||
9741 | ac_cv_lib_nsl_yp_match=no | ||
9742 | fi | ||
9743 | |||
9744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9745 | conftest$ac_exeext conftest.$ac_ext | ||
9746 | LIBS=$ac_check_lib_save_LIBS | ||
9747 | fi | ||
9748 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
9749 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
9750 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
9751 | cat >>confdefs.h <<_ACEOF | ||
9752 | #define HAVE_LIBNSL 1 | ||
9753 | _ACEOF | ||
9754 | |||
9755 | LIBS="-lnsl $LIBS" | ||
9756 | |||
9757 | fi | ||
9758 | |||
9759 | fi | ||
9760 | |||
9761 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
9762 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
9763 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
9764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9765 | else | ||
9766 | cat >conftest.$ac_ext <<_ACEOF | ||
9767 | /* confdefs.h. */ | ||
9768 | _ACEOF | ||
9769 | cat confdefs.h >>conftest.$ac_ext | ||
9770 | cat >>conftest.$ac_ext <<_ACEOF | ||
9771 | /* end confdefs.h. */ | ||
9772 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
9773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9774 | #define setsockopt innocuous_setsockopt | ||
9775 | |||
9776 | /* System header to define __stub macros and hopefully few prototypes, | ||
9777 | which can conflict with char setsockopt (); below. | ||
9778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9779 | <limits.h> exists even on freestanding compilers. */ | ||
9780 | |||
9781 | #ifdef __STDC__ | ||
9782 | # include <limits.h> | ||
9783 | #else | ||
9784 | # include <assert.h> | ||
9785 | #endif | ||
9786 | |||
9787 | #undef setsockopt | ||
9788 | |||
9789 | /* Override any GCC internal prototype to avoid an error. | ||
9790 | Use char because int might match the return type of a GCC | ||
9791 | builtin and then its argument prototype would still apply. */ | ||
9792 | #ifdef __cplusplus | ||
9793 | extern "C" | ||
9794 | #endif | ||
9795 | char setsockopt (); | ||
9796 | /* The GNU C library defines this for functions which it implements | ||
9797 | to always fail with ENOSYS. Some functions are actually named | ||
9798 | something starting with __ and the normal name is an alias. */ | ||
9799 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
9800 | choke me | ||
9801 | #endif | ||
9802 | |||
9803 | int | ||
9804 | main () | ||
9805 | { | ||
9806 | return setsockopt (); | ||
9807 | ; | ||
9808 | return 0; | ||
9809 | } | ||
9810 | _ACEOF | ||
9811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9812 | if { (ac_try="$ac_link" | ||
9813 | case "(($ac_try" in | ||
9814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9815 | *) ac_try_echo=$ac_try;; | ||
9816 | esac | ||
9817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9818 | (eval "$ac_link") 2>conftest.er1 | ||
9819 | ac_status=$? | ||
9820 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9821 | rm -f conftest.er1 | ||
9822 | cat conftest.err >&5 | ||
9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9824 | (exit $ac_status); } && { | ||
9825 | test -z "$ac_c_werror_flag" || | ||
9826 | test ! -s conftest.err | ||
9827 | } && test -s conftest$ac_exeext && | ||
9828 | $as_test_x conftest$ac_exeext; then | ||
9829 | ac_cv_func_setsockopt=yes | ||
9830 | else | ||
9831 | echo "$as_me: failed program was:" >&5 | ||
9832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9833 | |||
9834 | ac_cv_func_setsockopt=no | ||
9835 | fi | ||
9836 | |||
9837 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9838 | conftest$ac_exeext conftest.$ac_ext | ||
9839 | fi | ||
9840 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
9841 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
9842 | if test $ac_cv_func_setsockopt = yes; then | ||
9843 | : | ||
9844 | else | ||
9845 | |||
9846 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
9847 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
9848 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
9849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9850 | else | ||
9851 | ac_check_lib_save_LIBS=$LIBS | ||
9852 | LIBS="-lsocket $LIBS" | ||
9853 | cat >conftest.$ac_ext <<_ACEOF | ||
9854 | /* confdefs.h. */ | ||
9855 | _ACEOF | ||
9856 | cat confdefs.h >>conftest.$ac_ext | ||
9857 | cat >>conftest.$ac_ext <<_ACEOF | ||
9858 | /* end confdefs.h. */ | ||
9859 | |||
9860 | /* Override any GCC internal prototype to avoid an error. | ||
9861 | Use char because int might match the return type of a GCC | ||
9862 | builtin and then its argument prototype would still apply. */ | ||
9863 | #ifdef __cplusplus | ||
9864 | extern "C" | ||
9865 | #endif | ||
9866 | char setsockopt (); | ||
9867 | int | ||
9868 | main () | ||
9869 | { | ||
9870 | return setsockopt (); | ||
9871 | ; | ||
9872 | return 0; | ||
9873 | } | ||
9874 | _ACEOF | ||
9875 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9876 | if { (ac_try="$ac_link" | ||
9877 | case "(($ac_try" in | ||
9878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9879 | *) ac_try_echo=$ac_try;; | ||
9880 | esac | ||
9881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9882 | (eval "$ac_link") 2>conftest.er1 | ||
9883 | ac_status=$? | ||
9884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9885 | rm -f conftest.er1 | ||
9886 | cat conftest.err >&5 | ||
9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9888 | (exit $ac_status); } && { | ||
9889 | test -z "$ac_c_werror_flag" || | ||
9890 | test ! -s conftest.err | ||
9891 | } && test -s conftest$ac_exeext && | ||
9892 | $as_test_x conftest$ac_exeext; then | ||
9893 | ac_cv_lib_socket_setsockopt=yes | ||
9894 | else | ||
9895 | echo "$as_me: failed program was:" >&5 | ||
9896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9897 | |||
9898 | ac_cv_lib_socket_setsockopt=no | ||
9899 | fi | ||
9900 | |||
9901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9902 | conftest$ac_exeext conftest.$ac_ext | ||
9903 | LIBS=$ac_check_lib_save_LIBS | ||
9904 | fi | ||
9905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
9906 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
9907 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
9908 | cat >>confdefs.h <<_ACEOF | ||
9909 | #define HAVE_LIBSOCKET 1 | ||
9910 | _ACEOF | ||
9911 | |||
9912 | LIBS="-lsocket $LIBS" | ||
9913 | |||
9914 | fi | ||
9915 | |||
9916 | fi | ||
9917 | |||
9918 | |||
9919 | |||
9920 | for ac_func in dirname | ||
9921 | do | ||
9922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9923 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9925 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9927 | else | ||
9928 | cat >conftest.$ac_ext <<_ACEOF | ||
9929 | /* confdefs.h. */ | ||
9930 | _ACEOF | ||
9931 | cat confdefs.h >>conftest.$ac_ext | ||
9932 | cat >>conftest.$ac_ext <<_ACEOF | ||
9933 | /* end confdefs.h. */ | ||
9934 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9936 | #define $ac_func innocuous_$ac_func | ||
9937 | |||
9938 | /* System header to define __stub macros and hopefully few prototypes, | ||
9939 | which can conflict with char $ac_func (); below. | ||
9940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9941 | <limits.h> exists even on freestanding compilers. */ | ||
9942 | |||
9943 | #ifdef __STDC__ | ||
9944 | # include <limits.h> | ||
9945 | #else | ||
9946 | # include <assert.h> | ||
9947 | #endif | ||
9948 | |||
9949 | #undef $ac_func | ||
9950 | |||
9951 | /* Override any GCC internal prototype to avoid an error. | ||
9952 | Use char because int might match the return type of a GCC | ||
9953 | builtin and then its argument prototype would still apply. */ | ||
9954 | #ifdef __cplusplus | ||
9955 | extern "C" | ||
9956 | #endif | ||
9957 | char $ac_func (); | ||
9958 | /* The GNU C library defines this for functions which it implements | ||
9959 | to always fail with ENOSYS. Some functions are actually named | ||
9960 | something starting with __ and the normal name is an alias. */ | ||
9961 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9962 | choke me | ||
9963 | #endif | ||
9964 | |||
9965 | int | ||
9966 | main () | ||
9967 | { | ||
9968 | return $ac_func (); | ||
9969 | ; | ||
9970 | return 0; | ||
9971 | } | ||
9972 | _ACEOF | ||
9973 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9974 | if { (ac_try="$ac_link" | ||
9975 | case "(($ac_try" in | ||
9976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9977 | *) ac_try_echo=$ac_try;; | ||
9978 | esac | ||
9979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9980 | (eval "$ac_link") 2>conftest.er1 | ||
9981 | ac_status=$? | ||
9982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9983 | rm -f conftest.er1 | ||
9984 | cat conftest.err >&5 | ||
9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9986 | (exit $ac_status); } && { | ||
9987 | test -z "$ac_c_werror_flag" || | ||
9988 | test ! -s conftest.err | ||
9989 | } && test -s conftest$ac_exeext && | ||
9990 | $as_test_x conftest$ac_exeext; then | ||
9991 | eval "$as_ac_var=yes" | ||
9992 | else | ||
9993 | echo "$as_me: failed program was:" >&5 | ||
9994 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9995 | |||
9996 | eval "$as_ac_var=no" | ||
9997 | fi | ||
9998 | |||
9999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10000 | conftest$ac_exeext conftest.$ac_ext | ||
10001 | fi | ||
10002 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10004 | echo "${ECHO_T}$ac_res" >&6; } | ||
10005 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10006 | cat >>confdefs.h <<_ACEOF | ||
10007 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10008 | _ACEOF | ||
10009 | |||
10010 | for ac_header in libgen.h | ||
10011 | do | ||
10012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10013 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10014 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10016 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10018 | fi | ||
10019 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10020 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10021 | echo "${ECHO_T}$ac_res" >&6; } | ||
10022 | else | ||
10023 | # Is the header compilable? | ||
10024 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10025 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10026 | cat >conftest.$ac_ext <<_ACEOF | ||
10027 | /* confdefs.h. */ | ||
10028 | _ACEOF | ||
10029 | cat confdefs.h >>conftest.$ac_ext | ||
10030 | cat >>conftest.$ac_ext <<_ACEOF | ||
10031 | /* end confdefs.h. */ | ||
10032 | $ac_includes_default | ||
10033 | #include <$ac_header> | ||
10034 | _ACEOF | ||
10035 | rm -f conftest.$ac_objext | ||
10036 | if { (ac_try="$ac_compile" | ||
10037 | case "(($ac_try" in | ||
10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10039 | *) ac_try_echo=$ac_try;; | ||
10040 | esac | ||
10041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10042 | (eval "$ac_compile") 2>conftest.er1 | ||
10043 | ac_status=$? | ||
10044 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10045 | rm -f conftest.er1 | ||
10046 | cat conftest.err >&5 | ||
10047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10048 | (exit $ac_status); } && { | ||
10049 | test -z "$ac_c_werror_flag" || | ||
10050 | test ! -s conftest.err | ||
10051 | } && test -s conftest.$ac_objext; then | ||
10052 | ac_header_compiler=yes | ||
10053 | else | ||
10054 | echo "$as_me: failed program was:" >&5 | ||
10055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10056 | |||
10057 | ac_header_compiler=no | ||
10058 | fi | ||
10059 | |||
10060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10061 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10062 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10063 | |||
10064 | # Is the header present? | ||
10065 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10067 | cat >conftest.$ac_ext <<_ACEOF | ||
10068 | /* confdefs.h. */ | ||
10069 | _ACEOF | ||
10070 | cat confdefs.h >>conftest.$ac_ext | ||
10071 | cat >>conftest.$ac_ext <<_ACEOF | ||
10072 | /* end confdefs.h. */ | ||
10073 | #include <$ac_header> | ||
10074 | _ACEOF | ||
10075 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10076 | case "(($ac_try" in | ||
10077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10078 | *) ac_try_echo=$ac_try;; | ||
10079 | esac | ||
10080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10082 | ac_status=$? | ||
10083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10084 | rm -f conftest.er1 | ||
10085 | cat conftest.err >&5 | ||
10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10087 | (exit $ac_status); } >/dev/null && { | ||
10088 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10089 | test ! -s conftest.err | ||
10090 | }; then | ||
10091 | ac_header_preproc=yes | ||
10092 | else | ||
10093 | echo "$as_me: failed program was:" >&5 | ||
10094 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10095 | |||
10096 | ac_header_preproc=no | ||
10097 | fi | ||
10098 | |||
10099 | rm -f conftest.err conftest.$ac_ext | ||
10100 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10101 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10102 | |||
10103 | # So? What about this header? | ||
10104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10105 | yes:no: ) | ||
10106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10109 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10110 | ac_header_preproc=yes | ||
10111 | ;; | ||
10112 | no:yes:* ) | ||
10113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10118 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10120 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10123 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10124 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10125 | ( cat <<\_ASBOX | ||
10126 | ## ------------------------------------------- ## | ||
10127 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10128 | ## ------------------------------------------- ## | ||
10129 | _ASBOX | ||
10130 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10131 | ;; | ||
10132 | esac | ||
10133 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10137 | else | ||
10138 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10139 | fi | ||
10140 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10141 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10142 | echo "${ECHO_T}$ac_res" >&6; } | ||
10143 | |||
10144 | fi | ||
10145 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10146 | cat >>confdefs.h <<_ACEOF | ||
10147 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10148 | _ACEOF | ||
10149 | |||
10150 | fi | ||
10151 | |||
10152 | done | ||
10153 | |||
10154 | else | ||
10155 | |||
10156 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
10157 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
10158 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
10159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10160 | else | ||
10161 | ac_check_lib_save_LIBS=$LIBS | ||
10162 | LIBS="-lgen $LIBS" | ||
10163 | cat >conftest.$ac_ext <<_ACEOF | ||
10164 | /* confdefs.h. */ | ||
10165 | _ACEOF | ||
10166 | cat confdefs.h >>conftest.$ac_ext | ||
10167 | cat >>conftest.$ac_ext <<_ACEOF | ||
10168 | /* end confdefs.h. */ | ||
10169 | |||
10170 | /* Override any GCC internal prototype to avoid an error. | ||
10171 | Use char because int might match the return type of a GCC | ||
10172 | builtin and then its argument prototype would still apply. */ | ||
10173 | #ifdef __cplusplus | ||
10174 | extern "C" | ||
10175 | #endif | ||
10176 | char dirname (); | ||
10177 | int | ||
10178 | main () | ||
10179 | { | ||
10180 | return dirname (); | ||
10181 | ; | ||
10182 | return 0; | ||
10183 | } | ||
10184 | _ACEOF | ||
10185 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10186 | if { (ac_try="$ac_link" | ||
10187 | case "(($ac_try" in | ||
10188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10189 | *) ac_try_echo=$ac_try;; | ||
10190 | esac | ||
10191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10192 | (eval "$ac_link") 2>conftest.er1 | ||
10193 | ac_status=$? | ||
10194 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10195 | rm -f conftest.er1 | ||
10196 | cat conftest.err >&5 | ||
10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10198 | (exit $ac_status); } && { | ||
10199 | test -z "$ac_c_werror_flag" || | ||
10200 | test ! -s conftest.err | ||
10201 | } && test -s conftest$ac_exeext && | ||
10202 | $as_test_x conftest$ac_exeext; then | ||
10203 | ac_cv_lib_gen_dirname=yes | ||
10204 | else | ||
10205 | echo "$as_me: failed program was:" >&5 | ||
10206 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10207 | |||
10208 | ac_cv_lib_gen_dirname=no | ||
10209 | fi | ||
10210 | |||
10211 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10212 | conftest$ac_exeext conftest.$ac_ext | ||
10213 | LIBS=$ac_check_lib_save_LIBS | ||
10214 | fi | ||
10215 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
10216 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
10217 | if test $ac_cv_lib_gen_dirname = yes; then | ||
10218 | |||
10219 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
10220 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
10221 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10223 | else | ||
10224 | |||
10225 | save_LIBS="$LIBS" | ||
10226 | LIBS="$LIBS -lgen" | ||
10227 | if test "$cross_compiling" = yes; then | ||
10228 | ac_cv_have_broken_dirname="no" | ||
10229 | else | ||
10230 | cat >conftest.$ac_ext <<_ACEOF | ||
10231 | /* confdefs.h. */ | ||
10232 | _ACEOF | ||
10233 | cat confdefs.h >>conftest.$ac_ext | ||
10234 | cat >>conftest.$ac_ext <<_ACEOF | ||
10235 | /* end confdefs.h. */ | ||
10236 | |||
10237 | #include <libgen.h> | ||
10238 | #include <string.h> | ||
10239 | |||
10240 | int main(int argc, char **argv) { | ||
10241 | char *s, buf[32]; | ||
10242 | |||
10243 | strncpy(buf,"/etc", 32); | ||
10244 | s = dirname(buf); | ||
10245 | if (!s || strncmp(s, "/", 32) != 0) { | ||
10246 | exit(1); | ||
10247 | } else { | ||
10248 | exit(0); | ||
10249 | } | ||
10250 | } | ||
10251 | |||
10252 | _ACEOF | ||
10253 | rm -f conftest$ac_exeext | ||
10254 | if { (ac_try="$ac_link" | ||
10255 | case "(($ac_try" in | ||
10256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10257 | *) ac_try_echo=$ac_try;; | ||
10258 | esac | ||
10259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10260 | (eval "$ac_link") 2>&5 | ||
10261 | ac_status=$? | ||
10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10264 | { (case "(($ac_try" in | ||
10265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10266 | *) ac_try_echo=$ac_try;; | ||
10267 | esac | ||
10268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10269 | (eval "$ac_try") 2>&5 | ||
10270 | ac_status=$? | ||
10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10272 | (exit $ac_status); }; }; then | ||
10273 | ac_cv_have_broken_dirname="no" | ||
10274 | else | ||
10275 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10276 | echo "$as_me: failed program was:" >&5 | ||
10277 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10278 | |||
10279 | ( exit $ac_status ) | ||
10280 | ac_cv_have_broken_dirname="yes" | ||
10281 | fi | ||
10282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10283 | fi | ||
10284 | |||
10285 | |||
10286 | LIBS="$save_LIBS" | ||
10287 | |||
10288 | fi | ||
10289 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
10290 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
10291 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
10292 | LIBS="$LIBS -lgen" | ||
10293 | cat >>confdefs.h <<\_ACEOF | ||
10294 | #define HAVE_DIRNAME 1 | ||
10295 | _ACEOF | ||
10296 | |||
10297 | |||
10298 | for ac_header in libgen.h | ||
10299 | do | ||
10300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10306 | fi | ||
10307 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10309 | echo "${ECHO_T}$ac_res" >&6; } | ||
10310 | else | ||
10311 | # Is the header compilable? | ||
10312 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10313 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10314 | cat >conftest.$ac_ext <<_ACEOF | ||
10315 | /* confdefs.h. */ | ||
10316 | _ACEOF | ||
10317 | cat confdefs.h >>conftest.$ac_ext | ||
10318 | cat >>conftest.$ac_ext <<_ACEOF | ||
10319 | /* end confdefs.h. */ | ||
10320 | $ac_includes_default | ||
10321 | #include <$ac_header> | ||
10322 | _ACEOF | ||
10323 | rm -f conftest.$ac_objext | ||
10324 | if { (ac_try="$ac_compile" | ||
10325 | case "(($ac_try" in | ||
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10327 | *) ac_try_echo=$ac_try;; | ||
10328 | esac | ||
10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10330 | (eval "$ac_compile") 2>conftest.er1 | ||
10331 | ac_status=$? | ||
10332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10333 | rm -f conftest.er1 | ||
10334 | cat conftest.err >&5 | ||
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10336 | (exit $ac_status); } && { | ||
10337 | test -z "$ac_c_werror_flag" || | ||
10338 | test ! -s conftest.err | ||
10339 | } && test -s conftest.$ac_objext; then | ||
10340 | ac_header_compiler=yes | ||
10341 | else | ||
10342 | echo "$as_me: failed program was:" >&5 | ||
10343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10344 | |||
10345 | ac_header_compiler=no | ||
10346 | fi | ||
10347 | |||
10348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10349 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10350 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10351 | |||
10352 | # Is the header present? | ||
10353 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10354 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10355 | cat >conftest.$ac_ext <<_ACEOF | ||
10356 | /* confdefs.h. */ | ||
10357 | _ACEOF | ||
10358 | cat confdefs.h >>conftest.$ac_ext | ||
10359 | cat >>conftest.$ac_ext <<_ACEOF | ||
10360 | /* end confdefs.h. */ | ||
10361 | #include <$ac_header> | ||
10362 | _ACEOF | ||
10363 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10364 | case "(($ac_try" in | ||
10365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10366 | *) ac_try_echo=$ac_try;; | ||
10367 | esac | ||
10368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10369 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10370 | ac_status=$? | ||
10371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10372 | rm -f conftest.er1 | ||
10373 | cat conftest.err >&5 | ||
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10375 | (exit $ac_status); } >/dev/null && { | ||
10376 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10377 | test ! -s conftest.err | ||
10378 | }; then | ||
10379 | ac_header_preproc=yes | ||
10380 | else | ||
10381 | echo "$as_me: failed program was:" >&5 | ||
10382 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10383 | |||
10384 | ac_header_preproc=no | ||
10385 | fi | ||
10386 | |||
10387 | rm -f conftest.err conftest.$ac_ext | ||
10388 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10389 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10390 | |||
10391 | # So? What about this header? | ||
10392 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10393 | yes:no: ) | ||
10394 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10395 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10397 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10398 | ac_header_preproc=yes | ||
10399 | ;; | ||
10400 | no:yes:* ) | ||
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10402 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10404 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10405 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10406 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10407 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10408 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10410 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10411 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10412 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10413 | ( cat <<\_ASBOX | ||
10414 | ## ------------------------------------------- ## | ||
10415 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10416 | ## ------------------------------------------- ## | ||
10417 | _ASBOX | ||
10418 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10419 | ;; | ||
10420 | esac | ||
10421 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10423 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10425 | else | ||
10426 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10427 | fi | ||
10428 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10429 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10430 | echo "${ECHO_T}$ac_res" >&6; } | ||
10431 | |||
10432 | fi | ||
10433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10434 | cat >>confdefs.h <<_ACEOF | ||
10435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10436 | _ACEOF | ||
10437 | |||
10438 | fi | ||
10439 | |||
10440 | done | ||
10441 | |||
10442 | fi | ||
10443 | |||
10444 | fi | ||
10445 | |||
10446 | |||
10447 | fi | ||
10448 | done | ||
10449 | |||
10450 | |||
10451 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10452 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
10453 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10455 | else | ||
10456 | cat >conftest.$ac_ext <<_ACEOF | ||
10457 | /* confdefs.h. */ | ||
10458 | _ACEOF | ||
10459 | cat confdefs.h >>conftest.$ac_ext | ||
10460 | cat >>conftest.$ac_ext <<_ACEOF | ||
10461 | /* end confdefs.h. */ | ||
10462 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
10463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10464 | #define getspnam innocuous_getspnam | ||
10465 | |||
10466 | /* System header to define __stub macros and hopefully few prototypes, | ||
10467 | which can conflict with char getspnam (); below. | ||
10468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10469 | <limits.h> exists even on freestanding compilers. */ | ||
10470 | |||
10471 | #ifdef __STDC__ | ||
10472 | # include <limits.h> | ||
10473 | #else | ||
10474 | # include <assert.h> | ||
10475 | #endif | ||
10476 | |||
10477 | #undef getspnam | ||
10478 | |||
10479 | /* Override any GCC internal prototype to avoid an error. | ||
10480 | Use char because int might match the return type of a GCC | ||
10481 | builtin and then its argument prototype would still apply. */ | ||
10482 | #ifdef __cplusplus | ||
10483 | extern "C" | ||
10484 | #endif | ||
10485 | char getspnam (); | ||
10486 | /* The GNU C library defines this for functions which it implements | ||
10487 | to always fail with ENOSYS. Some functions are actually named | ||
10488 | something starting with __ and the normal name is an alias. */ | ||
10489 | #if defined __stub_getspnam || defined __stub___getspnam | ||
10490 | choke me | ||
10491 | #endif | ||
10492 | |||
10493 | int | ||
10494 | main () | ||
10495 | { | ||
10496 | return getspnam (); | ||
10497 | ; | ||
10498 | return 0; | ||
10499 | } | ||
10500 | _ACEOF | ||
10501 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10502 | if { (ac_try="$ac_link" | ||
10503 | case "(($ac_try" in | ||
10504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10505 | *) ac_try_echo=$ac_try;; | ||
10506 | esac | ||
10507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10508 | (eval "$ac_link") 2>conftest.er1 | ||
10509 | ac_status=$? | ||
10510 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10511 | rm -f conftest.er1 | ||
10512 | cat conftest.err >&5 | ||
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10514 | (exit $ac_status); } && { | ||
10515 | test -z "$ac_c_werror_flag" || | ||
10516 | test ! -s conftest.err | ||
10517 | } && test -s conftest$ac_exeext && | ||
10518 | $as_test_x conftest$ac_exeext; then | ||
10519 | ac_cv_func_getspnam=yes | ||
10520 | else | ||
10521 | echo "$as_me: failed program was:" >&5 | ||
10522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10523 | |||
10524 | ac_cv_func_getspnam=no | ||
10525 | fi | ||
10526 | |||
10527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10528 | conftest$ac_exeext conftest.$ac_ext | ||
10529 | fi | ||
10530 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
10531 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
10532 | if test $ac_cv_func_getspnam = yes; then | ||
10533 | : | ||
10534 | else | ||
10535 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
10536 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
10537 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
10538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10539 | else | ||
10540 | ac_check_lib_save_LIBS=$LIBS | ||
10541 | LIBS="-lgen $LIBS" | ||
10542 | cat >conftest.$ac_ext <<_ACEOF | ||
10543 | /* confdefs.h. */ | ||
10544 | _ACEOF | ||
10545 | cat confdefs.h >>conftest.$ac_ext | ||
10546 | cat >>conftest.$ac_ext <<_ACEOF | ||
10547 | /* end confdefs.h. */ | ||
10548 | |||
10549 | /* Override any GCC internal prototype to avoid an error. | ||
10550 | Use char because int might match the return type of a GCC | ||
10551 | builtin and then its argument prototype would still apply. */ | ||
10552 | #ifdef __cplusplus | ||
10553 | extern "C" | ||
10554 | #endif | ||
10555 | char getspnam (); | ||
10556 | int | ||
10557 | main () | ||
10558 | { | ||
10559 | return getspnam (); | ||
10560 | ; | ||
10561 | return 0; | ||
10562 | } | ||
10563 | _ACEOF | ||
10564 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10565 | if { (ac_try="$ac_link" | ||
10566 | case "(($ac_try" in | ||
10567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10568 | *) ac_try_echo=$ac_try;; | ||
10569 | esac | ||
10570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10571 | (eval "$ac_link") 2>conftest.er1 | ||
10572 | ac_status=$? | ||
10573 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10574 | rm -f conftest.er1 | ||
10575 | cat conftest.err >&5 | ||
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10577 | (exit $ac_status); } && { | ||
10578 | test -z "$ac_c_werror_flag" || | ||
10579 | test ! -s conftest.err | ||
10580 | } && test -s conftest$ac_exeext && | ||
10581 | $as_test_x conftest$ac_exeext; then | ||
10582 | ac_cv_lib_gen_getspnam=yes | ||
10583 | else | ||
10584 | echo "$as_me: failed program was:" >&5 | ||
10585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10586 | |||
10587 | ac_cv_lib_gen_getspnam=no | ||
10588 | fi | ||
10589 | |||
10590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10591 | conftest$ac_exeext conftest.$ac_ext | ||
10592 | LIBS=$ac_check_lib_save_LIBS | ||
10593 | fi | ||
10594 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
10595 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
10596 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
10597 | LIBS="$LIBS -lgen" | ||
10598 | fi | ||
10599 | |||
10600 | fi | ||
10601 | |||
10602 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
10603 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
10604 | if test "${ac_cv_search_basename+set}" = set; then | ||
10605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10606 | else | ||
10607 | ac_func_search_save_LIBS=$LIBS | ||
10608 | cat >conftest.$ac_ext <<_ACEOF | ||
10609 | /* confdefs.h. */ | ||
10610 | _ACEOF | ||
10611 | cat confdefs.h >>conftest.$ac_ext | ||
10612 | cat >>conftest.$ac_ext <<_ACEOF | ||
10613 | /* end confdefs.h. */ | ||
10614 | |||
10615 | /* Override any GCC internal prototype to avoid an error. | ||
10616 | Use char because int might match the return type of a GCC | ||
10617 | builtin and then its argument prototype would still apply. */ | ||
10618 | #ifdef __cplusplus | ||
10619 | extern "C" | ||
10620 | #endif | ||
10621 | char basename (); | ||
10622 | int | ||
10623 | main () | ||
10624 | { | ||
10625 | return basename (); | ||
10626 | ; | ||
10627 | return 0; | ||
10628 | } | ||
10629 | _ACEOF | ||
10630 | for ac_lib in '' gen; do | ||
10631 | if test -z "$ac_lib"; then | ||
10632 | ac_res="none required" | ||
10633 | else | ||
10634 | ac_res=-l$ac_lib | ||
10635 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10636 | fi | ||
10637 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10638 | if { (ac_try="$ac_link" | ||
10639 | case "(($ac_try" in | ||
10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10641 | *) ac_try_echo=$ac_try;; | ||
10642 | esac | ||
10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10644 | (eval "$ac_link") 2>conftest.er1 | ||
10645 | ac_status=$? | ||
10646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10647 | rm -f conftest.er1 | ||
10648 | cat conftest.err >&5 | ||
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10650 | (exit $ac_status); } && { | ||
10651 | test -z "$ac_c_werror_flag" || | ||
10652 | test ! -s conftest.err | ||
10653 | } && test -s conftest$ac_exeext && | ||
10654 | $as_test_x conftest$ac_exeext; then | ||
10655 | ac_cv_search_basename=$ac_res | ||
10656 | else | ||
10657 | echo "$as_me: failed program was:" >&5 | ||
10658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10659 | |||
10660 | |||
10661 | fi | ||
10662 | |||
10663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10664 | conftest$ac_exeext | ||
10665 | if test "${ac_cv_search_basename+set}" = set; then | ||
10666 | break | ||
10667 | fi | ||
10668 | done | ||
10669 | if test "${ac_cv_search_basename+set}" = set; then | ||
10670 | : | ||
10671 | else | ||
10672 | ac_cv_search_basename=no | ||
10673 | fi | ||
10674 | rm conftest.$ac_ext | ||
10675 | LIBS=$ac_func_search_save_LIBS | ||
10676 | fi | ||
10677 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
10678 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
10679 | ac_res=$ac_cv_search_basename | ||
10680 | if test "$ac_res" != no; then | ||
10681 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10682 | |||
10683 | cat >>confdefs.h <<\_ACEOF | ||
10684 | #define HAVE_BASENAME 1 | ||
10685 | _ACEOF | ||
10686 | |||
10687 | fi | ||
10688 | |||
10689 | |||
10690 | |||
10691 | # Check whether --with-zlib was given. | ||
10692 | if test "${with_zlib+set}" = set; then | ||
10693 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
10694 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
10695 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
10696 | { (exit 1); exit 1; }; } | ||
10697 | elif test "x$withval" != "xyes"; then | ||
10698 | if test -d "$withval/lib"; then | ||
10699 | if test -n "${need_dash_r}"; then | ||
10700 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10701 | else | ||
10702 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10703 | fi | ||
10704 | else | ||
10705 | if test -n "${need_dash_r}"; then | ||
10706 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10707 | else | ||
10708 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10709 | fi | ||
10710 | fi | ||
10711 | if test -d "$withval/include"; then | ||
10712 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10713 | else | ||
10714 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10715 | fi | ||
10716 | fi | ||
10717 | |||
10718 | fi | ||
10719 | |||
10720 | |||
10721 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10722 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10723 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10724 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10726 | fi | ||
10727 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10728 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10729 | else | ||
10730 | # Is the header compilable? | ||
10731 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
10732 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
10733 | cat >conftest.$ac_ext <<_ACEOF | ||
10734 | /* confdefs.h. */ | ||
10735 | _ACEOF | ||
10736 | cat confdefs.h >>conftest.$ac_ext | ||
10737 | cat >>conftest.$ac_ext <<_ACEOF | ||
10738 | /* end confdefs.h. */ | ||
10739 | $ac_includes_default | ||
10740 | #include <zlib.h> | ||
10741 | _ACEOF | ||
10742 | rm -f conftest.$ac_objext | ||
10743 | if { (ac_try="$ac_compile" | ||
10744 | case "(($ac_try" in | ||
10745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10746 | *) ac_try_echo=$ac_try;; | ||
10747 | esac | ||
10748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10749 | (eval "$ac_compile") 2>conftest.er1 | ||
10750 | ac_status=$? | ||
10751 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10752 | rm -f conftest.er1 | ||
10753 | cat conftest.err >&5 | ||
10754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10755 | (exit $ac_status); } && { | ||
10756 | test -z "$ac_c_werror_flag" || | ||
10757 | test ! -s conftest.err | ||
10758 | } && test -s conftest.$ac_objext; then | ||
10759 | ac_header_compiler=yes | ||
10760 | else | ||
10761 | echo "$as_me: failed program was:" >&5 | ||
10762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10763 | |||
10764 | ac_header_compiler=no | ||
10765 | fi | ||
10766 | |||
10767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10768 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10769 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10770 | |||
10771 | # Is the header present? | ||
10772 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
10773 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
10774 | cat >conftest.$ac_ext <<_ACEOF | ||
10775 | /* confdefs.h. */ | ||
10776 | _ACEOF | ||
10777 | cat confdefs.h >>conftest.$ac_ext | ||
10778 | cat >>conftest.$ac_ext <<_ACEOF | ||
10779 | /* end confdefs.h. */ | ||
10780 | #include <zlib.h> | ||
10781 | _ACEOF | ||
10782 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10783 | case "(($ac_try" in | ||
10784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10785 | *) ac_try_echo=$ac_try;; | ||
10786 | esac | ||
10787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10789 | ac_status=$? | ||
10790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10791 | rm -f conftest.er1 | ||
10792 | cat conftest.err >&5 | ||
10793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10794 | (exit $ac_status); } >/dev/null && { | ||
10795 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10796 | test ! -s conftest.err | ||
10797 | }; then | ||
10798 | ac_header_preproc=yes | ||
10799 | else | ||
10800 | echo "$as_me: failed program was:" >&5 | ||
10801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10802 | |||
10803 | ac_header_preproc=no | ||
10804 | fi | ||
10805 | |||
10806 | rm -f conftest.err conftest.$ac_ext | ||
10807 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10808 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10809 | |||
10810 | # So? What about this header? | ||
10811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10812 | yes:no: ) | ||
10813 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10814 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10815 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
10816 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
10817 | ac_header_preproc=yes | ||
10818 | ;; | ||
10819 | no:yes:* ) | ||
10820 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
10821 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
10822 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
10823 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
10824 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
10825 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
10826 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10827 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10828 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
10829 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
10830 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
10831 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
10832 | ( cat <<\_ASBOX | ||
10833 | ## ------------------------------------------- ## | ||
10834 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10835 | ## ------------------------------------------- ## | ||
10836 | _ASBOX | ||
10837 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10838 | ;; | ||
10839 | esac | ||
10840 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10841 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10842 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10844 | else | ||
10845 | ac_cv_header_zlib_h=$ac_header_preproc | ||
10846 | fi | ||
10847 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10848 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10849 | |||
10850 | fi | ||
10851 | if test $ac_cv_header_zlib_h = yes; then | ||
10852 | : | ||
10853 | else | ||
10854 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
10855 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
10856 | { (exit 1); exit 1; }; } | ||
10857 | fi | ||
10858 | |||
10859 | |||
10860 | |||
10861 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
10862 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
10863 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10865 | else | ||
10866 | ac_check_lib_save_LIBS=$LIBS | ||
10867 | LIBS="-lz $LIBS" | ||
10868 | cat >conftest.$ac_ext <<_ACEOF | ||
10869 | /* confdefs.h. */ | ||
10870 | _ACEOF | ||
10871 | cat confdefs.h >>conftest.$ac_ext | ||
10872 | cat >>conftest.$ac_ext <<_ACEOF | ||
10873 | /* end confdefs.h. */ | ||
10874 | |||
10875 | /* Override any GCC internal prototype to avoid an error. | ||
10876 | Use char because int might match the return type of a GCC | ||
10877 | builtin and then its argument prototype would still apply. */ | ||
10878 | #ifdef __cplusplus | ||
10879 | extern "C" | ||
10880 | #endif | ||
10881 | char deflate (); | ||
10882 | int | ||
10883 | main () | ||
10884 | { | ||
10885 | return deflate (); | ||
10886 | ; | ||
10887 | return 0; | ||
10888 | } | ||
10889 | _ACEOF | ||
10890 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10891 | if { (ac_try="$ac_link" | ||
10892 | case "(($ac_try" in | ||
10893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10894 | *) ac_try_echo=$ac_try;; | ||
10895 | esac | ||
10896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10897 | (eval "$ac_link") 2>conftest.er1 | ||
10898 | ac_status=$? | ||
10899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10900 | rm -f conftest.er1 | ||
10901 | cat conftest.err >&5 | ||
10902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10903 | (exit $ac_status); } && { | ||
10904 | test -z "$ac_c_werror_flag" || | ||
10905 | test ! -s conftest.err | ||
10906 | } && test -s conftest$ac_exeext && | ||
10907 | $as_test_x conftest$ac_exeext; then | ||
10908 | ac_cv_lib_z_deflate=yes | ||
10909 | else | ||
10910 | echo "$as_me: failed program was:" >&5 | ||
10911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10912 | |||
10913 | ac_cv_lib_z_deflate=no | ||
10914 | fi | ||
10915 | |||
10916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10917 | conftest$ac_exeext conftest.$ac_ext | ||
10918 | LIBS=$ac_check_lib_save_LIBS | ||
10919 | fi | ||
10920 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
10921 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
10922 | if test $ac_cv_lib_z_deflate = yes; then | ||
10923 | cat >>confdefs.h <<_ACEOF | ||
10924 | #define HAVE_LIBZ 1 | ||
10925 | _ACEOF | ||
10926 | |||
10927 | LIBS="-lz $LIBS" | ||
10928 | |||
10929 | else | ||
10930 | |||
10931 | saved_CPPFLAGS="$CPPFLAGS" | ||
10932 | saved_LDFLAGS="$LDFLAGS" | ||
10933 | save_LIBS="$LIBS" | ||
10934 | if test -n "${need_dash_r}"; then | ||
10935 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
10936 | else | ||
10937 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
10938 | fi | ||
10939 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
10940 | LIBS="$LIBS -lz" | ||
10941 | cat >conftest.$ac_ext <<_ACEOF | ||
10942 | /* confdefs.h. */ | ||
10943 | _ACEOF | ||
10944 | cat confdefs.h >>conftest.$ac_ext | ||
10945 | cat >>conftest.$ac_ext <<_ACEOF | ||
10946 | /* end confdefs.h. */ | ||
10947 | |||
10948 | /* Override any GCC internal prototype to avoid an error. | ||
10949 | Use char because int might match the return type of a GCC | ||
10950 | builtin and then its argument prototype would still apply. */ | ||
10951 | #ifdef __cplusplus | ||
10952 | extern "C" | ||
10953 | #endif | ||
10954 | char deflate (); | ||
10955 | int | ||
10956 | main () | ||
10957 | { | ||
10958 | return deflate (); | ||
10959 | ; | ||
10960 | return 0; | ||
10961 | } | ||
10962 | _ACEOF | ||
10963 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10964 | if { (ac_try="$ac_link" | ||
10965 | case "(($ac_try" in | ||
10966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10967 | *) ac_try_echo=$ac_try;; | ||
10968 | esac | ||
10969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10970 | (eval "$ac_link") 2>conftest.er1 | ||
10971 | ac_status=$? | ||
10972 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10973 | rm -f conftest.er1 | ||
10974 | cat conftest.err >&5 | ||
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10976 | (exit $ac_status); } && { | ||
10977 | test -z "$ac_c_werror_flag" || | ||
10978 | test ! -s conftest.err | ||
10979 | } && test -s conftest$ac_exeext && | ||
10980 | $as_test_x conftest$ac_exeext; then | ||
10981 | cat >>confdefs.h <<\_ACEOF | ||
10982 | #define HAVE_LIBZ 1 | ||
10983 | _ACEOF | ||
10984 | |||
10985 | else | ||
10986 | echo "$as_me: failed program was:" >&5 | ||
10987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10988 | |||
10989 | |||
10990 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
10991 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
10992 | { (exit 1); exit 1; }; } | ||
10993 | |||
10994 | |||
10995 | fi | ||
10996 | |||
10997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10998 | conftest$ac_exeext conftest.$ac_ext | ||
10999 | |||
11000 | |||
11001 | fi | ||
11002 | |||
11003 | |||
11004 | |||
11005 | # Check whether --with-zlib-version-check was given. | ||
11006 | if test "${with_zlib_version_check+set}" = set; then | ||
11007 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
11008 | zlib_check_nonfatal=1 | ||
11009 | fi | ||
11010 | |||
11011 | |||
11012 | fi | ||
11013 | |||
11014 | |||
11015 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
11016 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
11017 | if test "$cross_compiling" = yes; then | ||
11018 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
11019 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
11020 | |||
11021 | else | ||
11022 | cat >conftest.$ac_ext <<_ACEOF | ||
11023 | /* confdefs.h. */ | ||
11024 | _ACEOF | ||
11025 | cat confdefs.h >>conftest.$ac_ext | ||
11026 | cat >>conftest.$ac_ext <<_ACEOF | ||
11027 | /* end confdefs.h. */ | ||
11028 | |||
11029 | #include <stdio.h> | ||
11030 | #include <zlib.h> | ||
11031 | int main() | ||
11032 | { | ||
11033 | int a=0, b=0, c=0, d=0, n, v; | ||
11034 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
11035 | if (n != 3 && n != 4) | ||
11036 | exit(1); | ||
11037 | v = a*1000000 + b*10000 + c*100 + d; | ||
11038 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
11039 | |||
11040 | /* 1.1.4 is OK */ | ||
11041 | if (a == 1 && b == 1 && c >= 4) | ||
11042 | exit(0); | ||
11043 | |||
11044 | /* 1.2.3 and up are OK */ | ||
11045 | if (v >= 1020300) | ||
11046 | exit(0); | ||
11047 | |||
11048 | exit(2); | ||
11049 | } | ||
11050 | |||
11051 | _ACEOF | ||
11052 | rm -f conftest$ac_exeext | ||
11053 | if { (ac_try="$ac_link" | ||
11054 | case "(($ac_try" in | ||
11055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11056 | *) ac_try_echo=$ac_try;; | ||
11057 | esac | ||
11058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11059 | (eval "$ac_link") 2>&5 | ||
11060 | ac_status=$? | ||
11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11062 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11063 | { (case "(($ac_try" in | ||
11064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11065 | *) ac_try_echo=$ac_try;; | ||
11066 | esac | ||
11067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11068 | (eval "$ac_try") 2>&5 | ||
11069 | ac_status=$? | ||
11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11071 | (exit $ac_status); }; }; then | ||
11072 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11073 | echo "${ECHO_T}no" >&6; } | ||
11074 | else | ||
11075 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11076 | echo "$as_me: failed program was:" >&5 | ||
11077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11078 | |||
11079 | ( exit $ac_status ) | ||
11080 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11081 | echo "${ECHO_T}yes" >&6; } | ||
11082 | if test -z "$zlib_check_nonfatal" ; then | ||
11083 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
11084 | Your reported zlib version has known security problems. It's possible your | ||
11085 | vendor has fixed these problems without changing the version number. If you | ||
11086 | are sure this is the case, you can disable the check by running | ||
11087 | \"./configure --without-zlib-version-check\". | ||
11088 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11089 | See http://www.gzip.org/zlib/ for details." >&5 | ||
11090 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
11091 | Your reported zlib version has known security problems. It's possible your | ||
11092 | vendor has fixed these problems without changing the version number. If you | ||
11093 | are sure this is the case, you can disable the check by running | ||
11094 | \"./configure --without-zlib-version-check\". | ||
11095 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11096 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
11097 | { (exit 1); exit 1; }; } | ||
11098 | else | ||
11099 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
11100 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
11101 | fi | ||
11102 | |||
11103 | fi | ||
11104 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11105 | fi | ||
11106 | |||
11107 | |||
11108 | |||
11109 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
11110 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
11111 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
11112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11113 | else | ||
11114 | cat >conftest.$ac_ext <<_ACEOF | ||
11115 | /* confdefs.h. */ | ||
11116 | _ACEOF | ||
11117 | cat confdefs.h >>conftest.$ac_ext | ||
11118 | cat >>conftest.$ac_ext <<_ACEOF | ||
11119 | /* end confdefs.h. */ | ||
11120 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
11121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11122 | #define strcasecmp innocuous_strcasecmp | ||
11123 | |||
11124 | /* System header to define __stub macros and hopefully few prototypes, | ||
11125 | which can conflict with char strcasecmp (); below. | ||
11126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11127 | <limits.h> exists even on freestanding compilers. */ | ||
11128 | |||
11129 | #ifdef __STDC__ | ||
11130 | # include <limits.h> | ||
11131 | #else | ||
11132 | # include <assert.h> | ||
11133 | #endif | ||
11134 | |||
11135 | #undef strcasecmp | ||
11136 | |||
11137 | /* Override any GCC internal prototype to avoid an error. | ||
11138 | Use char because int might match the return type of a GCC | ||
11139 | builtin and then its argument prototype would still apply. */ | ||
11140 | #ifdef __cplusplus | ||
11141 | extern "C" | ||
11142 | #endif | ||
11143 | char strcasecmp (); | ||
11144 | /* The GNU C library defines this for functions which it implements | ||
11145 | to always fail with ENOSYS. Some functions are actually named | ||
11146 | something starting with __ and the normal name is an alias. */ | ||
11147 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
11148 | choke me | ||
11149 | #endif | ||
11150 | |||
11151 | int | ||
11152 | main () | ||
11153 | { | ||
11154 | return strcasecmp (); | ||
11155 | ; | ||
11156 | return 0; | ||
11157 | } | ||
11158 | _ACEOF | ||
11159 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11160 | if { (ac_try="$ac_link" | ||
11161 | case "(($ac_try" in | ||
11162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11163 | *) ac_try_echo=$ac_try;; | ||
11164 | esac | ||
11165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11166 | (eval "$ac_link") 2>conftest.er1 | ||
11167 | ac_status=$? | ||
11168 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11169 | rm -f conftest.er1 | ||
11170 | cat conftest.err >&5 | ||
11171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11172 | (exit $ac_status); } && { | ||
11173 | test -z "$ac_c_werror_flag" || | ||
11174 | test ! -s conftest.err | ||
11175 | } && test -s conftest$ac_exeext && | ||
11176 | $as_test_x conftest$ac_exeext; then | ||
11177 | ac_cv_func_strcasecmp=yes | ||
11178 | else | ||
11179 | echo "$as_me: failed program was:" >&5 | ||
11180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11181 | |||
11182 | ac_cv_func_strcasecmp=no | ||
11183 | fi | ||
11184 | |||
11185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11186 | conftest$ac_exeext conftest.$ac_ext | ||
11187 | fi | ||
11188 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
11189 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
11190 | if test $ac_cv_func_strcasecmp = yes; then | ||
11191 | : | ||
11192 | else | ||
11193 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
11194 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
11195 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11197 | else | ||
11198 | ac_check_lib_save_LIBS=$LIBS | ||
11199 | LIBS="-lresolv $LIBS" | ||
11200 | cat >conftest.$ac_ext <<_ACEOF | ||
11201 | /* confdefs.h. */ | ||
11202 | _ACEOF | ||
11203 | cat confdefs.h >>conftest.$ac_ext | ||
11204 | cat >>conftest.$ac_ext <<_ACEOF | ||
11205 | /* end confdefs.h. */ | ||
11206 | |||
11207 | /* Override any GCC internal prototype to avoid an error. | ||
11208 | Use char because int might match the return type of a GCC | ||
11209 | builtin and then its argument prototype would still apply. */ | ||
11210 | #ifdef __cplusplus | ||
11211 | extern "C" | ||
11212 | #endif | ||
11213 | char strcasecmp (); | ||
11214 | int | ||
11215 | main () | ||
11216 | { | ||
11217 | return strcasecmp (); | ||
11218 | ; | ||
11219 | return 0; | ||
11220 | } | ||
11221 | _ACEOF | ||
11222 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11223 | if { (ac_try="$ac_link" | ||
11224 | case "(($ac_try" in | ||
11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11226 | *) ac_try_echo=$ac_try;; | ||
11227 | esac | ||
11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11229 | (eval "$ac_link") 2>conftest.er1 | ||
11230 | ac_status=$? | ||
11231 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11232 | rm -f conftest.er1 | ||
11233 | cat conftest.err >&5 | ||
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11235 | (exit $ac_status); } && { | ||
11236 | test -z "$ac_c_werror_flag" || | ||
11237 | test ! -s conftest.err | ||
11238 | } && test -s conftest$ac_exeext && | ||
11239 | $as_test_x conftest$ac_exeext; then | ||
11240 | ac_cv_lib_resolv_strcasecmp=yes | ||
11241 | else | ||
11242 | echo "$as_me: failed program was:" >&5 | ||
11243 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11244 | |||
11245 | ac_cv_lib_resolv_strcasecmp=no | ||
11246 | fi | ||
11247 | |||
11248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11249 | conftest$ac_exeext conftest.$ac_ext | ||
11250 | LIBS=$ac_check_lib_save_LIBS | ||
11251 | fi | ||
11252 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
11253 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
11254 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
11255 | LIBS="$LIBS -lresolv" | ||
11256 | fi | ||
11257 | |||
11258 | |||
11259 | fi | ||
11260 | |||
11261 | |||
11262 | for ac_func in utimes | ||
11263 | do | ||
11264 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11265 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11266 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11267 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11269 | else | ||
11270 | cat >conftest.$ac_ext <<_ACEOF | ||
11271 | /* confdefs.h. */ | ||
11272 | _ACEOF | ||
11273 | cat confdefs.h >>conftest.$ac_ext | ||
11274 | cat >>conftest.$ac_ext <<_ACEOF | ||
11275 | /* end confdefs.h. */ | ||
11276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11278 | #define $ac_func innocuous_$ac_func | ||
11279 | |||
11280 | /* System header to define __stub macros and hopefully few prototypes, | ||
11281 | which can conflict with char $ac_func (); below. | ||
11282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11283 | <limits.h> exists even on freestanding compilers. */ | ||
11284 | |||
11285 | #ifdef __STDC__ | ||
11286 | # include <limits.h> | ||
11287 | #else | ||
11288 | # include <assert.h> | ||
11289 | #endif | ||
11290 | |||
11291 | #undef $ac_func | ||
11292 | |||
11293 | /* Override any GCC internal prototype to avoid an error. | ||
11294 | Use char because int might match the return type of a GCC | ||
11295 | builtin and then its argument prototype would still apply. */ | ||
11296 | #ifdef __cplusplus | ||
11297 | extern "C" | ||
11298 | #endif | ||
11299 | char $ac_func (); | ||
11300 | /* The GNU C library defines this for functions which it implements | ||
11301 | to always fail with ENOSYS. Some functions are actually named | ||
11302 | something starting with __ and the normal name is an alias. */ | ||
11303 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11304 | choke me | ||
11305 | #endif | ||
11306 | |||
11307 | int | ||
11308 | main () | ||
11309 | { | ||
11310 | return $ac_func (); | ||
11311 | ; | ||
11312 | return 0; | ||
11313 | } | ||
11314 | _ACEOF | ||
11315 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11316 | if { (ac_try="$ac_link" | ||
11317 | case "(($ac_try" in | ||
11318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11319 | *) ac_try_echo=$ac_try;; | ||
11320 | esac | ||
11321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11322 | (eval "$ac_link") 2>conftest.er1 | ||
11323 | ac_status=$? | ||
11324 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11325 | rm -f conftest.er1 | ||
11326 | cat conftest.err >&5 | ||
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11328 | (exit $ac_status); } && { | ||
11329 | test -z "$ac_c_werror_flag" || | ||
11330 | test ! -s conftest.err | ||
11331 | } && test -s conftest$ac_exeext && | ||
11332 | $as_test_x conftest$ac_exeext; then | ||
11333 | eval "$as_ac_var=yes" | ||
11334 | else | ||
11335 | echo "$as_me: failed program was:" >&5 | ||
11336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11337 | |||
11338 | eval "$as_ac_var=no" | ||
11339 | fi | ||
11340 | |||
11341 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11342 | conftest$ac_exeext conftest.$ac_ext | ||
11343 | fi | ||
11344 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11345 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11346 | echo "${ECHO_T}$ac_res" >&6; } | ||
11347 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11348 | cat >>confdefs.h <<_ACEOF | ||
11349 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11350 | _ACEOF | ||
11351 | |||
11352 | else | ||
11353 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
11354 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
11355 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
11356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11357 | else | ||
11358 | ac_check_lib_save_LIBS=$LIBS | ||
11359 | LIBS="-lc89 $LIBS" | ||
11360 | cat >conftest.$ac_ext <<_ACEOF | ||
11361 | /* confdefs.h. */ | ||
11362 | _ACEOF | ||
11363 | cat confdefs.h >>conftest.$ac_ext | ||
11364 | cat >>conftest.$ac_ext <<_ACEOF | ||
11365 | /* end confdefs.h. */ | ||
11366 | |||
11367 | /* Override any GCC internal prototype to avoid an error. | ||
11368 | Use char because int might match the return type of a GCC | ||
11369 | builtin and then its argument prototype would still apply. */ | ||
11370 | #ifdef __cplusplus | ||
11371 | extern "C" | ||
11372 | #endif | ||
11373 | char utimes (); | ||
11374 | int | ||
11375 | main () | ||
11376 | { | ||
11377 | return utimes (); | ||
11378 | ; | ||
11379 | return 0; | ||
11380 | } | ||
11381 | _ACEOF | ||
11382 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11383 | if { (ac_try="$ac_link" | ||
11384 | case "(($ac_try" in | ||
11385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11386 | *) ac_try_echo=$ac_try;; | ||
11387 | esac | ||
11388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11389 | (eval "$ac_link") 2>conftest.er1 | ||
11390 | ac_status=$? | ||
11391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11392 | rm -f conftest.er1 | ||
11393 | cat conftest.err >&5 | ||
11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11395 | (exit $ac_status); } && { | ||
11396 | test -z "$ac_c_werror_flag" || | ||
11397 | test ! -s conftest.err | ||
11398 | } && test -s conftest$ac_exeext && | ||
11399 | $as_test_x conftest$ac_exeext; then | ||
11400 | ac_cv_lib_c89_utimes=yes | ||
11401 | else | ||
11402 | echo "$as_me: failed program was:" >&5 | ||
11403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11404 | |||
11405 | ac_cv_lib_c89_utimes=no | ||
11406 | fi | ||
11407 | |||
11408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11409 | conftest$ac_exeext conftest.$ac_ext | ||
11410 | LIBS=$ac_check_lib_save_LIBS | ||
11411 | fi | ||
11412 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11413 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
11414 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11415 | cat >>confdefs.h <<\_ACEOF | ||
11416 | #define HAVE_UTIMES 1 | ||
11417 | _ACEOF | ||
11418 | |||
11419 | LIBS="$LIBS -lc89" | ||
11420 | fi | ||
11421 | |||
11422 | |||
11423 | fi | ||
11424 | done | ||
11425 | |||
11426 | |||
11427 | |||
11428 | for ac_header in libutil.h | ||
11429 | do | ||
11430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11432 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11434 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11436 | fi | ||
11437 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11439 | echo "${ECHO_T}$ac_res" >&6; } | ||
11440 | else | ||
11441 | # Is the header compilable? | ||
11442 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11443 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11444 | cat >conftest.$ac_ext <<_ACEOF | ||
11445 | /* confdefs.h. */ | ||
11446 | _ACEOF | ||
11447 | cat confdefs.h >>conftest.$ac_ext | ||
11448 | cat >>conftest.$ac_ext <<_ACEOF | ||
11449 | /* end confdefs.h. */ | ||
11450 | $ac_includes_default | ||
11451 | #include <$ac_header> | ||
11452 | _ACEOF | ||
11453 | rm -f conftest.$ac_objext | ||
11454 | if { (ac_try="$ac_compile" | ||
11455 | case "(($ac_try" in | ||
11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11457 | *) ac_try_echo=$ac_try;; | ||
11458 | esac | ||
11459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11460 | (eval "$ac_compile") 2>conftest.er1 | ||
11461 | ac_status=$? | ||
11462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11463 | rm -f conftest.er1 | ||
11464 | cat conftest.err >&5 | ||
11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11466 | (exit $ac_status); } && { | ||
11467 | test -z "$ac_c_werror_flag" || | ||
11468 | test ! -s conftest.err | ||
11469 | } && test -s conftest.$ac_objext; then | ||
11470 | ac_header_compiler=yes | ||
11471 | else | ||
11472 | echo "$as_me: failed program was:" >&5 | ||
11473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11474 | |||
11475 | ac_header_compiler=no | ||
11476 | fi | ||
11477 | |||
11478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11479 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11480 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11481 | |||
11482 | # Is the header present? | ||
11483 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11484 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11485 | cat >conftest.$ac_ext <<_ACEOF | ||
11486 | /* confdefs.h. */ | ||
11487 | _ACEOF | ||
11488 | cat confdefs.h >>conftest.$ac_ext | ||
11489 | cat >>conftest.$ac_ext <<_ACEOF | ||
11490 | /* end confdefs.h. */ | ||
11491 | #include <$ac_header> | ||
11492 | _ACEOF | ||
11493 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11494 | case "(($ac_try" in | ||
11495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11496 | *) ac_try_echo=$ac_try;; | ||
11497 | esac | ||
11498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11500 | ac_status=$? | ||
11501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11502 | rm -f conftest.er1 | ||
11503 | cat conftest.err >&5 | ||
11504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11505 | (exit $ac_status); } >/dev/null && { | ||
11506 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11507 | test ! -s conftest.err | ||
11508 | }; then | ||
11509 | ac_header_preproc=yes | ||
11510 | else | ||
11511 | echo "$as_me: failed program was:" >&5 | ||
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11513 | |||
11514 | ac_header_preproc=no | ||
11515 | fi | ||
11516 | |||
11517 | rm -f conftest.err conftest.$ac_ext | ||
11518 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11519 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11520 | |||
11521 | # So? What about this header? | ||
11522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11523 | yes:no: ) | ||
11524 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11525 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11527 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11528 | ac_header_preproc=yes | ||
11529 | ;; | ||
11530 | no:yes:* ) | ||
11531 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11532 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11533 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11534 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11535 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11536 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11537 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11538 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11541 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11542 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11543 | ( cat <<\_ASBOX | ||
11544 | ## ------------------------------------------- ## | ||
11545 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11546 | ## ------------------------------------------- ## | ||
11547 | _ASBOX | ||
11548 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11549 | ;; | ||
11550 | esac | ||
11551 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11555 | else | ||
11556 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11557 | fi | ||
11558 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11560 | echo "${ECHO_T}$ac_res" >&6; } | ||
11561 | |||
11562 | fi | ||
11563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11564 | cat >>confdefs.h <<_ACEOF | ||
11565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11566 | _ACEOF | ||
11567 | |||
11568 | fi | ||
11569 | |||
11570 | done | ||
11571 | |||
11572 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
11573 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
11574 | if test "${ac_cv_search_login+set}" = set; then | ||
11575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11576 | else | ||
11577 | ac_func_search_save_LIBS=$LIBS | ||
11578 | cat >conftest.$ac_ext <<_ACEOF | ||
11579 | /* confdefs.h. */ | ||
11580 | _ACEOF | ||
11581 | cat confdefs.h >>conftest.$ac_ext | ||
11582 | cat >>conftest.$ac_ext <<_ACEOF | ||
11583 | /* end confdefs.h. */ | ||
11584 | |||
11585 | /* Override any GCC internal prototype to avoid an error. | ||
11586 | Use char because int might match the return type of a GCC | ||
11587 | builtin and then its argument prototype would still apply. */ | ||
11588 | #ifdef __cplusplus | ||
11589 | extern "C" | ||
11590 | #endif | ||
11591 | char login (); | ||
11592 | int | ||
11593 | main () | ||
11594 | { | ||
11595 | return login (); | ||
11596 | ; | ||
11597 | return 0; | ||
11598 | } | ||
11599 | _ACEOF | ||
11600 | for ac_lib in '' util bsd; do | ||
11601 | if test -z "$ac_lib"; then | ||
11602 | ac_res="none required" | ||
11603 | else | ||
11604 | ac_res=-l$ac_lib | ||
11605 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11606 | fi | ||
11607 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11608 | if { (ac_try="$ac_link" | ||
11609 | case "(($ac_try" in | ||
11610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11611 | *) ac_try_echo=$ac_try;; | ||
11612 | esac | ||
11613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11614 | (eval "$ac_link") 2>conftest.er1 | ||
11615 | ac_status=$? | ||
11616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11617 | rm -f conftest.er1 | ||
11618 | cat conftest.err >&5 | ||
11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11620 | (exit $ac_status); } && { | ||
11621 | test -z "$ac_c_werror_flag" || | ||
11622 | test ! -s conftest.err | ||
11623 | } && test -s conftest$ac_exeext && | ||
11624 | $as_test_x conftest$ac_exeext; then | ||
11625 | ac_cv_search_login=$ac_res | ||
11626 | else | ||
11627 | echo "$as_me: failed program was:" >&5 | ||
11628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11629 | |||
11630 | |||
11631 | fi | ||
11632 | |||
11633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11634 | conftest$ac_exeext | ||
11635 | if test "${ac_cv_search_login+set}" = set; then | ||
11636 | break | ||
11637 | fi | ||
11638 | done | ||
11639 | if test "${ac_cv_search_login+set}" = set; then | ||
11640 | : | ||
11641 | else | ||
11642 | ac_cv_search_login=no | ||
11643 | fi | ||
11644 | rm conftest.$ac_ext | ||
11645 | LIBS=$ac_func_search_save_LIBS | ||
11646 | fi | ||
11647 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
11648 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
11649 | ac_res=$ac_cv_search_login | ||
11650 | if test "$ac_res" != no; then | ||
11651 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11652 | |||
11653 | cat >>confdefs.h <<\_ACEOF | ||
11654 | #define HAVE_LOGIN 1 | ||
11655 | _ACEOF | ||
11656 | |||
11657 | fi | ||
11658 | |||
11659 | |||
11660 | |||
11661 | |||
11662 | |||
11663 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
11664 | do | ||
11665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11666 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11668 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11670 | else | ||
11671 | cat >conftest.$ac_ext <<_ACEOF | ||
11672 | /* confdefs.h. */ | ||
11673 | _ACEOF | ||
11674 | cat confdefs.h >>conftest.$ac_ext | ||
11675 | cat >>conftest.$ac_ext <<_ACEOF | ||
11676 | /* end confdefs.h. */ | ||
11677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11679 | #define $ac_func innocuous_$ac_func | ||
11680 | |||
11681 | /* System header to define __stub macros and hopefully few prototypes, | ||
11682 | which can conflict with char $ac_func (); below. | ||
11683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11684 | <limits.h> exists even on freestanding compilers. */ | ||
11685 | |||
11686 | #ifdef __STDC__ | ||
11687 | # include <limits.h> | ||
11688 | #else | ||
11689 | # include <assert.h> | ||
11690 | #endif | ||
11691 | |||
11692 | #undef $ac_func | ||
11693 | |||
11694 | /* Override any GCC internal prototype to avoid an error. | ||
11695 | Use char because int might match the return type of a GCC | ||
11696 | builtin and then its argument prototype would still apply. */ | ||
11697 | #ifdef __cplusplus | ||
11698 | extern "C" | ||
11699 | #endif | ||
11700 | char $ac_func (); | ||
11701 | /* The GNU C library defines this for functions which it implements | ||
11702 | to always fail with ENOSYS. Some functions are actually named | ||
11703 | something starting with __ and the normal name is an alias. */ | ||
11704 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11705 | choke me | ||
11706 | #endif | ||
11707 | |||
11708 | int | ||
11709 | main () | ||
11710 | { | ||
11711 | return $ac_func (); | ||
11712 | ; | ||
11713 | return 0; | ||
11714 | } | ||
11715 | _ACEOF | ||
11716 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11717 | if { (ac_try="$ac_link" | ||
11718 | case "(($ac_try" in | ||
11719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11720 | *) ac_try_echo=$ac_try;; | ||
11721 | esac | ||
11722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11723 | (eval "$ac_link") 2>conftest.er1 | ||
11724 | ac_status=$? | ||
11725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11726 | rm -f conftest.er1 | ||
11727 | cat conftest.err >&5 | ||
11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11729 | (exit $ac_status); } && { | ||
11730 | test -z "$ac_c_werror_flag" || | ||
11731 | test ! -s conftest.err | ||
11732 | } && test -s conftest$ac_exeext && | ||
11733 | $as_test_x conftest$ac_exeext; then | ||
11734 | eval "$as_ac_var=yes" | ||
11735 | else | ||
11736 | echo "$as_me: failed program was:" >&5 | ||
11737 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11738 | |||
11739 | eval "$as_ac_var=no" | ||
11740 | fi | ||
11741 | |||
11742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11743 | conftest$ac_exeext conftest.$ac_ext | ||
11744 | fi | ||
11745 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11746 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11747 | echo "${ECHO_T}$ac_res" >&6; } | ||
11748 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11749 | cat >>confdefs.h <<_ACEOF | ||
11750 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11751 | _ACEOF | ||
11752 | |||
11753 | fi | ||
11754 | done | ||
11755 | |||
11756 | |||
11757 | |||
11758 | for ac_func in strftime | ||
11759 | do | ||
11760 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11761 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11762 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11763 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11765 | else | ||
11766 | cat >conftest.$ac_ext <<_ACEOF | ||
11767 | /* confdefs.h. */ | ||
11768 | _ACEOF | ||
11769 | cat confdefs.h >>conftest.$ac_ext | ||
11770 | cat >>conftest.$ac_ext <<_ACEOF | ||
11771 | /* end confdefs.h. */ | ||
11772 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11774 | #define $ac_func innocuous_$ac_func | ||
11775 | |||
11776 | /* System header to define __stub macros and hopefully few prototypes, | ||
11777 | which can conflict with char $ac_func (); below. | ||
11778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11779 | <limits.h> exists even on freestanding compilers. */ | ||
11780 | |||
11781 | #ifdef __STDC__ | ||
11782 | # include <limits.h> | ||
11783 | #else | ||
11784 | # include <assert.h> | ||
11785 | #endif | ||
11786 | |||
11787 | #undef $ac_func | ||
11788 | |||
11789 | /* Override any GCC internal prototype to avoid an error. | ||
11790 | Use char because int might match the return type of a GCC | ||
11791 | builtin and then its argument prototype would still apply. */ | ||
11792 | #ifdef __cplusplus | ||
11793 | extern "C" | ||
11794 | #endif | ||
11795 | char $ac_func (); | ||
11796 | /* The GNU C library defines this for functions which it implements | ||
11797 | to always fail with ENOSYS. Some functions are actually named | ||
11798 | something starting with __ and the normal name is an alias. */ | ||
11799 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11800 | choke me | ||
11801 | #endif | ||
11802 | |||
11803 | int | ||
11804 | main () | ||
11805 | { | ||
11806 | return $ac_func (); | ||
11807 | ; | ||
11808 | return 0; | ||
11809 | } | ||
11810 | _ACEOF | ||
11811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11812 | if { (ac_try="$ac_link" | ||
11813 | case "(($ac_try" in | ||
11814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11815 | *) ac_try_echo=$ac_try;; | ||
11816 | esac | ||
11817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11818 | (eval "$ac_link") 2>conftest.er1 | ||
11819 | ac_status=$? | ||
11820 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11821 | rm -f conftest.er1 | ||
11822 | cat conftest.err >&5 | ||
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11824 | (exit $ac_status); } && { | ||
11825 | test -z "$ac_c_werror_flag" || | ||
11826 | test ! -s conftest.err | ||
11827 | } && test -s conftest$ac_exeext && | ||
11828 | $as_test_x conftest$ac_exeext; then | ||
11829 | eval "$as_ac_var=yes" | ||
11830 | else | ||
11831 | echo "$as_me: failed program was:" >&5 | ||
11832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11833 | |||
11834 | eval "$as_ac_var=no" | ||
11835 | fi | ||
11836 | |||
11837 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11838 | conftest$ac_exeext conftest.$ac_ext | ||
11839 | fi | ||
11840 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11841 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11842 | echo "${ECHO_T}$ac_res" >&6; } | ||
11843 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11844 | cat >>confdefs.h <<_ACEOF | ||
11845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11846 | _ACEOF | ||
11847 | |||
11848 | else | ||
11849 | # strftime is in -lintl on SCO UNIX. | ||
11850 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
11851 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
11852 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
11853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11854 | else | ||
11855 | ac_check_lib_save_LIBS=$LIBS | ||
11856 | LIBS="-lintl $LIBS" | ||
11857 | cat >conftest.$ac_ext <<_ACEOF | ||
11858 | /* confdefs.h. */ | ||
11859 | _ACEOF | ||
11860 | cat confdefs.h >>conftest.$ac_ext | ||
11861 | cat >>conftest.$ac_ext <<_ACEOF | ||
11862 | /* end confdefs.h. */ | ||
11863 | |||
11864 | /* Override any GCC internal prototype to avoid an error. | ||
11865 | Use char because int might match the return type of a GCC | ||
11866 | builtin and then its argument prototype would still apply. */ | ||
11867 | #ifdef __cplusplus | ||
11868 | extern "C" | ||
11869 | #endif | ||
11870 | char strftime (); | ||
11871 | int | ||
11872 | main () | ||
11873 | { | ||
11874 | return strftime (); | ||
11875 | ; | ||
11876 | return 0; | ||
11877 | } | ||
11878 | _ACEOF | ||
11879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11880 | if { (ac_try="$ac_link" | ||
11881 | case "(($ac_try" in | ||
11882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11883 | *) ac_try_echo=$ac_try;; | ||
11884 | esac | ||
11885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11886 | (eval "$ac_link") 2>conftest.er1 | ||
11887 | ac_status=$? | ||
11888 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11889 | rm -f conftest.er1 | ||
11890 | cat conftest.err >&5 | ||
11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11892 | (exit $ac_status); } && { | ||
11893 | test -z "$ac_c_werror_flag" || | ||
11894 | test ! -s conftest.err | ||
11895 | } && test -s conftest$ac_exeext && | ||
11896 | $as_test_x conftest$ac_exeext; then | ||
11897 | ac_cv_lib_intl_strftime=yes | ||
11898 | else | ||
11899 | echo "$as_me: failed program was:" >&5 | ||
11900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11901 | |||
11902 | ac_cv_lib_intl_strftime=no | ||
11903 | fi | ||
11904 | |||
11905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11906 | conftest$ac_exeext conftest.$ac_ext | ||
11907 | LIBS=$ac_check_lib_save_LIBS | ||
11908 | fi | ||
11909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
11910 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
11911 | if test $ac_cv_lib_intl_strftime = yes; then | ||
11912 | cat >>confdefs.h <<\_ACEOF | ||
11913 | #define HAVE_STRFTIME 1 | ||
11914 | _ACEOF | ||
11915 | |||
11916 | LIBS="-lintl $LIBS" | ||
11917 | fi | ||
11918 | |||
11919 | fi | ||
11920 | done | ||
11921 | |||
11922 | |||
11923 | # Check for ALTDIRFUNC glob() extension | ||
11924 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
11925 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
11926 | cat >conftest.$ac_ext <<_ACEOF | ||
11927 | /* confdefs.h. */ | ||
11928 | _ACEOF | ||
11929 | cat confdefs.h >>conftest.$ac_ext | ||
11930 | cat >>conftest.$ac_ext <<_ACEOF | ||
11931 | /* end confdefs.h. */ | ||
11932 | |||
11933 | #include <glob.h> | ||
11934 | #ifdef GLOB_ALTDIRFUNC | ||
11935 | FOUNDIT | ||
11936 | #endif | ||
11937 | |||
11938 | _ACEOF | ||
11939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11940 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
11941 | |||
11942 | |||
11943 | cat >>confdefs.h <<\_ACEOF | ||
11944 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
11945 | _ACEOF | ||
11946 | |||
11947 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11948 | echo "${ECHO_T}yes" >&6; } | ||
11949 | |||
11950 | else | ||
11951 | |||
11952 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11953 | echo "${ECHO_T}no" >&6; } | ||
11954 | |||
11955 | |||
11956 | fi | ||
11957 | rm -f conftest* | ||
11958 | |||
11959 | |||
11960 | # Check for g.gl_matchc glob() extension | ||
11961 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
11962 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
11963 | cat >conftest.$ac_ext <<_ACEOF | ||
11964 | /* confdefs.h. */ | ||
11965 | _ACEOF | ||
11966 | cat confdefs.h >>conftest.$ac_ext | ||
11967 | cat >>conftest.$ac_ext <<_ACEOF | ||
11968 | /* end confdefs.h. */ | ||
11969 | #include <glob.h> | ||
11970 | int | ||
11971 | main () | ||
11972 | { | ||
11973 | glob_t g; g.gl_matchc = 1; | ||
11974 | ; | ||
11975 | return 0; | ||
11976 | } | ||
11977 | _ACEOF | ||
11978 | rm -f conftest.$ac_objext | ||
11979 | if { (ac_try="$ac_compile" | ||
11980 | case "(($ac_try" in | ||
11981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11982 | *) ac_try_echo=$ac_try;; | ||
11983 | esac | ||
11984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11985 | (eval "$ac_compile") 2>conftest.er1 | ||
11986 | ac_status=$? | ||
11987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11988 | rm -f conftest.er1 | ||
11989 | cat conftest.err >&5 | ||
11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11991 | (exit $ac_status); } && { | ||
11992 | test -z "$ac_c_werror_flag" || | ||
11993 | test ! -s conftest.err | ||
11994 | } && test -s conftest.$ac_objext; then | ||
11995 | |||
11996 | |||
11997 | cat >>confdefs.h <<\_ACEOF | ||
11998 | #define GLOB_HAS_GL_MATCHC 1 | ||
11999 | _ACEOF | ||
12000 | |||
12001 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12002 | echo "${ECHO_T}yes" >&6; } | ||
12003 | |||
12004 | else | ||
12005 | echo "$as_me: failed program was:" >&5 | ||
12006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12007 | |||
12008 | |||
12009 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12010 | echo "${ECHO_T}no" >&6; } | ||
12011 | |||
12012 | |||
12013 | fi | ||
12014 | |||
12015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12016 | |||
12017 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
12018 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
12019 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
12020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12021 | else | ||
12022 | cat >conftest.$ac_ext <<_ACEOF | ||
12023 | /* confdefs.h. */ | ||
12024 | _ACEOF | ||
12025 | cat confdefs.h >>conftest.$ac_ext | ||
12026 | cat >>conftest.$ac_ext <<_ACEOF | ||
12027 | /* end confdefs.h. */ | ||
12028 | #include <glob.h> | ||
12029 | |||
12030 | int | ||
12031 | main () | ||
12032 | { | ||
12033 | #ifndef GLOB_NOMATCH | ||
12034 | (void) GLOB_NOMATCH; | ||
12035 | #endif | ||
12036 | |||
12037 | ; | ||
12038 | return 0; | ||
12039 | } | ||
12040 | _ACEOF | ||
12041 | rm -f conftest.$ac_objext | ||
12042 | if { (ac_try="$ac_compile" | ||
12043 | case "(($ac_try" in | ||
12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12045 | *) ac_try_echo=$ac_try;; | ||
12046 | esac | ||
12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12048 | (eval "$ac_compile") 2>conftest.er1 | ||
12049 | ac_status=$? | ||
12050 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12051 | rm -f conftest.er1 | ||
12052 | cat conftest.err >&5 | ||
12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12054 | (exit $ac_status); } && { | ||
12055 | test -z "$ac_c_werror_flag" || | ||
12056 | test ! -s conftest.err | ||
12057 | } && test -s conftest.$ac_objext; then | ||
12058 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
12059 | else | ||
12060 | echo "$as_me: failed program was:" >&5 | ||
12061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12062 | |||
12063 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
12064 | fi | ||
12065 | |||
12066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12067 | fi | ||
12068 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
12069 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
12070 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
12071 | |||
12072 | cat >>confdefs.h <<_ACEOF | ||
12073 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
12074 | _ACEOF | ||
12075 | |||
12076 | |||
12077 | else | ||
12078 | cat >>confdefs.h <<_ACEOF | ||
12079 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
12080 | _ACEOF | ||
12081 | |||
12082 | |||
12083 | fi | ||
12084 | |||
12085 | |||
12086 | |||
12087 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
12088 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
12089 | if test "$cross_compiling" = yes; then | ||
12090 | |||
12091 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
12092 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
12093 | cat >>confdefs.h <<\_ACEOF | ||
12094 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12095 | _ACEOF | ||
12096 | |||
12097 | |||
12098 | |||
12099 | else | ||
12100 | cat >conftest.$ac_ext <<_ACEOF | ||
12101 | /* confdefs.h. */ | ||
12102 | _ACEOF | ||
12103 | cat confdefs.h >>conftest.$ac_ext | ||
12104 | cat >>conftest.$ac_ext <<_ACEOF | ||
12105 | /* end confdefs.h. */ | ||
12106 | |||
12107 | #include <sys/types.h> | ||
12108 | #include <dirent.h> | ||
12109 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
12110 | |||
12111 | _ACEOF | ||
12112 | rm -f conftest$ac_exeext | ||
12113 | if { (ac_try="$ac_link" | ||
12114 | case "(($ac_try" in | ||
12115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12116 | *) ac_try_echo=$ac_try;; | ||
12117 | esac | ||
12118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12119 | (eval "$ac_link") 2>&5 | ||
12120 | ac_status=$? | ||
12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12123 | { (case "(($ac_try" in | ||
12124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12125 | *) ac_try_echo=$ac_try;; | ||
12126 | esac | ||
12127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12128 | (eval "$ac_try") 2>&5 | ||
12129 | ac_status=$? | ||
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12131 | (exit $ac_status); }; }; then | ||
12132 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12133 | echo "${ECHO_T}yes" >&6; } | ||
12134 | else | ||
12135 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12136 | echo "$as_me: failed program was:" >&5 | ||
12137 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12138 | |||
12139 | ( exit $ac_status ) | ||
12140 | |||
12141 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12142 | echo "${ECHO_T}no" >&6; } | ||
12143 | |||
12144 | cat >>confdefs.h <<\_ACEOF | ||
12145 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12146 | _ACEOF | ||
12147 | |||
12148 | |||
12149 | fi | ||
12150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12151 | fi | ||
12152 | |||
12153 | |||
12154 | |||
12155 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
12156 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
12157 | if test -d "/proc/$$/fd" ; then | ||
12158 | |||
12159 | cat >>confdefs.h <<\_ACEOF | ||
12160 | #define HAVE_PROC_PID 1 | ||
12161 | _ACEOF | ||
12162 | |||
12163 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12164 | echo "${ECHO_T}yes" >&6; } | ||
12165 | else | ||
12166 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12167 | echo "${ECHO_T}no" >&6; } | ||
12168 | fi | ||
12169 | |||
12170 | # Check whether user wants S/Key support | ||
12171 | SKEY_MSG="no" | ||
12172 | |||
12173 | # Check whether --with-skey was given. | ||
12174 | if test "${with_skey+set}" = set; then | ||
12175 | withval=$with_skey; | ||
12176 | if test "x$withval" != "xno" ; then | ||
12177 | |||
12178 | if test "x$withval" != "xyes" ; then | ||
12179 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12180 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
12181 | fi | ||
12182 | |||
12183 | |||
12184 | cat >>confdefs.h <<\_ACEOF | ||
12185 | #define SKEY 1 | ||
12186 | _ACEOF | ||
12187 | |||
12188 | LIBS="-lskey $LIBS" | ||
12189 | SKEY_MSG="yes" | ||
12190 | |||
12191 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
12192 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
12193 | cat >conftest.$ac_ext <<_ACEOF | ||
12194 | /* confdefs.h. */ | ||
12195 | _ACEOF | ||
12196 | cat confdefs.h >>conftest.$ac_ext | ||
12197 | cat >>conftest.$ac_ext <<_ACEOF | ||
12198 | /* end confdefs.h. */ | ||
12199 | |||
12200 | #include <stdio.h> | ||
12201 | #include <skey.h> | ||
12202 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
12203 | |||
12204 | _ACEOF | ||
12205 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12206 | if { (ac_try="$ac_link" | ||
12207 | case "(($ac_try" in | ||
12208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12209 | *) ac_try_echo=$ac_try;; | ||
12210 | esac | ||
12211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12212 | (eval "$ac_link") 2>conftest.er1 | ||
12213 | ac_status=$? | ||
12214 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12215 | rm -f conftest.er1 | ||
12216 | cat conftest.err >&5 | ||
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12218 | (exit $ac_status); } && { | ||
12219 | test -z "$ac_c_werror_flag" || | ||
12220 | test ! -s conftest.err | ||
12221 | } && test -s conftest$ac_exeext && | ||
12222 | $as_test_x conftest$ac_exeext; then | ||
12223 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12224 | echo "${ECHO_T}yes" >&6; } | ||
12225 | else | ||
12226 | echo "$as_me: failed program was:" >&5 | ||
12227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12228 | |||
12229 | |||
12230 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12231 | echo "${ECHO_T}no" >&6; } | ||
12232 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
12233 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
12234 | { (exit 1); exit 1; }; } | ||
12235 | |||
12236 | fi | ||
12237 | |||
12238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12239 | conftest$ac_exeext conftest.$ac_ext | ||
12240 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
12241 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
12242 | cat >conftest.$ac_ext <<_ACEOF | ||
12243 | /* confdefs.h. */ | ||
12244 | _ACEOF | ||
12245 | cat confdefs.h >>conftest.$ac_ext | ||
12246 | cat >>conftest.$ac_ext <<_ACEOF | ||
12247 | /* end confdefs.h. */ | ||
12248 | #include <stdio.h> | ||
12249 | #include <skey.h> | ||
12250 | int | ||
12251 | main () | ||
12252 | { | ||
12253 | (void)skeychallenge(NULL,"name","",0); | ||
12254 | ; | ||
12255 | return 0; | ||
12256 | } | ||
12257 | _ACEOF | ||
12258 | rm -f conftest.$ac_objext | ||
12259 | if { (ac_try="$ac_compile" | ||
12260 | case "(($ac_try" in | ||
12261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12262 | *) ac_try_echo=$ac_try;; | ||
12263 | esac | ||
12264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12265 | (eval "$ac_compile") 2>conftest.er1 | ||
12266 | ac_status=$? | ||
12267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12268 | rm -f conftest.er1 | ||
12269 | cat conftest.err >&5 | ||
12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12271 | (exit $ac_status); } && { | ||
12272 | test -z "$ac_c_werror_flag" || | ||
12273 | test ! -s conftest.err | ||
12274 | } && test -s conftest.$ac_objext; then | ||
12275 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12276 | echo "${ECHO_T}yes" >&6; } | ||
12277 | |||
12278 | cat >>confdefs.h <<\_ACEOF | ||
12279 | #define SKEYCHALLENGE_4ARG 1 | ||
12280 | _ACEOF | ||
12281 | |||
12282 | else | ||
12283 | echo "$as_me: failed program was:" >&5 | ||
12284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12285 | |||
12286 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12287 | echo "${ECHO_T}no" >&6; } | ||
12288 | |||
12289 | fi | ||
12290 | |||
12291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12292 | fi | ||
12293 | |||
12294 | |||
12295 | fi | ||
12296 | |||
12297 | |||
12298 | # Check whether user wants TCP wrappers support | ||
12299 | TCPW_MSG="no" | ||
12300 | |||
12301 | # Check whether --with-tcp-wrappers was given. | ||
12302 | if test "${with_tcp_wrappers+set}" = set; then | ||
12303 | withval=$with_tcp_wrappers; | ||
12304 | if test "x$withval" != "xno" ; then | ||
12305 | saved_LIBS="$LIBS" | ||
12306 | saved_LDFLAGS="$LDFLAGS" | ||
12307 | saved_CPPFLAGS="$CPPFLAGS" | ||
12308 | if test -n "${withval}" && \ | ||
12309 | test "x${withval}" != "xyes"; then | ||
12310 | if test -d "${withval}/lib"; then | ||
12311 | if test -n "${need_dash_r}"; then | ||
12312 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12313 | else | ||
12314 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12315 | fi | ||
12316 | else | ||
12317 | if test -n "${need_dash_r}"; then | ||
12318 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12319 | else | ||
12320 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12321 | fi | ||
12322 | fi | ||
12323 | if test -d "${withval}/include"; then | ||
12324 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12325 | else | ||
12326 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12327 | fi | ||
12328 | fi | ||
12329 | LIBS="-lwrap $LIBS" | ||
12330 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
12331 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
12332 | cat >conftest.$ac_ext <<_ACEOF | ||
12333 | /* confdefs.h. */ | ||
12334 | _ACEOF | ||
12335 | cat confdefs.h >>conftest.$ac_ext | ||
12336 | cat >>conftest.$ac_ext <<_ACEOF | ||
12337 | /* end confdefs.h. */ | ||
12338 | |||
12339 | #include <sys/types.h> | ||
12340 | #include <sys/socket.h> | ||
12341 | #include <netinet/in.h> | ||
12342 | #include <tcpd.h> | ||
12343 | int deny_severity = 0, allow_severity = 0; | ||
12344 | |||
12345 | int | ||
12346 | main () | ||
12347 | { | ||
12348 | hosts_access(0); | ||
12349 | ; | ||
12350 | return 0; | ||
12351 | } | ||
12352 | _ACEOF | ||
12353 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12354 | if { (ac_try="$ac_link" | ||
12355 | case "(($ac_try" in | ||
12356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12357 | *) ac_try_echo=$ac_try;; | ||
12358 | esac | ||
12359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12360 | (eval "$ac_link") 2>conftest.er1 | ||
12361 | ac_status=$? | ||
12362 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12363 | rm -f conftest.er1 | ||
12364 | cat conftest.err >&5 | ||
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12366 | (exit $ac_status); } && { | ||
12367 | test -z "$ac_c_werror_flag" || | ||
12368 | test ! -s conftest.err | ||
12369 | } && test -s conftest$ac_exeext && | ||
12370 | $as_test_x conftest$ac_exeext; then | ||
12371 | |||
12372 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12373 | echo "${ECHO_T}yes" >&6; } | ||
12374 | |||
12375 | cat >>confdefs.h <<\_ACEOF | ||
12376 | #define LIBWRAP 1 | ||
12377 | _ACEOF | ||
12378 | |||
12379 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12380 | TCPW_MSG="yes" | ||
12381 | |||
12382 | else | ||
12383 | echo "$as_me: failed program was:" >&5 | ||
12384 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12385 | |||
12386 | |||
12387 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12388 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
12389 | { (exit 1); exit 1; }; } | ||
12390 | |||
12391 | |||
12392 | fi | ||
12393 | |||
12394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12395 | conftest$ac_exeext conftest.$ac_ext | ||
12396 | LIBS="$saved_LIBS" | ||
12397 | fi | ||
12398 | |||
12399 | |||
12400 | fi | ||
12401 | |||
12402 | |||
12403 | # Check whether user wants libedit support | ||
12404 | LIBEDIT_MSG="no" | ||
12405 | |||
12406 | # Check whether --with-libedit was given. | ||
12407 | if test "${with_libedit+set}" = set; then | ||
12408 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
12409 | if test "x$withval" = "xyes" ; then | ||
12410 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
12411 | set dummy pkg-config; ac_word=$2 | ||
12412 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
12413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
12414 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then | ||
12415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12416 | else | ||
12417 | case $PKGCONFIG in | ||
12418 | [\\/]* | ?:[\\/]*) | ||
12419 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
12420 | ;; | ||
12421 | *) | ||
12422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12423 | for as_dir in $PATH | ||
12424 | do | ||
12425 | IFS=$as_save_IFS | ||
12426 | test -z "$as_dir" && as_dir=. | ||
12427 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12429 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12431 | break 2 | ||
12432 | fi | ||
12433 | done | ||
12434 | done | ||
12435 | IFS=$as_save_IFS | ||
12436 | |||
12437 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" | ||
12438 | ;; | ||
12439 | esac | ||
12440 | fi | ||
12441 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
12442 | if test -n "$PKGCONFIG"; then | ||
12443 | { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | ||
12444 | echo "${ECHO_T}$PKGCONFIG" >&6; } | ||
12445 | else | ||
12446 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12447 | echo "${ECHO_T}no" >&6; } | ||
12448 | fi | ||
12449 | |||
12450 | |||
12451 | if test "x$PKGCONFIG" != "xno"; then | ||
12452 | { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5 | ||
12453 | echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; } | ||
12454 | if "$PKGCONFIG" libedit; then | ||
12455 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12456 | echo "${ECHO_T}yes" >&6; } | ||
12457 | use_pkgconfig_for_libedit=yes | ||
12458 | else | ||
12459 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12460 | echo "${ECHO_T}no" >&6; } | ||
12461 | fi | ||
12462 | fi | ||
12463 | else | ||
12464 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12465 | if test -n "${need_dash_r}"; then | ||
12466 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12467 | else | ||
12468 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12469 | fi | ||
12470 | fi | ||
12471 | if test "x$use_pkgconfig_for_libedit" == "xyes"; then | ||
12472 | LIBEDIT=`$PKGCONFIG --libs-only-l libedit` | ||
12473 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
12474 | else | ||
12475 | LIBEDIT="-ledit -lcurses" | ||
12476 | fi | ||
12477 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
12478 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
12479 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
12480 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
12481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12482 | else | ||
12483 | ac_check_lib_save_LIBS=$LIBS | ||
12484 | LIBS="-ledit $OTHERLIBS | ||
12485 | $LIBS" | ||
12486 | cat >conftest.$ac_ext <<_ACEOF | ||
12487 | /* confdefs.h. */ | ||
12488 | _ACEOF | ||
12489 | cat confdefs.h >>conftest.$ac_ext | ||
12490 | cat >>conftest.$ac_ext <<_ACEOF | ||
12491 | /* end confdefs.h. */ | ||
12492 | |||
12493 | /* Override any GCC internal prototype to avoid an error. | ||
12494 | Use char because int might match the return type of a GCC | ||
12495 | builtin and then its argument prototype would still apply. */ | ||
12496 | #ifdef __cplusplus | ||
12497 | extern "C" | ||
12498 | #endif | ||
12499 | char el_init (); | ||
12500 | int | ||
12501 | main () | ||
12502 | { | ||
12503 | return el_init (); | ||
12504 | ; | ||
12505 | return 0; | ||
12506 | } | ||
12507 | _ACEOF | ||
12508 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12509 | if { (ac_try="$ac_link" | ||
12510 | case "(($ac_try" in | ||
12511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12512 | *) ac_try_echo=$ac_try;; | ||
12513 | esac | ||
12514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12515 | (eval "$ac_link") 2>conftest.er1 | ||
12516 | ac_status=$? | ||
12517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12518 | rm -f conftest.er1 | ||
12519 | cat conftest.err >&5 | ||
12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12521 | (exit $ac_status); } && { | ||
12522 | test -z "$ac_c_werror_flag" || | ||
12523 | test ! -s conftest.err | ||
12524 | } && test -s conftest$ac_exeext && | ||
12525 | $as_test_x conftest$ac_exeext; then | ||
12526 | ac_cv_lib_edit_el_init=yes | ||
12527 | else | ||
12528 | echo "$as_me: failed program was:" >&5 | ||
12529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12530 | |||
12531 | ac_cv_lib_edit_el_init=no | ||
12532 | fi | ||
12533 | |||
12534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12535 | conftest$ac_exeext conftest.$ac_ext | ||
12536 | LIBS=$ac_check_lib_save_LIBS | ||
12537 | fi | ||
12538 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
12539 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
12540 | if test $ac_cv_lib_edit_el_init = yes; then | ||
12541 | |||
12542 | cat >>confdefs.h <<\_ACEOF | ||
12543 | #define USE_LIBEDIT 1 | ||
12544 | _ACEOF | ||
12545 | |||
12546 | LIBEDIT_MSG="yes" | ||
12547 | |||
12548 | |||
12549 | else | ||
12550 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
12551 | echo "$as_me: error: libedit not found" >&2;} | ||
12552 | { (exit 1); exit 1; }; } | ||
12553 | fi | ||
12554 | |||
12555 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
12556 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
12557 | cat >conftest.$ac_ext <<_ACEOF | ||
12558 | /* confdefs.h. */ | ||
12559 | _ACEOF | ||
12560 | cat confdefs.h >>conftest.$ac_ext | ||
12561 | cat >>conftest.$ac_ext <<_ACEOF | ||
12562 | /* end confdefs.h. */ | ||
12563 | |||
12564 | #include <histedit.h> | ||
12565 | int main(void) | ||
12566 | { | ||
12567 | int i = H_SETSIZE; | ||
12568 | el_init("", NULL, NULL, NULL); | ||
12569 | exit(0); | ||
12570 | } | ||
12571 | |||
12572 | _ACEOF | ||
12573 | rm -f conftest.$ac_objext | ||
12574 | if { (ac_try="$ac_compile" | ||
12575 | case "(($ac_try" in | ||
12576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12577 | *) ac_try_echo=$ac_try;; | ||
12578 | esac | ||
12579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12580 | (eval "$ac_compile") 2>conftest.er1 | ||
12581 | ac_status=$? | ||
12582 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12583 | rm -f conftest.er1 | ||
12584 | cat conftest.err >&5 | ||
12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12586 | (exit $ac_status); } && { | ||
12587 | test -z "$ac_c_werror_flag" || | ||
12588 | test ! -s conftest.err | ||
12589 | } && test -s conftest.$ac_objext; then | ||
12590 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12591 | echo "${ECHO_T}yes" >&6; } | ||
12592 | else | ||
12593 | echo "$as_me: failed program was:" >&5 | ||
12594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12595 | |||
12596 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12597 | echo "${ECHO_T}no" >&6; } | ||
12598 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
12599 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
12600 | { (exit 1); exit 1; }; } | ||
12601 | |||
12602 | fi | ||
12603 | |||
12604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12605 | fi | ||
12606 | |||
12607 | fi | ||
12608 | |||
12609 | |||
12610 | AUDIT_MODULE=none | ||
12611 | |||
12612 | # Check whether --with-audit was given. | ||
12613 | if test "${with_audit+set}" = set; then | ||
12614 | withval=$with_audit; | ||
12615 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
12616 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
12617 | case "$withval" in | ||
12618 | bsm) | ||
12619 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
12620 | echo "${ECHO_T}bsm" >&6; } | ||
12621 | AUDIT_MODULE=bsm | ||
12622 | |||
12623 | for ac_header in bsm/audit.h | ||
12624 | do | ||
12625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12626 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12630 | else | ||
12631 | cat >conftest.$ac_ext <<_ACEOF | ||
12632 | /* confdefs.h. */ | ||
12633 | _ACEOF | ||
12634 | cat confdefs.h >>conftest.$ac_ext | ||
12635 | cat >>conftest.$ac_ext <<_ACEOF | ||
12636 | /* end confdefs.h. */ | ||
12637 | |||
12638 | #ifdef HAVE_TIME_H | ||
12639 | # include <time.h> | ||
12640 | #endif | ||
12641 | |||
12642 | |||
12643 | |||
12644 | #include <$ac_header> | ||
12645 | _ACEOF | ||
12646 | rm -f conftest.$ac_objext | ||
12647 | if { (ac_try="$ac_compile" | ||
12648 | case "(($ac_try" in | ||
12649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12650 | *) ac_try_echo=$ac_try;; | ||
12651 | esac | ||
12652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12653 | (eval "$ac_compile") 2>conftest.er1 | ||
12654 | ac_status=$? | ||
12655 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12656 | rm -f conftest.er1 | ||
12657 | cat conftest.err >&5 | ||
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12659 | (exit $ac_status); } && { | ||
12660 | test -z "$ac_c_werror_flag" || | ||
12661 | test ! -s conftest.err | ||
12662 | } && test -s conftest.$ac_objext; then | ||
12663 | eval "$as_ac_Header=yes" | ||
12664 | else | ||
12665 | echo "$as_me: failed program was:" >&5 | ||
12666 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12667 | |||
12668 | eval "$as_ac_Header=no" | ||
12669 | fi | ||
12670 | |||
12671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12672 | fi | ||
12673 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12675 | echo "${ECHO_T}$ac_res" >&6; } | ||
12676 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12677 | cat >>confdefs.h <<_ACEOF | ||
12678 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12679 | _ACEOF | ||
12680 | |||
12681 | else | ||
12682 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
12683 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
12684 | { (exit 1); exit 1; }; } | ||
12685 | fi | ||
12686 | |||
12687 | done | ||
12688 | |||
12689 | |||
12690 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
12691 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
12692 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
12693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12694 | else | ||
12695 | ac_check_lib_save_LIBS=$LIBS | ||
12696 | LIBS="-lbsm $LIBS" | ||
12697 | cat >conftest.$ac_ext <<_ACEOF | ||
12698 | /* confdefs.h. */ | ||
12699 | _ACEOF | ||
12700 | cat confdefs.h >>conftest.$ac_ext | ||
12701 | cat >>conftest.$ac_ext <<_ACEOF | ||
12702 | /* end confdefs.h. */ | ||
12703 | |||
12704 | /* Override any GCC internal prototype to avoid an error. | ||
12705 | Use char because int might match the return type of a GCC | ||
12706 | builtin and then its argument prototype would still apply. */ | ||
12707 | #ifdef __cplusplus | ||
12708 | extern "C" | ||
12709 | #endif | ||
12710 | char getaudit (); | ||
12711 | int | ||
12712 | main () | ||
12713 | { | ||
12714 | return getaudit (); | ||
12715 | ; | ||
12716 | return 0; | ||
12717 | } | ||
12718 | _ACEOF | ||
12719 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12720 | if { (ac_try="$ac_link" | ||
12721 | case "(($ac_try" in | ||
12722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12723 | *) ac_try_echo=$ac_try;; | ||
12724 | esac | ||
12725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12726 | (eval "$ac_link") 2>conftest.er1 | ||
12727 | ac_status=$? | ||
12728 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12729 | rm -f conftest.er1 | ||
12730 | cat conftest.err >&5 | ||
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12732 | (exit $ac_status); } && { | ||
12733 | test -z "$ac_c_werror_flag" || | ||
12734 | test ! -s conftest.err | ||
12735 | } && test -s conftest$ac_exeext && | ||
12736 | $as_test_x conftest$ac_exeext; then | ||
12737 | ac_cv_lib_bsm_getaudit=yes | ||
12738 | else | ||
12739 | echo "$as_me: failed program was:" >&5 | ||
12740 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12741 | |||
12742 | ac_cv_lib_bsm_getaudit=no | ||
12743 | fi | ||
12744 | |||
12745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12746 | conftest$ac_exeext conftest.$ac_ext | ||
12747 | LIBS=$ac_check_lib_save_LIBS | ||
12748 | fi | ||
12749 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
12750 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
12751 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
12752 | cat >>confdefs.h <<_ACEOF | ||
12753 | #define HAVE_LIBBSM 1 | ||
12754 | _ACEOF | ||
12755 | |||
12756 | LIBS="-lbsm $LIBS" | ||
12757 | |||
12758 | else | ||
12759 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
12760 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
12761 | { (exit 1); exit 1; }; } | ||
12762 | fi | ||
12763 | |||
12764 | |||
12765 | for ac_func in getaudit | ||
12766 | do | ||
12767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12768 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12770 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12772 | else | ||
12773 | cat >conftest.$ac_ext <<_ACEOF | ||
12774 | /* confdefs.h. */ | ||
12775 | _ACEOF | ||
12776 | cat confdefs.h >>conftest.$ac_ext | ||
12777 | cat >>conftest.$ac_ext <<_ACEOF | ||
12778 | /* end confdefs.h. */ | ||
12779 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12781 | #define $ac_func innocuous_$ac_func | ||
12782 | |||
12783 | /* System header to define __stub macros and hopefully few prototypes, | ||
12784 | which can conflict with char $ac_func (); below. | ||
12785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12786 | <limits.h> exists even on freestanding compilers. */ | ||
12787 | |||
12788 | #ifdef __STDC__ | ||
12789 | # include <limits.h> | ||
12790 | #else | ||
12791 | # include <assert.h> | ||
12792 | #endif | ||
12793 | |||
12794 | #undef $ac_func | ||
12795 | |||
12796 | /* Override any GCC internal prototype to avoid an error. | ||
12797 | Use char because int might match the return type of a GCC | ||
12798 | builtin and then its argument prototype would still apply. */ | ||
12799 | #ifdef __cplusplus | ||
12800 | extern "C" | ||
12801 | #endif | ||
12802 | char $ac_func (); | ||
12803 | /* The GNU C library defines this for functions which it implements | ||
12804 | to always fail with ENOSYS. Some functions are actually named | ||
12805 | something starting with __ and the normal name is an alias. */ | ||
12806 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12807 | choke me | ||
12808 | #endif | ||
12809 | |||
12810 | int | ||
12811 | main () | ||
12812 | { | ||
12813 | return $ac_func (); | ||
12814 | ; | ||
12815 | return 0; | ||
12816 | } | ||
12817 | _ACEOF | ||
12818 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12819 | if { (ac_try="$ac_link" | ||
12820 | case "(($ac_try" in | ||
12821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12822 | *) ac_try_echo=$ac_try;; | ||
12823 | esac | ||
12824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12825 | (eval "$ac_link") 2>conftest.er1 | ||
12826 | ac_status=$? | ||
12827 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12828 | rm -f conftest.er1 | ||
12829 | cat conftest.err >&5 | ||
12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12831 | (exit $ac_status); } && { | ||
12832 | test -z "$ac_c_werror_flag" || | ||
12833 | test ! -s conftest.err | ||
12834 | } && test -s conftest$ac_exeext && | ||
12835 | $as_test_x conftest$ac_exeext; then | ||
12836 | eval "$as_ac_var=yes" | ||
12837 | else | ||
12838 | echo "$as_me: failed program was:" >&5 | ||
12839 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12840 | |||
12841 | eval "$as_ac_var=no" | ||
12842 | fi | ||
12843 | |||
12844 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12845 | conftest$ac_exeext conftest.$ac_ext | ||
12846 | fi | ||
12847 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12848 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12849 | echo "${ECHO_T}$ac_res" >&6; } | ||
12850 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12851 | cat >>confdefs.h <<_ACEOF | ||
12852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12853 | _ACEOF | ||
12854 | |||
12855 | else | ||
12856 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
12857 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
12858 | { (exit 1); exit 1; }; } | ||
12859 | fi | ||
12860 | done | ||
12861 | |||
12862 | # These are optional | ||
12863 | |||
12864 | |||
12865 | for ac_func in getaudit_addr aug_get_machine | ||
12866 | do | ||
12867 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12868 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12869 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12870 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12872 | else | ||
12873 | cat >conftest.$ac_ext <<_ACEOF | ||
12874 | /* confdefs.h. */ | ||
12875 | _ACEOF | ||
12876 | cat confdefs.h >>conftest.$ac_ext | ||
12877 | cat >>conftest.$ac_ext <<_ACEOF | ||
12878 | /* end confdefs.h. */ | ||
12879 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12881 | #define $ac_func innocuous_$ac_func | ||
12882 | |||
12883 | /* System header to define __stub macros and hopefully few prototypes, | ||
12884 | which can conflict with char $ac_func (); below. | ||
12885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12886 | <limits.h> exists even on freestanding compilers. */ | ||
12887 | |||
12888 | #ifdef __STDC__ | ||
12889 | # include <limits.h> | ||
12890 | #else | ||
12891 | # include <assert.h> | ||
12892 | #endif | ||
12893 | |||
12894 | #undef $ac_func | ||
12895 | |||
12896 | /* Override any GCC internal prototype to avoid an error. | ||
12897 | Use char because int might match the return type of a GCC | ||
12898 | builtin and then its argument prototype would still apply. */ | ||
12899 | #ifdef __cplusplus | ||
12900 | extern "C" | ||
12901 | #endif | ||
12902 | char $ac_func (); | ||
12903 | /* The GNU C library defines this for functions which it implements | ||
12904 | to always fail with ENOSYS. Some functions are actually named | ||
12905 | something starting with __ and the normal name is an alias. */ | ||
12906 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12907 | choke me | ||
12908 | #endif | ||
12909 | |||
12910 | int | ||
12911 | main () | ||
12912 | { | ||
12913 | return $ac_func (); | ||
12914 | ; | ||
12915 | return 0; | ||
12916 | } | ||
12917 | _ACEOF | ||
12918 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12919 | if { (ac_try="$ac_link" | ||
12920 | case "(($ac_try" in | ||
12921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12922 | *) ac_try_echo=$ac_try;; | ||
12923 | esac | ||
12924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12925 | (eval "$ac_link") 2>conftest.er1 | ||
12926 | ac_status=$? | ||
12927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12928 | rm -f conftest.er1 | ||
12929 | cat conftest.err >&5 | ||
12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12931 | (exit $ac_status); } && { | ||
12932 | test -z "$ac_c_werror_flag" || | ||
12933 | test ! -s conftest.err | ||
12934 | } && test -s conftest$ac_exeext && | ||
12935 | $as_test_x conftest$ac_exeext; then | ||
12936 | eval "$as_ac_var=yes" | ||
12937 | else | ||
12938 | echo "$as_me: failed program was:" >&5 | ||
12939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12940 | |||
12941 | eval "$as_ac_var=no" | ||
12942 | fi | ||
12943 | |||
12944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12945 | conftest$ac_exeext conftest.$ac_ext | ||
12946 | fi | ||
12947 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12949 | echo "${ECHO_T}$ac_res" >&6; } | ||
12950 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12951 | cat >>confdefs.h <<_ACEOF | ||
12952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12953 | _ACEOF | ||
12954 | |||
12955 | fi | ||
12956 | done | ||
12957 | |||
12958 | |||
12959 | cat >>confdefs.h <<\_ACEOF | ||
12960 | #define USE_BSM_AUDIT 1 | ||
12961 | _ACEOF | ||
12962 | |||
12963 | ;; | ||
12964 | debug) | ||
12965 | AUDIT_MODULE=debug | ||
12966 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
12967 | echo "${ECHO_T}debug" >&6; } | ||
12968 | |||
12969 | cat >>confdefs.h <<\_ACEOF | ||
12970 | #define SSH_AUDIT_EVENTS 1 | ||
12971 | _ACEOF | ||
12972 | |||
12973 | ;; | ||
12974 | no) | ||
12975 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12976 | echo "${ECHO_T}no" >&6; } | ||
12977 | ;; | ||
12978 | *) | ||
12979 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
12980 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
12981 | { (exit 1); exit 1; }; } | ||
12982 | ;; | ||
12983 | esac | ||
12984 | |||
12985 | fi | ||
12986 | |||
12987 | |||
12988 | |||
12989 | |||
12990 | |||
12991 | |||
12992 | |||
12993 | |||
12994 | |||
12995 | |||
12996 | |||
12997 | |||
12998 | |||
12999 | |||
13000 | |||
13001 | |||
13002 | |||
13003 | |||
13004 | |||
13005 | |||
13006 | |||
13007 | |||
13008 | |||
13009 | |||
13010 | |||
13011 | |||
13012 | |||
13013 | |||
13014 | |||
13015 | |||
13016 | |||
13017 | |||
13018 | |||
13019 | |||
13020 | |||
13021 | |||
13022 | |||
13023 | |||
13024 | |||
13025 | |||
13026 | |||
13027 | |||
13028 | |||
13029 | |||
13030 | |||
13031 | |||
13032 | |||
13033 | |||
13034 | |||
13035 | |||
13036 | |||
13037 | |||
13038 | |||
13039 | |||
13040 | |||
13041 | |||
13042 | |||
13043 | |||
13044 | |||
13045 | |||
13046 | |||
13047 | |||
13048 | |||
13049 | |||
13050 | |||
13051 | |||
13052 | |||
13053 | |||
13054 | |||
13055 | |||
13056 | |||
13057 | |||
13058 | |||
13059 | |||
13060 | |||
13061 | |||
13062 | |||
13063 | |||
13064 | |||
13065 | |||
13066 | |||
13067 | |||
13068 | |||
13069 | |||
13070 | |||
13071 | |||
13072 | |||
13073 | |||
13074 | |||
13075 | |||
13076 | |||
13077 | |||
13078 | |||
13079 | |||
13080 | |||
13081 | for ac_func in \ | ||
13082 | arc4random \ | ||
13083 | arc4random_buf \ | ||
13084 | arc4random_uniform \ | ||
13085 | asprintf \ | ||
13086 | b64_ntop \ | ||
13087 | __b64_ntop \ | ||
13088 | b64_pton \ | ||
13089 | __b64_pton \ | ||
13090 | bcopy \ | ||
13091 | bindresvport_sa \ | ||
13092 | clock \ | ||
13093 | closefrom \ | ||
13094 | dirfd \ | ||
13095 | fchmod \ | ||
13096 | fchown \ | ||
13097 | freeaddrinfo \ | ||
13098 | fstatvfs \ | ||
13099 | futimes \ | ||
13100 | getaddrinfo \ | ||
13101 | getcwd \ | ||
13102 | getgrouplist \ | ||
13103 | getnameinfo \ | ||
13104 | getopt \ | ||
13105 | getpeereid \ | ||
13106 | getpeerucred \ | ||
13107 | _getpty \ | ||
13108 | getrlimit \ | ||
13109 | getttyent \ | ||
13110 | glob \ | ||
13111 | group_from_gid \ | ||
13112 | inet_aton \ | ||
13113 | inet_ntoa \ | ||
13114 | inet_ntop \ | ||
13115 | innetgr \ | ||
13116 | login_getcapbool \ | ||
13117 | md5_crypt \ | ||
13118 | memmove \ | ||
13119 | mkdtemp \ | ||
13120 | mmap \ | ||
13121 | ngetaddrinfo \ | ||
13122 | nsleep \ | ||
13123 | ogetaddrinfo \ | ||
13124 | openlog_r \ | ||
13125 | openpty \ | ||
13126 | poll \ | ||
13127 | prctl \ | ||
13128 | pstat \ | ||
13129 | readpassphrase \ | ||
13130 | realpath \ | ||
13131 | recvmsg \ | ||
13132 | rresvport_af \ | ||
13133 | sendmsg \ | ||
13134 | setdtablesize \ | ||
13135 | setegid \ | ||
13136 | setenv \ | ||
13137 | seteuid \ | ||
13138 | setgroupent \ | ||
13139 | setgroups \ | ||
13140 | setlogin \ | ||
13141 | setpassent\ | ||
13142 | setpcred \ | ||
13143 | setproctitle \ | ||
13144 | setregid \ | ||
13145 | setreuid \ | ||
13146 | setrlimit \ | ||
13147 | setsid \ | ||
13148 | setvbuf \ | ||
13149 | sigaction \ | ||
13150 | sigvec \ | ||
13151 | snprintf \ | ||
13152 | socketpair \ | ||
13153 | statfs \ | ||
13154 | statvfs \ | ||
13155 | strdup \ | ||
13156 | strerror \ | ||
13157 | strlcat \ | ||
13158 | strlcpy \ | ||
13159 | strmode \ | ||
13160 | strnvis \ | ||
13161 | strtonum \ | ||
13162 | strtoll \ | ||
13163 | strtoul \ | ||
13164 | swap32 \ | ||
13165 | sysconf \ | ||
13166 | tcgetpgrp \ | ||
13167 | truncate \ | ||
13168 | unsetenv \ | ||
13169 | updwtmpx \ | ||
13170 | user_from_uid \ | ||
13171 | vasprintf \ | ||
13172 | vhangup \ | ||
13173 | vsnprintf \ | ||
13174 | waitpid \ | ||
13175 | |||
13176 | do | ||
13177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13178 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13180 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13182 | else | ||
13183 | cat >conftest.$ac_ext <<_ACEOF | ||
13184 | /* confdefs.h. */ | ||
13185 | _ACEOF | ||
13186 | cat confdefs.h >>conftest.$ac_ext | ||
13187 | cat >>conftest.$ac_ext <<_ACEOF | ||
13188 | /* end confdefs.h. */ | ||
13189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13191 | #define $ac_func innocuous_$ac_func | ||
13192 | |||
13193 | /* System header to define __stub macros and hopefully few prototypes, | ||
13194 | which can conflict with char $ac_func (); below. | ||
13195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13196 | <limits.h> exists even on freestanding compilers. */ | ||
13197 | |||
13198 | #ifdef __STDC__ | ||
13199 | # include <limits.h> | ||
13200 | #else | ||
13201 | # include <assert.h> | ||
13202 | #endif | ||
13203 | |||
13204 | #undef $ac_func | ||
13205 | |||
13206 | /* Override any GCC internal prototype to avoid an error. | ||
13207 | Use char because int might match the return type of a GCC | ||
13208 | builtin and then its argument prototype would still apply. */ | ||
13209 | #ifdef __cplusplus | ||
13210 | extern "C" | ||
13211 | #endif | ||
13212 | char $ac_func (); | ||
13213 | /* The GNU C library defines this for functions which it implements | ||
13214 | to always fail with ENOSYS. Some functions are actually named | ||
13215 | something starting with __ and the normal name is an alias. */ | ||
13216 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13217 | choke me | ||
13218 | #endif | ||
13219 | |||
13220 | int | ||
13221 | main () | ||
13222 | { | ||
13223 | return $ac_func (); | ||
13224 | ; | ||
13225 | return 0; | ||
13226 | } | ||
13227 | _ACEOF | ||
13228 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13229 | if { (ac_try="$ac_link" | ||
13230 | case "(($ac_try" in | ||
13231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13232 | *) ac_try_echo=$ac_try;; | ||
13233 | esac | ||
13234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13235 | (eval "$ac_link") 2>conftest.er1 | ||
13236 | ac_status=$? | ||
13237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13238 | rm -f conftest.er1 | ||
13239 | cat conftest.err >&5 | ||
13240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13241 | (exit $ac_status); } && { | ||
13242 | test -z "$ac_c_werror_flag" || | ||
13243 | test ! -s conftest.err | ||
13244 | } && test -s conftest$ac_exeext && | ||
13245 | $as_test_x conftest$ac_exeext; then | ||
13246 | eval "$as_ac_var=yes" | ||
13247 | else | ||
13248 | echo "$as_me: failed program was:" >&5 | ||
13249 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13250 | |||
13251 | eval "$as_ac_var=no" | ||
13252 | fi | ||
13253 | |||
13254 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13255 | conftest$ac_exeext conftest.$ac_ext | ||
13256 | fi | ||
13257 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13258 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13259 | echo "${ECHO_T}$ac_res" >&6; } | ||
13260 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13261 | cat >>confdefs.h <<_ACEOF | ||
13262 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13263 | _ACEOF | ||
13264 | |||
13265 | fi | ||
13266 | done | ||
13267 | |||
13268 | |||
13269 | # PKCS#11 support requires dlopen() and co | ||
13270 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
13271 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
13272 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13274 | else | ||
13275 | ac_func_search_save_LIBS=$LIBS | ||
13276 | cat >conftest.$ac_ext <<_ACEOF | ||
13277 | /* confdefs.h. */ | ||
13278 | _ACEOF | ||
13279 | cat confdefs.h >>conftest.$ac_ext | ||
13280 | cat >>conftest.$ac_ext <<_ACEOF | ||
13281 | /* end confdefs.h. */ | ||
13282 | |||
13283 | /* Override any GCC internal prototype to avoid an error. | ||
13284 | Use char because int might match the return type of a GCC | ||
13285 | builtin and then its argument prototype would still apply. */ | ||
13286 | #ifdef __cplusplus | ||
13287 | extern "C" | ||
13288 | #endif | ||
13289 | char dlopen (); | ||
13290 | int | ||
13291 | main () | ||
13292 | { | ||
13293 | return dlopen (); | ||
13294 | ; | ||
13295 | return 0; | ||
13296 | } | ||
13297 | _ACEOF | ||
13298 | for ac_lib in '' dl; do | ||
13299 | if test -z "$ac_lib"; then | ||
13300 | ac_res="none required" | ||
13301 | else | ||
13302 | ac_res=-l$ac_lib | ||
13303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13304 | fi | ||
13305 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13306 | if { (ac_try="$ac_link" | ||
13307 | case "(($ac_try" in | ||
13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13309 | *) ac_try_echo=$ac_try;; | ||
13310 | esac | ||
13311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13312 | (eval "$ac_link") 2>conftest.er1 | ||
13313 | ac_status=$? | ||
13314 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13315 | rm -f conftest.er1 | ||
13316 | cat conftest.err >&5 | ||
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13318 | (exit $ac_status); } && { | ||
13319 | test -z "$ac_c_werror_flag" || | ||
13320 | test ! -s conftest.err | ||
13321 | } && test -s conftest$ac_exeext && | ||
13322 | $as_test_x conftest$ac_exeext; then | ||
13323 | ac_cv_search_dlopen=$ac_res | ||
13324 | else | ||
13325 | echo "$as_me: failed program was:" >&5 | ||
13326 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13327 | |||
13328 | |||
13329 | fi | ||
13330 | |||
13331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13332 | conftest$ac_exeext | ||
13333 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13334 | break | ||
13335 | fi | ||
13336 | done | ||
13337 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13338 | : | ||
13339 | else | ||
13340 | ac_cv_search_dlopen=no | ||
13341 | fi | ||
13342 | rm conftest.$ac_ext | ||
13343 | LIBS=$ac_func_search_save_LIBS | ||
13344 | fi | ||
13345 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
13346 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
13347 | ac_res=$ac_cv_search_dlopen | ||
13348 | if test "$ac_res" != no; then | ||
13349 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13350 | |||
13351 | cat >>confdefs.h <<\_ACEOF | ||
13352 | #define ENABLE_PKCS11 | ||
13353 | _ACEOF | ||
13354 | |||
13355 | |||
13356 | fi | ||
13357 | |||
13358 | |||
13359 | # IRIX has a const char return value for gai_strerror() | ||
13360 | |||
13361 | for ac_func in gai_strerror | ||
13362 | do | ||
13363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13364 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13366 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13368 | else | ||
13369 | cat >conftest.$ac_ext <<_ACEOF | ||
13370 | /* confdefs.h. */ | ||
13371 | _ACEOF | ||
13372 | cat confdefs.h >>conftest.$ac_ext | ||
13373 | cat >>conftest.$ac_ext <<_ACEOF | ||
13374 | /* end confdefs.h. */ | ||
13375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13377 | #define $ac_func innocuous_$ac_func | ||
13378 | |||
13379 | /* System header to define __stub macros and hopefully few prototypes, | ||
13380 | which can conflict with char $ac_func (); below. | ||
13381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13382 | <limits.h> exists even on freestanding compilers. */ | ||
13383 | |||
13384 | #ifdef __STDC__ | ||
13385 | # include <limits.h> | ||
13386 | #else | ||
13387 | # include <assert.h> | ||
13388 | #endif | ||
13389 | |||
13390 | #undef $ac_func | ||
13391 | |||
13392 | /* Override any GCC internal prototype to avoid an error. | ||
13393 | Use char because int might match the return type of a GCC | ||
13394 | builtin and then its argument prototype would still apply. */ | ||
13395 | #ifdef __cplusplus | ||
13396 | extern "C" | ||
13397 | #endif | ||
13398 | char $ac_func (); | ||
13399 | /* The GNU C library defines this for functions which it implements | ||
13400 | to always fail with ENOSYS. Some functions are actually named | ||
13401 | something starting with __ and the normal name is an alias. */ | ||
13402 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13403 | choke me | ||
13404 | #endif | ||
13405 | |||
13406 | int | ||
13407 | main () | ||
13408 | { | ||
13409 | return $ac_func (); | ||
13410 | ; | ||
13411 | return 0; | ||
13412 | } | ||
13413 | _ACEOF | ||
13414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13415 | if { (ac_try="$ac_link" | ||
13416 | case "(($ac_try" in | ||
13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13418 | *) ac_try_echo=$ac_try;; | ||
13419 | esac | ||
13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13421 | (eval "$ac_link") 2>conftest.er1 | ||
13422 | ac_status=$? | ||
13423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13424 | rm -f conftest.er1 | ||
13425 | cat conftest.err >&5 | ||
13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13427 | (exit $ac_status); } && { | ||
13428 | test -z "$ac_c_werror_flag" || | ||
13429 | test ! -s conftest.err | ||
13430 | } && test -s conftest$ac_exeext && | ||
13431 | $as_test_x conftest$ac_exeext; then | ||
13432 | eval "$as_ac_var=yes" | ||
13433 | else | ||
13434 | echo "$as_me: failed program was:" >&5 | ||
13435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13436 | |||
13437 | eval "$as_ac_var=no" | ||
13438 | fi | ||
13439 | |||
13440 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13441 | conftest$ac_exeext conftest.$ac_ext | ||
13442 | fi | ||
13443 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13445 | echo "${ECHO_T}$ac_res" >&6; } | ||
13446 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13447 | cat >>confdefs.h <<_ACEOF | ||
13448 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13449 | _ACEOF | ||
13450 | |||
13451 | cat >>confdefs.h <<\_ACEOF | ||
13452 | #define HAVE_GAI_STRERROR 1 | ||
13453 | _ACEOF | ||
13454 | |||
13455 | cat >conftest.$ac_ext <<_ACEOF | ||
13456 | /* confdefs.h. */ | ||
13457 | _ACEOF | ||
13458 | cat confdefs.h >>conftest.$ac_ext | ||
13459 | cat >>conftest.$ac_ext <<_ACEOF | ||
13460 | /* end confdefs.h. */ | ||
13461 | |||
13462 | #include <sys/types.h> | ||
13463 | #include <sys/socket.h> | ||
13464 | #include <netdb.h> | ||
13465 | |||
13466 | const char *gai_strerror(int); | ||
13467 | int | ||
13468 | main () | ||
13469 | { | ||
13470 | |||
13471 | char *str; | ||
13472 | |||
13473 | str = gai_strerror(0); | ||
13474 | ; | ||
13475 | return 0; | ||
13476 | } | ||
13477 | _ACEOF | ||
13478 | rm -f conftest.$ac_objext | ||
13479 | if { (ac_try="$ac_compile" | ||
13480 | case "(($ac_try" in | ||
13481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13482 | *) ac_try_echo=$ac_try;; | ||
13483 | esac | ||
13484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13485 | (eval "$ac_compile") 2>conftest.er1 | ||
13486 | ac_status=$? | ||
13487 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13488 | rm -f conftest.er1 | ||
13489 | cat conftest.err >&5 | ||
13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13491 | (exit $ac_status); } && { | ||
13492 | test -z "$ac_c_werror_flag" || | ||
13493 | test ! -s conftest.err | ||
13494 | } && test -s conftest.$ac_objext; then | ||
13495 | |||
13496 | |||
13497 | cat >>confdefs.h <<\_ACEOF | ||
13498 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
13499 | _ACEOF | ||
13500 | |||
13501 | else | ||
13502 | echo "$as_me: failed program was:" >&5 | ||
13503 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13504 | |||
13505 | |||
13506 | fi | ||
13507 | |||
13508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13509 | fi | ||
13510 | done | ||
13511 | |||
13512 | |||
13513 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
13514 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
13515 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13517 | else | ||
13518 | ac_func_search_save_LIBS=$LIBS | ||
13519 | cat >conftest.$ac_ext <<_ACEOF | ||
13520 | /* confdefs.h. */ | ||
13521 | _ACEOF | ||
13522 | cat confdefs.h >>conftest.$ac_ext | ||
13523 | cat >>conftest.$ac_ext <<_ACEOF | ||
13524 | /* end confdefs.h. */ | ||
13525 | |||
13526 | /* Override any GCC internal prototype to avoid an error. | ||
13527 | Use char because int might match the return type of a GCC | ||
13528 | builtin and then its argument prototype would still apply. */ | ||
13529 | #ifdef __cplusplus | ||
13530 | extern "C" | ||
13531 | #endif | ||
13532 | char nanosleep (); | ||
13533 | int | ||
13534 | main () | ||
13535 | { | ||
13536 | return nanosleep (); | ||
13537 | ; | ||
13538 | return 0; | ||
13539 | } | ||
13540 | _ACEOF | ||
13541 | for ac_lib in '' rt posix4; do | ||
13542 | if test -z "$ac_lib"; then | ||
13543 | ac_res="none required" | ||
13544 | else | ||
13545 | ac_res=-l$ac_lib | ||
13546 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13547 | fi | ||
13548 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13549 | if { (ac_try="$ac_link" | ||
13550 | case "(($ac_try" in | ||
13551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13552 | *) ac_try_echo=$ac_try;; | ||
13553 | esac | ||
13554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13555 | (eval "$ac_link") 2>conftest.er1 | ||
13556 | ac_status=$? | ||
13557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13558 | rm -f conftest.er1 | ||
13559 | cat conftest.err >&5 | ||
13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13561 | (exit $ac_status); } && { | ||
13562 | test -z "$ac_c_werror_flag" || | ||
13563 | test ! -s conftest.err | ||
13564 | } && test -s conftest$ac_exeext && | ||
13565 | $as_test_x conftest$ac_exeext; then | ||
13566 | ac_cv_search_nanosleep=$ac_res | ||
13567 | else | ||
13568 | echo "$as_me: failed program was:" >&5 | ||
13569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13570 | |||
13571 | |||
13572 | fi | ||
13573 | |||
13574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13575 | conftest$ac_exeext | ||
13576 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13577 | break | ||
13578 | fi | ||
13579 | done | ||
13580 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13581 | : | ||
13582 | else | ||
13583 | ac_cv_search_nanosleep=no | ||
13584 | fi | ||
13585 | rm conftest.$ac_ext | ||
13586 | LIBS=$ac_func_search_save_LIBS | ||
13587 | fi | ||
13588 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
13589 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
13590 | ac_res=$ac_cv_search_nanosleep | ||
13591 | if test "$ac_res" != no; then | ||
13592 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13593 | |||
13594 | cat >>confdefs.h <<\_ACEOF | ||
13595 | #define HAVE_NANOSLEEP 1 | ||
13596 | _ACEOF | ||
13597 | |||
13598 | fi | ||
13599 | |||
13600 | |||
13601 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
13602 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
13603 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
13604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13605 | else | ||
13606 | cat >conftest.$ac_ext <<_ACEOF | ||
13607 | /* confdefs.h. */ | ||
13608 | _ACEOF | ||
13609 | cat confdefs.h >>conftest.$ac_ext | ||
13610 | cat >>conftest.$ac_ext <<_ACEOF | ||
13611 | /* end confdefs.h. */ | ||
13612 | $ac_includes_default | ||
13613 | int | ||
13614 | main () | ||
13615 | { | ||
13616 | #ifndef getrusage | ||
13617 | (void) getrusage; | ||
13618 | #endif | ||
13619 | |||
13620 | ; | ||
13621 | return 0; | ||
13622 | } | ||
13623 | _ACEOF | ||
13624 | rm -f conftest.$ac_objext | ||
13625 | if { (ac_try="$ac_compile" | ||
13626 | case "(($ac_try" in | ||
13627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13628 | *) ac_try_echo=$ac_try;; | ||
13629 | esac | ||
13630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13631 | (eval "$ac_compile") 2>conftest.er1 | ||
13632 | ac_status=$? | ||
13633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13634 | rm -f conftest.er1 | ||
13635 | cat conftest.err >&5 | ||
13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13637 | (exit $ac_status); } && { | ||
13638 | test -z "$ac_c_werror_flag" || | ||
13639 | test ! -s conftest.err | ||
13640 | } && test -s conftest.$ac_objext; then | ||
13641 | ac_cv_have_decl_getrusage=yes | ||
13642 | else | ||
13643 | echo "$as_me: failed program was:" >&5 | ||
13644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13645 | |||
13646 | ac_cv_have_decl_getrusage=no | ||
13647 | fi | ||
13648 | |||
13649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13650 | fi | ||
13651 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
13652 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
13653 | if test $ac_cv_have_decl_getrusage = yes; then | ||
13654 | |||
13655 | for ac_func in getrusage | ||
13656 | do | ||
13657 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13658 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13659 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13660 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13662 | else | ||
13663 | cat >conftest.$ac_ext <<_ACEOF | ||
13664 | /* confdefs.h. */ | ||
13665 | _ACEOF | ||
13666 | cat confdefs.h >>conftest.$ac_ext | ||
13667 | cat >>conftest.$ac_ext <<_ACEOF | ||
13668 | /* end confdefs.h. */ | ||
13669 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13670 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13671 | #define $ac_func innocuous_$ac_func | ||
13672 | |||
13673 | /* System header to define __stub macros and hopefully few prototypes, | ||
13674 | which can conflict with char $ac_func (); below. | ||
13675 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13676 | <limits.h> exists even on freestanding compilers. */ | ||
13677 | |||
13678 | #ifdef __STDC__ | ||
13679 | # include <limits.h> | ||
13680 | #else | ||
13681 | # include <assert.h> | ||
13682 | #endif | ||
13683 | |||
13684 | #undef $ac_func | ||
13685 | |||
13686 | /* Override any GCC internal prototype to avoid an error. | ||
13687 | Use char because int might match the return type of a GCC | ||
13688 | builtin and then its argument prototype would still apply. */ | ||
13689 | #ifdef __cplusplus | ||
13690 | extern "C" | ||
13691 | #endif | ||
13692 | char $ac_func (); | ||
13693 | /* The GNU C library defines this for functions which it implements | ||
13694 | to always fail with ENOSYS. Some functions are actually named | ||
13695 | something starting with __ and the normal name is an alias. */ | ||
13696 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13697 | choke me | ||
13698 | #endif | ||
13699 | |||
13700 | int | ||
13701 | main () | ||
13702 | { | ||
13703 | return $ac_func (); | ||
13704 | ; | ||
13705 | return 0; | ||
13706 | } | ||
13707 | _ACEOF | ||
13708 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13709 | if { (ac_try="$ac_link" | ||
13710 | case "(($ac_try" in | ||
13711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13712 | *) ac_try_echo=$ac_try;; | ||
13713 | esac | ||
13714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13715 | (eval "$ac_link") 2>conftest.er1 | ||
13716 | ac_status=$? | ||
13717 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13718 | rm -f conftest.er1 | ||
13719 | cat conftest.err >&5 | ||
13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13721 | (exit $ac_status); } && { | ||
13722 | test -z "$ac_c_werror_flag" || | ||
13723 | test ! -s conftest.err | ||
13724 | } && test -s conftest$ac_exeext && | ||
13725 | $as_test_x conftest$ac_exeext; then | ||
13726 | eval "$as_ac_var=yes" | ||
13727 | else | ||
13728 | echo "$as_me: failed program was:" >&5 | ||
13729 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13730 | |||
13731 | eval "$as_ac_var=no" | ||
13732 | fi | ||
13733 | |||
13734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13735 | conftest$ac_exeext conftest.$ac_ext | ||
13736 | fi | ||
13737 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13738 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13739 | echo "${ECHO_T}$ac_res" >&6; } | ||
13740 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13741 | cat >>confdefs.h <<_ACEOF | ||
13742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13743 | _ACEOF | ||
13744 | |||
13745 | fi | ||
13746 | done | ||
13747 | |||
13748 | fi | ||
13749 | |||
13750 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
13751 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
13752 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
13753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13754 | else | ||
13755 | cat >conftest.$ac_ext <<_ACEOF | ||
13756 | /* confdefs.h. */ | ||
13757 | _ACEOF | ||
13758 | cat confdefs.h >>conftest.$ac_ext | ||
13759 | cat >>conftest.$ac_ext <<_ACEOF | ||
13760 | /* end confdefs.h. */ | ||
13761 | |||
13762 | #ifdef HAVE_STRING_H | ||
13763 | # include <string.h> | ||
13764 | #endif | ||
13765 | |||
13766 | |||
13767 | int | ||
13768 | main () | ||
13769 | { | ||
13770 | #ifndef strsep | ||
13771 | (void) strsep; | ||
13772 | #endif | ||
13773 | |||
13774 | ; | ||
13775 | return 0; | ||
13776 | } | ||
13777 | _ACEOF | ||
13778 | rm -f conftest.$ac_objext | ||
13779 | if { (ac_try="$ac_compile" | ||
13780 | case "(($ac_try" in | ||
13781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13782 | *) ac_try_echo=$ac_try;; | ||
13783 | esac | ||
13784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13785 | (eval "$ac_compile") 2>conftest.er1 | ||
13786 | ac_status=$? | ||
13787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13788 | rm -f conftest.er1 | ||
13789 | cat conftest.err >&5 | ||
13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13791 | (exit $ac_status); } && { | ||
13792 | test -z "$ac_c_werror_flag" || | ||
13793 | test ! -s conftest.err | ||
13794 | } && test -s conftest.$ac_objext; then | ||
13795 | ac_cv_have_decl_strsep=yes | ||
13796 | else | ||
13797 | echo "$as_me: failed program was:" >&5 | ||
13798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13799 | |||
13800 | ac_cv_have_decl_strsep=no | ||
13801 | fi | ||
13802 | |||
13803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13804 | fi | ||
13805 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
13806 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
13807 | if test $ac_cv_have_decl_strsep = yes; then | ||
13808 | |||
13809 | for ac_func in strsep | ||
13810 | do | ||
13811 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13812 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13813 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13814 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13816 | else | ||
13817 | cat >conftest.$ac_ext <<_ACEOF | ||
13818 | /* confdefs.h. */ | ||
13819 | _ACEOF | ||
13820 | cat confdefs.h >>conftest.$ac_ext | ||
13821 | cat >>conftest.$ac_ext <<_ACEOF | ||
13822 | /* end confdefs.h. */ | ||
13823 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13825 | #define $ac_func innocuous_$ac_func | ||
13826 | |||
13827 | /* System header to define __stub macros and hopefully few prototypes, | ||
13828 | which can conflict with char $ac_func (); below. | ||
13829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13830 | <limits.h> exists even on freestanding compilers. */ | ||
13831 | |||
13832 | #ifdef __STDC__ | ||
13833 | # include <limits.h> | ||
13834 | #else | ||
13835 | # include <assert.h> | ||
13836 | #endif | ||
13837 | |||
13838 | #undef $ac_func | ||
13839 | |||
13840 | /* Override any GCC internal prototype to avoid an error. | ||
13841 | Use char because int might match the return type of a GCC | ||
13842 | builtin and then its argument prototype would still apply. */ | ||
13843 | #ifdef __cplusplus | ||
13844 | extern "C" | ||
13845 | #endif | ||
13846 | char $ac_func (); | ||
13847 | /* The GNU C library defines this for functions which it implements | ||
13848 | to always fail with ENOSYS. Some functions are actually named | ||
13849 | something starting with __ and the normal name is an alias. */ | ||
13850 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13851 | choke me | ||
13852 | #endif | ||
13853 | |||
13854 | int | ||
13855 | main () | ||
13856 | { | ||
13857 | return $ac_func (); | ||
13858 | ; | ||
13859 | return 0; | ||
13860 | } | ||
13861 | _ACEOF | ||
13862 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13863 | if { (ac_try="$ac_link" | ||
13864 | case "(($ac_try" in | ||
13865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13866 | *) ac_try_echo=$ac_try;; | ||
13867 | esac | ||
13868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13869 | (eval "$ac_link") 2>conftest.er1 | ||
13870 | ac_status=$? | ||
13871 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13872 | rm -f conftest.er1 | ||
13873 | cat conftest.err >&5 | ||
13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13875 | (exit $ac_status); } && { | ||
13876 | test -z "$ac_c_werror_flag" || | ||
13877 | test ! -s conftest.err | ||
13878 | } && test -s conftest$ac_exeext && | ||
13879 | $as_test_x conftest$ac_exeext; then | ||
13880 | eval "$as_ac_var=yes" | ||
13881 | else | ||
13882 | echo "$as_me: failed program was:" >&5 | ||
13883 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13884 | |||
13885 | eval "$as_ac_var=no" | ||
13886 | fi | ||
13887 | |||
13888 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13889 | conftest$ac_exeext conftest.$ac_ext | ||
13890 | fi | ||
13891 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13893 | echo "${ECHO_T}$ac_res" >&6; } | ||
13894 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13895 | cat >>confdefs.h <<_ACEOF | ||
13896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13897 | _ACEOF | ||
13898 | |||
13899 | fi | ||
13900 | done | ||
13901 | |||
13902 | fi | ||
13903 | |||
13904 | |||
13905 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
13906 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
13907 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
13908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13909 | else | ||
13910 | cat >conftest.$ac_ext <<_ACEOF | ||
13911 | /* confdefs.h. */ | ||
13912 | _ACEOF | ||
13913 | cat confdefs.h >>conftest.$ac_ext | ||
13914 | cat >>conftest.$ac_ext <<_ACEOF | ||
13915 | /* end confdefs.h. */ | ||
13916 | #include <termios.h> | ||
13917 | |||
13918 | |||
13919 | int | ||
13920 | main () | ||
13921 | { | ||
13922 | #ifndef tcsendbreak | ||
13923 | (void) tcsendbreak; | ||
13924 | #endif | ||
13925 | |||
13926 | ; | ||
13927 | return 0; | ||
13928 | } | ||
13929 | _ACEOF | ||
13930 | rm -f conftest.$ac_objext | ||
13931 | if { (ac_try="$ac_compile" | ||
13932 | case "(($ac_try" in | ||
13933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13934 | *) ac_try_echo=$ac_try;; | ||
13935 | esac | ||
13936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13937 | (eval "$ac_compile") 2>conftest.er1 | ||
13938 | ac_status=$? | ||
13939 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13940 | rm -f conftest.er1 | ||
13941 | cat conftest.err >&5 | ||
13942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13943 | (exit $ac_status); } && { | ||
13944 | test -z "$ac_c_werror_flag" || | ||
13945 | test ! -s conftest.err | ||
13946 | } && test -s conftest.$ac_objext; then | ||
13947 | ac_cv_have_decl_tcsendbreak=yes | ||
13948 | else | ||
13949 | echo "$as_me: failed program was:" >&5 | ||
13950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13951 | |||
13952 | ac_cv_have_decl_tcsendbreak=no | ||
13953 | fi | ||
13954 | |||
13955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13956 | fi | ||
13957 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
13958 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
13959 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
13960 | cat >>confdefs.h <<\_ACEOF | ||
13961 | #define HAVE_TCSENDBREAK 1 | ||
13962 | _ACEOF | ||
13963 | |||
13964 | else | ||
13965 | |||
13966 | for ac_func in tcsendbreak | ||
13967 | do | ||
13968 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13969 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13971 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13973 | else | ||
13974 | cat >conftest.$ac_ext <<_ACEOF | ||
13975 | /* confdefs.h. */ | ||
13976 | _ACEOF | ||
13977 | cat confdefs.h >>conftest.$ac_ext | ||
13978 | cat >>conftest.$ac_ext <<_ACEOF | ||
13979 | /* end confdefs.h. */ | ||
13980 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13981 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13982 | #define $ac_func innocuous_$ac_func | ||
13983 | |||
13984 | /* System header to define __stub macros and hopefully few prototypes, | ||
13985 | which can conflict with char $ac_func (); below. | ||
13986 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13987 | <limits.h> exists even on freestanding compilers. */ | ||
13988 | |||
13989 | #ifdef __STDC__ | ||
13990 | # include <limits.h> | ||
13991 | #else | ||
13992 | # include <assert.h> | ||
13993 | #endif | ||
13994 | |||
13995 | #undef $ac_func | ||
13996 | |||
13997 | /* Override any GCC internal prototype to avoid an error. | ||
13998 | Use char because int might match the return type of a GCC | ||
13999 | builtin and then its argument prototype would still apply. */ | ||
14000 | #ifdef __cplusplus | ||
14001 | extern "C" | ||
14002 | #endif | ||
14003 | char $ac_func (); | ||
14004 | /* The GNU C library defines this for functions which it implements | ||
14005 | to always fail with ENOSYS. Some functions are actually named | ||
14006 | something starting with __ and the normal name is an alias. */ | ||
14007 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14008 | choke me | ||
14009 | #endif | ||
14010 | |||
14011 | int | ||
14012 | main () | ||
14013 | { | ||
14014 | return $ac_func (); | ||
14015 | ; | ||
14016 | return 0; | ||
14017 | } | ||
14018 | _ACEOF | ||
14019 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14020 | if { (ac_try="$ac_link" | ||
14021 | case "(($ac_try" in | ||
14022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14023 | *) ac_try_echo=$ac_try;; | ||
14024 | esac | ||
14025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14026 | (eval "$ac_link") 2>conftest.er1 | ||
14027 | ac_status=$? | ||
14028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14029 | rm -f conftest.er1 | ||
14030 | cat conftest.err >&5 | ||
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14032 | (exit $ac_status); } && { | ||
14033 | test -z "$ac_c_werror_flag" || | ||
14034 | test ! -s conftest.err | ||
14035 | } && test -s conftest$ac_exeext && | ||
14036 | $as_test_x conftest$ac_exeext; then | ||
14037 | eval "$as_ac_var=yes" | ||
14038 | else | ||
14039 | echo "$as_me: failed program was:" >&5 | ||
14040 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14041 | |||
14042 | eval "$as_ac_var=no" | ||
14043 | fi | ||
14044 | |||
14045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14046 | conftest$ac_exeext conftest.$ac_ext | ||
14047 | fi | ||
14048 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14050 | echo "${ECHO_T}$ac_res" >&6; } | ||
14051 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14052 | cat >>confdefs.h <<_ACEOF | ||
14053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14054 | _ACEOF | ||
14055 | |||
14056 | fi | ||
14057 | done | ||
14058 | |||
14059 | fi | ||
14060 | |||
14061 | |||
14062 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
14063 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
14064 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
14065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14066 | else | ||
14067 | cat >conftest.$ac_ext <<_ACEOF | ||
14068 | /* confdefs.h. */ | ||
14069 | _ACEOF | ||
14070 | cat confdefs.h >>conftest.$ac_ext | ||
14071 | cat >>conftest.$ac_ext <<_ACEOF | ||
14072 | /* end confdefs.h. */ | ||
14073 | #include <netdb.h> | ||
14074 | |||
14075 | int | ||
14076 | main () | ||
14077 | { | ||
14078 | #ifndef h_errno | ||
14079 | (void) h_errno; | ||
14080 | #endif | ||
14081 | |||
14082 | ; | ||
14083 | return 0; | ||
14084 | } | ||
14085 | _ACEOF | ||
14086 | rm -f conftest.$ac_objext | ||
14087 | if { (ac_try="$ac_compile" | ||
14088 | case "(($ac_try" in | ||
14089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14090 | *) ac_try_echo=$ac_try;; | ||
14091 | esac | ||
14092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14093 | (eval "$ac_compile") 2>conftest.er1 | ||
14094 | ac_status=$? | ||
14095 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14096 | rm -f conftest.er1 | ||
14097 | cat conftest.err >&5 | ||
14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14099 | (exit $ac_status); } && { | ||
14100 | test -z "$ac_c_werror_flag" || | ||
14101 | test ! -s conftest.err | ||
14102 | } && test -s conftest.$ac_objext; then | ||
14103 | ac_cv_have_decl_h_errno=yes | ||
14104 | else | ||
14105 | echo "$as_me: failed program was:" >&5 | ||
14106 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14107 | |||
14108 | ac_cv_have_decl_h_errno=no | ||
14109 | fi | ||
14110 | |||
14111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14112 | fi | ||
14113 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
14114 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
14115 | if test $ac_cv_have_decl_h_errno = yes; then | ||
14116 | |||
14117 | cat >>confdefs.h <<_ACEOF | ||
14118 | #define HAVE_DECL_H_ERRNO 1 | ||
14119 | _ACEOF | ||
14120 | |||
14121 | |||
14122 | else | ||
14123 | cat >>confdefs.h <<_ACEOF | ||
14124 | #define HAVE_DECL_H_ERRNO 0 | ||
14125 | _ACEOF | ||
14126 | |||
14127 | |||
14128 | fi | ||
14129 | |||
14130 | |||
14131 | |||
14132 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
14133 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
14134 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
14135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14136 | else | ||
14137 | cat >conftest.$ac_ext <<_ACEOF | ||
14138 | /* confdefs.h. */ | ||
14139 | _ACEOF | ||
14140 | cat confdefs.h >>conftest.$ac_ext | ||
14141 | cat >>conftest.$ac_ext <<_ACEOF | ||
14142 | /* end confdefs.h. */ | ||
14143 | |||
14144 | #include <sys/types.h> | ||
14145 | #include <sys/socket.h> | ||
14146 | |||
14147 | |||
14148 | int | ||
14149 | main () | ||
14150 | { | ||
14151 | #ifndef SHUT_RD | ||
14152 | (void) SHUT_RD; | ||
14153 | #endif | ||
14154 | |||
14155 | ; | ||
14156 | return 0; | ||
14157 | } | ||
14158 | _ACEOF | ||
14159 | rm -f conftest.$ac_objext | ||
14160 | if { (ac_try="$ac_compile" | ||
14161 | case "(($ac_try" in | ||
14162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14163 | *) ac_try_echo=$ac_try;; | ||
14164 | esac | ||
14165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14166 | (eval "$ac_compile") 2>conftest.er1 | ||
14167 | ac_status=$? | ||
14168 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14169 | rm -f conftest.er1 | ||
14170 | cat conftest.err >&5 | ||
14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14172 | (exit $ac_status); } && { | ||
14173 | test -z "$ac_c_werror_flag" || | ||
14174 | test ! -s conftest.err | ||
14175 | } && test -s conftest.$ac_objext; then | ||
14176 | ac_cv_have_decl_SHUT_RD=yes | ||
14177 | else | ||
14178 | echo "$as_me: failed program was:" >&5 | ||
14179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14180 | |||
14181 | ac_cv_have_decl_SHUT_RD=no | ||
14182 | fi | ||
14183 | |||
14184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14185 | fi | ||
14186 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
14187 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
14188 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
14189 | |||
14190 | cat >>confdefs.h <<_ACEOF | ||
14191 | #define HAVE_DECL_SHUT_RD 1 | ||
14192 | _ACEOF | ||
14193 | |||
14194 | |||
14195 | else | ||
14196 | cat >>confdefs.h <<_ACEOF | ||
14197 | #define HAVE_DECL_SHUT_RD 0 | ||
14198 | _ACEOF | ||
14199 | |||
14200 | |||
14201 | fi | ||
14202 | |||
14203 | |||
14204 | |||
14205 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
14206 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
14207 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
14208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14209 | else | ||
14210 | cat >conftest.$ac_ext <<_ACEOF | ||
14211 | /* confdefs.h. */ | ||
14212 | _ACEOF | ||
14213 | cat confdefs.h >>conftest.$ac_ext | ||
14214 | cat >>conftest.$ac_ext <<_ACEOF | ||
14215 | /* end confdefs.h. */ | ||
14216 | |||
14217 | #include <sys/types.h> | ||
14218 | #ifdef HAVE_SYS_STAT_H | ||
14219 | # include <sys/stat.h> | ||
14220 | #endif | ||
14221 | #ifdef HAVE_FCNTL_H | ||
14222 | # include <fcntl.h> | ||
14223 | #endif | ||
14224 | |||
14225 | |||
14226 | int | ||
14227 | main () | ||
14228 | { | ||
14229 | #ifndef O_NONBLOCK | ||
14230 | (void) O_NONBLOCK; | ||
14231 | #endif | ||
14232 | |||
14233 | ; | ||
14234 | return 0; | ||
14235 | } | ||
14236 | _ACEOF | ||
14237 | rm -f conftest.$ac_objext | ||
14238 | if { (ac_try="$ac_compile" | ||
14239 | case "(($ac_try" in | ||
14240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14241 | *) ac_try_echo=$ac_try;; | ||
14242 | esac | ||
14243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14244 | (eval "$ac_compile") 2>conftest.er1 | ||
14245 | ac_status=$? | ||
14246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14247 | rm -f conftest.er1 | ||
14248 | cat conftest.err >&5 | ||
14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14250 | (exit $ac_status); } && { | ||
14251 | test -z "$ac_c_werror_flag" || | ||
14252 | test ! -s conftest.err | ||
14253 | } && test -s conftest.$ac_objext; then | ||
14254 | ac_cv_have_decl_O_NONBLOCK=yes | ||
14255 | else | ||
14256 | echo "$as_me: failed program was:" >&5 | ||
14257 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14258 | |||
14259 | ac_cv_have_decl_O_NONBLOCK=no | ||
14260 | fi | ||
14261 | |||
14262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14263 | fi | ||
14264 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
14265 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
14266 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
14267 | |||
14268 | cat >>confdefs.h <<_ACEOF | ||
14269 | #define HAVE_DECL_O_NONBLOCK 1 | ||
14270 | _ACEOF | ||
14271 | |||
14272 | |||
14273 | else | ||
14274 | cat >>confdefs.h <<_ACEOF | ||
14275 | #define HAVE_DECL_O_NONBLOCK 0 | ||
14276 | _ACEOF | ||
14277 | |||
14278 | |||
14279 | fi | ||
14280 | |||
14281 | |||
14282 | |||
14283 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
14284 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
14285 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
14286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14287 | else | ||
14288 | cat >conftest.$ac_ext <<_ACEOF | ||
14289 | /* confdefs.h. */ | ||
14290 | _ACEOF | ||
14291 | cat confdefs.h >>conftest.$ac_ext | ||
14292 | cat >>conftest.$ac_ext <<_ACEOF | ||
14293 | /* end confdefs.h. */ | ||
14294 | |||
14295 | #include <sys/types.h> | ||
14296 | #include <sys/uio.h> | ||
14297 | #include <unistd.h> | ||
14298 | |||
14299 | |||
14300 | int | ||
14301 | main () | ||
14302 | { | ||
14303 | #ifndef writev | ||
14304 | (void) writev; | ||
14305 | #endif | ||
14306 | |||
14307 | ; | ||
14308 | return 0; | ||
14309 | } | ||
14310 | _ACEOF | ||
14311 | rm -f conftest.$ac_objext | ||
14312 | if { (ac_try="$ac_compile" | ||
14313 | case "(($ac_try" in | ||
14314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14315 | *) ac_try_echo=$ac_try;; | ||
14316 | esac | ||
14317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14318 | (eval "$ac_compile") 2>conftest.er1 | ||
14319 | ac_status=$? | ||
14320 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14321 | rm -f conftest.er1 | ||
14322 | cat conftest.err >&5 | ||
14323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14324 | (exit $ac_status); } && { | ||
14325 | test -z "$ac_c_werror_flag" || | ||
14326 | test ! -s conftest.err | ||
14327 | } && test -s conftest.$ac_objext; then | ||
14328 | ac_cv_have_decl_writev=yes | ||
14329 | else | ||
14330 | echo "$as_me: failed program was:" >&5 | ||
14331 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14332 | |||
14333 | ac_cv_have_decl_writev=no | ||
14334 | fi | ||
14335 | |||
14336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14337 | fi | ||
14338 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
14339 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
14340 | if test $ac_cv_have_decl_writev = yes; then | ||
14341 | |||
14342 | cat >>confdefs.h <<_ACEOF | ||
14343 | #define HAVE_DECL_WRITEV 1 | ||
14344 | _ACEOF | ||
14345 | |||
14346 | |||
14347 | else | ||
14348 | cat >>confdefs.h <<_ACEOF | ||
14349 | #define HAVE_DECL_WRITEV 0 | ||
14350 | _ACEOF | ||
14351 | |||
14352 | |||
14353 | fi | ||
14354 | |||
14355 | |||
14356 | |||
14357 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
14358 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
14359 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
14360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14361 | else | ||
14362 | cat >conftest.$ac_ext <<_ACEOF | ||
14363 | /* confdefs.h. */ | ||
14364 | _ACEOF | ||
14365 | cat confdefs.h >>conftest.$ac_ext | ||
14366 | cat >>conftest.$ac_ext <<_ACEOF | ||
14367 | /* end confdefs.h. */ | ||
14368 | |||
14369 | #include <sys/param.h> | ||
14370 | |||
14371 | |||
14372 | int | ||
14373 | main () | ||
14374 | { | ||
14375 | #ifndef MAXSYMLINKS | ||
14376 | (void) MAXSYMLINKS; | ||
14377 | #endif | ||
14378 | |||
14379 | ; | ||
14380 | return 0; | ||
14381 | } | ||
14382 | _ACEOF | ||
14383 | rm -f conftest.$ac_objext | ||
14384 | if { (ac_try="$ac_compile" | ||
14385 | case "(($ac_try" in | ||
14386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14387 | *) ac_try_echo=$ac_try;; | ||
14388 | esac | ||
14389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14390 | (eval "$ac_compile") 2>conftest.er1 | ||
14391 | ac_status=$? | ||
14392 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14393 | rm -f conftest.er1 | ||
14394 | cat conftest.err >&5 | ||
14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14396 | (exit $ac_status); } && { | ||
14397 | test -z "$ac_c_werror_flag" || | ||
14398 | test ! -s conftest.err | ||
14399 | } && test -s conftest.$ac_objext; then | ||
14400 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
14401 | else | ||
14402 | echo "$as_me: failed program was:" >&5 | ||
14403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14404 | |||
14405 | ac_cv_have_decl_MAXSYMLINKS=no | ||
14406 | fi | ||
14407 | |||
14408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14409 | fi | ||
14410 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
14411 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
14412 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
14413 | |||
14414 | cat >>confdefs.h <<_ACEOF | ||
14415 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
14416 | _ACEOF | ||
14417 | |||
14418 | |||
14419 | else | ||
14420 | cat >>confdefs.h <<_ACEOF | ||
14421 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
14422 | _ACEOF | ||
14423 | |||
14424 | |||
14425 | fi | ||
14426 | |||
14427 | |||
14428 | |||
14429 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
14430 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
14431 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
14432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14433 | else | ||
14434 | cat >conftest.$ac_ext <<_ACEOF | ||
14435 | /* confdefs.h. */ | ||
14436 | _ACEOF | ||
14437 | cat confdefs.h >>conftest.$ac_ext | ||
14438 | cat >>conftest.$ac_ext <<_ACEOF | ||
14439 | /* end confdefs.h. */ | ||
14440 | |||
14441 | #include <stddef.h> | ||
14442 | |||
14443 | |||
14444 | int | ||
14445 | main () | ||
14446 | { | ||
14447 | #ifndef offsetof | ||
14448 | (void) offsetof; | ||
14449 | #endif | ||
14450 | |||
14451 | ; | ||
14452 | return 0; | ||
14453 | } | ||
14454 | _ACEOF | ||
14455 | rm -f conftest.$ac_objext | ||
14456 | if { (ac_try="$ac_compile" | ||
14457 | case "(($ac_try" in | ||
14458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14459 | *) ac_try_echo=$ac_try;; | ||
14460 | esac | ||
14461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14462 | (eval "$ac_compile") 2>conftest.er1 | ||
14463 | ac_status=$? | ||
14464 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14465 | rm -f conftest.er1 | ||
14466 | cat conftest.err >&5 | ||
14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14468 | (exit $ac_status); } && { | ||
14469 | test -z "$ac_c_werror_flag" || | ||
14470 | test ! -s conftest.err | ||
14471 | } && test -s conftest.$ac_objext; then | ||
14472 | ac_cv_have_decl_offsetof=yes | ||
14473 | else | ||
14474 | echo "$as_me: failed program was:" >&5 | ||
14475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14476 | |||
14477 | ac_cv_have_decl_offsetof=no | ||
14478 | fi | ||
14479 | |||
14480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14481 | fi | ||
14482 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
14483 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
14484 | if test $ac_cv_have_decl_offsetof = yes; then | ||
14485 | |||
14486 | cat >>confdefs.h <<_ACEOF | ||
14487 | #define HAVE_DECL_OFFSETOF 1 | ||
14488 | _ACEOF | ||
14489 | |||
14490 | |||
14491 | else | ||
14492 | cat >>confdefs.h <<_ACEOF | ||
14493 | #define HAVE_DECL_OFFSETOF 0 | ||
14494 | _ACEOF | ||
14495 | |||
14496 | |||
14497 | fi | ||
14498 | |||
14499 | |||
14500 | |||
14501 | |||
14502 | for ac_func in setresuid | ||
14503 | do | ||
14504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14505 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14507 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14509 | else | ||
14510 | cat >conftest.$ac_ext <<_ACEOF | ||
14511 | /* confdefs.h. */ | ||
14512 | _ACEOF | ||
14513 | cat confdefs.h >>conftest.$ac_ext | ||
14514 | cat >>conftest.$ac_ext <<_ACEOF | ||
14515 | /* end confdefs.h. */ | ||
14516 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14517 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14518 | #define $ac_func innocuous_$ac_func | ||
14519 | |||
14520 | /* System header to define __stub macros and hopefully few prototypes, | ||
14521 | which can conflict with char $ac_func (); below. | ||
14522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14523 | <limits.h> exists even on freestanding compilers. */ | ||
14524 | |||
14525 | #ifdef __STDC__ | ||
14526 | # include <limits.h> | ||
14527 | #else | ||
14528 | # include <assert.h> | ||
14529 | #endif | ||
14530 | |||
14531 | #undef $ac_func | ||
14532 | |||
14533 | /* Override any GCC internal prototype to avoid an error. | ||
14534 | Use char because int might match the return type of a GCC | ||
14535 | builtin and then its argument prototype would still apply. */ | ||
14536 | #ifdef __cplusplus | ||
14537 | extern "C" | ||
14538 | #endif | ||
14539 | char $ac_func (); | ||
14540 | /* The GNU C library defines this for functions which it implements | ||
14541 | to always fail with ENOSYS. Some functions are actually named | ||
14542 | something starting with __ and the normal name is an alias. */ | ||
14543 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14544 | choke me | ||
14545 | #endif | ||
14546 | |||
14547 | int | ||
14548 | main () | ||
14549 | { | ||
14550 | return $ac_func (); | ||
14551 | ; | ||
14552 | return 0; | ||
14553 | } | ||
14554 | _ACEOF | ||
14555 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14556 | if { (ac_try="$ac_link" | ||
14557 | case "(($ac_try" in | ||
14558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14559 | *) ac_try_echo=$ac_try;; | ||
14560 | esac | ||
14561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14562 | (eval "$ac_link") 2>conftest.er1 | ||
14563 | ac_status=$? | ||
14564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14565 | rm -f conftest.er1 | ||
14566 | cat conftest.err >&5 | ||
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14568 | (exit $ac_status); } && { | ||
14569 | test -z "$ac_c_werror_flag" || | ||
14570 | test ! -s conftest.err | ||
14571 | } && test -s conftest$ac_exeext && | ||
14572 | $as_test_x conftest$ac_exeext; then | ||
14573 | eval "$as_ac_var=yes" | ||
14574 | else | ||
14575 | echo "$as_me: failed program was:" >&5 | ||
14576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14577 | |||
14578 | eval "$as_ac_var=no" | ||
14579 | fi | ||
14580 | |||
14581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14582 | conftest$ac_exeext conftest.$ac_ext | ||
14583 | fi | ||
14584 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14586 | echo "${ECHO_T}$ac_res" >&6; } | ||
14587 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14588 | cat >>confdefs.h <<_ACEOF | ||
14589 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14590 | _ACEOF | ||
14591 | |||
14592 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
14593 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
14594 | if test "$cross_compiling" = yes; then | ||
14595 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14596 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14597 | |||
14598 | else | ||
14599 | cat >conftest.$ac_ext <<_ACEOF | ||
14600 | /* confdefs.h. */ | ||
14601 | _ACEOF | ||
14602 | cat confdefs.h >>conftest.$ac_ext | ||
14603 | cat >>conftest.$ac_ext <<_ACEOF | ||
14604 | /* end confdefs.h. */ | ||
14605 | |||
14606 | #include <stdlib.h> | ||
14607 | #include <errno.h> | ||
14608 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14609 | |||
14610 | _ACEOF | ||
14611 | rm -f conftest$ac_exeext | ||
14612 | if { (ac_try="$ac_link" | ||
14613 | case "(($ac_try" in | ||
14614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14615 | *) ac_try_echo=$ac_try;; | ||
14616 | esac | ||
14617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14618 | (eval "$ac_link") 2>&5 | ||
14619 | ac_status=$? | ||
14620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14622 | { (case "(($ac_try" in | ||
14623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14624 | *) ac_try_echo=$ac_try;; | ||
14625 | esac | ||
14626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14627 | (eval "$ac_try") 2>&5 | ||
14628 | ac_status=$? | ||
14629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14630 | (exit $ac_status); }; }; then | ||
14631 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14632 | echo "${ECHO_T}yes" >&6; } | ||
14633 | else | ||
14634 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14635 | echo "$as_me: failed program was:" >&5 | ||
14636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14637 | |||
14638 | ( exit $ac_status ) | ||
14639 | |||
14640 | cat >>confdefs.h <<\_ACEOF | ||
14641 | #define BROKEN_SETRESUID 1 | ||
14642 | _ACEOF | ||
14643 | |||
14644 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14645 | echo "${ECHO_T}not implemented" >&6; } | ||
14646 | fi | ||
14647 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14648 | fi | ||
14649 | |||
14650 | |||
14651 | |||
14652 | fi | ||
14653 | done | ||
14654 | |||
14655 | |||
14656 | |||
14657 | for ac_func in setresgid | ||
14658 | do | ||
14659 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14660 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14661 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14662 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14664 | else | ||
14665 | cat >conftest.$ac_ext <<_ACEOF | ||
14666 | /* confdefs.h. */ | ||
14667 | _ACEOF | ||
14668 | cat confdefs.h >>conftest.$ac_ext | ||
14669 | cat >>conftest.$ac_ext <<_ACEOF | ||
14670 | /* end confdefs.h. */ | ||
14671 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14673 | #define $ac_func innocuous_$ac_func | ||
14674 | |||
14675 | /* System header to define __stub macros and hopefully few prototypes, | ||
14676 | which can conflict with char $ac_func (); below. | ||
14677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14678 | <limits.h> exists even on freestanding compilers. */ | ||
14679 | |||
14680 | #ifdef __STDC__ | ||
14681 | # include <limits.h> | ||
14682 | #else | ||
14683 | # include <assert.h> | ||
14684 | #endif | ||
14685 | |||
14686 | #undef $ac_func | ||
14687 | |||
14688 | /* Override any GCC internal prototype to avoid an error. | ||
14689 | Use char because int might match the return type of a GCC | ||
14690 | builtin and then its argument prototype would still apply. */ | ||
14691 | #ifdef __cplusplus | ||
14692 | extern "C" | ||
14693 | #endif | ||
14694 | char $ac_func (); | ||
14695 | /* The GNU C library defines this for functions which it implements | ||
14696 | to always fail with ENOSYS. Some functions are actually named | ||
14697 | something starting with __ and the normal name is an alias. */ | ||
14698 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14699 | choke me | ||
14700 | #endif | ||
14701 | |||
14702 | int | ||
14703 | main () | ||
14704 | { | ||
14705 | return $ac_func (); | ||
14706 | ; | ||
14707 | return 0; | ||
14708 | } | ||
14709 | _ACEOF | ||
14710 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14711 | if { (ac_try="$ac_link" | ||
14712 | case "(($ac_try" in | ||
14713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14714 | *) ac_try_echo=$ac_try;; | ||
14715 | esac | ||
14716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14717 | (eval "$ac_link") 2>conftest.er1 | ||
14718 | ac_status=$? | ||
14719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14720 | rm -f conftest.er1 | ||
14721 | cat conftest.err >&5 | ||
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14723 | (exit $ac_status); } && { | ||
14724 | test -z "$ac_c_werror_flag" || | ||
14725 | test ! -s conftest.err | ||
14726 | } && test -s conftest$ac_exeext && | ||
14727 | $as_test_x conftest$ac_exeext; then | ||
14728 | eval "$as_ac_var=yes" | ||
14729 | else | ||
14730 | echo "$as_me: failed program was:" >&5 | ||
14731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14732 | |||
14733 | eval "$as_ac_var=no" | ||
14734 | fi | ||
14735 | |||
14736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14737 | conftest$ac_exeext conftest.$ac_ext | ||
14738 | fi | ||
14739 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14740 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14741 | echo "${ECHO_T}$ac_res" >&6; } | ||
14742 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14743 | cat >>confdefs.h <<_ACEOF | ||
14744 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14745 | _ACEOF | ||
14746 | |||
14747 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
14748 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
14749 | if test "$cross_compiling" = yes; then | ||
14750 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14751 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14752 | |||
14753 | else | ||
14754 | cat >conftest.$ac_ext <<_ACEOF | ||
14755 | /* confdefs.h. */ | ||
14756 | _ACEOF | ||
14757 | cat confdefs.h >>conftest.$ac_ext | ||
14758 | cat >>conftest.$ac_ext <<_ACEOF | ||
14759 | /* end confdefs.h. */ | ||
14760 | |||
14761 | #include <stdlib.h> | ||
14762 | #include <errno.h> | ||
14763 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14764 | |||
14765 | _ACEOF | ||
14766 | rm -f conftest$ac_exeext | ||
14767 | if { (ac_try="$ac_link" | ||
14768 | case "(($ac_try" in | ||
14769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14770 | *) ac_try_echo=$ac_try;; | ||
14771 | esac | ||
14772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14773 | (eval "$ac_link") 2>&5 | ||
14774 | ac_status=$? | ||
14775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14776 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14777 | { (case "(($ac_try" in | ||
14778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14779 | *) ac_try_echo=$ac_try;; | ||
14780 | esac | ||
14781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14782 | (eval "$ac_try") 2>&5 | ||
14783 | ac_status=$? | ||
14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14785 | (exit $ac_status); }; }; then | ||
14786 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14787 | echo "${ECHO_T}yes" >&6; } | ||
14788 | else | ||
14789 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14790 | echo "$as_me: failed program was:" >&5 | ||
14791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14792 | |||
14793 | ( exit $ac_status ) | ||
14794 | |||
14795 | cat >>confdefs.h <<\_ACEOF | ||
14796 | #define BROKEN_SETRESGID 1 | ||
14797 | _ACEOF | ||
14798 | |||
14799 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14800 | echo "${ECHO_T}not implemented" >&6; } | ||
14801 | fi | ||
14802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14803 | fi | ||
14804 | |||
14805 | |||
14806 | |||
14807 | fi | ||
14808 | done | ||
14809 | |||
14810 | |||
14811 | |||
14812 | |||
14813 | for ac_func in gettimeofday time | ||
14814 | do | ||
14815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14816 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14818 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14820 | else | ||
14821 | cat >conftest.$ac_ext <<_ACEOF | ||
14822 | /* confdefs.h. */ | ||
14823 | _ACEOF | ||
14824 | cat confdefs.h >>conftest.$ac_ext | ||
14825 | cat >>conftest.$ac_ext <<_ACEOF | ||
14826 | /* end confdefs.h. */ | ||
14827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14829 | #define $ac_func innocuous_$ac_func | ||
14830 | |||
14831 | /* System header to define __stub macros and hopefully few prototypes, | ||
14832 | which can conflict with char $ac_func (); below. | ||
14833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14834 | <limits.h> exists even on freestanding compilers. */ | ||
14835 | |||
14836 | #ifdef __STDC__ | ||
14837 | # include <limits.h> | ||
14838 | #else | ||
14839 | # include <assert.h> | ||
14840 | #endif | ||
14841 | |||
14842 | #undef $ac_func | ||
14843 | |||
14844 | /* Override any GCC internal prototype to avoid an error. | ||
14845 | Use char because int might match the return type of a GCC | ||
14846 | builtin and then its argument prototype would still apply. */ | ||
14847 | #ifdef __cplusplus | ||
14848 | extern "C" | ||
14849 | #endif | ||
14850 | char $ac_func (); | ||
14851 | /* The GNU C library defines this for functions which it implements | ||
14852 | to always fail with ENOSYS. Some functions are actually named | ||
14853 | something starting with __ and the normal name is an alias. */ | ||
14854 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14855 | choke me | ||
14856 | #endif | ||
14857 | |||
14858 | int | ||
14859 | main () | ||
14860 | { | ||
14861 | return $ac_func (); | ||
14862 | ; | ||
14863 | return 0; | ||
14864 | } | ||
14865 | _ACEOF | ||
14866 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14867 | if { (ac_try="$ac_link" | ||
14868 | case "(($ac_try" in | ||
14869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14870 | *) ac_try_echo=$ac_try;; | ||
14871 | esac | ||
14872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14873 | (eval "$ac_link") 2>conftest.er1 | ||
14874 | ac_status=$? | ||
14875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14876 | rm -f conftest.er1 | ||
14877 | cat conftest.err >&5 | ||
14878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14879 | (exit $ac_status); } && { | ||
14880 | test -z "$ac_c_werror_flag" || | ||
14881 | test ! -s conftest.err | ||
14882 | } && test -s conftest$ac_exeext && | ||
14883 | $as_test_x conftest$ac_exeext; then | ||
14884 | eval "$as_ac_var=yes" | ||
14885 | else | ||
14886 | echo "$as_me: failed program was:" >&5 | ||
14887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14888 | |||
14889 | eval "$as_ac_var=no" | ||
14890 | fi | ||
14891 | |||
14892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14893 | conftest$ac_exeext conftest.$ac_ext | ||
14894 | fi | ||
14895 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14897 | echo "${ECHO_T}$ac_res" >&6; } | ||
14898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14899 | cat >>confdefs.h <<_ACEOF | ||
14900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14901 | _ACEOF | ||
14902 | |||
14903 | fi | ||
14904 | done | ||
14905 | |||
14906 | |||
14907 | |||
14908 | |||
14909 | |||
14910 | |||
14911 | |||
14912 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
14913 | do | ||
14914 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14915 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14916 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14917 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14919 | else | ||
14920 | cat >conftest.$ac_ext <<_ACEOF | ||
14921 | /* confdefs.h. */ | ||
14922 | _ACEOF | ||
14923 | cat confdefs.h >>conftest.$ac_ext | ||
14924 | cat >>conftest.$ac_ext <<_ACEOF | ||
14925 | /* end confdefs.h. */ | ||
14926 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14928 | #define $ac_func innocuous_$ac_func | ||
14929 | |||
14930 | /* System header to define __stub macros and hopefully few prototypes, | ||
14931 | which can conflict with char $ac_func (); below. | ||
14932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14933 | <limits.h> exists even on freestanding compilers. */ | ||
14934 | |||
14935 | #ifdef __STDC__ | ||
14936 | # include <limits.h> | ||
14937 | #else | ||
14938 | # include <assert.h> | ||
14939 | #endif | ||
14940 | |||
14941 | #undef $ac_func | ||
14942 | |||
14943 | /* Override any GCC internal prototype to avoid an error. | ||
14944 | Use char because int might match the return type of a GCC | ||
14945 | builtin and then its argument prototype would still apply. */ | ||
14946 | #ifdef __cplusplus | ||
14947 | extern "C" | ||
14948 | #endif | ||
14949 | char $ac_func (); | ||
14950 | /* The GNU C library defines this for functions which it implements | ||
14951 | to always fail with ENOSYS. Some functions are actually named | ||
14952 | something starting with __ and the normal name is an alias. */ | ||
14953 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14954 | choke me | ||
14955 | #endif | ||
14956 | |||
14957 | int | ||
14958 | main () | ||
14959 | { | ||
14960 | return $ac_func (); | ||
14961 | ; | ||
14962 | return 0; | ||
14963 | } | ||
14964 | _ACEOF | ||
14965 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14966 | if { (ac_try="$ac_link" | ||
14967 | case "(($ac_try" in | ||
14968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14969 | *) ac_try_echo=$ac_try;; | ||
14970 | esac | ||
14971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14972 | (eval "$ac_link") 2>conftest.er1 | ||
14973 | ac_status=$? | ||
14974 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14975 | rm -f conftest.er1 | ||
14976 | cat conftest.err >&5 | ||
14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14978 | (exit $ac_status); } && { | ||
14979 | test -z "$ac_c_werror_flag" || | ||
14980 | test ! -s conftest.err | ||
14981 | } && test -s conftest$ac_exeext && | ||
14982 | $as_test_x conftest$ac_exeext; then | ||
14983 | eval "$as_ac_var=yes" | ||
14984 | else | ||
14985 | echo "$as_me: failed program was:" >&5 | ||
14986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14987 | |||
14988 | eval "$as_ac_var=no" | ||
14989 | fi | ||
14990 | |||
14991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14992 | conftest$ac_exeext conftest.$ac_ext | ||
14993 | fi | ||
14994 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14996 | echo "${ECHO_T}$ac_res" >&6; } | ||
14997 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14998 | cat >>confdefs.h <<_ACEOF | ||
14999 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15000 | _ACEOF | ||
15001 | |||
15002 | fi | ||
15003 | done | ||
15004 | |||
15005 | |||
15006 | for ac_func in utmpname | ||
15007 | do | ||
15008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15009 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15011 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15013 | else | ||
15014 | cat >conftest.$ac_ext <<_ACEOF | ||
15015 | /* confdefs.h. */ | ||
15016 | _ACEOF | ||
15017 | cat confdefs.h >>conftest.$ac_ext | ||
15018 | cat >>conftest.$ac_ext <<_ACEOF | ||
15019 | /* end confdefs.h. */ | ||
15020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15022 | #define $ac_func innocuous_$ac_func | ||
15023 | |||
15024 | /* System header to define __stub macros and hopefully few prototypes, | ||
15025 | which can conflict with char $ac_func (); below. | ||
15026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15027 | <limits.h> exists even on freestanding compilers. */ | ||
15028 | |||
15029 | #ifdef __STDC__ | ||
15030 | # include <limits.h> | ||
15031 | #else | ||
15032 | # include <assert.h> | ||
15033 | #endif | ||
15034 | |||
15035 | #undef $ac_func | ||
15036 | |||
15037 | /* Override any GCC internal prototype to avoid an error. | ||
15038 | Use char because int might match the return type of a GCC | ||
15039 | builtin and then its argument prototype would still apply. */ | ||
15040 | #ifdef __cplusplus | ||
15041 | extern "C" | ||
15042 | #endif | ||
15043 | char $ac_func (); | ||
15044 | /* The GNU C library defines this for functions which it implements | ||
15045 | to always fail with ENOSYS. Some functions are actually named | ||
15046 | something starting with __ and the normal name is an alias. */ | ||
15047 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15048 | choke me | ||
15049 | #endif | ||
15050 | |||
15051 | int | ||
15052 | main () | ||
15053 | { | ||
15054 | return $ac_func (); | ||
15055 | ; | ||
15056 | return 0; | ||
15057 | } | ||
15058 | _ACEOF | ||
15059 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15060 | if { (ac_try="$ac_link" | ||
15061 | case "(($ac_try" in | ||
15062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15063 | *) ac_try_echo=$ac_try;; | ||
15064 | esac | ||
15065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15066 | (eval "$ac_link") 2>conftest.er1 | ||
15067 | ac_status=$? | ||
15068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15069 | rm -f conftest.er1 | ||
15070 | cat conftest.err >&5 | ||
15071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15072 | (exit $ac_status); } && { | ||
15073 | test -z "$ac_c_werror_flag" || | ||
15074 | test ! -s conftest.err | ||
15075 | } && test -s conftest$ac_exeext && | ||
15076 | $as_test_x conftest$ac_exeext; then | ||
15077 | eval "$as_ac_var=yes" | ||
15078 | else | ||
15079 | echo "$as_me: failed program was:" >&5 | ||
15080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15081 | |||
15082 | eval "$as_ac_var=no" | ||
15083 | fi | ||
15084 | |||
15085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15086 | conftest$ac_exeext conftest.$ac_ext | ||
15087 | fi | ||
15088 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15090 | echo "${ECHO_T}$ac_res" >&6; } | ||
15091 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15092 | cat >>confdefs.h <<_ACEOF | ||
15093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15094 | _ACEOF | ||
15095 | |||
15096 | fi | ||
15097 | done | ||
15098 | |||
15099 | |||
15100 | |||
15101 | |||
15102 | |||
15103 | |||
15104 | |||
15105 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
15106 | do | ||
15107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15108 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15110 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15112 | else | ||
15113 | cat >conftest.$ac_ext <<_ACEOF | ||
15114 | /* confdefs.h. */ | ||
15115 | _ACEOF | ||
15116 | cat confdefs.h >>conftest.$ac_ext | ||
15117 | cat >>conftest.$ac_ext <<_ACEOF | ||
15118 | /* end confdefs.h. */ | ||
15119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15121 | #define $ac_func innocuous_$ac_func | ||
15122 | |||
15123 | /* System header to define __stub macros and hopefully few prototypes, | ||
15124 | which can conflict with char $ac_func (); below. | ||
15125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15126 | <limits.h> exists even on freestanding compilers. */ | ||
15127 | |||
15128 | #ifdef __STDC__ | ||
15129 | # include <limits.h> | ||
15130 | #else | ||
15131 | # include <assert.h> | ||
15132 | #endif | ||
15133 | |||
15134 | #undef $ac_func | ||
15135 | |||
15136 | /* Override any GCC internal prototype to avoid an error. | ||
15137 | Use char because int might match the return type of a GCC | ||
15138 | builtin and then its argument prototype would still apply. */ | ||
15139 | #ifdef __cplusplus | ||
15140 | extern "C" | ||
15141 | #endif | ||
15142 | char $ac_func (); | ||
15143 | /* The GNU C library defines this for functions which it implements | ||
15144 | to always fail with ENOSYS. Some functions are actually named | ||
15145 | something starting with __ and the normal name is an alias. */ | ||
15146 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15147 | choke me | ||
15148 | #endif | ||
15149 | |||
15150 | int | ||
15151 | main () | ||
15152 | { | ||
15153 | return $ac_func (); | ||
15154 | ; | ||
15155 | return 0; | ||
15156 | } | ||
15157 | _ACEOF | ||
15158 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15159 | if { (ac_try="$ac_link" | ||
15160 | case "(($ac_try" in | ||
15161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15162 | *) ac_try_echo=$ac_try;; | ||
15163 | esac | ||
15164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15165 | (eval "$ac_link") 2>conftest.er1 | ||
15166 | ac_status=$? | ||
15167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15168 | rm -f conftest.er1 | ||
15169 | cat conftest.err >&5 | ||
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15171 | (exit $ac_status); } && { | ||
15172 | test -z "$ac_c_werror_flag" || | ||
15173 | test ! -s conftest.err | ||
15174 | } && test -s conftest$ac_exeext && | ||
15175 | $as_test_x conftest$ac_exeext; then | ||
15176 | eval "$as_ac_var=yes" | ||
15177 | else | ||
15178 | echo "$as_me: failed program was:" >&5 | ||
15179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15180 | |||
15181 | eval "$as_ac_var=no" | ||
15182 | fi | ||
15183 | |||
15184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15185 | conftest$ac_exeext conftest.$ac_ext | ||
15186 | fi | ||
15187 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15189 | echo "${ECHO_T}$ac_res" >&6; } | ||
15190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15191 | cat >>confdefs.h <<_ACEOF | ||
15192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15193 | _ACEOF | ||
15194 | |||
15195 | fi | ||
15196 | done | ||
15197 | |||
15198 | |||
15199 | |||
15200 | |||
15201 | for ac_func in setutxdb setutxent utmpxname | ||
15202 | do | ||
15203 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15204 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15205 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15206 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15208 | else | ||
15209 | cat >conftest.$ac_ext <<_ACEOF | ||
15210 | /* confdefs.h. */ | ||
15211 | _ACEOF | ||
15212 | cat confdefs.h >>conftest.$ac_ext | ||
15213 | cat >>conftest.$ac_ext <<_ACEOF | ||
15214 | /* end confdefs.h. */ | ||
15215 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15217 | #define $ac_func innocuous_$ac_func | ||
15218 | |||
15219 | /* System header to define __stub macros and hopefully few prototypes, | ||
15220 | which can conflict with char $ac_func (); below. | ||
15221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15222 | <limits.h> exists even on freestanding compilers. */ | ||
15223 | |||
15224 | #ifdef __STDC__ | ||
15225 | # include <limits.h> | ||
15226 | #else | ||
15227 | # include <assert.h> | ||
15228 | #endif | ||
15229 | |||
15230 | #undef $ac_func | ||
15231 | |||
15232 | /* Override any GCC internal prototype to avoid an error. | ||
15233 | Use char because int might match the return type of a GCC | ||
15234 | builtin and then its argument prototype would still apply. */ | ||
15235 | #ifdef __cplusplus | ||
15236 | extern "C" | ||
15237 | #endif | ||
15238 | char $ac_func (); | ||
15239 | /* The GNU C library defines this for functions which it implements | ||
15240 | to always fail with ENOSYS. Some functions are actually named | ||
15241 | something starting with __ and the normal name is an alias. */ | ||
15242 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15243 | choke me | ||
15244 | #endif | ||
15245 | |||
15246 | int | ||
15247 | main () | ||
15248 | { | ||
15249 | return $ac_func (); | ||
15250 | ; | ||
15251 | return 0; | ||
15252 | } | ||
15253 | _ACEOF | ||
15254 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15255 | if { (ac_try="$ac_link" | ||
15256 | case "(($ac_try" in | ||
15257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15258 | *) ac_try_echo=$ac_try;; | ||
15259 | esac | ||
15260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15261 | (eval "$ac_link") 2>conftest.er1 | ||
15262 | ac_status=$? | ||
15263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15264 | rm -f conftest.er1 | ||
15265 | cat conftest.err >&5 | ||
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15267 | (exit $ac_status); } && { | ||
15268 | test -z "$ac_c_werror_flag" || | ||
15269 | test ! -s conftest.err | ||
15270 | } && test -s conftest$ac_exeext && | ||
15271 | $as_test_x conftest$ac_exeext; then | ||
15272 | eval "$as_ac_var=yes" | ||
15273 | else | ||
15274 | echo "$as_me: failed program was:" >&5 | ||
15275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15276 | |||
15277 | eval "$as_ac_var=no" | ||
15278 | fi | ||
15279 | |||
15280 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15281 | conftest$ac_exeext conftest.$ac_ext | ||
15282 | fi | ||
15283 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15284 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15285 | echo "${ECHO_T}$ac_res" >&6; } | ||
15286 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15287 | cat >>confdefs.h <<_ACEOF | ||
15288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15289 | _ACEOF | ||
15290 | |||
15291 | fi | ||
15292 | done | ||
15293 | |||
15294 | |||
15295 | for ac_func in getlastlogxbyname | ||
15296 | do | ||
15297 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15298 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15299 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15300 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15302 | else | ||
15303 | cat >conftest.$ac_ext <<_ACEOF | ||
15304 | /* confdefs.h. */ | ||
15305 | _ACEOF | ||
15306 | cat confdefs.h >>conftest.$ac_ext | ||
15307 | cat >>conftest.$ac_ext <<_ACEOF | ||
15308 | /* end confdefs.h. */ | ||
15309 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15311 | #define $ac_func innocuous_$ac_func | ||
15312 | |||
15313 | /* System header to define __stub macros and hopefully few prototypes, | ||
15314 | which can conflict with char $ac_func (); below. | ||
15315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15316 | <limits.h> exists even on freestanding compilers. */ | ||
15317 | |||
15318 | #ifdef __STDC__ | ||
15319 | # include <limits.h> | ||
15320 | #else | ||
15321 | # include <assert.h> | ||
15322 | #endif | ||
15323 | |||
15324 | #undef $ac_func | ||
15325 | |||
15326 | /* Override any GCC internal prototype to avoid an error. | ||
15327 | Use char because int might match the return type of a GCC | ||
15328 | builtin and then its argument prototype would still apply. */ | ||
15329 | #ifdef __cplusplus | ||
15330 | extern "C" | ||
15331 | #endif | ||
15332 | char $ac_func (); | ||
15333 | /* The GNU C library defines this for functions which it implements | ||
15334 | to always fail with ENOSYS. Some functions are actually named | ||
15335 | something starting with __ and the normal name is an alias. */ | ||
15336 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15337 | choke me | ||
15338 | #endif | ||
15339 | |||
15340 | int | ||
15341 | main () | ||
15342 | { | ||
15343 | return $ac_func (); | ||
15344 | ; | ||
15345 | return 0; | ||
15346 | } | ||
15347 | _ACEOF | ||
15348 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15349 | if { (ac_try="$ac_link" | ||
15350 | case "(($ac_try" in | ||
15351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15352 | *) ac_try_echo=$ac_try;; | ||
15353 | esac | ||
15354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15355 | (eval "$ac_link") 2>conftest.er1 | ||
15356 | ac_status=$? | ||
15357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15358 | rm -f conftest.er1 | ||
15359 | cat conftest.err >&5 | ||
15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15361 | (exit $ac_status); } && { | ||
15362 | test -z "$ac_c_werror_flag" || | ||
15363 | test ! -s conftest.err | ||
15364 | } && test -s conftest$ac_exeext && | ||
15365 | $as_test_x conftest$ac_exeext; then | ||
15366 | eval "$as_ac_var=yes" | ||
15367 | else | ||
15368 | echo "$as_me: failed program was:" >&5 | ||
15369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15370 | |||
15371 | eval "$as_ac_var=no" | ||
15372 | fi | ||
15373 | |||
15374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15375 | conftest$ac_exeext conftest.$ac_ext | ||
15376 | fi | ||
15377 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15378 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15379 | echo "${ECHO_T}$ac_res" >&6; } | ||
15380 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15381 | cat >>confdefs.h <<_ACEOF | ||
15382 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15383 | _ACEOF | ||
15384 | |||
15385 | fi | ||
15386 | done | ||
15387 | |||
15388 | |||
15389 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
15390 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
15391 | if test "${ac_cv_func_daemon+set}" = set; then | ||
15392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15393 | else | ||
15394 | cat >conftest.$ac_ext <<_ACEOF | ||
15395 | /* confdefs.h. */ | ||
15396 | _ACEOF | ||
15397 | cat confdefs.h >>conftest.$ac_ext | ||
15398 | cat >>conftest.$ac_ext <<_ACEOF | ||
15399 | /* end confdefs.h. */ | ||
15400 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
15401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15402 | #define daemon innocuous_daemon | ||
15403 | |||
15404 | /* System header to define __stub macros and hopefully few prototypes, | ||
15405 | which can conflict with char daemon (); below. | ||
15406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15407 | <limits.h> exists even on freestanding compilers. */ | ||
15408 | |||
15409 | #ifdef __STDC__ | ||
15410 | # include <limits.h> | ||
15411 | #else | ||
15412 | # include <assert.h> | ||
15413 | #endif | ||
15414 | |||
15415 | #undef daemon | ||
15416 | |||
15417 | /* Override any GCC internal prototype to avoid an error. | ||
15418 | Use char because int might match the return type of a GCC | ||
15419 | builtin and then its argument prototype would still apply. */ | ||
15420 | #ifdef __cplusplus | ||
15421 | extern "C" | ||
15422 | #endif | ||
15423 | char daemon (); | ||
15424 | /* The GNU C library defines this for functions which it implements | ||
15425 | to always fail with ENOSYS. Some functions are actually named | ||
15426 | something starting with __ and the normal name is an alias. */ | ||
15427 | #if defined __stub_daemon || defined __stub___daemon | ||
15428 | choke me | ||
15429 | #endif | ||
15430 | |||
15431 | int | ||
15432 | main () | ||
15433 | { | ||
15434 | return daemon (); | ||
15435 | ; | ||
15436 | return 0; | ||
15437 | } | ||
15438 | _ACEOF | ||
15439 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15440 | if { (ac_try="$ac_link" | ||
15441 | case "(($ac_try" in | ||
15442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15443 | *) ac_try_echo=$ac_try;; | ||
15444 | esac | ||
15445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15446 | (eval "$ac_link") 2>conftest.er1 | ||
15447 | ac_status=$? | ||
15448 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15449 | rm -f conftest.er1 | ||
15450 | cat conftest.err >&5 | ||
15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15452 | (exit $ac_status); } && { | ||
15453 | test -z "$ac_c_werror_flag" || | ||
15454 | test ! -s conftest.err | ||
15455 | } && test -s conftest$ac_exeext && | ||
15456 | $as_test_x conftest$ac_exeext; then | ||
15457 | ac_cv_func_daemon=yes | ||
15458 | else | ||
15459 | echo "$as_me: failed program was:" >&5 | ||
15460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15461 | |||
15462 | ac_cv_func_daemon=no | ||
15463 | fi | ||
15464 | |||
15465 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15466 | conftest$ac_exeext conftest.$ac_ext | ||
15467 | fi | ||
15468 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
15469 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
15470 | if test $ac_cv_func_daemon = yes; then | ||
15471 | |||
15472 | cat >>confdefs.h <<\_ACEOF | ||
15473 | #define HAVE_DAEMON 1 | ||
15474 | _ACEOF | ||
15475 | |||
15476 | else | ||
15477 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
15478 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
15479 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
15480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15481 | else | ||
15482 | ac_check_lib_save_LIBS=$LIBS | ||
15483 | LIBS="-lbsd $LIBS" | ||
15484 | cat >conftest.$ac_ext <<_ACEOF | ||
15485 | /* confdefs.h. */ | ||
15486 | _ACEOF | ||
15487 | cat confdefs.h >>conftest.$ac_ext | ||
15488 | cat >>conftest.$ac_ext <<_ACEOF | ||
15489 | /* end confdefs.h. */ | ||
15490 | |||
15491 | /* Override any GCC internal prototype to avoid an error. | ||
15492 | Use char because int might match the return type of a GCC | ||
15493 | builtin and then its argument prototype would still apply. */ | ||
15494 | #ifdef __cplusplus | ||
15495 | extern "C" | ||
15496 | #endif | ||
15497 | char daemon (); | ||
15498 | int | ||
15499 | main () | ||
15500 | { | ||
15501 | return daemon (); | ||
15502 | ; | ||
15503 | return 0; | ||
15504 | } | ||
15505 | _ACEOF | ||
15506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15507 | if { (ac_try="$ac_link" | ||
15508 | case "(($ac_try" in | ||
15509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15510 | *) ac_try_echo=$ac_try;; | ||
15511 | esac | ||
15512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15513 | (eval "$ac_link") 2>conftest.er1 | ||
15514 | ac_status=$? | ||
15515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15516 | rm -f conftest.er1 | ||
15517 | cat conftest.err >&5 | ||
15518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15519 | (exit $ac_status); } && { | ||
15520 | test -z "$ac_c_werror_flag" || | ||
15521 | test ! -s conftest.err | ||
15522 | } && test -s conftest$ac_exeext && | ||
15523 | $as_test_x conftest$ac_exeext; then | ||
15524 | ac_cv_lib_bsd_daemon=yes | ||
15525 | else | ||
15526 | echo "$as_me: failed program was:" >&5 | ||
15527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15528 | |||
15529 | ac_cv_lib_bsd_daemon=no | ||
15530 | fi | ||
15531 | |||
15532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15533 | conftest$ac_exeext conftest.$ac_ext | ||
15534 | LIBS=$ac_check_lib_save_LIBS | ||
15535 | fi | ||
15536 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
15537 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
15538 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
15539 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
15540 | #define HAVE_DAEMON 1 | ||
15541 | _ACEOF | ||
15542 | |||
15543 | fi | ||
15544 | |||
15545 | |||
15546 | fi | ||
15547 | |||
15548 | |||
15549 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
15550 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
15551 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
15552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15553 | else | ||
15554 | cat >conftest.$ac_ext <<_ACEOF | ||
15555 | /* confdefs.h. */ | ||
15556 | _ACEOF | ||
15557 | cat confdefs.h >>conftest.$ac_ext | ||
15558 | cat >>conftest.$ac_ext <<_ACEOF | ||
15559 | /* end confdefs.h. */ | ||
15560 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
15561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15562 | #define getpagesize innocuous_getpagesize | ||
15563 | |||
15564 | /* System header to define __stub macros and hopefully few prototypes, | ||
15565 | which can conflict with char getpagesize (); below. | ||
15566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15567 | <limits.h> exists even on freestanding compilers. */ | ||
15568 | |||
15569 | #ifdef __STDC__ | ||
15570 | # include <limits.h> | ||
15571 | #else | ||
15572 | # include <assert.h> | ||
15573 | #endif | ||
15574 | |||
15575 | #undef getpagesize | ||
15576 | |||
15577 | /* Override any GCC internal prototype to avoid an error. | ||
15578 | Use char because int might match the return type of a GCC | ||
15579 | builtin and then its argument prototype would still apply. */ | ||
15580 | #ifdef __cplusplus | ||
15581 | extern "C" | ||
15582 | #endif | ||
15583 | char getpagesize (); | ||
15584 | /* The GNU C library defines this for functions which it implements | ||
15585 | to always fail with ENOSYS. Some functions are actually named | ||
15586 | something starting with __ and the normal name is an alias. */ | ||
15587 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
15588 | choke me | ||
15589 | #endif | ||
15590 | |||
15591 | int | ||
15592 | main () | ||
15593 | { | ||
15594 | return getpagesize (); | ||
15595 | ; | ||
15596 | return 0; | ||
15597 | } | ||
15598 | _ACEOF | ||
15599 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15600 | if { (ac_try="$ac_link" | ||
15601 | case "(($ac_try" in | ||
15602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15603 | *) ac_try_echo=$ac_try;; | ||
15604 | esac | ||
15605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15606 | (eval "$ac_link") 2>conftest.er1 | ||
15607 | ac_status=$? | ||
15608 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15609 | rm -f conftest.er1 | ||
15610 | cat conftest.err >&5 | ||
15611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15612 | (exit $ac_status); } && { | ||
15613 | test -z "$ac_c_werror_flag" || | ||
15614 | test ! -s conftest.err | ||
15615 | } && test -s conftest$ac_exeext && | ||
15616 | $as_test_x conftest$ac_exeext; then | ||
15617 | ac_cv_func_getpagesize=yes | ||
15618 | else | ||
15619 | echo "$as_me: failed program was:" >&5 | ||
15620 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15621 | |||
15622 | ac_cv_func_getpagesize=no | ||
15623 | fi | ||
15624 | |||
15625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15626 | conftest$ac_exeext conftest.$ac_ext | ||
15627 | fi | ||
15628 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
15629 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
15630 | if test $ac_cv_func_getpagesize = yes; then | ||
15631 | |||
15632 | cat >>confdefs.h <<\_ACEOF | ||
15633 | #define HAVE_GETPAGESIZE 1 | ||
15634 | _ACEOF | ||
15635 | |||
15636 | else | ||
15637 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
15638 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
15639 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
15640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15641 | else | ||
15642 | ac_check_lib_save_LIBS=$LIBS | ||
15643 | LIBS="-lucb $LIBS" | ||
15644 | cat >conftest.$ac_ext <<_ACEOF | ||
15645 | /* confdefs.h. */ | ||
15646 | _ACEOF | ||
15647 | cat confdefs.h >>conftest.$ac_ext | ||
15648 | cat >>conftest.$ac_ext <<_ACEOF | ||
15649 | /* end confdefs.h. */ | ||
15650 | |||
15651 | /* Override any GCC internal prototype to avoid an error. | ||
15652 | Use char because int might match the return type of a GCC | ||
15653 | builtin and then its argument prototype would still apply. */ | ||
15654 | #ifdef __cplusplus | ||
15655 | extern "C" | ||
15656 | #endif | ||
15657 | char getpagesize (); | ||
15658 | int | ||
15659 | main () | ||
15660 | { | ||
15661 | return getpagesize (); | ||
15662 | ; | ||
15663 | return 0; | ||
15664 | } | ||
15665 | _ACEOF | ||
15666 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15667 | if { (ac_try="$ac_link" | ||
15668 | case "(($ac_try" in | ||
15669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15670 | *) ac_try_echo=$ac_try;; | ||
15671 | esac | ||
15672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15673 | (eval "$ac_link") 2>conftest.er1 | ||
15674 | ac_status=$? | ||
15675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15676 | rm -f conftest.er1 | ||
15677 | cat conftest.err >&5 | ||
15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15679 | (exit $ac_status); } && { | ||
15680 | test -z "$ac_c_werror_flag" || | ||
15681 | test ! -s conftest.err | ||
15682 | } && test -s conftest$ac_exeext && | ||
15683 | $as_test_x conftest$ac_exeext; then | ||
15684 | ac_cv_lib_ucb_getpagesize=yes | ||
15685 | else | ||
15686 | echo "$as_me: failed program was:" >&5 | ||
15687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15688 | |||
15689 | ac_cv_lib_ucb_getpagesize=no | ||
15690 | fi | ||
15691 | |||
15692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15693 | conftest$ac_exeext conftest.$ac_ext | ||
15694 | LIBS=$ac_check_lib_save_LIBS | ||
15695 | fi | ||
15696 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
15697 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
15698 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
15699 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
15700 | #define HAVE_GETPAGESIZE 1 | ||
15701 | _ACEOF | ||
15702 | |||
15703 | fi | ||
15704 | |||
15705 | |||
15706 | fi | ||
15707 | |||
15708 | |||
15709 | # Check for broken snprintf | ||
15710 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
15711 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
15712 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
15713 | if test "$cross_compiling" = yes; then | ||
15714 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15715 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15716 | |||
15717 | else | ||
15718 | cat >conftest.$ac_ext <<_ACEOF | ||
15719 | /* confdefs.h. */ | ||
15720 | _ACEOF | ||
15721 | cat confdefs.h >>conftest.$ac_ext | ||
15722 | cat >>conftest.$ac_ext <<_ACEOF | ||
15723 | /* end confdefs.h. */ | ||
15724 | |||
15725 | #include <stdio.h> | ||
15726 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
15727 | |||
15728 | _ACEOF | ||
15729 | rm -f conftest$ac_exeext | ||
15730 | if { (ac_try="$ac_link" | ||
15731 | case "(($ac_try" in | ||
15732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15733 | *) ac_try_echo=$ac_try;; | ||
15734 | esac | ||
15735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15736 | (eval "$ac_link") 2>&5 | ||
15737 | ac_status=$? | ||
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15740 | { (case "(($ac_try" in | ||
15741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15742 | *) ac_try_echo=$ac_try;; | ||
15743 | esac | ||
15744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15745 | (eval "$ac_try") 2>&5 | ||
15746 | ac_status=$? | ||
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15748 | (exit $ac_status); }; }; then | ||
15749 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15750 | echo "${ECHO_T}yes" >&6; } | ||
15751 | else | ||
15752 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15753 | echo "$as_me: failed program was:" >&5 | ||
15754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15755 | |||
15756 | ( exit $ac_status ) | ||
15757 | |||
15758 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15759 | echo "${ECHO_T}no" >&6; } | ||
15760 | |||
15761 | cat >>confdefs.h <<\_ACEOF | ||
15762 | #define BROKEN_SNPRINTF 1 | ||
15763 | _ACEOF | ||
15764 | |||
15765 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
15766 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
15767 | |||
15768 | fi | ||
15769 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15770 | fi | ||
15771 | |||
15772 | |||
15773 | fi | ||
15774 | |||
15775 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
15776 | # returning the right thing on overflow: the number of characters it tried to | ||
15777 | # create (as per SUSv3) | ||
15778 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
15779 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
15780 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
15781 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
15782 | if test "$cross_compiling" = yes; then | ||
15783 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
15784 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
15785 | |||
15786 | else | ||
15787 | cat >conftest.$ac_ext <<_ACEOF | ||
15788 | /* confdefs.h. */ | ||
15789 | _ACEOF | ||
15790 | cat confdefs.h >>conftest.$ac_ext | ||
15791 | cat >>conftest.$ac_ext <<_ACEOF | ||
15792 | /* end confdefs.h. */ | ||
15793 | |||
15794 | #include <sys/types.h> | ||
15795 | #include <stdio.h> | ||
15796 | #include <stdarg.h> | ||
15797 | |||
15798 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
15799 | { | ||
15800 | size_t ret; va_list ap; | ||
15801 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
15802 | return ret; | ||
15803 | } | ||
15804 | int main(void) | ||
15805 | { | ||
15806 | char x[1]; | ||
15807 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
15808 | } | ||
15809 | _ACEOF | ||
15810 | rm -f conftest$ac_exeext | ||
15811 | if { (ac_try="$ac_link" | ||
15812 | case "(($ac_try" in | ||
15813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15814 | *) ac_try_echo=$ac_try;; | ||
15815 | esac | ||
15816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15817 | (eval "$ac_link") 2>&5 | ||
15818 | ac_status=$? | ||
15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15821 | { (case "(($ac_try" in | ||
15822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15823 | *) ac_try_echo=$ac_try;; | ||
15824 | esac | ||
15825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15826 | (eval "$ac_try") 2>&5 | ||
15827 | ac_status=$? | ||
15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15829 | (exit $ac_status); }; }; then | ||
15830 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15831 | echo "${ECHO_T}yes" >&6; } | ||
15832 | else | ||
15833 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15834 | echo "$as_me: failed program was:" >&5 | ||
15835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15836 | |||
15837 | ( exit $ac_status ) | ||
15838 | |||
15839 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15840 | echo "${ECHO_T}no" >&6; } | ||
15841 | |||
15842 | cat >>confdefs.h <<\_ACEOF | ||
15843 | #define BROKEN_SNPRINTF 1 | ||
15844 | _ACEOF | ||
15845 | |||
15846 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
15847 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
15848 | |||
15849 | fi | ||
15850 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15851 | fi | ||
15852 | |||
15853 | |||
15854 | fi | ||
15855 | |||
15856 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
15857 | # check that the fmt argument is const char * or just char *. | ||
15858 | # This is only useful for when BROKEN_SNPRINTF | ||
15859 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
15860 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
15861 | cat >conftest.$ac_ext <<_ACEOF | ||
15862 | /* confdefs.h. */ | ||
15863 | _ACEOF | ||
15864 | cat confdefs.h >>conftest.$ac_ext | ||
15865 | cat >>conftest.$ac_ext <<_ACEOF | ||
15866 | /* end confdefs.h. */ | ||
15867 | #include <stdio.h> | ||
15868 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
15869 | int main(void) { snprintf(0, 0, 0); } | ||
15870 | |||
15871 | _ACEOF | ||
15872 | rm -f conftest.$ac_objext | ||
15873 | if { (ac_try="$ac_compile" | ||
15874 | case "(($ac_try" in | ||
15875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15876 | *) ac_try_echo=$ac_try;; | ||
15877 | esac | ||
15878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15879 | (eval "$ac_compile") 2>conftest.er1 | ||
15880 | ac_status=$? | ||
15881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15882 | rm -f conftest.er1 | ||
15883 | cat conftest.err >&5 | ||
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15885 | (exit $ac_status); } && { | ||
15886 | test -z "$ac_c_werror_flag" || | ||
15887 | test ! -s conftest.err | ||
15888 | } && test -s conftest.$ac_objext; then | ||
15889 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15890 | echo "${ECHO_T}yes" >&6; } | ||
15891 | |||
15892 | cat >>confdefs.h <<\_ACEOF | ||
15893 | #define SNPRINTF_CONST const | ||
15894 | _ACEOF | ||
15895 | |||
15896 | else | ||
15897 | echo "$as_me: failed program was:" >&5 | ||
15898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15899 | |||
15900 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15901 | echo "${ECHO_T}no" >&6; } | ||
15902 | cat >>confdefs.h <<\_ACEOF | ||
15903 | #define SNPRINTF_CONST /* not const */ | ||
15904 | _ACEOF | ||
15905 | |||
15906 | fi | ||
15907 | |||
15908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15909 | |||
15910 | # Check for missing getpeereid (or equiv) support | ||
15911 | NO_PEERCHECK="" | ||
15912 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
15913 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
15914 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
15915 | cat >conftest.$ac_ext <<_ACEOF | ||
15916 | /* confdefs.h. */ | ||
15917 | _ACEOF | ||
15918 | cat confdefs.h >>conftest.$ac_ext | ||
15919 | cat >>conftest.$ac_ext <<_ACEOF | ||
15920 | /* end confdefs.h. */ | ||
15921 | #include <sys/types.h> | ||
15922 | #include <sys/socket.h> | ||
15923 | int | ||
15924 | main () | ||
15925 | { | ||
15926 | int i = SO_PEERCRED; | ||
15927 | ; | ||
15928 | return 0; | ||
15929 | } | ||
15930 | _ACEOF | ||
15931 | rm -f conftest.$ac_objext | ||
15932 | if { (ac_try="$ac_compile" | ||
15933 | case "(($ac_try" in | ||
15934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15935 | *) ac_try_echo=$ac_try;; | ||
15936 | esac | ||
15937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15938 | (eval "$ac_compile") 2>conftest.er1 | ||
15939 | ac_status=$? | ||
15940 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15941 | rm -f conftest.er1 | ||
15942 | cat conftest.err >&5 | ||
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15944 | (exit $ac_status); } && { | ||
15945 | test -z "$ac_c_werror_flag" || | ||
15946 | test ! -s conftest.err | ||
15947 | } && test -s conftest.$ac_objext; then | ||
15948 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15949 | echo "${ECHO_T}yes" >&6; } | ||
15950 | |||
15951 | cat >>confdefs.h <<\_ACEOF | ||
15952 | #define HAVE_SO_PEERCRED 1 | ||
15953 | _ACEOF | ||
15954 | |||
15955 | |||
15956 | else | ||
15957 | echo "$as_me: failed program was:" >&5 | ||
15958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15959 | |||
15960 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15961 | echo "${ECHO_T}no" >&6; } | ||
15962 | NO_PEERCHECK=1 | ||
15963 | |||
15964 | fi | ||
15965 | |||
15966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15967 | fi | ||
15968 | |||
15969 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
15970 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
15971 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
15972 | if test "$cross_compiling" = yes; then | ||
15973 | |||
15974 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15975 | echo "${ECHO_T}yes" >&6; } | ||
15976 | cat >>confdefs.h <<\_ACEOF | ||
15977 | #define HAVE_STRICT_MKSTEMP 1 | ||
15978 | _ACEOF | ||
15979 | |||
15980 | |||
15981 | |||
15982 | else | ||
15983 | cat >conftest.$ac_ext <<_ACEOF | ||
15984 | /* confdefs.h. */ | ||
15985 | _ACEOF | ||
15986 | cat confdefs.h >>conftest.$ac_ext | ||
15987 | cat >>conftest.$ac_ext <<_ACEOF | ||
15988 | /* end confdefs.h. */ | ||
15989 | |||
15990 | #include <stdlib.h> | ||
15991 | main() { char template[]="conftest.mkstemp-test"; | ||
15992 | if (mkstemp(template) == -1) | ||
15993 | exit(1); | ||
15994 | unlink(template); exit(0); | ||
15995 | } | ||
15996 | |||
15997 | _ACEOF | ||
15998 | rm -f conftest$ac_exeext | ||
15999 | if { (ac_try="$ac_link" | ||
16000 | case "(($ac_try" in | ||
16001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16002 | *) ac_try_echo=$ac_try;; | ||
16003 | esac | ||
16004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16005 | (eval "$ac_link") 2>&5 | ||
16006 | ac_status=$? | ||
16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16009 | { (case "(($ac_try" in | ||
16010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16011 | *) ac_try_echo=$ac_try;; | ||
16012 | esac | ||
16013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16014 | (eval "$ac_try") 2>&5 | ||
16015 | ac_status=$? | ||
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16017 | (exit $ac_status); }; }; then | ||
16018 | |||
16019 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16020 | echo "${ECHO_T}no" >&6; } | ||
16021 | |||
16022 | else | ||
16023 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16024 | echo "$as_me: failed program was:" >&5 | ||
16025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16026 | |||
16027 | ( exit $ac_status ) | ||
16028 | |||
16029 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16030 | echo "${ECHO_T}yes" >&6; } | ||
16031 | |||
16032 | cat >>confdefs.h <<\_ACEOF | ||
16033 | #define HAVE_STRICT_MKSTEMP 1 | ||
16034 | _ACEOF | ||
16035 | |||
16036 | |||
16037 | fi | ||
16038 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16039 | fi | ||
16040 | |||
16041 | |||
16042 | fi | ||
16043 | |||
16044 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
16045 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
16046 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
16047 | if test "$cross_compiling" = yes; then | ||
16048 | |||
16049 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16050 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16051 | |||
16052 | |||
16053 | else | ||
16054 | cat >conftest.$ac_ext <<_ACEOF | ||
16055 | /* confdefs.h. */ | ||
16056 | _ACEOF | ||
16057 | cat confdefs.h >>conftest.$ac_ext | ||
16058 | cat >>conftest.$ac_ext <<_ACEOF | ||
16059 | /* end confdefs.h. */ | ||
16060 | |||
16061 | #include <stdio.h> | ||
16062 | #include <sys/fcntl.h> | ||
16063 | #include <sys/types.h> | ||
16064 | #include <sys/wait.h> | ||
16065 | |||
16066 | int | ||
16067 | main() | ||
16068 | { | ||
16069 | pid_t pid; | ||
16070 | int fd, ptyfd, ttyfd, status; | ||
16071 | |||
16072 | pid = fork(); | ||
16073 | if (pid < 0) { /* failed */ | ||
16074 | exit(1); | ||
16075 | } else if (pid > 0) { /* parent */ | ||
16076 | waitpid(pid, &status, 0); | ||
16077 | if (WIFEXITED(status)) | ||
16078 | exit(WEXITSTATUS(status)); | ||
16079 | else | ||
16080 | exit(2); | ||
16081 | } else { /* child */ | ||
16082 | close(0); close(1); close(2); | ||
16083 | setsid(); | ||
16084 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
16085 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
16086 | if (fd >= 0) | ||
16087 | exit(3); /* Acquired ctty: broken */ | ||
16088 | else | ||
16089 | exit(0); /* Did not acquire ctty: OK */ | ||
16090 | } | ||
16091 | } | ||
16092 | |||
16093 | _ACEOF | ||
16094 | rm -f conftest$ac_exeext | ||
16095 | if { (ac_try="$ac_link" | ||
16096 | case "(($ac_try" in | ||
16097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16098 | *) ac_try_echo=$ac_try;; | ||
16099 | esac | ||
16100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16101 | (eval "$ac_link") 2>&5 | ||
16102 | ac_status=$? | ||
16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16105 | { (case "(($ac_try" in | ||
16106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16107 | *) ac_try_echo=$ac_try;; | ||
16108 | esac | ||
16109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16110 | (eval "$ac_try") 2>&5 | ||
16111 | ac_status=$? | ||
16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16113 | (exit $ac_status); }; }; then | ||
16114 | |||
16115 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16116 | echo "${ECHO_T}yes" >&6; } | ||
16117 | |||
16118 | else | ||
16119 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16120 | echo "$as_me: failed program was:" >&5 | ||
16121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16122 | |||
16123 | ( exit $ac_status ) | ||
16124 | |||
16125 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16126 | echo "${ECHO_T}no" >&6; } | ||
16127 | cat >>confdefs.h <<\_ACEOF | ||
16128 | #define SSHD_ACQUIRES_CTTY 1 | ||
16129 | _ACEOF | ||
16130 | |||
16131 | |||
16132 | fi | ||
16133 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16134 | fi | ||
16135 | |||
16136 | |||
16137 | fi | ||
16138 | |||
16139 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16140 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
16141 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16142 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
16143 | if test "$cross_compiling" = yes; then | ||
16144 | |||
16145 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16146 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16147 | |||
16148 | |||
16149 | else | ||
16150 | cat >conftest.$ac_ext <<_ACEOF | ||
16151 | /* confdefs.h. */ | ||
16152 | _ACEOF | ||
16153 | cat confdefs.h >>conftest.$ac_ext | ||
16154 | cat >>conftest.$ac_ext <<_ACEOF | ||
16155 | /* end confdefs.h. */ | ||
16156 | |||
16157 | #include <stdio.h> | ||
16158 | #include <sys/socket.h> | ||
16159 | #include <netdb.h> | ||
16160 | #include <errno.h> | ||
16161 | #include <netinet/in.h> | ||
16162 | |||
16163 | #define TEST_PORT "2222" | ||
16164 | |||
16165 | int | ||
16166 | main(void) | ||
16167 | { | ||
16168 | int err, sock; | ||
16169 | struct addrinfo *gai_ai, *ai, hints; | ||
16170 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16171 | |||
16172 | memset(&hints, 0, sizeof(hints)); | ||
16173 | hints.ai_family = PF_UNSPEC; | ||
16174 | hints.ai_socktype = SOCK_STREAM; | ||
16175 | hints.ai_flags = AI_PASSIVE; | ||
16176 | |||
16177 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16178 | if (err != 0) { | ||
16179 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16180 | exit(1); | ||
16181 | } | ||
16182 | |||
16183 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16184 | if (ai->ai_family != AF_INET6) | ||
16185 | continue; | ||
16186 | |||
16187 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16188 | sizeof(ntop), strport, sizeof(strport), | ||
16189 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16190 | |||
16191 | if (err != 0) { | ||
16192 | if (err == EAI_SYSTEM) | ||
16193 | perror("getnameinfo EAI_SYSTEM"); | ||
16194 | else | ||
16195 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
16196 | gai_strerror(err)); | ||
16197 | exit(2); | ||
16198 | } | ||
16199 | |||
16200 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
16201 | if (sock < 0) | ||
16202 | perror("socket"); | ||
16203 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
16204 | if (errno == EBADF) | ||
16205 | exit(3); | ||
16206 | } | ||
16207 | } | ||
16208 | exit(0); | ||
16209 | } | ||
16210 | |||
16211 | _ACEOF | ||
16212 | rm -f conftest$ac_exeext | ||
16213 | if { (ac_try="$ac_link" | ||
16214 | case "(($ac_try" in | ||
16215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16216 | *) ac_try_echo=$ac_try;; | ||
16217 | esac | ||
16218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16219 | (eval "$ac_link") 2>&5 | ||
16220 | ac_status=$? | ||
16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16223 | { (case "(($ac_try" in | ||
16224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16225 | *) ac_try_echo=$ac_try;; | ||
16226 | esac | ||
16227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16228 | (eval "$ac_try") 2>&5 | ||
16229 | ac_status=$? | ||
16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16231 | (exit $ac_status); }; }; then | ||
16232 | |||
16233 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16234 | echo "${ECHO_T}yes" >&6; } | ||
16235 | |||
16236 | else | ||
16237 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16238 | echo "$as_me: failed program was:" >&5 | ||
16239 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16240 | |||
16241 | ( exit $ac_status ) | ||
16242 | |||
16243 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16244 | echo "${ECHO_T}no" >&6; } | ||
16245 | cat >>confdefs.h <<\_ACEOF | ||
16246 | #define BROKEN_GETADDRINFO 1 | ||
16247 | _ACEOF | ||
16248 | |||
16249 | |||
16250 | fi | ||
16251 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16252 | fi | ||
16253 | |||
16254 | |||
16255 | fi | ||
16256 | |||
16257 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16258 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
16259 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16260 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
16261 | if test "$cross_compiling" = yes; then | ||
16262 | |||
16263 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16264 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16265 | |||
16266 | |||
16267 | else | ||
16268 | cat >conftest.$ac_ext <<_ACEOF | ||
16269 | /* confdefs.h. */ | ||
16270 | _ACEOF | ||
16271 | cat confdefs.h >>conftest.$ac_ext | ||
16272 | cat >>conftest.$ac_ext <<_ACEOF | ||
16273 | /* end confdefs.h. */ | ||
16274 | |||
16275 | #include <stdio.h> | ||
16276 | #include <sys/socket.h> | ||
16277 | #include <netdb.h> | ||
16278 | #include <errno.h> | ||
16279 | #include <netinet/in.h> | ||
16280 | |||
16281 | #define TEST_PORT "2222" | ||
16282 | |||
16283 | int | ||
16284 | main(void) | ||
16285 | { | ||
16286 | int err, sock; | ||
16287 | struct addrinfo *gai_ai, *ai, hints; | ||
16288 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16289 | |||
16290 | memset(&hints, 0, sizeof(hints)); | ||
16291 | hints.ai_family = PF_UNSPEC; | ||
16292 | hints.ai_socktype = SOCK_STREAM; | ||
16293 | hints.ai_flags = AI_PASSIVE; | ||
16294 | |||
16295 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16296 | if (err != 0) { | ||
16297 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16298 | exit(1); | ||
16299 | } | ||
16300 | |||
16301 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16302 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
16303 | continue; | ||
16304 | |||
16305 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16306 | sizeof(ntop), strport, sizeof(strport), | ||
16307 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16308 | |||
16309 | if (ai->ai_family == AF_INET && err != 0) { | ||
16310 | perror("getnameinfo"); | ||
16311 | exit(2); | ||
16312 | } | ||
16313 | } | ||
16314 | exit(0); | ||
16315 | } | ||
16316 | |||
16317 | _ACEOF | ||
16318 | rm -f conftest$ac_exeext | ||
16319 | if { (ac_try="$ac_link" | ||
16320 | case "(($ac_try" in | ||
16321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16322 | *) ac_try_echo=$ac_try;; | ||
16323 | esac | ||
16324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16325 | (eval "$ac_link") 2>&5 | ||
16326 | ac_status=$? | ||
16327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16329 | { (case "(($ac_try" in | ||
16330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16331 | *) ac_try_echo=$ac_try;; | ||
16332 | esac | ||
16333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16334 | (eval "$ac_try") 2>&5 | ||
16335 | ac_status=$? | ||
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16337 | (exit $ac_status); }; }; then | ||
16338 | |||
16339 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16340 | echo "${ECHO_T}yes" >&6; } | ||
16341 | |||
16342 | cat >>confdefs.h <<\_ACEOF | ||
16343 | #define AIX_GETNAMEINFO_HACK 1 | ||
16344 | _ACEOF | ||
16345 | |||
16346 | |||
16347 | else | ||
16348 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16349 | echo "$as_me: failed program was:" >&5 | ||
16350 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16351 | |||
16352 | ( exit $ac_status ) | ||
16353 | |||
16354 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16355 | echo "${ECHO_T}no" >&6; } | ||
16356 | cat >>confdefs.h <<\_ACEOF | ||
16357 | #define BROKEN_GETADDRINFO 1 | ||
16358 | _ACEOF | ||
16359 | |||
16360 | |||
16361 | fi | ||
16362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16363 | fi | ||
16364 | |||
16365 | |||
16366 | fi | ||
16367 | |||
16368 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
16369 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
16370 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
16371 | cat >conftest.$ac_ext <<_ACEOF | ||
16372 | |||
16373 | #include <shadow.h> | ||
16374 | int main(void) {exit(0);} | ||
16375 | |||
16376 | _ACEOF | ||
16377 | rm -f conftest.$ac_objext | ||
16378 | if { (ac_try="$ac_compile" | ||
16379 | case "(($ac_try" in | ||
16380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16381 | *) ac_try_echo=$ac_try;; | ||
16382 | esac | ||
16383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16384 | (eval "$ac_compile") 2>conftest.er1 | ||
16385 | ac_status=$? | ||
16386 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16387 | rm -f conftest.er1 | ||
16388 | cat conftest.err >&5 | ||
16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16390 | (exit $ac_status); } && { | ||
16391 | test -z "$ac_c_werror_flag" || | ||
16392 | test ! -s conftest.err | ||
16393 | } && test -s conftest.$ac_objext; then | ||
16394 | |||
16395 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16396 | echo "${ECHO_T}no" >&6; } | ||
16397 | |||
16398 | else | ||
16399 | echo "$as_me: failed program was:" >&5 | ||
16400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16401 | |||
16402 | |||
16403 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16404 | echo "${ECHO_T}yes" >&6; } | ||
16405 | |||
16406 | cat >>confdefs.h <<\_ACEOF | ||
16407 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
16408 | _ACEOF | ||
16409 | |||
16410 | |||
16411 | |||
16412 | fi | ||
16413 | |||
16414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16415 | fi | ||
16416 | |||
16417 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
16418 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
16419 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
16420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16421 | else | ||
16422 | # Use it with a single arg. | ||
16423 | cat >conftest.$ac_ext <<_ACEOF | ||
16424 | /* confdefs.h. */ | ||
16425 | _ACEOF | ||
16426 | cat confdefs.h >>conftest.$ac_ext | ||
16427 | cat >>conftest.$ac_ext <<_ACEOF | ||
16428 | /* end confdefs.h. */ | ||
16429 | $ac_includes_default | ||
16430 | int | ||
16431 | main () | ||
16432 | { | ||
16433 | getpgrp (0); | ||
16434 | ; | ||
16435 | return 0; | ||
16436 | } | ||
16437 | _ACEOF | ||
16438 | rm -f conftest.$ac_objext | ||
16439 | if { (ac_try="$ac_compile" | ||
16440 | case "(($ac_try" in | ||
16441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16442 | *) ac_try_echo=$ac_try;; | ||
16443 | esac | ||
16444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16445 | (eval "$ac_compile") 2>conftest.er1 | ||
16446 | ac_status=$? | ||
16447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16448 | rm -f conftest.er1 | ||
16449 | cat conftest.err >&5 | ||
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16451 | (exit $ac_status); } && { | ||
16452 | test -z "$ac_c_werror_flag" || | ||
16453 | test ! -s conftest.err | ||
16454 | } && test -s conftest.$ac_objext; then | ||
16455 | ac_cv_func_getpgrp_void=no | ||
16456 | else | ||
16457 | echo "$as_me: failed program was:" >&5 | ||
16458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16459 | |||
16460 | ac_cv_func_getpgrp_void=yes | ||
16461 | fi | ||
16462 | |||
16463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16464 | |||
16465 | fi | ||
16466 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
16467 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
16468 | if test $ac_cv_func_getpgrp_void = yes; then | ||
16469 | |||
16470 | cat >>confdefs.h <<\_ACEOF | ||
16471 | #define GETPGRP_VOID 1 | ||
16472 | _ACEOF | ||
16473 | |||
16474 | fi | ||
16475 | |||
16476 | |||
16477 | # Search for OpenSSL | ||
16478 | saved_CPPFLAGS="$CPPFLAGS" | ||
16479 | saved_LDFLAGS="$LDFLAGS" | ||
16480 | |||
16481 | # Check whether --with-ssl-dir was given. | ||
16482 | if test "${with_ssl_dir+set}" = set; then | ||
16483 | withval=$with_ssl_dir; | ||
16484 | if test "x$withval" != "xno" ; then | ||
16485 | case "$withval" in | ||
16486 | # Relative paths | ||
16487 | ./*|../*) withval="`pwd`/$withval" | ||
16488 | esac | ||
16489 | if test -d "$withval/lib"; then | ||
16490 | if test -n "${need_dash_r}"; then | ||
16491 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
16492 | else | ||
16493 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
16494 | fi | ||
16495 | else | ||
16496 | if test -n "${need_dash_r}"; then | ||
16497 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
16498 | else | ||
16499 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
16500 | fi | ||
16501 | fi | ||
16502 | if test -d "$withval/include"; then | ||
16503 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
16504 | else | ||
16505 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
16506 | fi | ||
16507 | fi | ||
16508 | |||
16509 | |||
16510 | fi | ||
16511 | |||
16512 | LIBS="-lcrypto $LIBS" | ||
16513 | cat >conftest.$ac_ext <<_ACEOF | ||
16514 | /* confdefs.h. */ | ||
16515 | _ACEOF | ||
16516 | cat confdefs.h >>conftest.$ac_ext | ||
16517 | cat >>conftest.$ac_ext <<_ACEOF | ||
16518 | /* end confdefs.h. */ | ||
16519 | |||
16520 | /* Override any GCC internal prototype to avoid an error. | ||
16521 | Use char because int might match the return type of a GCC | ||
16522 | builtin and then its argument prototype would still apply. */ | ||
16523 | #ifdef __cplusplus | ||
16524 | extern "C" | ||
16525 | #endif | ||
16526 | char RAND_add (); | ||
16527 | int | ||
16528 | main () | ||
16529 | { | ||
16530 | return RAND_add (); | ||
16531 | ; | ||
16532 | return 0; | ||
16533 | } | ||
16534 | _ACEOF | ||
16535 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16536 | if { (ac_try="$ac_link" | ||
16537 | case "(($ac_try" in | ||
16538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16539 | *) ac_try_echo=$ac_try;; | ||
16540 | esac | ||
16541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16542 | (eval "$ac_link") 2>conftest.er1 | ||
16543 | ac_status=$? | ||
16544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16545 | rm -f conftest.er1 | ||
16546 | cat conftest.err >&5 | ||
16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16548 | (exit $ac_status); } && { | ||
16549 | test -z "$ac_c_werror_flag" || | ||
16550 | test ! -s conftest.err | ||
16551 | } && test -s conftest$ac_exeext && | ||
16552 | $as_test_x conftest$ac_exeext; then | ||
16553 | |||
16554 | cat >>confdefs.h <<\_ACEOF | ||
16555 | #define HAVE_OPENSSL 1 | ||
16556 | _ACEOF | ||
16557 | |||
16558 | else | ||
16559 | echo "$as_me: failed program was:" >&5 | ||
16560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16561 | |||
16562 | |||
16563 | if test -n "${need_dash_r}"; then | ||
16564 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16565 | else | ||
16566 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16567 | fi | ||
16568 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
16569 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16570 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
16571 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
16572 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16574 | fi | ||
16575 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
16576 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
16577 | else | ||
16578 | # Is the header compilable? | ||
16579 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
16580 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
16581 | cat >conftest.$ac_ext <<_ACEOF | ||
16582 | /* confdefs.h. */ | ||
16583 | _ACEOF | ||
16584 | cat confdefs.h >>conftest.$ac_ext | ||
16585 | cat >>conftest.$ac_ext <<_ACEOF | ||
16586 | /* end confdefs.h. */ | ||
16587 | $ac_includes_default | ||
16588 | #include <openssl/opensslv.h> | ||
16589 | _ACEOF | ||
16590 | rm -f conftest.$ac_objext | ||
16591 | if { (ac_try="$ac_compile" | ||
16592 | case "(($ac_try" in | ||
16593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16594 | *) ac_try_echo=$ac_try;; | ||
16595 | esac | ||
16596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16597 | (eval "$ac_compile") 2>conftest.er1 | ||
16598 | ac_status=$? | ||
16599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16600 | rm -f conftest.er1 | ||
16601 | cat conftest.err >&5 | ||
16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16603 | (exit $ac_status); } && { | ||
16604 | test -z "$ac_c_werror_flag" || | ||
16605 | test ! -s conftest.err | ||
16606 | } && test -s conftest.$ac_objext; then | ||
16607 | ac_header_compiler=yes | ||
16608 | else | ||
16609 | echo "$as_me: failed program was:" >&5 | ||
16610 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16611 | |||
16612 | ac_header_compiler=no | ||
16613 | fi | ||
16614 | |||
16615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16616 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
16617 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
16618 | |||
16619 | # Is the header present? | ||
16620 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
16621 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
16622 | cat >conftest.$ac_ext <<_ACEOF | ||
16623 | /* confdefs.h. */ | ||
16624 | _ACEOF | ||
16625 | cat confdefs.h >>conftest.$ac_ext | ||
16626 | cat >>conftest.$ac_ext <<_ACEOF | ||
16627 | /* end confdefs.h. */ | ||
16628 | #include <openssl/opensslv.h> | ||
16629 | _ACEOF | ||
16630 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
16631 | case "(($ac_try" in | ||
16632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16633 | *) ac_try_echo=$ac_try;; | ||
16634 | esac | ||
16635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16636 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
16637 | ac_status=$? | ||
16638 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16639 | rm -f conftest.er1 | ||
16640 | cat conftest.err >&5 | ||
16641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16642 | (exit $ac_status); } >/dev/null && { | ||
16643 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
16644 | test ! -s conftest.err | ||
16645 | }; then | ||
16646 | ac_header_preproc=yes | ||
16647 | else | ||
16648 | echo "$as_me: failed program was:" >&5 | ||
16649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16650 | |||
16651 | ac_header_preproc=no | ||
16652 | fi | ||
16653 | |||
16654 | rm -f conftest.err conftest.$ac_ext | ||
16655 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
16656 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
16657 | |||
16658 | # So? What about this header? | ||
16659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
16660 | yes:no: ) | ||
16661 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
16662 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
16663 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
16664 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
16665 | ac_header_preproc=yes | ||
16666 | ;; | ||
16667 | no:yes:* ) | ||
16668 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
16669 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
16670 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
16671 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
16672 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
16673 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
16674 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
16675 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
16676 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
16677 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
16678 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
16679 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
16680 | ( cat <<\_ASBOX | ||
16681 | ## ------------------------------------------- ## | ||
16682 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
16683 | ## ------------------------------------------- ## | ||
16684 | _ASBOX | ||
16685 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
16686 | ;; | ||
16687 | esac | ||
16688 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
16689 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
16690 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16692 | else | ||
16693 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
16694 | fi | ||
16695 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
16696 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
16697 | |||
16698 | fi | ||
16699 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
16700 | : | ||
16701 | else | ||
16702 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
16703 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
16704 | { (exit 1); exit 1; }; } | ||
16705 | fi | ||
16706 | |||
16707 | |||
16708 | cat >conftest.$ac_ext <<_ACEOF | ||
16709 | /* confdefs.h. */ | ||
16710 | _ACEOF | ||
16711 | cat confdefs.h >>conftest.$ac_ext | ||
16712 | cat >>conftest.$ac_ext <<_ACEOF | ||
16713 | /* end confdefs.h. */ | ||
16714 | |||
16715 | /* Override any GCC internal prototype to avoid an error. | ||
16716 | Use char because int might match the return type of a GCC | ||
16717 | builtin and then its argument prototype would still apply. */ | ||
16718 | #ifdef __cplusplus | ||
16719 | extern "C" | ||
16720 | #endif | ||
16721 | char RAND_add (); | ||
16722 | int | ||
16723 | main () | ||
16724 | { | ||
16725 | return RAND_add (); | ||
16726 | ; | ||
16727 | return 0; | ||
16728 | } | ||
16729 | _ACEOF | ||
16730 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16731 | if { (ac_try="$ac_link" | ||
16732 | case "(($ac_try" in | ||
16733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16734 | *) ac_try_echo=$ac_try;; | ||
16735 | esac | ||
16736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16737 | (eval "$ac_link") 2>conftest.er1 | ||
16738 | ac_status=$? | ||
16739 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16740 | rm -f conftest.er1 | ||
16741 | cat conftest.err >&5 | ||
16742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16743 | (exit $ac_status); } && { | ||
16744 | test -z "$ac_c_werror_flag" || | ||
16745 | test ! -s conftest.err | ||
16746 | } && test -s conftest$ac_exeext && | ||
16747 | $as_test_x conftest$ac_exeext; then | ||
16748 | cat >>confdefs.h <<\_ACEOF | ||
16749 | #define HAVE_OPENSSL 1 | ||
16750 | _ACEOF | ||
16751 | |||
16752 | else | ||
16753 | echo "$as_me: failed program was:" >&5 | ||
16754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16755 | |||
16756 | |||
16757 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
16758 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
16759 | { (exit 1); exit 1; }; } | ||
16760 | |||
16761 | |||
16762 | fi | ||
16763 | |||
16764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16765 | conftest$ac_exeext conftest.$ac_ext | ||
16766 | |||
16767 | |||
16768 | fi | ||
16769 | |||
16770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16771 | conftest$ac_exeext conftest.$ac_ext | ||
16772 | |||
16773 | # Determine OpenSSL header version | ||
16774 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
16775 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
16776 | if test "$cross_compiling" = yes; then | ||
16777 | |||
16778 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16779 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16780 | |||
16781 | |||
16782 | else | ||
16783 | cat >conftest.$ac_ext <<_ACEOF | ||
16784 | /* confdefs.h. */ | ||
16785 | _ACEOF | ||
16786 | cat confdefs.h >>conftest.$ac_ext | ||
16787 | cat >>conftest.$ac_ext <<_ACEOF | ||
16788 | /* end confdefs.h. */ | ||
16789 | |||
16790 | #include <stdio.h> | ||
16791 | #include <string.h> | ||
16792 | #include <openssl/opensslv.h> | ||
16793 | #define DATA "conftest.sslincver" | ||
16794 | int main(void) { | ||
16795 | FILE *fd; | ||
16796 | int rc; | ||
16797 | |||
16798 | fd = fopen(DATA,"w"); | ||
16799 | if(fd == NULL) | ||
16800 | exit(1); | ||
16801 | |||
16802 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
16803 | exit(1); | ||
16804 | |||
16805 | exit(0); | ||
16806 | } | ||
16807 | |||
16808 | _ACEOF | ||
16809 | rm -f conftest$ac_exeext | ||
16810 | if { (ac_try="$ac_link" | ||
16811 | case "(($ac_try" in | ||
16812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16813 | *) ac_try_echo=$ac_try;; | ||
16814 | esac | ||
16815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16816 | (eval "$ac_link") 2>&5 | ||
16817 | ac_status=$? | ||
16818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16820 | { (case "(($ac_try" in | ||
16821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16822 | *) ac_try_echo=$ac_try;; | ||
16823 | esac | ||
16824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16825 | (eval "$ac_try") 2>&5 | ||
16826 | ac_status=$? | ||
16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16828 | (exit $ac_status); }; }; then | ||
16829 | |||
16830 | ssl_header_ver=`cat conftest.sslincver` | ||
16831 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
16832 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
16833 | |||
16834 | else | ||
16835 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16836 | echo "$as_me: failed program was:" >&5 | ||
16837 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16838 | |||
16839 | ( exit $ac_status ) | ||
16840 | |||
16841 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16842 | echo "${ECHO_T}not found" >&6; } | ||
16843 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
16844 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
16845 | { (exit 1); exit 1; }; } | ||
16846 | |||
16847 | fi | ||
16848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16849 | fi | ||
16850 | |||
16851 | |||
16852 | |||
16853 | # Determine OpenSSL library version | ||
16854 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
16855 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
16856 | if test "$cross_compiling" = yes; then | ||
16857 | |||
16858 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16859 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16860 | |||
16861 | |||
16862 | else | ||
16863 | cat >conftest.$ac_ext <<_ACEOF | ||
16864 | /* confdefs.h. */ | ||
16865 | _ACEOF | ||
16866 | cat confdefs.h >>conftest.$ac_ext | ||
16867 | cat >>conftest.$ac_ext <<_ACEOF | ||
16868 | /* end confdefs.h. */ | ||
16869 | |||
16870 | #include <stdio.h> | ||
16871 | #include <string.h> | ||
16872 | #include <openssl/opensslv.h> | ||
16873 | #include <openssl/crypto.h> | ||
16874 | #define DATA "conftest.ssllibver" | ||
16875 | int main(void) { | ||
16876 | FILE *fd; | ||
16877 | int rc; | ||
16878 | |||
16879 | fd = fopen(DATA,"w"); | ||
16880 | if(fd == NULL) | ||
16881 | exit(1); | ||
16882 | |||
16883 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
16884 | exit(1); | ||
16885 | |||
16886 | exit(0); | ||
16887 | } | ||
16888 | |||
16889 | _ACEOF | ||
16890 | rm -f conftest$ac_exeext | ||
16891 | if { (ac_try="$ac_link" | ||
16892 | case "(($ac_try" in | ||
16893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16894 | *) ac_try_echo=$ac_try;; | ||
16895 | esac | ||
16896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16897 | (eval "$ac_link") 2>&5 | ||
16898 | ac_status=$? | ||
16899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16901 | { (case "(($ac_try" in | ||
16902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16903 | *) ac_try_echo=$ac_try;; | ||
16904 | esac | ||
16905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16906 | (eval "$ac_try") 2>&5 | ||
16907 | ac_status=$? | ||
16908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16909 | (exit $ac_status); }; }; then | ||
16910 | |||
16911 | ssl_library_ver=`cat conftest.ssllibver` | ||
16912 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
16913 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
16914 | |||
16915 | else | ||
16916 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16917 | echo "$as_me: failed program was:" >&5 | ||
16918 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16919 | |||
16920 | ( exit $ac_status ) | ||
16921 | |||
16922 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16923 | echo "${ECHO_T}not found" >&6; } | ||
16924 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
16925 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
16926 | { (exit 1); exit 1; }; } | ||
16927 | |||
16928 | fi | ||
16929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16930 | fi | ||
16931 | |||
16932 | |||
16933 | |||
16934 | |||
16935 | # Check whether --with-openssl-header-check was given. | ||
16936 | if test "${with_openssl_header_check+set}" = set; then | ||
16937 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
16938 | openssl_check_nonfatal=1 | ||
16939 | fi | ||
16940 | |||
16941 | |||
16942 | fi | ||
16943 | |||
16944 | |||
16945 | # Sanity check OpenSSL headers | ||
16946 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
16947 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
16948 | if test "$cross_compiling" = yes; then | ||
16949 | |||
16950 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16951 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16952 | |||
16953 | |||
16954 | else | ||
16955 | cat >conftest.$ac_ext <<_ACEOF | ||
16956 | /* confdefs.h. */ | ||
16957 | _ACEOF | ||
16958 | cat confdefs.h >>conftest.$ac_ext | ||
16959 | cat >>conftest.$ac_ext <<_ACEOF | ||
16960 | /* end confdefs.h. */ | ||
16961 | |||
16962 | #include <string.h> | ||
16963 | #include <openssl/opensslv.h> | ||
16964 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
16965 | |||
16966 | _ACEOF | ||
16967 | rm -f conftest$ac_exeext | ||
16968 | if { (ac_try="$ac_link" | ||
16969 | case "(($ac_try" in | ||
16970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16971 | *) ac_try_echo=$ac_try;; | ||
16972 | esac | ||
16973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16974 | (eval "$ac_link") 2>&5 | ||
16975 | ac_status=$? | ||
16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16977 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16978 | { (case "(($ac_try" in | ||
16979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16980 | *) ac_try_echo=$ac_try;; | ||
16981 | esac | ||
16982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16983 | (eval "$ac_try") 2>&5 | ||
16984 | ac_status=$? | ||
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16986 | (exit $ac_status); }; }; then | ||
16987 | |||
16988 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16989 | echo "${ECHO_T}yes" >&6; } | ||
16990 | |||
16991 | else | ||
16992 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16993 | echo "$as_me: failed program was:" >&5 | ||
16994 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16995 | |||
16996 | ( exit $ac_status ) | ||
16997 | |||
16998 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16999 | echo "${ECHO_T}no" >&6; } | ||
17000 | if test "x$openssl_check_nonfatal" = "x"; then | ||
17001 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
17002 | library. Check config.log for details. | ||
17003 | If you are sure your installation is consistent, you can disable the check | ||
17004 | by running \"./configure --without-openssl-header-check\". | ||
17005 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17006 | " >&5 | ||
17007 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
17008 | library. Check config.log for details. | ||
17009 | If you are sure your installation is consistent, you can disable the check | ||
17010 | by running \"./configure --without-openssl-header-check\". | ||
17011 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17012 | " >&2;} | ||
17013 | { (exit 1); exit 1; }; } | ||
17014 | else | ||
17015 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
17016 | library. Check config.log for details. | ||
17017 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
17018 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
17019 | library. Check config.log for details. | ||
17020 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
17021 | fi | ||
17022 | |||
17023 | fi | ||
17024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17025 | fi | ||
17026 | |||
17027 | |||
17028 | |||
17029 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
17030 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
17031 | cat >conftest.$ac_ext <<_ACEOF | ||
17032 | /* confdefs.h. */ | ||
17033 | _ACEOF | ||
17034 | cat confdefs.h >>conftest.$ac_ext | ||
17035 | cat >>conftest.$ac_ext <<_ACEOF | ||
17036 | /* end confdefs.h. */ | ||
17037 | |||
17038 | #include <openssl/evp.h> | ||
17039 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17040 | |||
17041 | _ACEOF | ||
17042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17043 | if { (ac_try="$ac_link" | ||
17044 | case "(($ac_try" in | ||
17045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17046 | *) ac_try_echo=$ac_try;; | ||
17047 | esac | ||
17048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17049 | (eval "$ac_link") 2>conftest.er1 | ||
17050 | ac_status=$? | ||
17051 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17052 | rm -f conftest.er1 | ||
17053 | cat conftest.err >&5 | ||
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17055 | (exit $ac_status); } && { | ||
17056 | test -z "$ac_c_werror_flag" || | ||
17057 | test ! -s conftest.err | ||
17058 | } && test -s conftest$ac_exeext && | ||
17059 | $as_test_x conftest$ac_exeext; then | ||
17060 | |||
17061 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17062 | echo "${ECHO_T}yes" >&6; } | ||
17063 | |||
17064 | else | ||
17065 | echo "$as_me: failed program was:" >&5 | ||
17066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17067 | |||
17068 | |||
17069 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17070 | echo "${ECHO_T}no" >&6; } | ||
17071 | saved_LIBS="$LIBS" | ||
17072 | LIBS="$LIBS -ldl" | ||
17073 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
17074 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
17075 | cat >conftest.$ac_ext <<_ACEOF | ||
17076 | /* confdefs.h. */ | ||
17077 | _ACEOF | ||
17078 | cat confdefs.h >>conftest.$ac_ext | ||
17079 | cat >>conftest.$ac_ext <<_ACEOF | ||
17080 | /* end confdefs.h. */ | ||
17081 | |||
17082 | #include <openssl/evp.h> | ||
17083 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17084 | |||
17085 | _ACEOF | ||
17086 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17087 | if { (ac_try="$ac_link" | ||
17088 | case "(($ac_try" in | ||
17089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17090 | *) ac_try_echo=$ac_try;; | ||
17091 | esac | ||
17092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17093 | (eval "$ac_link") 2>conftest.er1 | ||
17094 | ac_status=$? | ||
17095 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17096 | rm -f conftest.er1 | ||
17097 | cat conftest.err >&5 | ||
17098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17099 | (exit $ac_status); } && { | ||
17100 | test -z "$ac_c_werror_flag" || | ||
17101 | test ! -s conftest.err | ||
17102 | } && test -s conftest$ac_exeext && | ||
17103 | $as_test_x conftest$ac_exeext; then | ||
17104 | |||
17105 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17106 | echo "${ECHO_T}yes" >&6; } | ||
17107 | |||
17108 | else | ||
17109 | echo "$as_me: failed program was:" >&5 | ||
17110 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17111 | |||
17112 | |||
17113 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17114 | echo "${ECHO_T}no" >&6; } | ||
17115 | LIBS="$saved_LIBS" | ||
17116 | |||
17117 | |||
17118 | fi | ||
17119 | |||
17120 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17121 | conftest$ac_exeext conftest.$ac_ext | ||
17122 | |||
17123 | |||
17124 | fi | ||
17125 | |||
17126 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17127 | conftest$ac_exeext conftest.$ac_ext | ||
17128 | |||
17129 | |||
17130 | # Check whether --with-ssl-engine was given. | ||
17131 | if test "${with_ssl_engine+set}" = set; then | ||
17132 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
17133 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
17134 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
17135 | cat >conftest.$ac_ext <<_ACEOF | ||
17136 | /* confdefs.h. */ | ||
17137 | _ACEOF | ||
17138 | cat confdefs.h >>conftest.$ac_ext | ||
17139 | cat >>conftest.$ac_ext <<_ACEOF | ||
17140 | /* end confdefs.h. */ | ||
17141 | #include <openssl/engine.h> | ||
17142 | int | ||
17143 | main () | ||
17144 | { | ||
17145 | |||
17146 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
17147 | |||
17148 | ; | ||
17149 | return 0; | ||
17150 | } | ||
17151 | _ACEOF | ||
17152 | rm -f conftest.$ac_objext | ||
17153 | if { (ac_try="$ac_compile" | ||
17154 | case "(($ac_try" in | ||
17155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17156 | *) ac_try_echo=$ac_try;; | ||
17157 | esac | ||
17158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17159 | (eval "$ac_compile") 2>conftest.er1 | ||
17160 | ac_status=$? | ||
17161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17162 | rm -f conftest.er1 | ||
17163 | cat conftest.err >&5 | ||
17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17165 | (exit $ac_status); } && { | ||
17166 | test -z "$ac_c_werror_flag" || | ||
17167 | test ! -s conftest.err | ||
17168 | } && test -s conftest.$ac_objext; then | ||
17169 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17170 | echo "${ECHO_T}yes" >&6; } | ||
17171 | |||
17172 | cat >>confdefs.h <<\_ACEOF | ||
17173 | #define USE_OPENSSL_ENGINE 1 | ||
17174 | _ACEOF | ||
17175 | |||
17176 | |||
17177 | else | ||
17178 | echo "$as_me: failed program was:" >&5 | ||
17179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17180 | |||
17181 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
17182 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
17183 | { (exit 1); exit 1; }; } | ||
17184 | |||
17185 | fi | ||
17186 | |||
17187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17188 | fi | ||
17189 | |||
17190 | fi | ||
17191 | |||
17192 | |||
17193 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
17194 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
17195 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
17196 | cat >conftest.$ac_ext <<_ACEOF | ||
17197 | /* confdefs.h. */ | ||
17198 | _ACEOF | ||
17199 | cat confdefs.h >>conftest.$ac_ext | ||
17200 | cat >>conftest.$ac_ext <<_ACEOF | ||
17201 | /* end confdefs.h. */ | ||
17202 | |||
17203 | #include <string.h> | ||
17204 | #include <openssl/evp.h> | ||
17205 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
17206 | |||
17207 | _ACEOF | ||
17208 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17209 | if { (ac_try="$ac_link" | ||
17210 | case "(($ac_try" in | ||
17211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17212 | *) ac_try_echo=$ac_try;; | ||
17213 | esac | ||
17214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17215 | (eval "$ac_link") 2>conftest.er1 | ||
17216 | ac_status=$? | ||
17217 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17218 | rm -f conftest.er1 | ||
17219 | cat conftest.err >&5 | ||
17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17221 | (exit $ac_status); } && { | ||
17222 | test -z "$ac_c_werror_flag" || | ||
17223 | test ! -s conftest.err | ||
17224 | } && test -s conftest$ac_exeext && | ||
17225 | $as_test_x conftest$ac_exeext; then | ||
17226 | |||
17227 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17228 | echo "${ECHO_T}no" >&6; } | ||
17229 | |||
17230 | else | ||
17231 | echo "$as_me: failed program was:" >&5 | ||
17232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17233 | |||
17234 | |||
17235 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17236 | echo "${ECHO_T}yes" >&6; } | ||
17237 | |||
17238 | cat >>confdefs.h <<\_ACEOF | ||
17239 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
17240 | _ACEOF | ||
17241 | |||
17242 | |||
17243 | |||
17244 | fi | ||
17245 | |||
17246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17247 | conftest$ac_exeext conftest.$ac_ext | ||
17248 | |||
17249 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
17250 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
17251 | cat >conftest.$ac_ext <<_ACEOF | ||
17252 | /* confdefs.h. */ | ||
17253 | _ACEOF | ||
17254 | cat confdefs.h >>conftest.$ac_ext | ||
17255 | cat >>conftest.$ac_ext <<_ACEOF | ||
17256 | /* end confdefs.h. */ | ||
17257 | |||
17258 | #include <string.h> | ||
17259 | #include <openssl/evp.h> | ||
17260 | int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); } | ||
17261 | |||
17262 | _ACEOF | ||
17263 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17264 | if { (ac_try="$ac_link" | ||
17265 | case "(($ac_try" in | ||
17266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17267 | *) ac_try_echo=$ac_try;; | ||
17268 | esac | ||
17269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17270 | (eval "$ac_link") 2>conftest.er1 | ||
17271 | ac_status=$? | ||
17272 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17273 | rm -f conftest.er1 | ||
17274 | cat conftest.err >&5 | ||
17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17276 | (exit $ac_status); } && { | ||
17277 | test -z "$ac_c_werror_flag" || | ||
17278 | test ! -s conftest.err | ||
17279 | } && test -s conftest$ac_exeext && | ||
17280 | $as_test_x conftest$ac_exeext; then | ||
17281 | |||
17282 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17283 | echo "${ECHO_T}yes" >&6; } | ||
17284 | |||
17285 | else | ||
17286 | echo "$as_me: failed program was:" >&5 | ||
17287 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17288 | |||
17289 | |||
17290 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17291 | echo "${ECHO_T}no" >&6; } | ||
17292 | |||
17293 | cat >>confdefs.h <<\_ACEOF | ||
17294 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
17295 | _ACEOF | ||
17296 | |||
17297 | |||
17298 | |||
17299 | fi | ||
17300 | |||
17301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17302 | conftest$ac_exeext conftest.$ac_ext | ||
17303 | |||
17304 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
17305 | # because the system crypt() is more featureful. | ||
17306 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
17307 | |||
17308 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17309 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
17310 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17312 | else | ||
17313 | ac_check_lib_save_LIBS=$LIBS | ||
17314 | LIBS="-lcrypt $LIBS" | ||
17315 | cat >conftest.$ac_ext <<_ACEOF | ||
17316 | /* confdefs.h. */ | ||
17317 | _ACEOF | ||
17318 | cat confdefs.h >>conftest.$ac_ext | ||
17319 | cat >>conftest.$ac_ext <<_ACEOF | ||
17320 | /* end confdefs.h. */ | ||
17321 | |||
17322 | /* Override any GCC internal prototype to avoid an error. | ||
17323 | Use char because int might match the return type of a GCC | ||
17324 | builtin and then its argument prototype would still apply. */ | ||
17325 | #ifdef __cplusplus | ||
17326 | extern "C" | ||
17327 | #endif | ||
17328 | char crypt (); | ||
17329 | int | ||
17330 | main () | ||
17331 | { | ||
17332 | return crypt (); | ||
17333 | ; | ||
17334 | return 0; | ||
17335 | } | ||
17336 | _ACEOF | ||
17337 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17338 | if { (ac_try="$ac_link" | ||
17339 | case "(($ac_try" in | ||
17340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17341 | *) ac_try_echo=$ac_try;; | ||
17342 | esac | ||
17343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17344 | (eval "$ac_link") 2>conftest.er1 | ||
17345 | ac_status=$? | ||
17346 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17347 | rm -f conftest.er1 | ||
17348 | cat conftest.err >&5 | ||
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17350 | (exit $ac_status); } && { | ||
17351 | test -z "$ac_c_werror_flag" || | ||
17352 | test ! -s conftest.err | ||
17353 | } && test -s conftest$ac_exeext && | ||
17354 | $as_test_x conftest$ac_exeext; then | ||
17355 | ac_cv_lib_crypt_crypt=yes | ||
17356 | else | ||
17357 | echo "$as_me: failed program was:" >&5 | ||
17358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17359 | |||
17360 | ac_cv_lib_crypt_crypt=no | ||
17361 | fi | ||
17362 | |||
17363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17364 | conftest$ac_exeext conftest.$ac_ext | ||
17365 | LIBS=$ac_check_lib_save_LIBS | ||
17366 | fi | ||
17367 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17368 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
17369 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17370 | cat >>confdefs.h <<_ACEOF | ||
17371 | #define HAVE_LIBCRYPT 1 | ||
17372 | _ACEOF | ||
17373 | |||
17374 | LIBS="-lcrypt $LIBS" | ||
17375 | |||
17376 | fi | ||
17377 | |||
17378 | fi | ||
17379 | |||
17380 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
17381 | # version in OpenSSL. | ||
17382 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
17383 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17384 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
17385 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17387 | else | ||
17388 | ac_check_lib_save_LIBS=$LIBS | ||
17389 | LIBS="-lcrypt $LIBS" | ||
17390 | cat >conftest.$ac_ext <<_ACEOF | ||
17391 | /* confdefs.h. */ | ||
17392 | _ACEOF | ||
17393 | cat confdefs.h >>conftest.$ac_ext | ||
17394 | cat >>conftest.$ac_ext <<_ACEOF | ||
17395 | /* end confdefs.h. */ | ||
17396 | |||
17397 | /* Override any GCC internal prototype to avoid an error. | ||
17398 | Use char because int might match the return type of a GCC | ||
17399 | builtin and then its argument prototype would still apply. */ | ||
17400 | #ifdef __cplusplus | ||
17401 | extern "C" | ||
17402 | #endif | ||
17403 | char crypt (); | ||
17404 | int | ||
17405 | main () | ||
17406 | { | ||
17407 | return crypt (); | ||
17408 | ; | ||
17409 | return 0; | ||
17410 | } | ||
17411 | _ACEOF | ||
17412 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17413 | if { (ac_try="$ac_link" | ||
17414 | case "(($ac_try" in | ||
17415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17416 | *) ac_try_echo=$ac_try;; | ||
17417 | esac | ||
17418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17419 | (eval "$ac_link") 2>conftest.er1 | ||
17420 | ac_status=$? | ||
17421 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17422 | rm -f conftest.er1 | ||
17423 | cat conftest.err >&5 | ||
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17425 | (exit $ac_status); } && { | ||
17426 | test -z "$ac_c_werror_flag" || | ||
17427 | test ! -s conftest.err | ||
17428 | } && test -s conftest$ac_exeext && | ||
17429 | $as_test_x conftest$ac_exeext; then | ||
17430 | ac_cv_lib_crypt_crypt=yes | ||
17431 | else | ||
17432 | echo "$as_me: failed program was:" >&5 | ||
17433 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17434 | |||
17435 | ac_cv_lib_crypt_crypt=no | ||
17436 | fi | ||
17437 | |||
17438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17439 | conftest$ac_exeext conftest.$ac_ext | ||
17440 | LIBS=$ac_check_lib_save_LIBS | ||
17441 | fi | ||
17442 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17443 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
17444 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17445 | LIBS="$LIBS -lcrypt" | ||
17446 | fi | ||
17447 | |||
17448 | fi | ||
17449 | |||
17450 | # Search for SHA256 support in libc and/or OpenSSL | ||
17451 | |||
17452 | |||
17453 | for ac_func in SHA256_Update EVP_sha256 | ||
17454 | do | ||
17455 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17456 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17457 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17458 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17460 | else | ||
17461 | cat >conftest.$ac_ext <<_ACEOF | ||
17462 | /* confdefs.h. */ | ||
17463 | _ACEOF | ||
17464 | cat confdefs.h >>conftest.$ac_ext | ||
17465 | cat >>conftest.$ac_ext <<_ACEOF | ||
17466 | /* end confdefs.h. */ | ||
17467 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17469 | #define $ac_func innocuous_$ac_func | ||
17470 | |||
17471 | /* System header to define __stub macros and hopefully few prototypes, | ||
17472 | which can conflict with char $ac_func (); below. | ||
17473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17474 | <limits.h> exists even on freestanding compilers. */ | ||
17475 | |||
17476 | #ifdef __STDC__ | ||
17477 | # include <limits.h> | ||
17478 | #else | ||
17479 | # include <assert.h> | ||
17480 | #endif | ||
17481 | |||
17482 | #undef $ac_func | ||
17483 | |||
17484 | /* Override any GCC internal prototype to avoid an error. | ||
17485 | Use char because int might match the return type of a GCC | ||
17486 | builtin and then its argument prototype would still apply. */ | ||
17487 | #ifdef __cplusplus | ||
17488 | extern "C" | ||
17489 | #endif | ||
17490 | char $ac_func (); | ||
17491 | /* The GNU C library defines this for functions which it implements | ||
17492 | to always fail with ENOSYS. Some functions are actually named | ||
17493 | something starting with __ and the normal name is an alias. */ | ||
17494 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17495 | choke me | ||
17496 | #endif | ||
17497 | |||
17498 | int | ||
17499 | main () | ||
17500 | { | ||
17501 | return $ac_func (); | ||
17502 | ; | ||
17503 | return 0; | ||
17504 | } | ||
17505 | _ACEOF | ||
17506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17507 | if { (ac_try="$ac_link" | ||
17508 | case "(($ac_try" in | ||
17509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17510 | *) ac_try_echo=$ac_try;; | ||
17511 | esac | ||
17512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17513 | (eval "$ac_link") 2>conftest.er1 | ||
17514 | ac_status=$? | ||
17515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17516 | rm -f conftest.er1 | ||
17517 | cat conftest.err >&5 | ||
17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17519 | (exit $ac_status); } && { | ||
17520 | test -z "$ac_c_werror_flag" || | ||
17521 | test ! -s conftest.err | ||
17522 | } && test -s conftest$ac_exeext && | ||
17523 | $as_test_x conftest$ac_exeext; then | ||
17524 | eval "$as_ac_var=yes" | ||
17525 | else | ||
17526 | echo "$as_me: failed program was:" >&5 | ||
17527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17528 | |||
17529 | eval "$as_ac_var=no" | ||
17530 | fi | ||
17531 | |||
17532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17533 | conftest$ac_exeext conftest.$ac_ext | ||
17534 | fi | ||
17535 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17537 | echo "${ECHO_T}$ac_res" >&6; } | ||
17538 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17539 | cat >>confdefs.h <<_ACEOF | ||
17540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17541 | _ACEOF | ||
17542 | |||
17543 | fi | ||
17544 | done | ||
17545 | |||
17546 | |||
17547 | saved_LIBS="$LIBS" | ||
17548 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
17549 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
17550 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
17551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17552 | else | ||
17553 | ac_check_lib_save_LIBS=$LIBS | ||
17554 | LIBS="-liaf $LIBS" | ||
17555 | cat >conftest.$ac_ext <<_ACEOF | ||
17556 | /* confdefs.h. */ | ||
17557 | _ACEOF | ||
17558 | cat confdefs.h >>conftest.$ac_ext | ||
17559 | cat >>conftest.$ac_ext <<_ACEOF | ||
17560 | /* end confdefs.h. */ | ||
17561 | |||
17562 | /* Override any GCC internal prototype to avoid an error. | ||
17563 | Use char because int might match the return type of a GCC | ||
17564 | builtin and then its argument prototype would still apply. */ | ||
17565 | #ifdef __cplusplus | ||
17566 | extern "C" | ||
17567 | #endif | ||
17568 | char ia_openinfo (); | ||
17569 | int | ||
17570 | main () | ||
17571 | { | ||
17572 | return ia_openinfo (); | ||
17573 | ; | ||
17574 | return 0; | ||
17575 | } | ||
17576 | _ACEOF | ||
17577 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17578 | if { (ac_try="$ac_link" | ||
17579 | case "(($ac_try" in | ||
17580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17581 | *) ac_try_echo=$ac_try;; | ||
17582 | esac | ||
17583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17584 | (eval "$ac_link") 2>conftest.er1 | ||
17585 | ac_status=$? | ||
17586 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17587 | rm -f conftest.er1 | ||
17588 | cat conftest.err >&5 | ||
17589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17590 | (exit $ac_status); } && { | ||
17591 | test -z "$ac_c_werror_flag" || | ||
17592 | test ! -s conftest.err | ||
17593 | } && test -s conftest$ac_exeext && | ||
17594 | $as_test_x conftest$ac_exeext; then | ||
17595 | ac_cv_lib_iaf_ia_openinfo=yes | ||
17596 | else | ||
17597 | echo "$as_me: failed program was:" >&5 | ||
17598 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17599 | |||
17600 | ac_cv_lib_iaf_ia_openinfo=no | ||
17601 | fi | ||
17602 | |||
17603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17604 | conftest$ac_exeext conftest.$ac_ext | ||
17605 | LIBS=$ac_check_lib_save_LIBS | ||
17606 | fi | ||
17607 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
17608 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
17609 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
17610 | |||
17611 | LIBS="$LIBS -liaf" | ||
17612 | |||
17613 | for ac_func in set_id | ||
17614 | do | ||
17615 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17616 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17617 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17618 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17620 | else | ||
17621 | cat >conftest.$ac_ext <<_ACEOF | ||
17622 | /* confdefs.h. */ | ||
17623 | _ACEOF | ||
17624 | cat confdefs.h >>conftest.$ac_ext | ||
17625 | cat >>conftest.$ac_ext <<_ACEOF | ||
17626 | /* end confdefs.h. */ | ||
17627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17629 | #define $ac_func innocuous_$ac_func | ||
17630 | |||
17631 | /* System header to define __stub macros and hopefully few prototypes, | ||
17632 | which can conflict with char $ac_func (); below. | ||
17633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17634 | <limits.h> exists even on freestanding compilers. */ | ||
17635 | |||
17636 | #ifdef __STDC__ | ||
17637 | # include <limits.h> | ||
17638 | #else | ||
17639 | # include <assert.h> | ||
17640 | #endif | ||
17641 | |||
17642 | #undef $ac_func | ||
17643 | |||
17644 | /* Override any GCC internal prototype to avoid an error. | ||
17645 | Use char because int might match the return type of a GCC | ||
17646 | builtin and then its argument prototype would still apply. */ | ||
17647 | #ifdef __cplusplus | ||
17648 | extern "C" | ||
17649 | #endif | ||
17650 | char $ac_func (); | ||
17651 | /* The GNU C library defines this for functions which it implements | ||
17652 | to always fail with ENOSYS. Some functions are actually named | ||
17653 | something starting with __ and the normal name is an alias. */ | ||
17654 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17655 | choke me | ||
17656 | #endif | ||
17657 | |||
17658 | int | ||
17659 | main () | ||
17660 | { | ||
17661 | return $ac_func (); | ||
17662 | ; | ||
17663 | return 0; | ||
17664 | } | ||
17665 | _ACEOF | ||
17666 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17667 | if { (ac_try="$ac_link" | ||
17668 | case "(($ac_try" in | ||
17669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17670 | *) ac_try_echo=$ac_try;; | ||
17671 | esac | ||
17672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17673 | (eval "$ac_link") 2>conftest.er1 | ||
17674 | ac_status=$? | ||
17675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17676 | rm -f conftest.er1 | ||
17677 | cat conftest.err >&5 | ||
17678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17679 | (exit $ac_status); } && { | ||
17680 | test -z "$ac_c_werror_flag" || | ||
17681 | test ! -s conftest.err | ||
17682 | } && test -s conftest$ac_exeext && | ||
17683 | $as_test_x conftest$ac_exeext; then | ||
17684 | eval "$as_ac_var=yes" | ||
17685 | else | ||
17686 | echo "$as_me: failed program was:" >&5 | ||
17687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17688 | |||
17689 | eval "$as_ac_var=no" | ||
17690 | fi | ||
17691 | |||
17692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17693 | conftest$ac_exeext conftest.$ac_ext | ||
17694 | fi | ||
17695 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17697 | echo "${ECHO_T}$ac_res" >&6; } | ||
17698 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17699 | cat >>confdefs.h <<_ACEOF | ||
17700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17701 | _ACEOF | ||
17702 | SSHDLIBS="$SSHDLIBS -liaf" | ||
17703 | |||
17704 | cat >>confdefs.h <<\_ACEOF | ||
17705 | #define HAVE_LIBIAF 1 | ||
17706 | _ACEOF | ||
17707 | |||
17708 | |||
17709 | fi | ||
17710 | done | ||
17711 | |||
17712 | |||
17713 | fi | ||
17714 | |||
17715 | LIBS="$saved_LIBS" | ||
17716 | |||
17717 | ### Configure cryptographic random number support | ||
17718 | |||
17719 | # Check wheter OpenSSL seeds itself | ||
17720 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
17721 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
17722 | if test "$cross_compiling" = yes; then | ||
17723 | |||
17724 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
17725 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
17726 | # This is safe, since all recent OpenSSL versions will | ||
17727 | # complain at runtime if not seeded correctly. | ||
17728 | OPENSSL_SEEDS_ITSELF=yes | ||
17729 | |||
17730 | |||
17731 | else | ||
17732 | cat >conftest.$ac_ext <<_ACEOF | ||
17733 | /* confdefs.h. */ | ||
17734 | _ACEOF | ||
17735 | cat confdefs.h >>conftest.$ac_ext | ||
17736 | cat >>conftest.$ac_ext <<_ACEOF | ||
17737 | /* end confdefs.h. */ | ||
17738 | |||
17739 | #include <string.h> | ||
17740 | #include <openssl/rand.h> | ||
17741 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
17742 | |||
17743 | _ACEOF | ||
17744 | rm -f conftest$ac_exeext | ||
17745 | if { (ac_try="$ac_link" | ||
17746 | case "(($ac_try" in | ||
17747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17748 | *) ac_try_echo=$ac_try;; | ||
17749 | esac | ||
17750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17751 | (eval "$ac_link") 2>&5 | ||
17752 | ac_status=$? | ||
17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17755 | { (case "(($ac_try" in | ||
17756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17757 | *) ac_try_echo=$ac_try;; | ||
17758 | esac | ||
17759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17760 | (eval "$ac_try") 2>&5 | ||
17761 | ac_status=$? | ||
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17763 | (exit $ac_status); }; }; then | ||
17764 | |||
17765 | OPENSSL_SEEDS_ITSELF=yes | ||
17766 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17767 | echo "${ECHO_T}yes" >&6; } | ||
17768 | |||
17769 | else | ||
17770 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17771 | echo "$as_me: failed program was:" >&5 | ||
17772 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17773 | |||
17774 | ( exit $ac_status ) | ||
17775 | |||
17776 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17777 | echo "${ECHO_T}no" >&6; } | ||
17778 | # Default to use of the rand helper if OpenSSL doesn't | ||
17779 | # seed itself | ||
17780 | USE_RAND_HELPER=yes | ||
17781 | |||
17782 | fi | ||
17783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17784 | fi | ||
17785 | |||
17786 | |||
17787 | |||
17788 | # Check for PAM libs | ||
17789 | PAM_MSG="no" | ||
17790 | |||
17791 | # Check whether --with-pam was given. | ||
17792 | if test "${with_pam+set}" = set; then | ||
17793 | withval=$with_pam; | ||
17794 | if test "x$withval" != "xno" ; then | ||
17795 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
17796 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
17797 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
17798 | echo "$as_me: error: PAM headers not found" >&2;} | ||
17799 | { (exit 1); exit 1; }; } | ||
17800 | fi | ||
17801 | |||
17802 | saved_LIBS="$LIBS" | ||
17803 | |||
17804 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
17805 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
17806 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17808 | else | ||
17809 | ac_check_lib_save_LIBS=$LIBS | ||
17810 | LIBS="-ldl $LIBS" | ||
17811 | cat >conftest.$ac_ext <<_ACEOF | ||
17812 | /* confdefs.h. */ | ||
17813 | _ACEOF | ||
17814 | cat confdefs.h >>conftest.$ac_ext | ||
17815 | cat >>conftest.$ac_ext <<_ACEOF | ||
17816 | /* end confdefs.h. */ | ||
17817 | |||
17818 | /* Override any GCC internal prototype to avoid an error. | ||
17819 | Use char because int might match the return type of a GCC | ||
17820 | builtin and then its argument prototype would still apply. */ | ||
17821 | #ifdef __cplusplus | ||
17822 | extern "C" | ||
17823 | #endif | ||
17824 | char dlopen (); | ||
17825 | int | ||
17826 | main () | ||
17827 | { | ||
17828 | return dlopen (); | ||
17829 | ; | ||
17830 | return 0; | ||
17831 | } | ||
17832 | _ACEOF | ||
17833 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17834 | if { (ac_try="$ac_link" | ||
17835 | case "(($ac_try" in | ||
17836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17837 | *) ac_try_echo=$ac_try;; | ||
17838 | esac | ||
17839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17840 | (eval "$ac_link") 2>conftest.er1 | ||
17841 | ac_status=$? | ||
17842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17843 | rm -f conftest.er1 | ||
17844 | cat conftest.err >&5 | ||
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17846 | (exit $ac_status); } && { | ||
17847 | test -z "$ac_c_werror_flag" || | ||
17848 | test ! -s conftest.err | ||
17849 | } && test -s conftest$ac_exeext && | ||
17850 | $as_test_x conftest$ac_exeext; then | ||
17851 | ac_cv_lib_dl_dlopen=yes | ||
17852 | else | ||
17853 | echo "$as_me: failed program was:" >&5 | ||
17854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17855 | |||
17856 | ac_cv_lib_dl_dlopen=no | ||
17857 | fi | ||
17858 | |||
17859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17860 | conftest$ac_exeext conftest.$ac_ext | ||
17861 | LIBS=$ac_check_lib_save_LIBS | ||
17862 | fi | ||
17863 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17864 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
17865 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17866 | cat >>confdefs.h <<_ACEOF | ||
17867 | #define HAVE_LIBDL 1 | ||
17868 | _ACEOF | ||
17869 | |||
17870 | LIBS="-ldl $LIBS" | ||
17871 | |||
17872 | fi | ||
17873 | |||
17874 | |||
17875 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
17876 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
17877 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
17878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17879 | else | ||
17880 | ac_check_lib_save_LIBS=$LIBS | ||
17881 | LIBS="-lpam $LIBS" | ||
17882 | cat >conftest.$ac_ext <<_ACEOF | ||
17883 | /* confdefs.h. */ | ||
17884 | _ACEOF | ||
17885 | cat confdefs.h >>conftest.$ac_ext | ||
17886 | cat >>conftest.$ac_ext <<_ACEOF | ||
17887 | /* end confdefs.h. */ | ||
17888 | |||
17889 | /* Override any GCC internal prototype to avoid an error. | ||
17890 | Use char because int might match the return type of a GCC | ||
17891 | builtin and then its argument prototype would still apply. */ | ||
17892 | #ifdef __cplusplus | ||
17893 | extern "C" | ||
17894 | #endif | ||
17895 | char pam_set_item (); | ||
17896 | int | ||
17897 | main () | ||
17898 | { | ||
17899 | return pam_set_item (); | ||
17900 | ; | ||
17901 | return 0; | ||
17902 | } | ||
17903 | _ACEOF | ||
17904 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17905 | if { (ac_try="$ac_link" | ||
17906 | case "(($ac_try" in | ||
17907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17908 | *) ac_try_echo=$ac_try;; | ||
17909 | esac | ||
17910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17911 | (eval "$ac_link") 2>conftest.er1 | ||
17912 | ac_status=$? | ||
17913 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17914 | rm -f conftest.er1 | ||
17915 | cat conftest.err >&5 | ||
17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17917 | (exit $ac_status); } && { | ||
17918 | test -z "$ac_c_werror_flag" || | ||
17919 | test ! -s conftest.err | ||
17920 | } && test -s conftest$ac_exeext && | ||
17921 | $as_test_x conftest$ac_exeext; then | ||
17922 | ac_cv_lib_pam_pam_set_item=yes | ||
17923 | else | ||
17924 | echo "$as_me: failed program was:" >&5 | ||
17925 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17926 | |||
17927 | ac_cv_lib_pam_pam_set_item=no | ||
17928 | fi | ||
17929 | |||
17930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17931 | conftest$ac_exeext conftest.$ac_ext | ||
17932 | LIBS=$ac_check_lib_save_LIBS | ||
17933 | fi | ||
17934 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
17935 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
17936 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
17937 | cat >>confdefs.h <<_ACEOF | ||
17938 | #define HAVE_LIBPAM 1 | ||
17939 | _ACEOF | ||
17940 | |||
17941 | LIBS="-lpam $LIBS" | ||
17942 | |||
17943 | else | ||
17944 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
17945 | echo "$as_me: error: *** libpam missing" >&2;} | ||
17946 | { (exit 1); exit 1; }; } | ||
17947 | fi | ||
17948 | |||
17949 | |||
17950 | for ac_func in pam_getenvlist | ||
17951 | do | ||
17952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17953 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17954 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17955 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17957 | else | ||
17958 | cat >conftest.$ac_ext <<_ACEOF | ||
17959 | /* confdefs.h. */ | ||
17960 | _ACEOF | ||
17961 | cat confdefs.h >>conftest.$ac_ext | ||
17962 | cat >>conftest.$ac_ext <<_ACEOF | ||
17963 | /* end confdefs.h. */ | ||
17964 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17966 | #define $ac_func innocuous_$ac_func | ||
17967 | |||
17968 | /* System header to define __stub macros and hopefully few prototypes, | ||
17969 | which can conflict with char $ac_func (); below. | ||
17970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17971 | <limits.h> exists even on freestanding compilers. */ | ||
17972 | |||
17973 | #ifdef __STDC__ | ||
17974 | # include <limits.h> | ||
17975 | #else | ||
17976 | # include <assert.h> | ||
17977 | #endif | ||
17978 | |||
17979 | #undef $ac_func | ||
17980 | |||
17981 | /* Override any GCC internal prototype to avoid an error. | ||
17982 | Use char because int might match the return type of a GCC | ||
17983 | builtin and then its argument prototype would still apply. */ | ||
17984 | #ifdef __cplusplus | ||
17985 | extern "C" | ||
17986 | #endif | ||
17987 | char $ac_func (); | ||
17988 | /* The GNU C library defines this for functions which it implements | ||
17989 | to always fail with ENOSYS. Some functions are actually named | ||
17990 | something starting with __ and the normal name is an alias. */ | ||
17991 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17992 | choke me | ||
17993 | #endif | ||
17994 | |||
17995 | int | ||
17996 | main () | ||
17997 | { | ||
17998 | return $ac_func (); | ||
17999 | ; | ||
18000 | return 0; | ||
18001 | } | ||
18002 | _ACEOF | ||
18003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18004 | if { (ac_try="$ac_link" | ||
18005 | case "(($ac_try" in | ||
18006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18007 | *) ac_try_echo=$ac_try;; | ||
18008 | esac | ||
18009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18010 | (eval "$ac_link") 2>conftest.er1 | ||
18011 | ac_status=$? | ||
18012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18013 | rm -f conftest.er1 | ||
18014 | cat conftest.err >&5 | ||
18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18016 | (exit $ac_status); } && { | ||
18017 | test -z "$ac_c_werror_flag" || | ||
18018 | test ! -s conftest.err | ||
18019 | } && test -s conftest$ac_exeext && | ||
18020 | $as_test_x conftest$ac_exeext; then | ||
18021 | eval "$as_ac_var=yes" | ||
18022 | else | ||
18023 | echo "$as_me: failed program was:" >&5 | ||
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18025 | |||
18026 | eval "$as_ac_var=no" | ||
18027 | fi | ||
18028 | |||
18029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18030 | conftest$ac_exeext conftest.$ac_ext | ||
18031 | fi | ||
18032 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18033 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18034 | echo "${ECHO_T}$ac_res" >&6; } | ||
18035 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18036 | cat >>confdefs.h <<_ACEOF | ||
18037 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18038 | _ACEOF | ||
18039 | |||
18040 | fi | ||
18041 | done | ||
18042 | |||
18043 | |||
18044 | for ac_func in pam_putenv | ||
18045 | do | ||
18046 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18047 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18049 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18051 | else | ||
18052 | cat >conftest.$ac_ext <<_ACEOF | ||
18053 | /* confdefs.h. */ | ||
18054 | _ACEOF | ||
18055 | cat confdefs.h >>conftest.$ac_ext | ||
18056 | cat >>conftest.$ac_ext <<_ACEOF | ||
18057 | /* end confdefs.h. */ | ||
18058 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18060 | #define $ac_func innocuous_$ac_func | ||
18061 | |||
18062 | /* System header to define __stub macros and hopefully few prototypes, | ||
18063 | which can conflict with char $ac_func (); below. | ||
18064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18065 | <limits.h> exists even on freestanding compilers. */ | ||
18066 | |||
18067 | #ifdef __STDC__ | ||
18068 | # include <limits.h> | ||
18069 | #else | ||
18070 | # include <assert.h> | ||
18071 | #endif | ||
18072 | |||
18073 | #undef $ac_func | ||
18074 | |||
18075 | /* Override any GCC internal prototype to avoid an error. | ||
18076 | Use char because int might match the return type of a GCC | ||
18077 | builtin and then its argument prototype would still apply. */ | ||
18078 | #ifdef __cplusplus | ||
18079 | extern "C" | ||
18080 | #endif | ||
18081 | char $ac_func (); | ||
18082 | /* The GNU C library defines this for functions which it implements | ||
18083 | to always fail with ENOSYS. Some functions are actually named | ||
18084 | something starting with __ and the normal name is an alias. */ | ||
18085 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18086 | choke me | ||
18087 | #endif | ||
18088 | |||
18089 | int | ||
18090 | main () | ||
18091 | { | ||
18092 | return $ac_func (); | ||
18093 | ; | ||
18094 | return 0; | ||
18095 | } | ||
18096 | _ACEOF | ||
18097 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18098 | if { (ac_try="$ac_link" | ||
18099 | case "(($ac_try" in | ||
18100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18101 | *) ac_try_echo=$ac_try;; | ||
18102 | esac | ||
18103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18104 | (eval "$ac_link") 2>conftest.er1 | ||
18105 | ac_status=$? | ||
18106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18107 | rm -f conftest.er1 | ||
18108 | cat conftest.err >&5 | ||
18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18110 | (exit $ac_status); } && { | ||
18111 | test -z "$ac_c_werror_flag" || | ||
18112 | test ! -s conftest.err | ||
18113 | } && test -s conftest$ac_exeext && | ||
18114 | $as_test_x conftest$ac_exeext; then | ||
18115 | eval "$as_ac_var=yes" | ||
18116 | else | ||
18117 | echo "$as_me: failed program was:" >&5 | ||
18118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18119 | |||
18120 | eval "$as_ac_var=no" | ||
18121 | fi | ||
18122 | |||
18123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18124 | conftest$ac_exeext conftest.$ac_ext | ||
18125 | fi | ||
18126 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18128 | echo "${ECHO_T}$ac_res" >&6; } | ||
18129 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18130 | cat >>confdefs.h <<_ACEOF | ||
18131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18132 | _ACEOF | ||
18133 | |||
18134 | fi | ||
18135 | done | ||
18136 | |||
18137 | LIBS="$saved_LIBS" | ||
18138 | |||
18139 | PAM_MSG="yes" | ||
18140 | |||
18141 | SSHDLIBS="$SSHDLIBS -lpam" | ||
18142 | |||
18143 | cat >>confdefs.h <<\_ACEOF | ||
18144 | #define USE_PAM 1 | ||
18145 | _ACEOF | ||
18146 | |||
18147 | |||
18148 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18149 | case "$LIBS" in | ||
18150 | *-ldl*) | ||
18151 | # libdl already in LIBS | ||
18152 | ;; | ||
18153 | *) | ||
18154 | SSHDLIBS="$SSHDLIBS -ldl" | ||
18155 | ;; | ||
18156 | esac | ||
18157 | fi | ||
18158 | fi | ||
18159 | |||
18160 | |||
18161 | fi | ||
18162 | |||
18163 | |||
18164 | # Check for older PAM | ||
18165 | if test "x$PAM_MSG" = "xyes" ; then | ||
18166 | # Check PAM strerror arguments (old PAM) | ||
18167 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
18168 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
18169 | cat >conftest.$ac_ext <<_ACEOF | ||
18170 | /* confdefs.h. */ | ||
18171 | _ACEOF | ||
18172 | cat confdefs.h >>conftest.$ac_ext | ||
18173 | cat >>conftest.$ac_ext <<_ACEOF | ||
18174 | /* end confdefs.h. */ | ||
18175 | |||
18176 | #include <stdlib.h> | ||
18177 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
18178 | #include <security/pam_appl.h> | ||
18179 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
18180 | #include <pam/pam_appl.h> | ||
18181 | #endif | ||
18182 | |||
18183 | int | ||
18184 | main () | ||
18185 | { | ||
18186 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
18187 | ; | ||
18188 | return 0; | ||
18189 | } | ||
18190 | _ACEOF | ||
18191 | rm -f conftest.$ac_objext | ||
18192 | if { (ac_try="$ac_compile" | ||
18193 | case "(($ac_try" in | ||
18194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18195 | *) ac_try_echo=$ac_try;; | ||
18196 | esac | ||
18197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18198 | (eval "$ac_compile") 2>conftest.er1 | ||
18199 | ac_status=$? | ||
18200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18201 | rm -f conftest.er1 | ||
18202 | cat conftest.err >&5 | ||
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18204 | (exit $ac_status); } && { | ||
18205 | test -z "$ac_c_werror_flag" || | ||
18206 | test ! -s conftest.err | ||
18207 | } && test -s conftest.$ac_objext; then | ||
18208 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18209 | echo "${ECHO_T}no" >&6; } | ||
18210 | else | ||
18211 | echo "$as_me: failed program was:" >&5 | ||
18212 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18213 | |||
18214 | |||
18215 | |||
18216 | cat >>confdefs.h <<\_ACEOF | ||
18217 | #define HAVE_OLD_PAM 1 | ||
18218 | _ACEOF | ||
18219 | |||
18220 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18221 | echo "${ECHO_T}yes" >&6; } | ||
18222 | PAM_MSG="yes (old library)" | ||
18223 | |||
18224 | |||
18225 | fi | ||
18226 | |||
18227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18228 | fi | ||
18229 | |||
18230 | # Do we want to force the use of the rand helper? | ||
18231 | |||
18232 | # Check whether --with-rand-helper was given. | ||
18233 | if test "${with_rand_helper+set}" = set; then | ||
18234 | withval=$with_rand_helper; | ||
18235 | if test "x$withval" = "xno" ; then | ||
18236 | # Force use of OpenSSL's internal RNG, even if | ||
18237 | # the previous test showed it to be unseeded. | ||
18238 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
18239 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
18240 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
18241 | OPENSSL_SEEDS_ITSELF=yes | ||
18242 | USE_RAND_HELPER="" | ||
18243 | fi | ||
18244 | else | ||
18245 | USE_RAND_HELPER=yes | ||
18246 | fi | ||
18247 | |||
18248 | fi | ||
18249 | |||
18250 | |||
18251 | # Which randomness source do we use? | ||
18252 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
18253 | # OpenSSL only | ||
18254 | |||
18255 | cat >>confdefs.h <<\_ACEOF | ||
18256 | #define OPENSSL_PRNG_ONLY 1 | ||
18257 | _ACEOF | ||
18258 | |||
18259 | RAND_MSG="OpenSSL internal ONLY" | ||
18260 | INSTALL_SSH_RAND_HELPER="" | ||
18261 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
18262 | # install rand helper | ||
18263 | RAND_MSG="ssh-rand-helper" | ||
18264 | INSTALL_SSH_RAND_HELPER="yes" | ||
18265 | fi | ||
18266 | |||
18267 | |||
18268 | ### Configuration of ssh-rand-helper | ||
18269 | |||
18270 | # PRNGD TCP socket | ||
18271 | |||
18272 | # Check whether --with-prngd-port was given. | ||
18273 | if test "${with_prngd_port+set}" = set; then | ||
18274 | withval=$with_prngd_port; | ||
18275 | case "$withval" in | ||
18276 | no) | ||
18277 | withval="" | ||
18278 | ;; | ||
18279 | [0-9]*) | ||
18280 | ;; | ||
18281 | *) | ||
18282 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
18283 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
18284 | { (exit 1); exit 1; }; } | ||
18285 | ;; | ||
18286 | esac | ||
18287 | if test ! -z "$withval" ; then | ||
18288 | PRNGD_PORT="$withval" | ||
18289 | |||
18290 | cat >>confdefs.h <<_ACEOF | ||
18291 | #define PRNGD_PORT $PRNGD_PORT | ||
18292 | _ACEOF | ||
18293 | |||
18294 | fi | ||
18295 | |||
18296 | |||
18297 | fi | ||
18298 | |||
18299 | |||
18300 | # PRNGD Unix domain socket | ||
18301 | |||
18302 | # Check whether --with-prngd-socket was given. | ||
18303 | if test "${with_prngd_socket+set}" = set; then | ||
18304 | withval=$with_prngd_socket; | ||
18305 | case "$withval" in | ||
18306 | yes) | ||
18307 | withval="/var/run/egd-pool" | ||
18308 | ;; | ||
18309 | no) | ||
18310 | withval="" | ||
18311 | ;; | ||
18312 | /*) | ||
18313 | ;; | ||
18314 | *) | ||
18315 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
18316 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
18317 | { (exit 1); exit 1; }; } | ||
18318 | ;; | ||
18319 | esac | ||
18320 | |||
18321 | if test ! -z "$withval" ; then | ||
18322 | if test ! -z "$PRNGD_PORT" ; then | ||
18323 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
18324 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
18325 | { (exit 1); exit 1; }; } | ||
18326 | fi | ||
18327 | if test ! -r "$withval" ; then | ||
18328 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
18329 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
18330 | fi | ||
18331 | PRNGD_SOCKET="$withval" | ||
18332 | |||
18333 | cat >>confdefs.h <<_ACEOF | ||
18334 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18335 | _ACEOF | ||
18336 | |||
18337 | fi | ||
18338 | |||
18339 | else | ||
18340 | |||
18341 | # Check for existing socket only if we don't have a random device already | ||
18342 | if test "$USE_RAND_HELPER" = yes ; then | ||
18343 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
18344 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
18345 | # Insert other locations here | ||
18346 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
18347 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
18348 | PRNGD_SOCKET="$sock" | ||
18349 | cat >>confdefs.h <<_ACEOF | ||
18350 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18351 | _ACEOF | ||
18352 | |||
18353 | break; | ||
18354 | fi | ||
18355 | done | ||
18356 | if test ! -z "$PRNGD_SOCKET" ; then | ||
18357 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
18358 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
18359 | else | ||
18360 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
18361 | echo "${ECHO_T}not found" >&6; } | ||
18362 | fi | ||
18363 | fi | ||
18364 | |||
18365 | |||
18366 | fi | ||
18367 | |||
18368 | |||
18369 | # Change default command timeout for hashing entropy source | ||
18370 | entropy_timeout=200 | ||
18371 | |||
18372 | # Check whether --with-entropy-timeout was given. | ||
18373 | if test "${with_entropy_timeout+set}" = set; then | ||
18374 | withval=$with_entropy_timeout; | ||
18375 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18376 | test "x${withval}" != "xyes"; then | ||
18377 | entropy_timeout=$withval | ||
18378 | fi | ||
18379 | |||
18380 | |||
18381 | fi | ||
18382 | |||
18383 | |||
18384 | cat >>confdefs.h <<_ACEOF | ||
18385 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
18386 | _ACEOF | ||
18387 | |||
18388 | |||
18389 | SSH_PRIVSEP_USER=sshd | ||
18390 | |||
18391 | # Check whether --with-privsep-user was given. | ||
18392 | if test "${with_privsep_user+set}" = set; then | ||
18393 | withval=$with_privsep_user; | ||
18394 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18395 | test "x${withval}" != "xyes"; then | ||
18396 | SSH_PRIVSEP_USER=$withval | ||
18397 | fi | ||
18398 | |||
18399 | |||
18400 | fi | ||
18401 | |||
18402 | |||
18403 | cat >>confdefs.h <<_ACEOF | ||
18404 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
18405 | _ACEOF | ||
18406 | |||
18407 | |||
18408 | |||
18409 | # We do this little dance with the search path to insure | ||
18410 | # that programs that we select for use by installed programs | ||
18411 | # (which may be run by the super-user) come from trusted | ||
18412 | # locations before they come from the user's private area. | ||
18413 | # This should help avoid accidentally configuring some | ||
18414 | # random version of a program in someone's personal bin. | ||
18415 | |||
18416 | OPATH=$PATH | ||
18417 | PATH=/bin:/usr/bin | ||
18418 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
18419 | test -d /sbin && PATH=$PATH:/sbin | ||
18420 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
18421 | PATH=$PATH:/etc:$OPATH | ||
18422 | |||
18423 | # These programs are used by the command hashing source to gather entropy | ||
18424 | |||
18425 | # Extract the first word of "ls", so it can be a program name with args. | ||
18426 | set dummy ls; ac_word=$2 | ||
18427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18429 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
18430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18431 | else | ||
18432 | case $PROG_LS in | ||
18433 | [\\/]* | ?:[\\/]*) | ||
18434 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
18435 | ;; | ||
18436 | *) | ||
18437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18438 | for as_dir in $PATH | ||
18439 | do | ||
18440 | IFS=$as_save_IFS | ||
18441 | test -z "$as_dir" && as_dir=. | ||
18442 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18444 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
18445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18446 | break 2 | ||
18447 | fi | ||
18448 | done | ||
18449 | done | ||
18450 | IFS=$as_save_IFS | ||
18451 | |||
18452 | ;; | ||
18453 | esac | ||
18454 | fi | ||
18455 | PROG_LS=$ac_cv_path_PROG_LS | ||
18456 | if test -n "$PROG_LS"; then | ||
18457 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
18458 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
18459 | else | ||
18460 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18461 | echo "${ECHO_T}no" >&6; } | ||
18462 | fi | ||
18463 | |||
18464 | |||
18465 | if test -z "$PROG_LS" ; then | ||
18466 | PROG_LS="undef" | ||
18467 | fi | ||
18468 | |||
18469 | |||
18470 | |||
18471 | # Extract the first word of "netstat", so it can be a program name with args. | ||
18472 | set dummy netstat; ac_word=$2 | ||
18473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18475 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
18476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18477 | else | ||
18478 | case $PROG_NETSTAT in | ||
18479 | [\\/]* | ?:[\\/]*) | ||
18480 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
18481 | ;; | ||
18482 | *) | ||
18483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18484 | for as_dir in $PATH | ||
18485 | do | ||
18486 | IFS=$as_save_IFS | ||
18487 | test -z "$as_dir" && as_dir=. | ||
18488 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18490 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18492 | break 2 | ||
18493 | fi | ||
18494 | done | ||
18495 | done | ||
18496 | IFS=$as_save_IFS | ||
18497 | |||
18498 | ;; | ||
18499 | esac | ||
18500 | fi | ||
18501 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
18502 | if test -n "$PROG_NETSTAT"; then | ||
18503 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
18504 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
18505 | else | ||
18506 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18507 | echo "${ECHO_T}no" >&6; } | ||
18508 | fi | ||
18509 | |||
18510 | |||
18511 | if test -z "$PROG_NETSTAT" ; then | ||
18512 | PROG_NETSTAT="undef" | ||
18513 | fi | ||
18514 | |||
18515 | |||
18516 | |||
18517 | # Extract the first word of "arp", so it can be a program name with args. | ||
18518 | set dummy arp; ac_word=$2 | ||
18519 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18521 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
18522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18523 | else | ||
18524 | case $PROG_ARP in | ||
18525 | [\\/]* | ?:[\\/]*) | ||
18526 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
18527 | ;; | ||
18528 | *) | ||
18529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18530 | for as_dir in $PATH | ||
18531 | do | ||
18532 | IFS=$as_save_IFS | ||
18533 | test -z "$as_dir" && as_dir=. | ||
18534 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18536 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
18537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18538 | break 2 | ||
18539 | fi | ||
18540 | done | ||
18541 | done | ||
18542 | IFS=$as_save_IFS | ||
18543 | |||
18544 | ;; | ||
18545 | esac | ||
18546 | fi | ||
18547 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
18548 | if test -n "$PROG_ARP"; then | ||
18549 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
18550 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
18551 | else | ||
18552 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18553 | echo "${ECHO_T}no" >&6; } | ||
18554 | fi | ||
18555 | |||
18556 | |||
18557 | if test -z "$PROG_ARP" ; then | ||
18558 | PROG_ARP="undef" | ||
18559 | fi | ||
18560 | |||
18561 | |||
18562 | |||
18563 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
18564 | set dummy ifconfig; ac_word=$2 | ||
18565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18567 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
18568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18569 | else | ||
18570 | case $PROG_IFCONFIG in | ||
18571 | [\\/]* | ?:[\\/]*) | ||
18572 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
18573 | ;; | ||
18574 | *) | ||
18575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18576 | for as_dir in $PATH | ||
18577 | do | ||
18578 | IFS=$as_save_IFS | ||
18579 | test -z "$as_dir" && as_dir=. | ||
18580 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18582 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
18583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18584 | break 2 | ||
18585 | fi | ||
18586 | done | ||
18587 | done | ||
18588 | IFS=$as_save_IFS | ||
18589 | |||
18590 | ;; | ||
18591 | esac | ||
18592 | fi | ||
18593 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
18594 | if test -n "$PROG_IFCONFIG"; then | ||
18595 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
18596 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
18597 | else | ||
18598 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18599 | echo "${ECHO_T}no" >&6; } | ||
18600 | fi | ||
18601 | |||
18602 | |||
18603 | if test -z "$PROG_IFCONFIG" ; then | ||
18604 | PROG_IFCONFIG="undef" | ||
18605 | fi | ||
18606 | |||
18607 | |||
18608 | |||
18609 | # Extract the first word of "jstat", so it can be a program name with args. | ||
18610 | set dummy jstat; ac_word=$2 | ||
18611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18613 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
18614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18615 | else | ||
18616 | case $PROG_JSTAT in | ||
18617 | [\\/]* | ?:[\\/]*) | ||
18618 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
18619 | ;; | ||
18620 | *) | ||
18621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18622 | for as_dir in $PATH | ||
18623 | do | ||
18624 | IFS=$as_save_IFS | ||
18625 | test -z "$as_dir" && as_dir=. | ||
18626 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18628 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18630 | break 2 | ||
18631 | fi | ||
18632 | done | ||
18633 | done | ||
18634 | IFS=$as_save_IFS | ||
18635 | |||
18636 | ;; | ||
18637 | esac | ||
18638 | fi | ||
18639 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
18640 | if test -n "$PROG_JSTAT"; then | ||
18641 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
18642 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
18643 | else | ||
18644 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18645 | echo "${ECHO_T}no" >&6; } | ||
18646 | fi | ||
18647 | |||
18648 | |||
18649 | if test -z "$PROG_JSTAT" ; then | ||
18650 | PROG_JSTAT="undef" | ||
18651 | fi | ||
18652 | |||
18653 | |||
18654 | |||
18655 | # Extract the first word of "ps", so it can be a program name with args. | ||
18656 | set dummy ps; ac_word=$2 | ||
18657 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18659 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
18660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18661 | else | ||
18662 | case $PROG_PS in | ||
18663 | [\\/]* | ?:[\\/]*) | ||
18664 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
18665 | ;; | ||
18666 | *) | ||
18667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18668 | for as_dir in $PATH | ||
18669 | do | ||
18670 | IFS=$as_save_IFS | ||
18671 | test -z "$as_dir" && as_dir=. | ||
18672 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18674 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
18675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18676 | break 2 | ||
18677 | fi | ||
18678 | done | ||
18679 | done | ||
18680 | IFS=$as_save_IFS | ||
18681 | |||
18682 | ;; | ||
18683 | esac | ||
18684 | fi | ||
18685 | PROG_PS=$ac_cv_path_PROG_PS | ||
18686 | if test -n "$PROG_PS"; then | ||
18687 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
18688 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
18689 | else | ||
18690 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18691 | echo "${ECHO_T}no" >&6; } | ||
18692 | fi | ||
18693 | |||
18694 | |||
18695 | if test -z "$PROG_PS" ; then | ||
18696 | PROG_PS="undef" | ||
18697 | fi | ||
18698 | |||
18699 | |||
18700 | |||
18701 | # Extract the first word of "sar", so it can be a program name with args. | ||
18702 | set dummy sar; ac_word=$2 | ||
18703 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18705 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
18706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18707 | else | ||
18708 | case $PROG_SAR in | ||
18709 | [\\/]* | ?:[\\/]*) | ||
18710 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
18711 | ;; | ||
18712 | *) | ||
18713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18714 | for as_dir in $PATH | ||
18715 | do | ||
18716 | IFS=$as_save_IFS | ||
18717 | test -z "$as_dir" && as_dir=. | ||
18718 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18720 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
18721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18722 | break 2 | ||
18723 | fi | ||
18724 | done | ||
18725 | done | ||
18726 | IFS=$as_save_IFS | ||
18727 | |||
18728 | ;; | ||
18729 | esac | ||
18730 | fi | ||
18731 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
18732 | if test -n "$PROG_SAR"; then | ||
18733 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
18734 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
18735 | else | ||
18736 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18737 | echo "${ECHO_T}no" >&6; } | ||
18738 | fi | ||
18739 | |||
18740 | |||
18741 | if test -z "$PROG_SAR" ; then | ||
18742 | PROG_SAR="undef" | ||
18743 | fi | ||
18744 | |||
18745 | |||
18746 | |||
18747 | # Extract the first word of "w", so it can be a program name with args. | ||
18748 | set dummy w; ac_word=$2 | ||
18749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18751 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
18752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18753 | else | ||
18754 | case $PROG_W in | ||
18755 | [\\/]* | ?:[\\/]*) | ||
18756 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
18757 | ;; | ||
18758 | *) | ||
18759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18760 | for as_dir in $PATH | ||
18761 | do | ||
18762 | IFS=$as_save_IFS | ||
18763 | test -z "$as_dir" && as_dir=. | ||
18764 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18766 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
18767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18768 | break 2 | ||
18769 | fi | ||
18770 | done | ||
18771 | done | ||
18772 | IFS=$as_save_IFS | ||
18773 | |||
18774 | ;; | ||
18775 | esac | ||
18776 | fi | ||
18777 | PROG_W=$ac_cv_path_PROG_W | ||
18778 | if test -n "$PROG_W"; then | ||
18779 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
18780 | echo "${ECHO_T}$PROG_W" >&6; } | ||
18781 | else | ||
18782 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18783 | echo "${ECHO_T}no" >&6; } | ||
18784 | fi | ||
18785 | |||
18786 | |||
18787 | if test -z "$PROG_W" ; then | ||
18788 | PROG_W="undef" | ||
18789 | fi | ||
18790 | |||
18791 | |||
18792 | |||
18793 | # Extract the first word of "who", so it can be a program name with args. | ||
18794 | set dummy who; ac_word=$2 | ||
18795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18797 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
18798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18799 | else | ||
18800 | case $PROG_WHO in | ||
18801 | [\\/]* | ?:[\\/]*) | ||
18802 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
18803 | ;; | ||
18804 | *) | ||
18805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18806 | for as_dir in $PATH | ||
18807 | do | ||
18808 | IFS=$as_save_IFS | ||
18809 | test -z "$as_dir" && as_dir=. | ||
18810 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18812 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
18813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18814 | break 2 | ||
18815 | fi | ||
18816 | done | ||
18817 | done | ||
18818 | IFS=$as_save_IFS | ||
18819 | |||
18820 | ;; | ||
18821 | esac | ||
18822 | fi | ||
18823 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
18824 | if test -n "$PROG_WHO"; then | ||
18825 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
18826 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
18827 | else | ||
18828 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18829 | echo "${ECHO_T}no" >&6; } | ||
18830 | fi | ||
18831 | |||
18832 | |||
18833 | if test -z "$PROG_WHO" ; then | ||
18834 | PROG_WHO="undef" | ||
18835 | fi | ||
18836 | |||
18837 | |||
18838 | |||
18839 | # Extract the first word of "last", so it can be a program name with args. | ||
18840 | set dummy last; ac_word=$2 | ||
18841 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18843 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
18844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18845 | else | ||
18846 | case $PROG_LAST in | ||
18847 | [\\/]* | ?:[\\/]*) | ||
18848 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
18849 | ;; | ||
18850 | *) | ||
18851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18852 | for as_dir in $PATH | ||
18853 | do | ||
18854 | IFS=$as_save_IFS | ||
18855 | test -z "$as_dir" && as_dir=. | ||
18856 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18858 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
18859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18860 | break 2 | ||
18861 | fi | ||
18862 | done | ||
18863 | done | ||
18864 | IFS=$as_save_IFS | ||
18865 | |||
18866 | ;; | ||
18867 | esac | ||
18868 | fi | ||
18869 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
18870 | if test -n "$PROG_LAST"; then | ||
18871 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
18872 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
18873 | else | ||
18874 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18875 | echo "${ECHO_T}no" >&6; } | ||
18876 | fi | ||
18877 | |||
18878 | |||
18879 | if test -z "$PROG_LAST" ; then | ||
18880 | PROG_LAST="undef" | ||
18881 | fi | ||
18882 | |||
18883 | |||
18884 | |||
18885 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
18886 | set dummy lastlog; ac_word=$2 | ||
18887 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18889 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
18890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18891 | else | ||
18892 | case $PROG_LASTLOG in | ||
18893 | [\\/]* | ?:[\\/]*) | ||
18894 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
18895 | ;; | ||
18896 | *) | ||
18897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18898 | for as_dir in $PATH | ||
18899 | do | ||
18900 | IFS=$as_save_IFS | ||
18901 | test -z "$as_dir" && as_dir=. | ||
18902 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18904 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
18905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18906 | break 2 | ||
18907 | fi | ||
18908 | done | ||
18909 | done | ||
18910 | IFS=$as_save_IFS | ||
18911 | |||
18912 | ;; | ||
18913 | esac | ||
18914 | fi | ||
18915 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
18916 | if test -n "$PROG_LASTLOG"; then | ||
18917 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
18918 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
18919 | else | ||
18920 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18921 | echo "${ECHO_T}no" >&6; } | ||
18922 | fi | ||
18923 | |||
18924 | |||
18925 | if test -z "$PROG_LASTLOG" ; then | ||
18926 | PROG_LASTLOG="undef" | ||
18927 | fi | ||
18928 | |||
18929 | |||
18930 | |||
18931 | # Extract the first word of "df", so it can be a program name with args. | ||
18932 | set dummy df; ac_word=$2 | ||
18933 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18935 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
18936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18937 | else | ||
18938 | case $PROG_DF in | ||
18939 | [\\/]* | ?:[\\/]*) | ||
18940 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
18941 | ;; | ||
18942 | *) | ||
18943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18944 | for as_dir in $PATH | ||
18945 | do | ||
18946 | IFS=$as_save_IFS | ||
18947 | test -z "$as_dir" && as_dir=. | ||
18948 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18950 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
18951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18952 | break 2 | ||
18953 | fi | ||
18954 | done | ||
18955 | done | ||
18956 | IFS=$as_save_IFS | ||
18957 | |||
18958 | ;; | ||
18959 | esac | ||
18960 | fi | ||
18961 | PROG_DF=$ac_cv_path_PROG_DF | ||
18962 | if test -n "$PROG_DF"; then | ||
18963 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
18964 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
18965 | else | ||
18966 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18967 | echo "${ECHO_T}no" >&6; } | ||
18968 | fi | ||
18969 | |||
18970 | |||
18971 | if test -z "$PROG_DF" ; then | ||
18972 | PROG_DF="undef" | ||
18973 | fi | ||
18974 | |||
18975 | |||
18976 | |||
18977 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
18978 | set dummy vmstat; ac_word=$2 | ||
18979 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18981 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
18982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18983 | else | ||
18984 | case $PROG_VMSTAT in | ||
18985 | [\\/]* | ?:[\\/]*) | ||
18986 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
18987 | ;; | ||
18988 | *) | ||
18989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18990 | for as_dir in $PATH | ||
18991 | do | ||
18992 | IFS=$as_save_IFS | ||
18993 | test -z "$as_dir" && as_dir=. | ||
18994 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18996 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18998 | break 2 | ||
18999 | fi | ||
19000 | done | ||
19001 | done | ||
19002 | IFS=$as_save_IFS | ||
19003 | |||
19004 | ;; | ||
19005 | esac | ||
19006 | fi | ||
19007 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
19008 | if test -n "$PROG_VMSTAT"; then | ||
19009 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
19010 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
19011 | else | ||
19012 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19013 | echo "${ECHO_T}no" >&6; } | ||
19014 | fi | ||
19015 | |||
19016 | |||
19017 | if test -z "$PROG_VMSTAT" ; then | ||
19018 | PROG_VMSTAT="undef" | ||
19019 | fi | ||
19020 | |||
19021 | |||
19022 | |||
19023 | # Extract the first word of "uptime", so it can be a program name with args. | ||
19024 | set dummy uptime; ac_word=$2 | ||
19025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19027 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
19028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19029 | else | ||
19030 | case $PROG_UPTIME in | ||
19031 | [\\/]* | ?:[\\/]*) | ||
19032 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
19033 | ;; | ||
19034 | *) | ||
19035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19036 | for as_dir in $PATH | ||
19037 | do | ||
19038 | IFS=$as_save_IFS | ||
19039 | test -z "$as_dir" && as_dir=. | ||
19040 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19042 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
19043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19044 | break 2 | ||
19045 | fi | ||
19046 | done | ||
19047 | done | ||
19048 | IFS=$as_save_IFS | ||
19049 | |||
19050 | ;; | ||
19051 | esac | ||
19052 | fi | ||
19053 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
19054 | if test -n "$PROG_UPTIME"; then | ||
19055 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
19056 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
19057 | else | ||
19058 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19059 | echo "${ECHO_T}no" >&6; } | ||
19060 | fi | ||
19061 | |||
19062 | |||
19063 | if test -z "$PROG_UPTIME" ; then | ||
19064 | PROG_UPTIME="undef" | ||
19065 | fi | ||
19066 | |||
19067 | |||
19068 | |||
19069 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
19070 | set dummy ipcs; ac_word=$2 | ||
19071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19073 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
19074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19075 | else | ||
19076 | case $PROG_IPCS in | ||
19077 | [\\/]* | ?:[\\/]*) | ||
19078 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
19079 | ;; | ||
19080 | *) | ||
19081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19082 | for as_dir in $PATH | ||
19083 | do | ||
19084 | IFS=$as_save_IFS | ||
19085 | test -z "$as_dir" && as_dir=. | ||
19086 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19088 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
19089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19090 | break 2 | ||
19091 | fi | ||
19092 | done | ||
19093 | done | ||
19094 | IFS=$as_save_IFS | ||
19095 | |||
19096 | ;; | ||
19097 | esac | ||
19098 | fi | ||
19099 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
19100 | if test -n "$PROG_IPCS"; then | ||
19101 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
19102 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
19103 | else | ||
19104 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19105 | echo "${ECHO_T}no" >&6; } | ||
19106 | fi | ||
19107 | |||
19108 | |||
19109 | if test -z "$PROG_IPCS" ; then | ||
19110 | PROG_IPCS="undef" | ||
19111 | fi | ||
19112 | |||
19113 | |||
19114 | |||
19115 | # Extract the first word of "tail", so it can be a program name with args. | ||
19116 | set dummy tail; ac_word=$2 | ||
19117 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19119 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
19120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19121 | else | ||
19122 | case $PROG_TAIL in | ||
19123 | [\\/]* | ?:[\\/]*) | ||
19124 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
19125 | ;; | ||
19126 | *) | ||
19127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19128 | for as_dir in $PATH | ||
19129 | do | ||
19130 | IFS=$as_save_IFS | ||
19131 | test -z "$as_dir" && as_dir=. | ||
19132 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19134 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
19135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19136 | break 2 | ||
19137 | fi | ||
19138 | done | ||
19139 | done | ||
19140 | IFS=$as_save_IFS | ||
19141 | |||
19142 | ;; | ||
19143 | esac | ||
19144 | fi | ||
19145 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
19146 | if test -n "$PROG_TAIL"; then | ||
19147 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
19148 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
19149 | else | ||
19150 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19151 | echo "${ECHO_T}no" >&6; } | ||
19152 | fi | ||
19153 | |||
19154 | |||
19155 | if test -z "$PROG_TAIL" ; then | ||
19156 | PROG_TAIL="undef" | ||
19157 | fi | ||
19158 | |||
19159 | |||
19160 | # restore PATH | ||
19161 | PATH=$OPATH | ||
19162 | |||
19163 | # Where does ssh-rand-helper get its randomness from? | ||
19164 | INSTALL_SSH_PRNG_CMDS="" | ||
19165 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
19166 | if test ! -z "$PRNGD_PORT" ; then | ||
19167 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
19168 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
19169 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
19170 | else | ||
19171 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
19172 | RAND_HELPER_CMDHASH=yes | ||
19173 | INSTALL_SSH_PRNG_CMDS="yes" | ||
19174 | fi | ||
19175 | fi | ||
19176 | |||
19177 | |||
19178 | |||
19179 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
19180 | if test ! -z "$SONY" ; then | ||
19181 | LIBS="$LIBS -liberty"; | ||
19182 | fi | ||
19183 | |||
19184 | # Check for long long datatypes | ||
19185 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
19186 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
19187 | if test "${ac_cv_type_long_long+set}" = set; then | ||
19188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19189 | else | ||
19190 | cat >conftest.$ac_ext <<_ACEOF | ||
19191 | /* confdefs.h. */ | ||
19192 | _ACEOF | ||
19193 | cat confdefs.h >>conftest.$ac_ext | ||
19194 | cat >>conftest.$ac_ext <<_ACEOF | ||
19195 | /* end confdefs.h. */ | ||
19196 | $ac_includes_default | ||
19197 | typedef long long ac__type_new_; | ||
19198 | int | ||
19199 | main () | ||
19200 | { | ||
19201 | if ((ac__type_new_ *) 0) | ||
19202 | return 0; | ||
19203 | if (sizeof (ac__type_new_)) | ||
19204 | return 0; | ||
19205 | ; | ||
19206 | return 0; | ||
19207 | } | ||
19208 | _ACEOF | ||
19209 | rm -f conftest.$ac_objext | ||
19210 | if { (ac_try="$ac_compile" | ||
19211 | case "(($ac_try" in | ||
19212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19213 | *) ac_try_echo=$ac_try;; | ||
19214 | esac | ||
19215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19216 | (eval "$ac_compile") 2>conftest.er1 | ||
19217 | ac_status=$? | ||
19218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19219 | rm -f conftest.er1 | ||
19220 | cat conftest.err >&5 | ||
19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19222 | (exit $ac_status); } && { | ||
19223 | test -z "$ac_c_werror_flag" || | ||
19224 | test ! -s conftest.err | ||
19225 | } && test -s conftest.$ac_objext; then | ||
19226 | ac_cv_type_long_long=yes | ||
19227 | else | ||
19228 | echo "$as_me: failed program was:" >&5 | ||
19229 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19230 | |||
19231 | ac_cv_type_long_long=no | ||
19232 | fi | ||
19233 | |||
19234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19235 | fi | ||
19236 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
19237 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
19238 | if test $ac_cv_type_long_long = yes; then | ||
19239 | |||
19240 | cat >>confdefs.h <<_ACEOF | ||
19241 | #define HAVE_LONG_LONG 1 | ||
19242 | _ACEOF | ||
19243 | |||
19244 | |||
19245 | fi | ||
19246 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
19247 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
19248 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
19249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19250 | else | ||
19251 | cat >conftest.$ac_ext <<_ACEOF | ||
19252 | /* confdefs.h. */ | ||
19253 | _ACEOF | ||
19254 | cat confdefs.h >>conftest.$ac_ext | ||
19255 | cat >>conftest.$ac_ext <<_ACEOF | ||
19256 | /* end confdefs.h. */ | ||
19257 | $ac_includes_default | ||
19258 | typedef unsigned long long ac__type_new_; | ||
19259 | int | ||
19260 | main () | ||
19261 | { | ||
19262 | if ((ac__type_new_ *) 0) | ||
19263 | return 0; | ||
19264 | if (sizeof (ac__type_new_)) | ||
19265 | return 0; | ||
19266 | ; | ||
19267 | return 0; | ||
19268 | } | ||
19269 | _ACEOF | ||
19270 | rm -f conftest.$ac_objext | ||
19271 | if { (ac_try="$ac_compile" | ||
19272 | case "(($ac_try" in | ||
19273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19274 | *) ac_try_echo=$ac_try;; | ||
19275 | esac | ||
19276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19277 | (eval "$ac_compile") 2>conftest.er1 | ||
19278 | ac_status=$? | ||
19279 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19280 | rm -f conftest.er1 | ||
19281 | cat conftest.err >&5 | ||
19282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19283 | (exit $ac_status); } && { | ||
19284 | test -z "$ac_c_werror_flag" || | ||
19285 | test ! -s conftest.err | ||
19286 | } && test -s conftest.$ac_objext; then | ||
19287 | ac_cv_type_unsigned_long_long=yes | ||
19288 | else | ||
19289 | echo "$as_me: failed program was:" >&5 | ||
19290 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19291 | |||
19292 | ac_cv_type_unsigned_long_long=no | ||
19293 | fi | ||
19294 | |||
19295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19296 | fi | ||
19297 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
19298 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
19299 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
19300 | |||
19301 | cat >>confdefs.h <<_ACEOF | ||
19302 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
19303 | _ACEOF | ||
19304 | |||
19305 | |||
19306 | fi | ||
19307 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
19308 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
19309 | if test "${ac_cv_type_long_double+set}" = set; then | ||
19310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19311 | else | ||
19312 | cat >conftest.$ac_ext <<_ACEOF | ||
19313 | /* confdefs.h. */ | ||
19314 | _ACEOF | ||
19315 | cat confdefs.h >>conftest.$ac_ext | ||
19316 | cat >>conftest.$ac_ext <<_ACEOF | ||
19317 | /* end confdefs.h. */ | ||
19318 | $ac_includes_default | ||
19319 | typedef long double ac__type_new_; | ||
19320 | int | ||
19321 | main () | ||
19322 | { | ||
19323 | if ((ac__type_new_ *) 0) | ||
19324 | return 0; | ||
19325 | if (sizeof (ac__type_new_)) | ||
19326 | return 0; | ||
19327 | ; | ||
19328 | return 0; | ||
19329 | } | ||
19330 | _ACEOF | ||
19331 | rm -f conftest.$ac_objext | ||
19332 | if { (ac_try="$ac_compile" | ||
19333 | case "(($ac_try" in | ||
19334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19335 | *) ac_try_echo=$ac_try;; | ||
19336 | esac | ||
19337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19338 | (eval "$ac_compile") 2>conftest.er1 | ||
19339 | ac_status=$? | ||
19340 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19341 | rm -f conftest.er1 | ||
19342 | cat conftest.err >&5 | ||
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19344 | (exit $ac_status); } && { | ||
19345 | test -z "$ac_c_werror_flag" || | ||
19346 | test ! -s conftest.err | ||
19347 | } && test -s conftest.$ac_objext; then | ||
19348 | ac_cv_type_long_double=yes | ||
19349 | else | ||
19350 | echo "$as_me: failed program was:" >&5 | ||
19351 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19352 | |||
19353 | ac_cv_type_long_double=no | ||
19354 | fi | ||
19355 | |||
19356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19357 | fi | ||
19358 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
19359 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
19360 | if test $ac_cv_type_long_double = yes; then | ||
19361 | |||
19362 | cat >>confdefs.h <<_ACEOF | ||
19363 | #define HAVE_LONG_DOUBLE 1 | ||
19364 | _ACEOF | ||
19365 | |||
19366 | |||
19367 | fi | ||
19368 | |||
19369 | |||
19370 | # Check datatype sizes | ||
19371 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
19372 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
19373 | if test "${ac_cv_type_char+set}" = set; then | ||
19374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19375 | else | ||
19376 | cat >conftest.$ac_ext <<_ACEOF | ||
19377 | /* confdefs.h. */ | ||
19378 | _ACEOF | ||
19379 | cat confdefs.h >>conftest.$ac_ext | ||
19380 | cat >>conftest.$ac_ext <<_ACEOF | ||
19381 | /* end confdefs.h. */ | ||
19382 | $ac_includes_default | ||
19383 | typedef char ac__type_new_; | ||
19384 | int | ||
19385 | main () | ||
19386 | { | ||
19387 | if ((ac__type_new_ *) 0) | ||
19388 | return 0; | ||
19389 | if (sizeof (ac__type_new_)) | ||
19390 | return 0; | ||
19391 | ; | ||
19392 | return 0; | ||
19393 | } | ||
19394 | _ACEOF | ||
19395 | rm -f conftest.$ac_objext | ||
19396 | if { (ac_try="$ac_compile" | ||
19397 | case "(($ac_try" in | ||
19398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19399 | *) ac_try_echo=$ac_try;; | ||
19400 | esac | ||
19401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19402 | (eval "$ac_compile") 2>conftest.er1 | ||
19403 | ac_status=$? | ||
19404 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19405 | rm -f conftest.er1 | ||
19406 | cat conftest.err >&5 | ||
19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19408 | (exit $ac_status); } && { | ||
19409 | test -z "$ac_c_werror_flag" || | ||
19410 | test ! -s conftest.err | ||
19411 | } && test -s conftest.$ac_objext; then | ||
19412 | ac_cv_type_char=yes | ||
19413 | else | ||
19414 | echo "$as_me: failed program was:" >&5 | ||
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19416 | |||
19417 | ac_cv_type_char=no | ||
19418 | fi | ||
19419 | |||
19420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19421 | fi | ||
19422 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
19423 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
19424 | |||
19425 | # The cast to long int works around a bug in the HP C Compiler | ||
19426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19428 | # This bug is HP SR number 8606223364. | ||
19429 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
19430 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
19431 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
19432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19433 | else | ||
19434 | if test "$cross_compiling" = yes; then | ||
19435 | # Depending upon the size, compute the lo and hi bounds. | ||
19436 | cat >conftest.$ac_ext <<_ACEOF | ||
19437 | /* confdefs.h. */ | ||
19438 | _ACEOF | ||
19439 | cat confdefs.h >>conftest.$ac_ext | ||
19440 | cat >>conftest.$ac_ext <<_ACEOF | ||
19441 | /* end confdefs.h. */ | ||
19442 | $ac_includes_default | ||
19443 | typedef char ac__type_sizeof_; | ||
19444 | int | ||
19445 | main () | ||
19446 | { | ||
19447 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19448 | test_array [0] = 0 | ||
19449 | |||
19450 | ; | ||
19451 | return 0; | ||
19452 | } | ||
19453 | _ACEOF | ||
19454 | rm -f conftest.$ac_objext | ||
19455 | if { (ac_try="$ac_compile" | ||
19456 | case "(($ac_try" in | ||
19457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19458 | *) ac_try_echo=$ac_try;; | ||
19459 | esac | ||
19460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19461 | (eval "$ac_compile") 2>conftest.er1 | ||
19462 | ac_status=$? | ||
19463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19464 | rm -f conftest.er1 | ||
19465 | cat conftest.err >&5 | ||
19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19467 | (exit $ac_status); } && { | ||
19468 | test -z "$ac_c_werror_flag" || | ||
19469 | test ! -s conftest.err | ||
19470 | } && test -s conftest.$ac_objext; then | ||
19471 | ac_lo=0 ac_mid=0 | ||
19472 | while :; do | ||
19473 | cat >conftest.$ac_ext <<_ACEOF | ||
19474 | /* confdefs.h. */ | ||
19475 | _ACEOF | ||
19476 | cat confdefs.h >>conftest.$ac_ext | ||
19477 | cat >>conftest.$ac_ext <<_ACEOF | ||
19478 | /* end confdefs.h. */ | ||
19479 | $ac_includes_default | ||
19480 | typedef char ac__type_sizeof_; | ||
19481 | int | ||
19482 | main () | ||
19483 | { | ||
19484 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19485 | test_array [0] = 0 | ||
19486 | |||
19487 | ; | ||
19488 | return 0; | ||
19489 | } | ||
19490 | _ACEOF | ||
19491 | rm -f conftest.$ac_objext | ||
19492 | if { (ac_try="$ac_compile" | ||
19493 | case "(($ac_try" in | ||
19494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19495 | *) ac_try_echo=$ac_try;; | ||
19496 | esac | ||
19497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19498 | (eval "$ac_compile") 2>conftest.er1 | ||
19499 | ac_status=$? | ||
19500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19501 | rm -f conftest.er1 | ||
19502 | cat conftest.err >&5 | ||
19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19504 | (exit $ac_status); } && { | ||
19505 | test -z "$ac_c_werror_flag" || | ||
19506 | test ! -s conftest.err | ||
19507 | } && test -s conftest.$ac_objext; then | ||
19508 | ac_hi=$ac_mid; break | ||
19509 | else | ||
19510 | echo "$as_me: failed program was:" >&5 | ||
19511 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19512 | |||
19513 | ac_lo=`expr $ac_mid + 1` | ||
19514 | if test $ac_lo -le $ac_mid; then | ||
19515 | ac_lo= ac_hi= | ||
19516 | break | ||
19517 | fi | ||
19518 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19519 | fi | ||
19520 | |||
19521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19522 | done | ||
19523 | else | ||
19524 | echo "$as_me: failed program was:" >&5 | ||
19525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19526 | |||
19527 | cat >conftest.$ac_ext <<_ACEOF | ||
19528 | /* confdefs.h. */ | ||
19529 | _ACEOF | ||
19530 | cat confdefs.h >>conftest.$ac_ext | ||
19531 | cat >>conftest.$ac_ext <<_ACEOF | ||
19532 | /* end confdefs.h. */ | ||
19533 | $ac_includes_default | ||
19534 | typedef char ac__type_sizeof_; | ||
19535 | int | ||
19536 | main () | ||
19537 | { | ||
19538 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19539 | test_array [0] = 0 | ||
19540 | |||
19541 | ; | ||
19542 | return 0; | ||
19543 | } | ||
19544 | _ACEOF | ||
19545 | rm -f conftest.$ac_objext | ||
19546 | if { (ac_try="$ac_compile" | ||
19547 | case "(($ac_try" in | ||
19548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19549 | *) ac_try_echo=$ac_try;; | ||
19550 | esac | ||
19551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19552 | (eval "$ac_compile") 2>conftest.er1 | ||
19553 | ac_status=$? | ||
19554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19555 | rm -f conftest.er1 | ||
19556 | cat conftest.err >&5 | ||
19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19558 | (exit $ac_status); } && { | ||
19559 | test -z "$ac_c_werror_flag" || | ||
19560 | test ! -s conftest.err | ||
19561 | } && test -s conftest.$ac_objext; then | ||
19562 | ac_hi=-1 ac_mid=-1 | ||
19563 | while :; do | ||
19564 | cat >conftest.$ac_ext <<_ACEOF | ||
19565 | /* confdefs.h. */ | ||
19566 | _ACEOF | ||
19567 | cat confdefs.h >>conftest.$ac_ext | ||
19568 | cat >>conftest.$ac_ext <<_ACEOF | ||
19569 | /* end confdefs.h. */ | ||
19570 | $ac_includes_default | ||
19571 | typedef char ac__type_sizeof_; | ||
19572 | int | ||
19573 | main () | ||
19574 | { | ||
19575 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19576 | test_array [0] = 0 | ||
19577 | |||
19578 | ; | ||
19579 | return 0; | ||
19580 | } | ||
19581 | _ACEOF | ||
19582 | rm -f conftest.$ac_objext | ||
19583 | if { (ac_try="$ac_compile" | ||
19584 | case "(($ac_try" in | ||
19585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19586 | *) ac_try_echo=$ac_try;; | ||
19587 | esac | ||
19588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19589 | (eval "$ac_compile") 2>conftest.er1 | ||
19590 | ac_status=$? | ||
19591 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19592 | rm -f conftest.er1 | ||
19593 | cat conftest.err >&5 | ||
19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19595 | (exit $ac_status); } && { | ||
19596 | test -z "$ac_c_werror_flag" || | ||
19597 | test ! -s conftest.err | ||
19598 | } && test -s conftest.$ac_objext; then | ||
19599 | ac_lo=$ac_mid; break | ||
19600 | else | ||
19601 | echo "$as_me: failed program was:" >&5 | ||
19602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19603 | |||
19604 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19605 | if test $ac_mid -le $ac_hi; then | ||
19606 | ac_lo= ac_hi= | ||
19607 | break | ||
19608 | fi | ||
19609 | ac_mid=`expr 2 '*' $ac_mid` | ||
19610 | fi | ||
19611 | |||
19612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19613 | done | ||
19614 | else | ||
19615 | echo "$as_me: failed program was:" >&5 | ||
19616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19617 | |||
19618 | ac_lo= ac_hi= | ||
19619 | fi | ||
19620 | |||
19621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19622 | fi | ||
19623 | |||
19624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19625 | # Binary search between lo and hi bounds. | ||
19626 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19627 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19628 | cat >conftest.$ac_ext <<_ACEOF | ||
19629 | /* confdefs.h. */ | ||
19630 | _ACEOF | ||
19631 | cat confdefs.h >>conftest.$ac_ext | ||
19632 | cat >>conftest.$ac_ext <<_ACEOF | ||
19633 | /* end confdefs.h. */ | ||
19634 | $ac_includes_default | ||
19635 | typedef char ac__type_sizeof_; | ||
19636 | int | ||
19637 | main () | ||
19638 | { | ||
19639 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19640 | test_array [0] = 0 | ||
19641 | |||
19642 | ; | ||
19643 | return 0; | ||
19644 | } | ||
19645 | _ACEOF | ||
19646 | rm -f conftest.$ac_objext | ||
19647 | if { (ac_try="$ac_compile" | ||
19648 | case "(($ac_try" in | ||
19649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19650 | *) ac_try_echo=$ac_try;; | ||
19651 | esac | ||
19652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19653 | (eval "$ac_compile") 2>conftest.er1 | ||
19654 | ac_status=$? | ||
19655 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19656 | rm -f conftest.er1 | ||
19657 | cat conftest.err >&5 | ||
19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19659 | (exit $ac_status); } && { | ||
19660 | test -z "$ac_c_werror_flag" || | ||
19661 | test ! -s conftest.err | ||
19662 | } && test -s conftest.$ac_objext; then | ||
19663 | ac_hi=$ac_mid | ||
19664 | else | ||
19665 | echo "$as_me: failed program was:" >&5 | ||
19666 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19667 | |||
19668 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19669 | fi | ||
19670 | |||
19671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19672 | done | ||
19673 | case $ac_lo in | ||
19674 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
19675 | '') if test "$ac_cv_type_char" = yes; then | ||
19676 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19677 | See \`config.log' for more details." >&5 | ||
19678 | echo "$as_me: error: cannot compute sizeof (char) | ||
19679 | See \`config.log' for more details." >&2;} | ||
19680 | { (exit 77); exit 77; }; } | ||
19681 | else | ||
19682 | ac_cv_sizeof_char=0 | ||
19683 | fi ;; | ||
19684 | esac | ||
19685 | else | ||
19686 | cat >conftest.$ac_ext <<_ACEOF | ||
19687 | /* confdefs.h. */ | ||
19688 | _ACEOF | ||
19689 | cat confdefs.h >>conftest.$ac_ext | ||
19690 | cat >>conftest.$ac_ext <<_ACEOF | ||
19691 | /* end confdefs.h. */ | ||
19692 | $ac_includes_default | ||
19693 | typedef char ac__type_sizeof_; | ||
19694 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19695 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19696 | #include <stdio.h> | ||
19697 | #include <stdlib.h> | ||
19698 | int | ||
19699 | main () | ||
19700 | { | ||
19701 | |||
19702 | FILE *f = fopen ("conftest.val", "w"); | ||
19703 | if (! f) | ||
19704 | return 1; | ||
19705 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19706 | { | ||
19707 | long int i = longval (); | ||
19708 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19709 | return 1; | ||
19710 | fprintf (f, "%ld\n", i); | ||
19711 | } | ||
19712 | else | ||
19713 | { | ||
19714 | unsigned long int i = ulongval (); | ||
19715 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19716 | return 1; | ||
19717 | fprintf (f, "%lu\n", i); | ||
19718 | } | ||
19719 | return ferror (f) || fclose (f) != 0; | ||
19720 | |||
19721 | ; | ||
19722 | return 0; | ||
19723 | } | ||
19724 | _ACEOF | ||
19725 | rm -f conftest$ac_exeext | ||
19726 | if { (ac_try="$ac_link" | ||
19727 | case "(($ac_try" in | ||
19728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19729 | *) ac_try_echo=$ac_try;; | ||
19730 | esac | ||
19731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19732 | (eval "$ac_link") 2>&5 | ||
19733 | ac_status=$? | ||
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19736 | { (case "(($ac_try" in | ||
19737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19738 | *) ac_try_echo=$ac_try;; | ||
19739 | esac | ||
19740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19741 | (eval "$ac_try") 2>&5 | ||
19742 | ac_status=$? | ||
19743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19744 | (exit $ac_status); }; }; then | ||
19745 | ac_cv_sizeof_char=`cat conftest.val` | ||
19746 | else | ||
19747 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19748 | echo "$as_me: failed program was:" >&5 | ||
19749 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19750 | |||
19751 | ( exit $ac_status ) | ||
19752 | if test "$ac_cv_type_char" = yes; then | ||
19753 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19754 | See \`config.log' for more details." >&5 | ||
19755 | echo "$as_me: error: cannot compute sizeof (char) | ||
19756 | See \`config.log' for more details." >&2;} | ||
19757 | { (exit 77); exit 77; }; } | ||
19758 | else | ||
19759 | ac_cv_sizeof_char=0 | ||
19760 | fi | ||
19761 | fi | ||
19762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19763 | fi | ||
19764 | rm -f conftest.val | ||
19765 | fi | ||
19766 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
19767 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
19768 | |||
19769 | |||
19770 | |||
19771 | cat >>confdefs.h <<_ACEOF | ||
19772 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
19773 | _ACEOF | ||
19774 | |||
19775 | |||
19776 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
19777 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
19778 | if test "${ac_cv_type_short_int+set}" = set; then | ||
19779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19780 | else | ||
19781 | cat >conftest.$ac_ext <<_ACEOF | ||
19782 | /* confdefs.h. */ | ||
19783 | _ACEOF | ||
19784 | cat confdefs.h >>conftest.$ac_ext | ||
19785 | cat >>conftest.$ac_ext <<_ACEOF | ||
19786 | /* end confdefs.h. */ | ||
19787 | $ac_includes_default | ||
19788 | typedef short int ac__type_new_; | ||
19789 | int | ||
19790 | main () | ||
19791 | { | ||
19792 | if ((ac__type_new_ *) 0) | ||
19793 | return 0; | ||
19794 | if (sizeof (ac__type_new_)) | ||
19795 | return 0; | ||
19796 | ; | ||
19797 | return 0; | ||
19798 | } | ||
19799 | _ACEOF | ||
19800 | rm -f conftest.$ac_objext | ||
19801 | if { (ac_try="$ac_compile" | ||
19802 | case "(($ac_try" in | ||
19803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19804 | *) ac_try_echo=$ac_try;; | ||
19805 | esac | ||
19806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19807 | (eval "$ac_compile") 2>conftest.er1 | ||
19808 | ac_status=$? | ||
19809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19810 | rm -f conftest.er1 | ||
19811 | cat conftest.err >&5 | ||
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19813 | (exit $ac_status); } && { | ||
19814 | test -z "$ac_c_werror_flag" || | ||
19815 | test ! -s conftest.err | ||
19816 | } && test -s conftest.$ac_objext; then | ||
19817 | ac_cv_type_short_int=yes | ||
19818 | else | ||
19819 | echo "$as_me: failed program was:" >&5 | ||
19820 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19821 | |||
19822 | ac_cv_type_short_int=no | ||
19823 | fi | ||
19824 | |||
19825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19826 | fi | ||
19827 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
19828 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
19829 | |||
19830 | # The cast to long int works around a bug in the HP C Compiler | ||
19831 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19832 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19833 | # This bug is HP SR number 8606223364. | ||
19834 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
19835 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
19836 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
19837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19838 | else | ||
19839 | if test "$cross_compiling" = yes; then | ||
19840 | # Depending upon the size, compute the lo and hi bounds. | ||
19841 | cat >conftest.$ac_ext <<_ACEOF | ||
19842 | /* confdefs.h. */ | ||
19843 | _ACEOF | ||
19844 | cat confdefs.h >>conftest.$ac_ext | ||
19845 | cat >>conftest.$ac_ext <<_ACEOF | ||
19846 | /* end confdefs.h. */ | ||
19847 | $ac_includes_default | ||
19848 | typedef short int ac__type_sizeof_; | ||
19849 | int | ||
19850 | main () | ||
19851 | { | ||
19852 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19853 | test_array [0] = 0 | ||
19854 | |||
19855 | ; | ||
19856 | return 0; | ||
19857 | } | ||
19858 | _ACEOF | ||
19859 | rm -f conftest.$ac_objext | ||
19860 | if { (ac_try="$ac_compile" | ||
19861 | case "(($ac_try" in | ||
19862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19863 | *) ac_try_echo=$ac_try;; | ||
19864 | esac | ||
19865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19866 | (eval "$ac_compile") 2>conftest.er1 | ||
19867 | ac_status=$? | ||
19868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19869 | rm -f conftest.er1 | ||
19870 | cat conftest.err >&5 | ||
19871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19872 | (exit $ac_status); } && { | ||
19873 | test -z "$ac_c_werror_flag" || | ||
19874 | test ! -s conftest.err | ||
19875 | } && test -s conftest.$ac_objext; then | ||
19876 | ac_lo=0 ac_mid=0 | ||
19877 | while :; do | ||
19878 | cat >conftest.$ac_ext <<_ACEOF | ||
19879 | /* confdefs.h. */ | ||
19880 | _ACEOF | ||
19881 | cat confdefs.h >>conftest.$ac_ext | ||
19882 | cat >>conftest.$ac_ext <<_ACEOF | ||
19883 | /* end confdefs.h. */ | ||
19884 | $ac_includes_default | ||
19885 | typedef short int ac__type_sizeof_; | ||
19886 | int | ||
19887 | main () | ||
19888 | { | ||
19889 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19890 | test_array [0] = 0 | ||
19891 | |||
19892 | ; | ||
19893 | return 0; | ||
19894 | } | ||
19895 | _ACEOF | ||
19896 | rm -f conftest.$ac_objext | ||
19897 | if { (ac_try="$ac_compile" | ||
19898 | case "(($ac_try" in | ||
19899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19900 | *) ac_try_echo=$ac_try;; | ||
19901 | esac | ||
19902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19903 | (eval "$ac_compile") 2>conftest.er1 | ||
19904 | ac_status=$? | ||
19905 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19906 | rm -f conftest.er1 | ||
19907 | cat conftest.err >&5 | ||
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19909 | (exit $ac_status); } && { | ||
19910 | test -z "$ac_c_werror_flag" || | ||
19911 | test ! -s conftest.err | ||
19912 | } && test -s conftest.$ac_objext; then | ||
19913 | ac_hi=$ac_mid; break | ||
19914 | else | ||
19915 | echo "$as_me: failed program was:" >&5 | ||
19916 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19917 | |||
19918 | ac_lo=`expr $ac_mid + 1` | ||
19919 | if test $ac_lo -le $ac_mid; then | ||
19920 | ac_lo= ac_hi= | ||
19921 | break | ||
19922 | fi | ||
19923 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19924 | fi | ||
19925 | |||
19926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19927 | done | ||
19928 | else | ||
19929 | echo "$as_me: failed program was:" >&5 | ||
19930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19931 | |||
19932 | cat >conftest.$ac_ext <<_ACEOF | ||
19933 | /* confdefs.h. */ | ||
19934 | _ACEOF | ||
19935 | cat confdefs.h >>conftest.$ac_ext | ||
19936 | cat >>conftest.$ac_ext <<_ACEOF | ||
19937 | /* end confdefs.h. */ | ||
19938 | $ac_includes_default | ||
19939 | typedef short int ac__type_sizeof_; | ||
19940 | int | ||
19941 | main () | ||
19942 | { | ||
19943 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19944 | test_array [0] = 0 | ||
19945 | |||
19946 | ; | ||
19947 | return 0; | ||
19948 | } | ||
19949 | _ACEOF | ||
19950 | rm -f conftest.$ac_objext | ||
19951 | if { (ac_try="$ac_compile" | ||
19952 | case "(($ac_try" in | ||
19953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19954 | *) ac_try_echo=$ac_try;; | ||
19955 | esac | ||
19956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19957 | (eval "$ac_compile") 2>conftest.er1 | ||
19958 | ac_status=$? | ||
19959 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19960 | rm -f conftest.er1 | ||
19961 | cat conftest.err >&5 | ||
19962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19963 | (exit $ac_status); } && { | ||
19964 | test -z "$ac_c_werror_flag" || | ||
19965 | test ! -s conftest.err | ||
19966 | } && test -s conftest.$ac_objext; then | ||
19967 | ac_hi=-1 ac_mid=-1 | ||
19968 | while :; do | ||
19969 | cat >conftest.$ac_ext <<_ACEOF | ||
19970 | /* confdefs.h. */ | ||
19971 | _ACEOF | ||
19972 | cat confdefs.h >>conftest.$ac_ext | ||
19973 | cat >>conftest.$ac_ext <<_ACEOF | ||
19974 | /* end confdefs.h. */ | ||
19975 | $ac_includes_default | ||
19976 | typedef short int ac__type_sizeof_; | ||
19977 | int | ||
19978 | main () | ||
19979 | { | ||
19980 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19981 | test_array [0] = 0 | ||
19982 | |||
19983 | ; | ||
19984 | return 0; | ||
19985 | } | ||
19986 | _ACEOF | ||
19987 | rm -f conftest.$ac_objext | ||
19988 | if { (ac_try="$ac_compile" | ||
19989 | case "(($ac_try" in | ||
19990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19991 | *) ac_try_echo=$ac_try;; | ||
19992 | esac | ||
19993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19994 | (eval "$ac_compile") 2>conftest.er1 | ||
19995 | ac_status=$? | ||
19996 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19997 | rm -f conftest.er1 | ||
19998 | cat conftest.err >&5 | ||
19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20000 | (exit $ac_status); } && { | ||
20001 | test -z "$ac_c_werror_flag" || | ||
20002 | test ! -s conftest.err | ||
20003 | } && test -s conftest.$ac_objext; then | ||
20004 | ac_lo=$ac_mid; break | ||
20005 | else | ||
20006 | echo "$as_me: failed program was:" >&5 | ||
20007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20008 | |||
20009 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20010 | if test $ac_mid -le $ac_hi; then | ||
20011 | ac_lo= ac_hi= | ||
20012 | break | ||
20013 | fi | ||
20014 | ac_mid=`expr 2 '*' $ac_mid` | ||
20015 | fi | ||
20016 | |||
20017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20018 | done | ||
20019 | else | ||
20020 | echo "$as_me: failed program was:" >&5 | ||
20021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20022 | |||
20023 | ac_lo= ac_hi= | ||
20024 | fi | ||
20025 | |||
20026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20027 | fi | ||
20028 | |||
20029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20030 | # Binary search between lo and hi bounds. | ||
20031 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20032 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20033 | cat >conftest.$ac_ext <<_ACEOF | ||
20034 | /* confdefs.h. */ | ||
20035 | _ACEOF | ||
20036 | cat confdefs.h >>conftest.$ac_ext | ||
20037 | cat >>conftest.$ac_ext <<_ACEOF | ||
20038 | /* end confdefs.h. */ | ||
20039 | $ac_includes_default | ||
20040 | typedef short int ac__type_sizeof_; | ||
20041 | int | ||
20042 | main () | ||
20043 | { | ||
20044 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20045 | test_array [0] = 0 | ||
20046 | |||
20047 | ; | ||
20048 | return 0; | ||
20049 | } | ||
20050 | _ACEOF | ||
20051 | rm -f conftest.$ac_objext | ||
20052 | if { (ac_try="$ac_compile" | ||
20053 | case "(($ac_try" in | ||
20054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20055 | *) ac_try_echo=$ac_try;; | ||
20056 | esac | ||
20057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20058 | (eval "$ac_compile") 2>conftest.er1 | ||
20059 | ac_status=$? | ||
20060 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20061 | rm -f conftest.er1 | ||
20062 | cat conftest.err >&5 | ||
20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20064 | (exit $ac_status); } && { | ||
20065 | test -z "$ac_c_werror_flag" || | ||
20066 | test ! -s conftest.err | ||
20067 | } && test -s conftest.$ac_objext; then | ||
20068 | ac_hi=$ac_mid | ||
20069 | else | ||
20070 | echo "$as_me: failed program was:" >&5 | ||
20071 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20072 | |||
20073 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20074 | fi | ||
20075 | |||
20076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20077 | done | ||
20078 | case $ac_lo in | ||
20079 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
20080 | '') if test "$ac_cv_type_short_int" = yes; then | ||
20081 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
20082 | See \`config.log' for more details." >&5 | ||
20083 | echo "$as_me: error: cannot compute sizeof (short int) | ||
20084 | See \`config.log' for more details." >&2;} | ||
20085 | { (exit 77); exit 77; }; } | ||
20086 | else | ||
20087 | ac_cv_sizeof_short_int=0 | ||
20088 | fi ;; | ||
20089 | esac | ||
20090 | else | ||
20091 | cat >conftest.$ac_ext <<_ACEOF | ||
20092 | /* confdefs.h. */ | ||
20093 | _ACEOF | ||
20094 | cat confdefs.h >>conftest.$ac_ext | ||
20095 | cat >>conftest.$ac_ext <<_ACEOF | ||
20096 | /* end confdefs.h. */ | ||
20097 | $ac_includes_default | ||
20098 | typedef short int ac__type_sizeof_; | ||
20099 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20100 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20101 | #include <stdio.h> | ||
20102 | #include <stdlib.h> | ||
20103 | int | ||
20104 | main () | ||
20105 | { | ||
20106 | |||
20107 | FILE *f = fopen ("conftest.val", "w"); | ||
20108 | if (! f) | ||
20109 | return 1; | ||
20110 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20111 | { | ||
20112 | long int i = longval (); | ||
20113 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20114 | return 1; | ||
20115 | fprintf (f, "%ld\n", i); | ||
20116 | } | ||
20117 | else | ||
20118 | { | ||
20119 | unsigned long int i = ulongval (); | ||
20120 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20121 | return 1; | ||
20122 | fprintf (f, "%lu\n", i); | ||
20123 | } | ||
20124 | return ferror (f) || fclose (f) != 0; | ||
20125 | |||
20126 | ; | ||
20127 | return 0; | ||
20128 | } | ||
20129 | _ACEOF | ||
20130 | rm -f conftest$ac_exeext | ||
20131 | if { (ac_try="$ac_link" | ||
20132 | case "(($ac_try" in | ||
20133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20134 | *) ac_try_echo=$ac_try;; | ||
20135 | esac | ||
20136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20137 | (eval "$ac_link") 2>&5 | ||
20138 | ac_status=$? | ||
20139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20141 | { (case "(($ac_try" in | ||
20142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20143 | *) ac_try_echo=$ac_try;; | ||
20144 | esac | ||
20145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20146 | (eval "$ac_try") 2>&5 | ||
20147 | ac_status=$? | ||
20148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20149 | (exit $ac_status); }; }; then | ||
20150 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
20151 | else | ||
20152 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20153 | echo "$as_me: failed program was:" >&5 | ||
20154 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20155 | |||
20156 | ( exit $ac_status ) | ||
20157 | if test "$ac_cv_type_short_int" = yes; then | ||
20158 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
20159 | See \`config.log' for more details." >&5 | ||
20160 | echo "$as_me: error: cannot compute sizeof (short int) | ||
20161 | See \`config.log' for more details." >&2;} | ||
20162 | { (exit 77); exit 77; }; } | ||
20163 | else | ||
20164 | ac_cv_sizeof_short_int=0 | ||
20165 | fi | ||
20166 | fi | ||
20167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20168 | fi | ||
20169 | rm -f conftest.val | ||
20170 | fi | ||
20171 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
20172 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
20173 | |||
20174 | |||
20175 | |||
20176 | cat >>confdefs.h <<_ACEOF | ||
20177 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
20178 | _ACEOF | ||
20179 | |||
20180 | |||
20181 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
20182 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
20183 | if test "${ac_cv_type_int+set}" = set; then | ||
20184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20185 | else | ||
20186 | cat >conftest.$ac_ext <<_ACEOF | ||
20187 | /* confdefs.h. */ | ||
20188 | _ACEOF | ||
20189 | cat confdefs.h >>conftest.$ac_ext | ||
20190 | cat >>conftest.$ac_ext <<_ACEOF | ||
20191 | /* end confdefs.h. */ | ||
20192 | $ac_includes_default | ||
20193 | typedef int ac__type_new_; | ||
20194 | int | ||
20195 | main () | ||
20196 | { | ||
20197 | if ((ac__type_new_ *) 0) | ||
20198 | return 0; | ||
20199 | if (sizeof (ac__type_new_)) | ||
20200 | return 0; | ||
20201 | ; | ||
20202 | return 0; | ||
20203 | } | ||
20204 | _ACEOF | ||
20205 | rm -f conftest.$ac_objext | ||
20206 | if { (ac_try="$ac_compile" | ||
20207 | case "(($ac_try" in | ||
20208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20209 | *) ac_try_echo=$ac_try;; | ||
20210 | esac | ||
20211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20212 | (eval "$ac_compile") 2>conftest.er1 | ||
20213 | ac_status=$? | ||
20214 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20215 | rm -f conftest.er1 | ||
20216 | cat conftest.err >&5 | ||
20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20218 | (exit $ac_status); } && { | ||
20219 | test -z "$ac_c_werror_flag" || | ||
20220 | test ! -s conftest.err | ||
20221 | } && test -s conftest.$ac_objext; then | ||
20222 | ac_cv_type_int=yes | ||
20223 | else | ||
20224 | echo "$as_me: failed program was:" >&5 | ||
20225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20226 | |||
20227 | ac_cv_type_int=no | ||
20228 | fi | ||
20229 | |||
20230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20231 | fi | ||
20232 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
20233 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
20234 | |||
20235 | # The cast to long int works around a bug in the HP C Compiler | ||
20236 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20237 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20238 | # This bug is HP SR number 8606223364. | ||
20239 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
20240 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
20241 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
20242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20243 | else | ||
20244 | if test "$cross_compiling" = yes; then | ||
20245 | # Depending upon the size, compute the lo and hi bounds. | ||
20246 | cat >conftest.$ac_ext <<_ACEOF | ||
20247 | /* confdefs.h. */ | ||
20248 | _ACEOF | ||
20249 | cat confdefs.h >>conftest.$ac_ext | ||
20250 | cat >>conftest.$ac_ext <<_ACEOF | ||
20251 | /* end confdefs.h. */ | ||
20252 | $ac_includes_default | ||
20253 | typedef int ac__type_sizeof_; | ||
20254 | int | ||
20255 | main () | ||
20256 | { | ||
20257 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20258 | test_array [0] = 0 | ||
20259 | |||
20260 | ; | ||
20261 | return 0; | ||
20262 | } | ||
20263 | _ACEOF | ||
20264 | rm -f conftest.$ac_objext | ||
20265 | if { (ac_try="$ac_compile" | ||
20266 | case "(($ac_try" in | ||
20267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20268 | *) ac_try_echo=$ac_try;; | ||
20269 | esac | ||
20270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20271 | (eval "$ac_compile") 2>conftest.er1 | ||
20272 | ac_status=$? | ||
20273 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20274 | rm -f conftest.er1 | ||
20275 | cat conftest.err >&5 | ||
20276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20277 | (exit $ac_status); } && { | ||
20278 | test -z "$ac_c_werror_flag" || | ||
20279 | test ! -s conftest.err | ||
20280 | } && test -s conftest.$ac_objext; then | ||
20281 | ac_lo=0 ac_mid=0 | ||
20282 | while :; do | ||
20283 | cat >conftest.$ac_ext <<_ACEOF | ||
20284 | /* confdefs.h. */ | ||
20285 | _ACEOF | ||
20286 | cat confdefs.h >>conftest.$ac_ext | ||
20287 | cat >>conftest.$ac_ext <<_ACEOF | ||
20288 | /* end confdefs.h. */ | ||
20289 | $ac_includes_default | ||
20290 | typedef int ac__type_sizeof_; | ||
20291 | int | ||
20292 | main () | ||
20293 | { | ||
20294 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20295 | test_array [0] = 0 | ||
20296 | |||
20297 | ; | ||
20298 | return 0; | ||
20299 | } | ||
20300 | _ACEOF | ||
20301 | rm -f conftest.$ac_objext | ||
20302 | if { (ac_try="$ac_compile" | ||
20303 | case "(($ac_try" in | ||
20304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20305 | *) ac_try_echo=$ac_try;; | ||
20306 | esac | ||
20307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20308 | (eval "$ac_compile") 2>conftest.er1 | ||
20309 | ac_status=$? | ||
20310 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20311 | rm -f conftest.er1 | ||
20312 | cat conftest.err >&5 | ||
20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20314 | (exit $ac_status); } && { | ||
20315 | test -z "$ac_c_werror_flag" || | ||
20316 | test ! -s conftest.err | ||
20317 | } && test -s conftest.$ac_objext; then | ||
20318 | ac_hi=$ac_mid; break | ||
20319 | else | ||
20320 | echo "$as_me: failed program was:" >&5 | ||
20321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20322 | |||
20323 | ac_lo=`expr $ac_mid + 1` | ||
20324 | if test $ac_lo -le $ac_mid; then | ||
20325 | ac_lo= ac_hi= | ||
20326 | break | ||
20327 | fi | ||
20328 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20329 | fi | ||
20330 | |||
20331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20332 | done | ||
20333 | else | ||
20334 | echo "$as_me: failed program was:" >&5 | ||
20335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20336 | |||
20337 | cat >conftest.$ac_ext <<_ACEOF | ||
20338 | /* confdefs.h. */ | ||
20339 | _ACEOF | ||
20340 | cat confdefs.h >>conftest.$ac_ext | ||
20341 | cat >>conftest.$ac_ext <<_ACEOF | ||
20342 | /* end confdefs.h. */ | ||
20343 | $ac_includes_default | ||
20344 | typedef int ac__type_sizeof_; | ||
20345 | int | ||
20346 | main () | ||
20347 | { | ||
20348 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20349 | test_array [0] = 0 | ||
20350 | |||
20351 | ; | ||
20352 | return 0; | ||
20353 | } | ||
20354 | _ACEOF | ||
20355 | rm -f conftest.$ac_objext | ||
20356 | if { (ac_try="$ac_compile" | ||
20357 | case "(($ac_try" in | ||
20358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20359 | *) ac_try_echo=$ac_try;; | ||
20360 | esac | ||
20361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20362 | (eval "$ac_compile") 2>conftest.er1 | ||
20363 | ac_status=$? | ||
20364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20365 | rm -f conftest.er1 | ||
20366 | cat conftest.err >&5 | ||
20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20368 | (exit $ac_status); } && { | ||
20369 | test -z "$ac_c_werror_flag" || | ||
20370 | test ! -s conftest.err | ||
20371 | } && test -s conftest.$ac_objext; then | ||
20372 | ac_hi=-1 ac_mid=-1 | ||
20373 | while :; do | ||
20374 | cat >conftest.$ac_ext <<_ACEOF | ||
20375 | /* confdefs.h. */ | ||
20376 | _ACEOF | ||
20377 | cat confdefs.h >>conftest.$ac_ext | ||
20378 | cat >>conftest.$ac_ext <<_ACEOF | ||
20379 | /* end confdefs.h. */ | ||
20380 | $ac_includes_default | ||
20381 | typedef int ac__type_sizeof_; | ||
20382 | int | ||
20383 | main () | ||
20384 | { | ||
20385 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20386 | test_array [0] = 0 | ||
20387 | |||
20388 | ; | ||
20389 | return 0; | ||
20390 | } | ||
20391 | _ACEOF | ||
20392 | rm -f conftest.$ac_objext | ||
20393 | if { (ac_try="$ac_compile" | ||
20394 | case "(($ac_try" in | ||
20395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20396 | *) ac_try_echo=$ac_try;; | ||
20397 | esac | ||
20398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20399 | (eval "$ac_compile") 2>conftest.er1 | ||
20400 | ac_status=$? | ||
20401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20402 | rm -f conftest.er1 | ||
20403 | cat conftest.err >&5 | ||
20404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20405 | (exit $ac_status); } && { | ||
20406 | test -z "$ac_c_werror_flag" || | ||
20407 | test ! -s conftest.err | ||
20408 | } && test -s conftest.$ac_objext; then | ||
20409 | ac_lo=$ac_mid; break | ||
20410 | else | ||
20411 | echo "$as_me: failed program was:" >&5 | ||
20412 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20413 | |||
20414 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20415 | if test $ac_mid -le $ac_hi; then | ||
20416 | ac_lo= ac_hi= | ||
20417 | break | ||
20418 | fi | ||
20419 | ac_mid=`expr 2 '*' $ac_mid` | ||
20420 | fi | ||
20421 | |||
20422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20423 | done | ||
20424 | else | ||
20425 | echo "$as_me: failed program was:" >&5 | ||
20426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20427 | |||
20428 | ac_lo= ac_hi= | ||
20429 | fi | ||
20430 | |||
20431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20432 | fi | ||
20433 | |||
20434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20435 | # Binary search between lo and hi bounds. | ||
20436 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20437 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20438 | cat >conftest.$ac_ext <<_ACEOF | ||
20439 | /* confdefs.h. */ | ||
20440 | _ACEOF | ||
20441 | cat confdefs.h >>conftest.$ac_ext | ||
20442 | cat >>conftest.$ac_ext <<_ACEOF | ||
20443 | /* end confdefs.h. */ | ||
20444 | $ac_includes_default | ||
20445 | typedef int ac__type_sizeof_; | ||
20446 | int | ||
20447 | main () | ||
20448 | { | ||
20449 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20450 | test_array [0] = 0 | ||
20451 | |||
20452 | ; | ||
20453 | return 0; | ||
20454 | } | ||
20455 | _ACEOF | ||
20456 | rm -f conftest.$ac_objext | ||
20457 | if { (ac_try="$ac_compile" | ||
20458 | case "(($ac_try" in | ||
20459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20460 | *) ac_try_echo=$ac_try;; | ||
20461 | esac | ||
20462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20463 | (eval "$ac_compile") 2>conftest.er1 | ||
20464 | ac_status=$? | ||
20465 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20466 | rm -f conftest.er1 | ||
20467 | cat conftest.err >&5 | ||
20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20469 | (exit $ac_status); } && { | ||
20470 | test -z "$ac_c_werror_flag" || | ||
20471 | test ! -s conftest.err | ||
20472 | } && test -s conftest.$ac_objext; then | ||
20473 | ac_hi=$ac_mid | ||
20474 | else | ||
20475 | echo "$as_me: failed program was:" >&5 | ||
20476 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20477 | |||
20478 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20479 | fi | ||
20480 | |||
20481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20482 | done | ||
20483 | case $ac_lo in | ||
20484 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
20485 | '') if test "$ac_cv_type_int" = yes; then | ||
20486 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
20487 | See \`config.log' for more details." >&5 | ||
20488 | echo "$as_me: error: cannot compute sizeof (int) | ||
20489 | See \`config.log' for more details." >&2;} | ||
20490 | { (exit 77); exit 77; }; } | ||
20491 | else | ||
20492 | ac_cv_sizeof_int=0 | ||
20493 | fi ;; | ||
20494 | esac | ||
20495 | else | ||
20496 | cat >conftest.$ac_ext <<_ACEOF | ||
20497 | /* confdefs.h. */ | ||
20498 | _ACEOF | ||
20499 | cat confdefs.h >>conftest.$ac_ext | ||
20500 | cat >>conftest.$ac_ext <<_ACEOF | ||
20501 | /* end confdefs.h. */ | ||
20502 | $ac_includes_default | ||
20503 | typedef int ac__type_sizeof_; | ||
20504 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20505 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20506 | #include <stdio.h> | ||
20507 | #include <stdlib.h> | ||
20508 | int | ||
20509 | main () | ||
20510 | { | ||
20511 | |||
20512 | FILE *f = fopen ("conftest.val", "w"); | ||
20513 | if (! f) | ||
20514 | return 1; | ||
20515 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20516 | { | ||
20517 | long int i = longval (); | ||
20518 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20519 | return 1; | ||
20520 | fprintf (f, "%ld\n", i); | ||
20521 | } | ||
20522 | else | ||
20523 | { | ||
20524 | unsigned long int i = ulongval (); | ||
20525 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20526 | return 1; | ||
20527 | fprintf (f, "%lu\n", i); | ||
20528 | } | ||
20529 | return ferror (f) || fclose (f) != 0; | ||
20530 | |||
20531 | ; | ||
20532 | return 0; | ||
20533 | } | ||
20534 | _ACEOF | ||
20535 | rm -f conftest$ac_exeext | ||
20536 | if { (ac_try="$ac_link" | ||
20537 | case "(($ac_try" in | ||
20538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20539 | *) ac_try_echo=$ac_try;; | ||
20540 | esac | ||
20541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20542 | (eval "$ac_link") 2>&5 | ||
20543 | ac_status=$? | ||
20544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20546 | { (case "(($ac_try" in | ||
20547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20548 | *) ac_try_echo=$ac_try;; | ||
20549 | esac | ||
20550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20551 | (eval "$ac_try") 2>&5 | ||
20552 | ac_status=$? | ||
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20554 | (exit $ac_status); }; }; then | ||
20555 | ac_cv_sizeof_int=`cat conftest.val` | ||
20556 | else | ||
20557 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20558 | echo "$as_me: failed program was:" >&5 | ||
20559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20560 | |||
20561 | ( exit $ac_status ) | ||
20562 | if test "$ac_cv_type_int" = yes; then | ||
20563 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
20564 | See \`config.log' for more details." >&5 | ||
20565 | echo "$as_me: error: cannot compute sizeof (int) | ||
20566 | See \`config.log' for more details." >&2;} | ||
20567 | { (exit 77); exit 77; }; } | ||
20568 | else | ||
20569 | ac_cv_sizeof_int=0 | ||
20570 | fi | ||
20571 | fi | ||
20572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20573 | fi | ||
20574 | rm -f conftest.val | ||
20575 | fi | ||
20576 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
20577 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
20578 | |||
20579 | |||
20580 | |||
20581 | cat >>confdefs.h <<_ACEOF | ||
20582 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
20583 | _ACEOF | ||
20584 | |||
20585 | |||
20586 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
20587 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
20588 | if test "${ac_cv_type_long_int+set}" = set; then | ||
20589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20590 | else | ||
20591 | cat >conftest.$ac_ext <<_ACEOF | ||
20592 | /* confdefs.h. */ | ||
20593 | _ACEOF | ||
20594 | cat confdefs.h >>conftest.$ac_ext | ||
20595 | cat >>conftest.$ac_ext <<_ACEOF | ||
20596 | /* end confdefs.h. */ | ||
20597 | $ac_includes_default | ||
20598 | typedef long int ac__type_new_; | ||
20599 | int | ||
20600 | main () | ||
20601 | { | ||
20602 | if ((ac__type_new_ *) 0) | ||
20603 | return 0; | ||
20604 | if (sizeof (ac__type_new_)) | ||
20605 | return 0; | ||
20606 | ; | ||
20607 | return 0; | ||
20608 | } | ||
20609 | _ACEOF | ||
20610 | rm -f conftest.$ac_objext | ||
20611 | if { (ac_try="$ac_compile" | ||
20612 | case "(($ac_try" in | ||
20613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20614 | *) ac_try_echo=$ac_try;; | ||
20615 | esac | ||
20616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20617 | (eval "$ac_compile") 2>conftest.er1 | ||
20618 | ac_status=$? | ||
20619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20620 | rm -f conftest.er1 | ||
20621 | cat conftest.err >&5 | ||
20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20623 | (exit $ac_status); } && { | ||
20624 | test -z "$ac_c_werror_flag" || | ||
20625 | test ! -s conftest.err | ||
20626 | } && test -s conftest.$ac_objext; then | ||
20627 | ac_cv_type_long_int=yes | ||
20628 | else | ||
20629 | echo "$as_me: failed program was:" >&5 | ||
20630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20631 | |||
20632 | ac_cv_type_long_int=no | ||
20633 | fi | ||
20634 | |||
20635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20636 | fi | ||
20637 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
20638 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
20639 | |||
20640 | # The cast to long int works around a bug in the HP C Compiler | ||
20641 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20642 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20643 | # This bug is HP SR number 8606223364. | ||
20644 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
20645 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
20646 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
20647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20648 | else | ||
20649 | if test "$cross_compiling" = yes; then | ||
20650 | # Depending upon the size, compute the lo and hi bounds. | ||
20651 | cat >conftest.$ac_ext <<_ACEOF | ||
20652 | /* confdefs.h. */ | ||
20653 | _ACEOF | ||
20654 | cat confdefs.h >>conftest.$ac_ext | ||
20655 | cat >>conftest.$ac_ext <<_ACEOF | ||
20656 | /* end confdefs.h. */ | ||
20657 | $ac_includes_default | ||
20658 | typedef long int ac__type_sizeof_; | ||
20659 | int | ||
20660 | main () | ||
20661 | { | ||
20662 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20663 | test_array [0] = 0 | ||
20664 | |||
20665 | ; | ||
20666 | return 0; | ||
20667 | } | ||
20668 | _ACEOF | ||
20669 | rm -f conftest.$ac_objext | ||
20670 | if { (ac_try="$ac_compile" | ||
20671 | case "(($ac_try" in | ||
20672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20673 | *) ac_try_echo=$ac_try;; | ||
20674 | esac | ||
20675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20676 | (eval "$ac_compile") 2>conftest.er1 | ||
20677 | ac_status=$? | ||
20678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20679 | rm -f conftest.er1 | ||
20680 | cat conftest.err >&5 | ||
20681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20682 | (exit $ac_status); } && { | ||
20683 | test -z "$ac_c_werror_flag" || | ||
20684 | test ! -s conftest.err | ||
20685 | } && test -s conftest.$ac_objext; then | ||
20686 | ac_lo=0 ac_mid=0 | ||
20687 | while :; do | ||
20688 | cat >conftest.$ac_ext <<_ACEOF | ||
20689 | /* confdefs.h. */ | ||
20690 | _ACEOF | ||
20691 | cat confdefs.h >>conftest.$ac_ext | ||
20692 | cat >>conftest.$ac_ext <<_ACEOF | ||
20693 | /* end confdefs.h. */ | ||
20694 | $ac_includes_default | ||
20695 | typedef long int ac__type_sizeof_; | ||
20696 | int | ||
20697 | main () | ||
20698 | { | ||
20699 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20700 | test_array [0] = 0 | ||
20701 | |||
20702 | ; | ||
20703 | return 0; | ||
20704 | } | ||
20705 | _ACEOF | ||
20706 | rm -f conftest.$ac_objext | ||
20707 | if { (ac_try="$ac_compile" | ||
20708 | case "(($ac_try" in | ||
20709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20710 | *) ac_try_echo=$ac_try;; | ||
20711 | esac | ||
20712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20713 | (eval "$ac_compile") 2>conftest.er1 | ||
20714 | ac_status=$? | ||
20715 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20716 | rm -f conftest.er1 | ||
20717 | cat conftest.err >&5 | ||
20718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20719 | (exit $ac_status); } && { | ||
20720 | test -z "$ac_c_werror_flag" || | ||
20721 | test ! -s conftest.err | ||
20722 | } && test -s conftest.$ac_objext; then | ||
20723 | ac_hi=$ac_mid; break | ||
20724 | else | ||
20725 | echo "$as_me: failed program was:" >&5 | ||
20726 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20727 | |||
20728 | ac_lo=`expr $ac_mid + 1` | ||
20729 | if test $ac_lo -le $ac_mid; then | ||
20730 | ac_lo= ac_hi= | ||
20731 | break | ||
20732 | fi | ||
20733 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20734 | fi | ||
20735 | |||
20736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20737 | done | ||
20738 | else | ||
20739 | echo "$as_me: failed program was:" >&5 | ||
20740 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20741 | |||
20742 | cat >conftest.$ac_ext <<_ACEOF | ||
20743 | /* confdefs.h. */ | ||
20744 | _ACEOF | ||
20745 | cat confdefs.h >>conftest.$ac_ext | ||
20746 | cat >>conftest.$ac_ext <<_ACEOF | ||
20747 | /* end confdefs.h. */ | ||
20748 | $ac_includes_default | ||
20749 | typedef long int ac__type_sizeof_; | ||
20750 | int | ||
20751 | main () | ||
20752 | { | ||
20753 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20754 | test_array [0] = 0 | ||
20755 | |||
20756 | ; | ||
20757 | return 0; | ||
20758 | } | ||
20759 | _ACEOF | ||
20760 | rm -f conftest.$ac_objext | ||
20761 | if { (ac_try="$ac_compile" | ||
20762 | case "(($ac_try" in | ||
20763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20764 | *) ac_try_echo=$ac_try;; | ||
20765 | esac | ||
20766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20767 | (eval "$ac_compile") 2>conftest.er1 | ||
20768 | ac_status=$? | ||
20769 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20770 | rm -f conftest.er1 | ||
20771 | cat conftest.err >&5 | ||
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20773 | (exit $ac_status); } && { | ||
20774 | test -z "$ac_c_werror_flag" || | ||
20775 | test ! -s conftest.err | ||
20776 | } && test -s conftest.$ac_objext; then | ||
20777 | ac_hi=-1 ac_mid=-1 | ||
20778 | while :; do | ||
20779 | cat >conftest.$ac_ext <<_ACEOF | ||
20780 | /* confdefs.h. */ | ||
20781 | _ACEOF | ||
20782 | cat confdefs.h >>conftest.$ac_ext | ||
20783 | cat >>conftest.$ac_ext <<_ACEOF | ||
20784 | /* end confdefs.h. */ | ||
20785 | $ac_includes_default | ||
20786 | typedef long int ac__type_sizeof_; | ||
20787 | int | ||
20788 | main () | ||
20789 | { | ||
20790 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20791 | test_array [0] = 0 | ||
20792 | |||
20793 | ; | ||
20794 | return 0; | ||
20795 | } | ||
20796 | _ACEOF | ||
20797 | rm -f conftest.$ac_objext | ||
20798 | if { (ac_try="$ac_compile" | ||
20799 | case "(($ac_try" in | ||
20800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20801 | *) ac_try_echo=$ac_try;; | ||
20802 | esac | ||
20803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20804 | (eval "$ac_compile") 2>conftest.er1 | ||
20805 | ac_status=$? | ||
20806 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20807 | rm -f conftest.er1 | ||
20808 | cat conftest.err >&5 | ||
20809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20810 | (exit $ac_status); } && { | ||
20811 | test -z "$ac_c_werror_flag" || | ||
20812 | test ! -s conftest.err | ||
20813 | } && test -s conftest.$ac_objext; then | ||
20814 | ac_lo=$ac_mid; break | ||
20815 | else | ||
20816 | echo "$as_me: failed program was:" >&5 | ||
20817 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20818 | |||
20819 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20820 | if test $ac_mid -le $ac_hi; then | ||
20821 | ac_lo= ac_hi= | ||
20822 | break | ||
20823 | fi | ||
20824 | ac_mid=`expr 2 '*' $ac_mid` | ||
20825 | fi | ||
20826 | |||
20827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20828 | done | ||
20829 | else | ||
20830 | echo "$as_me: failed program was:" >&5 | ||
20831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20832 | |||
20833 | ac_lo= ac_hi= | ||
20834 | fi | ||
20835 | |||
20836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20837 | fi | ||
20838 | |||
20839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20840 | # Binary search between lo and hi bounds. | ||
20841 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20842 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20843 | cat >conftest.$ac_ext <<_ACEOF | ||
20844 | /* confdefs.h. */ | ||
20845 | _ACEOF | ||
20846 | cat confdefs.h >>conftest.$ac_ext | ||
20847 | cat >>conftest.$ac_ext <<_ACEOF | ||
20848 | /* end confdefs.h. */ | ||
20849 | $ac_includes_default | ||
20850 | typedef long int ac__type_sizeof_; | ||
20851 | int | ||
20852 | main () | ||
20853 | { | ||
20854 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20855 | test_array [0] = 0 | ||
20856 | |||
20857 | ; | ||
20858 | return 0; | ||
20859 | } | ||
20860 | _ACEOF | ||
20861 | rm -f conftest.$ac_objext | ||
20862 | if { (ac_try="$ac_compile" | ||
20863 | case "(($ac_try" in | ||
20864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20865 | *) ac_try_echo=$ac_try;; | ||
20866 | esac | ||
20867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20868 | (eval "$ac_compile") 2>conftest.er1 | ||
20869 | ac_status=$? | ||
20870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20871 | rm -f conftest.er1 | ||
20872 | cat conftest.err >&5 | ||
20873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20874 | (exit $ac_status); } && { | ||
20875 | test -z "$ac_c_werror_flag" || | ||
20876 | test ! -s conftest.err | ||
20877 | } && test -s conftest.$ac_objext; then | ||
20878 | ac_hi=$ac_mid | ||
20879 | else | ||
20880 | echo "$as_me: failed program was:" >&5 | ||
20881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20882 | |||
20883 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20884 | fi | ||
20885 | |||
20886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20887 | done | ||
20888 | case $ac_lo in | ||
20889 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
20890 | '') if test "$ac_cv_type_long_int" = yes; then | ||
20891 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20892 | See \`config.log' for more details." >&5 | ||
20893 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20894 | See \`config.log' for more details." >&2;} | ||
20895 | { (exit 77); exit 77; }; } | ||
20896 | else | ||
20897 | ac_cv_sizeof_long_int=0 | ||
20898 | fi ;; | ||
20899 | esac | ||
20900 | else | ||
20901 | cat >conftest.$ac_ext <<_ACEOF | ||
20902 | /* confdefs.h. */ | ||
20903 | _ACEOF | ||
20904 | cat confdefs.h >>conftest.$ac_ext | ||
20905 | cat >>conftest.$ac_ext <<_ACEOF | ||
20906 | /* end confdefs.h. */ | ||
20907 | $ac_includes_default | ||
20908 | typedef long int ac__type_sizeof_; | ||
20909 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20910 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20911 | #include <stdio.h> | ||
20912 | #include <stdlib.h> | ||
20913 | int | ||
20914 | main () | ||
20915 | { | ||
20916 | |||
20917 | FILE *f = fopen ("conftest.val", "w"); | ||
20918 | if (! f) | ||
20919 | return 1; | ||
20920 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20921 | { | ||
20922 | long int i = longval (); | ||
20923 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20924 | return 1; | ||
20925 | fprintf (f, "%ld\n", i); | ||
20926 | } | ||
20927 | else | ||
20928 | { | ||
20929 | unsigned long int i = ulongval (); | ||
20930 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20931 | return 1; | ||
20932 | fprintf (f, "%lu\n", i); | ||
20933 | } | ||
20934 | return ferror (f) || fclose (f) != 0; | ||
20935 | |||
20936 | ; | ||
20937 | return 0; | ||
20938 | } | ||
20939 | _ACEOF | ||
20940 | rm -f conftest$ac_exeext | ||
20941 | if { (ac_try="$ac_link" | ||
20942 | case "(($ac_try" in | ||
20943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20944 | *) ac_try_echo=$ac_try;; | ||
20945 | esac | ||
20946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20947 | (eval "$ac_link") 2>&5 | ||
20948 | ac_status=$? | ||
20949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20951 | { (case "(($ac_try" in | ||
20952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20953 | *) ac_try_echo=$ac_try;; | ||
20954 | esac | ||
20955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20956 | (eval "$ac_try") 2>&5 | ||
20957 | ac_status=$? | ||
20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20959 | (exit $ac_status); }; }; then | ||
20960 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
20961 | else | ||
20962 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20963 | echo "$as_me: failed program was:" >&5 | ||
20964 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20965 | |||
20966 | ( exit $ac_status ) | ||
20967 | if test "$ac_cv_type_long_int" = yes; then | ||
20968 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20969 | See \`config.log' for more details." >&5 | ||
20970 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20971 | See \`config.log' for more details." >&2;} | ||
20972 | { (exit 77); exit 77; }; } | ||
20973 | else | ||
20974 | ac_cv_sizeof_long_int=0 | ||
20975 | fi | ||
20976 | fi | ||
20977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20978 | fi | ||
20979 | rm -f conftest.val | ||
20980 | fi | ||
20981 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
20982 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
20983 | |||
20984 | |||
20985 | |||
20986 | cat >>confdefs.h <<_ACEOF | ||
20987 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
20988 | _ACEOF | ||
20989 | |||
20990 | |||
20991 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
20992 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
20993 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
20994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20995 | else | ||
20996 | cat >conftest.$ac_ext <<_ACEOF | ||
20997 | /* confdefs.h. */ | ||
20998 | _ACEOF | ||
20999 | cat confdefs.h >>conftest.$ac_ext | ||
21000 | cat >>conftest.$ac_ext <<_ACEOF | ||
21001 | /* end confdefs.h. */ | ||
21002 | $ac_includes_default | ||
21003 | typedef long long int ac__type_new_; | ||
21004 | int | ||
21005 | main () | ||
21006 | { | ||
21007 | if ((ac__type_new_ *) 0) | ||
21008 | return 0; | ||
21009 | if (sizeof (ac__type_new_)) | ||
21010 | return 0; | ||
21011 | ; | ||
21012 | return 0; | ||
21013 | } | ||
21014 | _ACEOF | ||
21015 | rm -f conftest.$ac_objext | ||
21016 | if { (ac_try="$ac_compile" | ||
21017 | case "(($ac_try" in | ||
21018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21019 | *) ac_try_echo=$ac_try;; | ||
21020 | esac | ||
21021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21022 | (eval "$ac_compile") 2>conftest.er1 | ||
21023 | ac_status=$? | ||
21024 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21025 | rm -f conftest.er1 | ||
21026 | cat conftest.err >&5 | ||
21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21028 | (exit $ac_status); } && { | ||
21029 | test -z "$ac_c_werror_flag" || | ||
21030 | test ! -s conftest.err | ||
21031 | } && test -s conftest.$ac_objext; then | ||
21032 | ac_cv_type_long_long_int=yes | ||
21033 | else | ||
21034 | echo "$as_me: failed program was:" >&5 | ||
21035 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21036 | |||
21037 | ac_cv_type_long_long_int=no | ||
21038 | fi | ||
21039 | |||
21040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21041 | fi | ||
21042 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
21043 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
21044 | |||
21045 | # The cast to long int works around a bug in the HP C Compiler | ||
21046 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
21047 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
21048 | # This bug is HP SR number 8606223364. | ||
21049 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
21050 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
21051 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
21052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21053 | else | ||
21054 | if test "$cross_compiling" = yes; then | ||
21055 | # Depending upon the size, compute the lo and hi bounds. | ||
21056 | cat >conftest.$ac_ext <<_ACEOF | ||
21057 | /* confdefs.h. */ | ||
21058 | _ACEOF | ||
21059 | cat confdefs.h >>conftest.$ac_ext | ||
21060 | cat >>conftest.$ac_ext <<_ACEOF | ||
21061 | /* end confdefs.h. */ | ||
21062 | $ac_includes_default | ||
21063 | typedef long long int ac__type_sizeof_; | ||
21064 | int | ||
21065 | main () | ||
21066 | { | ||
21067 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
21068 | test_array [0] = 0 | ||
21069 | |||
21070 | ; | ||
21071 | return 0; | ||
21072 | } | ||
21073 | _ACEOF | ||
21074 | rm -f conftest.$ac_objext | ||
21075 | if { (ac_try="$ac_compile" | ||
21076 | case "(($ac_try" in | ||
21077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21078 | *) ac_try_echo=$ac_try;; | ||
21079 | esac | ||
21080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21081 | (eval "$ac_compile") 2>conftest.er1 | ||
21082 | ac_status=$? | ||
21083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21084 | rm -f conftest.er1 | ||
21085 | cat conftest.err >&5 | ||
21086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21087 | (exit $ac_status); } && { | ||
21088 | test -z "$ac_c_werror_flag" || | ||
21089 | test ! -s conftest.err | ||
21090 | } && test -s conftest.$ac_objext; then | ||
21091 | ac_lo=0 ac_mid=0 | ||
21092 | while :; do | ||
21093 | cat >conftest.$ac_ext <<_ACEOF | ||
21094 | /* confdefs.h. */ | ||
21095 | _ACEOF | ||
21096 | cat confdefs.h >>conftest.$ac_ext | ||
21097 | cat >>conftest.$ac_ext <<_ACEOF | ||
21098 | /* end confdefs.h. */ | ||
21099 | $ac_includes_default | ||
21100 | typedef long long int ac__type_sizeof_; | ||
21101 | int | ||
21102 | main () | ||
21103 | { | ||
21104 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21105 | test_array [0] = 0 | ||
21106 | |||
21107 | ; | ||
21108 | return 0; | ||
21109 | } | ||
21110 | _ACEOF | ||
21111 | rm -f conftest.$ac_objext | ||
21112 | if { (ac_try="$ac_compile" | ||
21113 | case "(($ac_try" in | ||
21114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21115 | *) ac_try_echo=$ac_try;; | ||
21116 | esac | ||
21117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21118 | (eval "$ac_compile") 2>conftest.er1 | ||
21119 | ac_status=$? | ||
21120 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21121 | rm -f conftest.er1 | ||
21122 | cat conftest.err >&5 | ||
21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21124 | (exit $ac_status); } && { | ||
21125 | test -z "$ac_c_werror_flag" || | ||
21126 | test ! -s conftest.err | ||
21127 | } && test -s conftest.$ac_objext; then | ||
21128 | ac_hi=$ac_mid; break | ||
21129 | else | ||
21130 | echo "$as_me: failed program was:" >&5 | ||
21131 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21132 | |||
21133 | ac_lo=`expr $ac_mid + 1` | ||
21134 | if test $ac_lo -le $ac_mid; then | ||
21135 | ac_lo= ac_hi= | ||
21136 | break | ||
21137 | fi | ||
21138 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
21139 | fi | ||
21140 | |||
21141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21142 | done | ||
21143 | else | ||
21144 | echo "$as_me: failed program was:" >&5 | ||
21145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21146 | |||
21147 | cat >conftest.$ac_ext <<_ACEOF | ||
21148 | /* confdefs.h. */ | ||
21149 | _ACEOF | ||
21150 | cat confdefs.h >>conftest.$ac_ext | ||
21151 | cat >>conftest.$ac_ext <<_ACEOF | ||
21152 | /* end confdefs.h. */ | ||
21153 | $ac_includes_default | ||
21154 | typedef long long int ac__type_sizeof_; | ||
21155 | int | ||
21156 | main () | ||
21157 | { | ||
21158 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
21159 | test_array [0] = 0 | ||
21160 | |||
21161 | ; | ||
21162 | return 0; | ||
21163 | } | ||
21164 | _ACEOF | ||
21165 | rm -f conftest.$ac_objext | ||
21166 | if { (ac_try="$ac_compile" | ||
21167 | case "(($ac_try" in | ||
21168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21169 | *) ac_try_echo=$ac_try;; | ||
21170 | esac | ||
21171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21172 | (eval "$ac_compile") 2>conftest.er1 | ||
21173 | ac_status=$? | ||
21174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21175 | rm -f conftest.er1 | ||
21176 | cat conftest.err >&5 | ||
21177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21178 | (exit $ac_status); } && { | ||
21179 | test -z "$ac_c_werror_flag" || | ||
21180 | test ! -s conftest.err | ||
21181 | } && test -s conftest.$ac_objext; then | ||
21182 | ac_hi=-1 ac_mid=-1 | ||
21183 | while :; do | ||
21184 | cat >conftest.$ac_ext <<_ACEOF | ||
21185 | /* confdefs.h. */ | ||
21186 | _ACEOF | ||
21187 | cat confdefs.h >>conftest.$ac_ext | ||
21188 | cat >>conftest.$ac_ext <<_ACEOF | ||
21189 | /* end confdefs.h. */ | ||
21190 | $ac_includes_default | ||
21191 | typedef long long int ac__type_sizeof_; | ||
21192 | int | ||
21193 | main () | ||
21194 | { | ||
21195 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
21196 | test_array [0] = 0 | ||
21197 | |||
21198 | ; | ||
21199 | return 0; | ||
21200 | } | ||
21201 | _ACEOF | ||
21202 | rm -f conftest.$ac_objext | ||
21203 | if { (ac_try="$ac_compile" | ||
21204 | case "(($ac_try" in | ||
21205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21206 | *) ac_try_echo=$ac_try;; | ||
21207 | esac | ||
21208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21209 | (eval "$ac_compile") 2>conftest.er1 | ||
21210 | ac_status=$? | ||
21211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21212 | rm -f conftest.er1 | ||
21213 | cat conftest.err >&5 | ||
21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21215 | (exit $ac_status); } && { | ||
21216 | test -z "$ac_c_werror_flag" || | ||
21217 | test ! -s conftest.err | ||
21218 | } && test -s conftest.$ac_objext; then | ||
21219 | ac_lo=$ac_mid; break | ||
21220 | else | ||
21221 | echo "$as_me: failed program was:" >&5 | ||
21222 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21223 | |||
21224 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21225 | if test $ac_mid -le $ac_hi; then | ||
21226 | ac_lo= ac_hi= | ||
21227 | break | ||
21228 | fi | ||
21229 | ac_mid=`expr 2 '*' $ac_mid` | ||
21230 | fi | ||
21231 | |||
21232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21233 | done | ||
21234 | else | ||
21235 | echo "$as_me: failed program was:" >&5 | ||
21236 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21237 | |||
21238 | ac_lo= ac_hi= | ||
21239 | fi | ||
21240 | |||
21241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21242 | fi | ||
21243 | |||
21244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21245 | # Binary search between lo and hi bounds. | ||
21246 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21247 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21248 | cat >conftest.$ac_ext <<_ACEOF | ||
21249 | /* confdefs.h. */ | ||
21250 | _ACEOF | ||
21251 | cat confdefs.h >>conftest.$ac_ext | ||
21252 | cat >>conftest.$ac_ext <<_ACEOF | ||
21253 | /* end confdefs.h. */ | ||
21254 | $ac_includes_default | ||
21255 | typedef long long int ac__type_sizeof_; | ||
21256 | int | ||
21257 | main () | ||
21258 | { | ||
21259 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21260 | test_array [0] = 0 | ||
21261 | |||
21262 | ; | ||
21263 | return 0; | ||
21264 | } | ||
21265 | _ACEOF | ||
21266 | rm -f conftest.$ac_objext | ||
21267 | if { (ac_try="$ac_compile" | ||
21268 | case "(($ac_try" in | ||
21269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21270 | *) ac_try_echo=$ac_try;; | ||
21271 | esac | ||
21272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21273 | (eval "$ac_compile") 2>conftest.er1 | ||
21274 | ac_status=$? | ||
21275 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21276 | rm -f conftest.er1 | ||
21277 | cat conftest.err >&5 | ||
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21279 | (exit $ac_status); } && { | ||
21280 | test -z "$ac_c_werror_flag" || | ||
21281 | test ! -s conftest.err | ||
21282 | } && test -s conftest.$ac_objext; then | ||
21283 | ac_hi=$ac_mid | ||
21284 | else | ||
21285 | echo "$as_me: failed program was:" >&5 | ||
21286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21287 | |||
21288 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21289 | fi | ||
21290 | |||
21291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21292 | done | ||
21293 | case $ac_lo in | ||
21294 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
21295 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
21296 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21297 | See \`config.log' for more details." >&5 | ||
21298 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
21299 | See \`config.log' for more details." >&2;} | ||
21300 | { (exit 77); exit 77; }; } | ||
21301 | else | ||
21302 | ac_cv_sizeof_long_long_int=0 | ||
21303 | fi ;; | ||
21304 | esac | ||
21305 | else | ||
21306 | cat >conftest.$ac_ext <<_ACEOF | ||
21307 | /* confdefs.h. */ | ||
21308 | _ACEOF | ||
21309 | cat confdefs.h >>conftest.$ac_ext | ||
21310 | cat >>conftest.$ac_ext <<_ACEOF | ||
21311 | /* end confdefs.h. */ | ||
21312 | $ac_includes_default | ||
21313 | typedef long long int ac__type_sizeof_; | ||
21314 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21315 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21316 | #include <stdio.h> | ||
21317 | #include <stdlib.h> | ||
21318 | int | ||
21319 | main () | ||
21320 | { | ||
21321 | |||
21322 | FILE *f = fopen ("conftest.val", "w"); | ||
21323 | if (! f) | ||
21324 | return 1; | ||
21325 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
21326 | { | ||
21327 | long int i = longval (); | ||
21328 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21329 | return 1; | ||
21330 | fprintf (f, "%ld\n", i); | ||
21331 | } | ||
21332 | else | ||
21333 | { | ||
21334 | unsigned long int i = ulongval (); | ||
21335 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21336 | return 1; | ||
21337 | fprintf (f, "%lu\n", i); | ||
21338 | } | ||
21339 | return ferror (f) || fclose (f) != 0; | ||
21340 | |||
21341 | ; | ||
21342 | return 0; | ||
21343 | } | ||
21344 | _ACEOF | ||
21345 | rm -f conftest$ac_exeext | ||
21346 | if { (ac_try="$ac_link" | ||
21347 | case "(($ac_try" in | ||
21348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21349 | *) ac_try_echo=$ac_try;; | ||
21350 | esac | ||
21351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21352 | (eval "$ac_link") 2>&5 | ||
21353 | ac_status=$? | ||
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21356 | { (case "(($ac_try" in | ||
21357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21358 | *) ac_try_echo=$ac_try;; | ||
21359 | esac | ||
21360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21361 | (eval "$ac_try") 2>&5 | ||
21362 | ac_status=$? | ||
21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21364 | (exit $ac_status); }; }; then | ||
21365 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
21366 | else | ||
21367 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21368 | echo "$as_me: failed program was:" >&5 | ||
21369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21370 | |||
21371 | ( exit $ac_status ) | ||
21372 | if test "$ac_cv_type_long_long_int" = yes; then | ||
21373 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21374 | See \`config.log' for more details." >&5 | ||
21375 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
21376 | See \`config.log' for more details." >&2;} | ||
21377 | { (exit 77); exit 77; }; } | ||
21378 | else | ||
21379 | ac_cv_sizeof_long_long_int=0 | ||
21380 | fi | ||
21381 | fi | ||
21382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21383 | fi | ||
21384 | rm -f conftest.val | ||
21385 | fi | ||
21386 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
21387 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
21388 | |||
21389 | |||
21390 | |||
21391 | cat >>confdefs.h <<_ACEOF | ||
21392 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
21393 | _ACEOF | ||
21394 | |||
21395 | |||
21396 | |||
21397 | # Sanity check long long for some platforms (AIX) | ||
21398 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
21399 | ac_cv_sizeof_long_long_int=0 | ||
21400 | fi | ||
21401 | |||
21402 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
21403 | if test -z "$have_llong_max"; then | ||
21404 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
21405 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
21406 | if test "$cross_compiling" = yes; then | ||
21407 | |||
21408 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21409 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21410 | |||
21411 | |||
21412 | else | ||
21413 | cat >conftest.$ac_ext <<_ACEOF | ||
21414 | /* confdefs.h. */ | ||
21415 | _ACEOF | ||
21416 | cat confdefs.h >>conftest.$ac_ext | ||
21417 | cat >>conftest.$ac_ext <<_ACEOF | ||
21418 | /* end confdefs.h. */ | ||
21419 | |||
21420 | #include <stdio.h> | ||
21421 | /* Why is this so damn hard? */ | ||
21422 | #ifdef __GNUC__ | ||
21423 | # undef __GNUC__ | ||
21424 | #endif | ||
21425 | #define __USE_ISOC99 | ||
21426 | #include <limits.h> | ||
21427 | #define DATA "conftest.llminmax" | ||
21428 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
21429 | |||
21430 | /* | ||
21431 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
21432 | * we do this the hard way. | ||
21433 | */ | ||
21434 | static int | ||
21435 | fprint_ll(FILE *f, long long n) | ||
21436 | { | ||
21437 | unsigned int i; | ||
21438 | int l[sizeof(long long) * 8]; | ||
21439 | |||
21440 | if (n < 0) | ||
21441 | if (fprintf(f, "-") < 0) | ||
21442 | return -1; | ||
21443 | for (i = 0; n != 0; i++) { | ||
21444 | l[i] = my_abs(n % 10); | ||
21445 | n /= 10; | ||
21446 | } | ||
21447 | do { | ||
21448 | if (fprintf(f, "%d", l[--i]) < 0) | ||
21449 | return -1; | ||
21450 | } while (i != 0); | ||
21451 | if (fprintf(f, " ") < 0) | ||
21452 | return -1; | ||
21453 | return 0; | ||
21454 | } | ||
21455 | |||
21456 | int main(void) { | ||
21457 | FILE *f; | ||
21458 | long long i, llmin, llmax = 0; | ||
21459 | |||
21460 | if((f = fopen(DATA,"w")) == NULL) | ||
21461 | exit(1); | ||
21462 | |||
21463 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
21464 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
21465 | llmin = LLONG_MIN; | ||
21466 | llmax = LLONG_MAX; | ||
21467 | #else | ||
21468 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
21469 | /* This will work on one's complement and two's complement */ | ||
21470 | for (i = 1; i > llmax; i <<= 1, i++) | ||
21471 | llmax = i; | ||
21472 | llmin = llmax + 1LL; /* wrap */ | ||
21473 | #endif | ||
21474 | |||
21475 | /* Sanity check */ | ||
21476 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
21477 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
21478 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
21479 | fprintf(f, "unknown unknown\n"); | ||
21480 | exit(2); | ||
21481 | } | ||
21482 | |||
21483 | if (fprint_ll(f, llmin) < 0) | ||
21484 | exit(3); | ||
21485 | if (fprint_ll(f, llmax) < 0) | ||
21486 | exit(4); | ||
21487 | if (fclose(f) < 0) | ||
21488 | exit(5); | ||
21489 | exit(0); | ||
21490 | } | ||
21491 | |||
21492 | _ACEOF | ||
21493 | rm -f conftest$ac_exeext | ||
21494 | if { (ac_try="$ac_link" | ||
21495 | case "(($ac_try" in | ||
21496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21497 | *) ac_try_echo=$ac_try;; | ||
21498 | esac | ||
21499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21500 | (eval "$ac_link") 2>&5 | ||
21501 | ac_status=$? | ||
21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21504 | { (case "(($ac_try" in | ||
21505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21506 | *) ac_try_echo=$ac_try;; | ||
21507 | esac | ||
21508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21509 | (eval "$ac_try") 2>&5 | ||
21510 | ac_status=$? | ||
21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21512 | (exit $ac_status); }; }; then | ||
21513 | |||
21514 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
21515 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
21516 | |||
21517 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
21518 | echo "${ECHO_T}$llong_max" >&6; } | ||
21519 | |||
21520 | cat >>confdefs.h <<_ACEOF | ||
21521 | #define LLONG_MAX ${llong_max}LL | ||
21522 | _ACEOF | ||
21523 | |||
21524 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
21525 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
21526 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
21527 | echo "${ECHO_T}$llong_min" >&6; } | ||
21528 | |||
21529 | cat >>confdefs.h <<_ACEOF | ||
21530 | #define LLONG_MIN ${llong_min}LL | ||
21531 | _ACEOF | ||
21532 | |||
21533 | |||
21534 | else | ||
21535 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21536 | echo "$as_me: failed program was:" >&5 | ||
21537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21538 | |||
21539 | ( exit $ac_status ) | ||
21540 | |||
21541 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21542 | echo "${ECHO_T}not found" >&6; } | ||
21543 | |||
21544 | fi | ||
21545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21546 | fi | ||
21547 | |||
21548 | |||
21549 | fi | ||
21550 | |||
21551 | |||
21552 | # More checks for data types | ||
21553 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
21554 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
21555 | if test "${ac_cv_have_u_int+set}" = set; then | ||
21556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21557 | else | ||
21558 | |||
21559 | cat >conftest.$ac_ext <<_ACEOF | ||
21560 | /* confdefs.h. */ | ||
21561 | _ACEOF | ||
21562 | cat confdefs.h >>conftest.$ac_ext | ||
21563 | cat >>conftest.$ac_ext <<_ACEOF | ||
21564 | /* end confdefs.h. */ | ||
21565 | #include <sys/types.h> | ||
21566 | int | ||
21567 | main () | ||
21568 | { | ||
21569 | u_int a; a = 1; | ||
21570 | ; | ||
21571 | return 0; | ||
21572 | } | ||
21573 | _ACEOF | ||
21574 | rm -f conftest.$ac_objext | ||
21575 | if { (ac_try="$ac_compile" | ||
21576 | case "(($ac_try" in | ||
21577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21578 | *) ac_try_echo=$ac_try;; | ||
21579 | esac | ||
21580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21581 | (eval "$ac_compile") 2>conftest.er1 | ||
21582 | ac_status=$? | ||
21583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21584 | rm -f conftest.er1 | ||
21585 | cat conftest.err >&5 | ||
21586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21587 | (exit $ac_status); } && { | ||
21588 | test -z "$ac_c_werror_flag" || | ||
21589 | test ! -s conftest.err | ||
21590 | } && test -s conftest.$ac_objext; then | ||
21591 | ac_cv_have_u_int="yes" | ||
21592 | else | ||
21593 | echo "$as_me: failed program was:" >&5 | ||
21594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21595 | |||
21596 | ac_cv_have_u_int="no" | ||
21597 | |||
21598 | fi | ||
21599 | |||
21600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21601 | |||
21602 | fi | ||
21603 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
21604 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
21605 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
21606 | |||
21607 | cat >>confdefs.h <<\_ACEOF | ||
21608 | #define HAVE_U_INT 1 | ||
21609 | _ACEOF | ||
21610 | |||
21611 | have_u_int=1 | ||
21612 | fi | ||
21613 | |||
21614 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
21615 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
21616 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21618 | else | ||
21619 | |||
21620 | cat >conftest.$ac_ext <<_ACEOF | ||
21621 | /* confdefs.h. */ | ||
21622 | _ACEOF | ||
21623 | cat confdefs.h >>conftest.$ac_ext | ||
21624 | cat >>conftest.$ac_ext <<_ACEOF | ||
21625 | /* end confdefs.h. */ | ||
21626 | #include <sys/types.h> | ||
21627 | int | ||
21628 | main () | ||
21629 | { | ||
21630 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21631 | ; | ||
21632 | return 0; | ||
21633 | } | ||
21634 | _ACEOF | ||
21635 | rm -f conftest.$ac_objext | ||
21636 | if { (ac_try="$ac_compile" | ||
21637 | case "(($ac_try" in | ||
21638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21639 | *) ac_try_echo=$ac_try;; | ||
21640 | esac | ||
21641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21642 | (eval "$ac_compile") 2>conftest.er1 | ||
21643 | ac_status=$? | ||
21644 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21645 | rm -f conftest.er1 | ||
21646 | cat conftest.err >&5 | ||
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21648 | (exit $ac_status); } && { | ||
21649 | test -z "$ac_c_werror_flag" || | ||
21650 | test ! -s conftest.err | ||
21651 | } && test -s conftest.$ac_objext; then | ||
21652 | ac_cv_have_intxx_t="yes" | ||
21653 | else | ||
21654 | echo "$as_me: failed program was:" >&5 | ||
21655 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21656 | |||
21657 | ac_cv_have_intxx_t="no" | ||
21658 | |||
21659 | fi | ||
21660 | |||
21661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21662 | |||
21663 | fi | ||
21664 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
21665 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
21666 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
21667 | |||
21668 | cat >>confdefs.h <<\_ACEOF | ||
21669 | #define HAVE_INTXX_T 1 | ||
21670 | _ACEOF | ||
21671 | |||
21672 | have_intxx_t=1 | ||
21673 | fi | ||
21674 | |||
21675 | if (test -z "$have_intxx_t" && \ | ||
21676 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
21677 | then | ||
21678 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
21679 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21680 | cat >conftest.$ac_ext <<_ACEOF | ||
21681 | /* confdefs.h. */ | ||
21682 | _ACEOF | ||
21683 | cat confdefs.h >>conftest.$ac_ext | ||
21684 | cat >>conftest.$ac_ext <<_ACEOF | ||
21685 | /* end confdefs.h. */ | ||
21686 | #include <stdint.h> | ||
21687 | int | ||
21688 | main () | ||
21689 | { | ||
21690 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21691 | ; | ||
21692 | return 0; | ||
21693 | } | ||
21694 | _ACEOF | ||
21695 | rm -f conftest.$ac_objext | ||
21696 | if { (ac_try="$ac_compile" | ||
21697 | case "(($ac_try" in | ||
21698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21699 | *) ac_try_echo=$ac_try;; | ||
21700 | esac | ||
21701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21702 | (eval "$ac_compile") 2>conftest.er1 | ||
21703 | ac_status=$? | ||
21704 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21705 | rm -f conftest.er1 | ||
21706 | cat conftest.err >&5 | ||
21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21708 | (exit $ac_status); } && { | ||
21709 | test -z "$ac_c_werror_flag" || | ||
21710 | test ! -s conftest.err | ||
21711 | } && test -s conftest.$ac_objext; then | ||
21712 | |||
21713 | cat >>confdefs.h <<\_ACEOF | ||
21714 | #define HAVE_INTXX_T 1 | ||
21715 | _ACEOF | ||
21716 | |||
21717 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21718 | echo "${ECHO_T}yes" >&6; } | ||
21719 | |||
21720 | else | ||
21721 | echo "$as_me: failed program was:" >&5 | ||
21722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21723 | |||
21724 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21725 | echo "${ECHO_T}no" >&6; } | ||
21726 | |||
21727 | fi | ||
21728 | |||
21729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21730 | fi | ||
21731 | |||
21732 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
21733 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
21734 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
21735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21736 | else | ||
21737 | |||
21738 | cat >conftest.$ac_ext <<_ACEOF | ||
21739 | /* confdefs.h. */ | ||
21740 | _ACEOF | ||
21741 | cat confdefs.h >>conftest.$ac_ext | ||
21742 | cat >>conftest.$ac_ext <<_ACEOF | ||
21743 | /* end confdefs.h. */ | ||
21744 | |||
21745 | #include <sys/types.h> | ||
21746 | #ifdef HAVE_STDINT_H | ||
21747 | # include <stdint.h> | ||
21748 | #endif | ||
21749 | #include <sys/socket.h> | ||
21750 | #ifdef HAVE_SYS_BITYPES_H | ||
21751 | # include <sys/bitypes.h> | ||
21752 | #endif | ||
21753 | |||
21754 | int | ||
21755 | main () | ||
21756 | { | ||
21757 | int64_t a; a = 1; | ||
21758 | ; | ||
21759 | return 0; | ||
21760 | } | ||
21761 | _ACEOF | ||
21762 | rm -f conftest.$ac_objext | ||
21763 | if { (ac_try="$ac_compile" | ||
21764 | case "(($ac_try" in | ||
21765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21766 | *) ac_try_echo=$ac_try;; | ||
21767 | esac | ||
21768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21769 | (eval "$ac_compile") 2>conftest.er1 | ||
21770 | ac_status=$? | ||
21771 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21772 | rm -f conftest.er1 | ||
21773 | cat conftest.err >&5 | ||
21774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21775 | (exit $ac_status); } && { | ||
21776 | test -z "$ac_c_werror_flag" || | ||
21777 | test ! -s conftest.err | ||
21778 | } && test -s conftest.$ac_objext; then | ||
21779 | ac_cv_have_int64_t="yes" | ||
21780 | else | ||
21781 | echo "$as_me: failed program was:" >&5 | ||
21782 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21783 | |||
21784 | ac_cv_have_int64_t="no" | ||
21785 | |||
21786 | fi | ||
21787 | |||
21788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21789 | |||
21790 | fi | ||
21791 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
21792 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
21793 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
21794 | |||
21795 | cat >>confdefs.h <<\_ACEOF | ||
21796 | #define HAVE_INT64_T 1 | ||
21797 | _ACEOF | ||
21798 | |||
21799 | fi | ||
21800 | |||
21801 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
21802 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
21803 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
21804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21805 | else | ||
21806 | |||
21807 | cat >conftest.$ac_ext <<_ACEOF | ||
21808 | /* confdefs.h. */ | ||
21809 | _ACEOF | ||
21810 | cat confdefs.h >>conftest.$ac_ext | ||
21811 | cat >>conftest.$ac_ext <<_ACEOF | ||
21812 | /* end confdefs.h. */ | ||
21813 | #include <sys/types.h> | ||
21814 | int | ||
21815 | main () | ||
21816 | { | ||
21817 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21818 | ; | ||
21819 | return 0; | ||
21820 | } | ||
21821 | _ACEOF | ||
21822 | rm -f conftest.$ac_objext | ||
21823 | if { (ac_try="$ac_compile" | ||
21824 | case "(($ac_try" in | ||
21825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21826 | *) ac_try_echo=$ac_try;; | ||
21827 | esac | ||
21828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21829 | (eval "$ac_compile") 2>conftest.er1 | ||
21830 | ac_status=$? | ||
21831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21832 | rm -f conftest.er1 | ||
21833 | cat conftest.err >&5 | ||
21834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21835 | (exit $ac_status); } && { | ||
21836 | test -z "$ac_c_werror_flag" || | ||
21837 | test ! -s conftest.err | ||
21838 | } && test -s conftest.$ac_objext; then | ||
21839 | ac_cv_have_u_intxx_t="yes" | ||
21840 | else | ||
21841 | echo "$as_me: failed program was:" >&5 | ||
21842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21843 | |||
21844 | ac_cv_have_u_intxx_t="no" | ||
21845 | |||
21846 | fi | ||
21847 | |||
21848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21849 | |||
21850 | fi | ||
21851 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
21852 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
21853 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
21854 | |||
21855 | cat >>confdefs.h <<\_ACEOF | ||
21856 | #define HAVE_U_INTXX_T 1 | ||
21857 | _ACEOF | ||
21858 | |||
21859 | have_u_intxx_t=1 | ||
21860 | fi | ||
21861 | |||
21862 | if test -z "$have_u_intxx_t" ; then | ||
21863 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
21864 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
21865 | cat >conftest.$ac_ext <<_ACEOF | ||
21866 | /* confdefs.h. */ | ||
21867 | _ACEOF | ||
21868 | cat confdefs.h >>conftest.$ac_ext | ||
21869 | cat >>conftest.$ac_ext <<_ACEOF | ||
21870 | /* end confdefs.h. */ | ||
21871 | #include <sys/socket.h> | ||
21872 | int | ||
21873 | main () | ||
21874 | { | ||
21875 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21876 | ; | ||
21877 | return 0; | ||
21878 | } | ||
21879 | _ACEOF | ||
21880 | rm -f conftest.$ac_objext | ||
21881 | if { (ac_try="$ac_compile" | ||
21882 | case "(($ac_try" in | ||
21883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21884 | *) ac_try_echo=$ac_try;; | ||
21885 | esac | ||
21886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21887 | (eval "$ac_compile") 2>conftest.er1 | ||
21888 | ac_status=$? | ||
21889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21890 | rm -f conftest.er1 | ||
21891 | cat conftest.err >&5 | ||
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21893 | (exit $ac_status); } && { | ||
21894 | test -z "$ac_c_werror_flag" || | ||
21895 | test ! -s conftest.err | ||
21896 | } && test -s conftest.$ac_objext; then | ||
21897 | |||
21898 | cat >>confdefs.h <<\_ACEOF | ||
21899 | #define HAVE_U_INTXX_T 1 | ||
21900 | _ACEOF | ||
21901 | |||
21902 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21903 | echo "${ECHO_T}yes" >&6; } | ||
21904 | |||
21905 | else | ||
21906 | echo "$as_me: failed program was:" >&5 | ||
21907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21908 | |||
21909 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21910 | echo "${ECHO_T}no" >&6; } | ||
21911 | |||
21912 | fi | ||
21913 | |||
21914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21915 | fi | ||
21916 | |||
21917 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
21918 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
21919 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
21920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21921 | else | ||
21922 | |||
21923 | cat >conftest.$ac_ext <<_ACEOF | ||
21924 | /* confdefs.h. */ | ||
21925 | _ACEOF | ||
21926 | cat confdefs.h >>conftest.$ac_ext | ||
21927 | cat >>conftest.$ac_ext <<_ACEOF | ||
21928 | /* end confdefs.h. */ | ||
21929 | #include <sys/types.h> | ||
21930 | int | ||
21931 | main () | ||
21932 | { | ||
21933 | u_int64_t a; a = 1; | ||
21934 | ; | ||
21935 | return 0; | ||
21936 | } | ||
21937 | _ACEOF | ||
21938 | rm -f conftest.$ac_objext | ||
21939 | if { (ac_try="$ac_compile" | ||
21940 | case "(($ac_try" in | ||
21941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21942 | *) ac_try_echo=$ac_try;; | ||
21943 | esac | ||
21944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21945 | (eval "$ac_compile") 2>conftest.er1 | ||
21946 | ac_status=$? | ||
21947 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21948 | rm -f conftest.er1 | ||
21949 | cat conftest.err >&5 | ||
21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21951 | (exit $ac_status); } && { | ||
21952 | test -z "$ac_c_werror_flag" || | ||
21953 | test ! -s conftest.err | ||
21954 | } && test -s conftest.$ac_objext; then | ||
21955 | ac_cv_have_u_int64_t="yes" | ||
21956 | else | ||
21957 | echo "$as_me: failed program was:" >&5 | ||
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21959 | |||
21960 | ac_cv_have_u_int64_t="no" | ||
21961 | |||
21962 | fi | ||
21963 | |||
21964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21965 | |||
21966 | fi | ||
21967 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
21968 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
21969 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
21970 | |||
21971 | cat >>confdefs.h <<\_ACEOF | ||
21972 | #define HAVE_U_INT64_T 1 | ||
21973 | _ACEOF | ||
21974 | |||
21975 | have_u_int64_t=1 | ||
21976 | fi | ||
21977 | |||
21978 | if test -z "$have_u_int64_t" ; then | ||
21979 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
21980 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
21981 | cat >conftest.$ac_ext <<_ACEOF | ||
21982 | /* confdefs.h. */ | ||
21983 | _ACEOF | ||
21984 | cat confdefs.h >>conftest.$ac_ext | ||
21985 | cat >>conftest.$ac_ext <<_ACEOF | ||
21986 | /* end confdefs.h. */ | ||
21987 | #include <sys/bitypes.h> | ||
21988 | int | ||
21989 | main () | ||
21990 | { | ||
21991 | u_int64_t a; a = 1 | ||
21992 | ; | ||
21993 | return 0; | ||
21994 | } | ||
21995 | _ACEOF | ||
21996 | rm -f conftest.$ac_objext | ||
21997 | if { (ac_try="$ac_compile" | ||
21998 | case "(($ac_try" in | ||
21999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22000 | *) ac_try_echo=$ac_try;; | ||
22001 | esac | ||
22002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22003 | (eval "$ac_compile") 2>conftest.er1 | ||
22004 | ac_status=$? | ||
22005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22006 | rm -f conftest.er1 | ||
22007 | cat conftest.err >&5 | ||
22008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22009 | (exit $ac_status); } && { | ||
22010 | test -z "$ac_c_werror_flag" || | ||
22011 | test ! -s conftest.err | ||
22012 | } && test -s conftest.$ac_objext; then | ||
22013 | |||
22014 | cat >>confdefs.h <<\_ACEOF | ||
22015 | #define HAVE_U_INT64_T 1 | ||
22016 | _ACEOF | ||
22017 | |||
22018 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22019 | echo "${ECHO_T}yes" >&6; } | ||
22020 | |||
22021 | else | ||
22022 | echo "$as_me: failed program was:" >&5 | ||
22023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22024 | |||
22025 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22026 | echo "${ECHO_T}no" >&6; } | ||
22027 | |||
22028 | fi | ||
22029 | |||
22030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22031 | fi | ||
22032 | |||
22033 | if test -z "$have_u_intxx_t" ; then | ||
22034 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
22035 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
22036 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
22037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22038 | else | ||
22039 | |||
22040 | cat >conftest.$ac_ext <<_ACEOF | ||
22041 | /* confdefs.h. */ | ||
22042 | _ACEOF | ||
22043 | cat confdefs.h >>conftest.$ac_ext | ||
22044 | cat >>conftest.$ac_ext <<_ACEOF | ||
22045 | /* end confdefs.h. */ | ||
22046 | |||
22047 | #include <sys/types.h> | ||
22048 | |||
22049 | int | ||
22050 | main () | ||
22051 | { | ||
22052 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
22053 | ; | ||
22054 | return 0; | ||
22055 | } | ||
22056 | _ACEOF | ||
22057 | rm -f conftest.$ac_objext | ||
22058 | if { (ac_try="$ac_compile" | ||
22059 | case "(($ac_try" in | ||
22060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22061 | *) ac_try_echo=$ac_try;; | ||
22062 | esac | ||
22063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22064 | (eval "$ac_compile") 2>conftest.er1 | ||
22065 | ac_status=$? | ||
22066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22067 | rm -f conftest.er1 | ||
22068 | cat conftest.err >&5 | ||
22069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22070 | (exit $ac_status); } && { | ||
22071 | test -z "$ac_c_werror_flag" || | ||
22072 | test ! -s conftest.err | ||
22073 | } && test -s conftest.$ac_objext; then | ||
22074 | ac_cv_have_uintxx_t="yes" | ||
22075 | else | ||
22076 | echo "$as_me: failed program was:" >&5 | ||
22077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22078 | |||
22079 | ac_cv_have_uintxx_t="no" | ||
22080 | |||
22081 | fi | ||
22082 | |||
22083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22084 | |||
22085 | fi | ||
22086 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
22087 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
22088 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
22089 | |||
22090 | cat >>confdefs.h <<\_ACEOF | ||
22091 | #define HAVE_UINTXX_T 1 | ||
22092 | _ACEOF | ||
22093 | |||
22094 | fi | ||
22095 | fi | ||
22096 | |||
22097 | if test -z "$have_uintxx_t" ; then | ||
22098 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
22099 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
22100 | cat >conftest.$ac_ext <<_ACEOF | ||
22101 | /* confdefs.h. */ | ||
22102 | _ACEOF | ||
22103 | cat confdefs.h >>conftest.$ac_ext | ||
22104 | cat >>conftest.$ac_ext <<_ACEOF | ||
22105 | /* end confdefs.h. */ | ||
22106 | #include <stdint.h> | ||
22107 | int | ||
22108 | main () | ||
22109 | { | ||
22110 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
22111 | ; | ||
22112 | return 0; | ||
22113 | } | ||
22114 | _ACEOF | ||
22115 | rm -f conftest.$ac_objext | ||
22116 | if { (ac_try="$ac_compile" | ||
22117 | case "(($ac_try" in | ||
22118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22119 | *) ac_try_echo=$ac_try;; | ||
22120 | esac | ||
22121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22122 | (eval "$ac_compile") 2>conftest.er1 | ||
22123 | ac_status=$? | ||
22124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22125 | rm -f conftest.er1 | ||
22126 | cat conftest.err >&5 | ||
22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22128 | (exit $ac_status); } && { | ||
22129 | test -z "$ac_c_werror_flag" || | ||
22130 | test ! -s conftest.err | ||
22131 | } && test -s conftest.$ac_objext; then | ||
22132 | |||
22133 | cat >>confdefs.h <<\_ACEOF | ||
22134 | #define HAVE_UINTXX_T 1 | ||
22135 | _ACEOF | ||
22136 | |||
22137 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22138 | echo "${ECHO_T}yes" >&6; } | ||
22139 | |||
22140 | else | ||
22141 | echo "$as_me: failed program was:" >&5 | ||
22142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22143 | |||
22144 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22145 | echo "${ECHO_T}no" >&6; } | ||
22146 | |||
22147 | fi | ||
22148 | |||
22149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22150 | fi | ||
22151 | |||
22152 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
22153 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
22154 | then | ||
22155 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
22156 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
22157 | cat >conftest.$ac_ext <<_ACEOF | ||
22158 | /* confdefs.h. */ | ||
22159 | _ACEOF | ||
22160 | cat confdefs.h >>conftest.$ac_ext | ||
22161 | cat >>conftest.$ac_ext <<_ACEOF | ||
22162 | /* end confdefs.h. */ | ||
22163 | |||
22164 | #include <sys/bitypes.h> | ||
22165 | |||
22166 | int | ||
22167 | main () | ||
22168 | { | ||
22169 | |||
22170 | int8_t a; int16_t b; int32_t c; | ||
22171 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
22172 | a = b = c = e = f = g = 1; | ||
22173 | |||
22174 | ; | ||
22175 | return 0; | ||
22176 | } | ||
22177 | _ACEOF | ||
22178 | rm -f conftest.$ac_objext | ||
22179 | if { (ac_try="$ac_compile" | ||
22180 | case "(($ac_try" in | ||
22181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22182 | *) ac_try_echo=$ac_try;; | ||
22183 | esac | ||
22184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22185 | (eval "$ac_compile") 2>conftest.er1 | ||
22186 | ac_status=$? | ||
22187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22188 | rm -f conftest.er1 | ||
22189 | cat conftest.err >&5 | ||
22190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22191 | (exit $ac_status); } && { | ||
22192 | test -z "$ac_c_werror_flag" || | ||
22193 | test ! -s conftest.err | ||
22194 | } && test -s conftest.$ac_objext; then | ||
22195 | |||
22196 | cat >>confdefs.h <<\_ACEOF | ||
22197 | #define HAVE_U_INTXX_T 1 | ||
22198 | _ACEOF | ||
22199 | |||
22200 | cat >>confdefs.h <<\_ACEOF | ||
22201 | #define HAVE_INTXX_T 1 | ||
22202 | _ACEOF | ||
22203 | |||
22204 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22205 | echo "${ECHO_T}yes" >&6; } | ||
22206 | |||
22207 | else | ||
22208 | echo "$as_me: failed program was:" >&5 | ||
22209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22210 | |||
22211 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22212 | echo "${ECHO_T}no" >&6; } | ||
22213 | |||
22214 | fi | ||
22215 | |||
22216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22217 | fi | ||
22218 | |||
22219 | |||
22220 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
22221 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
22222 | if test "${ac_cv_have_u_char+set}" = set; then | ||
22223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22224 | else | ||
22225 | |||
22226 | cat >conftest.$ac_ext <<_ACEOF | ||
22227 | /* confdefs.h. */ | ||
22228 | _ACEOF | ||
22229 | cat confdefs.h >>conftest.$ac_ext | ||
22230 | cat >>conftest.$ac_ext <<_ACEOF | ||
22231 | /* end confdefs.h. */ | ||
22232 | |||
22233 | #include <sys/types.h> | ||
22234 | |||
22235 | int | ||
22236 | main () | ||
22237 | { | ||
22238 | u_char foo; foo = 125; | ||
22239 | ; | ||
22240 | return 0; | ||
22241 | } | ||
22242 | _ACEOF | ||
22243 | rm -f conftest.$ac_objext | ||
22244 | if { (ac_try="$ac_compile" | ||
22245 | case "(($ac_try" in | ||
22246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22247 | *) ac_try_echo=$ac_try;; | ||
22248 | esac | ||
22249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22250 | (eval "$ac_compile") 2>conftest.er1 | ||
22251 | ac_status=$? | ||
22252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22253 | rm -f conftest.er1 | ||
22254 | cat conftest.err >&5 | ||
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22256 | (exit $ac_status); } && { | ||
22257 | test -z "$ac_c_werror_flag" || | ||
22258 | test ! -s conftest.err | ||
22259 | } && test -s conftest.$ac_objext; then | ||
22260 | ac_cv_have_u_char="yes" | ||
22261 | else | ||
22262 | echo "$as_me: failed program was:" >&5 | ||
22263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22264 | |||
22265 | ac_cv_have_u_char="no" | ||
22266 | |||
22267 | fi | ||
22268 | |||
22269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22270 | |||
22271 | fi | ||
22272 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
22273 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
22274 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
22275 | |||
22276 | cat >>confdefs.h <<\_ACEOF | ||
22277 | #define HAVE_U_CHAR 1 | ||
22278 | _ACEOF | ||
22279 | |||
22280 | fi | ||
22281 | |||
22282 | |||
22283 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
22284 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
22285 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
22286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22287 | else | ||
22288 | cat >conftest.$ac_ext <<_ACEOF | ||
22289 | /* confdefs.h. */ | ||
22290 | _ACEOF | ||
22291 | cat confdefs.h >>conftest.$ac_ext | ||
22292 | cat >>conftest.$ac_ext <<_ACEOF | ||
22293 | /* end confdefs.h. */ | ||
22294 | #include <sys/types.h> | ||
22295 | #include <sys/socket.h> | ||
22296 | |||
22297 | typedef socklen_t ac__type_new_; | ||
22298 | int | ||
22299 | main () | ||
22300 | { | ||
22301 | if ((ac__type_new_ *) 0) | ||
22302 | return 0; | ||
22303 | if (sizeof (ac__type_new_)) | ||
22304 | return 0; | ||
22305 | ; | ||
22306 | return 0; | ||
22307 | } | ||
22308 | _ACEOF | ||
22309 | rm -f conftest.$ac_objext | ||
22310 | if { (ac_try="$ac_compile" | ||
22311 | case "(($ac_try" in | ||
22312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22313 | *) ac_try_echo=$ac_try;; | ||
22314 | esac | ||
22315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22316 | (eval "$ac_compile") 2>conftest.er1 | ||
22317 | ac_status=$? | ||
22318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22319 | rm -f conftest.er1 | ||
22320 | cat conftest.err >&5 | ||
22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22322 | (exit $ac_status); } && { | ||
22323 | test -z "$ac_c_werror_flag" || | ||
22324 | test ! -s conftest.err | ||
22325 | } && test -s conftest.$ac_objext; then | ||
22326 | ac_cv_type_socklen_t=yes | ||
22327 | else | ||
22328 | echo "$as_me: failed program was:" >&5 | ||
22329 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22330 | |||
22331 | ac_cv_type_socklen_t=no | ||
22332 | fi | ||
22333 | |||
22334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22335 | fi | ||
22336 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
22337 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
22338 | if test $ac_cv_type_socklen_t = yes; then | ||
22339 | : | ||
22340 | else | ||
22341 | |||
22342 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
22343 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
22344 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
22345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22346 | else | ||
22347 | |||
22348 | # Systems have either "struct sockaddr *" or | ||
22349 | # "void *" as the second argument to getpeername | ||
22350 | curl_cv_socklen_t_equiv= | ||
22351 | for arg2 in "struct sockaddr" void; do | ||
22352 | for t in int size_t unsigned long "unsigned long"; do | ||
22353 | cat >conftest.$ac_ext <<_ACEOF | ||
22354 | /* confdefs.h. */ | ||
22355 | _ACEOF | ||
22356 | cat confdefs.h >>conftest.$ac_ext | ||
22357 | cat >>conftest.$ac_ext <<_ACEOF | ||
22358 | /* end confdefs.h. */ | ||
22359 | |||
22360 | #include <sys/types.h> | ||
22361 | #include <sys/socket.h> | ||
22362 | |||
22363 | int getpeername (int, $arg2 *, $t *); | ||
22364 | |||
22365 | int | ||
22366 | main () | ||
22367 | { | ||
22368 | |||
22369 | $t len; | ||
22370 | getpeername(0,0,&len); | ||
22371 | |||
22372 | ; | ||
22373 | return 0; | ||
22374 | } | ||
22375 | _ACEOF | ||
22376 | rm -f conftest.$ac_objext | ||
22377 | if { (ac_try="$ac_compile" | ||
22378 | case "(($ac_try" in | ||
22379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22380 | *) ac_try_echo=$ac_try;; | ||
22381 | esac | ||
22382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22383 | (eval "$ac_compile") 2>conftest.er1 | ||
22384 | ac_status=$? | ||
22385 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22386 | rm -f conftest.er1 | ||
22387 | cat conftest.err >&5 | ||
22388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22389 | (exit $ac_status); } && { | ||
22390 | test -z "$ac_c_werror_flag" || | ||
22391 | test ! -s conftest.err | ||
22392 | } && test -s conftest.$ac_objext; then | ||
22393 | |||
22394 | curl_cv_socklen_t_equiv="$t" | ||
22395 | break | ||
22396 | |||
22397 | else | ||
22398 | echo "$as_me: failed program was:" >&5 | ||
22399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22400 | |||
22401 | |||
22402 | fi | ||
22403 | |||
22404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22405 | done | ||
22406 | done | ||
22407 | |||
22408 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
22409 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
22410 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
22411 | { (exit 1); exit 1; }; } | ||
22412 | fi | ||
22413 | |||
22414 | fi | ||
22415 | |||
22416 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
22417 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
22418 | |||
22419 | cat >>confdefs.h <<_ACEOF | ||
22420 | #define socklen_t $curl_cv_socklen_t_equiv | ||
22421 | _ACEOF | ||
22422 | |||
22423 | fi | ||
22424 | |||
22425 | |||
22426 | |||
22427 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
22428 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
22429 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
22430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22431 | else | ||
22432 | cat >conftest.$ac_ext <<_ACEOF | ||
22433 | /* confdefs.h. */ | ||
22434 | _ACEOF | ||
22435 | cat confdefs.h >>conftest.$ac_ext | ||
22436 | cat >>conftest.$ac_ext <<_ACEOF | ||
22437 | /* end confdefs.h. */ | ||
22438 | #include <signal.h> | ||
22439 | |||
22440 | typedef sig_atomic_t ac__type_new_; | ||
22441 | int | ||
22442 | main () | ||
22443 | { | ||
22444 | if ((ac__type_new_ *) 0) | ||
22445 | return 0; | ||
22446 | if (sizeof (ac__type_new_)) | ||
22447 | return 0; | ||
22448 | ; | ||
22449 | return 0; | ||
22450 | } | ||
22451 | _ACEOF | ||
22452 | rm -f conftest.$ac_objext | ||
22453 | if { (ac_try="$ac_compile" | ||
22454 | case "(($ac_try" in | ||
22455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22456 | *) ac_try_echo=$ac_try;; | ||
22457 | esac | ||
22458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22459 | (eval "$ac_compile") 2>conftest.er1 | ||
22460 | ac_status=$? | ||
22461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22462 | rm -f conftest.er1 | ||
22463 | cat conftest.err >&5 | ||
22464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22465 | (exit $ac_status); } && { | ||
22466 | test -z "$ac_c_werror_flag" || | ||
22467 | test ! -s conftest.err | ||
22468 | } && test -s conftest.$ac_objext; then | ||
22469 | ac_cv_type_sig_atomic_t=yes | ||
22470 | else | ||
22471 | echo "$as_me: failed program was:" >&5 | ||
22472 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22473 | |||
22474 | ac_cv_type_sig_atomic_t=no | ||
22475 | fi | ||
22476 | |||
22477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22478 | fi | ||
22479 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
22480 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
22481 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
22482 | |||
22483 | cat >>confdefs.h <<_ACEOF | ||
22484 | #define HAVE_SIG_ATOMIC_T 1 | ||
22485 | _ACEOF | ||
22486 | |||
22487 | |||
22488 | fi | ||
22489 | |||
22490 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
22491 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
22492 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
22493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22494 | else | ||
22495 | cat >conftest.$ac_ext <<_ACEOF | ||
22496 | /* confdefs.h. */ | ||
22497 | _ACEOF | ||
22498 | cat confdefs.h >>conftest.$ac_ext | ||
22499 | cat >>conftest.$ac_ext <<_ACEOF | ||
22500 | /* end confdefs.h. */ | ||
22501 | |||
22502 | #include <sys/types.h> | ||
22503 | #ifdef HAVE_SYS_BITYPES_H | ||
22504 | #include <sys/bitypes.h> | ||
22505 | #endif | ||
22506 | #ifdef HAVE_SYS_STATFS_H | ||
22507 | #include <sys/statfs.h> | ||
22508 | #endif | ||
22509 | #ifdef HAVE_SYS_STATVFS_H | ||
22510 | #include <sys/statvfs.h> | ||
22511 | #endif | ||
22512 | |||
22513 | |||
22514 | typedef fsblkcnt_t ac__type_new_; | ||
22515 | int | ||
22516 | main () | ||
22517 | { | ||
22518 | if ((ac__type_new_ *) 0) | ||
22519 | return 0; | ||
22520 | if (sizeof (ac__type_new_)) | ||
22521 | return 0; | ||
22522 | ; | ||
22523 | return 0; | ||
22524 | } | ||
22525 | _ACEOF | ||
22526 | rm -f conftest.$ac_objext | ||
22527 | if { (ac_try="$ac_compile" | ||
22528 | case "(($ac_try" in | ||
22529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22530 | *) ac_try_echo=$ac_try;; | ||
22531 | esac | ||
22532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22533 | (eval "$ac_compile") 2>conftest.er1 | ||
22534 | ac_status=$? | ||
22535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22536 | rm -f conftest.er1 | ||
22537 | cat conftest.err >&5 | ||
22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22539 | (exit $ac_status); } && { | ||
22540 | test -z "$ac_c_werror_flag" || | ||
22541 | test ! -s conftest.err | ||
22542 | } && test -s conftest.$ac_objext; then | ||
22543 | ac_cv_type_fsblkcnt_t=yes | ||
22544 | else | ||
22545 | echo "$as_me: failed program was:" >&5 | ||
22546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22547 | |||
22548 | ac_cv_type_fsblkcnt_t=no | ||
22549 | fi | ||
22550 | |||
22551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22552 | fi | ||
22553 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
22554 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
22555 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
22556 | |||
22557 | cat >>confdefs.h <<_ACEOF | ||
22558 | #define HAVE_FSBLKCNT_T 1 | ||
22559 | _ACEOF | ||
22560 | |||
22561 | |||
22562 | fi | ||
22563 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
22564 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
22565 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
22566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22567 | else | ||
22568 | cat >conftest.$ac_ext <<_ACEOF | ||
22569 | /* confdefs.h. */ | ||
22570 | _ACEOF | ||
22571 | cat confdefs.h >>conftest.$ac_ext | ||
22572 | cat >>conftest.$ac_ext <<_ACEOF | ||
22573 | /* end confdefs.h. */ | ||
22574 | |||
22575 | #include <sys/types.h> | ||
22576 | #ifdef HAVE_SYS_BITYPES_H | ||
22577 | #include <sys/bitypes.h> | ||
22578 | #endif | ||
22579 | #ifdef HAVE_SYS_STATFS_H | ||
22580 | #include <sys/statfs.h> | ||
22581 | #endif | ||
22582 | #ifdef HAVE_SYS_STATVFS_H | ||
22583 | #include <sys/statvfs.h> | ||
22584 | #endif | ||
22585 | |||
22586 | |||
22587 | typedef fsfilcnt_t ac__type_new_; | ||
22588 | int | ||
22589 | main () | ||
22590 | { | ||
22591 | if ((ac__type_new_ *) 0) | ||
22592 | return 0; | ||
22593 | if (sizeof (ac__type_new_)) | ||
22594 | return 0; | ||
22595 | ; | ||
22596 | return 0; | ||
22597 | } | ||
22598 | _ACEOF | ||
22599 | rm -f conftest.$ac_objext | ||
22600 | if { (ac_try="$ac_compile" | ||
22601 | case "(($ac_try" in | ||
22602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22603 | *) ac_try_echo=$ac_try;; | ||
22604 | esac | ||
22605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22606 | (eval "$ac_compile") 2>conftest.er1 | ||
22607 | ac_status=$? | ||
22608 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22609 | rm -f conftest.er1 | ||
22610 | cat conftest.err >&5 | ||
22611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22612 | (exit $ac_status); } && { | ||
22613 | test -z "$ac_c_werror_flag" || | ||
22614 | test ! -s conftest.err | ||
22615 | } && test -s conftest.$ac_objext; then | ||
22616 | ac_cv_type_fsfilcnt_t=yes | ||
22617 | else | ||
22618 | echo "$as_me: failed program was:" >&5 | ||
22619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22620 | |||
22621 | ac_cv_type_fsfilcnt_t=no | ||
22622 | fi | ||
22623 | |||
22624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22625 | fi | ||
22626 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
22627 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
22628 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
22629 | |||
22630 | cat >>confdefs.h <<_ACEOF | ||
22631 | #define HAVE_FSFILCNT_T 1 | ||
22632 | _ACEOF | ||
22633 | |||
22634 | |||
22635 | fi | ||
22636 | |||
22637 | |||
22638 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
22639 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
22640 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
22641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22642 | else | ||
22643 | cat >conftest.$ac_ext <<_ACEOF | ||
22644 | /* confdefs.h. */ | ||
22645 | _ACEOF | ||
22646 | cat confdefs.h >>conftest.$ac_ext | ||
22647 | cat >>conftest.$ac_ext <<_ACEOF | ||
22648 | /* end confdefs.h. */ | ||
22649 | #include <sys/types.h> | ||
22650 | #include <netinet/in.h> | ||
22651 | |||
22652 | typedef in_addr_t ac__type_new_; | ||
22653 | int | ||
22654 | main () | ||
22655 | { | ||
22656 | if ((ac__type_new_ *) 0) | ||
22657 | return 0; | ||
22658 | if (sizeof (ac__type_new_)) | ||
22659 | return 0; | ||
22660 | ; | ||
22661 | return 0; | ||
22662 | } | ||
22663 | _ACEOF | ||
22664 | rm -f conftest.$ac_objext | ||
22665 | if { (ac_try="$ac_compile" | ||
22666 | case "(($ac_try" in | ||
22667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22668 | *) ac_try_echo=$ac_try;; | ||
22669 | esac | ||
22670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22671 | (eval "$ac_compile") 2>conftest.er1 | ||
22672 | ac_status=$? | ||
22673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22674 | rm -f conftest.er1 | ||
22675 | cat conftest.err >&5 | ||
22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22677 | (exit $ac_status); } && { | ||
22678 | test -z "$ac_c_werror_flag" || | ||
22679 | test ! -s conftest.err | ||
22680 | } && test -s conftest.$ac_objext; then | ||
22681 | ac_cv_type_in_addr_t=yes | ||
22682 | else | ||
22683 | echo "$as_me: failed program was:" >&5 | ||
22684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22685 | |||
22686 | ac_cv_type_in_addr_t=no | ||
22687 | fi | ||
22688 | |||
22689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22690 | fi | ||
22691 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
22692 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
22693 | if test $ac_cv_type_in_addr_t = yes; then | ||
22694 | |||
22695 | cat >>confdefs.h <<_ACEOF | ||
22696 | #define HAVE_IN_ADDR_T 1 | ||
22697 | _ACEOF | ||
22698 | |||
22699 | |||
22700 | fi | ||
22701 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
22702 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
22703 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
22704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22705 | else | ||
22706 | cat >conftest.$ac_ext <<_ACEOF | ||
22707 | /* confdefs.h. */ | ||
22708 | _ACEOF | ||
22709 | cat confdefs.h >>conftest.$ac_ext | ||
22710 | cat >>conftest.$ac_ext <<_ACEOF | ||
22711 | /* end confdefs.h. */ | ||
22712 | #include <sys/types.h> | ||
22713 | #include <netinet/in.h> | ||
22714 | |||
22715 | typedef in_port_t ac__type_new_; | ||
22716 | int | ||
22717 | main () | ||
22718 | { | ||
22719 | if ((ac__type_new_ *) 0) | ||
22720 | return 0; | ||
22721 | if (sizeof (ac__type_new_)) | ||
22722 | return 0; | ||
22723 | ; | ||
22724 | return 0; | ||
22725 | } | ||
22726 | _ACEOF | ||
22727 | rm -f conftest.$ac_objext | ||
22728 | if { (ac_try="$ac_compile" | ||
22729 | case "(($ac_try" in | ||
22730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22731 | *) ac_try_echo=$ac_try;; | ||
22732 | esac | ||
22733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22734 | (eval "$ac_compile") 2>conftest.er1 | ||
22735 | ac_status=$? | ||
22736 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22737 | rm -f conftest.er1 | ||
22738 | cat conftest.err >&5 | ||
22739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22740 | (exit $ac_status); } && { | ||
22741 | test -z "$ac_c_werror_flag" || | ||
22742 | test ! -s conftest.err | ||
22743 | } && test -s conftest.$ac_objext; then | ||
22744 | ac_cv_type_in_port_t=yes | ||
22745 | else | ||
22746 | echo "$as_me: failed program was:" >&5 | ||
22747 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22748 | |||
22749 | ac_cv_type_in_port_t=no | ||
22750 | fi | ||
22751 | |||
22752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22753 | fi | ||
22754 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
22755 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
22756 | if test $ac_cv_type_in_port_t = yes; then | ||
22757 | |||
22758 | cat >>confdefs.h <<_ACEOF | ||
22759 | #define HAVE_IN_PORT_T 1 | ||
22760 | _ACEOF | ||
22761 | |||
22762 | |||
22763 | fi | ||
22764 | |||
22765 | |||
22766 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
22767 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
22768 | if test "${ac_cv_have_size_t+set}" = set; then | ||
22769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22770 | else | ||
22771 | |||
22772 | cat >conftest.$ac_ext <<_ACEOF | ||
22773 | /* confdefs.h. */ | ||
22774 | _ACEOF | ||
22775 | cat confdefs.h >>conftest.$ac_ext | ||
22776 | cat >>conftest.$ac_ext <<_ACEOF | ||
22777 | /* end confdefs.h. */ | ||
22778 | |||
22779 | #include <sys/types.h> | ||
22780 | |||
22781 | int | ||
22782 | main () | ||
22783 | { | ||
22784 | size_t foo; foo = 1235; | ||
22785 | ; | ||
22786 | return 0; | ||
22787 | } | ||
22788 | _ACEOF | ||
22789 | rm -f conftest.$ac_objext | ||
22790 | if { (ac_try="$ac_compile" | ||
22791 | case "(($ac_try" in | ||
22792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22793 | *) ac_try_echo=$ac_try;; | ||
22794 | esac | ||
22795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22796 | (eval "$ac_compile") 2>conftest.er1 | ||
22797 | ac_status=$? | ||
22798 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22799 | rm -f conftest.er1 | ||
22800 | cat conftest.err >&5 | ||
22801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22802 | (exit $ac_status); } && { | ||
22803 | test -z "$ac_c_werror_flag" || | ||
22804 | test ! -s conftest.err | ||
22805 | } && test -s conftest.$ac_objext; then | ||
22806 | ac_cv_have_size_t="yes" | ||
22807 | else | ||
22808 | echo "$as_me: failed program was:" >&5 | ||
22809 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22810 | |||
22811 | ac_cv_have_size_t="no" | ||
22812 | |||
22813 | fi | ||
22814 | |||
22815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22816 | |||
22817 | fi | ||
22818 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
22819 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
22820 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
22821 | |||
22822 | cat >>confdefs.h <<\_ACEOF | ||
22823 | #define HAVE_SIZE_T 1 | ||
22824 | _ACEOF | ||
22825 | |||
22826 | fi | ||
22827 | |||
22828 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
22829 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
22830 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
22831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22832 | else | ||
22833 | |||
22834 | cat >conftest.$ac_ext <<_ACEOF | ||
22835 | /* confdefs.h. */ | ||
22836 | _ACEOF | ||
22837 | cat confdefs.h >>conftest.$ac_ext | ||
22838 | cat >>conftest.$ac_ext <<_ACEOF | ||
22839 | /* end confdefs.h. */ | ||
22840 | |||
22841 | #include <sys/types.h> | ||
22842 | |||
22843 | int | ||
22844 | main () | ||
22845 | { | ||
22846 | ssize_t foo; foo = 1235; | ||
22847 | ; | ||
22848 | return 0; | ||
22849 | } | ||
22850 | _ACEOF | ||
22851 | rm -f conftest.$ac_objext | ||
22852 | if { (ac_try="$ac_compile" | ||
22853 | case "(($ac_try" in | ||
22854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22855 | *) ac_try_echo=$ac_try;; | ||
22856 | esac | ||
22857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22858 | (eval "$ac_compile") 2>conftest.er1 | ||
22859 | ac_status=$? | ||
22860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22861 | rm -f conftest.er1 | ||
22862 | cat conftest.err >&5 | ||
22863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22864 | (exit $ac_status); } && { | ||
22865 | test -z "$ac_c_werror_flag" || | ||
22866 | test ! -s conftest.err | ||
22867 | } && test -s conftest.$ac_objext; then | ||
22868 | ac_cv_have_ssize_t="yes" | ||
22869 | else | ||
22870 | echo "$as_me: failed program was:" >&5 | ||
22871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22872 | |||
22873 | ac_cv_have_ssize_t="no" | ||
22874 | |||
22875 | fi | ||
22876 | |||
22877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22878 | |||
22879 | fi | ||
22880 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
22881 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
22882 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
22883 | |||
22884 | cat >>confdefs.h <<\_ACEOF | ||
22885 | #define HAVE_SSIZE_T 1 | ||
22886 | _ACEOF | ||
22887 | |||
22888 | fi | ||
22889 | |||
22890 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
22891 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
22892 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
22893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22894 | else | ||
22895 | |||
22896 | cat >conftest.$ac_ext <<_ACEOF | ||
22897 | /* confdefs.h. */ | ||
22898 | _ACEOF | ||
22899 | cat confdefs.h >>conftest.$ac_ext | ||
22900 | cat >>conftest.$ac_ext <<_ACEOF | ||
22901 | /* end confdefs.h. */ | ||
22902 | |||
22903 | #include <time.h> | ||
22904 | |||
22905 | int | ||
22906 | main () | ||
22907 | { | ||
22908 | clock_t foo; foo = 1235; | ||
22909 | ; | ||
22910 | return 0; | ||
22911 | } | ||
22912 | _ACEOF | ||
22913 | rm -f conftest.$ac_objext | ||
22914 | if { (ac_try="$ac_compile" | ||
22915 | case "(($ac_try" in | ||
22916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22917 | *) ac_try_echo=$ac_try;; | ||
22918 | esac | ||
22919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22920 | (eval "$ac_compile") 2>conftest.er1 | ||
22921 | ac_status=$? | ||
22922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22923 | rm -f conftest.er1 | ||
22924 | cat conftest.err >&5 | ||
22925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22926 | (exit $ac_status); } && { | ||
22927 | test -z "$ac_c_werror_flag" || | ||
22928 | test ! -s conftest.err | ||
22929 | } && test -s conftest.$ac_objext; then | ||
22930 | ac_cv_have_clock_t="yes" | ||
22931 | else | ||
22932 | echo "$as_me: failed program was:" >&5 | ||
22933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22934 | |||
22935 | ac_cv_have_clock_t="no" | ||
22936 | |||
22937 | fi | ||
22938 | |||
22939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22940 | |||
22941 | fi | ||
22942 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
22943 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
22944 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
22945 | |||
22946 | cat >>confdefs.h <<\_ACEOF | ||
22947 | #define HAVE_CLOCK_T 1 | ||
22948 | _ACEOF | ||
22949 | |||
22950 | fi | ||
22951 | |||
22952 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
22953 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
22954 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
22955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22956 | else | ||
22957 | |||
22958 | cat >conftest.$ac_ext <<_ACEOF | ||
22959 | /* confdefs.h. */ | ||
22960 | _ACEOF | ||
22961 | cat confdefs.h >>conftest.$ac_ext | ||
22962 | cat >>conftest.$ac_ext <<_ACEOF | ||
22963 | /* end confdefs.h. */ | ||
22964 | |||
22965 | #include <sys/types.h> | ||
22966 | #include <sys/socket.h> | ||
22967 | |||
22968 | int | ||
22969 | main () | ||
22970 | { | ||
22971 | sa_family_t foo; foo = 1235; | ||
22972 | ; | ||
22973 | return 0; | ||
22974 | } | ||
22975 | _ACEOF | ||
22976 | rm -f conftest.$ac_objext | ||
22977 | if { (ac_try="$ac_compile" | ||
22978 | case "(($ac_try" in | ||
22979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22980 | *) ac_try_echo=$ac_try;; | ||
22981 | esac | ||
22982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22983 | (eval "$ac_compile") 2>conftest.er1 | ||
22984 | ac_status=$? | ||
22985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22986 | rm -f conftest.er1 | ||
22987 | cat conftest.err >&5 | ||
22988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22989 | (exit $ac_status); } && { | ||
22990 | test -z "$ac_c_werror_flag" || | ||
22991 | test ! -s conftest.err | ||
22992 | } && test -s conftest.$ac_objext; then | ||
22993 | ac_cv_have_sa_family_t="yes" | ||
22994 | else | ||
22995 | echo "$as_me: failed program was:" >&5 | ||
22996 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22997 | |||
22998 | cat >conftest.$ac_ext <<_ACEOF | ||
22999 | /* confdefs.h. */ | ||
23000 | _ACEOF | ||
23001 | cat confdefs.h >>conftest.$ac_ext | ||
23002 | cat >>conftest.$ac_ext <<_ACEOF | ||
23003 | /* end confdefs.h. */ | ||
23004 | |||
23005 | #include <sys/types.h> | ||
23006 | #include <sys/socket.h> | ||
23007 | #include <netinet/in.h> | ||
23008 | |||
23009 | int | ||
23010 | main () | ||
23011 | { | ||
23012 | sa_family_t foo; foo = 1235; | ||
23013 | ; | ||
23014 | return 0; | ||
23015 | } | ||
23016 | _ACEOF | ||
23017 | rm -f conftest.$ac_objext | ||
23018 | if { (ac_try="$ac_compile" | ||
23019 | case "(($ac_try" in | ||
23020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23021 | *) ac_try_echo=$ac_try;; | ||
23022 | esac | ||
23023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23024 | (eval "$ac_compile") 2>conftest.er1 | ||
23025 | ac_status=$? | ||
23026 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23027 | rm -f conftest.er1 | ||
23028 | cat conftest.err >&5 | ||
23029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23030 | (exit $ac_status); } && { | ||
23031 | test -z "$ac_c_werror_flag" || | ||
23032 | test ! -s conftest.err | ||
23033 | } && test -s conftest.$ac_objext; then | ||
23034 | ac_cv_have_sa_family_t="yes" | ||
23035 | else | ||
23036 | echo "$as_me: failed program was:" >&5 | ||
23037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23038 | |||
23039 | ac_cv_have_sa_family_t="no" | ||
23040 | |||
23041 | fi | ||
23042 | |||
23043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23044 | |||
23045 | fi | ||
23046 | |||
23047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23048 | |||
23049 | fi | ||
23050 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
23051 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
23052 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
23053 | |||
23054 | cat >>confdefs.h <<\_ACEOF | ||
23055 | #define HAVE_SA_FAMILY_T 1 | ||
23056 | _ACEOF | ||
23057 | |||
23058 | fi | ||
23059 | |||
23060 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
23061 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
23062 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
23063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23064 | else | ||
23065 | |||
23066 | cat >conftest.$ac_ext <<_ACEOF | ||
23067 | /* confdefs.h. */ | ||
23068 | _ACEOF | ||
23069 | cat confdefs.h >>conftest.$ac_ext | ||
23070 | cat >>conftest.$ac_ext <<_ACEOF | ||
23071 | /* end confdefs.h. */ | ||
23072 | |||
23073 | #include <sys/types.h> | ||
23074 | |||
23075 | int | ||
23076 | main () | ||
23077 | { | ||
23078 | pid_t foo; foo = 1235; | ||
23079 | ; | ||
23080 | return 0; | ||
23081 | } | ||
23082 | _ACEOF | ||
23083 | rm -f conftest.$ac_objext | ||
23084 | if { (ac_try="$ac_compile" | ||
23085 | case "(($ac_try" in | ||
23086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23087 | *) ac_try_echo=$ac_try;; | ||
23088 | esac | ||
23089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23090 | (eval "$ac_compile") 2>conftest.er1 | ||
23091 | ac_status=$? | ||
23092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23093 | rm -f conftest.er1 | ||
23094 | cat conftest.err >&5 | ||
23095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23096 | (exit $ac_status); } && { | ||
23097 | test -z "$ac_c_werror_flag" || | ||
23098 | test ! -s conftest.err | ||
23099 | } && test -s conftest.$ac_objext; then | ||
23100 | ac_cv_have_pid_t="yes" | ||
23101 | else | ||
23102 | echo "$as_me: failed program was:" >&5 | ||
23103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23104 | |||
23105 | ac_cv_have_pid_t="no" | ||
23106 | |||
23107 | fi | ||
23108 | |||
23109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23110 | |||
23111 | fi | ||
23112 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
23113 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
23114 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
23115 | |||
23116 | cat >>confdefs.h <<\_ACEOF | ||
23117 | #define HAVE_PID_T 1 | ||
23118 | _ACEOF | ||
23119 | |||
23120 | fi | ||
23121 | |||
23122 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
23123 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
23124 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
23125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23126 | else | ||
23127 | |||
23128 | cat >conftest.$ac_ext <<_ACEOF | ||
23129 | /* confdefs.h. */ | ||
23130 | _ACEOF | ||
23131 | cat confdefs.h >>conftest.$ac_ext | ||
23132 | cat >>conftest.$ac_ext <<_ACEOF | ||
23133 | /* end confdefs.h. */ | ||
23134 | |||
23135 | #include <sys/types.h> | ||
23136 | |||
23137 | int | ||
23138 | main () | ||
23139 | { | ||
23140 | mode_t foo; foo = 1235; | ||
23141 | ; | ||
23142 | return 0; | ||
23143 | } | ||
23144 | _ACEOF | ||
23145 | rm -f conftest.$ac_objext | ||
23146 | if { (ac_try="$ac_compile" | ||
23147 | case "(($ac_try" in | ||
23148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23149 | *) ac_try_echo=$ac_try;; | ||
23150 | esac | ||
23151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23152 | (eval "$ac_compile") 2>conftest.er1 | ||
23153 | ac_status=$? | ||
23154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23155 | rm -f conftest.er1 | ||
23156 | cat conftest.err >&5 | ||
23157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23158 | (exit $ac_status); } && { | ||
23159 | test -z "$ac_c_werror_flag" || | ||
23160 | test ! -s conftest.err | ||
23161 | } && test -s conftest.$ac_objext; then | ||
23162 | ac_cv_have_mode_t="yes" | ||
23163 | else | ||
23164 | echo "$as_me: failed program was:" >&5 | ||
23165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23166 | |||
23167 | ac_cv_have_mode_t="no" | ||
23168 | |||
23169 | fi | ||
23170 | |||
23171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23172 | |||
23173 | fi | ||
23174 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
23175 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
23176 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
23177 | |||
23178 | cat >>confdefs.h <<\_ACEOF | ||
23179 | #define HAVE_MODE_T 1 | ||
23180 | _ACEOF | ||
23181 | |||
23182 | fi | ||
23183 | |||
23184 | |||
23185 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
23186 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
23187 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
23188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23189 | else | ||
23190 | |||
23191 | cat >conftest.$ac_ext <<_ACEOF | ||
23192 | /* confdefs.h. */ | ||
23193 | _ACEOF | ||
23194 | cat confdefs.h >>conftest.$ac_ext | ||
23195 | cat >>conftest.$ac_ext <<_ACEOF | ||
23196 | /* end confdefs.h. */ | ||
23197 | |||
23198 | #include <sys/types.h> | ||
23199 | #include <sys/socket.h> | ||
23200 | |||
23201 | int | ||
23202 | main () | ||
23203 | { | ||
23204 | struct sockaddr_storage s; | ||
23205 | ; | ||
23206 | return 0; | ||
23207 | } | ||
23208 | _ACEOF | ||
23209 | rm -f conftest.$ac_objext | ||
23210 | if { (ac_try="$ac_compile" | ||
23211 | case "(($ac_try" in | ||
23212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23213 | *) ac_try_echo=$ac_try;; | ||
23214 | esac | ||
23215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23216 | (eval "$ac_compile") 2>conftest.er1 | ||
23217 | ac_status=$? | ||
23218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23219 | rm -f conftest.er1 | ||
23220 | cat conftest.err >&5 | ||
23221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23222 | (exit $ac_status); } && { | ||
23223 | test -z "$ac_c_werror_flag" || | ||
23224 | test ! -s conftest.err | ||
23225 | } && test -s conftest.$ac_objext; then | ||
23226 | ac_cv_have_struct_sockaddr_storage="yes" | ||
23227 | else | ||
23228 | echo "$as_me: failed program was:" >&5 | ||
23229 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23230 | |||
23231 | ac_cv_have_struct_sockaddr_storage="no" | ||
23232 | |||
23233 | fi | ||
23234 | |||
23235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23236 | |||
23237 | fi | ||
23238 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
23239 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
23240 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
23241 | |||
23242 | cat >>confdefs.h <<\_ACEOF | ||
23243 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
23244 | _ACEOF | ||
23245 | |||
23246 | fi | ||
23247 | |||
23248 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
23249 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
23250 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
23251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23252 | else | ||
23253 | |||
23254 | cat >conftest.$ac_ext <<_ACEOF | ||
23255 | /* confdefs.h. */ | ||
23256 | _ACEOF | ||
23257 | cat confdefs.h >>conftest.$ac_ext | ||
23258 | cat >>conftest.$ac_ext <<_ACEOF | ||
23259 | /* end confdefs.h. */ | ||
23260 | |||
23261 | #include <sys/types.h> | ||
23262 | #include <netinet/in.h> | ||
23263 | |||
23264 | int | ||
23265 | main () | ||
23266 | { | ||
23267 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
23268 | ; | ||
23269 | return 0; | ||
23270 | } | ||
23271 | _ACEOF | ||
23272 | rm -f conftest.$ac_objext | ||
23273 | if { (ac_try="$ac_compile" | ||
23274 | case "(($ac_try" in | ||
23275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23276 | *) ac_try_echo=$ac_try;; | ||
23277 | esac | ||
23278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23279 | (eval "$ac_compile") 2>conftest.er1 | ||
23280 | ac_status=$? | ||
23281 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23282 | rm -f conftest.er1 | ||
23283 | cat conftest.err >&5 | ||
23284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23285 | (exit $ac_status); } && { | ||
23286 | test -z "$ac_c_werror_flag" || | ||
23287 | test ! -s conftest.err | ||
23288 | } && test -s conftest.$ac_objext; then | ||
23289 | ac_cv_have_struct_sockaddr_in6="yes" | ||
23290 | else | ||
23291 | echo "$as_me: failed program was:" >&5 | ||
23292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23293 | |||
23294 | ac_cv_have_struct_sockaddr_in6="no" | ||
23295 | |||
23296 | fi | ||
23297 | |||
23298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23299 | |||
23300 | fi | ||
23301 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
23302 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
23303 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
23304 | |||
23305 | cat >>confdefs.h <<\_ACEOF | ||
23306 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
23307 | _ACEOF | ||
23308 | |||
23309 | fi | ||
23310 | |||
23311 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
23312 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
23313 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
23314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23315 | else | ||
23316 | |||
23317 | cat >conftest.$ac_ext <<_ACEOF | ||
23318 | /* confdefs.h. */ | ||
23319 | _ACEOF | ||
23320 | cat confdefs.h >>conftest.$ac_ext | ||
23321 | cat >>conftest.$ac_ext <<_ACEOF | ||
23322 | /* end confdefs.h. */ | ||
23323 | |||
23324 | #include <sys/types.h> | ||
23325 | #include <netinet/in.h> | ||
23326 | |||
23327 | int | ||
23328 | main () | ||
23329 | { | ||
23330 | struct in6_addr s; s.s6_addr[0] = 0; | ||
23331 | ; | ||
23332 | return 0; | ||
23333 | } | ||
23334 | _ACEOF | ||
23335 | rm -f conftest.$ac_objext | ||
23336 | if { (ac_try="$ac_compile" | ||
23337 | case "(($ac_try" in | ||
23338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23339 | *) ac_try_echo=$ac_try;; | ||
23340 | esac | ||
23341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23342 | (eval "$ac_compile") 2>conftest.er1 | ||
23343 | ac_status=$? | ||
23344 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23345 | rm -f conftest.er1 | ||
23346 | cat conftest.err >&5 | ||
23347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23348 | (exit $ac_status); } && { | ||
23349 | test -z "$ac_c_werror_flag" || | ||
23350 | test ! -s conftest.err | ||
23351 | } && test -s conftest.$ac_objext; then | ||
23352 | ac_cv_have_struct_in6_addr="yes" | ||
23353 | else | ||
23354 | echo "$as_me: failed program was:" >&5 | ||
23355 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23356 | |||
23357 | ac_cv_have_struct_in6_addr="no" | ||
23358 | |||
23359 | fi | ||
23360 | |||
23361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23362 | |||
23363 | fi | ||
23364 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
23365 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
23366 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
23367 | |||
23368 | cat >>confdefs.h <<\_ACEOF | ||
23369 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
23370 | _ACEOF | ||
23371 | |||
23372 | |||
23373 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
23374 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
23375 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
23376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23377 | else | ||
23378 | cat >conftest.$ac_ext <<_ACEOF | ||
23379 | /* confdefs.h. */ | ||
23380 | _ACEOF | ||
23381 | cat confdefs.h >>conftest.$ac_ext | ||
23382 | cat >>conftest.$ac_ext <<_ACEOF | ||
23383 | /* end confdefs.h. */ | ||
23384 | |||
23385 | #ifdef HAVE_SYS_TYPES_H | ||
23386 | #include <sys/types.h> | ||
23387 | #endif | ||
23388 | #include <netinet/in.h> | ||
23389 | |||
23390 | |||
23391 | int | ||
23392 | main () | ||
23393 | { | ||
23394 | static struct sockaddr_in6 ac_aggr; | ||
23395 | if (ac_aggr.sin6_scope_id) | ||
23396 | return 0; | ||
23397 | ; | ||
23398 | return 0; | ||
23399 | } | ||
23400 | _ACEOF | ||
23401 | rm -f conftest.$ac_objext | ||
23402 | if { (ac_try="$ac_compile" | ||
23403 | case "(($ac_try" in | ||
23404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23405 | *) ac_try_echo=$ac_try;; | ||
23406 | esac | ||
23407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23408 | (eval "$ac_compile") 2>conftest.er1 | ||
23409 | ac_status=$? | ||
23410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23411 | rm -f conftest.er1 | ||
23412 | cat conftest.err >&5 | ||
23413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23414 | (exit $ac_status); } && { | ||
23415 | test -z "$ac_c_werror_flag" || | ||
23416 | test ! -s conftest.err | ||
23417 | } && test -s conftest.$ac_objext; then | ||
23418 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
23419 | else | ||
23420 | echo "$as_me: failed program was:" >&5 | ||
23421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23422 | |||
23423 | cat >conftest.$ac_ext <<_ACEOF | ||
23424 | /* confdefs.h. */ | ||
23425 | _ACEOF | ||
23426 | cat confdefs.h >>conftest.$ac_ext | ||
23427 | cat >>conftest.$ac_ext <<_ACEOF | ||
23428 | /* end confdefs.h. */ | ||
23429 | |||
23430 | #ifdef HAVE_SYS_TYPES_H | ||
23431 | #include <sys/types.h> | ||
23432 | #endif | ||
23433 | #include <netinet/in.h> | ||
23434 | |||
23435 | |||
23436 | int | ||
23437 | main () | ||
23438 | { | ||
23439 | static struct sockaddr_in6 ac_aggr; | ||
23440 | if (sizeof ac_aggr.sin6_scope_id) | ||
23441 | return 0; | ||
23442 | ; | ||
23443 | return 0; | ||
23444 | } | ||
23445 | _ACEOF | ||
23446 | rm -f conftest.$ac_objext | ||
23447 | if { (ac_try="$ac_compile" | ||
23448 | case "(($ac_try" in | ||
23449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23450 | *) ac_try_echo=$ac_try;; | ||
23451 | esac | ||
23452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23453 | (eval "$ac_compile") 2>conftest.er1 | ||
23454 | ac_status=$? | ||
23455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23456 | rm -f conftest.er1 | ||
23457 | cat conftest.err >&5 | ||
23458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23459 | (exit $ac_status); } && { | ||
23460 | test -z "$ac_c_werror_flag" || | ||
23461 | test ! -s conftest.err | ||
23462 | } && test -s conftest.$ac_objext; then | ||
23463 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
23464 | else | ||
23465 | echo "$as_me: failed program was:" >&5 | ||
23466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23467 | |||
23468 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
23469 | fi | ||
23470 | |||
23471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23472 | fi | ||
23473 | |||
23474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23475 | fi | ||
23476 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
23477 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
23478 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
23479 | |||
23480 | cat >>confdefs.h <<_ACEOF | ||
23481 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
23482 | _ACEOF | ||
23483 | |||
23484 | |||
23485 | fi | ||
23486 | |||
23487 | fi | ||
23488 | |||
23489 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
23490 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
23491 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
23492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23493 | else | ||
23494 | |||
23495 | cat >conftest.$ac_ext <<_ACEOF | ||
23496 | /* confdefs.h. */ | ||
23497 | _ACEOF | ||
23498 | cat confdefs.h >>conftest.$ac_ext | ||
23499 | cat >>conftest.$ac_ext <<_ACEOF | ||
23500 | /* end confdefs.h. */ | ||
23501 | |||
23502 | #include <sys/types.h> | ||
23503 | #include <sys/socket.h> | ||
23504 | #include <netdb.h> | ||
23505 | |||
23506 | int | ||
23507 | main () | ||
23508 | { | ||
23509 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
23510 | ; | ||
23511 | return 0; | ||
23512 | } | ||
23513 | _ACEOF | ||
23514 | rm -f conftest.$ac_objext | ||
23515 | if { (ac_try="$ac_compile" | ||
23516 | case "(($ac_try" in | ||
23517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23518 | *) ac_try_echo=$ac_try;; | ||
23519 | esac | ||
23520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23521 | (eval "$ac_compile") 2>conftest.er1 | ||
23522 | ac_status=$? | ||
23523 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23524 | rm -f conftest.er1 | ||
23525 | cat conftest.err >&5 | ||
23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23527 | (exit $ac_status); } && { | ||
23528 | test -z "$ac_c_werror_flag" || | ||
23529 | test ! -s conftest.err | ||
23530 | } && test -s conftest.$ac_objext; then | ||
23531 | ac_cv_have_struct_addrinfo="yes" | ||
23532 | else | ||
23533 | echo "$as_me: failed program was:" >&5 | ||
23534 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23535 | |||
23536 | ac_cv_have_struct_addrinfo="no" | ||
23537 | |||
23538 | fi | ||
23539 | |||
23540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23541 | |||
23542 | fi | ||
23543 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
23544 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
23545 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
23546 | |||
23547 | cat >>confdefs.h <<\_ACEOF | ||
23548 | #define HAVE_STRUCT_ADDRINFO 1 | ||
23549 | _ACEOF | ||
23550 | |||
23551 | fi | ||
23552 | |||
23553 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
23554 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
23555 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
23556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23557 | else | ||
23558 | |||
23559 | cat >conftest.$ac_ext <<_ACEOF | ||
23560 | /* confdefs.h. */ | ||
23561 | _ACEOF | ||
23562 | cat confdefs.h >>conftest.$ac_ext | ||
23563 | cat >>conftest.$ac_ext <<_ACEOF | ||
23564 | /* end confdefs.h. */ | ||
23565 | #include <sys/time.h> | ||
23566 | int | ||
23567 | main () | ||
23568 | { | ||
23569 | struct timeval tv; tv.tv_sec = 1; | ||
23570 | ; | ||
23571 | return 0; | ||
23572 | } | ||
23573 | _ACEOF | ||
23574 | rm -f conftest.$ac_objext | ||
23575 | if { (ac_try="$ac_compile" | ||
23576 | case "(($ac_try" in | ||
23577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23578 | *) ac_try_echo=$ac_try;; | ||
23579 | esac | ||
23580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23581 | (eval "$ac_compile") 2>conftest.er1 | ||
23582 | ac_status=$? | ||
23583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23584 | rm -f conftest.er1 | ||
23585 | cat conftest.err >&5 | ||
23586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23587 | (exit $ac_status); } && { | ||
23588 | test -z "$ac_c_werror_flag" || | ||
23589 | test ! -s conftest.err | ||
23590 | } && test -s conftest.$ac_objext; then | ||
23591 | ac_cv_have_struct_timeval="yes" | ||
23592 | else | ||
23593 | echo "$as_me: failed program was:" >&5 | ||
23594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23595 | |||
23596 | ac_cv_have_struct_timeval="no" | ||
23597 | |||
23598 | fi | ||
23599 | |||
23600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23601 | |||
23602 | fi | ||
23603 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
23604 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
23605 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
23606 | |||
23607 | cat >>confdefs.h <<\_ACEOF | ||
23608 | #define HAVE_STRUCT_TIMEVAL 1 | ||
23609 | _ACEOF | ||
23610 | |||
23611 | have_struct_timeval=1 | ||
23612 | fi | ||
23613 | |||
23614 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
23615 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
23616 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
23617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23618 | else | ||
23619 | cat >conftest.$ac_ext <<_ACEOF | ||
23620 | /* confdefs.h. */ | ||
23621 | _ACEOF | ||
23622 | cat confdefs.h >>conftest.$ac_ext | ||
23623 | cat >>conftest.$ac_ext <<_ACEOF | ||
23624 | /* end confdefs.h. */ | ||
23625 | $ac_includes_default | ||
23626 | typedef struct timespec ac__type_new_; | ||
23627 | int | ||
23628 | main () | ||
23629 | { | ||
23630 | if ((ac__type_new_ *) 0) | ||
23631 | return 0; | ||
23632 | if (sizeof (ac__type_new_)) | ||
23633 | return 0; | ||
23634 | ; | ||
23635 | return 0; | ||
23636 | } | ||
23637 | _ACEOF | ||
23638 | rm -f conftest.$ac_objext | ||
23639 | if { (ac_try="$ac_compile" | ||
23640 | case "(($ac_try" in | ||
23641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23642 | *) ac_try_echo=$ac_try;; | ||
23643 | esac | ||
23644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23645 | (eval "$ac_compile") 2>conftest.er1 | ||
23646 | ac_status=$? | ||
23647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23648 | rm -f conftest.er1 | ||
23649 | cat conftest.err >&5 | ||
23650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23651 | (exit $ac_status); } && { | ||
23652 | test -z "$ac_c_werror_flag" || | ||
23653 | test ! -s conftest.err | ||
23654 | } && test -s conftest.$ac_objext; then | ||
23655 | ac_cv_type_struct_timespec=yes | ||
23656 | else | ||
23657 | echo "$as_me: failed program was:" >&5 | ||
23658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23659 | |||
23660 | ac_cv_type_struct_timespec=no | ||
23661 | fi | ||
23662 | |||
23663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23664 | fi | ||
23665 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
23666 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
23667 | if test $ac_cv_type_struct_timespec = yes; then | ||
23668 | |||
23669 | cat >>confdefs.h <<_ACEOF | ||
23670 | #define HAVE_STRUCT_TIMESPEC 1 | ||
23671 | _ACEOF | ||
23672 | |||
23673 | |||
23674 | fi | ||
23675 | |||
23676 | |||
23677 | # We need int64_t or else certian parts of the compile will fail. | ||
23678 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
23679 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
23680 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
23681 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
23682 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
23683 | echo "" | ||
23684 | exit 1; | ||
23685 | else | ||
23686 | if test "$cross_compiling" = yes; then | ||
23687 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
23688 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
23689 | |||
23690 | else | ||
23691 | cat >conftest.$ac_ext <<_ACEOF | ||
23692 | /* confdefs.h. */ | ||
23693 | _ACEOF | ||
23694 | cat confdefs.h >>conftest.$ac_ext | ||
23695 | cat >>conftest.$ac_ext <<_ACEOF | ||
23696 | /* end confdefs.h. */ | ||
23697 | |||
23698 | #include <stdio.h> | ||
23699 | #include <string.h> | ||
23700 | #ifdef HAVE_SNPRINTF | ||
23701 | main() | ||
23702 | { | ||
23703 | char buf[50]; | ||
23704 | char expected_out[50]; | ||
23705 | int mazsize = 50 ; | ||
23706 | #if (SIZEOF_LONG_INT == 8) | ||
23707 | long int num = 0x7fffffffffffffff; | ||
23708 | #else | ||
23709 | long long num = 0x7fffffffffffffffll; | ||
23710 | #endif | ||
23711 | strcpy(expected_out, "9223372036854775807"); | ||
23712 | snprintf(buf, mazsize, "%lld", num); | ||
23713 | if(strcmp(buf, expected_out) != 0) | ||
23714 | exit(1); | ||
23715 | exit(0); | ||
23716 | } | ||
23717 | #else | ||
23718 | main() { exit(0); } | ||
23719 | #endif | ||
23720 | |||
23721 | _ACEOF | ||
23722 | rm -f conftest$ac_exeext | ||
23723 | if { (ac_try="$ac_link" | ||
23724 | case "(($ac_try" in | ||
23725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23726 | *) ac_try_echo=$ac_try;; | ||
23727 | esac | ||
23728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23729 | (eval "$ac_link") 2>&5 | ||
23730 | ac_status=$? | ||
23731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23733 | { (case "(($ac_try" in | ||
23734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23735 | *) ac_try_echo=$ac_try;; | ||
23736 | esac | ||
23737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23738 | (eval "$ac_try") 2>&5 | ||
23739 | ac_status=$? | ||
23740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23741 | (exit $ac_status); }; }; then | ||
23742 | true | ||
23743 | else | ||
23744 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23745 | echo "$as_me: failed program was:" >&5 | ||
23746 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23747 | |||
23748 | ( exit $ac_status ) | ||
23749 | cat >>confdefs.h <<\_ACEOF | ||
23750 | #define BROKEN_SNPRINTF 1 | ||
23751 | _ACEOF | ||
23752 | |||
23753 | fi | ||
23754 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23755 | fi | ||
23756 | |||
23757 | |||
23758 | fi | ||
23759 | |||
23760 | |||
23761 | # look for field 'ut_host' in header 'utmp.h' | ||
23762 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23763 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23764 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
23765 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
23766 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23768 | else | ||
23769 | |||
23770 | cat >conftest.$ac_ext <<_ACEOF | ||
23771 | /* confdefs.h. */ | ||
23772 | _ACEOF | ||
23773 | cat confdefs.h >>conftest.$ac_ext | ||
23774 | cat >>conftest.$ac_ext <<_ACEOF | ||
23775 | /* end confdefs.h. */ | ||
23776 | #include <utmp.h> | ||
23777 | |||
23778 | _ACEOF | ||
23779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23780 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23781 | eval "$ossh_varname=yes" | ||
23782 | else | ||
23783 | eval "$ossh_varname=no" | ||
23784 | fi | ||
23785 | rm -f conftest* | ||
23786 | |||
23787 | fi | ||
23788 | |||
23789 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23790 | if test -n "`echo $ossh_varname`"; then | ||
23791 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23792 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23793 | if test "x$ossh_result" = "xyes"; then | ||
23794 | |||
23795 | cat >>confdefs.h <<\_ACEOF | ||
23796 | #define HAVE_HOST_IN_UTMP 1 | ||
23797 | _ACEOF | ||
23798 | |||
23799 | fi | ||
23800 | else | ||
23801 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23802 | echo "${ECHO_T}no" >&6; } | ||
23803 | fi | ||
23804 | |||
23805 | |||
23806 | # look for field 'ut_host' in header 'utmpx.h' | ||
23807 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23808 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23809 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
23810 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
23811 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23813 | else | ||
23814 | |||
23815 | cat >conftest.$ac_ext <<_ACEOF | ||
23816 | /* confdefs.h. */ | ||
23817 | _ACEOF | ||
23818 | cat confdefs.h >>conftest.$ac_ext | ||
23819 | cat >>conftest.$ac_ext <<_ACEOF | ||
23820 | /* end confdefs.h. */ | ||
23821 | #include <utmpx.h> | ||
23822 | |||
23823 | _ACEOF | ||
23824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23825 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23826 | eval "$ossh_varname=yes" | ||
23827 | else | ||
23828 | eval "$ossh_varname=no" | ||
23829 | fi | ||
23830 | rm -f conftest* | ||
23831 | |||
23832 | fi | ||
23833 | |||
23834 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23835 | if test -n "`echo $ossh_varname`"; then | ||
23836 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23837 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23838 | if test "x$ossh_result" = "xyes"; then | ||
23839 | |||
23840 | cat >>confdefs.h <<\_ACEOF | ||
23841 | #define HAVE_HOST_IN_UTMPX 1 | ||
23842 | _ACEOF | ||
23843 | |||
23844 | fi | ||
23845 | else | ||
23846 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23847 | echo "${ECHO_T}no" >&6; } | ||
23848 | fi | ||
23849 | |||
23850 | |||
23851 | # look for field 'syslen' in header 'utmpx.h' | ||
23852 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23853 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
23854 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
23855 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
23856 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23858 | else | ||
23859 | |||
23860 | cat >conftest.$ac_ext <<_ACEOF | ||
23861 | /* confdefs.h. */ | ||
23862 | _ACEOF | ||
23863 | cat confdefs.h >>conftest.$ac_ext | ||
23864 | cat >>conftest.$ac_ext <<_ACEOF | ||
23865 | /* end confdefs.h. */ | ||
23866 | #include <utmpx.h> | ||
23867 | |||
23868 | _ACEOF | ||
23869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23870 | $EGREP "syslen" >/dev/null 2>&1; then | ||
23871 | eval "$ossh_varname=yes" | ||
23872 | else | ||
23873 | eval "$ossh_varname=no" | ||
23874 | fi | ||
23875 | rm -f conftest* | ||
23876 | |||
23877 | fi | ||
23878 | |||
23879 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23880 | if test -n "`echo $ossh_varname`"; then | ||
23881 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23882 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23883 | if test "x$ossh_result" = "xyes"; then | ||
23884 | |||
23885 | cat >>confdefs.h <<\_ACEOF | ||
23886 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
23887 | _ACEOF | ||
23888 | |||
23889 | fi | ||
23890 | else | ||
23891 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23892 | echo "${ECHO_T}no" >&6; } | ||
23893 | fi | ||
23894 | |||
23895 | |||
23896 | # look for field 'ut_pid' in header 'utmp.h' | ||
23897 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23898 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
23899 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
23900 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
23901 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23903 | else | ||
23904 | |||
23905 | cat >conftest.$ac_ext <<_ACEOF | ||
23906 | /* confdefs.h. */ | ||
23907 | _ACEOF | ||
23908 | cat confdefs.h >>conftest.$ac_ext | ||
23909 | cat >>conftest.$ac_ext <<_ACEOF | ||
23910 | /* end confdefs.h. */ | ||
23911 | #include <utmp.h> | ||
23912 | |||
23913 | _ACEOF | ||
23914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23915 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
23916 | eval "$ossh_varname=yes" | ||
23917 | else | ||
23918 | eval "$ossh_varname=no" | ||
23919 | fi | ||
23920 | rm -f conftest* | ||
23921 | |||
23922 | fi | ||
23923 | |||
23924 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23925 | if test -n "`echo $ossh_varname`"; then | ||
23926 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23927 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23928 | if test "x$ossh_result" = "xyes"; then | ||
23929 | |||
23930 | cat >>confdefs.h <<\_ACEOF | ||
23931 | #define HAVE_PID_IN_UTMP 1 | ||
23932 | _ACEOF | ||
23933 | |||
23934 | fi | ||
23935 | else | ||
23936 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23937 | echo "${ECHO_T}no" >&6; } | ||
23938 | fi | ||
23939 | |||
23940 | |||
23941 | # look for field 'ut_type' in header 'utmp.h' | ||
23942 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23943 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23944 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
23945 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
23946 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23948 | else | ||
23949 | |||
23950 | cat >conftest.$ac_ext <<_ACEOF | ||
23951 | /* confdefs.h. */ | ||
23952 | _ACEOF | ||
23953 | cat confdefs.h >>conftest.$ac_ext | ||
23954 | cat >>conftest.$ac_ext <<_ACEOF | ||
23955 | /* end confdefs.h. */ | ||
23956 | #include <utmp.h> | ||
23957 | |||
23958 | _ACEOF | ||
23959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23960 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23961 | eval "$ossh_varname=yes" | ||
23962 | else | ||
23963 | eval "$ossh_varname=no" | ||
23964 | fi | ||
23965 | rm -f conftest* | ||
23966 | |||
23967 | fi | ||
23968 | |||
23969 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23970 | if test -n "`echo $ossh_varname`"; then | ||
23971 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23972 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23973 | if test "x$ossh_result" = "xyes"; then | ||
23974 | |||
23975 | cat >>confdefs.h <<\_ACEOF | ||
23976 | #define HAVE_TYPE_IN_UTMP 1 | ||
23977 | _ACEOF | ||
23978 | |||
23979 | fi | ||
23980 | else | ||
23981 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23982 | echo "${ECHO_T}no" >&6; } | ||
23983 | fi | ||
23984 | |||
23985 | |||
23986 | # look for field 'ut_type' in header 'utmpx.h' | ||
23987 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23988 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23989 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
23990 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
23991 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23993 | else | ||
23994 | |||
23995 | cat >conftest.$ac_ext <<_ACEOF | ||
23996 | /* confdefs.h. */ | ||
23997 | _ACEOF | ||
23998 | cat confdefs.h >>conftest.$ac_ext | ||
23999 | cat >>conftest.$ac_ext <<_ACEOF | ||
24000 | /* end confdefs.h. */ | ||
24001 | #include <utmpx.h> | ||
24002 | |||
24003 | _ACEOF | ||
24004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24005 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
24006 | eval "$ossh_varname=yes" | ||
24007 | else | ||
24008 | eval "$ossh_varname=no" | ||
24009 | fi | ||
24010 | rm -f conftest* | ||
24011 | |||
24012 | fi | ||
24013 | |||
24014 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24015 | if test -n "`echo $ossh_varname`"; then | ||
24016 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24017 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24018 | if test "x$ossh_result" = "xyes"; then | ||
24019 | |||
24020 | cat >>confdefs.h <<\_ACEOF | ||
24021 | #define HAVE_TYPE_IN_UTMPX 1 | ||
24022 | _ACEOF | ||
24023 | |||
24024 | fi | ||
24025 | else | ||
24026 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24027 | echo "${ECHO_T}no" >&6; } | ||
24028 | fi | ||
24029 | |||
24030 | |||
24031 | # look for field 'ut_tv' in header 'utmp.h' | ||
24032 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24033 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
24034 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
24035 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
24036 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24038 | else | ||
24039 | |||
24040 | cat >conftest.$ac_ext <<_ACEOF | ||
24041 | /* confdefs.h. */ | ||
24042 | _ACEOF | ||
24043 | cat confdefs.h >>conftest.$ac_ext | ||
24044 | cat >>conftest.$ac_ext <<_ACEOF | ||
24045 | /* end confdefs.h. */ | ||
24046 | #include <utmp.h> | ||
24047 | |||
24048 | _ACEOF | ||
24049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24050 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
24051 | eval "$ossh_varname=yes" | ||
24052 | else | ||
24053 | eval "$ossh_varname=no" | ||
24054 | fi | ||
24055 | rm -f conftest* | ||
24056 | |||
24057 | fi | ||
24058 | |||
24059 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24060 | if test -n "`echo $ossh_varname`"; then | ||
24061 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24062 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24063 | if test "x$ossh_result" = "xyes"; then | ||
24064 | |||
24065 | cat >>confdefs.h <<\_ACEOF | ||
24066 | #define HAVE_TV_IN_UTMP 1 | ||
24067 | _ACEOF | ||
24068 | |||
24069 | fi | ||
24070 | else | ||
24071 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24072 | echo "${ECHO_T}no" >&6; } | ||
24073 | fi | ||
24074 | |||
24075 | |||
24076 | # look for field 'ut_id' in header 'utmp.h' | ||
24077 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24078 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
24079 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
24080 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
24081 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24083 | else | ||
24084 | |||
24085 | cat >conftest.$ac_ext <<_ACEOF | ||
24086 | /* confdefs.h. */ | ||
24087 | _ACEOF | ||
24088 | cat confdefs.h >>conftest.$ac_ext | ||
24089 | cat >>conftest.$ac_ext <<_ACEOF | ||
24090 | /* end confdefs.h. */ | ||
24091 | #include <utmp.h> | ||
24092 | |||
24093 | _ACEOF | ||
24094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24095 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
24096 | eval "$ossh_varname=yes" | ||
24097 | else | ||
24098 | eval "$ossh_varname=no" | ||
24099 | fi | ||
24100 | rm -f conftest* | ||
24101 | |||
24102 | fi | ||
24103 | |||
24104 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24105 | if test -n "`echo $ossh_varname`"; then | ||
24106 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24107 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24108 | if test "x$ossh_result" = "xyes"; then | ||
24109 | |||
24110 | cat >>confdefs.h <<\_ACEOF | ||
24111 | #define HAVE_ID_IN_UTMP 1 | ||
24112 | _ACEOF | ||
24113 | |||
24114 | fi | ||
24115 | else | ||
24116 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24117 | echo "${ECHO_T}no" >&6; } | ||
24118 | fi | ||
24119 | |||
24120 | |||
24121 | # look for field 'ut_id' in header 'utmpx.h' | ||
24122 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24123 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
24124 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
24125 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
24126 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24128 | else | ||
24129 | |||
24130 | cat >conftest.$ac_ext <<_ACEOF | ||
24131 | /* confdefs.h. */ | ||
24132 | _ACEOF | ||
24133 | cat confdefs.h >>conftest.$ac_ext | ||
24134 | cat >>conftest.$ac_ext <<_ACEOF | ||
24135 | /* end confdefs.h. */ | ||
24136 | #include <utmpx.h> | ||
24137 | |||
24138 | _ACEOF | ||
24139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24140 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
24141 | eval "$ossh_varname=yes" | ||
24142 | else | ||
24143 | eval "$ossh_varname=no" | ||
24144 | fi | ||
24145 | rm -f conftest* | ||
24146 | |||
24147 | fi | ||
24148 | |||
24149 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24150 | if test -n "`echo $ossh_varname`"; then | ||
24151 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24152 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24153 | if test "x$ossh_result" = "xyes"; then | ||
24154 | |||
24155 | cat >>confdefs.h <<\_ACEOF | ||
24156 | #define HAVE_ID_IN_UTMPX 1 | ||
24157 | _ACEOF | ||
24158 | |||
24159 | fi | ||
24160 | else | ||
24161 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24162 | echo "${ECHO_T}no" >&6; } | ||
24163 | fi | ||
24164 | |||
24165 | |||
24166 | # look for field 'ut_addr' in header 'utmp.h' | ||
24167 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24168 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24169 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
24170 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
24171 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24173 | else | ||
24174 | |||
24175 | cat >conftest.$ac_ext <<_ACEOF | ||
24176 | /* confdefs.h. */ | ||
24177 | _ACEOF | ||
24178 | cat confdefs.h >>conftest.$ac_ext | ||
24179 | cat >>conftest.$ac_ext <<_ACEOF | ||
24180 | /* end confdefs.h. */ | ||
24181 | #include <utmp.h> | ||
24182 | |||
24183 | _ACEOF | ||
24184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24185 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
24186 | eval "$ossh_varname=yes" | ||
24187 | else | ||
24188 | eval "$ossh_varname=no" | ||
24189 | fi | ||
24190 | rm -f conftest* | ||
24191 | |||
24192 | fi | ||
24193 | |||
24194 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24195 | if test -n "`echo $ossh_varname`"; then | ||
24196 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24197 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24198 | if test "x$ossh_result" = "xyes"; then | ||
24199 | |||
24200 | cat >>confdefs.h <<\_ACEOF | ||
24201 | #define HAVE_ADDR_IN_UTMP 1 | ||
24202 | _ACEOF | ||
24203 | |||
24204 | fi | ||
24205 | else | ||
24206 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24207 | echo "${ECHO_T}no" >&6; } | ||
24208 | fi | ||
24209 | |||
24210 | |||
24211 | # look for field 'ut_addr' in header 'utmpx.h' | ||
24212 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24213 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24214 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
24215 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
24216 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24218 | else | ||
24219 | |||
24220 | cat >conftest.$ac_ext <<_ACEOF | ||
24221 | /* confdefs.h. */ | ||
24222 | _ACEOF | ||
24223 | cat confdefs.h >>conftest.$ac_ext | ||
24224 | cat >>conftest.$ac_ext <<_ACEOF | ||
24225 | /* end confdefs.h. */ | ||
24226 | #include <utmpx.h> | ||
24227 | |||
24228 | _ACEOF | ||
24229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24230 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
24231 | eval "$ossh_varname=yes" | ||
24232 | else | ||
24233 | eval "$ossh_varname=no" | ||
24234 | fi | ||
24235 | rm -f conftest* | ||
24236 | |||
24237 | fi | ||
24238 | |||
24239 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24240 | if test -n "`echo $ossh_varname`"; then | ||
24241 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24242 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24243 | if test "x$ossh_result" = "xyes"; then | ||
24244 | |||
24245 | cat >>confdefs.h <<\_ACEOF | ||
24246 | #define HAVE_ADDR_IN_UTMPX 1 | ||
24247 | _ACEOF | ||
24248 | |||
24249 | fi | ||
24250 | else | ||
24251 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24252 | echo "${ECHO_T}no" >&6; } | ||
24253 | fi | ||
24254 | |||
24255 | |||
24256 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
24257 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24258 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
24259 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
24260 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
24261 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24263 | else | ||
24264 | |||
24265 | cat >conftest.$ac_ext <<_ACEOF | ||
24266 | /* confdefs.h. */ | ||
24267 | _ACEOF | ||
24268 | cat confdefs.h >>conftest.$ac_ext | ||
24269 | cat >>conftest.$ac_ext <<_ACEOF | ||
24270 | /* end confdefs.h. */ | ||
24271 | #include <utmp.h> | ||
24272 | |||
24273 | _ACEOF | ||
24274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24275 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
24276 | eval "$ossh_varname=yes" | ||
24277 | else | ||
24278 | eval "$ossh_varname=no" | ||
24279 | fi | ||
24280 | rm -f conftest* | ||
24281 | |||
24282 | fi | ||
24283 | |||
24284 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24285 | if test -n "`echo $ossh_varname`"; then | ||
24286 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24287 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24288 | if test "x$ossh_result" = "xyes"; then | ||
24289 | |||
24290 | cat >>confdefs.h <<\_ACEOF | ||
24291 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
24292 | _ACEOF | ||
24293 | |||
24294 | fi | ||
24295 | else | ||
24296 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24297 | echo "${ECHO_T}no" >&6; } | ||
24298 | fi | ||
24299 | |||
24300 | |||
24301 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
24302 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24303 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
24304 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
24305 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
24306 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24308 | else | ||
24309 | |||
24310 | cat >conftest.$ac_ext <<_ACEOF | ||
24311 | /* confdefs.h. */ | ||
24312 | _ACEOF | ||
24313 | cat confdefs.h >>conftest.$ac_ext | ||
24314 | cat >>conftest.$ac_ext <<_ACEOF | ||
24315 | /* end confdefs.h. */ | ||
24316 | #include <utmpx.h> | ||
24317 | |||
24318 | _ACEOF | ||
24319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24320 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
24321 | eval "$ossh_varname=yes" | ||
24322 | else | ||
24323 | eval "$ossh_varname=no" | ||
24324 | fi | ||
24325 | rm -f conftest* | ||
24326 | |||
24327 | fi | ||
24328 | |||
24329 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24330 | if test -n "`echo $ossh_varname`"; then | ||
24331 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24332 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24333 | if test "x$ossh_result" = "xyes"; then | ||
24334 | |||
24335 | cat >>confdefs.h <<\_ACEOF | ||
24336 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
24337 | _ACEOF | ||
24338 | |||
24339 | fi | ||
24340 | else | ||
24341 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24342 | echo "${ECHO_T}no" >&6; } | ||
24343 | fi | ||
24344 | |||
24345 | |||
24346 | # look for field 'ut_exit' in header 'utmp.h' | ||
24347 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24348 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
24349 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
24350 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
24351 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24353 | else | ||
24354 | |||
24355 | cat >conftest.$ac_ext <<_ACEOF | ||
24356 | /* confdefs.h. */ | ||
24357 | _ACEOF | ||
24358 | cat confdefs.h >>conftest.$ac_ext | ||
24359 | cat >>conftest.$ac_ext <<_ACEOF | ||
24360 | /* end confdefs.h. */ | ||
24361 | #include <utmp.h> | ||
24362 | |||
24363 | _ACEOF | ||
24364 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24365 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
24366 | eval "$ossh_varname=yes" | ||
24367 | else | ||
24368 | eval "$ossh_varname=no" | ||
24369 | fi | ||
24370 | rm -f conftest* | ||
24371 | |||
24372 | fi | ||
24373 | |||
24374 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24375 | if test -n "`echo $ossh_varname`"; then | ||
24376 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24377 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24378 | if test "x$ossh_result" = "xyes"; then | ||
24379 | |||
24380 | cat >>confdefs.h <<\_ACEOF | ||
24381 | #define HAVE_EXIT_IN_UTMP 1 | ||
24382 | _ACEOF | ||
24383 | |||
24384 | fi | ||
24385 | else | ||
24386 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24387 | echo "${ECHO_T}no" >&6; } | ||
24388 | fi | ||
24389 | |||
24390 | |||
24391 | # look for field 'ut_time' in header 'utmp.h' | ||
24392 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24393 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
24394 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
24395 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
24396 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24398 | else | ||
24399 | |||
24400 | cat >conftest.$ac_ext <<_ACEOF | ||
24401 | /* confdefs.h. */ | ||
24402 | _ACEOF | ||
24403 | cat confdefs.h >>conftest.$ac_ext | ||
24404 | cat >>conftest.$ac_ext <<_ACEOF | ||
24405 | /* end confdefs.h. */ | ||
24406 | #include <utmp.h> | ||
24407 | |||
24408 | _ACEOF | ||
24409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24410 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
24411 | eval "$ossh_varname=yes" | ||
24412 | else | ||
24413 | eval "$ossh_varname=no" | ||
24414 | fi | ||
24415 | rm -f conftest* | ||
24416 | |||
24417 | fi | ||
24418 | |||
24419 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24420 | if test -n "`echo $ossh_varname`"; then | ||
24421 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24422 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24423 | if test "x$ossh_result" = "xyes"; then | ||
24424 | |||
24425 | cat >>confdefs.h <<\_ACEOF | ||
24426 | #define HAVE_TIME_IN_UTMP 1 | ||
24427 | _ACEOF | ||
24428 | |||
24429 | fi | ||
24430 | else | ||
24431 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24432 | echo "${ECHO_T}no" >&6; } | ||
24433 | fi | ||
24434 | |||
24435 | |||
24436 | # look for field 'ut_time' in header 'utmpx.h' | ||
24437 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24438 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
24439 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
24440 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
24441 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24443 | else | ||
24444 | |||
24445 | cat >conftest.$ac_ext <<_ACEOF | ||
24446 | /* confdefs.h. */ | ||
24447 | _ACEOF | ||
24448 | cat confdefs.h >>conftest.$ac_ext | ||
24449 | cat >>conftest.$ac_ext <<_ACEOF | ||
24450 | /* end confdefs.h. */ | ||
24451 | #include <utmpx.h> | ||
24452 | |||
24453 | _ACEOF | ||
24454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24455 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
24456 | eval "$ossh_varname=yes" | ||
24457 | else | ||
24458 | eval "$ossh_varname=no" | ||
24459 | fi | ||
24460 | rm -f conftest* | ||
24461 | |||
24462 | fi | ||
24463 | |||
24464 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24465 | if test -n "`echo $ossh_varname`"; then | ||
24466 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24467 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24468 | if test "x$ossh_result" = "xyes"; then | ||
24469 | |||
24470 | cat >>confdefs.h <<\_ACEOF | ||
24471 | #define HAVE_TIME_IN_UTMPX 1 | ||
24472 | _ACEOF | ||
24473 | |||
24474 | fi | ||
24475 | else | ||
24476 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24477 | echo "${ECHO_T}no" >&6; } | ||
24478 | fi | ||
24479 | |||
24480 | |||
24481 | # look for field 'ut_tv' in header 'utmpx.h' | ||
24482 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24483 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
24484 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
24485 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
24486 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24488 | else | ||
24489 | |||
24490 | cat >conftest.$ac_ext <<_ACEOF | ||
24491 | /* confdefs.h. */ | ||
24492 | _ACEOF | ||
24493 | cat confdefs.h >>conftest.$ac_ext | ||
24494 | cat >>conftest.$ac_ext <<_ACEOF | ||
24495 | /* end confdefs.h. */ | ||
24496 | #include <utmpx.h> | ||
24497 | |||
24498 | _ACEOF | ||
24499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24500 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
24501 | eval "$ossh_varname=yes" | ||
24502 | else | ||
24503 | eval "$ossh_varname=no" | ||
24504 | fi | ||
24505 | rm -f conftest* | ||
24506 | |||
24507 | fi | ||
24508 | |||
24509 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24510 | if test -n "`echo $ossh_varname`"; then | ||
24511 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24512 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24513 | if test "x$ossh_result" = "xyes"; then | ||
24514 | |||
24515 | cat >>confdefs.h <<\_ACEOF | ||
24516 | #define HAVE_TV_IN_UTMPX 1 | ||
24517 | _ACEOF | ||
24518 | |||
24519 | fi | ||
24520 | else | ||
24521 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24522 | echo "${ECHO_T}no" >&6; } | ||
24523 | fi | ||
24524 | |||
24525 | |||
24526 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
24527 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
24528 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
24529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24530 | else | ||
24531 | cat >conftest.$ac_ext <<_ACEOF | ||
24532 | /* confdefs.h. */ | ||
24533 | _ACEOF | ||
24534 | cat confdefs.h >>conftest.$ac_ext | ||
24535 | cat >>conftest.$ac_ext <<_ACEOF | ||
24536 | /* end confdefs.h. */ | ||
24537 | $ac_includes_default | ||
24538 | int | ||
24539 | main () | ||
24540 | { | ||
24541 | static struct stat ac_aggr; | ||
24542 | if (ac_aggr.st_blksize) | ||
24543 | return 0; | ||
24544 | ; | ||
24545 | return 0; | ||
24546 | } | ||
24547 | _ACEOF | ||
24548 | rm -f conftest.$ac_objext | ||
24549 | if { (ac_try="$ac_compile" | ||
24550 | case "(($ac_try" in | ||
24551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24552 | *) ac_try_echo=$ac_try;; | ||
24553 | esac | ||
24554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24555 | (eval "$ac_compile") 2>conftest.er1 | ||
24556 | ac_status=$? | ||
24557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24558 | rm -f conftest.er1 | ||
24559 | cat conftest.err >&5 | ||
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24561 | (exit $ac_status); } && { | ||
24562 | test -z "$ac_c_werror_flag" || | ||
24563 | test ! -s conftest.err | ||
24564 | } && test -s conftest.$ac_objext; then | ||
24565 | ac_cv_member_struct_stat_st_blksize=yes | ||
24566 | else | ||
24567 | echo "$as_me: failed program was:" >&5 | ||
24568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24569 | |||
24570 | cat >conftest.$ac_ext <<_ACEOF | ||
24571 | /* confdefs.h. */ | ||
24572 | _ACEOF | ||
24573 | cat confdefs.h >>conftest.$ac_ext | ||
24574 | cat >>conftest.$ac_ext <<_ACEOF | ||
24575 | /* end confdefs.h. */ | ||
24576 | $ac_includes_default | ||
24577 | int | ||
24578 | main () | ||
24579 | { | ||
24580 | static struct stat ac_aggr; | ||
24581 | if (sizeof ac_aggr.st_blksize) | ||
24582 | return 0; | ||
24583 | ; | ||
24584 | return 0; | ||
24585 | } | ||
24586 | _ACEOF | ||
24587 | rm -f conftest.$ac_objext | ||
24588 | if { (ac_try="$ac_compile" | ||
24589 | case "(($ac_try" in | ||
24590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24591 | *) ac_try_echo=$ac_try;; | ||
24592 | esac | ||
24593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24594 | (eval "$ac_compile") 2>conftest.er1 | ||
24595 | ac_status=$? | ||
24596 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24597 | rm -f conftest.er1 | ||
24598 | cat conftest.err >&5 | ||
24599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24600 | (exit $ac_status); } && { | ||
24601 | test -z "$ac_c_werror_flag" || | ||
24602 | test ! -s conftest.err | ||
24603 | } && test -s conftest.$ac_objext; then | ||
24604 | ac_cv_member_struct_stat_st_blksize=yes | ||
24605 | else | ||
24606 | echo "$as_me: failed program was:" >&5 | ||
24607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24608 | |||
24609 | ac_cv_member_struct_stat_st_blksize=no | ||
24610 | fi | ||
24611 | |||
24612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24613 | fi | ||
24614 | |||
24615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24616 | fi | ||
24617 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
24618 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
24619 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
24620 | |||
24621 | cat >>confdefs.h <<_ACEOF | ||
24622 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
24623 | _ACEOF | ||
24624 | |||
24625 | |||
24626 | fi | ||
24627 | |||
24628 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
24629 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
24630 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
24631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24632 | else | ||
24633 | cat >conftest.$ac_ext <<_ACEOF | ||
24634 | /* confdefs.h. */ | ||
24635 | _ACEOF | ||
24636 | cat confdefs.h >>conftest.$ac_ext | ||
24637 | cat >>conftest.$ac_ext <<_ACEOF | ||
24638 | /* end confdefs.h. */ | ||
24639 | |||
24640 | #include <stdio.h> | ||
24641 | #if HAVE_SYS_TYPES_H | ||
24642 | # include <sys/types.h> | ||
24643 | #endif | ||
24644 | #include <netinet/in.h> | ||
24645 | #include <arpa/nameser.h> | ||
24646 | #include <resolv.h> | ||
24647 | |||
24648 | |||
24649 | int | ||
24650 | main () | ||
24651 | { | ||
24652 | static struct __res_state ac_aggr; | ||
24653 | if (ac_aggr.retrans) | ||
24654 | return 0; | ||
24655 | ; | ||
24656 | return 0; | ||
24657 | } | ||
24658 | _ACEOF | ||
24659 | rm -f conftest.$ac_objext | ||
24660 | if { (ac_try="$ac_compile" | ||
24661 | case "(($ac_try" in | ||
24662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24663 | *) ac_try_echo=$ac_try;; | ||
24664 | esac | ||
24665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24666 | (eval "$ac_compile") 2>conftest.er1 | ||
24667 | ac_status=$? | ||
24668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24669 | rm -f conftest.er1 | ||
24670 | cat conftest.err >&5 | ||
24671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24672 | (exit $ac_status); } && { | ||
24673 | test -z "$ac_c_werror_flag" || | ||
24674 | test ! -s conftest.err | ||
24675 | } && test -s conftest.$ac_objext; then | ||
24676 | ac_cv_member_struct___res_state_retrans=yes | ||
24677 | else | ||
24678 | echo "$as_me: failed program was:" >&5 | ||
24679 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24680 | |||
24681 | cat >conftest.$ac_ext <<_ACEOF | ||
24682 | /* confdefs.h. */ | ||
24683 | _ACEOF | ||
24684 | cat confdefs.h >>conftest.$ac_ext | ||
24685 | cat >>conftest.$ac_ext <<_ACEOF | ||
24686 | /* end confdefs.h. */ | ||
24687 | |||
24688 | #include <stdio.h> | ||
24689 | #if HAVE_SYS_TYPES_H | ||
24690 | # include <sys/types.h> | ||
24691 | #endif | ||
24692 | #include <netinet/in.h> | ||
24693 | #include <arpa/nameser.h> | ||
24694 | #include <resolv.h> | ||
24695 | |||
24696 | |||
24697 | int | ||
24698 | main () | ||
24699 | { | ||
24700 | static struct __res_state ac_aggr; | ||
24701 | if (sizeof ac_aggr.retrans) | ||
24702 | return 0; | ||
24703 | ; | ||
24704 | return 0; | ||
24705 | } | ||
24706 | _ACEOF | ||
24707 | rm -f conftest.$ac_objext | ||
24708 | if { (ac_try="$ac_compile" | ||
24709 | case "(($ac_try" in | ||
24710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24711 | *) ac_try_echo=$ac_try;; | ||
24712 | esac | ||
24713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24714 | (eval "$ac_compile") 2>conftest.er1 | ||
24715 | ac_status=$? | ||
24716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24717 | rm -f conftest.er1 | ||
24718 | cat conftest.err >&5 | ||
24719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24720 | (exit $ac_status); } && { | ||
24721 | test -z "$ac_c_werror_flag" || | ||
24722 | test ! -s conftest.err | ||
24723 | } && test -s conftest.$ac_objext; then | ||
24724 | ac_cv_member_struct___res_state_retrans=yes | ||
24725 | else | ||
24726 | echo "$as_me: failed program was:" >&5 | ||
24727 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24728 | |||
24729 | ac_cv_member_struct___res_state_retrans=no | ||
24730 | fi | ||
24731 | |||
24732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24733 | fi | ||
24734 | |||
24735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24736 | fi | ||
24737 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
24738 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
24739 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
24740 | : | ||
24741 | else | ||
24742 | |||
24743 | cat >>confdefs.h <<\_ACEOF | ||
24744 | #define __res_state state | ||
24745 | _ACEOF | ||
24746 | |||
24747 | fi | ||
24748 | |||
24749 | |||
24750 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
24751 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24752 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
24753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24754 | else | ||
24755 | |||
24756 | cat >conftest.$ac_ext <<_ACEOF | ||
24757 | /* confdefs.h. */ | ||
24758 | _ACEOF | ||
24759 | cat confdefs.h >>conftest.$ac_ext | ||
24760 | cat >>conftest.$ac_ext <<_ACEOF | ||
24761 | /* end confdefs.h. */ | ||
24762 | |||
24763 | #include <sys/types.h> | ||
24764 | #include <sys/socket.h> | ||
24765 | |||
24766 | int | ||
24767 | main () | ||
24768 | { | ||
24769 | struct sockaddr_storage s; s.ss_family = 1; | ||
24770 | ; | ||
24771 | return 0; | ||
24772 | } | ||
24773 | _ACEOF | ||
24774 | rm -f conftest.$ac_objext | ||
24775 | if { (ac_try="$ac_compile" | ||
24776 | case "(($ac_try" in | ||
24777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24778 | *) ac_try_echo=$ac_try;; | ||
24779 | esac | ||
24780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24781 | (eval "$ac_compile") 2>conftest.er1 | ||
24782 | ac_status=$? | ||
24783 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24784 | rm -f conftest.er1 | ||
24785 | cat conftest.err >&5 | ||
24786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24787 | (exit $ac_status); } && { | ||
24788 | test -z "$ac_c_werror_flag" || | ||
24789 | test ! -s conftest.err | ||
24790 | } && test -s conftest.$ac_objext; then | ||
24791 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
24792 | else | ||
24793 | echo "$as_me: failed program was:" >&5 | ||
24794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24795 | |||
24796 | ac_cv_have_ss_family_in_struct_ss="no" | ||
24797 | fi | ||
24798 | |||
24799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24800 | |||
24801 | fi | ||
24802 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
24803 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
24804 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
24805 | |||
24806 | cat >>confdefs.h <<\_ACEOF | ||
24807 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
24808 | _ACEOF | ||
24809 | |||
24810 | fi | ||
24811 | |||
24812 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
24813 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24814 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
24815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24816 | else | ||
24817 | |||
24818 | cat >conftest.$ac_ext <<_ACEOF | ||
24819 | /* confdefs.h. */ | ||
24820 | _ACEOF | ||
24821 | cat confdefs.h >>conftest.$ac_ext | ||
24822 | cat >>conftest.$ac_ext <<_ACEOF | ||
24823 | /* end confdefs.h. */ | ||
24824 | |||
24825 | #include <sys/types.h> | ||
24826 | #include <sys/socket.h> | ||
24827 | |||
24828 | int | ||
24829 | main () | ||
24830 | { | ||
24831 | struct sockaddr_storage s; s.__ss_family = 1; | ||
24832 | ; | ||
24833 | return 0; | ||
24834 | } | ||
24835 | _ACEOF | ||
24836 | rm -f conftest.$ac_objext | ||
24837 | if { (ac_try="$ac_compile" | ||
24838 | case "(($ac_try" in | ||
24839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24840 | *) ac_try_echo=$ac_try;; | ||
24841 | esac | ||
24842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24843 | (eval "$ac_compile") 2>conftest.er1 | ||
24844 | ac_status=$? | ||
24845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24846 | rm -f conftest.er1 | ||
24847 | cat conftest.err >&5 | ||
24848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24849 | (exit $ac_status); } && { | ||
24850 | test -z "$ac_c_werror_flag" || | ||
24851 | test ! -s conftest.err | ||
24852 | } && test -s conftest.$ac_objext; then | ||
24853 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
24854 | else | ||
24855 | echo "$as_me: failed program was:" >&5 | ||
24856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24857 | |||
24858 | ac_cv_have___ss_family_in_struct_ss="no" | ||
24859 | |||
24860 | fi | ||
24861 | |||
24862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24863 | |||
24864 | fi | ||
24865 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
24866 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
24867 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
24868 | |||
24869 | cat >>confdefs.h <<\_ACEOF | ||
24870 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
24871 | _ACEOF | ||
24872 | |||
24873 | fi | ||
24874 | |||
24875 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
24876 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
24877 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
24878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24879 | else | ||
24880 | |||
24881 | cat >conftest.$ac_ext <<_ACEOF | ||
24882 | /* confdefs.h. */ | ||
24883 | _ACEOF | ||
24884 | cat confdefs.h >>conftest.$ac_ext | ||
24885 | cat >>conftest.$ac_ext <<_ACEOF | ||
24886 | /* end confdefs.h. */ | ||
24887 | |||
24888 | #include <pwd.h> | ||
24889 | |||
24890 | int | ||
24891 | main () | ||
24892 | { | ||
24893 | struct passwd p; p.pw_class = 0; | ||
24894 | ; | ||
24895 | return 0; | ||
24896 | } | ||
24897 | _ACEOF | ||
24898 | rm -f conftest.$ac_objext | ||
24899 | if { (ac_try="$ac_compile" | ||
24900 | case "(($ac_try" in | ||
24901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24902 | *) ac_try_echo=$ac_try;; | ||
24903 | esac | ||
24904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24905 | (eval "$ac_compile") 2>conftest.er1 | ||
24906 | ac_status=$? | ||
24907 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24908 | rm -f conftest.er1 | ||
24909 | cat conftest.err >&5 | ||
24910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24911 | (exit $ac_status); } && { | ||
24912 | test -z "$ac_c_werror_flag" || | ||
24913 | test ! -s conftest.err | ||
24914 | } && test -s conftest.$ac_objext; then | ||
24915 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
24916 | else | ||
24917 | echo "$as_me: failed program was:" >&5 | ||
24918 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24919 | |||
24920 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
24921 | |||
24922 | fi | ||
24923 | |||
24924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24925 | |||
24926 | fi | ||
24927 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
24928 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
24929 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
24930 | |||
24931 | cat >>confdefs.h <<\_ACEOF | ||
24932 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
24933 | _ACEOF | ||
24934 | |||
24935 | fi | ||
24936 | |||
24937 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
24938 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
24939 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
24940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24941 | else | ||
24942 | |||
24943 | cat >conftest.$ac_ext <<_ACEOF | ||
24944 | /* confdefs.h. */ | ||
24945 | _ACEOF | ||
24946 | cat confdefs.h >>conftest.$ac_ext | ||
24947 | cat >>conftest.$ac_ext <<_ACEOF | ||
24948 | /* end confdefs.h. */ | ||
24949 | |||
24950 | #include <pwd.h> | ||
24951 | |||
24952 | int | ||
24953 | main () | ||
24954 | { | ||
24955 | struct passwd p; p.pw_expire = 0; | ||
24956 | ; | ||
24957 | return 0; | ||
24958 | } | ||
24959 | _ACEOF | ||
24960 | rm -f conftest.$ac_objext | ||
24961 | if { (ac_try="$ac_compile" | ||
24962 | case "(($ac_try" in | ||
24963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24964 | *) ac_try_echo=$ac_try;; | ||
24965 | esac | ||
24966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24967 | (eval "$ac_compile") 2>conftest.er1 | ||
24968 | ac_status=$? | ||
24969 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24970 | rm -f conftest.er1 | ||
24971 | cat conftest.err >&5 | ||
24972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24973 | (exit $ac_status); } && { | ||
24974 | test -z "$ac_c_werror_flag" || | ||
24975 | test ! -s conftest.err | ||
24976 | } && test -s conftest.$ac_objext; then | ||
24977 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
24978 | else | ||
24979 | echo "$as_me: failed program was:" >&5 | ||
24980 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24981 | |||
24982 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
24983 | |||
24984 | fi | ||
24985 | |||
24986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24987 | |||
24988 | fi | ||
24989 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
24990 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
24991 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
24992 | |||
24993 | cat >>confdefs.h <<\_ACEOF | ||
24994 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
24995 | _ACEOF | ||
24996 | |||
24997 | fi | ||
24998 | |||
24999 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
25000 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
25001 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
25002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25003 | else | ||
25004 | |||
25005 | cat >conftest.$ac_ext <<_ACEOF | ||
25006 | /* confdefs.h. */ | ||
25007 | _ACEOF | ||
25008 | cat confdefs.h >>conftest.$ac_ext | ||
25009 | cat >>conftest.$ac_ext <<_ACEOF | ||
25010 | /* end confdefs.h. */ | ||
25011 | |||
25012 | #include <pwd.h> | ||
25013 | |||
25014 | int | ||
25015 | main () | ||
25016 | { | ||
25017 | struct passwd p; p.pw_change = 0; | ||
25018 | ; | ||
25019 | return 0; | ||
25020 | } | ||
25021 | _ACEOF | ||
25022 | rm -f conftest.$ac_objext | ||
25023 | if { (ac_try="$ac_compile" | ||
25024 | case "(($ac_try" in | ||
25025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25026 | *) ac_try_echo=$ac_try;; | ||
25027 | esac | ||
25028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25029 | (eval "$ac_compile") 2>conftest.er1 | ||
25030 | ac_status=$? | ||
25031 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25032 | rm -f conftest.er1 | ||
25033 | cat conftest.err >&5 | ||
25034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25035 | (exit $ac_status); } && { | ||
25036 | test -z "$ac_c_werror_flag" || | ||
25037 | test ! -s conftest.err | ||
25038 | } && test -s conftest.$ac_objext; then | ||
25039 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
25040 | else | ||
25041 | echo "$as_me: failed program was:" >&5 | ||
25042 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25043 | |||
25044 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
25045 | |||
25046 | fi | ||
25047 | |||
25048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25049 | |||
25050 | fi | ||
25051 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
25052 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
25053 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
25054 | |||
25055 | cat >>confdefs.h <<\_ACEOF | ||
25056 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
25057 | _ACEOF | ||
25058 | |||
25059 | fi | ||
25060 | |||
25061 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
25062 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
25063 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
25064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25065 | else | ||
25066 | |||
25067 | cat >conftest.$ac_ext <<_ACEOF | ||
25068 | |||
25069 | #include <sys/types.h> | ||
25070 | #include <sys/socket.h> | ||
25071 | #include <sys/uio.h> | ||
25072 | int main() { | ||
25073 | #ifdef msg_accrights | ||
25074 | #error "msg_accrights is a macro" | ||
25075 | exit(1); | ||
25076 | #endif | ||
25077 | struct msghdr m; | ||
25078 | m.msg_accrights = 0; | ||
25079 | exit(0); | ||
25080 | } | ||
25081 | |||
25082 | _ACEOF | ||
25083 | rm -f conftest.$ac_objext | ||
25084 | if { (ac_try="$ac_compile" | ||
25085 | case "(($ac_try" in | ||
25086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25087 | *) ac_try_echo=$ac_try;; | ||
25088 | esac | ||
25089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25090 | (eval "$ac_compile") 2>conftest.er1 | ||
25091 | ac_status=$? | ||
25092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25093 | rm -f conftest.er1 | ||
25094 | cat conftest.err >&5 | ||
25095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25096 | (exit $ac_status); } && { | ||
25097 | test -z "$ac_c_werror_flag" || | ||
25098 | test ! -s conftest.err | ||
25099 | } && test -s conftest.$ac_objext; then | ||
25100 | ac_cv_have_accrights_in_msghdr="yes" | ||
25101 | else | ||
25102 | echo "$as_me: failed program was:" >&5 | ||
25103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25104 | |||
25105 | ac_cv_have_accrights_in_msghdr="no" | ||
25106 | |||
25107 | fi | ||
25108 | |||
25109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25110 | |||
25111 | fi | ||
25112 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
25113 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
25114 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
25115 | |||
25116 | cat >>confdefs.h <<\_ACEOF | ||
25117 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
25118 | _ACEOF | ||
25119 | |||
25120 | fi | ||
25121 | |||
25122 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
25123 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
25124 | cat >conftest.$ac_ext <<_ACEOF | ||
25125 | /* confdefs.h. */ | ||
25126 | _ACEOF | ||
25127 | cat confdefs.h >>conftest.$ac_ext | ||
25128 | cat >>conftest.$ac_ext <<_ACEOF | ||
25129 | /* end confdefs.h. */ | ||
25130 | |||
25131 | #include <sys/types.h> | ||
25132 | #include <sys/stat.h> | ||
25133 | #ifdef HAVE_SYS_TIME_H | ||
25134 | # include <sys/time.h> | ||
25135 | #endif | ||
25136 | #ifdef HAVE_SYS_MOUNT_H | ||
25137 | #include <sys/mount.h> | ||
25138 | #endif | ||
25139 | #ifdef HAVE_SYS_STATVFS_H | ||
25140 | #include <sys/statvfs.h> | ||
25141 | #endif | ||
25142 | |||
25143 | int | ||
25144 | main () | ||
25145 | { | ||
25146 | struct statvfs s; s.f_fsid = 0; | ||
25147 | ; | ||
25148 | return 0; | ||
25149 | } | ||
25150 | _ACEOF | ||
25151 | rm -f conftest.$ac_objext | ||
25152 | if { (ac_try="$ac_compile" | ||
25153 | case "(($ac_try" in | ||
25154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25155 | *) ac_try_echo=$ac_try;; | ||
25156 | esac | ||
25157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25158 | (eval "$ac_compile") 2>conftest.er1 | ||
25159 | ac_status=$? | ||
25160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25161 | rm -f conftest.er1 | ||
25162 | cat conftest.err >&5 | ||
25163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25164 | (exit $ac_status); } && { | ||
25165 | test -z "$ac_c_werror_flag" || | ||
25166 | test ! -s conftest.err | ||
25167 | } && test -s conftest.$ac_objext; then | ||
25168 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25169 | echo "${ECHO_T}yes" >&6; } | ||
25170 | else | ||
25171 | echo "$as_me: failed program was:" >&5 | ||
25172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25173 | |||
25174 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25175 | echo "${ECHO_T}no" >&6; } | ||
25176 | |||
25177 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
25178 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
25179 | cat >conftest.$ac_ext <<_ACEOF | ||
25180 | /* confdefs.h. */ | ||
25181 | _ACEOF | ||
25182 | cat confdefs.h >>conftest.$ac_ext | ||
25183 | cat >>conftest.$ac_ext <<_ACEOF | ||
25184 | /* end confdefs.h. */ | ||
25185 | |||
25186 | #include <sys/types.h> | ||
25187 | #include <sys/statvfs.h> | ||
25188 | int | ||
25189 | main () | ||
25190 | { | ||
25191 | fsid_t t; t.val[0] = 0; | ||
25192 | ; | ||
25193 | return 0; | ||
25194 | } | ||
25195 | _ACEOF | ||
25196 | rm -f conftest.$ac_objext | ||
25197 | if { (ac_try="$ac_compile" | ||
25198 | case "(($ac_try" in | ||
25199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25200 | *) ac_try_echo=$ac_try;; | ||
25201 | esac | ||
25202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25203 | (eval "$ac_compile") 2>conftest.er1 | ||
25204 | ac_status=$? | ||
25205 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25206 | rm -f conftest.er1 | ||
25207 | cat conftest.err >&5 | ||
25208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25209 | (exit $ac_status); } && { | ||
25210 | test -z "$ac_c_werror_flag" || | ||
25211 | test ! -s conftest.err | ||
25212 | } && test -s conftest.$ac_objext; then | ||
25213 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25214 | echo "${ECHO_T}yes" >&6; } | ||
25215 | |||
25216 | cat >>confdefs.h <<\_ACEOF | ||
25217 | #define FSID_HAS_VAL 1 | ||
25218 | _ACEOF | ||
25219 | |||
25220 | else | ||
25221 | echo "$as_me: failed program was:" >&5 | ||
25222 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25223 | |||
25224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25225 | echo "${ECHO_T}no" >&6; } | ||
25226 | fi | ||
25227 | |||
25228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25229 | |||
25230 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
25231 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
25232 | cat >conftest.$ac_ext <<_ACEOF | ||
25233 | /* confdefs.h. */ | ||
25234 | _ACEOF | ||
25235 | cat confdefs.h >>conftest.$ac_ext | ||
25236 | cat >>conftest.$ac_ext <<_ACEOF | ||
25237 | /* end confdefs.h. */ | ||
25238 | |||
25239 | #include <sys/types.h> | ||
25240 | #include <sys/statvfs.h> | ||
25241 | int | ||
25242 | main () | ||
25243 | { | ||
25244 | fsid_t t; t.__val[0] = 0; | ||
25245 | ; | ||
25246 | return 0; | ||
25247 | } | ||
25248 | _ACEOF | ||
25249 | rm -f conftest.$ac_objext | ||
25250 | if { (ac_try="$ac_compile" | ||
25251 | case "(($ac_try" in | ||
25252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25253 | *) ac_try_echo=$ac_try;; | ||
25254 | esac | ||
25255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25256 | (eval "$ac_compile") 2>conftest.er1 | ||
25257 | ac_status=$? | ||
25258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25259 | rm -f conftest.er1 | ||
25260 | cat conftest.err >&5 | ||
25261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25262 | (exit $ac_status); } && { | ||
25263 | test -z "$ac_c_werror_flag" || | ||
25264 | test ! -s conftest.err | ||
25265 | } && test -s conftest.$ac_objext; then | ||
25266 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25267 | echo "${ECHO_T}yes" >&6; } | ||
25268 | |||
25269 | cat >>confdefs.h <<\_ACEOF | ||
25270 | #define FSID_HAS___VAL 1 | ||
25271 | _ACEOF | ||
25272 | |||
25273 | else | ||
25274 | echo "$as_me: failed program was:" >&5 | ||
25275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25276 | |||
25277 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25278 | echo "${ECHO_T}no" >&6; } | ||
25279 | fi | ||
25280 | |||
25281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25282 | |||
25283 | fi | ||
25284 | |||
25285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25286 | |||
25287 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
25288 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
25289 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
25290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25291 | else | ||
25292 | |||
25293 | cat >conftest.$ac_ext <<_ACEOF | ||
25294 | |||
25295 | #include <sys/types.h> | ||
25296 | #include <sys/socket.h> | ||
25297 | #include <sys/uio.h> | ||
25298 | int main() { | ||
25299 | #ifdef msg_control | ||
25300 | #error "msg_control is a macro" | ||
25301 | exit(1); | ||
25302 | #endif | ||
25303 | struct msghdr m; | ||
25304 | m.msg_control = 0; | ||
25305 | exit(0); | ||
25306 | } | ||
25307 | |||
25308 | _ACEOF | ||
25309 | rm -f conftest.$ac_objext | ||
25310 | if { (ac_try="$ac_compile" | ||
25311 | case "(($ac_try" in | ||
25312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25313 | *) ac_try_echo=$ac_try;; | ||
25314 | esac | ||
25315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25316 | (eval "$ac_compile") 2>conftest.er1 | ||
25317 | ac_status=$? | ||
25318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25319 | rm -f conftest.er1 | ||
25320 | cat conftest.err >&5 | ||
25321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25322 | (exit $ac_status); } && { | ||
25323 | test -z "$ac_c_werror_flag" || | ||
25324 | test ! -s conftest.err | ||
25325 | } && test -s conftest.$ac_objext; then | ||
25326 | ac_cv_have_control_in_msghdr="yes" | ||
25327 | else | ||
25328 | echo "$as_me: failed program was:" >&5 | ||
25329 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25330 | |||
25331 | ac_cv_have_control_in_msghdr="no" | ||
25332 | |||
25333 | fi | ||
25334 | |||
25335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25336 | |||
25337 | fi | ||
25338 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
25339 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
25340 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
25341 | |||
25342 | cat >>confdefs.h <<\_ACEOF | ||
25343 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
25344 | _ACEOF | ||
25345 | |||
25346 | fi | ||
25347 | |||
25348 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
25349 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
25350 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
25351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25352 | else | ||
25353 | |||
25354 | cat >conftest.$ac_ext <<_ACEOF | ||
25355 | /* confdefs.h. */ | ||
25356 | _ACEOF | ||
25357 | cat confdefs.h >>conftest.$ac_ext | ||
25358 | cat >>conftest.$ac_ext <<_ACEOF | ||
25359 | /* end confdefs.h. */ | ||
25360 | |||
25361 | int | ||
25362 | main () | ||
25363 | { | ||
25364 | extern char *__progname; printf("%s", __progname); | ||
25365 | ; | ||
25366 | return 0; | ||
25367 | } | ||
25368 | _ACEOF | ||
25369 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25370 | if { (ac_try="$ac_link" | ||
25371 | case "(($ac_try" in | ||
25372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25373 | *) ac_try_echo=$ac_try;; | ||
25374 | esac | ||
25375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25376 | (eval "$ac_link") 2>conftest.er1 | ||
25377 | ac_status=$? | ||
25378 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25379 | rm -f conftest.er1 | ||
25380 | cat conftest.err >&5 | ||
25381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25382 | (exit $ac_status); } && { | ||
25383 | test -z "$ac_c_werror_flag" || | ||
25384 | test ! -s conftest.err | ||
25385 | } && test -s conftest$ac_exeext && | ||
25386 | $as_test_x conftest$ac_exeext; then | ||
25387 | ac_cv_libc_defines___progname="yes" | ||
25388 | else | ||
25389 | echo "$as_me: failed program was:" >&5 | ||
25390 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25391 | |||
25392 | ac_cv_libc_defines___progname="no" | ||
25393 | |||
25394 | fi | ||
25395 | |||
25396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25397 | conftest$ac_exeext conftest.$ac_ext | ||
25398 | |||
25399 | fi | ||
25400 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
25401 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
25402 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
25403 | |||
25404 | cat >>confdefs.h <<\_ACEOF | ||
25405 | #define HAVE___PROGNAME 1 | ||
25406 | _ACEOF | ||
25407 | |||
25408 | fi | ||
25409 | |||
25410 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
25411 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
25412 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
25413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25414 | else | ||
25415 | |||
25416 | cat >conftest.$ac_ext <<_ACEOF | ||
25417 | /* confdefs.h. */ | ||
25418 | _ACEOF | ||
25419 | cat confdefs.h >>conftest.$ac_ext | ||
25420 | cat >>conftest.$ac_ext <<_ACEOF | ||
25421 | /* end confdefs.h. */ | ||
25422 | |||
25423 | #include <stdio.h> | ||
25424 | |||
25425 | int | ||
25426 | main () | ||
25427 | { | ||
25428 | printf("%s", __FUNCTION__); | ||
25429 | ; | ||
25430 | return 0; | ||
25431 | } | ||
25432 | _ACEOF | ||
25433 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25434 | if { (ac_try="$ac_link" | ||
25435 | case "(($ac_try" in | ||
25436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25437 | *) ac_try_echo=$ac_try;; | ||
25438 | esac | ||
25439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25440 | (eval "$ac_link") 2>conftest.er1 | ||
25441 | ac_status=$? | ||
25442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25443 | rm -f conftest.er1 | ||
25444 | cat conftest.err >&5 | ||
25445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25446 | (exit $ac_status); } && { | ||
25447 | test -z "$ac_c_werror_flag" || | ||
25448 | test ! -s conftest.err | ||
25449 | } && test -s conftest$ac_exeext && | ||
25450 | $as_test_x conftest$ac_exeext; then | ||
25451 | ac_cv_cc_implements___FUNCTION__="yes" | ||
25452 | else | ||
25453 | echo "$as_me: failed program was:" >&5 | ||
25454 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25455 | |||
25456 | ac_cv_cc_implements___FUNCTION__="no" | ||
25457 | |||
25458 | fi | ||
25459 | |||
25460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25461 | conftest$ac_exeext conftest.$ac_ext | ||
25462 | |||
25463 | fi | ||
25464 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
25465 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
25466 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
25467 | |||
25468 | cat >>confdefs.h <<\_ACEOF | ||
25469 | #define HAVE___FUNCTION__ 1 | ||
25470 | _ACEOF | ||
25471 | |||
25472 | fi | ||
25473 | |||
25474 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
25475 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
25476 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
25477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25478 | else | ||
25479 | |||
25480 | cat >conftest.$ac_ext <<_ACEOF | ||
25481 | /* confdefs.h. */ | ||
25482 | _ACEOF | ||
25483 | cat confdefs.h >>conftest.$ac_ext | ||
25484 | cat >>conftest.$ac_ext <<_ACEOF | ||
25485 | /* end confdefs.h. */ | ||
25486 | |||
25487 | #include <stdio.h> | ||
25488 | |||
25489 | int | ||
25490 | main () | ||
25491 | { | ||
25492 | printf("%s", __func__); | ||
25493 | ; | ||
25494 | return 0; | ||
25495 | } | ||
25496 | _ACEOF | ||
25497 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25498 | if { (ac_try="$ac_link" | ||
25499 | case "(($ac_try" in | ||
25500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25501 | *) ac_try_echo=$ac_try;; | ||
25502 | esac | ||
25503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25504 | (eval "$ac_link") 2>conftest.er1 | ||
25505 | ac_status=$? | ||
25506 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25507 | rm -f conftest.er1 | ||
25508 | cat conftest.err >&5 | ||
25509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25510 | (exit $ac_status); } && { | ||
25511 | test -z "$ac_c_werror_flag" || | ||
25512 | test ! -s conftest.err | ||
25513 | } && test -s conftest$ac_exeext && | ||
25514 | $as_test_x conftest$ac_exeext; then | ||
25515 | ac_cv_cc_implements___func__="yes" | ||
25516 | else | ||
25517 | echo "$as_me: failed program was:" >&5 | ||
25518 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25519 | |||
25520 | ac_cv_cc_implements___func__="no" | ||
25521 | |||
25522 | fi | ||
25523 | |||
25524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25525 | conftest$ac_exeext conftest.$ac_ext | ||
25526 | |||
25527 | fi | ||
25528 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
25529 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
25530 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
25531 | |||
25532 | cat >>confdefs.h <<\_ACEOF | ||
25533 | #define HAVE___func__ 1 | ||
25534 | _ACEOF | ||
25535 | |||
25536 | fi | ||
25537 | |||
25538 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
25539 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
25540 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
25541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25542 | else | ||
25543 | |||
25544 | cat >conftest.$ac_ext <<_ACEOF | ||
25545 | /* confdefs.h. */ | ||
25546 | _ACEOF | ||
25547 | cat confdefs.h >>conftest.$ac_ext | ||
25548 | cat >>conftest.$ac_ext <<_ACEOF | ||
25549 | /* end confdefs.h. */ | ||
25550 | #include <stdarg.h> | ||
25551 | va_list x,y; | ||
25552 | int | ||
25553 | main () | ||
25554 | { | ||
25555 | va_copy(x,y); | ||
25556 | ; | ||
25557 | return 0; | ||
25558 | } | ||
25559 | _ACEOF | ||
25560 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25561 | if { (ac_try="$ac_link" | ||
25562 | case "(($ac_try" in | ||
25563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25564 | *) ac_try_echo=$ac_try;; | ||
25565 | esac | ||
25566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25567 | (eval "$ac_link") 2>conftest.er1 | ||
25568 | ac_status=$? | ||
25569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25570 | rm -f conftest.er1 | ||
25571 | cat conftest.err >&5 | ||
25572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25573 | (exit $ac_status); } && { | ||
25574 | test -z "$ac_c_werror_flag" || | ||
25575 | test ! -s conftest.err | ||
25576 | } && test -s conftest$ac_exeext && | ||
25577 | $as_test_x conftest$ac_exeext; then | ||
25578 | ac_cv_have_va_copy="yes" | ||
25579 | else | ||
25580 | echo "$as_me: failed program was:" >&5 | ||
25581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25582 | |||
25583 | ac_cv_have_va_copy="no" | ||
25584 | |||
25585 | fi | ||
25586 | |||
25587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25588 | conftest$ac_exeext conftest.$ac_ext | ||
25589 | |||
25590 | fi | ||
25591 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
25592 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
25593 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
25594 | |||
25595 | cat >>confdefs.h <<\_ACEOF | ||
25596 | #define HAVE_VA_COPY 1 | ||
25597 | _ACEOF | ||
25598 | |||
25599 | fi | ||
25600 | |||
25601 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
25602 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
25603 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
25604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25605 | else | ||
25606 | |||
25607 | cat >conftest.$ac_ext <<_ACEOF | ||
25608 | /* confdefs.h. */ | ||
25609 | _ACEOF | ||
25610 | cat confdefs.h >>conftest.$ac_ext | ||
25611 | cat >>conftest.$ac_ext <<_ACEOF | ||
25612 | /* end confdefs.h. */ | ||
25613 | #include <stdarg.h> | ||
25614 | va_list x,y; | ||
25615 | int | ||
25616 | main () | ||
25617 | { | ||
25618 | __va_copy(x,y); | ||
25619 | ; | ||
25620 | return 0; | ||
25621 | } | ||
25622 | _ACEOF | ||
25623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25624 | if { (ac_try="$ac_link" | ||
25625 | case "(($ac_try" in | ||
25626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25627 | *) ac_try_echo=$ac_try;; | ||
25628 | esac | ||
25629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25630 | (eval "$ac_link") 2>conftest.er1 | ||
25631 | ac_status=$? | ||
25632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25633 | rm -f conftest.er1 | ||
25634 | cat conftest.err >&5 | ||
25635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25636 | (exit $ac_status); } && { | ||
25637 | test -z "$ac_c_werror_flag" || | ||
25638 | test ! -s conftest.err | ||
25639 | } && test -s conftest$ac_exeext && | ||
25640 | $as_test_x conftest$ac_exeext; then | ||
25641 | ac_cv_have___va_copy="yes" | ||
25642 | else | ||
25643 | echo "$as_me: failed program was:" >&5 | ||
25644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25645 | |||
25646 | ac_cv_have___va_copy="no" | ||
25647 | |||
25648 | fi | ||
25649 | |||
25650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25651 | conftest$ac_exeext conftest.$ac_ext | ||
25652 | |||
25653 | fi | ||
25654 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
25655 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
25656 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
25657 | |||
25658 | cat >>confdefs.h <<\_ACEOF | ||
25659 | #define HAVE___VA_COPY 1 | ||
25660 | _ACEOF | ||
25661 | |||
25662 | fi | ||
25663 | |||
25664 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
25665 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
25666 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
25667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25668 | else | ||
25669 | |||
25670 | cat >conftest.$ac_ext <<_ACEOF | ||
25671 | /* confdefs.h. */ | ||
25672 | _ACEOF | ||
25673 | cat confdefs.h >>conftest.$ac_ext | ||
25674 | cat >>conftest.$ac_ext <<_ACEOF | ||
25675 | /* end confdefs.h. */ | ||
25676 | |||
25677 | #include <getopt.h> | ||
25678 | |||
25679 | int | ||
25680 | main () | ||
25681 | { | ||
25682 | extern int optreset; optreset = 0; | ||
25683 | ; | ||
25684 | return 0; | ||
25685 | } | ||
25686 | _ACEOF | ||
25687 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25688 | if { (ac_try="$ac_link" | ||
25689 | case "(($ac_try" in | ||
25690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25691 | *) ac_try_echo=$ac_try;; | ||
25692 | esac | ||
25693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25694 | (eval "$ac_link") 2>conftest.er1 | ||
25695 | ac_status=$? | ||
25696 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25697 | rm -f conftest.er1 | ||
25698 | cat conftest.err >&5 | ||
25699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25700 | (exit $ac_status); } && { | ||
25701 | test -z "$ac_c_werror_flag" || | ||
25702 | test ! -s conftest.err | ||
25703 | } && test -s conftest$ac_exeext && | ||
25704 | $as_test_x conftest$ac_exeext; then | ||
25705 | ac_cv_have_getopt_optreset="yes" | ||
25706 | else | ||
25707 | echo "$as_me: failed program was:" >&5 | ||
25708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25709 | |||
25710 | ac_cv_have_getopt_optreset="no" | ||
25711 | |||
25712 | fi | ||
25713 | |||
25714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25715 | conftest$ac_exeext conftest.$ac_ext | ||
25716 | |||
25717 | fi | ||
25718 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
25719 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
25720 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
25721 | |||
25722 | cat >>confdefs.h <<\_ACEOF | ||
25723 | #define HAVE_GETOPT_OPTRESET 1 | ||
25724 | _ACEOF | ||
25725 | |||
25726 | fi | ||
25727 | |||
25728 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
25729 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
25730 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
25731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25732 | else | ||
25733 | |||
25734 | cat >conftest.$ac_ext <<_ACEOF | ||
25735 | /* confdefs.h. */ | ||
25736 | _ACEOF | ||
25737 | cat confdefs.h >>conftest.$ac_ext | ||
25738 | cat >>conftest.$ac_ext <<_ACEOF | ||
25739 | /* end confdefs.h. */ | ||
25740 | |||
25741 | int | ||
25742 | main () | ||
25743 | { | ||
25744 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
25745 | ; | ||
25746 | return 0; | ||
25747 | } | ||
25748 | _ACEOF | ||
25749 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25750 | if { (ac_try="$ac_link" | ||
25751 | case "(($ac_try" in | ||
25752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25753 | *) ac_try_echo=$ac_try;; | ||
25754 | esac | ||
25755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25756 | (eval "$ac_link") 2>conftest.er1 | ||
25757 | ac_status=$? | ||
25758 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25759 | rm -f conftest.er1 | ||
25760 | cat conftest.err >&5 | ||
25761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25762 | (exit $ac_status); } && { | ||
25763 | test -z "$ac_c_werror_flag" || | ||
25764 | test ! -s conftest.err | ||
25765 | } && test -s conftest$ac_exeext && | ||
25766 | $as_test_x conftest$ac_exeext; then | ||
25767 | ac_cv_libc_defines_sys_errlist="yes" | ||
25768 | else | ||
25769 | echo "$as_me: failed program was:" >&5 | ||
25770 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25771 | |||
25772 | ac_cv_libc_defines_sys_errlist="no" | ||
25773 | |||
25774 | fi | ||
25775 | |||
25776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25777 | conftest$ac_exeext conftest.$ac_ext | ||
25778 | |||
25779 | fi | ||
25780 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
25781 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
25782 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
25783 | |||
25784 | cat >>confdefs.h <<\_ACEOF | ||
25785 | #define HAVE_SYS_ERRLIST 1 | ||
25786 | _ACEOF | ||
25787 | |||
25788 | fi | ||
25789 | |||
25790 | |||
25791 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
25792 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
25793 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
25794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25795 | else | ||
25796 | |||
25797 | cat >conftest.$ac_ext <<_ACEOF | ||
25798 | /* confdefs.h. */ | ||
25799 | _ACEOF | ||
25800 | cat confdefs.h >>conftest.$ac_ext | ||
25801 | cat >>conftest.$ac_ext <<_ACEOF | ||
25802 | /* end confdefs.h. */ | ||
25803 | |||
25804 | int | ||
25805 | main () | ||
25806 | { | ||
25807 | extern int sys_nerr; printf("%i", sys_nerr); | ||
25808 | ; | ||
25809 | return 0; | ||
25810 | } | ||
25811 | _ACEOF | ||
25812 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25813 | if { (ac_try="$ac_link" | ||
25814 | case "(($ac_try" in | ||
25815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25816 | *) ac_try_echo=$ac_try;; | ||
25817 | esac | ||
25818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25819 | (eval "$ac_link") 2>conftest.er1 | ||
25820 | ac_status=$? | ||
25821 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25822 | rm -f conftest.er1 | ||
25823 | cat conftest.err >&5 | ||
25824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25825 | (exit $ac_status); } && { | ||
25826 | test -z "$ac_c_werror_flag" || | ||
25827 | test ! -s conftest.err | ||
25828 | } && test -s conftest$ac_exeext && | ||
25829 | $as_test_x conftest$ac_exeext; then | ||
25830 | ac_cv_libc_defines_sys_nerr="yes" | ||
25831 | else | ||
25832 | echo "$as_me: failed program was:" >&5 | ||
25833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25834 | |||
25835 | ac_cv_libc_defines_sys_nerr="no" | ||
25836 | |||
25837 | fi | ||
25838 | |||
25839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25840 | conftest$ac_exeext conftest.$ac_ext | ||
25841 | |||
25842 | fi | ||
25843 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
25844 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
25845 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
25846 | |||
25847 | cat >>confdefs.h <<\_ACEOF | ||
25848 | #define HAVE_SYS_NERR 1 | ||
25849 | _ACEOF | ||
25850 | |||
25851 | fi | ||
25852 | |||
25853 | # Check libraries needed by DNS fingerprint support | ||
25854 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
25855 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
25856 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25858 | else | ||
25859 | ac_func_search_save_LIBS=$LIBS | ||
25860 | cat >conftest.$ac_ext <<_ACEOF | ||
25861 | /* confdefs.h. */ | ||
25862 | _ACEOF | ||
25863 | cat confdefs.h >>conftest.$ac_ext | ||
25864 | cat >>conftest.$ac_ext <<_ACEOF | ||
25865 | /* end confdefs.h. */ | ||
25866 | |||
25867 | /* Override any GCC internal prototype to avoid an error. | ||
25868 | Use char because int might match the return type of a GCC | ||
25869 | builtin and then its argument prototype would still apply. */ | ||
25870 | #ifdef __cplusplus | ||
25871 | extern "C" | ||
25872 | #endif | ||
25873 | char getrrsetbyname (); | ||
25874 | int | ||
25875 | main () | ||
25876 | { | ||
25877 | return getrrsetbyname (); | ||
25878 | ; | ||
25879 | return 0; | ||
25880 | } | ||
25881 | _ACEOF | ||
25882 | for ac_lib in '' resolv; do | ||
25883 | if test -z "$ac_lib"; then | ||
25884 | ac_res="none required" | ||
25885 | else | ||
25886 | ac_res=-l$ac_lib | ||
25887 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25888 | fi | ||
25889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25890 | if { (ac_try="$ac_link" | ||
25891 | case "(($ac_try" in | ||
25892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25893 | *) ac_try_echo=$ac_try;; | ||
25894 | esac | ||
25895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25896 | (eval "$ac_link") 2>conftest.er1 | ||
25897 | ac_status=$? | ||
25898 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25899 | rm -f conftest.er1 | ||
25900 | cat conftest.err >&5 | ||
25901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25902 | (exit $ac_status); } && { | ||
25903 | test -z "$ac_c_werror_flag" || | ||
25904 | test ! -s conftest.err | ||
25905 | } && test -s conftest$ac_exeext && | ||
25906 | $as_test_x conftest$ac_exeext; then | ||
25907 | ac_cv_search_getrrsetbyname=$ac_res | ||
25908 | else | ||
25909 | echo "$as_me: failed program was:" >&5 | ||
25910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25911 | |||
25912 | |||
25913 | fi | ||
25914 | |||
25915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25916 | conftest$ac_exeext | ||
25917 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25918 | break | ||
25919 | fi | ||
25920 | done | ||
25921 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25922 | : | ||
25923 | else | ||
25924 | ac_cv_search_getrrsetbyname=no | ||
25925 | fi | ||
25926 | rm conftest.$ac_ext | ||
25927 | LIBS=$ac_func_search_save_LIBS | ||
25928 | fi | ||
25929 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
25930 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
25931 | ac_res=$ac_cv_search_getrrsetbyname | ||
25932 | if test "$ac_res" != no; then | ||
25933 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25934 | |||
25935 | cat >>confdefs.h <<\_ACEOF | ||
25936 | #define HAVE_GETRRSETBYNAME 1 | ||
25937 | _ACEOF | ||
25938 | |||
25939 | else | ||
25940 | |||
25941 | # Needed by our getrrsetbyname() | ||
25942 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
25943 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
25944 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25946 | else | ||
25947 | ac_func_search_save_LIBS=$LIBS | ||
25948 | cat >conftest.$ac_ext <<_ACEOF | ||
25949 | /* confdefs.h. */ | ||
25950 | _ACEOF | ||
25951 | cat confdefs.h >>conftest.$ac_ext | ||
25952 | cat >>conftest.$ac_ext <<_ACEOF | ||
25953 | /* end confdefs.h. */ | ||
25954 | |||
25955 | /* Override any GCC internal prototype to avoid an error. | ||
25956 | Use char because int might match the return type of a GCC | ||
25957 | builtin and then its argument prototype would still apply. */ | ||
25958 | #ifdef __cplusplus | ||
25959 | extern "C" | ||
25960 | #endif | ||
25961 | char res_query (); | ||
25962 | int | ||
25963 | main () | ||
25964 | { | ||
25965 | return res_query (); | ||
25966 | ; | ||
25967 | return 0; | ||
25968 | } | ||
25969 | _ACEOF | ||
25970 | for ac_lib in '' resolv; do | ||
25971 | if test -z "$ac_lib"; then | ||
25972 | ac_res="none required" | ||
25973 | else | ||
25974 | ac_res=-l$ac_lib | ||
25975 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25976 | fi | ||
25977 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25978 | if { (ac_try="$ac_link" | ||
25979 | case "(($ac_try" in | ||
25980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25981 | *) ac_try_echo=$ac_try;; | ||
25982 | esac | ||
25983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25984 | (eval "$ac_link") 2>conftest.er1 | ||
25985 | ac_status=$? | ||
25986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25987 | rm -f conftest.er1 | ||
25988 | cat conftest.err >&5 | ||
25989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25990 | (exit $ac_status); } && { | ||
25991 | test -z "$ac_c_werror_flag" || | ||
25992 | test ! -s conftest.err | ||
25993 | } && test -s conftest$ac_exeext && | ||
25994 | $as_test_x conftest$ac_exeext; then | ||
25995 | ac_cv_search_res_query=$ac_res | ||
25996 | else | ||
25997 | echo "$as_me: failed program was:" >&5 | ||
25998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25999 | |||
26000 | |||
26001 | fi | ||
26002 | |||
26003 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26004 | conftest$ac_exeext | ||
26005 | if test "${ac_cv_search_res_query+set}" = set; then | ||
26006 | break | ||
26007 | fi | ||
26008 | done | ||
26009 | if test "${ac_cv_search_res_query+set}" = set; then | ||
26010 | : | ||
26011 | else | ||
26012 | ac_cv_search_res_query=no | ||
26013 | fi | ||
26014 | rm conftest.$ac_ext | ||
26015 | LIBS=$ac_func_search_save_LIBS | ||
26016 | fi | ||
26017 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
26018 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
26019 | ac_res=$ac_cv_search_res_query | ||
26020 | if test "$ac_res" != no; then | ||
26021 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26022 | |||
26023 | fi | ||
26024 | |||
26025 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
26026 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
26027 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26029 | else | ||
26030 | ac_func_search_save_LIBS=$LIBS | ||
26031 | cat >conftest.$ac_ext <<_ACEOF | ||
26032 | /* confdefs.h. */ | ||
26033 | _ACEOF | ||
26034 | cat confdefs.h >>conftest.$ac_ext | ||
26035 | cat >>conftest.$ac_ext <<_ACEOF | ||
26036 | /* end confdefs.h. */ | ||
26037 | |||
26038 | /* Override any GCC internal prototype to avoid an error. | ||
26039 | Use char because int might match the return type of a GCC | ||
26040 | builtin and then its argument prototype would still apply. */ | ||
26041 | #ifdef __cplusplus | ||
26042 | extern "C" | ||
26043 | #endif | ||
26044 | char dn_expand (); | ||
26045 | int | ||
26046 | main () | ||
26047 | { | ||
26048 | return dn_expand (); | ||
26049 | ; | ||
26050 | return 0; | ||
26051 | } | ||
26052 | _ACEOF | ||
26053 | for ac_lib in '' resolv; do | ||
26054 | if test -z "$ac_lib"; then | ||
26055 | ac_res="none required" | ||
26056 | else | ||
26057 | ac_res=-l$ac_lib | ||
26058 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26059 | fi | ||
26060 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26061 | if { (ac_try="$ac_link" | ||
26062 | case "(($ac_try" in | ||
26063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26064 | *) ac_try_echo=$ac_try;; | ||
26065 | esac | ||
26066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26067 | (eval "$ac_link") 2>conftest.er1 | ||
26068 | ac_status=$? | ||
26069 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26070 | rm -f conftest.er1 | ||
26071 | cat conftest.err >&5 | ||
26072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26073 | (exit $ac_status); } && { | ||
26074 | test -z "$ac_c_werror_flag" || | ||
26075 | test ! -s conftest.err | ||
26076 | } && test -s conftest$ac_exeext && | ||
26077 | $as_test_x conftest$ac_exeext; then | ||
26078 | ac_cv_search_dn_expand=$ac_res | ||
26079 | else | ||
26080 | echo "$as_me: failed program was:" >&5 | ||
26081 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26082 | |||
26083 | |||
26084 | fi | ||
26085 | |||
26086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26087 | conftest$ac_exeext | ||
26088 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26089 | break | ||
26090 | fi | ||
26091 | done | ||
26092 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26093 | : | ||
26094 | else | ||
26095 | ac_cv_search_dn_expand=no | ||
26096 | fi | ||
26097 | rm conftest.$ac_ext | ||
26098 | LIBS=$ac_func_search_save_LIBS | ||
26099 | fi | ||
26100 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
26101 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
26102 | ac_res=$ac_cv_search_dn_expand | ||
26103 | if test "$ac_res" != no; then | ||
26104 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26105 | |||
26106 | fi | ||
26107 | |||
26108 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
26109 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
26110 | cat >conftest.$ac_ext <<_ACEOF | ||
26111 | |||
26112 | #include "confdefs.h" | ||
26113 | #include <sys/types.h> | ||
26114 | #include <netinet/in.h> | ||
26115 | #include <arpa/nameser.h> | ||
26116 | #include <netdb.h> | ||
26117 | #include <resolv.h> | ||
26118 | int main() | ||
26119 | { | ||
26120 | res_query (0, 0, 0, 0, 0); | ||
26121 | return 0; | ||
26122 | } | ||
26123 | |||
26124 | _ACEOF | ||
26125 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26126 | if { (ac_try="$ac_link" | ||
26127 | case "(($ac_try" in | ||
26128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26129 | *) ac_try_echo=$ac_try;; | ||
26130 | esac | ||
26131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26132 | (eval "$ac_link") 2>conftest.er1 | ||
26133 | ac_status=$? | ||
26134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26135 | rm -f conftest.er1 | ||
26136 | cat conftest.err >&5 | ||
26137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26138 | (exit $ac_status); } && { | ||
26139 | test -z "$ac_c_werror_flag" || | ||
26140 | test ! -s conftest.err | ||
26141 | } && test -s conftest$ac_exeext && | ||
26142 | $as_test_x conftest$ac_exeext; then | ||
26143 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26144 | echo "${ECHO_T}yes" >&6; } | ||
26145 | else | ||
26146 | echo "$as_me: failed program was:" >&5 | ||
26147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26148 | |||
26149 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26150 | echo "${ECHO_T}no" >&6; } | ||
26151 | saved_LIBS="$LIBS" | ||
26152 | LIBS="$LIBS -lresolv" | ||
26153 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
26154 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
26155 | cat >conftest.$ac_ext <<_ACEOF | ||
26156 | |||
26157 | #include "confdefs.h" | ||
26158 | #include <sys/types.h> | ||
26159 | #include <netinet/in.h> | ||
26160 | #include <arpa/nameser.h> | ||
26161 | #include <netdb.h> | ||
26162 | #include <resolv.h> | ||
26163 | int main() | ||
26164 | { | ||
26165 | res_query (0, 0, 0, 0, 0); | ||
26166 | return 0; | ||
26167 | } | ||
26168 | |||
26169 | _ACEOF | ||
26170 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26171 | if { (ac_try="$ac_link" | ||
26172 | case "(($ac_try" in | ||
26173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26174 | *) ac_try_echo=$ac_try;; | ||
26175 | esac | ||
26176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26177 | (eval "$ac_link") 2>conftest.er1 | ||
26178 | ac_status=$? | ||
26179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26180 | rm -f conftest.er1 | ||
26181 | cat conftest.err >&5 | ||
26182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26183 | (exit $ac_status); } && { | ||
26184 | test -z "$ac_c_werror_flag" || | ||
26185 | test ! -s conftest.err | ||
26186 | } && test -s conftest$ac_exeext && | ||
26187 | $as_test_x conftest$ac_exeext; then | ||
26188 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26189 | echo "${ECHO_T}yes" >&6; } | ||
26190 | else | ||
26191 | echo "$as_me: failed program was:" >&5 | ||
26192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26193 | |||
26194 | LIBS="$saved_LIBS" | ||
26195 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26196 | echo "${ECHO_T}no" >&6; } | ||
26197 | fi | ||
26198 | |||
26199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26200 | conftest$ac_exeext conftest.$ac_ext | ||
26201 | |||
26202 | fi | ||
26203 | |||
26204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26205 | conftest$ac_exeext conftest.$ac_ext | ||
26206 | |||
26207 | |||
26208 | for ac_func in _getshort _getlong | ||
26209 | do | ||
26210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26211 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26213 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26215 | else | ||
26216 | cat >conftest.$ac_ext <<_ACEOF | ||
26217 | /* confdefs.h. */ | ||
26218 | _ACEOF | ||
26219 | cat confdefs.h >>conftest.$ac_ext | ||
26220 | cat >>conftest.$ac_ext <<_ACEOF | ||
26221 | /* end confdefs.h. */ | ||
26222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26224 | #define $ac_func innocuous_$ac_func | ||
26225 | |||
26226 | /* System header to define __stub macros and hopefully few prototypes, | ||
26227 | which can conflict with char $ac_func (); below. | ||
26228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26229 | <limits.h> exists even on freestanding compilers. */ | ||
26230 | |||
26231 | #ifdef __STDC__ | ||
26232 | # include <limits.h> | ||
26233 | #else | ||
26234 | # include <assert.h> | ||
26235 | #endif | ||
26236 | |||
26237 | #undef $ac_func | ||
26238 | |||
26239 | /* Override any GCC internal prototype to avoid an error. | ||
26240 | Use char because int might match the return type of a GCC | ||
26241 | builtin and then its argument prototype would still apply. */ | ||
26242 | #ifdef __cplusplus | ||
26243 | extern "C" | ||
26244 | #endif | ||
26245 | char $ac_func (); | ||
26246 | /* The GNU C library defines this for functions which it implements | ||
26247 | to always fail with ENOSYS. Some functions are actually named | ||
26248 | something starting with __ and the normal name is an alias. */ | ||
26249 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26250 | choke me | ||
26251 | #endif | ||
26252 | |||
26253 | int | ||
26254 | main () | ||
26255 | { | ||
26256 | return $ac_func (); | ||
26257 | ; | ||
26258 | return 0; | ||
26259 | } | ||
26260 | _ACEOF | ||
26261 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26262 | if { (ac_try="$ac_link" | ||
26263 | case "(($ac_try" in | ||
26264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26265 | *) ac_try_echo=$ac_try;; | ||
26266 | esac | ||
26267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26268 | (eval "$ac_link") 2>conftest.er1 | ||
26269 | ac_status=$? | ||
26270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26271 | rm -f conftest.er1 | ||
26272 | cat conftest.err >&5 | ||
26273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26274 | (exit $ac_status); } && { | ||
26275 | test -z "$ac_c_werror_flag" || | ||
26276 | test ! -s conftest.err | ||
26277 | } && test -s conftest$ac_exeext && | ||
26278 | $as_test_x conftest$ac_exeext; then | ||
26279 | eval "$as_ac_var=yes" | ||
26280 | else | ||
26281 | echo "$as_me: failed program was:" >&5 | ||
26282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26283 | |||
26284 | eval "$as_ac_var=no" | ||
26285 | fi | ||
26286 | |||
26287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26288 | conftest$ac_exeext conftest.$ac_ext | ||
26289 | fi | ||
26290 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26291 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26292 | echo "${ECHO_T}$ac_res" >&6; } | ||
26293 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26294 | cat >>confdefs.h <<_ACEOF | ||
26295 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26296 | _ACEOF | ||
26297 | |||
26298 | fi | ||
26299 | done | ||
26300 | |||
26301 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
26302 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
26303 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
26304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26305 | else | ||
26306 | cat >conftest.$ac_ext <<_ACEOF | ||
26307 | /* confdefs.h. */ | ||
26308 | _ACEOF | ||
26309 | cat confdefs.h >>conftest.$ac_ext | ||
26310 | cat >>conftest.$ac_ext <<_ACEOF | ||
26311 | /* end confdefs.h. */ | ||
26312 | #include <sys/types.h> | ||
26313 | #include <arpa/nameser.h> | ||
26314 | |||
26315 | int | ||
26316 | main () | ||
26317 | { | ||
26318 | #ifndef _getshort | ||
26319 | (void) _getshort; | ||
26320 | #endif | ||
26321 | |||
26322 | ; | ||
26323 | return 0; | ||
26324 | } | ||
26325 | _ACEOF | ||
26326 | rm -f conftest.$ac_objext | ||
26327 | if { (ac_try="$ac_compile" | ||
26328 | case "(($ac_try" in | ||
26329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26330 | *) ac_try_echo=$ac_try;; | ||
26331 | esac | ||
26332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26333 | (eval "$ac_compile") 2>conftest.er1 | ||
26334 | ac_status=$? | ||
26335 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26336 | rm -f conftest.er1 | ||
26337 | cat conftest.err >&5 | ||
26338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26339 | (exit $ac_status); } && { | ||
26340 | test -z "$ac_c_werror_flag" || | ||
26341 | test ! -s conftest.err | ||
26342 | } && test -s conftest.$ac_objext; then | ||
26343 | ac_cv_have_decl__getshort=yes | ||
26344 | else | ||
26345 | echo "$as_me: failed program was:" >&5 | ||
26346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26347 | |||
26348 | ac_cv_have_decl__getshort=no | ||
26349 | fi | ||
26350 | |||
26351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26352 | fi | ||
26353 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
26354 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
26355 | if test $ac_cv_have_decl__getshort = yes; then | ||
26356 | |||
26357 | cat >>confdefs.h <<_ACEOF | ||
26358 | #define HAVE_DECL__GETSHORT 1 | ||
26359 | _ACEOF | ||
26360 | |||
26361 | |||
26362 | else | ||
26363 | cat >>confdefs.h <<_ACEOF | ||
26364 | #define HAVE_DECL__GETSHORT 0 | ||
26365 | _ACEOF | ||
26366 | |||
26367 | |||
26368 | fi | ||
26369 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
26370 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
26371 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
26372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26373 | else | ||
26374 | cat >conftest.$ac_ext <<_ACEOF | ||
26375 | /* confdefs.h. */ | ||
26376 | _ACEOF | ||
26377 | cat confdefs.h >>conftest.$ac_ext | ||
26378 | cat >>conftest.$ac_ext <<_ACEOF | ||
26379 | /* end confdefs.h. */ | ||
26380 | #include <sys/types.h> | ||
26381 | #include <arpa/nameser.h> | ||
26382 | |||
26383 | int | ||
26384 | main () | ||
26385 | { | ||
26386 | #ifndef _getlong | ||
26387 | (void) _getlong; | ||
26388 | #endif | ||
26389 | |||
26390 | ; | ||
26391 | return 0; | ||
26392 | } | ||
26393 | _ACEOF | ||
26394 | rm -f conftest.$ac_objext | ||
26395 | if { (ac_try="$ac_compile" | ||
26396 | case "(($ac_try" in | ||
26397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26398 | *) ac_try_echo=$ac_try;; | ||
26399 | esac | ||
26400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26401 | (eval "$ac_compile") 2>conftest.er1 | ||
26402 | ac_status=$? | ||
26403 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26404 | rm -f conftest.er1 | ||
26405 | cat conftest.err >&5 | ||
26406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26407 | (exit $ac_status); } && { | ||
26408 | test -z "$ac_c_werror_flag" || | ||
26409 | test ! -s conftest.err | ||
26410 | } && test -s conftest.$ac_objext; then | ||
26411 | ac_cv_have_decl__getlong=yes | ||
26412 | else | ||
26413 | echo "$as_me: failed program was:" >&5 | ||
26414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26415 | |||
26416 | ac_cv_have_decl__getlong=no | ||
26417 | fi | ||
26418 | |||
26419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26420 | fi | ||
26421 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
26422 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
26423 | if test $ac_cv_have_decl__getlong = yes; then | ||
26424 | |||
26425 | cat >>confdefs.h <<_ACEOF | ||
26426 | #define HAVE_DECL__GETLONG 1 | ||
26427 | _ACEOF | ||
26428 | |||
26429 | |||
26430 | else | ||
26431 | cat >>confdefs.h <<_ACEOF | ||
26432 | #define HAVE_DECL__GETLONG 0 | ||
26433 | _ACEOF | ||
26434 | |||
26435 | |||
26436 | fi | ||
26437 | |||
26438 | |||
26439 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
26440 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
26441 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
26442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26443 | else | ||
26444 | cat >conftest.$ac_ext <<_ACEOF | ||
26445 | /* confdefs.h. */ | ||
26446 | _ACEOF | ||
26447 | cat confdefs.h >>conftest.$ac_ext | ||
26448 | cat >>conftest.$ac_ext <<_ACEOF | ||
26449 | /* end confdefs.h. */ | ||
26450 | #include <arpa/nameser.h> | ||
26451 | |||
26452 | int | ||
26453 | main () | ||
26454 | { | ||
26455 | static HEADER ac_aggr; | ||
26456 | if (ac_aggr.ad) | ||
26457 | return 0; | ||
26458 | ; | ||
26459 | return 0; | ||
26460 | } | ||
26461 | _ACEOF | ||
26462 | rm -f conftest.$ac_objext | ||
26463 | if { (ac_try="$ac_compile" | ||
26464 | case "(($ac_try" in | ||
26465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26466 | *) ac_try_echo=$ac_try;; | ||
26467 | esac | ||
26468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26469 | (eval "$ac_compile") 2>conftest.er1 | ||
26470 | ac_status=$? | ||
26471 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26472 | rm -f conftest.er1 | ||
26473 | cat conftest.err >&5 | ||
26474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26475 | (exit $ac_status); } && { | ||
26476 | test -z "$ac_c_werror_flag" || | ||
26477 | test ! -s conftest.err | ||
26478 | } && test -s conftest.$ac_objext; then | ||
26479 | ac_cv_member_HEADER_ad=yes | ||
26480 | else | ||
26481 | echo "$as_me: failed program was:" >&5 | ||
26482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26483 | |||
26484 | cat >conftest.$ac_ext <<_ACEOF | ||
26485 | /* confdefs.h. */ | ||
26486 | _ACEOF | ||
26487 | cat confdefs.h >>conftest.$ac_ext | ||
26488 | cat >>conftest.$ac_ext <<_ACEOF | ||
26489 | /* end confdefs.h. */ | ||
26490 | #include <arpa/nameser.h> | ||
26491 | |||
26492 | int | ||
26493 | main () | ||
26494 | { | ||
26495 | static HEADER ac_aggr; | ||
26496 | if (sizeof ac_aggr.ad) | ||
26497 | return 0; | ||
26498 | ; | ||
26499 | return 0; | ||
26500 | } | ||
26501 | _ACEOF | ||
26502 | rm -f conftest.$ac_objext | ||
26503 | if { (ac_try="$ac_compile" | ||
26504 | case "(($ac_try" in | ||
26505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26506 | *) ac_try_echo=$ac_try;; | ||
26507 | esac | ||
26508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26509 | (eval "$ac_compile") 2>conftest.er1 | ||
26510 | ac_status=$? | ||
26511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26512 | rm -f conftest.er1 | ||
26513 | cat conftest.err >&5 | ||
26514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26515 | (exit $ac_status); } && { | ||
26516 | test -z "$ac_c_werror_flag" || | ||
26517 | test ! -s conftest.err | ||
26518 | } && test -s conftest.$ac_objext; then | ||
26519 | ac_cv_member_HEADER_ad=yes | ||
26520 | else | ||
26521 | echo "$as_me: failed program was:" >&5 | ||
26522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26523 | |||
26524 | ac_cv_member_HEADER_ad=no | ||
26525 | fi | ||
26526 | |||
26527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26528 | fi | ||
26529 | |||
26530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26531 | fi | ||
26532 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
26533 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
26534 | if test $ac_cv_member_HEADER_ad = yes; then | ||
26535 | |||
26536 | cat >>confdefs.h <<\_ACEOF | ||
26537 | #define HAVE_HEADER_AD 1 | ||
26538 | _ACEOF | ||
26539 | |||
26540 | fi | ||
26541 | |||
26542 | |||
26543 | fi | ||
26544 | |||
26545 | |||
26546 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
26547 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
26548 | cat >conftest.$ac_ext <<_ACEOF | ||
26549 | |||
26550 | #include <stdio.h> | ||
26551 | #if HAVE_SYS_TYPES_H | ||
26552 | # include <sys/types.h> | ||
26553 | #endif | ||
26554 | #include <netinet/in.h> | ||
26555 | #include <arpa/nameser.h> | ||
26556 | #include <resolv.h> | ||
26557 | extern struct __res_state _res; | ||
26558 | int main() { return 0; } | ||
26559 | |||
26560 | _ACEOF | ||
26561 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26562 | if { (ac_try="$ac_link" | ||
26563 | case "(($ac_try" in | ||
26564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26565 | *) ac_try_echo=$ac_try;; | ||
26566 | esac | ||
26567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26568 | (eval "$ac_link") 2>conftest.er1 | ||
26569 | ac_status=$? | ||
26570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26571 | rm -f conftest.er1 | ||
26572 | cat conftest.err >&5 | ||
26573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26574 | (exit $ac_status); } && { | ||
26575 | test -z "$ac_c_werror_flag" || | ||
26576 | test ! -s conftest.err | ||
26577 | } && test -s conftest$ac_exeext && | ||
26578 | $as_test_x conftest$ac_exeext; then | ||
26579 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26580 | echo "${ECHO_T}yes" >&6; } | ||
26581 | |||
26582 | cat >>confdefs.h <<\_ACEOF | ||
26583 | #define HAVE__RES_EXTERN 1 | ||
26584 | _ACEOF | ||
26585 | |||
26586 | |||
26587 | else | ||
26588 | echo "$as_me: failed program was:" >&5 | ||
26589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26590 | |||
26591 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26592 | echo "${ECHO_T}no" >&6; } | ||
26593 | |||
26594 | fi | ||
26595 | |||
26596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26597 | conftest$ac_exeext conftest.$ac_ext | ||
26598 | |||
26599 | # Check whether user wants SELinux support | ||
26600 | SELINUX_MSG="no" | ||
26601 | LIBSELINUX="" | ||
26602 | |||
26603 | # Check whether --with-selinux was given. | ||
26604 | if test "${with_selinux+set}" = set; then | ||
26605 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
26606 | save_LIBS="$LIBS" | ||
26607 | |||
26608 | cat >>confdefs.h <<\_ACEOF | ||
26609 | #define WITH_SELINUX 1 | ||
26610 | _ACEOF | ||
26611 | |||
26612 | SELINUX_MSG="yes" | ||
26613 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26614 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26615 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26616 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26618 | fi | ||
26619 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26620 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26621 | else | ||
26622 | # Is the header compilable? | ||
26623 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
26624 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
26625 | cat >conftest.$ac_ext <<_ACEOF | ||
26626 | /* confdefs.h. */ | ||
26627 | _ACEOF | ||
26628 | cat confdefs.h >>conftest.$ac_ext | ||
26629 | cat >>conftest.$ac_ext <<_ACEOF | ||
26630 | /* end confdefs.h. */ | ||
26631 | $ac_includes_default | ||
26632 | #include <selinux/selinux.h> | ||
26633 | _ACEOF | ||
26634 | rm -f conftest.$ac_objext | ||
26635 | if { (ac_try="$ac_compile" | ||
26636 | case "(($ac_try" in | ||
26637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26638 | *) ac_try_echo=$ac_try;; | ||
26639 | esac | ||
26640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26641 | (eval "$ac_compile") 2>conftest.er1 | ||
26642 | ac_status=$? | ||
26643 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26644 | rm -f conftest.er1 | ||
26645 | cat conftest.err >&5 | ||
26646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26647 | (exit $ac_status); } && { | ||
26648 | test -z "$ac_c_werror_flag" || | ||
26649 | test ! -s conftest.err | ||
26650 | } && test -s conftest.$ac_objext; then | ||
26651 | ac_header_compiler=yes | ||
26652 | else | ||
26653 | echo "$as_me: failed program was:" >&5 | ||
26654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26655 | |||
26656 | ac_header_compiler=no | ||
26657 | fi | ||
26658 | |||
26659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26661 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26662 | |||
26663 | # Is the header present? | ||
26664 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
26665 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
26666 | cat >conftest.$ac_ext <<_ACEOF | ||
26667 | /* confdefs.h. */ | ||
26668 | _ACEOF | ||
26669 | cat confdefs.h >>conftest.$ac_ext | ||
26670 | cat >>conftest.$ac_ext <<_ACEOF | ||
26671 | /* end confdefs.h. */ | ||
26672 | #include <selinux/selinux.h> | ||
26673 | _ACEOF | ||
26674 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26675 | case "(($ac_try" in | ||
26676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26677 | *) ac_try_echo=$ac_try;; | ||
26678 | esac | ||
26679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26681 | ac_status=$? | ||
26682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26683 | rm -f conftest.er1 | ||
26684 | cat conftest.err >&5 | ||
26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26686 | (exit $ac_status); } >/dev/null && { | ||
26687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26688 | test ! -s conftest.err | ||
26689 | }; then | ||
26690 | ac_header_preproc=yes | ||
26691 | else | ||
26692 | echo "$as_me: failed program was:" >&5 | ||
26693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26694 | |||
26695 | ac_header_preproc=no | ||
26696 | fi | ||
26697 | |||
26698 | rm -f conftest.err conftest.$ac_ext | ||
26699 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26700 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26701 | |||
26702 | # So? What about this header? | ||
26703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26704 | yes:no: ) | ||
26705 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26706 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26707 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
26708 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
26709 | ac_header_preproc=yes | ||
26710 | ;; | ||
26711 | no:yes:* ) | ||
26712 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
26713 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
26714 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
26715 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
26716 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
26717 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
26718 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
26719 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26720 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
26721 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
26722 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
26723 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
26724 | ( cat <<\_ASBOX | ||
26725 | ## ------------------------------------------- ## | ||
26726 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26727 | ## ------------------------------------------- ## | ||
26728 | _ASBOX | ||
26729 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26730 | ;; | ||
26731 | esac | ||
26732 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26733 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26734 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26736 | else | ||
26737 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
26738 | fi | ||
26739 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26740 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26741 | |||
26742 | fi | ||
26743 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
26744 | : | ||
26745 | else | ||
26746 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
26747 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
26748 | { (exit 1); exit 1; }; } | ||
26749 | fi | ||
26750 | |||
26751 | |||
26752 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
26753 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
26754 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
26755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26756 | else | ||
26757 | ac_check_lib_save_LIBS=$LIBS | ||
26758 | LIBS="-lselinux $LIBS" | ||
26759 | cat >conftest.$ac_ext <<_ACEOF | ||
26760 | /* confdefs.h. */ | ||
26761 | _ACEOF | ||
26762 | cat confdefs.h >>conftest.$ac_ext | ||
26763 | cat >>conftest.$ac_ext <<_ACEOF | ||
26764 | /* end confdefs.h. */ | ||
26765 | |||
26766 | /* Override any GCC internal prototype to avoid an error. | ||
26767 | Use char because int might match the return type of a GCC | ||
26768 | builtin and then its argument prototype would still apply. */ | ||
26769 | #ifdef __cplusplus | ||
26770 | extern "C" | ||
26771 | #endif | ||
26772 | char setexeccon (); | ||
26773 | int | ||
26774 | main () | ||
26775 | { | ||
26776 | return setexeccon (); | ||
26777 | ; | ||
26778 | return 0; | ||
26779 | } | ||
26780 | _ACEOF | ||
26781 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26782 | if { (ac_try="$ac_link" | ||
26783 | case "(($ac_try" in | ||
26784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26785 | *) ac_try_echo=$ac_try;; | ||
26786 | esac | ||
26787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26788 | (eval "$ac_link") 2>conftest.er1 | ||
26789 | ac_status=$? | ||
26790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26791 | rm -f conftest.er1 | ||
26792 | cat conftest.err >&5 | ||
26793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26794 | (exit $ac_status); } && { | ||
26795 | test -z "$ac_c_werror_flag" || | ||
26796 | test ! -s conftest.err | ||
26797 | } && test -s conftest$ac_exeext && | ||
26798 | $as_test_x conftest$ac_exeext; then | ||
26799 | ac_cv_lib_selinux_setexeccon=yes | ||
26800 | else | ||
26801 | echo "$as_me: failed program was:" >&5 | ||
26802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26803 | |||
26804 | ac_cv_lib_selinux_setexeccon=no | ||
26805 | fi | ||
26806 | |||
26807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26808 | conftest$ac_exeext conftest.$ac_ext | ||
26809 | LIBS=$ac_check_lib_save_LIBS | ||
26810 | fi | ||
26811 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
26812 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
26813 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
26814 | LIBSELINUX="-lselinux" | ||
26815 | LIBS="$LIBS -lselinux" | ||
26816 | |||
26817 | else | ||
26818 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
26819 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
26820 | { (exit 1); exit 1; }; } | ||
26821 | fi | ||
26822 | |||
26823 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
26824 | |||
26825 | |||
26826 | for ac_func in getseuserbyname get_default_context_with_level | ||
26827 | do | ||
26828 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26829 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26830 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26831 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26833 | else | ||
26834 | cat >conftest.$ac_ext <<_ACEOF | ||
26835 | /* confdefs.h. */ | ||
26836 | _ACEOF | ||
26837 | cat confdefs.h >>conftest.$ac_ext | ||
26838 | cat >>conftest.$ac_ext <<_ACEOF | ||
26839 | /* end confdefs.h. */ | ||
26840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26842 | #define $ac_func innocuous_$ac_func | ||
26843 | |||
26844 | /* System header to define __stub macros and hopefully few prototypes, | ||
26845 | which can conflict with char $ac_func (); below. | ||
26846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26847 | <limits.h> exists even on freestanding compilers. */ | ||
26848 | |||
26849 | #ifdef __STDC__ | ||
26850 | # include <limits.h> | ||
26851 | #else | ||
26852 | # include <assert.h> | ||
26853 | #endif | ||
26854 | |||
26855 | #undef $ac_func | ||
26856 | |||
26857 | /* Override any GCC internal prototype to avoid an error. | ||
26858 | Use char because int might match the return type of a GCC | ||
26859 | builtin and then its argument prototype would still apply. */ | ||
26860 | #ifdef __cplusplus | ||
26861 | extern "C" | ||
26862 | #endif | ||
26863 | char $ac_func (); | ||
26864 | /* The GNU C library defines this for functions which it implements | ||
26865 | to always fail with ENOSYS. Some functions are actually named | ||
26866 | something starting with __ and the normal name is an alias. */ | ||
26867 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26868 | choke me | ||
26869 | #endif | ||
26870 | |||
26871 | int | ||
26872 | main () | ||
26873 | { | ||
26874 | return $ac_func (); | ||
26875 | ; | ||
26876 | return 0; | ||
26877 | } | ||
26878 | _ACEOF | ||
26879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26880 | if { (ac_try="$ac_link" | ||
26881 | case "(($ac_try" in | ||
26882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26883 | *) ac_try_echo=$ac_try;; | ||
26884 | esac | ||
26885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26886 | (eval "$ac_link") 2>conftest.er1 | ||
26887 | ac_status=$? | ||
26888 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26889 | rm -f conftest.er1 | ||
26890 | cat conftest.err >&5 | ||
26891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26892 | (exit $ac_status); } && { | ||
26893 | test -z "$ac_c_werror_flag" || | ||
26894 | test ! -s conftest.err | ||
26895 | } && test -s conftest$ac_exeext && | ||
26896 | $as_test_x conftest$ac_exeext; then | ||
26897 | eval "$as_ac_var=yes" | ||
26898 | else | ||
26899 | echo "$as_me: failed program was:" >&5 | ||
26900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26901 | |||
26902 | eval "$as_ac_var=no" | ||
26903 | fi | ||
26904 | |||
26905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26906 | conftest$ac_exeext conftest.$ac_ext | ||
26907 | fi | ||
26908 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26909 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26910 | echo "${ECHO_T}$ac_res" >&6; } | ||
26911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26912 | cat >>confdefs.h <<_ACEOF | ||
26913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26914 | _ACEOF | ||
26915 | |||
26916 | fi | ||
26917 | done | ||
26918 | |||
26919 | LIBS="$save_LIBS" | ||
26920 | fi | ||
26921 | |||
26922 | fi | ||
26923 | |||
26924 | |||
26925 | # Check whether user wants Kerberos 5 support | ||
26926 | KRB5_MSG="no" | ||
26927 | |||
26928 | # Check whether --with-kerberos5 was given. | ||
26929 | if test "${with_kerberos5+set}" = set; then | ||
26930 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
26931 | if test "x$withval" = "xyes" ; then | ||
26932 | KRB5ROOT="/usr/local" | ||
26933 | else | ||
26934 | KRB5ROOT=${withval} | ||
26935 | fi | ||
26936 | |||
26937 | |||
26938 | cat >>confdefs.h <<\_ACEOF | ||
26939 | #define KRB5 1 | ||
26940 | _ACEOF | ||
26941 | |||
26942 | KRB5_MSG="yes" | ||
26943 | |||
26944 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
26945 | set dummy krb5-config; ac_word=$2 | ||
26946 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
26947 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
26948 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
26949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26950 | else | ||
26951 | case $KRB5CONF in | ||
26952 | [\\/]* | ?:[\\/]*) | ||
26953 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
26954 | ;; | ||
26955 | *) | ||
26956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
26957 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
26958 | for as_dir in $as_dummy | ||
26959 | do | ||
26960 | IFS=$as_save_IFS | ||
26961 | test -z "$as_dir" && as_dir=. | ||
26962 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
26963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
26964 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
26965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
26966 | break 2 | ||
26967 | fi | ||
26968 | done | ||
26969 | done | ||
26970 | IFS=$as_save_IFS | ||
26971 | |||
26972 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
26973 | ;; | ||
26974 | esac | ||
26975 | fi | ||
26976 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
26977 | if test -n "$KRB5CONF"; then | ||
26978 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
26979 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
26980 | else | ||
26981 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26982 | echo "${ECHO_T}no" >&6; } | ||
26983 | fi | ||
26984 | |||
26985 | |||
26986 | if test -x $KRB5CONF ; then | ||
26987 | |||
26988 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
26989 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
26990 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
26991 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26992 | echo "${ECHO_T}yes" >&6; } | ||
26993 | |||
26994 | cat >>confdefs.h <<\_ACEOF | ||
26995 | #define GSSAPI 1 | ||
26996 | _ACEOF | ||
26997 | |||
26998 | k5confopts=gssapi | ||
26999 | else | ||
27000 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27001 | echo "${ECHO_T}no" >&6; } | ||
27002 | k5confopts="" | ||
27003 | fi | ||
27004 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
27005 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
27006 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
27007 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
27008 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
27009 | cat >conftest.$ac_ext <<_ACEOF | ||
27010 | /* confdefs.h. */ | ||
27011 | _ACEOF | ||
27012 | cat confdefs.h >>conftest.$ac_ext | ||
27013 | cat >>conftest.$ac_ext <<_ACEOF | ||
27014 | /* end confdefs.h. */ | ||
27015 | #include <krb5.h> | ||
27016 | int | ||
27017 | main () | ||
27018 | { | ||
27019 | char *tmp = heimdal_version; | ||
27020 | ; | ||
27021 | return 0; | ||
27022 | } | ||
27023 | _ACEOF | ||
27024 | rm -f conftest.$ac_objext | ||
27025 | if { (ac_try="$ac_compile" | ||
27026 | case "(($ac_try" in | ||
27027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27028 | *) ac_try_echo=$ac_try;; | ||
27029 | esac | ||
27030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27031 | (eval "$ac_compile") 2>conftest.er1 | ||
27032 | ac_status=$? | ||
27033 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27034 | rm -f conftest.er1 | ||
27035 | cat conftest.err >&5 | ||
27036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27037 | (exit $ac_status); } && { | ||
27038 | test -z "$ac_c_werror_flag" || | ||
27039 | test ! -s conftest.err | ||
27040 | } && test -s conftest.$ac_objext; then | ||
27041 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27042 | echo "${ECHO_T}yes" >&6; } | ||
27043 | |||
27044 | cat >>confdefs.h <<\_ACEOF | ||
27045 | #define HEIMDAL 1 | ||
27046 | _ACEOF | ||
27047 | |||
27048 | else | ||
27049 | echo "$as_me: failed program was:" >&5 | ||
27050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27051 | |||
27052 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27053 | echo "${ECHO_T}no" >&6; } | ||
27054 | |||
27055 | fi | ||
27056 | |||
27057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27058 | else | ||
27059 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
27060 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
27061 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
27062 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
27063 | cat >conftest.$ac_ext <<_ACEOF | ||
27064 | /* confdefs.h. */ | ||
27065 | _ACEOF | ||
27066 | cat confdefs.h >>conftest.$ac_ext | ||
27067 | cat >>conftest.$ac_ext <<_ACEOF | ||
27068 | /* end confdefs.h. */ | ||
27069 | #include <krb5.h> | ||
27070 | int | ||
27071 | main () | ||
27072 | { | ||
27073 | char *tmp = heimdal_version; | ||
27074 | ; | ||
27075 | return 0; | ||
27076 | } | ||
27077 | _ACEOF | ||
27078 | rm -f conftest.$ac_objext | ||
27079 | if { (ac_try="$ac_compile" | ||
27080 | case "(($ac_try" in | ||
27081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27082 | *) ac_try_echo=$ac_try;; | ||
27083 | esac | ||
27084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27085 | (eval "$ac_compile") 2>conftest.er1 | ||
27086 | ac_status=$? | ||
27087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27088 | rm -f conftest.er1 | ||
27089 | cat conftest.err >&5 | ||
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27091 | (exit $ac_status); } && { | ||
27092 | test -z "$ac_c_werror_flag" || | ||
27093 | test ! -s conftest.err | ||
27094 | } && test -s conftest.$ac_objext; then | ||
27095 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27096 | echo "${ECHO_T}yes" >&6; } | ||
27097 | cat >>confdefs.h <<\_ACEOF | ||
27098 | #define HEIMDAL 1 | ||
27099 | _ACEOF | ||
27100 | |||
27101 | K5LIBS="-lkrb5 -ldes" | ||
27102 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
27103 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
27104 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
27105 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
27106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27107 | else | ||
27108 | ac_check_lib_save_LIBS=$LIBS | ||
27109 | LIBS="-lroken $LIBS" | ||
27110 | cat >conftest.$ac_ext <<_ACEOF | ||
27111 | /* confdefs.h. */ | ||
27112 | _ACEOF | ||
27113 | cat confdefs.h >>conftest.$ac_ext | ||
27114 | cat >>conftest.$ac_ext <<_ACEOF | ||
27115 | /* end confdefs.h. */ | ||
27116 | |||
27117 | /* Override any GCC internal prototype to avoid an error. | ||
27118 | Use char because int might match the return type of a GCC | ||
27119 | builtin and then its argument prototype would still apply. */ | ||
27120 | #ifdef __cplusplus | ||
27121 | extern "C" | ||
27122 | #endif | ||
27123 | char net_write (); | ||
27124 | int | ||
27125 | main () | ||
27126 | { | ||
27127 | return net_write (); | ||
27128 | ; | ||
27129 | return 0; | ||
27130 | } | ||
27131 | _ACEOF | ||
27132 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27133 | if { (ac_try="$ac_link" | ||
27134 | case "(($ac_try" in | ||
27135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27136 | *) ac_try_echo=$ac_try;; | ||
27137 | esac | ||
27138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27139 | (eval "$ac_link") 2>conftest.er1 | ||
27140 | ac_status=$? | ||
27141 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27142 | rm -f conftest.er1 | ||
27143 | cat conftest.err >&5 | ||
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27145 | (exit $ac_status); } && { | ||
27146 | test -z "$ac_c_werror_flag" || | ||
27147 | test ! -s conftest.err | ||
27148 | } && test -s conftest$ac_exeext && | ||
27149 | $as_test_x conftest$ac_exeext; then | ||
27150 | ac_cv_lib_roken_net_write=yes | ||
27151 | else | ||
27152 | echo "$as_me: failed program was:" >&5 | ||
27153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27154 | |||
27155 | ac_cv_lib_roken_net_write=no | ||
27156 | fi | ||
27157 | |||
27158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27159 | conftest$ac_exeext conftest.$ac_ext | ||
27160 | LIBS=$ac_check_lib_save_LIBS | ||
27161 | fi | ||
27162 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
27163 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
27164 | if test $ac_cv_lib_roken_net_write = yes; then | ||
27165 | K5LIBS="$K5LIBS -lroken" | ||
27166 | fi | ||
27167 | |||
27168 | |||
27169 | else | ||
27170 | echo "$as_me: failed program was:" >&5 | ||
27171 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27172 | |||
27173 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27174 | echo "${ECHO_T}no" >&6; } | ||
27175 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
27176 | |||
27177 | |||
27178 | fi | ||
27179 | |||
27180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27181 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
27182 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
27183 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27185 | else | ||
27186 | ac_func_search_save_LIBS=$LIBS | ||
27187 | cat >conftest.$ac_ext <<_ACEOF | ||
27188 | /* confdefs.h. */ | ||
27189 | _ACEOF | ||
27190 | cat confdefs.h >>conftest.$ac_ext | ||
27191 | cat >>conftest.$ac_ext <<_ACEOF | ||
27192 | /* end confdefs.h. */ | ||
27193 | |||
27194 | /* Override any GCC internal prototype to avoid an error. | ||
27195 | Use char because int might match the return type of a GCC | ||
27196 | builtin and then its argument prototype would still apply. */ | ||
27197 | #ifdef __cplusplus | ||
27198 | extern "C" | ||
27199 | #endif | ||
27200 | char dn_expand (); | ||
27201 | int | ||
27202 | main () | ||
27203 | { | ||
27204 | return dn_expand (); | ||
27205 | ; | ||
27206 | return 0; | ||
27207 | } | ||
27208 | _ACEOF | ||
27209 | for ac_lib in '' resolv; do | ||
27210 | if test -z "$ac_lib"; then | ||
27211 | ac_res="none required" | ||
27212 | else | ||
27213 | ac_res=-l$ac_lib | ||
27214 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27215 | fi | ||
27216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27217 | if { (ac_try="$ac_link" | ||
27218 | case "(($ac_try" in | ||
27219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27220 | *) ac_try_echo=$ac_try;; | ||
27221 | esac | ||
27222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27223 | (eval "$ac_link") 2>conftest.er1 | ||
27224 | ac_status=$? | ||
27225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27226 | rm -f conftest.er1 | ||
27227 | cat conftest.err >&5 | ||
27228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27229 | (exit $ac_status); } && { | ||
27230 | test -z "$ac_c_werror_flag" || | ||
27231 | test ! -s conftest.err | ||
27232 | } && test -s conftest$ac_exeext && | ||
27233 | $as_test_x conftest$ac_exeext; then | ||
27234 | ac_cv_search_dn_expand=$ac_res | ||
27235 | else | ||
27236 | echo "$as_me: failed program was:" >&5 | ||
27237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27238 | |||
27239 | |||
27240 | fi | ||
27241 | |||
27242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27243 | conftest$ac_exeext | ||
27244 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27245 | break | ||
27246 | fi | ||
27247 | done | ||
27248 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27249 | : | ||
27250 | else | ||
27251 | ac_cv_search_dn_expand=no | ||
27252 | fi | ||
27253 | rm conftest.$ac_ext | ||
27254 | LIBS=$ac_func_search_save_LIBS | ||
27255 | fi | ||
27256 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
27257 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
27258 | ac_res=$ac_cv_search_dn_expand | ||
27259 | if test "$ac_res" != no; then | ||
27260 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27261 | |||
27262 | fi | ||
27263 | |||
27264 | |||
27265 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
27266 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
27267 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
27268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27269 | else | ||
27270 | ac_check_lib_save_LIBS=$LIBS | ||
27271 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
27272 | cat >conftest.$ac_ext <<_ACEOF | ||
27273 | /* confdefs.h. */ | ||
27274 | _ACEOF | ||
27275 | cat confdefs.h >>conftest.$ac_ext | ||
27276 | cat >>conftest.$ac_ext <<_ACEOF | ||
27277 | /* end confdefs.h. */ | ||
27278 | |||
27279 | /* Override any GCC internal prototype to avoid an error. | ||
27280 | Use char because int might match the return type of a GCC | ||
27281 | builtin and then its argument prototype would still apply. */ | ||
27282 | #ifdef __cplusplus | ||
27283 | extern "C" | ||
27284 | #endif | ||
27285 | char gss_init_sec_context (); | ||
27286 | int | ||
27287 | main () | ||
27288 | { | ||
27289 | return gss_init_sec_context (); | ||
27290 | ; | ||
27291 | return 0; | ||
27292 | } | ||
27293 | _ACEOF | ||
27294 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27295 | if { (ac_try="$ac_link" | ||
27296 | case "(($ac_try" in | ||
27297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27298 | *) ac_try_echo=$ac_try;; | ||
27299 | esac | ||
27300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27301 | (eval "$ac_link") 2>conftest.er1 | ||
27302 | ac_status=$? | ||
27303 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27304 | rm -f conftest.er1 | ||
27305 | cat conftest.err >&5 | ||
27306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27307 | (exit $ac_status); } && { | ||
27308 | test -z "$ac_c_werror_flag" || | ||
27309 | test ! -s conftest.err | ||
27310 | } && test -s conftest$ac_exeext && | ||
27311 | $as_test_x conftest$ac_exeext; then | ||
27312 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
27313 | else | ||
27314 | echo "$as_me: failed program was:" >&5 | ||
27315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27316 | |||
27317 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
27318 | fi | ||
27319 | |||
27320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27321 | conftest$ac_exeext conftest.$ac_ext | ||
27322 | LIBS=$ac_check_lib_save_LIBS | ||
27323 | fi | ||
27324 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
27325 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
27326 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
27327 | cat >>confdefs.h <<\_ACEOF | ||
27328 | #define GSSAPI 1 | ||
27329 | _ACEOF | ||
27330 | |||
27331 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
27332 | else | ||
27333 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
27334 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
27335 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
27336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27337 | else | ||
27338 | ac_check_lib_save_LIBS=$LIBS | ||
27339 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
27340 | cat >conftest.$ac_ext <<_ACEOF | ||
27341 | /* confdefs.h. */ | ||
27342 | _ACEOF | ||
27343 | cat confdefs.h >>conftest.$ac_ext | ||
27344 | cat >>conftest.$ac_ext <<_ACEOF | ||
27345 | /* end confdefs.h. */ | ||
27346 | |||
27347 | /* Override any GCC internal prototype to avoid an error. | ||
27348 | Use char because int might match the return type of a GCC | ||
27349 | builtin and then its argument prototype would still apply. */ | ||
27350 | #ifdef __cplusplus | ||
27351 | extern "C" | ||
27352 | #endif | ||
27353 | char gss_init_sec_context (); | ||
27354 | int | ||
27355 | main () | ||
27356 | { | ||
27357 | return gss_init_sec_context (); | ||
27358 | ; | ||
27359 | return 0; | ||
27360 | } | ||
27361 | _ACEOF | ||
27362 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27363 | if { (ac_try="$ac_link" | ||
27364 | case "(($ac_try" in | ||
27365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27366 | *) ac_try_echo=$ac_try;; | ||
27367 | esac | ||
27368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27369 | (eval "$ac_link") 2>conftest.er1 | ||
27370 | ac_status=$? | ||
27371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27372 | rm -f conftest.er1 | ||
27373 | cat conftest.err >&5 | ||
27374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27375 | (exit $ac_status); } && { | ||
27376 | test -z "$ac_c_werror_flag" || | ||
27377 | test ! -s conftest.err | ||
27378 | } && test -s conftest$ac_exeext && | ||
27379 | $as_test_x conftest$ac_exeext; then | ||
27380 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
27381 | else | ||
27382 | echo "$as_me: failed program was:" >&5 | ||
27383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27384 | |||
27385 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
27386 | fi | ||
27387 | |||
27388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27389 | conftest$ac_exeext conftest.$ac_ext | ||
27390 | LIBS=$ac_check_lib_save_LIBS | ||
27391 | fi | ||
27392 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
27393 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
27394 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
27395 | cat >>confdefs.h <<\_ACEOF | ||
27396 | #define GSSAPI 1 | ||
27397 | _ACEOF | ||
27398 | |||
27399 | K5LIBS="-lgssapi $K5LIBS" | ||
27400 | else | ||
27401 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
27402 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
27403 | fi | ||
27404 | |||
27405 | |||
27406 | fi | ||
27407 | |||
27408 | |||
27409 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27410 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27411 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27412 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27414 | fi | ||
27415 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27416 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27417 | else | ||
27418 | # Is the header compilable? | ||
27419 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
27420 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
27421 | cat >conftest.$ac_ext <<_ACEOF | ||
27422 | /* confdefs.h. */ | ||
27423 | _ACEOF | ||
27424 | cat confdefs.h >>conftest.$ac_ext | ||
27425 | cat >>conftest.$ac_ext <<_ACEOF | ||
27426 | /* end confdefs.h. */ | ||
27427 | $ac_includes_default | ||
27428 | #include <gssapi.h> | ||
27429 | _ACEOF | ||
27430 | rm -f conftest.$ac_objext | ||
27431 | if { (ac_try="$ac_compile" | ||
27432 | case "(($ac_try" in | ||
27433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27434 | *) ac_try_echo=$ac_try;; | ||
27435 | esac | ||
27436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27437 | (eval "$ac_compile") 2>conftest.er1 | ||
27438 | ac_status=$? | ||
27439 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27440 | rm -f conftest.er1 | ||
27441 | cat conftest.err >&5 | ||
27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27443 | (exit $ac_status); } && { | ||
27444 | test -z "$ac_c_werror_flag" || | ||
27445 | test ! -s conftest.err | ||
27446 | } && test -s conftest.$ac_objext; then | ||
27447 | ac_header_compiler=yes | ||
27448 | else | ||
27449 | echo "$as_me: failed program was:" >&5 | ||
27450 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27451 | |||
27452 | ac_header_compiler=no | ||
27453 | fi | ||
27454 | |||
27455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27456 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27457 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27458 | |||
27459 | # Is the header present? | ||
27460 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
27461 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
27462 | cat >conftest.$ac_ext <<_ACEOF | ||
27463 | /* confdefs.h. */ | ||
27464 | _ACEOF | ||
27465 | cat confdefs.h >>conftest.$ac_ext | ||
27466 | cat >>conftest.$ac_ext <<_ACEOF | ||
27467 | /* end confdefs.h. */ | ||
27468 | #include <gssapi.h> | ||
27469 | _ACEOF | ||
27470 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27471 | case "(($ac_try" in | ||
27472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27473 | *) ac_try_echo=$ac_try;; | ||
27474 | esac | ||
27475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27476 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27477 | ac_status=$? | ||
27478 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27479 | rm -f conftest.er1 | ||
27480 | cat conftest.err >&5 | ||
27481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27482 | (exit $ac_status); } >/dev/null && { | ||
27483 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27484 | test ! -s conftest.err | ||
27485 | }; then | ||
27486 | ac_header_preproc=yes | ||
27487 | else | ||
27488 | echo "$as_me: failed program was:" >&5 | ||
27489 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27490 | |||
27491 | ac_header_preproc=no | ||
27492 | fi | ||
27493 | |||
27494 | rm -f conftest.err conftest.$ac_ext | ||
27495 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27496 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27497 | |||
27498 | # So? What about this header? | ||
27499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27500 | yes:no: ) | ||
27501 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27502 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27503 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
27504 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
27505 | ac_header_preproc=yes | ||
27506 | ;; | ||
27507 | no:yes:* ) | ||
27508 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
27509 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
27510 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
27511 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
27512 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
27513 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
27514 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27515 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27516 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
27517 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
27518 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
27519 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
27520 | ( cat <<\_ASBOX | ||
27521 | ## ------------------------------------------- ## | ||
27522 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27523 | ## ------------------------------------------- ## | ||
27524 | _ASBOX | ||
27525 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27526 | ;; | ||
27527 | esac | ||
27528 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27529 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27530 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27532 | else | ||
27533 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
27534 | fi | ||
27535 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27536 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27537 | |||
27538 | fi | ||
27539 | if test $ac_cv_header_gssapi_h = yes; then | ||
27540 | : | ||
27541 | else | ||
27542 | unset ac_cv_header_gssapi_h | ||
27543 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27544 | |||
27545 | for ac_header in gssapi.h | ||
27546 | do | ||
27547 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27553 | fi | ||
27554 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27556 | echo "${ECHO_T}$ac_res" >&6; } | ||
27557 | else | ||
27558 | # Is the header compilable? | ||
27559 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27560 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27561 | cat >conftest.$ac_ext <<_ACEOF | ||
27562 | /* confdefs.h. */ | ||
27563 | _ACEOF | ||
27564 | cat confdefs.h >>conftest.$ac_ext | ||
27565 | cat >>conftest.$ac_ext <<_ACEOF | ||
27566 | /* end confdefs.h. */ | ||
27567 | $ac_includes_default | ||
27568 | #include <$ac_header> | ||
27569 | _ACEOF | ||
27570 | rm -f conftest.$ac_objext | ||
27571 | if { (ac_try="$ac_compile" | ||
27572 | case "(($ac_try" in | ||
27573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27574 | *) ac_try_echo=$ac_try;; | ||
27575 | esac | ||
27576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27577 | (eval "$ac_compile") 2>conftest.er1 | ||
27578 | ac_status=$? | ||
27579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27580 | rm -f conftest.er1 | ||
27581 | cat conftest.err >&5 | ||
27582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27583 | (exit $ac_status); } && { | ||
27584 | test -z "$ac_c_werror_flag" || | ||
27585 | test ! -s conftest.err | ||
27586 | } && test -s conftest.$ac_objext; then | ||
27587 | ac_header_compiler=yes | ||
27588 | else | ||
27589 | echo "$as_me: failed program was:" >&5 | ||
27590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27591 | |||
27592 | ac_header_compiler=no | ||
27593 | fi | ||
27594 | |||
27595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27596 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27597 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27598 | |||
27599 | # Is the header present? | ||
27600 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27601 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27602 | cat >conftest.$ac_ext <<_ACEOF | ||
27603 | /* confdefs.h. */ | ||
27604 | _ACEOF | ||
27605 | cat confdefs.h >>conftest.$ac_ext | ||
27606 | cat >>conftest.$ac_ext <<_ACEOF | ||
27607 | /* end confdefs.h. */ | ||
27608 | #include <$ac_header> | ||
27609 | _ACEOF | ||
27610 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27611 | case "(($ac_try" in | ||
27612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27613 | *) ac_try_echo=$ac_try;; | ||
27614 | esac | ||
27615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27616 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27617 | ac_status=$? | ||
27618 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27619 | rm -f conftest.er1 | ||
27620 | cat conftest.err >&5 | ||
27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27622 | (exit $ac_status); } >/dev/null && { | ||
27623 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27624 | test ! -s conftest.err | ||
27625 | }; then | ||
27626 | ac_header_preproc=yes | ||
27627 | else | ||
27628 | echo "$as_me: failed program was:" >&5 | ||
27629 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27630 | |||
27631 | ac_header_preproc=no | ||
27632 | fi | ||
27633 | |||
27634 | rm -f conftest.err conftest.$ac_ext | ||
27635 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27636 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27637 | |||
27638 | # So? What about this header? | ||
27639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27640 | yes:no: ) | ||
27641 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27642 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27644 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27645 | ac_header_preproc=yes | ||
27646 | ;; | ||
27647 | no:yes:* ) | ||
27648 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27649 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27650 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27651 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27652 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27653 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27654 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27655 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27657 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27658 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27659 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27660 | ( cat <<\_ASBOX | ||
27661 | ## ------------------------------------------- ## | ||
27662 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27663 | ## ------------------------------------------- ## | ||
27664 | _ASBOX | ||
27665 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27666 | ;; | ||
27667 | esac | ||
27668 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27672 | else | ||
27673 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27674 | fi | ||
27675 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27677 | echo "${ECHO_T}$ac_res" >&6; } | ||
27678 | |||
27679 | fi | ||
27680 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27681 | cat >>confdefs.h <<_ACEOF | ||
27682 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27683 | _ACEOF | ||
27684 | |||
27685 | else | ||
27686 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
27687 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
27688 | |||
27689 | fi | ||
27690 | |||
27691 | done | ||
27692 | |||
27693 | |||
27694 | |||
27695 | fi | ||
27696 | |||
27697 | |||
27698 | |||
27699 | oldCPP="$CPPFLAGS" | ||
27700 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27701 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27702 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27703 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27704 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27706 | fi | ||
27707 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27708 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27709 | else | ||
27710 | # Is the header compilable? | ||
27711 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
27712 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
27713 | cat >conftest.$ac_ext <<_ACEOF | ||
27714 | /* confdefs.h. */ | ||
27715 | _ACEOF | ||
27716 | cat confdefs.h >>conftest.$ac_ext | ||
27717 | cat >>conftest.$ac_ext <<_ACEOF | ||
27718 | /* end confdefs.h. */ | ||
27719 | $ac_includes_default | ||
27720 | #include <gssapi_krb5.h> | ||
27721 | _ACEOF | ||
27722 | rm -f conftest.$ac_objext | ||
27723 | if { (ac_try="$ac_compile" | ||
27724 | case "(($ac_try" in | ||
27725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27726 | *) ac_try_echo=$ac_try;; | ||
27727 | esac | ||
27728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27729 | (eval "$ac_compile") 2>conftest.er1 | ||
27730 | ac_status=$? | ||
27731 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27732 | rm -f conftest.er1 | ||
27733 | cat conftest.err >&5 | ||
27734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27735 | (exit $ac_status); } && { | ||
27736 | test -z "$ac_c_werror_flag" || | ||
27737 | test ! -s conftest.err | ||
27738 | } && test -s conftest.$ac_objext; then | ||
27739 | ac_header_compiler=yes | ||
27740 | else | ||
27741 | echo "$as_me: failed program was:" >&5 | ||
27742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27743 | |||
27744 | ac_header_compiler=no | ||
27745 | fi | ||
27746 | |||
27747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27748 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27749 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27750 | |||
27751 | # Is the header present? | ||
27752 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
27753 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
27754 | cat >conftest.$ac_ext <<_ACEOF | ||
27755 | /* confdefs.h. */ | ||
27756 | _ACEOF | ||
27757 | cat confdefs.h >>conftest.$ac_ext | ||
27758 | cat >>conftest.$ac_ext <<_ACEOF | ||
27759 | /* end confdefs.h. */ | ||
27760 | #include <gssapi_krb5.h> | ||
27761 | _ACEOF | ||
27762 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27763 | case "(($ac_try" in | ||
27764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27765 | *) ac_try_echo=$ac_try;; | ||
27766 | esac | ||
27767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27769 | ac_status=$? | ||
27770 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27771 | rm -f conftest.er1 | ||
27772 | cat conftest.err >&5 | ||
27773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27774 | (exit $ac_status); } >/dev/null && { | ||
27775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27776 | test ! -s conftest.err | ||
27777 | }; then | ||
27778 | ac_header_preproc=yes | ||
27779 | else | ||
27780 | echo "$as_me: failed program was:" >&5 | ||
27781 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27782 | |||
27783 | ac_header_preproc=no | ||
27784 | fi | ||
27785 | |||
27786 | rm -f conftest.err conftest.$ac_ext | ||
27787 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27788 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27789 | |||
27790 | # So? What about this header? | ||
27791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27792 | yes:no: ) | ||
27793 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27794 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27795 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
27796 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
27797 | ac_header_preproc=yes | ||
27798 | ;; | ||
27799 | no:yes:* ) | ||
27800 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
27801 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
27802 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
27803 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
27804 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
27805 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
27806 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27807 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27808 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
27809 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
27810 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
27811 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
27812 | ( cat <<\_ASBOX | ||
27813 | ## ------------------------------------------- ## | ||
27814 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27815 | ## ------------------------------------------- ## | ||
27816 | _ASBOX | ||
27817 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27818 | ;; | ||
27819 | esac | ||
27820 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27821 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27822 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27824 | else | ||
27825 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
27826 | fi | ||
27827 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27828 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27829 | |||
27830 | fi | ||
27831 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
27832 | : | ||
27833 | else | ||
27834 | CPPFLAGS="$oldCPP" | ||
27835 | fi | ||
27836 | |||
27837 | |||
27838 | |||
27839 | fi | ||
27840 | if test ! -z "$need_dash_r" ; then | ||
27841 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
27842 | fi | ||
27843 | if test ! -z "$blibpath" ; then | ||
27844 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
27845 | fi | ||
27846 | |||
27847 | |||
27848 | |||
27849 | for ac_header in gssapi.h gssapi/gssapi.h | ||
27850 | do | ||
27851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27853 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27857 | fi | ||
27858 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27860 | echo "${ECHO_T}$ac_res" >&6; } | ||
27861 | else | ||
27862 | # Is the header compilable? | ||
27863 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27864 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27865 | cat >conftest.$ac_ext <<_ACEOF | ||
27866 | /* confdefs.h. */ | ||
27867 | _ACEOF | ||
27868 | cat confdefs.h >>conftest.$ac_ext | ||
27869 | cat >>conftest.$ac_ext <<_ACEOF | ||
27870 | /* end confdefs.h. */ | ||
27871 | $ac_includes_default | ||
27872 | #include <$ac_header> | ||
27873 | _ACEOF | ||
27874 | rm -f conftest.$ac_objext | ||
27875 | if { (ac_try="$ac_compile" | ||
27876 | case "(($ac_try" in | ||
27877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27878 | *) ac_try_echo=$ac_try;; | ||
27879 | esac | ||
27880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27881 | (eval "$ac_compile") 2>conftest.er1 | ||
27882 | ac_status=$? | ||
27883 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27884 | rm -f conftest.er1 | ||
27885 | cat conftest.err >&5 | ||
27886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27887 | (exit $ac_status); } && { | ||
27888 | test -z "$ac_c_werror_flag" || | ||
27889 | test ! -s conftest.err | ||
27890 | } && test -s conftest.$ac_objext; then | ||
27891 | ac_header_compiler=yes | ||
27892 | else | ||
27893 | echo "$as_me: failed program was:" >&5 | ||
27894 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27895 | |||
27896 | ac_header_compiler=no | ||
27897 | fi | ||
27898 | |||
27899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27900 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27901 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27902 | |||
27903 | # Is the header present? | ||
27904 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27905 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27906 | cat >conftest.$ac_ext <<_ACEOF | ||
27907 | /* confdefs.h. */ | ||
27908 | _ACEOF | ||
27909 | cat confdefs.h >>conftest.$ac_ext | ||
27910 | cat >>conftest.$ac_ext <<_ACEOF | ||
27911 | /* end confdefs.h. */ | ||
27912 | #include <$ac_header> | ||
27913 | _ACEOF | ||
27914 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27915 | case "(($ac_try" in | ||
27916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27917 | *) ac_try_echo=$ac_try;; | ||
27918 | esac | ||
27919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27920 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27921 | ac_status=$? | ||
27922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27923 | rm -f conftest.er1 | ||
27924 | cat conftest.err >&5 | ||
27925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27926 | (exit $ac_status); } >/dev/null && { | ||
27927 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27928 | test ! -s conftest.err | ||
27929 | }; then | ||
27930 | ac_header_preproc=yes | ||
27931 | else | ||
27932 | echo "$as_me: failed program was:" >&5 | ||
27933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27934 | |||
27935 | ac_header_preproc=no | ||
27936 | fi | ||
27937 | |||
27938 | rm -f conftest.err conftest.$ac_ext | ||
27939 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27940 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27941 | |||
27942 | # So? What about this header? | ||
27943 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27944 | yes:no: ) | ||
27945 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27946 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27948 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27949 | ac_header_preproc=yes | ||
27950 | ;; | ||
27951 | no:yes:* ) | ||
27952 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27953 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27954 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27955 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27956 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27957 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27958 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27959 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27961 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27962 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27963 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27964 | ( cat <<\_ASBOX | ||
27965 | ## ------------------------------------------- ## | ||
27966 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27967 | ## ------------------------------------------- ## | ||
27968 | _ASBOX | ||
27969 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27970 | ;; | ||
27971 | esac | ||
27972 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27976 | else | ||
27977 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27978 | fi | ||
27979 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27981 | echo "${ECHO_T}$ac_res" >&6; } | ||
27982 | |||
27983 | fi | ||
27984 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27985 | cat >>confdefs.h <<_ACEOF | ||
27986 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27987 | _ACEOF | ||
27988 | |||
27989 | fi | ||
27990 | |||
27991 | done | ||
27992 | |||
27993 | |||
27994 | |||
27995 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
27996 | do | ||
27997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27999 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28003 | fi | ||
28004 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28005 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28006 | echo "${ECHO_T}$ac_res" >&6; } | ||
28007 | else | ||
28008 | # Is the header compilable? | ||
28009 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
28011 | cat >conftest.$ac_ext <<_ACEOF | ||
28012 | /* confdefs.h. */ | ||
28013 | _ACEOF | ||
28014 | cat confdefs.h >>conftest.$ac_ext | ||
28015 | cat >>conftest.$ac_ext <<_ACEOF | ||
28016 | /* end confdefs.h. */ | ||
28017 | $ac_includes_default | ||
28018 | #include <$ac_header> | ||
28019 | _ACEOF | ||
28020 | rm -f conftest.$ac_objext | ||
28021 | if { (ac_try="$ac_compile" | ||
28022 | case "(($ac_try" in | ||
28023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28024 | *) ac_try_echo=$ac_try;; | ||
28025 | esac | ||
28026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28027 | (eval "$ac_compile") 2>conftest.er1 | ||
28028 | ac_status=$? | ||
28029 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28030 | rm -f conftest.er1 | ||
28031 | cat conftest.err >&5 | ||
28032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28033 | (exit $ac_status); } && { | ||
28034 | test -z "$ac_c_werror_flag" || | ||
28035 | test ! -s conftest.err | ||
28036 | } && test -s conftest.$ac_objext; then | ||
28037 | ac_header_compiler=yes | ||
28038 | else | ||
28039 | echo "$as_me: failed program was:" >&5 | ||
28040 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28041 | |||
28042 | ac_header_compiler=no | ||
28043 | fi | ||
28044 | |||
28045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28046 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28047 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28048 | |||
28049 | # Is the header present? | ||
28050 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
28052 | cat >conftest.$ac_ext <<_ACEOF | ||
28053 | /* confdefs.h. */ | ||
28054 | _ACEOF | ||
28055 | cat confdefs.h >>conftest.$ac_ext | ||
28056 | cat >>conftest.$ac_ext <<_ACEOF | ||
28057 | /* end confdefs.h. */ | ||
28058 | #include <$ac_header> | ||
28059 | _ACEOF | ||
28060 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28061 | case "(($ac_try" in | ||
28062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28063 | *) ac_try_echo=$ac_try;; | ||
28064 | esac | ||
28065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28066 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28067 | ac_status=$? | ||
28068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28069 | rm -f conftest.er1 | ||
28070 | cat conftest.err >&5 | ||
28071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28072 | (exit $ac_status); } >/dev/null && { | ||
28073 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28074 | test ! -s conftest.err | ||
28075 | }; then | ||
28076 | ac_header_preproc=yes | ||
28077 | else | ||
28078 | echo "$as_me: failed program was:" >&5 | ||
28079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28080 | |||
28081 | ac_header_preproc=no | ||
28082 | fi | ||
28083 | |||
28084 | rm -f conftest.err conftest.$ac_ext | ||
28085 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28086 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28087 | |||
28088 | # So? What about this header? | ||
28089 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28090 | yes:no: ) | ||
28091 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28092 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28094 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
28095 | ac_header_preproc=yes | ||
28096 | ;; | ||
28097 | no:yes:* ) | ||
28098 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
28099 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
28100 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
28101 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
28102 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
28103 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
28104 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
28105 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
28107 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
28108 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
28109 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
28110 | ( cat <<\_ASBOX | ||
28111 | ## ------------------------------------------- ## | ||
28112 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28113 | ## ------------------------------------------- ## | ||
28114 | _ASBOX | ||
28115 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28116 | ;; | ||
28117 | esac | ||
28118 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28122 | else | ||
28123 | eval "$as_ac_Header=\$ac_header_preproc" | ||
28124 | fi | ||
28125 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28126 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28127 | echo "${ECHO_T}$ac_res" >&6; } | ||
28128 | |||
28129 | fi | ||
28130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
28131 | cat >>confdefs.h <<_ACEOF | ||
28132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
28133 | _ACEOF | ||
28134 | |||
28135 | fi | ||
28136 | |||
28137 | done | ||
28138 | |||
28139 | |||
28140 | |||
28141 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
28142 | do | ||
28143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
28144 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28145 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28147 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28149 | fi | ||
28150 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28151 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28152 | echo "${ECHO_T}$ac_res" >&6; } | ||
28153 | else | ||
28154 | # Is the header compilable? | ||
28155 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28156 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
28157 | cat >conftest.$ac_ext <<_ACEOF | ||
28158 | /* confdefs.h. */ | ||
28159 | _ACEOF | ||
28160 | cat confdefs.h >>conftest.$ac_ext | ||
28161 | cat >>conftest.$ac_ext <<_ACEOF | ||
28162 | /* end confdefs.h. */ | ||
28163 | $ac_includes_default | ||
28164 | #include <$ac_header> | ||
28165 | _ACEOF | ||
28166 | rm -f conftest.$ac_objext | ||
28167 | if { (ac_try="$ac_compile" | ||
28168 | case "(($ac_try" in | ||
28169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28170 | *) ac_try_echo=$ac_try;; | ||
28171 | esac | ||
28172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28173 | (eval "$ac_compile") 2>conftest.er1 | ||
28174 | ac_status=$? | ||
28175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28176 | rm -f conftest.er1 | ||
28177 | cat conftest.err >&5 | ||
28178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28179 | (exit $ac_status); } && { | ||
28180 | test -z "$ac_c_werror_flag" || | ||
28181 | test ! -s conftest.err | ||
28182 | } && test -s conftest.$ac_objext; then | ||
28183 | ac_header_compiler=yes | ||
28184 | else | ||
28185 | echo "$as_me: failed program was:" >&5 | ||
28186 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28187 | |||
28188 | ac_header_compiler=no | ||
28189 | fi | ||
28190 | |||
28191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28192 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28193 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28194 | |||
28195 | # Is the header present? | ||
28196 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28197 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
28198 | cat >conftest.$ac_ext <<_ACEOF | ||
28199 | /* confdefs.h. */ | ||
28200 | _ACEOF | ||
28201 | cat confdefs.h >>conftest.$ac_ext | ||
28202 | cat >>conftest.$ac_ext <<_ACEOF | ||
28203 | /* end confdefs.h. */ | ||
28204 | #include <$ac_header> | ||
28205 | _ACEOF | ||
28206 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28207 | case "(($ac_try" in | ||
28208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28209 | *) ac_try_echo=$ac_try;; | ||
28210 | esac | ||
28211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28212 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28213 | ac_status=$? | ||
28214 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28215 | rm -f conftest.er1 | ||
28216 | cat conftest.err >&5 | ||
28217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28218 | (exit $ac_status); } >/dev/null && { | ||
28219 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28220 | test ! -s conftest.err | ||
28221 | }; then | ||
28222 | ac_header_preproc=yes | ||
28223 | else | ||
28224 | echo "$as_me: failed program was:" >&5 | ||
28225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28226 | |||
28227 | ac_header_preproc=no | ||
28228 | fi | ||
28229 | |||
28230 | rm -f conftest.err conftest.$ac_ext | ||
28231 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28232 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28233 | |||
28234 | # So? What about this header? | ||
28235 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28236 | yes:no: ) | ||
28237 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28238 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28240 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
28241 | ac_header_preproc=yes | ||
28242 | ;; | ||
28243 | no:yes:* ) | ||
28244 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
28245 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
28246 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
28247 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
28248 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
28249 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
28250 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
28251 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28252 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
28253 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
28254 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
28255 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
28256 | ( cat <<\_ASBOX | ||
28257 | ## ------------------------------------------- ## | ||
28258 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28259 | ## ------------------------------------------- ## | ||
28260 | _ASBOX | ||
28261 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28262 | ;; | ||
28263 | esac | ||
28264 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28268 | else | ||
28269 | eval "$as_ac_Header=\$ac_header_preproc" | ||
28270 | fi | ||
28271 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28272 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28273 | echo "${ECHO_T}$ac_res" >&6; } | ||
28274 | |||
28275 | fi | ||
28276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
28277 | cat >>confdefs.h <<_ACEOF | ||
28278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
28279 | _ACEOF | ||
28280 | |||
28281 | fi | ||
28282 | |||
28283 | done | ||
28284 | |||
28285 | |||
28286 | LIBS="$LIBS $K5LIBS" | ||
28287 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
28288 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
28289 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28291 | else | ||
28292 | ac_func_search_save_LIBS=$LIBS | ||
28293 | cat >conftest.$ac_ext <<_ACEOF | ||
28294 | /* confdefs.h. */ | ||
28295 | _ACEOF | ||
28296 | cat confdefs.h >>conftest.$ac_ext | ||
28297 | cat >>conftest.$ac_ext <<_ACEOF | ||
28298 | /* end confdefs.h. */ | ||
28299 | |||
28300 | /* Override any GCC internal prototype to avoid an error. | ||
28301 | Use char because int might match the return type of a GCC | ||
28302 | builtin and then its argument prototype would still apply. */ | ||
28303 | #ifdef __cplusplus | ||
28304 | extern "C" | ||
28305 | #endif | ||
28306 | char k_hasafs (); | ||
28307 | int | ||
28308 | main () | ||
28309 | { | ||
28310 | return k_hasafs (); | ||
28311 | ; | ||
28312 | return 0; | ||
28313 | } | ||
28314 | _ACEOF | ||
28315 | for ac_lib in '' kafs; do | ||
28316 | if test -z "$ac_lib"; then | ||
28317 | ac_res="none required" | ||
28318 | else | ||
28319 | ac_res=-l$ac_lib | ||
28320 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
28321 | fi | ||
28322 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28323 | if { (ac_try="$ac_link" | ||
28324 | case "(($ac_try" in | ||
28325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28326 | *) ac_try_echo=$ac_try;; | ||
28327 | esac | ||
28328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28329 | (eval "$ac_link") 2>conftest.er1 | ||
28330 | ac_status=$? | ||
28331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28332 | rm -f conftest.er1 | ||
28333 | cat conftest.err >&5 | ||
28334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28335 | (exit $ac_status); } && { | ||
28336 | test -z "$ac_c_werror_flag" || | ||
28337 | test ! -s conftest.err | ||
28338 | } && test -s conftest$ac_exeext && | ||
28339 | $as_test_x conftest$ac_exeext; then | ||
28340 | ac_cv_search_k_hasafs=$ac_res | ||
28341 | else | ||
28342 | echo "$as_me: failed program was:" >&5 | ||
28343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28344 | |||
28345 | |||
28346 | fi | ||
28347 | |||
28348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28349 | conftest$ac_exeext | ||
28350 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28351 | break | ||
28352 | fi | ||
28353 | done | ||
28354 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28355 | : | ||
28356 | else | ||
28357 | ac_cv_search_k_hasafs=no | ||
28358 | fi | ||
28359 | rm conftest.$ac_ext | ||
28360 | LIBS=$ac_func_search_save_LIBS | ||
28361 | fi | ||
28362 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
28363 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
28364 | ac_res=$ac_cv_search_k_hasafs | ||
28365 | if test "$ac_res" != no; then | ||
28366 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
28367 | |||
28368 | cat >>confdefs.h <<\_ACEOF | ||
28369 | #define USE_AFS 1 | ||
28370 | _ACEOF | ||
28371 | |||
28372 | fi | ||
28373 | |||
28374 | fi | ||
28375 | |||
28376 | |||
28377 | fi | ||
28378 | |||
28379 | |||
28380 | # Looking for programs, paths and files | ||
28381 | |||
28382 | PRIVSEP_PATH=/var/empty | ||
28383 | |||
28384 | # Check whether --with-privsep-path was given. | ||
28385 | if test "${with_privsep_path+set}" = set; then | ||
28386 | withval=$with_privsep_path; | ||
28387 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28388 | test "x${withval}" != "xyes"; then | ||
28389 | PRIVSEP_PATH=$withval | ||
28390 | fi | ||
28391 | |||
28392 | |||
28393 | fi | ||
28394 | |||
28395 | |||
28396 | |||
28397 | |||
28398 | # Check whether --with-xauth was given. | ||
28399 | if test "${with_xauth+set}" = set; then | ||
28400 | withval=$with_xauth; | ||
28401 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28402 | test "x${withval}" != "xyes"; then | ||
28403 | xauth_path=$withval | ||
28404 | fi | ||
28405 | |||
28406 | else | ||
28407 | |||
28408 | TestPath="$PATH" | ||
28409 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
28410 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
28411 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
28412 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
28413 | # Extract the first word of "xauth", so it can be a program name with args. | ||
28414 | set dummy xauth; ac_word=$2 | ||
28415 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28417 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
28418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28419 | else | ||
28420 | case $xauth_path in | ||
28421 | [\\/]* | ?:[\\/]*) | ||
28422 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
28423 | ;; | ||
28424 | *) | ||
28425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28426 | for as_dir in $TestPath | ||
28427 | do | ||
28428 | IFS=$as_save_IFS | ||
28429 | test -z "$as_dir" && as_dir=. | ||
28430 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28432 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
28433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28434 | break 2 | ||
28435 | fi | ||
28436 | done | ||
28437 | done | ||
28438 | IFS=$as_save_IFS | ||
28439 | |||
28440 | ;; | ||
28441 | esac | ||
28442 | fi | ||
28443 | xauth_path=$ac_cv_path_xauth_path | ||
28444 | if test -n "$xauth_path"; then | ||
28445 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
28446 | echo "${ECHO_T}$xauth_path" >&6; } | ||
28447 | else | ||
28448 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28449 | echo "${ECHO_T}no" >&6; } | ||
28450 | fi | ||
28451 | |||
28452 | |||
28453 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
28454 | xauth_path="/usr/openwin/bin/xauth" | ||
28455 | fi | ||
28456 | |||
28457 | |||
28458 | fi | ||
28459 | |||
28460 | |||
28461 | STRIP_OPT=-s | ||
28462 | # Check whether --enable-strip was given. | ||
28463 | if test "${enable_strip+set}" = set; then | ||
28464 | enableval=$enable_strip; | ||
28465 | if test "x$enableval" = "xno" ; then | ||
28466 | STRIP_OPT= | ||
28467 | fi | ||
28468 | |||
28469 | |||
28470 | fi | ||
28471 | |||
28472 | |||
28473 | |||
28474 | if test -z "$xauth_path" ; then | ||
28475 | XAUTH_PATH="undefined" | ||
28476 | |||
28477 | else | ||
28478 | |||
28479 | cat >>confdefs.h <<_ACEOF | ||
28480 | #define XAUTH_PATH "$xauth_path" | ||
28481 | _ACEOF | ||
28482 | |||
28483 | XAUTH_PATH=$xauth_path | ||
28484 | |||
28485 | fi | ||
28486 | |||
28487 | # Check for mail directory (last resort if we cannot get it from headers) | ||
28488 | if test ! -z "$MAIL" ; then | ||
28489 | maildir=`dirname $MAIL` | ||
28490 | |||
28491 | cat >>confdefs.h <<_ACEOF | ||
28492 | #define MAIL_DIRECTORY "$maildir" | ||
28493 | _ACEOF | ||
28494 | |||
28495 | fi | ||
28496 | |||
28497 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
28498 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
28499 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
28500 | disable_ptmx_check=yes | ||
28501 | fi | ||
28502 | if test -z "$no_dev_ptmx" ; then | ||
28503 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
28504 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
28505 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
28506 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
28507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28508 | else | ||
28509 | test "$cross_compiling" = yes && | ||
28510 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28511 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28512 | { (exit 1); exit 1; }; } | ||
28513 | if test -r ""/dev/ptmx""; then | ||
28514 | ac_cv_file___dev_ptmx_=yes | ||
28515 | else | ||
28516 | ac_cv_file___dev_ptmx_=no | ||
28517 | fi | ||
28518 | fi | ||
28519 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
28520 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
28521 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
28522 | |||
28523 | |||
28524 | cat >>confdefs.h <<_ACEOF | ||
28525 | #define HAVE_DEV_PTMX 1 | ||
28526 | _ACEOF | ||
28527 | |||
28528 | have_dev_ptmx=1 | ||
28529 | |||
28530 | |||
28531 | fi | ||
28532 | |||
28533 | fi | ||
28534 | fi | ||
28535 | |||
28536 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
28537 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
28538 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
28539 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
28540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28541 | else | ||
28542 | test "$cross_compiling" = yes && | ||
28543 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28544 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28545 | { (exit 1); exit 1; }; } | ||
28546 | if test -r ""/dev/ptc""; then | ||
28547 | ac_cv_file___dev_ptc_=yes | ||
28548 | else | ||
28549 | ac_cv_file___dev_ptc_=no | ||
28550 | fi | ||
28551 | fi | ||
28552 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
28553 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
28554 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
28555 | |||
28556 | |||
28557 | cat >>confdefs.h <<_ACEOF | ||
28558 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
28559 | _ACEOF | ||
28560 | |||
28561 | have_dev_ptc=1 | ||
28562 | |||
28563 | |||
28564 | fi | ||
28565 | |||
28566 | else | ||
28567 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
28568 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
28569 | fi | ||
28570 | |||
28571 | # Options from here on. Some of these are preset by platform above | ||
28572 | |||
28573 | # Check whether --with-mantype was given. | ||
28574 | if test "${with_mantype+set}" = set; then | ||
28575 | withval=$with_mantype; | ||
28576 | case "$withval" in | ||
28577 | man|cat|doc) | ||
28578 | MANTYPE=$withval | ||
28579 | ;; | ||
28580 | *) | ||
28581 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
28582 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
28583 | { (exit 1); exit 1; }; } | ||
28584 | ;; | ||
28585 | esac | ||
28586 | |||
28587 | |||
28588 | fi | ||
28589 | |||
28590 | if test -z "$MANTYPE"; then | ||
28591 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
28592 | for ac_prog in nroff awf | ||
28593 | do | ||
28594 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
28595 | set dummy $ac_prog; ac_word=$2 | ||
28596 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28598 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
28599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28600 | else | ||
28601 | case $NROFF in | ||
28602 | [\\/]* | ?:[\\/]*) | ||
28603 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
28604 | ;; | ||
28605 | *) | ||
28606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28607 | for as_dir in $TestPath | ||
28608 | do | ||
28609 | IFS=$as_save_IFS | ||
28610 | test -z "$as_dir" && as_dir=. | ||
28611 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28613 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
28614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28615 | break 2 | ||
28616 | fi | ||
28617 | done | ||
28618 | done | ||
28619 | IFS=$as_save_IFS | ||
28620 | |||
28621 | ;; | ||
28622 | esac | ||
28623 | fi | ||
28624 | NROFF=$ac_cv_path_NROFF | ||
28625 | if test -n "$NROFF"; then | ||
28626 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
28627 | echo "${ECHO_T}$NROFF" >&6; } | ||
28628 | else | ||
28629 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28630 | echo "${ECHO_T}no" >&6; } | ||
28631 | fi | ||
28632 | |||
28633 | |||
28634 | test -n "$NROFF" && break | ||
28635 | done | ||
28636 | test -n "$NROFF" || NROFF="/bin/false" | ||
28637 | |||
28638 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28639 | MANTYPE=doc | ||
28640 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28641 | MANTYPE=man | ||
28642 | else | ||
28643 | MANTYPE=cat | ||
28644 | fi | ||
28645 | fi | ||
28646 | |||
28647 | if test "$MANTYPE" = "doc"; then | ||
28648 | mansubdir=man; | ||
28649 | else | ||
28650 | mansubdir=$MANTYPE; | ||
28651 | fi | ||
28652 | |||
28653 | |||
28654 | # Check whether to enable MD5 passwords | ||
28655 | MD5_MSG="no" | ||
28656 | |||
28657 | # Check whether --with-md5-passwords was given. | ||
28658 | if test "${with_md5_passwords+set}" = set; then | ||
28659 | withval=$with_md5_passwords; | ||
28660 | if test "x$withval" != "xno" ; then | ||
28661 | |||
28662 | cat >>confdefs.h <<\_ACEOF | ||
28663 | #define HAVE_MD5_PASSWORDS 1 | ||
28664 | _ACEOF | ||
28665 | |||
28666 | MD5_MSG="yes" | ||
28667 | fi | ||
28668 | |||
28669 | |||
28670 | fi | ||
28671 | |||
28672 | |||
28673 | # Whether to disable shadow password support | ||
28674 | |||
28675 | # Check whether --with-shadow was given. | ||
28676 | if test "${with_shadow+set}" = set; then | ||
28677 | withval=$with_shadow; | ||
28678 | if test "x$withval" = "xno" ; then | ||
28679 | cat >>confdefs.h <<\_ACEOF | ||
28680 | #define DISABLE_SHADOW 1 | ||
28681 | _ACEOF | ||
28682 | |||
28683 | disable_shadow=yes | ||
28684 | fi | ||
28685 | |||
28686 | |||
28687 | fi | ||
28688 | |||
28689 | |||
28690 | if test -z "$disable_shadow" ; then | ||
28691 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
28692 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
28693 | cat >conftest.$ac_ext <<_ACEOF | ||
28694 | /* confdefs.h. */ | ||
28695 | _ACEOF | ||
28696 | cat confdefs.h >>conftest.$ac_ext | ||
28697 | cat >>conftest.$ac_ext <<_ACEOF | ||
28698 | /* end confdefs.h. */ | ||
28699 | |||
28700 | #include <sys/types.h> | ||
28701 | #include <shadow.h> | ||
28702 | struct spwd sp; | ||
28703 | |||
28704 | int | ||
28705 | main () | ||
28706 | { | ||
28707 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
28708 | ; | ||
28709 | return 0; | ||
28710 | } | ||
28711 | _ACEOF | ||
28712 | rm -f conftest.$ac_objext | ||
28713 | if { (ac_try="$ac_compile" | ||
28714 | case "(($ac_try" in | ||
28715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28716 | *) ac_try_echo=$ac_try;; | ||
28717 | esac | ||
28718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28719 | (eval "$ac_compile") 2>conftest.er1 | ||
28720 | ac_status=$? | ||
28721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28722 | rm -f conftest.er1 | ||
28723 | cat conftest.err >&5 | ||
28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28725 | (exit $ac_status); } && { | ||
28726 | test -z "$ac_c_werror_flag" || | ||
28727 | test ! -s conftest.err | ||
28728 | } && test -s conftest.$ac_objext; then | ||
28729 | sp_expire_available=yes | ||
28730 | else | ||
28731 | echo "$as_me: failed program was:" >&5 | ||
28732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28733 | |||
28734 | |||
28735 | |||
28736 | fi | ||
28737 | |||
28738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28739 | |||
28740 | if test "x$sp_expire_available" = "xyes" ; then | ||
28741 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28742 | echo "${ECHO_T}yes" >&6; } | ||
28743 | |||
28744 | cat >>confdefs.h <<\_ACEOF | ||
28745 | #define HAS_SHADOW_EXPIRE 1 | ||
28746 | _ACEOF | ||
28747 | |||
28748 | else | ||
28749 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28750 | echo "${ECHO_T}no" >&6; } | ||
28751 | fi | ||
28752 | fi | ||
28753 | |||
28754 | # Use ip address instead of hostname in $DISPLAY | ||
28755 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
28756 | DISPLAY_HACK_MSG="yes" | ||
28757 | |||
28758 | cat >>confdefs.h <<\_ACEOF | ||
28759 | #define IPADDR_IN_DISPLAY 1 | ||
28760 | _ACEOF | ||
28761 | |||
28762 | else | ||
28763 | DISPLAY_HACK_MSG="no" | ||
28764 | |||
28765 | # Check whether --with-ipaddr-display was given. | ||
28766 | if test "${with_ipaddr_display+set}" = set; then | ||
28767 | withval=$with_ipaddr_display; | ||
28768 | if test "x$withval" != "xno" ; then | ||
28769 | cat >>confdefs.h <<\_ACEOF | ||
28770 | #define IPADDR_IN_DISPLAY 1 | ||
28771 | _ACEOF | ||
28772 | |||
28773 | DISPLAY_HACK_MSG="yes" | ||
28774 | fi | ||
28775 | |||
28776 | |||
28777 | fi | ||
28778 | |||
28779 | fi | ||
28780 | |||
28781 | # check for /etc/default/login and use it if present. | ||
28782 | # Check whether --enable-etc-default-login was given. | ||
28783 | if test "${enable_etc_default_login+set}" = set; then | ||
28784 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
28785 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
28786 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
28787 | etc_default_login=no | ||
28788 | else | ||
28789 | etc_default_login=yes | ||
28790 | fi | ||
28791 | else | ||
28792 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
28793 | then | ||
28794 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
28795 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
28796 | etc_default_login=no | ||
28797 | else | ||
28798 | etc_default_login=yes | ||
28799 | fi | ||
28800 | |||
28801 | fi | ||
28802 | |||
28803 | |||
28804 | if test "x$etc_default_login" != "xno"; then | ||
28805 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
28806 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
28807 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
28808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28809 | else | ||
28810 | test "$cross_compiling" = yes && | ||
28811 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28812 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28813 | { (exit 1); exit 1; }; } | ||
28814 | if test -r ""/etc/default/login""; then | ||
28815 | ac_cv_file___etc_default_login_=yes | ||
28816 | else | ||
28817 | ac_cv_file___etc_default_login_=no | ||
28818 | fi | ||
28819 | fi | ||
28820 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
28821 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
28822 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
28823 | external_path_file=/etc/default/login | ||
28824 | fi | ||
28825 | |||
28826 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
28827 | |||
28828 | cat >>confdefs.h <<\_ACEOF | ||
28829 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
28830 | _ACEOF | ||
28831 | |||
28832 | fi | ||
28833 | fi | ||
28834 | |||
28835 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
28836 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
28837 | external_path_file=/etc/login.conf | ||
28838 | fi | ||
28839 | |||
28840 | # Whether to mess with the default path | ||
28841 | SERVER_PATH_MSG="(default)" | ||
28842 | |||
28843 | # Check whether --with-default-path was given. | ||
28844 | if test "${with_default_path+set}" = set; then | ||
28845 | withval=$with_default_path; | ||
28846 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28847 | { echo "$as_me:$LINENO: WARNING: | ||
28848 | --with-default-path=PATH has no effect on this system. | ||
28849 | Edit /etc/login.conf instead." >&5 | ||
28850 | echo "$as_me: WARNING: | ||
28851 | --with-default-path=PATH has no effect on this system. | ||
28852 | Edit /etc/login.conf instead." >&2;} | ||
28853 | elif test "x$withval" != "xno" ; then | ||
28854 | if test ! -z "$external_path_file" ; then | ||
28855 | { echo "$as_me:$LINENO: WARNING: | ||
28856 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28857 | $external_path_file ." >&5 | ||
28858 | echo "$as_me: WARNING: | ||
28859 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28860 | $external_path_file ." >&2;} | ||
28861 | fi | ||
28862 | user_path="$withval" | ||
28863 | SERVER_PATH_MSG="$withval" | ||
28864 | fi | ||
28865 | |||
28866 | else | ||
28867 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28868 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
28869 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
28870 | else | ||
28871 | if test ! -z "$external_path_file" ; then | ||
28872 | { echo "$as_me:$LINENO: WARNING: | ||
28873 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28874 | otherwise scp will not work." >&5 | ||
28875 | echo "$as_me: WARNING: | ||
28876 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28877 | otherwise scp will not work." >&2;} | ||
28878 | fi | ||
28879 | if test "$cross_compiling" = yes; then | ||
28880 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28881 | |||
28882 | else | ||
28883 | cat >conftest.$ac_ext <<_ACEOF | ||
28884 | /* confdefs.h. */ | ||
28885 | _ACEOF | ||
28886 | cat confdefs.h >>conftest.$ac_ext | ||
28887 | cat >>conftest.$ac_ext <<_ACEOF | ||
28888 | /* end confdefs.h. */ | ||
28889 | |||
28890 | /* find out what STDPATH is */ | ||
28891 | #include <stdio.h> | ||
28892 | #ifdef HAVE_PATHS_H | ||
28893 | # include <paths.h> | ||
28894 | #endif | ||
28895 | #ifndef _PATH_STDPATH | ||
28896 | # ifdef _PATH_USERPATH /* Irix */ | ||
28897 | # define _PATH_STDPATH _PATH_USERPATH | ||
28898 | # else | ||
28899 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
28900 | # endif | ||
28901 | #endif | ||
28902 | #include <sys/types.h> | ||
28903 | #include <sys/stat.h> | ||
28904 | #include <fcntl.h> | ||
28905 | #define DATA "conftest.stdpath" | ||
28906 | |||
28907 | main() | ||
28908 | { | ||
28909 | FILE *fd; | ||
28910 | int rc; | ||
28911 | |||
28912 | fd = fopen(DATA,"w"); | ||
28913 | if(fd == NULL) | ||
28914 | exit(1); | ||
28915 | |||
28916 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
28917 | exit(1); | ||
28918 | |||
28919 | exit(0); | ||
28920 | } | ||
28921 | |||
28922 | _ACEOF | ||
28923 | rm -f conftest$ac_exeext | ||
28924 | if { (ac_try="$ac_link" | ||
28925 | case "(($ac_try" in | ||
28926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28927 | *) ac_try_echo=$ac_try;; | ||
28928 | esac | ||
28929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28930 | (eval "$ac_link") 2>&5 | ||
28931 | ac_status=$? | ||
28932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28934 | { (case "(($ac_try" in | ||
28935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28936 | *) ac_try_echo=$ac_try;; | ||
28937 | esac | ||
28938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28939 | (eval "$ac_try") 2>&5 | ||
28940 | ac_status=$? | ||
28941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28942 | (exit $ac_status); }; }; then | ||
28943 | user_path=`cat conftest.stdpath` | ||
28944 | else | ||
28945 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28946 | echo "$as_me: failed program was:" >&5 | ||
28947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28948 | |||
28949 | ( exit $ac_status ) | ||
28950 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28951 | fi | ||
28952 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28953 | fi | ||
28954 | |||
28955 | |||
28956 | # make sure $bindir is in USER_PATH so scp will work | ||
28957 | t_bindir=`eval echo ${bindir}` | ||
28958 | case $t_bindir in | ||
28959 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
28960 | esac | ||
28961 | case $t_bindir in | ||
28962 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28963 | esac | ||
28964 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
28965 | if test $? -ne 0 ; then | ||
28966 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
28967 | if test $? -ne 0 ; then | ||
28968 | user_path=$user_path:$t_bindir | ||
28969 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
28970 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
28971 | fi | ||
28972 | fi | ||
28973 | fi | ||
28974 | |||
28975 | fi | ||
28976 | |||
28977 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
28978 | |||
28979 | cat >>confdefs.h <<_ACEOF | ||
28980 | #define USER_PATH "$user_path" | ||
28981 | _ACEOF | ||
28982 | |||
28983 | |||
28984 | fi | ||
28985 | |||
28986 | # Set superuser path separately to user path | ||
28987 | |||
28988 | # Check whether --with-superuser-path was given. | ||
28989 | if test "${with_superuser_path+set}" = set; then | ||
28990 | withval=$with_superuser_path; | ||
28991 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28992 | test "x${withval}" != "xyes"; then | ||
28993 | |||
28994 | cat >>confdefs.h <<_ACEOF | ||
28995 | #define SUPERUSER_PATH "$withval" | ||
28996 | _ACEOF | ||
28997 | |||
28998 | superuser_path=$withval | ||
28999 | fi | ||
29000 | |||
29001 | |||
29002 | fi | ||
29003 | |||
29004 | |||
29005 | |||
29006 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
29007 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
29008 | IPV4_IN6_HACK_MSG="no" | ||
29009 | |||
29010 | # Check whether --with-4in6 was given. | ||
29011 | if test "${with_4in6+set}" = set; then | ||
29012 | withval=$with_4in6; | ||
29013 | if test "x$withval" != "xno" ; then | ||
29014 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29015 | echo "${ECHO_T}yes" >&6; } | ||
29016 | |||
29017 | cat >>confdefs.h <<\_ACEOF | ||
29018 | #define IPV4_IN_IPV6 1 | ||
29019 | _ACEOF | ||
29020 | |||
29021 | IPV4_IN6_HACK_MSG="yes" | ||
29022 | else | ||
29023 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29024 | echo "${ECHO_T}no" >&6; } | ||
29025 | fi | ||
29026 | |||
29027 | else | ||
29028 | |||
29029 | if test "x$inet6_default_4in6" = "xyes"; then | ||
29030 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
29031 | echo "${ECHO_T}yes (default)" >&6; } | ||
29032 | cat >>confdefs.h <<\_ACEOF | ||
29033 | #define IPV4_IN_IPV6 1 | ||
29034 | _ACEOF | ||
29035 | |||
29036 | IPV4_IN6_HACK_MSG="yes" | ||
29037 | else | ||
29038 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
29039 | echo "${ECHO_T}no (default)" >&6; } | ||
29040 | fi | ||
29041 | |||
29042 | |||
29043 | fi | ||
29044 | |||
29045 | |||
29046 | # Whether to enable BSD auth support | ||
29047 | BSD_AUTH_MSG=no | ||
29048 | |||
29049 | # Check whether --with-bsd-auth was given. | ||
29050 | if test "${with_bsd_auth+set}" = set; then | ||
29051 | withval=$with_bsd_auth; | ||
29052 | if test "x$withval" != "xno" ; then | ||
29053 | |||
29054 | cat >>confdefs.h <<\_ACEOF | ||
29055 | #define BSD_AUTH 1 | ||
29056 | _ACEOF | ||
29057 | |||
29058 | BSD_AUTH_MSG=yes | ||
29059 | fi | ||
29060 | |||
29061 | |||
29062 | fi | ||
29063 | |||
29064 | |||
29065 | # Where to place sshd.pid | ||
29066 | piddir=/var/run | ||
29067 | # make sure the directory exists | ||
29068 | if test ! -d $piddir ; then | ||
29069 | piddir=`eval echo ${sysconfdir}` | ||
29070 | case $piddir in | ||
29071 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
29072 | esac | ||
29073 | fi | ||
29074 | |||
29075 | |||
29076 | # Check whether --with-pid-dir was given. | ||
29077 | if test "${with_pid_dir+set}" = set; then | ||
29078 | withval=$with_pid_dir; | ||
29079 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
29080 | test "x${withval}" != "xyes"; then | ||
29081 | piddir=$withval | ||
29082 | if test ! -d $piddir ; then | ||
29083 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
29084 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
29085 | fi | ||
29086 | fi | ||
29087 | |||
29088 | |||
29089 | fi | ||
29090 | |||
29091 | |||
29092 | |||
29093 | cat >>confdefs.h <<_ACEOF | ||
29094 | #define _PATH_SSH_PIDDIR "$piddir" | ||
29095 | _ACEOF | ||
29096 | |||
29097 | |||
29098 | |||
29099 | # Check whether --enable-lastlog was given. | ||
29100 | if test "${enable_lastlog+set}" = set; then | ||
29101 | enableval=$enable_lastlog; | ||
29102 | if test "x$enableval" = "xno" ; then | ||
29103 | cat >>confdefs.h <<\_ACEOF | ||
29104 | #define DISABLE_LASTLOG 1 | ||
29105 | _ACEOF | ||
29106 | |||
29107 | fi | ||
29108 | |||
29109 | |||
29110 | fi | ||
29111 | |||
29112 | # Check whether --enable-utmp was given. | ||
29113 | if test "${enable_utmp+set}" = set; then | ||
29114 | enableval=$enable_utmp; | ||
29115 | if test "x$enableval" = "xno" ; then | ||
29116 | cat >>confdefs.h <<\_ACEOF | ||
29117 | #define DISABLE_UTMP 1 | ||
29118 | _ACEOF | ||
29119 | |||
29120 | fi | ||
29121 | |||
29122 | |||
29123 | fi | ||
29124 | |||
29125 | # Check whether --enable-utmpx was given. | ||
29126 | if test "${enable_utmpx+set}" = set; then | ||
29127 | enableval=$enable_utmpx; | ||
29128 | if test "x$enableval" = "xno" ; then | ||
29129 | |||
29130 | cat >>confdefs.h <<\_ACEOF | ||
29131 | #define DISABLE_UTMPX 1 | ||
29132 | _ACEOF | ||
29133 | |||
29134 | fi | ||
29135 | |||
29136 | |||
29137 | fi | ||
29138 | |||
29139 | # Check whether --enable-wtmp was given. | ||
29140 | if test "${enable_wtmp+set}" = set; then | ||
29141 | enableval=$enable_wtmp; | ||
29142 | if test "x$enableval" = "xno" ; then | ||
29143 | cat >>confdefs.h <<\_ACEOF | ||
29144 | #define DISABLE_WTMP 1 | ||
29145 | _ACEOF | ||
29146 | |||
29147 | fi | ||
29148 | |||
29149 | |||
29150 | fi | ||
29151 | |||
29152 | # Check whether --enable-wtmpx was given. | ||
29153 | if test "${enable_wtmpx+set}" = set; then | ||
29154 | enableval=$enable_wtmpx; | ||
29155 | if test "x$enableval" = "xno" ; then | ||
29156 | |||
29157 | cat >>confdefs.h <<\_ACEOF | ||
29158 | #define DISABLE_WTMPX 1 | ||
29159 | _ACEOF | ||
29160 | |||
29161 | fi | ||
29162 | |||
29163 | |||
29164 | fi | ||
29165 | |||
29166 | # Check whether --enable-libutil was given. | ||
29167 | if test "${enable_libutil+set}" = set; then | ||
29168 | enableval=$enable_libutil; | ||
29169 | if test "x$enableval" = "xno" ; then | ||
29170 | cat >>confdefs.h <<\_ACEOF | ||
29171 | #define DISABLE_LOGIN 1 | ||
29172 | _ACEOF | ||
29173 | |||
29174 | fi | ||
29175 | |||
29176 | |||
29177 | fi | ||
29178 | |||
29179 | # Check whether --enable-pututline was given. | ||
29180 | if test "${enable_pututline+set}" = set; then | ||
29181 | enableval=$enable_pututline; | ||
29182 | if test "x$enableval" = "xno" ; then | ||
29183 | |||
29184 | cat >>confdefs.h <<\_ACEOF | ||
29185 | #define DISABLE_PUTUTLINE 1 | ||
29186 | _ACEOF | ||
29187 | |||
29188 | fi | ||
29189 | |||
29190 | |||
29191 | fi | ||
29192 | |||
29193 | # Check whether --enable-pututxline was given. | ||
29194 | if test "${enable_pututxline+set}" = set; then | ||
29195 | enableval=$enable_pututxline; | ||
29196 | if test "x$enableval" = "xno" ; then | ||
29197 | |||
29198 | cat >>confdefs.h <<\_ACEOF | ||
29199 | #define DISABLE_PUTUTXLINE 1 | ||
29200 | _ACEOF | ||
29201 | |||
29202 | fi | ||
29203 | |||
29204 | |||
29205 | fi | ||
29206 | |||
29207 | |||
29208 | # Check whether --with-lastlog was given. | ||
29209 | if test "${with_lastlog+set}" = set; then | ||
29210 | withval=$with_lastlog; | ||
29211 | if test "x$withval" = "xno" ; then | ||
29212 | cat >>confdefs.h <<\_ACEOF | ||
29213 | #define DISABLE_LASTLOG 1 | ||
29214 | _ACEOF | ||
29215 | |||
29216 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
29217 | conf_lastlog_location=$withval | ||
29218 | fi | ||
29219 | |||
29220 | |||
29221 | fi | ||
29222 | |||
29223 | |||
29224 | |||
29225 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
29226 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
29227 | cat >conftest.$ac_ext <<_ACEOF | ||
29228 | /* confdefs.h. */ | ||
29229 | _ACEOF | ||
29230 | cat confdefs.h >>conftest.$ac_ext | ||
29231 | cat >>conftest.$ac_ext <<_ACEOF | ||
29232 | /* end confdefs.h. */ | ||
29233 | |||
29234 | #include <sys/types.h> | ||
29235 | #include <utmp.h> | ||
29236 | #ifdef HAVE_LASTLOG_H | ||
29237 | # include <lastlog.h> | ||
29238 | #endif | ||
29239 | #ifdef HAVE_PATHS_H | ||
29240 | # include <paths.h> | ||
29241 | #endif | ||
29242 | #ifdef HAVE_LOGIN_H | ||
29243 | # include <login.h> | ||
29244 | #endif | ||
29245 | |||
29246 | int | ||
29247 | main () | ||
29248 | { | ||
29249 | char *lastlog = LASTLOG_FILE; | ||
29250 | ; | ||
29251 | return 0; | ||
29252 | } | ||
29253 | _ACEOF | ||
29254 | rm -f conftest.$ac_objext | ||
29255 | if { (ac_try="$ac_compile" | ||
29256 | case "(($ac_try" in | ||
29257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29258 | *) ac_try_echo=$ac_try;; | ||
29259 | esac | ||
29260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29261 | (eval "$ac_compile") 2>conftest.er1 | ||
29262 | ac_status=$? | ||
29263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29264 | rm -f conftest.er1 | ||
29265 | cat conftest.err >&5 | ||
29266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29267 | (exit $ac_status); } && { | ||
29268 | test -z "$ac_c_werror_flag" || | ||
29269 | test ! -s conftest.err | ||
29270 | } && test -s conftest.$ac_objext; then | ||
29271 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29272 | echo "${ECHO_T}yes" >&6; } | ||
29273 | else | ||
29274 | echo "$as_me: failed program was:" >&5 | ||
29275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29276 | |||
29277 | |||
29278 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29279 | echo "${ECHO_T}no" >&6; } | ||
29280 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
29281 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
29282 | cat >conftest.$ac_ext <<_ACEOF | ||
29283 | /* confdefs.h. */ | ||
29284 | _ACEOF | ||
29285 | cat confdefs.h >>conftest.$ac_ext | ||
29286 | cat >>conftest.$ac_ext <<_ACEOF | ||
29287 | /* end confdefs.h. */ | ||
29288 | |||
29289 | #include <sys/types.h> | ||
29290 | #include <utmp.h> | ||
29291 | #ifdef HAVE_LASTLOG_H | ||
29292 | # include <lastlog.h> | ||
29293 | #endif | ||
29294 | #ifdef HAVE_PATHS_H | ||
29295 | # include <paths.h> | ||
29296 | #endif | ||
29297 | |||
29298 | int | ||
29299 | main () | ||
29300 | { | ||
29301 | char *lastlog = _PATH_LASTLOG; | ||
29302 | ; | ||
29303 | return 0; | ||
29304 | } | ||
29305 | _ACEOF | ||
29306 | rm -f conftest.$ac_objext | ||
29307 | if { (ac_try="$ac_compile" | ||
29308 | case "(($ac_try" in | ||
29309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29310 | *) ac_try_echo=$ac_try;; | ||
29311 | esac | ||
29312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29313 | (eval "$ac_compile") 2>conftest.er1 | ||
29314 | ac_status=$? | ||
29315 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29316 | rm -f conftest.er1 | ||
29317 | cat conftest.err >&5 | ||
29318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29319 | (exit $ac_status); } && { | ||
29320 | test -z "$ac_c_werror_flag" || | ||
29321 | test ! -s conftest.err | ||
29322 | } && test -s conftest.$ac_objext; then | ||
29323 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29324 | echo "${ECHO_T}yes" >&6; } | ||
29325 | else | ||
29326 | echo "$as_me: failed program was:" >&5 | ||
29327 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29328 | |||
29329 | |||
29330 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29331 | echo "${ECHO_T}no" >&6; } | ||
29332 | system_lastlog_path=no | ||
29333 | |||
29334 | fi | ||
29335 | |||
29336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29337 | |||
29338 | |||
29339 | fi | ||
29340 | |||
29341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29342 | |||
29343 | if test -z "$conf_lastlog_location"; then | ||
29344 | if test x"$system_lastlog_path" = x"no" ; then | ||
29345 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
29346 | if (test -d "$f" || test -f "$f") ; then | ||
29347 | conf_lastlog_location=$f | ||
29348 | fi | ||
29349 | done | ||
29350 | if test -z "$conf_lastlog_location"; then | ||
29351 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
29352 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
29353 | fi | ||
29354 | fi | ||
29355 | fi | ||
29356 | |||
29357 | if test -n "$conf_lastlog_location"; then | ||
29358 | |||
29359 | cat >>confdefs.h <<_ACEOF | ||
29360 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
29361 | _ACEOF | ||
29362 | |||
29363 | fi | ||
29364 | |||
29365 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
29366 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
29367 | cat >conftest.$ac_ext <<_ACEOF | ||
29368 | /* confdefs.h. */ | ||
29369 | _ACEOF | ||
29370 | cat confdefs.h >>conftest.$ac_ext | ||
29371 | cat >>conftest.$ac_ext <<_ACEOF | ||
29372 | /* end confdefs.h. */ | ||
29373 | |||
29374 | #include <sys/types.h> | ||
29375 | #include <utmp.h> | ||
29376 | #ifdef HAVE_PATHS_H | ||
29377 | # include <paths.h> | ||
29378 | #endif | ||
29379 | |||
29380 | int | ||
29381 | main () | ||
29382 | { | ||
29383 | char *utmp = UTMP_FILE; | ||
29384 | ; | ||
29385 | return 0; | ||
29386 | } | ||
29387 | _ACEOF | ||
29388 | rm -f conftest.$ac_objext | ||
29389 | if { (ac_try="$ac_compile" | ||
29390 | case "(($ac_try" in | ||
29391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29392 | *) ac_try_echo=$ac_try;; | ||
29393 | esac | ||
29394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29395 | (eval "$ac_compile") 2>conftest.er1 | ||
29396 | ac_status=$? | ||
29397 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29398 | rm -f conftest.er1 | ||
29399 | cat conftest.err >&5 | ||
29400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29401 | (exit $ac_status); } && { | ||
29402 | test -z "$ac_c_werror_flag" || | ||
29403 | test ! -s conftest.err | ||
29404 | } && test -s conftest.$ac_objext; then | ||
29405 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29406 | echo "${ECHO_T}yes" >&6; } | ||
29407 | else | ||
29408 | echo "$as_me: failed program was:" >&5 | ||
29409 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29410 | |||
29411 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29412 | echo "${ECHO_T}no" >&6; } | ||
29413 | system_utmp_path=no | ||
29414 | |||
29415 | fi | ||
29416 | |||
29417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29418 | if test -z "$conf_utmp_location"; then | ||
29419 | if test x"$system_utmp_path" = x"no" ; then | ||
29420 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
29421 | if test -f $f ; then | ||
29422 | conf_utmp_location=$f | ||
29423 | fi | ||
29424 | done | ||
29425 | if test -z "$conf_utmp_location"; then | ||
29426 | cat >>confdefs.h <<\_ACEOF | ||
29427 | #define DISABLE_UTMP 1 | ||
29428 | _ACEOF | ||
29429 | |||
29430 | fi | ||
29431 | fi | ||
29432 | fi | ||
29433 | if test -n "$conf_utmp_location"; then | ||
29434 | |||
29435 | cat >>confdefs.h <<_ACEOF | ||
29436 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
29437 | _ACEOF | ||
29438 | |||
29439 | fi | ||
29440 | |||
29441 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
29442 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
29443 | cat >conftest.$ac_ext <<_ACEOF | ||
29444 | /* confdefs.h. */ | ||
29445 | _ACEOF | ||
29446 | cat confdefs.h >>conftest.$ac_ext | ||
29447 | cat >>conftest.$ac_ext <<_ACEOF | ||
29448 | /* end confdefs.h. */ | ||
29449 | |||
29450 | #include <sys/types.h> | ||
29451 | #include <utmp.h> | ||
29452 | #ifdef HAVE_PATHS_H | ||
29453 | # include <paths.h> | ||
29454 | #endif | ||
29455 | |||
29456 | int | ||
29457 | main () | ||
29458 | { | ||
29459 | char *wtmp = WTMP_FILE; | ||
29460 | ; | ||
29461 | return 0; | ||
29462 | } | ||
29463 | _ACEOF | ||
29464 | rm -f conftest.$ac_objext | ||
29465 | if { (ac_try="$ac_compile" | ||
29466 | case "(($ac_try" in | ||
29467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29468 | *) ac_try_echo=$ac_try;; | ||
29469 | esac | ||
29470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29471 | (eval "$ac_compile") 2>conftest.er1 | ||
29472 | ac_status=$? | ||
29473 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29474 | rm -f conftest.er1 | ||
29475 | cat conftest.err >&5 | ||
29476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29477 | (exit $ac_status); } && { | ||
29478 | test -z "$ac_c_werror_flag" || | ||
29479 | test ! -s conftest.err | ||
29480 | } && test -s conftest.$ac_objext; then | ||
29481 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29482 | echo "${ECHO_T}yes" >&6; } | ||
29483 | else | ||
29484 | echo "$as_me: failed program was:" >&5 | ||
29485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29486 | |||
29487 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29488 | echo "${ECHO_T}no" >&6; } | ||
29489 | system_wtmp_path=no | ||
29490 | |||
29491 | fi | ||
29492 | |||
29493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29494 | if test -z "$conf_wtmp_location"; then | ||
29495 | if test x"$system_wtmp_path" = x"no" ; then | ||
29496 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
29497 | if test -f $f ; then | ||
29498 | conf_wtmp_location=$f | ||
29499 | fi | ||
29500 | done | ||
29501 | if test -z "$conf_wtmp_location"; then | ||
29502 | cat >>confdefs.h <<\_ACEOF | ||
29503 | #define DISABLE_WTMP 1 | ||
29504 | _ACEOF | ||
29505 | |||
29506 | fi | ||
29507 | fi | ||
29508 | fi | ||
29509 | if test -n "$conf_wtmp_location"; then | ||
29510 | |||
29511 | cat >>confdefs.h <<_ACEOF | ||
29512 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
29513 | _ACEOF | ||
29514 | |||
29515 | fi | ||
29516 | |||
29517 | |||
29518 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
29519 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
29520 | cat >conftest.$ac_ext <<_ACEOF | ||
29521 | /* confdefs.h. */ | ||
29522 | _ACEOF | ||
29523 | cat confdefs.h >>conftest.$ac_ext | ||
29524 | cat >>conftest.$ac_ext <<_ACEOF | ||
29525 | /* end confdefs.h. */ | ||
29526 | |||
29527 | #include <sys/types.h> | ||
29528 | #include <utmp.h> | ||
29529 | #ifdef HAVE_UTMPX_H | ||
29530 | #include <utmpx.h> | ||
29531 | #endif | ||
29532 | #ifdef HAVE_PATHS_H | ||
29533 | # include <paths.h> | ||
29534 | #endif | ||
29535 | |||
29536 | int | ||
29537 | main () | ||
29538 | { | ||
29539 | char *wtmpx = WTMPX_FILE; | ||
29540 | ; | ||
29541 | return 0; | ||
29542 | } | ||
29543 | _ACEOF | ||
29544 | rm -f conftest.$ac_objext | ||
29545 | if { (ac_try="$ac_compile" | ||
29546 | case "(($ac_try" in | ||
29547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29548 | *) ac_try_echo=$ac_try;; | ||
29549 | esac | ||
29550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29551 | (eval "$ac_compile") 2>conftest.er1 | ||
29552 | ac_status=$? | ||
29553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29554 | rm -f conftest.er1 | ||
29555 | cat conftest.err >&5 | ||
29556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29557 | (exit $ac_status); } && { | ||
29558 | test -z "$ac_c_werror_flag" || | ||
29559 | test ! -s conftest.err | ||
29560 | } && test -s conftest.$ac_objext; then | ||
29561 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29562 | echo "${ECHO_T}yes" >&6; } | ||
29563 | else | ||
29564 | echo "$as_me: failed program was:" >&5 | ||
29565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29566 | |||
29567 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29568 | echo "${ECHO_T}no" >&6; } | ||
29569 | system_wtmpx_path=no | ||
29570 | |||
29571 | fi | ||
29572 | |||
29573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29574 | if test -z "$conf_wtmpx_location"; then | ||
29575 | if test x"$system_wtmpx_path" = x"no" ; then | ||
29576 | cat >>confdefs.h <<\_ACEOF | ||
29577 | #define DISABLE_WTMPX 1 | ||
29578 | _ACEOF | ||
29579 | |||
29580 | fi | ||
29581 | else | ||
29582 | |||
29583 | cat >>confdefs.h <<_ACEOF | ||
29584 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
29585 | _ACEOF | ||
29586 | |||
29587 | fi | ||
29588 | |||
29589 | |||
29590 | if test ! -z "$blibpath" ; then | ||
29591 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
29592 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
29593 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
29594 | fi | ||
29595 | |||
29596 | CFLAGS="$CFLAGS $werror_flags" | ||
29597 | |||
29598 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
29599 | TEST_SSH_IPV6=no | ||
29600 | else | ||
29601 | TEST_SSH_IPV6=yes | ||
29602 | fi | ||
29603 | { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5 | ||
29604 | echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; } | ||
29605 | if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then | ||
29606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29607 | else | ||
29608 | cat >conftest.$ac_ext <<_ACEOF | ||
29609 | /* confdefs.h. */ | ||
29610 | _ACEOF | ||
29611 | cat confdefs.h >>conftest.$ac_ext | ||
29612 | cat >>conftest.$ac_ext <<_ACEOF | ||
29613 | /* end confdefs.h. */ | ||
29614 | $ac_includes_default | ||
29615 | int | ||
29616 | main () | ||
29617 | { | ||
29618 | #ifndef BROKEN_GETADDRINFO | ||
29619 | (void) BROKEN_GETADDRINFO; | ||
29620 | #endif | ||
29621 | |||
29622 | ; | ||
29623 | return 0; | ||
29624 | } | ||
29625 | _ACEOF | ||
29626 | rm -f conftest.$ac_objext | ||
29627 | if { (ac_try="$ac_compile" | ||
29628 | case "(($ac_try" in | ||
29629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29630 | *) ac_try_echo=$ac_try;; | ||
29631 | esac | ||
29632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29633 | (eval "$ac_compile") 2>conftest.er1 | ||
29634 | ac_status=$? | ||
29635 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29636 | rm -f conftest.er1 | ||
29637 | cat conftest.err >&5 | ||
29638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29639 | (exit $ac_status); } && { | ||
29640 | test -z "$ac_c_werror_flag" || | ||
29641 | test ! -s conftest.err | ||
29642 | } && test -s conftest.$ac_objext; then | ||
29643 | ac_cv_have_decl_BROKEN_GETADDRINFO=yes | ||
29644 | else | ||
29645 | echo "$as_me: failed program was:" >&5 | ||
29646 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29647 | |||
29648 | ac_cv_have_decl_BROKEN_GETADDRINFO=no | ||
29649 | fi | ||
29650 | |||
29651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29652 | fi | ||
29653 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5 | ||
29654 | echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; } | ||
29655 | if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then | ||
29656 | TEST_SSH_IPV6=no | ||
29657 | fi | ||
29658 | |||
29659 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
29660 | |||
29661 | |||
29662 | |||
29663 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh" | ||
29664 | |||
29665 | cat >confcache <<\_ACEOF | ||
29666 | # This file is a shell script that caches the results of configure | ||
29667 | # tests run on this system so they can be shared between configure | ||
29668 | # scripts and configure runs, see configure's option --config-cache. | ||
29669 | # It is not useful on other systems. If it contains results you don't | ||
29670 | # want to keep, you may remove or edit it. | ||
29671 | # | ||
29672 | # config.status only pays attention to the cache file if you give it | ||
29673 | # the --recheck option to rerun configure. | ||
29674 | # | ||
29675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
29676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
29677 | # following values. | ||
29678 | |||
29679 | _ACEOF | ||
29680 | |||
29681 | # The following way of writing the cache mishandles newlines in values, | ||
29682 | # but we know of no workaround that is simple, portable, and efficient. | ||
29683 | # So, we kill variables containing newlines. | ||
29684 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
29685 | # and sets the high bit in the cache file unless we assign to the vars. | ||
29686 | ( | ||
29687 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
29688 | eval ac_val=\$$ac_var | ||
29689 | case $ac_val in #( | ||
29690 | *${as_nl}*) | ||
29691 | case $ac_var in #( | ||
29692 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
29693 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
29694 | esac | ||
29695 | case $ac_var in #( | ||
29696 | _ | IFS | as_nl) ;; #( | ||
29697 | *) $as_unset $ac_var ;; | ||
29698 | esac ;; | ||
29699 | esac | ||
29700 | done | ||
29701 | |||
29702 | (set) 2>&1 | | ||
29703 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
29704 | *${as_nl}ac_space=\ *) | ||
29705 | # `set' does not quote correctly, so add quotes (double-quote | ||
29706 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
29707 | sed -n \ | ||
29708 | "s/'/'\\\\''/g; | ||
29709 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
29710 | ;; #( | ||
29711 | *) | ||
29712 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
29713 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
29714 | ;; | ||
29715 | esac | | ||
29716 | sort | ||
29717 | ) | | ||
29718 | sed ' | ||
29719 | /^ac_cv_env_/b end | ||
29720 | t clear | ||
29721 | :clear | ||
29722 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
29723 | t end | ||
29724 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
29725 | :end' >>confcache | ||
29726 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
29727 | if test -w "$cache_file"; then | ||
29728 | test "x$cache_file" != "x/dev/null" && | ||
29729 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
29730 | echo "$as_me: updating cache $cache_file" >&6;} | ||
29731 | cat confcache >$cache_file | ||
29732 | else | ||
29733 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
29734 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
29735 | fi | ||
29736 | fi | ||
29737 | rm -f confcache | ||
29738 | |||
29739 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
29740 | # Let make expand exec_prefix. | ||
29741 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
29742 | |||
29743 | DEFS=-DHAVE_CONFIG_H | ||
29744 | |||
29745 | ac_libobjs= | ||
29746 | ac_ltlibobjs= | ||
29747 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
29748 | # 1. Remove the extension, and $U if already installed. | ||
29749 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
29750 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
29751 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
29752 | # will be set to the directory where LIBOBJS objects are built. | ||
29753 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
29754 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
29755 | done | ||
29756 | LIBOBJS=$ac_libobjs | ||
29757 | |||
29758 | LTLIBOBJS=$ac_ltlibobjs | ||
29759 | |||
29760 | |||
29761 | |||
29762 | : ${CONFIG_STATUS=./config.status} | ||
29763 | ac_clean_files_save=$ac_clean_files | ||
29764 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
29765 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
29766 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
29767 | cat >$CONFIG_STATUS <<_ACEOF | ||
29768 | #! $SHELL | ||
29769 | # Generated by $as_me. | ||
29770 | # Run this file to recreate the current configuration. | ||
29771 | # Compiler output produced by configure, useful for debugging | ||
29772 | # configure, is in config.log if it exists. | ||
29773 | |||
29774 | debug=false | ||
29775 | ac_cs_recheck=false | ||
29776 | ac_cs_silent=false | ||
29777 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
29778 | _ACEOF | ||
29779 | |||
29780 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29781 | ## --------------------- ## | ||
29782 | ## M4sh Initialization. ## | ||
29783 | ## --------------------- ## | ||
29784 | |||
29785 | # Be more Bourne compatible | ||
29786 | DUALCASE=1; export DUALCASE # for MKS sh | ||
29787 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
29788 | emulate sh | ||
29789 | NULLCMD=: | ||
29790 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
29791 | # is contrary to our usage. Disable this feature. | ||
29792 | alias -g '${1+"$@"}'='"$@"' | ||
29793 | setopt NO_GLOB_SUBST | ||
29794 | else | ||
29795 | case `(set -o) 2>/dev/null` in | ||
29796 | *posix*) set -o posix ;; | ||
29797 | esac | ||
29798 | |||
29799 | fi | ||
29800 | |||
29801 | |||
29802 | |||
29803 | |||
29804 | # PATH needs CR | ||
29805 | # Avoid depending upon Character Ranges. | ||
29806 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
29807 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
29808 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
29809 | as_cr_digits='0123456789' | ||
29810 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
29811 | |||
29812 | # The user is always right. | ||
29813 | if test "${PATH_SEPARATOR+set}" != set; then | ||
29814 | echo "#! /bin/sh" >conf$$.sh | ||
29815 | echo "exit 0" >>conf$$.sh | ||
29816 | chmod +x conf$$.sh | ||
29817 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
29818 | PATH_SEPARATOR=';' | ||
29819 | else | ||
29820 | PATH_SEPARATOR=: | ||
29821 | fi | ||
29822 | rm -f conf$$.sh | ||
29823 | fi | ||
29824 | |||
29825 | # Support unset when possible. | ||
29826 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
29827 | as_unset=unset | ||
29828 | else | ||
29829 | as_unset=false | ||
29830 | fi | ||
29831 | |||
29832 | |||
29833 | # IFS | ||
29834 | # We need space, tab and new line, in precisely that order. Quoting is | ||
29835 | # there to prevent editors from complaining about space-tab. | ||
29836 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
29837 | # splitting by setting IFS to empty value.) | ||
29838 | as_nl=' | ||
29839 | ' | ||
29840 | IFS=" "" $as_nl" | ||
29841 | |||
29842 | # Find who we are. Look in the path if we contain no directory separator. | ||
29843 | case $0 in | ||
29844 | *[\\/]* ) as_myself=$0 ;; | ||
29845 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29846 | for as_dir in $PATH | ||
29847 | do | ||
29848 | IFS=$as_save_IFS | ||
29849 | test -z "$as_dir" && as_dir=. | ||
29850 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
29851 | done | ||
29852 | IFS=$as_save_IFS | ||
29853 | |||
29854 | ;; | ||
29855 | esac | ||
29856 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
29857 | # in which case we are not to be found in the path. | ||
29858 | if test "x$as_myself" = x; then | ||
29859 | as_myself=$0 | ||
29860 | fi | ||
29861 | if test ! -f "$as_myself"; then | ||
29862 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
29863 | { (exit 1); exit 1; } | ||
29864 | fi | ||
29865 | |||
29866 | # Work around bugs in pre-3.0 UWIN ksh. | ||
29867 | for as_var in ENV MAIL MAILPATH | ||
29868 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29869 | done | ||
29870 | PS1='$ ' | ||
29871 | PS2='> ' | ||
29872 | PS4='+ ' | ||
29873 | |||
29874 | # NLS nuisances. | ||
29875 | for as_var in \ | ||
29876 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
29877 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
29878 | LC_TELEPHONE LC_TIME | ||
29879 | do | ||
29880 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
29881 | eval $as_var=C; export $as_var | ||
29882 | else | ||
29883 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29884 | fi | ||
29885 | done | ||
29886 | |||
29887 | # Required to use basename. | ||
29888 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29889 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29890 | as_expr=expr | ||
29891 | else | ||
29892 | as_expr=false | ||
29893 | fi | ||
29894 | |||
29895 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
29896 | as_basename=basename | ||
29897 | else | ||
29898 | as_basename=false | ||
29899 | fi | ||
29900 | |||
29901 | |||
29902 | # Name of the executable. | ||
29903 | as_me=`$as_basename -- "$0" || | ||
29904 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
29905 | X"$0" : 'X\(//\)$' \| \ | ||
29906 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
29907 | echo X/"$0" | | ||
29908 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
29909 | s//\1/ | ||
29910 | q | ||
29911 | } | ||
29912 | /^X\/\(\/\/\)$/{ | ||
29913 | s//\1/ | ||
29914 | q | ||
29915 | } | ||
29916 | /^X\/\(\/\).*/{ | ||
29917 | s//\1/ | ||
29918 | q | ||
29919 | } | ||
29920 | s/.*/./; q'` | ||
29921 | |||
29922 | # CDPATH. | ||
29923 | $as_unset CDPATH | ||
29924 | |||
29925 | |||
29926 | |||
29927 | as_lineno_1=$LINENO | ||
29928 | as_lineno_2=$LINENO | ||
29929 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
29930 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
29931 | |||
29932 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
29933 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
29934 | # line-number line after each line using $LINENO; the second 'sed' | ||
29935 | # does the real work. The second script uses 'N' to pair each | ||
29936 | # line-number line with the line containing $LINENO, and appends | ||
29937 | # trailing '-' during substitution so that $LINENO is not a special | ||
29938 | # case at line end. | ||
29939 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
29940 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
29941 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
29942 | sed -n ' | ||
29943 | p | ||
29944 | /[$]LINENO/= | ||
29945 | ' <$as_myself | | ||
29946 | sed ' | ||
29947 | s/[$]LINENO.*/&-/ | ||
29948 | t lineno | ||
29949 | b | ||
29950 | :lineno | ||
29951 | N | ||
29952 | :loop | ||
29953 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
29954 | t loop | ||
29955 | s/-\n.*// | ||
29956 | ' >$as_me.lineno && | ||
29957 | chmod +x "$as_me.lineno" || | ||
29958 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
29959 | { (exit 1); exit 1; }; } | ||
29960 | |||
29961 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
29962 | # (the dirname of $[0] is not the place where we might find the | ||
29963 | # original and so on. Autoconf is especially sensitive to this). | ||
29964 | . "./$as_me.lineno" | ||
29965 | # Exit status is that of the last command. | ||
29966 | exit | ||
29967 | } | ||
29968 | |||
29969 | |||
29970 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
29971 | as_dirname=dirname | ||
29972 | else | ||
29973 | as_dirname=false | ||
29974 | fi | ||
29975 | |||
29976 | ECHO_C= ECHO_N= ECHO_T= | ||
29977 | case `echo -n x` in | ||
29978 | -n*) | ||
29979 | case `echo 'x\c'` in | ||
29980 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
29981 | *) ECHO_C='\c';; | ||
29982 | esac;; | ||
29983 | *) | ||
29984 | ECHO_N='-n';; | ||
29985 | esac | ||
29986 | |||
29987 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29988 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29989 | as_expr=expr | ||
29990 | else | ||
29991 | as_expr=false | ||
29992 | fi | ||
29993 | |||
29994 | rm -f conf$$ conf$$.exe conf$$.file | ||
29995 | if test -d conf$$.dir; then | ||
29996 | rm -f conf$$.dir/conf$$.file | ||
29997 | else | ||
29998 | rm -f conf$$.dir | ||
29999 | mkdir conf$$.dir | ||
30000 | fi | ||
30001 | echo >conf$$.file | ||
30002 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
30003 | as_ln_s='ln -s' | ||
30004 | # ... but there are two gotchas: | ||
30005 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
30006 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
30007 | # In both cases, we have to default to `cp -p'. | ||
30008 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
30009 | as_ln_s='cp -p' | ||
30010 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
30011 | as_ln_s=ln | ||
30012 | else | ||
30013 | as_ln_s='cp -p' | ||
30014 | fi | ||
30015 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
30016 | rmdir conf$$.dir 2>/dev/null | ||
30017 | |||
30018 | if mkdir -p . 2>/dev/null; then | ||
30019 | as_mkdir_p=: | ||
30020 | else | ||
30021 | test -d ./-p && rmdir ./-p | ||
30022 | as_mkdir_p=false | ||
30023 | fi | ||
30024 | |||
30025 | if test -x / >/dev/null 2>&1; then | ||
30026 | as_test_x='test -x' | ||
30027 | else | ||
30028 | if ls -dL / >/dev/null 2>&1; then | ||
30029 | as_ls_L_option=L | ||
30030 | else | ||
30031 | as_ls_L_option= | ||
30032 | fi | ||
30033 | as_test_x=' | ||
30034 | eval sh -c '\'' | ||
30035 | if test -d "$1"; then | ||
30036 | test -d "$1/."; | ||
30037 | else | ||
30038 | case $1 in | ||
30039 | -*)set "./$1";; | ||
30040 | esac; | ||
30041 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
30042 | ???[sx]*):;;*)false;;esac;fi | ||
30043 | '\'' sh | ||
30044 | ' | ||
30045 | fi | ||
30046 | as_executable_p=$as_test_x | ||
30047 | |||
30048 | # Sed expression to map a string onto a valid CPP name. | ||
30049 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
30050 | |||
30051 | # Sed expression to map a string onto a valid variable name. | ||
30052 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
30053 | |||
30054 | |||
30055 | exec 6>&1 | ||
30056 | |||
30057 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
30058 | # report actual input values of CONFIG_FILES etc. instead of their | ||
30059 | # values after options handling. | ||
30060 | ac_log=" | ||
30061 | This file was extended by OpenSSH $as_me Portable, which was | ||
30062 | generated by GNU Autoconf 2.61. Invocation command line was | ||
30063 | |||
30064 | CONFIG_FILES = $CONFIG_FILES | ||
30065 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
30066 | CONFIG_LINKS = $CONFIG_LINKS | ||
30067 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
30068 | $ $0 $@ | ||
30069 | |||
30070 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
30071 | " | ||
30072 | |||
30073 | _ACEOF | ||
30074 | |||
30075 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30076 | # Files that config.status was made for. | ||
30077 | config_files="$ac_config_files" | ||
30078 | config_headers="$ac_config_headers" | ||
30079 | |||
30080 | _ACEOF | ||
30081 | |||
30082 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30083 | ac_cs_usage="\ | ||
30084 | \`$as_me' instantiates files from templates according to the | ||
30085 | current configuration. | ||
30086 | |||
30087 | Usage: $0 [OPTIONS] [FILE]... | ||
30088 | |||
30089 | -h, --help print this help, then exit | ||
30090 | -V, --version print version number and configuration settings, then exit | ||
30091 | -q, --quiet do not print progress messages | ||
30092 | -d, --debug don't remove temporary files | ||
30093 | --recheck update $as_me by reconfiguring in the same conditions | ||
30094 | --file=FILE[:TEMPLATE] | ||
30095 | instantiate the configuration file FILE | ||
30096 | --header=FILE[:TEMPLATE] | ||
30097 | instantiate the configuration header FILE | ||
30098 | |||
30099 | Configuration files: | ||
30100 | $config_files | ||
30101 | |||
30102 | Configuration headers: | ||
30103 | $config_headers | ||
30104 | |||
30105 | Report bugs to <bug-autoconf@gnu.org>." | ||
30106 | |||
30107 | _ACEOF | ||
30108 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30109 | ac_cs_version="\\ | ||
30110 | OpenSSH config.status Portable | ||
30111 | configured by $0, generated by GNU Autoconf 2.61, | ||
30112 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
30113 | |||
30114 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
30115 | This config.status script is free software; the Free Software Foundation | ||
30116 | gives unlimited permission to copy, distribute and modify it." | ||
30117 | |||
30118 | ac_pwd='$ac_pwd' | ||
30119 | srcdir='$srcdir' | ||
30120 | INSTALL='$INSTALL' | ||
30121 | _ACEOF | ||
30122 | |||
30123 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30124 | # If no file are specified by the user, then we need to provide default | ||
30125 | # value. By we need to know if files were specified by the user. | ||
30126 | ac_need_defaults=: | ||
30127 | while test $# != 0 | ||
30128 | do | ||
30129 | case $1 in | ||
30130 | --*=*) | ||
30131 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
30132 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
30133 | ac_shift=: | ||
30134 | ;; | ||
30135 | *) | ||
30136 | ac_option=$1 | ||
30137 | ac_optarg=$2 | ||
30138 | ac_shift=shift | ||
30139 | ;; | ||
30140 | esac | ||
30141 | |||
30142 | case $ac_option in | ||
30143 | # Handling of the options. | ||
30144 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
30145 | ac_cs_recheck=: ;; | ||
30146 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
30147 | echo "$ac_cs_version"; exit ;; | ||
30148 | --debug | --debu | --deb | --de | --d | -d ) | ||
30149 | debug=: ;; | ||
30150 | --file | --fil | --fi | --f ) | ||
30151 | $ac_shift | ||
30152 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
30153 | ac_need_defaults=false;; | ||
30154 | --header | --heade | --head | --hea ) | ||
30155 | $ac_shift | ||
30156 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
30157 | ac_need_defaults=false;; | ||
30158 | --he | --h) | ||
30159 | # Conflict between --help and --header | ||
30160 | { echo "$as_me: error: ambiguous option: $1 | ||
30161 | Try \`$0 --help' for more information." >&2 | ||
30162 | { (exit 1); exit 1; }; };; | ||
30163 | --help | --hel | -h ) | ||
30164 | echo "$ac_cs_usage"; exit ;; | ||
30165 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
30166 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
30167 | ac_cs_silent=: ;; | ||
30168 | |||
30169 | # This is an error. | ||
30170 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
30171 | Try \`$0 --help' for more information." >&2 | ||
30172 | { (exit 1); exit 1; }; } ;; | ||
30173 | |||
30174 | *) ac_config_targets="$ac_config_targets $1" | ||
30175 | ac_need_defaults=false ;; | ||
30176 | |||
30177 | esac | ||
30178 | shift | ||
30179 | done | ||
30180 | |||
30181 | ac_configure_extra_args= | ||
30182 | |||
30183 | if $ac_cs_silent; then | ||
30184 | exec 6>/dev/null | ||
30185 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
30186 | fi | ||
30187 | |||
30188 | _ACEOF | ||
30189 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30190 | if \$ac_cs_recheck; then | ||
30191 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
30192 | CONFIG_SHELL=$SHELL | ||
30193 | export CONFIG_SHELL | ||
30194 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
30195 | fi | ||
30196 | |||
30197 | _ACEOF | ||
30198 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30199 | exec 5>>config.log | ||
30200 | { | ||
30201 | echo | ||
30202 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
30203 | ## Running $as_me. ## | ||
30204 | _ASBOX | ||
30205 | echo "$ac_log" | ||
30206 | } >&5 | ||
30207 | |||
30208 | _ACEOF | ||
30209 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30210 | _ACEOF | ||
30211 | |||
30212 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30213 | |||
30214 | # Handling of arguments. | ||
30215 | for ac_config_target in $ac_config_targets | ||
30216 | do | ||
30217 | case $ac_config_target in | ||
30218 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
30219 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
30220 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
30221 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
30222 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
30223 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
30224 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
30225 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
30226 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
30227 | |||
30228 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
30229 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
30230 | { (exit 1); exit 1; }; };; | ||
30231 | esac | ||
30232 | done | ||
30233 | |||
30234 | |||
30235 | # If the user did not use the arguments to specify the items to instantiate, | ||
30236 | # then the envvar interface is used. Set only those that are not. | ||
30237 | # We use the long form for the default assignment because of an extremely | ||
30238 | # bizarre bug on SunOS 4.1.3. | ||
30239 | if $ac_need_defaults; then | ||
30240 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
30241 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
30242 | fi | ||
30243 | |||
30244 | # Have a temporary directory for convenience. Make it in the build tree | ||
30245 | # simply because there is no reason against having it here, and in addition, | ||
30246 | # creating and moving files from /tmp can sometimes cause problems. | ||
30247 | # Hook for its removal unless debugging. | ||
30248 | # Note that there is a small window in which the directory will not be cleaned: | ||
30249 | # after its creation but before its name has been assigned to `$tmp'. | ||
30250 | $debug || | ||
30251 | { | ||
30252 | tmp= | ||
30253 | trap 'exit_status=$? | ||
30254 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
30255 | ' 0 | ||
30256 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
30257 | } | ||
30258 | # Create a (secure) tmp directory for tmp files. | ||
30259 | |||
30260 | { | ||
30261 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
30262 | test -n "$tmp" && test -d "$tmp" | ||
30263 | } || | ||
30264 | { | ||
30265 | tmp=./conf$$-$RANDOM | ||
30266 | (umask 077 && mkdir "$tmp") | ||
30267 | } || | ||
30268 | { | ||
30269 | echo "$me: cannot create a temporary directory in ." >&2 | ||
30270 | { (exit 1); exit 1; } | ||
30271 | } | ||
30272 | |||
30273 | # | ||
30274 | # Set up the sed scripts for CONFIG_FILES section. | ||
30275 | # | ||
30276 | |||
30277 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
30278 | # This happens for instance when ./config.status config.h | ||
30279 | if test -n "$CONFIG_FILES"; then | ||
30280 | |||
30281 | _ACEOF | ||
30282 | |||
30283 | |||
30284 | |||
30285 | ac_delim='%!_!# ' | ||
30286 | for ac_last_try in false false false false false :; do | ||
30287 | cat >conf$$subs.sed <<_ACEOF | ||
30288 | SHELL!$SHELL$ac_delim | ||
30289 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
30290 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
30291 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
30292 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
30293 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
30294 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
30295 | exec_prefix!$exec_prefix$ac_delim | ||
30296 | prefix!$prefix$ac_delim | ||
30297 | program_transform_name!$program_transform_name$ac_delim | ||
30298 | bindir!$bindir$ac_delim | ||
30299 | sbindir!$sbindir$ac_delim | ||
30300 | libexecdir!$libexecdir$ac_delim | ||
30301 | datarootdir!$datarootdir$ac_delim | ||
30302 | datadir!$datadir$ac_delim | ||
30303 | sysconfdir!$sysconfdir$ac_delim | ||
30304 | sharedstatedir!$sharedstatedir$ac_delim | ||
30305 | localstatedir!$localstatedir$ac_delim | ||
30306 | includedir!$includedir$ac_delim | ||
30307 | oldincludedir!$oldincludedir$ac_delim | ||
30308 | docdir!$docdir$ac_delim | ||
30309 | infodir!$infodir$ac_delim | ||
30310 | htmldir!$htmldir$ac_delim | ||
30311 | dvidir!$dvidir$ac_delim | ||
30312 | pdfdir!$pdfdir$ac_delim | ||
30313 | psdir!$psdir$ac_delim | ||
30314 | libdir!$libdir$ac_delim | ||
30315 | localedir!$localedir$ac_delim | ||
30316 | mandir!$mandir$ac_delim | ||
30317 | DEFS!$DEFS$ac_delim | ||
30318 | ECHO_C!$ECHO_C$ac_delim | ||
30319 | ECHO_N!$ECHO_N$ac_delim | ||
30320 | ECHO_T!$ECHO_T$ac_delim | ||
30321 | LIBS!$LIBS$ac_delim | ||
30322 | build_alias!$build_alias$ac_delim | ||
30323 | host_alias!$host_alias$ac_delim | ||
30324 | target_alias!$target_alias$ac_delim | ||
30325 | CC!$CC$ac_delim | ||
30326 | CFLAGS!$CFLAGS$ac_delim | ||
30327 | LDFLAGS!$LDFLAGS$ac_delim | ||
30328 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
30329 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
30330 | EXEEXT!$EXEEXT$ac_delim | ||
30331 | OBJEXT!$OBJEXT$ac_delim | ||
30332 | build!$build$ac_delim | ||
30333 | build_cpu!$build_cpu$ac_delim | ||
30334 | build_vendor!$build_vendor$ac_delim | ||
30335 | build_os!$build_os$ac_delim | ||
30336 | host!$host$ac_delim | ||
30337 | host_cpu!$host_cpu$ac_delim | ||
30338 | host_vendor!$host_vendor$ac_delim | ||
30339 | host_os!$host_os$ac_delim | ||
30340 | CPP!$CPP$ac_delim | ||
30341 | GREP!$GREP$ac_delim | ||
30342 | EGREP!$EGREP$ac_delim | ||
30343 | AWK!$AWK$ac_delim | ||
30344 | RANLIB!$RANLIB$ac_delim | ||
30345 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
30346 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
30347 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
30348 | AR!$AR$ac_delim | ||
30349 | CAT!$CAT$ac_delim | ||
30350 | KILL!$KILL$ac_delim | ||
30351 | PERL!$PERL$ac_delim | ||
30352 | SED!$SED$ac_delim | ||
30353 | ENT!$ENT$ac_delim | ||
30354 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
30355 | SH!$SH$ac_delim | ||
30356 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
30357 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
30358 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
30359 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
30360 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
30361 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
30362 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
30363 | LD!$LD$ac_delim | ||
30364 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
30365 | PKGCONFIG!$PKGCONFIG$ac_delim | ||
30366 | LIBEDIT!$LIBEDIT$ac_delim | ||
30367 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
30368 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
30369 | PROG_LS!$PROG_LS$ac_delim | ||
30370 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
30371 | PROG_ARP!$PROG_ARP$ac_delim | ||
30372 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
30373 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
30374 | PROG_PS!$PROG_PS$ac_delim | ||
30375 | PROG_SAR!$PROG_SAR$ac_delim | ||
30376 | PROG_W!$PROG_W$ac_delim | ||
30377 | PROG_WHO!$PROG_WHO$ac_delim | ||
30378 | PROG_LAST!$PROG_LAST$ac_delim | ||
30379 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
30380 | PROG_DF!$PROG_DF$ac_delim | ||
30381 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
30382 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
30383 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
30384 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
30385 | _ACEOF | ||
30386 | |||
30387 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
30388 | break | ||
30389 | elif $ac_last_try; then | ||
30390 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30391 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30392 | { (exit 1); exit 1; }; } | ||
30393 | else | ||
30394 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30395 | fi | ||
30396 | done | ||
30397 | |||
30398 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30399 | if test -n "$ac_eof"; then | ||
30400 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30401 | ac_eof=`expr $ac_eof + 1` | ||
30402 | fi | ||
30403 | |||
30404 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30405 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
30406 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30407 | _ACEOF | ||
30408 | sed ' | ||
30409 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30410 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30411 | :n | ||
30412 | t n | ||
30413 | s/'"$ac_delim"'$/,g/; t | ||
30414 | s/$/\\/; p | ||
30415 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30416 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30417 | rm -f conf$$subs.sed | ||
30418 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30419 | CEOF$ac_eof | ||
30420 | _ACEOF | ||
30421 | |||
30422 | |||
30423 | ac_delim='%!_!# ' | ||
30424 | for ac_last_try in false false false false false :; do | ||
30425 | cat >conf$$subs.sed <<_ACEOF | ||
30426 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
30427 | KRB5CONF!$KRB5CONF$ac_delim | ||
30428 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
30429 | xauth_path!$xauth_path$ac_delim | ||
30430 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
30431 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
30432 | NROFF!$NROFF$ac_delim | ||
30433 | MANTYPE!$MANTYPE$ac_delim | ||
30434 | mansubdir!$mansubdir$ac_delim | ||
30435 | user_path!$user_path$ac_delim | ||
30436 | piddir!$piddir$ac_delim | ||
30437 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
30438 | LIBOBJS!$LIBOBJS$ac_delim | ||
30439 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
30440 | _ACEOF | ||
30441 | |||
30442 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then | ||
30443 | break | ||
30444 | elif $ac_last_try; then | ||
30445 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30446 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30447 | { (exit 1); exit 1; }; } | ||
30448 | else | ||
30449 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30450 | fi | ||
30451 | done | ||
30452 | |||
30453 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30454 | if test -n "$ac_eof"; then | ||
30455 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30456 | ac_eof=`expr $ac_eof + 1` | ||
30457 | fi | ||
30458 | |||
30459 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30460 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
30461 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
30462 | _ACEOF | ||
30463 | sed ' | ||
30464 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30465 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30466 | :n | ||
30467 | t n | ||
30468 | s/'"$ac_delim"'$/,g/; t | ||
30469 | s/$/\\/; p | ||
30470 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30471 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30472 | rm -f conf$$subs.sed | ||
30473 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30474 | :end | ||
30475 | s/|#_!!_#|//g | ||
30476 | CEOF$ac_eof | ||
30477 | _ACEOF | ||
30478 | |||
30479 | |||
30480 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
30481 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
30482 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
30483 | # (actually we leave an empty line to preserve line numbers). | ||
30484 | if test "x$srcdir" = x.; then | ||
30485 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
30486 | s/:*\$(srcdir):*/:/ | ||
30487 | s/:*\${srcdir}:*/:/ | ||
30488 | s/:*@srcdir@:*/:/ | ||
30489 | s/^\([^=]*=[ ]*\):*/\1/ | ||
30490 | s/:*$// | ||
30491 | s/^[^=]*=[ ]*$// | ||
30492 | }' | ||
30493 | fi | ||
30494 | |||
30495 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30496 | fi # test -n "$CONFIG_FILES" | ||
30497 | |||
30498 | |||
30499 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
30500 | do | ||
30501 | case $ac_tag in | ||
30502 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
30503 | esac | ||
30504 | case $ac_mode$ac_tag in | ||
30505 | :[FHL]*:*);; | ||
30506 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
30507 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
30508 | { (exit 1); exit 1; }; };; | ||
30509 | :[FH]-) ac_tag=-:-;; | ||
30510 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
30511 | esac | ||
30512 | ac_save_IFS=$IFS | ||
30513 | IFS=: | ||
30514 | set x $ac_tag | ||
30515 | IFS=$ac_save_IFS | ||
30516 | shift | ||
30517 | ac_file=$1 | ||
30518 | shift | ||
30519 | |||
30520 | case $ac_mode in | ||
30521 | :L) ac_source=$1;; | ||
30522 | :[FH]) | ||
30523 | ac_file_inputs= | ||
30524 | for ac_f | ||
30525 | do | ||
30526 | case $ac_f in | ||
30527 | -) ac_f="$tmp/stdin";; | ||
30528 | *) # Look for the file first in the build tree, then in the source tree | ||
30529 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
30530 | # because $ac_f cannot contain `:'. | ||
30531 | test -f "$ac_f" || | ||
30532 | case $ac_f in | ||
30533 | [\\/$]*) false;; | ||
30534 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
30535 | esac || | ||
30536 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
30537 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
30538 | { (exit 1); exit 1; }; };; | ||
30539 | esac | ||
30540 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
30541 | done | ||
30542 | |||
30543 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
30544 | # use $as_me), people would be surprised to read: | ||
30545 | # /* config.h. Generated by config.status. */ | ||
30546 | configure_input="Generated from "`IFS=: | ||
30547 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
30548 | if test x"$ac_file" != x-; then | ||
30549 | configure_input="$ac_file. $configure_input" | ||
30550 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
30551 | echo "$as_me: creating $ac_file" >&6;} | ||
30552 | fi | ||
30553 | |||
30554 | case $ac_tag in | ||
30555 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
30556 | esac | ||
30557 | ;; | ||
30558 | esac | ||
30559 | |||
30560 | ac_dir=`$as_dirname -- "$ac_file" || | ||
30561 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30562 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
30563 | X"$ac_file" : 'X\(//\)$' \| \ | ||
30564 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
30565 | echo X"$ac_file" | | ||
30566 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30567 | s//\1/ | ||
30568 | q | ||
30569 | } | ||
30570 | /^X\(\/\/\)[^/].*/{ | ||
30571 | s//\1/ | ||
30572 | q | ||
30573 | } | ||
30574 | /^X\(\/\/\)$/{ | ||
30575 | s//\1/ | ||
30576 | q | ||
30577 | } | ||
30578 | /^X\(\/\).*/{ | ||
30579 | s//\1/ | ||
30580 | q | ||
30581 | } | ||
30582 | s/.*/./; q'` | ||
30583 | { as_dir="$ac_dir" | ||
30584 | case $as_dir in #( | ||
30585 | -*) as_dir=./$as_dir;; | ||
30586 | esac | ||
30587 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
30588 | as_dirs= | ||
30589 | while :; do | ||
30590 | case $as_dir in #( | ||
30591 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
30592 | *) as_qdir=$as_dir;; | ||
30593 | esac | ||
30594 | as_dirs="'$as_qdir' $as_dirs" | ||
30595 | as_dir=`$as_dirname -- "$as_dir" || | ||
30596 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30597 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
30598 | X"$as_dir" : 'X\(//\)$' \| \ | ||
30599 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
30600 | echo X"$as_dir" | | ||
30601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30602 | s//\1/ | ||
30603 | q | ||
30604 | } | ||
30605 | /^X\(\/\/\)[^/].*/{ | ||
30606 | s//\1/ | ||
30607 | q | ||
30608 | } | ||
30609 | /^X\(\/\/\)$/{ | ||
30610 | s//\1/ | ||
30611 | q | ||
30612 | } | ||
30613 | /^X\(\/\).*/{ | ||
30614 | s//\1/ | ||
30615 | q | ||
30616 | } | ||
30617 | s/.*/./; q'` | ||
30618 | test -d "$as_dir" && break | ||
30619 | done | ||
30620 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
30621 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
30622 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
30623 | { (exit 1); exit 1; }; }; } | ||
30624 | ac_builddir=. | ||
30625 | |||
30626 | case "$ac_dir" in | ||
30627 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30628 | *) | ||
30629 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
30630 | # A ".." for each directory in $ac_dir_suffix. | ||
30631 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
30632 | case $ac_top_builddir_sub in | ||
30633 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30634 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
30635 | esac ;; | ||
30636 | esac | ||
30637 | ac_abs_top_builddir=$ac_pwd | ||
30638 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
30639 | # for backward compatibility: | ||
30640 | ac_top_builddir=$ac_top_build_prefix | ||
30641 | |||
30642 | case $srcdir in | ||
30643 | .) # We are building in place. | ||
30644 | ac_srcdir=. | ||
30645 | ac_top_srcdir=$ac_top_builddir_sub | ||
30646 | ac_abs_top_srcdir=$ac_pwd ;; | ||
30647 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
30648 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
30649 | ac_top_srcdir=$srcdir | ||
30650 | ac_abs_top_srcdir=$srcdir ;; | ||
30651 | *) # Relative name. | ||
30652 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
30653 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
30654 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
30655 | esac | ||
30656 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
30657 | |||
30658 | |||
30659 | case $ac_mode in | ||
30660 | :F) | ||
30661 | # | ||
30662 | # CONFIG_FILE | ||
30663 | # | ||
30664 | |||
30665 | case $INSTALL in | ||
30666 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
30667 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
30668 | esac | ||
30669 | _ACEOF | ||
30670 | |||
30671 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30672 | # If the template does not know about datarootdir, expand it. | ||
30673 | # FIXME: This hack should be removed a few years after 2.60. | ||
30674 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
30675 | |||
30676 | case `sed -n '/datarootdir/ { | ||
30677 | p | ||
30678 | q | ||
30679 | } | ||
30680 | /@datadir@/p | ||
30681 | /@docdir@/p | ||
30682 | /@infodir@/p | ||
30683 | /@localedir@/p | ||
30684 | /@mandir@/p | ||
30685 | ' $ac_file_inputs` in | ||
30686 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
30687 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
30688 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
30689 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
30690 | _ACEOF | ||
30691 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30692 | ac_datarootdir_hack=' | ||
30693 | s&@datadir@&$datadir&g | ||
30694 | s&@docdir@&$docdir&g | ||
30695 | s&@infodir@&$infodir&g | ||
30696 | s&@localedir@&$localedir&g | ||
30697 | s&@mandir@&$mandir&g | ||
30698 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
30699 | esac | ||
30700 | _ACEOF | ||
30701 | |||
30702 | # Neutralize VPATH when `$srcdir' = `.'. | ||
30703 | # Shell code in configure.ac might set extrasub. | ||
30704 | # FIXME: do we really want to maintain this feature? | ||
30705 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30706 | sed "$ac_vpsub | ||
30707 | $extrasub | ||
30708 | _ACEOF | ||
30709 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30710 | :t | ||
30711 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30712 | s&@configure_input@&$configure_input&;t t | ||
30713 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
30714 | s&@srcdir@&$ac_srcdir&;t t | ||
30715 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
30716 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
30717 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
30718 | s&@builddir@&$ac_builddir&;t t | ||
30719 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
30720 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
30721 | s&@INSTALL@&$ac_INSTALL&;t t | ||
30722 | $ac_datarootdir_hack | ||
30723 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
30724 | |||
30725 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
30726 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
30727 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
30728 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30729 | which seems to be undefined. Please make sure it is defined." >&5 | ||
30730 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30731 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
30732 | |||
30733 | rm -f "$tmp/stdin" | ||
30734 | case $ac_file in | ||
30735 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
30736 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
30737 | esac | ||
30738 | ;; | ||
30739 | :H) | ||
30740 | # | ||
30741 | # CONFIG_HEADER | ||
30742 | # | ||
30743 | _ACEOF | ||
30744 | |||
30745 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
30746 | # substitutes the proper values into config.h.in to produce config.h. | ||
30747 | rm -f conftest.defines conftest.tail | ||
30748 | # First, append a space to every undef/define line, to ease matching. | ||
30749 | echo 's/$/ /' >conftest.defines | ||
30750 | # Then, protect against being on the right side of a sed subst, or in | ||
30751 | # an unquoted here document, in config.status. If some macros were | ||
30752 | # called several times there might be several #defines for the same | ||
30753 | # symbol, which is useless. But do not sort them, since the last | ||
30754 | # AC_DEFINE must be honored. | ||
30755 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
30756 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
30757 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
30758 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
30759 | # just an empty string. | ||
30760 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
30761 | ac_dB='\\)[ (].*,\\1define\\2' | ||
30762 | ac_dC=' ' | ||
30763 | ac_dD=' ,' | ||
30764 | |||
30765 | uniq confdefs.h | | ||
30766 | sed -n ' | ||
30767 | t rset | ||
30768 | :rset | ||
30769 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
30770 | t ok | ||
30771 | d | ||
30772 | :ok | ||
30773 | s/[\\&,]/\\&/g | ||
30774 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
30775 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
30776 | ' >>conftest.defines | ||
30777 | |||
30778 | # Remove the space that was appended to ease matching. | ||
30779 | # Then replace #undef with comments. This is necessary, for | ||
30780 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
30781 | # on some systems where configure will not decide to define it. | ||
30782 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
30783 | echo 's/ $// | ||
30784 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
30785 | |||
30786 | # Break up conftest.defines: | ||
30787 | ac_max_sed_lines=50 | ||
30788 | |||
30789 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
30790 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
30791 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
30792 | # et cetera. | ||
30793 | ac_in='$ac_file_inputs' | ||
30794 | ac_out='"$tmp/out1"' | ||
30795 | ac_nxt='"$tmp/out2"' | ||
30796 | |||
30797 | while : | ||
30798 | do | ||
30799 | # Write a here document: | ||
30800 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30801 | # First, check the format of the line: | ||
30802 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
30803 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
30804 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
30805 | b | ||
30806 | :def | ||
30807 | _ACEOF | ||
30808 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
30809 | echo 'CEOF | ||
30810 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
30811 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
30812 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
30813 | grep . conftest.tail >/dev/null || break | ||
30814 | rm -f conftest.defines | ||
30815 | mv conftest.tail conftest.defines | ||
30816 | done | ||
30817 | rm -f conftest.defines conftest.tail | ||
30818 | |||
30819 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
30820 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30821 | if test x"$ac_file" != x-; then | ||
30822 | echo "/* $configure_input */" >"$tmp/config.h" | ||
30823 | cat "$ac_result" >>"$tmp/config.h" | ||
30824 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
30825 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
30826 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
30827 | else | ||
30828 | rm -f $ac_file | ||
30829 | mv "$tmp/config.h" $ac_file | ||
30830 | fi | ||
30831 | else | ||
30832 | echo "/* $configure_input */" | ||
30833 | cat "$ac_result" | ||
30834 | fi | ||
30835 | rm -f "$tmp/out12" | ||
30836 | ;; | ||
30837 | |||
30838 | |||
30839 | esac | ||
30840 | |||
30841 | done # for ac_tag | ||
30842 | |||
30843 | |||
30844 | { (exit 0); exit 0; } | ||
30845 | _ACEOF | ||
30846 | chmod +x $CONFIG_STATUS | ||
30847 | ac_clean_files=$ac_clean_files_save | ||
30848 | |||
30849 | |||
30850 | # configure is writing to config.log, and then calls config.status. | ||
30851 | # config.status does its own redirection, appending to config.log. | ||
30852 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
30853 | # by configure, so config.status won't be able to write to it; its | ||
30854 | # output is simply discarded. So we exec the FD to /dev/null, | ||
30855 | # effectively closing config.log, so it can be properly (re)opened and | ||
30856 | # appended to by config.status. When coming back to configure, we | ||
30857 | # need to make the FD available again. | ||
30858 | if test "$no_create" != yes; then | ||
30859 | ac_cs_success=: | ||
30860 | ac_config_status_args= | ||
30861 | test "$silent" = yes && | ||
30862 | ac_config_status_args="$ac_config_status_args --quiet" | ||
30863 | exec 5>/dev/null | ||
30864 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
30865 | exec 5>>config.log | ||
30866 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
30867 | # would make configure fail if this is the last instruction. | ||
30868 | $ac_cs_success || { (exit 1); exit 1; } | ||
30869 | fi | ||
30870 | |||
30871 | |||
30872 | # Print summary of options | ||
30873 | |||
30874 | # Someone please show me a better way :) | ||
30875 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
30876 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
30877 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
30878 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
30879 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
30880 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
30881 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
30882 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
30883 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
30884 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
30885 | |||
30886 | echo "" | ||
30887 | echo "OpenSSH has been configured with the following options:" | ||
30888 | echo " User binaries: $B" | ||
30889 | echo " System binaries: $C" | ||
30890 | echo " Configuration files: $D" | ||
30891 | echo " Askpass program: $E" | ||
30892 | echo " Manual pages: $F" | ||
30893 | echo " PID file: $G" | ||
30894 | echo " Privilege separation chroot path: $H" | ||
30895 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30896 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
30897 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
30898 | else | ||
30899 | echo " sshd default user PATH: $I" | ||
30900 | if test ! -z "$external_path_file"; then | ||
30901 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
30902 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
30903 | fi | ||
30904 | fi | ||
30905 | if test ! -z "$superuser_path" ; then | ||
30906 | echo " sshd superuser user PATH: $J" | ||
30907 | fi | ||
30908 | echo " Manpage format: $MANTYPE" | ||
30909 | echo " PAM support: $PAM_MSG" | ||
30910 | echo " OSF SIA support: $SIA_MSG" | ||
30911 | echo " KerberosV support: $KRB5_MSG" | ||
30912 | echo " SELinux support: $SELINUX_MSG" | ||
30913 | echo " Smartcard support: $SCARD_MSG" | ||
30914 | echo " S/KEY support: $SKEY_MSG" | ||
30915 | echo " TCP Wrappers support: $TCPW_MSG" | ||
30916 | echo " MD5 password support: $MD5_MSG" | ||
30917 | echo " libedit support: $LIBEDIT_MSG" | ||
30918 | echo " Solaris process contract support: $SPC_MSG" | ||
30919 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
30920 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
30921 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
30922 | echo " Random number source: $RAND_MSG" | ||
30923 | if test ! -z "$USE_RAND_HELPER" ; then | ||
30924 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
30925 | fi | ||
30926 | |||
30927 | echo "" | ||
30928 | |||
30929 | echo " Host: ${host}" | ||
30930 | echo " Compiler: ${CC}" | ||
30931 | echo " Compiler flags: ${CFLAGS}" | ||
30932 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
30933 | echo " Linker flags: ${LDFLAGS}" | ||
30934 | echo " Libraries: ${LIBS}" | ||
30935 | if test ! -z "${SSHDLIBS}"; then | ||
30936 | echo " +for sshd: ${SSHDLIBS}" | ||
30937 | fi | ||
30938 | |||
30939 | echo "" | ||
30940 | |||
30941 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
30942 | echo "SVR4 style packages are supported with \"make package\"" | ||
30943 | echo "" | ||
30944 | fi | ||
30945 | |||
30946 | if test "x$PAM_MSG" = "xyes" ; then | ||
30947 | echo "PAM is enabled. You may need to install a PAM control file " | ||
30948 | echo "for sshd, otherwise password authentication may fail. " | ||
30949 | echo "Example PAM control files can be found in the contrib/ " | ||
30950 | echo "subdirectory" | ||
30951 | echo "" | ||
30952 | fi | ||
30953 | |||
30954 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
30955 | echo "WARNING: you are using the builtin random number collection " | ||
30956 | echo "service. Please read WARNING.RNG and request that your OS " | ||
30957 | echo "vendor includes kernel-based random number collection in " | ||
30958 | echo "future versions of your OS." | ||
30959 | echo "" | ||
30960 | fi | ||
30961 | |||
30962 | if test ! -z "$NO_PEERCHECK" ; then | ||
30963 | echo "WARNING: the operating system that you are using does not" | ||
30964 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
30965 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
30966 | echo "enforce security checks to prevent unauthorised connections to" | ||
30967 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
30968 | echo "user can connect to your agent." | ||
30969 | echo "" | ||
30970 | fi | ||
30971 | |||
30972 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
30973 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
30974 | echo "See the Solaris section in README.platform for details." | ||
30975 | fi | ||
diff --git a/contrib/solaris/README b/contrib/solaris/README index fefdd4b53..fefdd4b53 100644..100755 --- a/contrib/solaris/README +++ b/contrib/solaris/README | |||
diff --git a/moduli.0 b/moduli.0 new file mode 100644 index 000000000..e3fea22a9 --- /dev/null +++ b/moduli.0 | |||
@@ -0,0 +1,72 @@ | |||
1 | MODULI(5) OpenBSD Programmer's Manual MODULI(5) | ||
2 | |||
3 | NAME | ||
4 | moduli - Diffie Hellman moduli | ||
5 | |||
6 | DESCRIPTION | ||
7 | The /etc/moduli file contains prime numbers and generators for use by | ||
8 | sshd(8) in the Diffie-Hellman Group Exchange key exchange method. | ||
9 | |||
10 | New moduli may be generated with ssh-keygen(1) using a two-step process. | ||
11 | An initial candidate generation pass, using ssh-keygen -G, calculates | ||
12 | numbers that are likely to be useful. A second primality testing pass, | ||
13 | using ssh-keygen -T provides a high degree of assurance that the numbers | ||
14 | are prime and are safe for use in Diffie Hellman operations by sshd(8). | ||
15 | This moduli format is used as the output from each pass. | ||
16 | |||
17 | The file consists of newline-separated records, one per modulus, contain- | ||
18 | ing seven space separated fields. These fields are as follows: | ||
19 | |||
20 | timestamp The time that the modulus was last processed as YYYYM- | ||
21 | MDDHHMMSS. | ||
22 | |||
23 | type Decimal number specifying the internal structure of | ||
24 | the prime modulus. Supported types are: | ||
25 | |||
26 | 0 Unknown, not tested | ||
27 | 2 "Safe" prime; (p-1)/2 is also prime. | ||
28 | 4 Sophie Germain; (p+1)*2 is also prime. | ||
29 | |||
30 | Moduli candidates initially produced by ssh-keygen(1) | ||
31 | are Sophie Germain primes (type 4). Futher primality | ||
32 | testing with ssh-keygen(1) produces safe prime moduli | ||
33 | (type 2) that are ready for use in sshd(8). Other | ||
34 | types are not used by OpenSSH. | ||
35 | |||
36 | tests Decimal number indicating the type of primality tests | ||
37 | that the number has been subjected to represented as a | ||
38 | bitmask of the following values: | ||
39 | |||
40 | 0x00 Not tested | ||
41 | 0x01 Composite number - not prime. | ||
42 | 0x02 Sieve of Eratosthenes | ||
43 | 0x04 Probabalistic Miller-Rabin primality tests. | ||
44 | |||
45 | The ssh-keygen(1) moduli candidate generation uses the | ||
46 | Sieve of Eratosthenes (flag 0x02). Subsequent | ||
47 | ssh-keygen(1) primality tests are Miller-Rabin tests | ||
48 | (flag 0x04). | ||
49 | |||
50 | trials Decimal number indicating of primaility trials that | ||
51 | have been performed on the modulus. | ||
52 | |||
53 | size Decimal number indicating the size of the prime in | ||
54 | bits. | ||
55 | |||
56 | generator The recommended generator for use with this modulus | ||
57 | (hexadecimal). | ||
58 | |||
59 | modulus The modulus itself in hexadecimal. | ||
60 | |||
61 | When performing Diffie Hellman Group Exchange, sshd(8) first estimates | ||
62 | the size of the modulus required to produce enough Diffie Hellman output | ||
63 | to sufficiently key the selected symmetric cipher. sshd(8) then randomly | ||
64 | selects a modulus from /etc/moduli that best meets the size requirement. | ||
65 | |||
66 | SEE ALSO | ||
67 | ssh-keygen(1), sshd(8), | ||
68 | |||
69 | Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer | ||
70 | Protocol, RFC 4419, 2006. | ||
71 | |||
72 | OpenBSD 4.7 June 26, 2008 2 | ||
diff --git a/openbsd-compat/.cvsignore b/openbsd-compat/.cvsignore deleted file mode 100644 index f3c7a7c5d..000000000 --- a/openbsd-compat/.cvsignore +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | Makefile | ||
diff --git a/openbsd-compat/regress/.cvsignore b/openbsd-compat/regress/.cvsignore deleted file mode 100644 index afbf7cc3f..000000000 --- a/openbsd-compat/regress/.cvsignore +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | Makefile | ||
2 | snprintftest | ||
3 | strduptest | ||
4 | strtonumtest | ||
5 | |||
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c index cf8e0ad66..cf8e0ad66 100644..100755 --- a/openbsd-compat/sha2.c +++ b/openbsd-compat/sha2.c | |||
diff --git a/openbsd-compat/sha2.h b/openbsd-compat/sha2.h index 821f2dd6c..821f2dd6c 100644..100755 --- a/openbsd-compat/sha2.h +++ b/openbsd-compat/sha2.h | |||
diff --git a/regress/.cvsignore b/regress/.cvsignore deleted file mode 100644 index f3c7a7c5d..000000000 --- a/regress/.cvsignore +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | Makefile | ||
diff --git a/scard/.cvsignore b/scard/.cvsignore deleted file mode 100644 index 5349d34ae..000000000 --- a/scard/.cvsignore +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | Makefile | ||
2 | Ssh.bin | ||
@@ -0,0 +1,148 @@ | |||
1 | SCP(1) OpenBSD Reference Manual SCP(1) | ||
2 | |||
3 | NAME | ||
4 | scp - secure copy (remote file copy program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | ||
8 | [-l limit] [-o ssh_option] [-P port] [-S program] | ||
9 | [[user@]host1:]file1 ... [[user@]host2:]file2 | ||
10 | |||
11 | DESCRIPTION | ||
12 | scp copies files between hosts on a network. It uses ssh(1) for data | ||
13 | transfer, and uses the same authentication and provides the same security | ||
14 | as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if | ||
15 | they are needed for authentication. | ||
16 | |||
17 | File names may contain a user and host specification to indicate that the | ||
18 | file is to be copied to/from that host. Local file names can be made ex- | ||
19 | plicit using absolute or relative pathnames to avoid scp treating file | ||
20 | names containing `:' as host specifiers. Copies between two remote hosts | ||
21 | are also permitted. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -1 Forces scp to use protocol 1. | ||
26 | |||
27 | -2 Forces scp to use protocol 2. | ||
28 | |||
29 | -4 Forces scp to use IPv4 addresses only. | ||
30 | |||
31 | -6 Forces scp to use IPv6 addresses only. | ||
32 | |||
33 | -B Selects batch mode (prevents asking for passwords or passphras- | ||
34 | es). | ||
35 | |||
36 | -C Compression enable. Passes the -C flag to ssh(1) to enable com- | ||
37 | pression. | ||
38 | |||
39 | -c cipher | ||
40 | Selects the cipher to use for encrypting the data transfer. This | ||
41 | option is directly passed to ssh(1). | ||
42 | |||
43 | -F ssh_config | ||
44 | Specifies an alternative per-user configuration file for ssh. | ||
45 | This option is directly passed to ssh(1). | ||
46 | |||
47 | -i identity_file | ||
48 | Selects the file from which the identity (private key) for public | ||
49 | key authentication is read. This option is directly passed to | ||
50 | ssh(1). | ||
51 | |||
52 | -l limit | ||
53 | Limits the used bandwidth, specified in Kbit/s. | ||
54 | |||
55 | -o ssh_option | ||
56 | Can be used to pass options to ssh in the format used in | ||
57 | ssh_config(5). This is useful for specifying options for which | ||
58 | there is no separate scp command-line flag. For full details of | ||
59 | the options listed below, and their possible values, see | ||
60 | ssh_config(5). | ||
61 | |||
62 | AddressFamily | ||
63 | BatchMode | ||
64 | BindAddress | ||
65 | ChallengeResponseAuthentication | ||
66 | CheckHostIP | ||
67 | Cipher | ||
68 | Ciphers | ||
69 | Compression | ||
70 | CompressionLevel | ||
71 | ConnectionAttempts | ||
72 | ConnectTimeout | ||
73 | ControlMaster | ||
74 | ControlPath | ||
75 | GlobalKnownHostsFile | ||
76 | GSSAPIAuthentication | ||
77 | GSSAPIDelegateCredentials | ||
78 | HashKnownHosts | ||
79 | Host | ||
80 | HostbasedAuthentication | ||
81 | HostKeyAlgorithms | ||
82 | HostKeyAlias | ||
83 | HostName | ||
84 | IdentityFile | ||
85 | IdentitiesOnly | ||
86 | KbdInteractiveDevices | ||
87 | LogLevel | ||
88 | MACs | ||
89 | NoHostAuthenticationForLocalhost | ||
90 | NumberOfPasswordPrompts | ||
91 | PasswordAuthentication | ||
92 | PKCS11Provider | ||
93 | Port | ||
94 | PreferredAuthentications | ||
95 | Protocol | ||
96 | ProxyCommand | ||
97 | PubkeyAuthentication | ||
98 | RekeyLimit | ||
99 | RhostsRSAAuthentication | ||
100 | RSAAuthentication | ||
101 | SendEnv | ||
102 | ServerAliveInterval | ||
103 | ServerAliveCountMax | ||
104 | StrictHostKeyChecking | ||
105 | TCPKeepAlive | ||
106 | UsePrivilegedPort | ||
107 | User | ||
108 | UserKnownHostsFile | ||
109 | VerifyHostKeyDNS | ||
110 | |||
111 | -P port | ||
112 | Specifies the port to connect to on the remote host. Note that | ||
113 | this option is written with a capital `P', because -p is already | ||
114 | reserved for preserving the times and modes of the file in | ||
115 | rcp(1). | ||
116 | |||
117 | -p Preserves modification times, access times, and modes from the | ||
118 | original file. | ||
119 | |||
120 | -q Quiet mode: disables the progress meter as well as warning and | ||
121 | diagnostic messages from ssh(1). | ||
122 | |||
123 | -r Recursively copy entire directories. Note that scp follows sym- | ||
124 | bolic links encountered in the tree traversal. | ||
125 | |||
126 | -S program | ||
127 | Name of program to use for the encrypted connection. The program | ||
128 | must understand ssh(1) options. | ||
129 | |||
130 | -v Verbose mode. Causes scp and ssh(1) to print debugging messages | ||
131 | about their progress. This is helpful in debugging connection, | ||
132 | authentication, and configuration problems. | ||
133 | |||
134 | The scp utility exits 0 on success, and >0 if an error occurs. | ||
135 | |||
136 | SEE ALSO | ||
137 | rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
138 | ssh_config(5), sshd(8) | ||
139 | |||
140 | HISTORY | ||
141 | scp is based on the rcp(1) program in BSD source code from the Regents of | ||
142 | the University of California. | ||
143 | |||
144 | AUTHORS | ||
145 | Timo Rinne <tri@iki.fi> | ||
146 | Tatu Ylonen <ylo@cs.hut.fi> | ||
147 | |||
148 | OpenBSD 4.7 February 8, 2010 3 | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..0c2654c8d --- /dev/null +++ b/sftp-server.0 | |||
@@ -0,0 +1,63 @@ | |||
1 | SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8) | ||
2 | |||
3 | NAME | ||
4 | sftp-server - SFTP server subsystem | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask] | ||
8 | |||
9 | DESCRIPTION | ||
10 | sftp-server is a program that speaks the server side of SFTP protocol to | ||
11 | stdout and expects client requests from stdin. sftp-server is not in- | ||
12 | tended to be called directly, but from sshd(8) using the Subsystem op- | ||
13 | tion. | ||
14 | |||
15 | Command-line flags to sftp-server should be specified in the Subsystem | ||
16 | declaration. See sshd_config(5) for more information. | ||
17 | |||
18 | Valid options are: | ||
19 | |||
20 | -e Causes sftp-server to print logging information to stderr instead | ||
21 | of syslog for debugging. | ||
22 | |||
23 | -f log_facility | ||
24 | Specifies the facility code that is used when logging messages | ||
25 | from sftp-server. The possible values are: DAEMON, USER, AUTH, | ||
26 | LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. | ||
27 | The default is AUTH. | ||
28 | |||
29 | -h Displays sftp-server usage information. | ||
30 | |||
31 | -l log_level | ||
32 | Specifies which messages will be logged by sftp-server. The pos- | ||
33 | sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DE- | ||
34 | BUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that | ||
35 | sftp-server performs on behalf of the client. DEBUG and DEBUG1 | ||
36 | are equivalent. DEBUG2 and DEBUG3 each specify higher levels of | ||
37 | debugging output. The default is ERROR. | ||
38 | |||
39 | -R Places this instance of sftp-server into a read-only mode. At- | ||
40 | tempts to open files for writing, as well as other operations | ||
41 | that change the state of the filesystem, will be denied. | ||
42 | |||
43 | -u umask | ||
44 | Sets an explicit umask(2) to be applied to newly-created files | ||
45 | and directories, instead of the user's default mask. | ||
46 | |||
47 | For logging to work, sftp-server must be able to access /dev/log. Use of | ||
48 | sftp-server in a chroot configuration therefore requires that syslogd(8) | ||
49 | establish a logging socket inside the chroot directory. | ||
50 | |||
51 | SEE ALSO | ||
52 | sftp(1), ssh(1), sshd_config(5), sshd(8) | ||
53 | |||
54 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
55 | filexfer-00.txt, January 2001, work in progress material. | ||
56 | |||
57 | HISTORY | ||
58 | sftp-server first appeared in OpenBSD 2.8. | ||
59 | |||
60 | AUTHORS | ||
61 | Markus Friedl <markus@openbsd.org> | ||
62 | |||
63 | OpenBSD 4.7 January 9, 2010 1 | ||
@@ -0,0 +1,319 @@ | |||
1 | SFTP(1) OpenBSD Reference Manual SFTP(1) | ||
2 | |||
3 | NAME | ||
4 | sftp - secure file transfer program | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp [-1246Cpqrv] [-B buffer_size] [-b batchfile] [-c cipher] | ||
8 | [-D sftp_server_path] [-F ssh_config] [-i identity_file] | ||
9 | [-o ssh_option] [-P port] [-R num_requests] [-S program] | ||
10 | [-s subsystem | sftp_server] host | ||
11 | sftp [user@]host[:file ...] | ||
12 | sftp [user@]host[:dir[/]] | ||
13 | sftp -b batchfile [user@]host | ||
14 | |||
15 | DESCRIPTION | ||
16 | sftp is an interactive file transfer program, similar to ftp(1), which | ||
17 | performs all operations over an encrypted ssh(1) transport. It may also | ||
18 | use many features of ssh, such as public key authentication and compres- | ||
19 | sion. sftp connects and logs into the specified host, then enters an in- | ||
20 | teractive command mode. | ||
21 | |||
22 | The second usage format will retrieve files automatically if a non-inter- | ||
23 | active authentication method is used; otherwise it will do so after suc- | ||
24 | cessful interactive authentication. | ||
25 | |||
26 | The third usage format allows sftp to start in a remote directory. | ||
27 | |||
28 | The final usage format allows for automated sessions using the -b option. | ||
29 | In such cases, it is necessary to configure non-interactive authentica- | ||
30 | tion to obviate the need to enter a password at connection time (see | ||
31 | sshd(8) and ssh-keygen(1) for details). The options are as follows: | ||
32 | |||
33 | -1 Specify the use of protocol version 1. | ||
34 | |||
35 | -2 Specify the use of protocol version 2. | ||
36 | |||
37 | -4 Forces sftp to use IPv4 addresses only. | ||
38 | |||
39 | -6 Forces sftp to use IPv6 addresses only. | ||
40 | |||
41 | -B buffer_size | ||
42 | Specify the size of the buffer that sftp uses when transferring | ||
43 | files. Larger buffers require fewer round trips at the cost of | ||
44 | higher memory consumption. The default is 32768 bytes. | ||
45 | |||
46 | -b batchfile | ||
47 | Batch mode reads a series of commands from an input batchfile in- | ||
48 | stead of stdin. Since it lacks user interaction it should be | ||
49 | used in conjunction with non-interactive authentication. A | ||
50 | batchfile of `-' may be used to indicate standard input. sftp | ||
51 | will abort if any of the following commands fail: get, put, | ||
52 | rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp, | ||
53 | lpwd, df, and lmkdir. Termination on error can be suppressed on | ||
54 | a command by command basis by prefixing the command with a `-' | ||
55 | character (for example, -rm /tmp/blah*). | ||
56 | |||
57 | -C Enables compression (via ssh's -C flag). | ||
58 | |||
59 | -c cipher | ||
60 | Selects the cipher to use for encrypting the data transfers. | ||
61 | This option is directly passed to ssh(1). | ||
62 | |||
63 | -D sftp_server_path | ||
64 | Connect directly to a local sftp server (rather than via ssh(1)). | ||
65 | This option may be useful in debugging the client and server. | ||
66 | |||
67 | -F ssh_config | ||
68 | Specifies an alternative per-user configuration file for ssh(1). | ||
69 | This option is directly passed to ssh(1). | ||
70 | |||
71 | -i identity_file | ||
72 | Selects the file from which the identity (private key) for public | ||
73 | key authentication is read. This option is directly passed to | ||
74 | ssh(1). | ||
75 | |||
76 | -o ssh_option | ||
77 | Can be used to pass options to ssh in the format used in | ||
78 | ssh_config(5). This is useful for specifying options for which | ||
79 | there is no separate sftp command-line flag. For example, to | ||
80 | specify an alternate port use: sftp -oPort=24. For full details | ||
81 | of the options listed below, and their possible values, see | ||
82 | ssh_config(5). | ||
83 | |||
84 | AddressFamily | ||
85 | BatchMode | ||
86 | BindAddress | ||
87 | ChallengeResponseAuthentication | ||
88 | CheckHostIP | ||
89 | Cipher | ||
90 | Ciphers | ||
91 | Compression | ||
92 | CompressionLevel | ||
93 | ConnectionAttempts | ||
94 | ConnectTimeout | ||
95 | ControlMaster | ||
96 | ControlPath | ||
97 | GlobalKnownHostsFile | ||
98 | GSSAPIAuthentication | ||
99 | GSSAPIDelegateCredentials | ||
100 | HashKnownHosts | ||
101 | Host | ||
102 | HostbasedAuthentication | ||
103 | HostKeyAlgorithms | ||
104 | HostKeyAlias | ||
105 | HostName | ||
106 | IdentityFile | ||
107 | IdentitiesOnly | ||
108 | KbdInteractiveDevices | ||
109 | LogLevel | ||
110 | MACs | ||
111 | NoHostAuthenticationForLocalhost | ||
112 | NumberOfPasswordPrompts | ||
113 | PasswordAuthentication | ||
114 | PKCS11Provider | ||
115 | Port | ||
116 | PreferredAuthentications | ||
117 | Protocol | ||
118 | ProxyCommand | ||
119 | PubkeyAuthentication | ||
120 | RekeyLimit | ||
121 | RhostsRSAAuthentication | ||
122 | RSAAuthentication | ||
123 | SendEnv | ||
124 | ServerAliveInterval | ||
125 | ServerAliveCountMax | ||
126 | StrictHostKeyChecking | ||
127 | TCPKeepAlive | ||
128 | UsePrivilegedPort | ||
129 | User | ||
130 | UserKnownHostsFile | ||
131 | VerifyHostKeyDNS | ||
132 | |||
133 | -P port | ||
134 | Specifies the port to connect to on the remote host. | ||
135 | |||
136 | -p Preserves modification times, access times, and modes from the | ||
137 | original files transferred. | ||
138 | |||
139 | -q Quiet mode: disables the progress meter as well as warning and | ||
140 | diagnostic messages from ssh(1). | ||
141 | |||
142 | -R num_requests | ||
143 | Specify how many requests may be outstanding at any one time. | ||
144 | Increasing this may slightly improve file transfer speed but will | ||
145 | increase memory usage. The default is 64 outstanding requests. | ||
146 | |||
147 | -r Recursively copy entire directories when uploading and download- | ||
148 | ing. Note that sftp does not follow symbolic links encountered | ||
149 | in the tree traversal. | ||
150 | |||
151 | -S program | ||
152 | Name of the program to use for the encrypted connection. The | ||
153 | program must understand ssh(1) options. | ||
154 | |||
155 | -s subsystem | sftp_server | ||
156 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
157 | the remote host. A path is useful for using sftp over protocol | ||
158 | version 1, or when the remote sshd(8) does not have an sftp sub- | ||
159 | system configured. | ||
160 | |||
161 | -v Raise logging level. This option is also passed to ssh. | ||
162 | |||
163 | INTERACTIVE COMMANDS | ||
164 | Once in interactive mode, sftp understands a set of commands similar to | ||
165 | those of ftp(1). Commands are case insensitive. Pathnames that contain | ||
166 | spaces must be enclosed in quotes. Any special characters contained | ||
167 | within pathnames that are recognized by glob(3) must be escaped with | ||
168 | backslashes (`\'). | ||
169 | |||
170 | bye Quit sftp. | ||
171 | |||
172 | cd path | ||
173 | Change remote directory to path. | ||
174 | |||
175 | chgrp grp path | ||
176 | Change group of file path to grp. path may contain glob(3) char- | ||
177 | acters and may match multiple files. grp must be a numeric GID. | ||
178 | |||
179 | chmod mode path | ||
180 | Change permissions of file path to mode. path may contain | ||
181 | glob(3) characters and may match multiple files. | ||
182 | |||
183 | chown own path | ||
184 | Change owner of file path to own. path may contain glob(3) char- | ||
185 | acters and may match multiple files. own must be a numeric UID. | ||
186 | |||
187 | df [-hi] [path] | ||
188 | Display usage information for the filesystem holding the current | ||
189 | directory (or path if specified). If the -h flag is specified, | ||
190 | the capacity information will be displayed using "human-readable" | ||
191 | suffixes. The -i flag requests display of inode information in | ||
192 | addition to capacity information. This command is only supported | ||
193 | on servers that implement the ``statvfs@openssh.com'' extension. | ||
194 | |||
195 | exit Quit sftp. | ||
196 | |||
197 | get [-Ppr] remote-path [local-path] | ||
198 | Retrieve the remote-path and store it on the local machine. If | ||
199 | the local path name is not specified, it is given the same name | ||
200 | it has on the remote machine. remote-path may contain glob(3) | ||
201 | characters and may match multiple files. If it does and local- | ||
202 | path is specified, then local-path must specify a directory. | ||
203 | |||
204 | If either the -P or -p flag is specified, then full file permis- | ||
205 | sions and access times are copied too. | ||
206 | |||
207 | If the -r flag is specified then directories will be copied re- | ||
208 | cursively. Note that sftp does not follow symbolic links when | ||
209 | performing recursive transfers. | ||
210 | |||
211 | help Display help text. | ||
212 | |||
213 | lcd path | ||
214 | Change local directory to path. | ||
215 | |||
216 | lls [ls-options [path]] | ||
217 | Display local directory listing of either path or current direc- | ||
218 | tory if path is not specified. ls-options may contain any flags | ||
219 | supported by the local system's ls(1) command. path may contain | ||
220 | glob(3) characters and may match multiple files. | ||
221 | |||
222 | lmkdir path | ||
223 | Create local directory specified by path. | ||
224 | |||
225 | ln oldpath newpath | ||
226 | Create a symbolic link from oldpath to newpath. | ||
227 | |||
228 | lpwd Print local working directory. | ||
229 | |||
230 | ls [-1afhlnrSt] [path] | ||
231 | Display a remote directory listing of either path or the current | ||
232 | directory if path is not specified. path may contain glob(3) | ||
233 | characters and may match multiple files. | ||
234 | |||
235 | The following flags are recognized and alter the behaviour of ls | ||
236 | accordingly: | ||
237 | |||
238 | -1 Produce single columnar output. | ||
239 | |||
240 | -a List files beginning with a dot (`.'). | ||
241 | |||
242 | -f Do not sort the listing. The default sort order is lexi- | ||
243 | cographical. | ||
244 | |||
245 | -h When used with a long format option, use unit suffixes: | ||
246 | Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, | ||
247 | and Exabyte in order to reduce the number of digits to | ||
248 | four or fewer using powers of 2 for sizes (K=1024, | ||
249 | M=1048576, etc.). | ||
250 | |||
251 | -l Display additional details including permissions and own- | ||
252 | ership information. | ||
253 | |||
254 | -n Produce a long listing with user and group information | ||
255 | presented numerically. | ||
256 | |||
257 | -r Reverse the sort order of the listing. | ||
258 | |||
259 | -S Sort the listing by file size. | ||
260 | |||
261 | -t Sort the listing by last modification time. | ||
262 | |||
263 | lumask umask | ||
264 | Set local umask to umask. | ||
265 | |||
266 | mkdir path | ||
267 | Create remote directory specified by path. | ||
268 | |||
269 | progress | ||
270 | Toggle display of progress meter. | ||
271 | |||
272 | put [-Ppr] local-path [remote-path] | ||
273 | Upload local-path and store it on the remote machine. If the re- | ||
274 | mote path name is not specified, it is given the same name it has | ||
275 | on the local machine. local-path may contain glob(3) characters | ||
276 | and may match multiple files. If it does and remote-path is | ||
277 | specified, then remote-path must specify a directory. | ||
278 | |||
279 | If ether the -P or -p flag is specified, then full file permis- | ||
280 | sions and access times are copied too. | ||
281 | |||
282 | If the -r flag is specified then directories will be copied re- | ||
283 | cursively. Note that sftp does not follow symbolic links when | ||
284 | performing recursive transfers. | ||
285 | |||
286 | pwd Display remote working directory. | ||
287 | |||
288 | quit Quit sftp. | ||
289 | |||
290 | rename oldpath newpath | ||
291 | Rename remote file from oldpath to newpath. | ||
292 | |||
293 | rm path | ||
294 | Delete remote file specified by path. | ||
295 | |||
296 | rmdir path | ||
297 | Remove remote directory specified by path. | ||
298 | |||
299 | symlink oldpath newpath | ||
300 | Create a symbolic link from oldpath to newpath. | ||
301 | |||
302 | version | ||
303 | Display the sftp protocol version. | ||
304 | |||
305 | !command | ||
306 | Execute command in local shell. | ||
307 | |||
308 | ! Escape to local shell. | ||
309 | |||
310 | ? Synonym for help. | ||
311 | |||
312 | SEE ALSO | ||
313 | ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3), | ||
314 | ssh_config(5), sftp-server(8), sshd(8) | ||
315 | |||
316 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
317 | filexfer-00.txt, January 2001, work in progress material. | ||
318 | |||
319 | OpenBSD 4.7 February 8, 2010 5 | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..0d49c5ea3 --- /dev/null +++ b/ssh-add.0 | |||
@@ -0,0 +1,109 @@ | |||
1 | SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-add - adds RSA or DSA identities to the authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-add [-cDdLlXx] [-t life] [file ...] | ||
8 | ssh-add -s pkcs11 | ||
9 | ssh-add -e pkcs11 | ||
10 | |||
11 | DESCRIPTION | ||
12 | ssh-add adds RSA or DSA identities to the authentication agent, | ||
13 | ssh-agent(1). When run without arguments, it adds the files | ||
14 | ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. After loading a pri- | ||
15 | vate key, ssh-add will try to load corresponding certificate information | ||
16 | from the filename obtained by appending -cert.pub to the name of the pri- | ||
17 | vate key file. Alternative file names can be given on the command line. | ||
18 | |||
19 | If any file requires a passphrase, ssh-add asks for the passphrase from | ||
20 | the user. The passphrase is read from the user's tty. ssh-add retries | ||
21 | the last passphrase if multiple identity files are given. | ||
22 | |||
23 | The authentication agent must be running and the SSH_AUTH_SOCK environ- | ||
24 | ment variable must contain the name of its socket for ssh-add to work. | ||
25 | |||
26 | The options are as follows: | ||
27 | |||
28 | -c Indicates that added identities should be subject to confirmation | ||
29 | before being used for authentication. Confirmation is performed | ||
30 | by the SSH_ASKPASS program mentioned below. Successful confirma- | ||
31 | tion is signaled by a zero exit status from the SSH_ASKPASS pro- | ||
32 | gram, rather than text entered into the requester. | ||
33 | |||
34 | -D Deletes all identities from the agent. | ||
35 | |||
36 | -d Instead of adding identities, removes identities from the agent. | ||
37 | If ssh-add has been run without arguments, the keys for the de- | ||
38 | fault identities will be removed. Otherwise, the argument list | ||
39 | will be interpreted as a list of paths to public key files and | ||
40 | matching keys will be removed from the agent. If no public key | ||
41 | is found at a given path, ssh-add will append .pub and retry. | ||
42 | |||
43 | -e pkcs11 | ||
44 | Remove keys provided by the PKCS#11 shared library pkcs11. | ||
45 | |||
46 | -L Lists public key parameters of all identities currently repre- | ||
47 | sented by the agent. | ||
48 | |||
49 | -l Lists fingerprints of all identities currently represented by the | ||
50 | agent. | ||
51 | |||
52 | -s pkcs11 | ||
53 | Add keys provided by the PKCS#11 shared library pkcs11. | ||
54 | |||
55 | -t life | ||
56 | Set a maximum lifetime when adding identities to an agent. The | ||
57 | lifetime may be specified in seconds or in a time format speci- | ||
58 | fied in sshd_config(5). | ||
59 | |||
60 | -X Unlock the agent. | ||
61 | |||
62 | -x Lock the agent with a password. | ||
63 | |||
64 | ENVIRONMENT | ||
65 | DISPLAY and SSH_ASKPASS | ||
66 | If ssh-add needs a passphrase, it will read the passphrase from | ||
67 | the current terminal if it was run from a terminal. If ssh-add | ||
68 | does not have a terminal associated with it but DISPLAY and | ||
69 | SSH_ASKPASS are set, it will execute the program specified by | ||
70 | SSH_ASKPASS and open an X11 window to read the passphrase. This | ||
71 | is particularly useful when calling ssh-add from a .xsession or | ||
72 | related script. (Note that on some machines it may be necessary | ||
73 | to redirect the input from /dev/null to make this work.) | ||
74 | |||
75 | SSH_AUTH_SOCK | ||
76 | Identifies the path of a UNIX-domain socket used to communicate | ||
77 | with the agent. | ||
78 | |||
79 | FILES | ||
80 | ~/.ssh/identity | ||
81 | Contains the protocol version 1 RSA authentication identity of | ||
82 | the user. | ||
83 | |||
84 | ~/.ssh/id_dsa | ||
85 | Contains the protocol version 2 DSA authentication identity of | ||
86 | the user. | ||
87 | |||
88 | ~/.ssh/id_rsa | ||
89 | Contains the protocol version 2 RSA authentication identity of | ||
90 | the user. | ||
91 | |||
92 | Identity files should not be readable by anyone but the user. Note that | ||
93 | ssh-add ignores identity files if they are accessible by others. | ||
94 | |||
95 | DIAGNOSTICS | ||
96 | Exit status is 0 on success, 1 if the specified command fails, and 2 if | ||
97 | ssh-add is unable to contact the authentication agent. | ||
98 | |||
99 | SEE ALSO | ||
100 | ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8) | ||
101 | |||
102 | AUTHORS | ||
103 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
104 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
105 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
106 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
107 | versions 1.5 and 2.0. | ||
108 | |||
109 | OpenBSD 4.7 March 5, 2010 2 | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..536eac756 --- /dev/null +++ b/ssh-agent.0 | |||
@@ -0,0 +1,118 @@ | |||
1 | SSH-AGENT(1) OpenBSD Reference Manual SSH-AGENT(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-agent - authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]] | ||
8 | ssh-agent [-c | -s] -k | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh-agent is a program to hold private keys used for public key authenti- | ||
12 | cation (RSA, DSA). The idea is that ssh-agent is started in the begin- | ||
13 | ning of an X-session or a login session, and all other windows or pro- | ||
14 | grams are started as clients to the ssh-agent program. Through use of | ||
15 | environment variables the agent can be located and automatically used for | ||
16 | authentication when logging in to other machines using ssh(1). | ||
17 | |||
18 | The options are as follows: | ||
19 | |||
20 | -a bind_address | ||
21 | Bind the agent to the UNIX-domain socket bind_address. The de- | ||
22 | fault is /tmp/ssh-XXXXXXXXXX/agent.<ppid>. | ||
23 | |||
24 | -c Generate C-shell commands on stdout. This is the default if | ||
25 | SHELL looks like it's a csh style of shell. | ||
26 | |||
27 | -d Debug mode. When this option is specified ssh-agent will not | ||
28 | fork. | ||
29 | |||
30 | -k Kill the current agent (given by the SSH_AGENT_PID environment | ||
31 | variable). | ||
32 | |||
33 | -s Generate Bourne shell commands on stdout. This is the default if | ||
34 | SHELL does not look like it's a csh style of shell. | ||
35 | |||
36 | -t life | ||
37 | Set a default value for the maximum lifetime of identities added | ||
38 | to the agent. The lifetime may be specified in seconds or in a | ||
39 | time format specified in sshd_config(5). A lifetime specified | ||
40 | for an identity with ssh-add(1) overrides this value. Without | ||
41 | this option the default maximum lifetime is forever. | ||
42 | |||
43 | If a commandline is given, this is executed as a subprocess of the agent. | ||
44 | When the command dies, so does the agent. | ||
45 | |||
46 | The agent initially does not have any private keys. Keys are added using | ||
47 | ssh-add(1). When executed without arguments, ssh-add(1) adds the files | ||
48 | ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. If the identity has a | ||
49 | passphrase, ssh-add(1) asks for the passphrase on the terminal if it has | ||
50 | one or from a small X11 program if running under X11. If neither of | ||
51 | these is the case then the authentication will fail. It then sends the | ||
52 | identity to the agent. Several identities can be stored in the agent; | ||
53 | the agent can automatically use any of these identities. ssh-add -l dis- | ||
54 | plays the identities currently held by the agent. | ||
55 | |||
56 | The idea is that the agent is run in the user's local PC, laptop, or ter- | ||
57 | minal. Authentication data need not be stored on any other machine, and | ||
58 | authentication passphrases never go over the network. However, the con- | ||
59 | nection to the agent is forwarded over SSH remote logins, and the user | ||
60 | can thus use the privileges given by the identities anywhere in the net- | ||
61 | work in a secure way. | ||
62 | |||
63 | There are two main ways to get an agent set up: The first is that the | ||
64 | agent starts a new subcommand into which some environment variables are | ||
65 | exported, eg ssh-agent xterm &. The second is that the agent prints the | ||
66 | needed shell commands (either sh(1) or csh(1) syntax can be generated) | ||
67 | which can be evaluated in the calling shell, eg eval `ssh-agent -s` for | ||
68 | Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for | ||
69 | csh(1) and derivatives. | ||
70 | |||
71 | Later ssh(1) looks at these variables and uses them to establish a con- | ||
72 | nection to the agent. | ||
73 | |||
74 | The agent will never send a private key over its request channel. In- | ||
75 | stead, operations that require a private key will be performed by the | ||
76 | agent, and the result will be returned to the requester. This way, pri- | ||
77 | vate keys are not exposed to clients using the agent. | ||
78 | |||
79 | A UNIX-domain socket is created and the name of this socket is stored in | ||
80 | the SSH_AUTH_SOCK environment variable. The socket is made accessible | ||
81 | only to the current user. This method is easily abused by root or anoth- | ||
82 | er instance of the same user. | ||
83 | |||
84 | The SSH_AGENT_PID environment variable holds the agent's process ID. | ||
85 | |||
86 | The agent exits automatically when the command given on the command line | ||
87 | terminates. | ||
88 | |||
89 | FILES | ||
90 | ~/.ssh/identity | ||
91 | Contains the protocol version 1 RSA authentication identity of | ||
92 | the user. | ||
93 | |||
94 | ~/.ssh/id_dsa | ||
95 | Contains the protocol version 2 DSA authentication identity of | ||
96 | the user. | ||
97 | |||
98 | ~/.ssh/id_rsa | ||
99 | Contains the protocol version 2 RSA authentication identity of | ||
100 | the user. | ||
101 | |||
102 | /tmp/ssh-XXXXXXXXXX/agent.<ppid> | ||
103 | UNIX-domain sockets used to contain the connection to the authen- | ||
104 | tication agent. These sockets should only be readable by the | ||
105 | owner. The sockets should get automatically removed when the | ||
106 | agent exits. | ||
107 | |||
108 | SEE ALSO | ||
109 | ssh(1), ssh-add(1), ssh-keygen(1), sshd(8) | ||
110 | |||
111 | AUTHORS | ||
112 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
113 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
114 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
115 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
116 | versions 1.5 and 2.0. | ||
117 | |||
118 | OpenBSD 4.7 January 17, 2010 2 | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..aed4a14ad --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,434 @@ | |||
1 | SSH-KEYGEN(1) OpenBSD Reference Manual SSH-KEYGEN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keygen - authentication key generation, management and conversion | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment] | ||
8 | [-f output_keyfile] | ||
9 | ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] | ||
10 | ssh-keygen -i [-f input_keyfile] | ||
11 | ssh-keygen -e [-f input_keyfile] | ||
12 | ssh-keygen -y [-f input_keyfile] | ||
13 | ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] | ||
14 | ssh-keygen -l [-f input_keyfile] | ||
15 | ssh-keygen -B [-f input_keyfile] | ||
16 | ssh-keygen -D pkcs11 | ||
17 | ssh-keygen -F hostname [-f known_hosts_file] [-l] | ||
18 | ssh-keygen -H [-f known_hosts_file] | ||
19 | ssh-keygen -R hostname [-f known_hosts_file] | ||
20 | ssh-keygen -r hostname [-f input_keyfile] [-g] | ||
21 | ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] | ||
22 | ssh-keygen -T output_file -f input_file [-v] [-a num_trials] | ||
23 | [-W generator] | ||
24 | ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals] | ||
25 | [-O constraint] [-V validity_interval] file ... | ||
26 | ssh-keygen -L [-f input_keyfile] | ||
27 | |||
28 | DESCRIPTION | ||
29 | ssh-keygen generates, manages and converts authentication keys for | ||
30 | ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1 | ||
31 | and RSA or DSA keys for use by SSH protocol version 2. The type of key | ||
32 | to be generated is specified with the -t option. If invoked without any | ||
33 | arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2 | ||
34 | connections. | ||
35 | |||
36 | ssh-keygen is also used to generate groups for use in Diffie-Hellman | ||
37 | group exchange (DH-GEX). See the MODULI GENERATION section for details. | ||
38 | |||
39 | Normally each user wishing to use SSH with RSA or DSA authentication runs | ||
40 | this once to create the authentication key in ~/.ssh/identity, | ||
41 | ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator | ||
42 | may use this to generate host keys, as seen in /etc/rc. | ||
43 | |||
44 | Normally this program generates the key and asks for a file in which to | ||
45 | store the private key. The public key is stored in a file with the same | ||
46 | name but ``.pub'' appended. The program also asks for a passphrase. The | ||
47 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
48 | empty passphrase), or it may be a string of arbitrary length. A | ||
49 | passphrase is similar to a password, except it can be a phrase with a se- | ||
50 | ries of words, punctuation, numbers, whitespace, or any string of charac- | ||
51 | ters you want. Good passphrases are 10-30 characters long, are not sim- | ||
52 | ple sentences or otherwise easily guessable (English prose has only 1-2 | ||
53 | bits of entropy per character, and provides very bad passphrases), and | ||
54 | contain a mix of upper and lowercase letters, numbers, and non-alphanu- | ||
55 | meric characters. The passphrase can be changed later by using the -p | ||
56 | option. | ||
57 | |||
58 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
59 | or forgotten, a new key must be generated and copied to the corresponding | ||
60 | public key to other machines. | ||
61 | |||
62 | For RSA1 keys, there is also a comment field in the key file that is only | ||
63 | for convenience to the user to help identify the key. The comment can | ||
64 | tell what the key is for, or whatever is useful. The comment is initial- | ||
65 | ized to ``user@host'' when the key is created, but can be changed using | ||
66 | the -c option. | ||
67 | |||
68 | After a key is generated, instructions below detail where the keys should | ||
69 | be placed to be activated. | ||
70 | |||
71 | The options are as follows: | ||
72 | |||
73 | -a trials | ||
74 | Specifies the number of primality tests to perform when screening | ||
75 | DH-GEX candidates using the -T command. | ||
76 | |||
77 | -B Show the bubblebabble digest of specified private or public key | ||
78 | file. | ||
79 | |||
80 | -b bits | ||
81 | Specifies the number of bits in the key to create. For RSA keys, | ||
82 | the minimum size is 768 bits and the default is 2048 bits. Gen- | ||
83 | erally, 2048 bits is considered sufficient. DSA keys must be ex- | ||
84 | actly 1024 bits as specified by FIPS 186-2. | ||
85 | |||
86 | -C comment | ||
87 | Provides a new comment. | ||
88 | |||
89 | -c Requests changing the comment in the private and public key | ||
90 | files. This operation is only supported for RSA1 keys. The pro- | ||
91 | gram will prompt for the file containing the private keys, for | ||
92 | the passphrase if the key has one, and for the new comment. | ||
93 | |||
94 | -D pkcs11 | ||
95 | Download the RSA public keys provided by the PKCS#11 shared li- | ||
96 | brary pkcs11. | ||
97 | |||
98 | -e This option will read a private or public OpenSSH key file and | ||
99 | print the key in RFC 4716 SSH Public Key File Format to stdout. | ||
100 | This option allows exporting keys for use by several commercial | ||
101 | SSH implementations. | ||
102 | |||
103 | -F hostname | ||
104 | Search for the specified hostname in a known_hosts file, listing | ||
105 | any occurrences found. This option is useful to find hashed host | ||
106 | names or addresses and may also be used in conjunction with the | ||
107 | -H option to print found keys in a hashed format. | ||
108 | |||
109 | -f filename | ||
110 | Specifies the filename of the key file. | ||
111 | |||
112 | -G output_file | ||
113 | Generate candidate primes for DH-GEX. These primes must be | ||
114 | screened for safety (using the -T option) before use. | ||
115 | |||
116 | -g Use generic DNS format when printing fingerprint resource records | ||
117 | using the -r command. | ||
118 | |||
119 | -H Hash a known_hosts file. This replaces all hostnames and ad- | ||
120 | dresses with hashed representations within the specified file; | ||
121 | the original content is moved to a file with a .old suffix. | ||
122 | These hashes may be used normally by ssh and sshd, but they do | ||
123 | not reveal identifying information should the file's contents be | ||
124 | disclosed. This option will not modify existing hashed hostnames | ||
125 | and is therefore safe to use on files that mix hashed and non- | ||
126 | hashed names. | ||
127 | |||
128 | -h When signing a key, create a host certificate instead of a user | ||
129 | certificate. Please see the CERTIFICATES section for details. | ||
130 | |||
131 | -I certificate_identity | ||
132 | Specify the key identity when signing a public key. Please see | ||
133 | the CERTIFICATES section for details. | ||
134 | |||
135 | -i This option will read an unencrypted private (or public) key file | ||
136 | in SSH2-compatible format and print an OpenSSH compatible private | ||
137 | (or public) key to stdout. ssh-keygen also reads the RFC 4716 | ||
138 | SSH Public Key File Format. This option allows importing keys | ||
139 | from several commercial SSH implementations. | ||
140 | |||
141 | -L Prints the contents of a certificate. | ||
142 | |||
143 | -l Show fingerprint of specified public key file. Private RSA1 keys | ||
144 | are also supported. For RSA and DSA keys ssh-keygen tries to | ||
145 | find the matching public key file and prints its fingerprint. If | ||
146 | combined with -v, an ASCII art representation of the key is sup- | ||
147 | plied with the fingerprint. | ||
148 | |||
149 | -M memory | ||
150 | Specify the amount of memory to use (in megabytes) when generat- | ||
151 | ing candidate moduli for DH-GEX. | ||
152 | |||
153 | -N new_passphrase | ||
154 | Provides the new passphrase. | ||
155 | |||
156 | -n principals | ||
157 | Specify one or more principals (user or host names) to be includ- | ||
158 | ed in a certificate when signing a key. Multiple principals may | ||
159 | be specified, separated by commas. Please see the CERTIFICATES | ||
160 | section for details. | ||
161 | |||
162 | -O constraint | ||
163 | Specify a certificate constraint when signing a key. This option | ||
164 | may be specified multiple times. Please see the CERTIFICATES | ||
165 | section for details. The constraints that are valid for user | ||
166 | certificates are: | ||
167 | |||
168 | clear Clear all enabled permissions. This is useful for clear- | ||
169 | ing the default set of permissions so permissions may be | ||
170 | added individually. | ||
171 | |||
172 | force-command=command | ||
173 | Forces the execution of command instead of any shell or | ||
174 | command specified by the user when the certificate is | ||
175 | used for authentication. | ||
176 | |||
177 | no-agent-forwarding | ||
178 | Disable ssh-agent(1) forwarding (permitted by default). | ||
179 | |||
180 | no-port-forwarding | ||
181 | Disable port forwarding (permitted by default). | ||
182 | |||
183 | no-pty Disable PTY allocation (permitted by default). | ||
184 | |||
185 | no-user-rc | ||
186 | Disable execution of ~/.ssh/rc by sshd(8) (permitted by | ||
187 | default). | ||
188 | |||
189 | no-x11-forwarding | ||
190 | Disable X11 forwarding (permitted by default). | ||
191 | |||
192 | permit-agent-forwarding | ||
193 | Allows ssh-agent(1) forwarding. | ||
194 | |||
195 | permit-port-forwarding | ||
196 | Allows port forwarding. | ||
197 | |||
198 | permit-pty | ||
199 | Allows PTY allocation. | ||
200 | |||
201 | permit-user-rc | ||
202 | Allows execution of ~/.ssh/rc by sshd(8). | ||
203 | |||
204 | permit-x11-forwarding | ||
205 | Allows X11 forwarding. | ||
206 | |||
207 | source-address=address_list | ||
208 | Restrict the source addresses from which the certificate | ||
209 | is considered valid. The address_list is a comma-sepa- | ||
210 | rated list of one or more address/netmask pairs in CIDR | ||
211 | format. | ||
212 | |||
213 | At present, no constraints are valid for host keys. | ||
214 | |||
215 | -P passphrase | ||
216 | Provides the (old) passphrase. | ||
217 | |||
218 | -p Requests changing the passphrase of a private key file instead of | ||
219 | creating a new private key. The program will prompt for the file | ||
220 | containing the private key, for the old passphrase, and twice for | ||
221 | the new passphrase. | ||
222 | |||
223 | -q Silence ssh-keygen. Used by /etc/rc when creating a new key. | ||
224 | |||
225 | -R hostname | ||
226 | Removes all keys belonging to hostname from a known_hosts file. | ||
227 | This option is useful to delete hashed hosts (see the -H option | ||
228 | above). | ||
229 | |||
230 | -r hostname | ||
231 | Print the SSHFP fingerprint resource record named hostname for | ||
232 | the specified public key file. | ||
233 | |||
234 | -S start | ||
235 | Specify start point (in hex) when generating candidate moduli for | ||
236 | DH-GEX. | ||
237 | |||
238 | -s ca_key | ||
239 | Certify (sign) a public key using the specified CA key. Please | ||
240 | see the CERTIFICATES section for details. | ||
241 | |||
242 | -T output_file | ||
243 | Test DH group exchange candidate primes (generated using the -G | ||
244 | option) for safety. | ||
245 | |||
246 | -t type | ||
247 | Specifies the type of key to create. The possible values are | ||
248 | ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto- | ||
249 | col version 2. | ||
250 | |||
251 | -V validity_interval | ||
252 | Specify a validity interval when signing a certificate. A valid- | ||
253 | ity interval may consist of a single time, indicating that the | ||
254 | certificate is valid beginning now and expiring at that time, or | ||
255 | may consist of two times separated by a colon to indicate an ex- | ||
256 | plicit time interval. The start time may be specified as a date | ||
257 | in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a relative | ||
258 | time (to the current time) consisting of a minus sign followed by | ||
259 | a relative time in the format described in the TIME FORMATS sec- | ||
260 | tion of sshd_config(5). The end time may be specified as a | ||
261 | YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time starting | ||
262 | with a plus character. | ||
263 | |||
264 | For example: ``+52w1d'' (valid from now to 52 weeks and one day | ||
265 | from now), ``-4w:+4w'' (valid from four weeks ago to four weeks | ||
266 | from now), ``20100101123000:20110101123000'' (valid from 12:30 | ||
267 | PM, January 1st, 2010 to 12:30 PM, January 1st, 2011), | ||
268 | ``-1d:20110101'' (valid from yesterday to midnight, January 1st, | ||
269 | 2011). | ||
270 | |||
271 | -v Verbose mode. Causes ssh-keygen to print debugging messages | ||
272 | about its progress. This is helpful for debugging moduli genera- | ||
273 | tion. Multiple -v options increase the verbosity. The maximum | ||
274 | is 3. | ||
275 | |||
276 | -W generator | ||
277 | Specify desired generator when testing candidate moduli for DH- | ||
278 | GEX. | ||
279 | |||
280 | -y This option will read a private OpenSSH format file and print an | ||
281 | OpenSSH public key to stdout. | ||
282 | |||
283 | MODULI GENERATION | ||
284 | ssh-keygen may be used to generate groups for the Diffie-Hellman Group | ||
285 | Exchange (DH-GEX) protocol. Generating these groups is a two-step pro- | ||
286 | cess: first, candidate primes are generated using a fast, but memory in- | ||
287 | tensive process. These candidate primes are then tested for suitability | ||
288 | (a CPU-intensive process). | ||
289 | |||
290 | Generation of primes is performed using the -G option. The desired | ||
291 | length of the primes may be specified by the -b option. For example: | ||
292 | |||
293 | # ssh-keygen -G moduli-2048.candidates -b 2048 | ||
294 | |||
295 | By default, the search for primes begins at a random point in the desired | ||
296 | length range. This may be overridden using the -S option, which speci- | ||
297 | fies a different start point (in hex). | ||
298 | |||
299 | Once a set of candidates have been generated, they must be tested for | ||
300 | suitability. This may be performed using the -T option. In this mode | ||
301 | ssh-keygen will read candidates from standard input (or a file specified | ||
302 | using the -f option). For example: | ||
303 | |||
304 | # ssh-keygen -T moduli-2048 -f moduli-2048.candidates | ||
305 | |||
306 | By default, each candidate will be subjected to 100 primality tests. | ||
307 | This may be overridden using the -a option. The DH generator value will | ||
308 | be chosen automatically for the prime under consideration. If a specific | ||
309 | generator is desired, it may be requested using the -W option. Valid | ||
310 | generator values are 2, 3, and 5. | ||
311 | |||
312 | Screened DH groups may be installed in /etc/moduli. It is important that | ||
313 | this file contains moduli of a range of bit lengths and that both ends of | ||
314 | a connection share common moduli. | ||
315 | |||
316 | CERTIFICATES | ||
317 | ssh-keygen supports signing of keys to produce certificates that may be | ||
318 | used for user or host authentication. Certificates consist of a public | ||
319 | key, some identity information, zero or more principal (user or host) | ||
320 | names and an optional set of constraints that are signed by a Certifica- | ||
321 | tion Authority (CA) key. Clients or servers may then trust only the CA | ||
322 | key and verify its signature on a certificate rather than trusting many | ||
323 | user/host keys. Note that OpenSSH certificates are a different, and much | ||
324 | simpler, format to the X.509 certificates used in ssl(8). | ||
325 | |||
326 | ssh-keygen supports two types of certificates: user and host. User cer- | ||
327 | tificates authenticate users to servers, whereas host certificates au- | ||
328 | thenticate server hosts to users. To generate a user certificate: | ||
329 | |||
330 | $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub | ||
331 | |||
332 | The resultant certificate will be placed in /path/to/user_key-cert.pub. | ||
333 | A host certificate requires the -h option: | ||
334 | |||
335 | $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub | ||
336 | |||
337 | The host certificate will be output to /path/to/host_key-cert.pub. In | ||
338 | both cases, key_id is a "key identifier" that is logged by the server | ||
339 | when the certificate is used for authentication. | ||
340 | |||
341 | Certificates may be limited to be valid for a set of principal (us- | ||
342 | er/host) names. By default, generated certificates are valid for all | ||
343 | users or hosts. To generate a certificate for a specified set of princi- | ||
344 | pals: | ||
345 | |||
346 | $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub | ||
347 | $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub | ||
348 | |||
349 | Additional limitations on the validity and use of user certificates may | ||
350 | be specified through certificate constraints. A constrained certificate | ||
351 | may disable features of the SSH session, may be valid only when presented | ||
352 | from particular source addresses or may force the use of a specific com- | ||
353 | mand. For a list of valid certificate constraints, see the documentation | ||
354 | for the -O option above. | ||
355 | |||
356 | Finally, certificates may be defined with a validity lifetime. The -V | ||
357 | option allows specification of certificate start and end times. A cer- | ||
358 | tificate that is presented at a time outside this range will not be con- | ||
359 | sidered valid. By default, certificates have a maximum validity inter- | ||
360 | val. | ||
361 | |||
362 | For certificates to be used for user or host authentication, the CA pub- | ||
363 | lic key must be trusted by sshd(8) or ssh(1). Please refer to those man- | ||
364 | ual pages for details. | ||
365 | |||
366 | FILES | ||
367 | ~/.ssh/identity | ||
368 | Contains the protocol version 1 RSA authentication identity of | ||
369 | the user. This file should not be readable by anyone but the us- | ||
370 | er. It is possible to specify a passphrase when generating the | ||
371 | key; that passphrase will be used to encrypt the private part of | ||
372 | this file using 128-bit AES. This file is not automatically ac- | ||
373 | cessed by ssh-keygen but it is offered as the default file for | ||
374 | the private key. ssh(1) will read this file when a login attempt | ||
375 | is made. | ||
376 | |||
377 | ~/.ssh/identity.pub | ||
378 | Contains the protocol version 1 RSA public key for authentica- | ||
379 | tion. The contents of this file should be added to | ||
380 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
381 | log in using RSA authentication. There is no need to keep the | ||
382 | contents of this file secret. | ||
383 | |||
384 | ~/.ssh/id_dsa | ||
385 | Contains the protocol version 2 DSA authentication identity of | ||
386 | the user. This file should not be readable by anyone but the us- | ||
387 | er. It is possible to specify a passphrase when generating the | ||
388 | key; that passphrase will be used to encrypt the private part of | ||
389 | this file using 128-bit AES. This file is not automatically ac- | ||
390 | cessed by ssh-keygen but it is offered as the default file for | ||
391 | the private key. ssh(1) will read this file when a login attempt | ||
392 | is made. | ||
393 | |||
394 | ~/.ssh/id_dsa.pub | ||
395 | Contains the protocol version 2 DSA public key for authentica- | ||
396 | tion. The contents of this file should be added to | ||
397 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
398 | log in using public key authentication. There is no need to keep | ||
399 | the contents of this file secret. | ||
400 | |||
401 | ~/.ssh/id_rsa | ||
402 | Contains the protocol version 2 RSA authentication identity of | ||
403 | the user. This file should not be readable by anyone but the us- | ||
404 | er. It is possible to specify a passphrase when generating the | ||
405 | key; that passphrase will be used to encrypt the private part of | ||
406 | this file using 128-bit AES. This file is not automatically ac- | ||
407 | cessed by ssh-keygen but it is offered as the default file for | ||
408 | the private key. ssh(1) will read this file when a login attempt | ||
409 | is made. | ||
410 | |||
411 | ~/.ssh/id_rsa.pub | ||
412 | Contains the protocol version 2 RSA public key for authentica- | ||
413 | tion. The contents of this file should be added to | ||
414 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
415 | log in using public key authentication. There is no need to keep | ||
416 | the contents of this file secret. | ||
417 | |||
418 | /etc/moduli | ||
419 | Contains Diffie-Hellman groups used for DH-GEX. The file format | ||
420 | is described in moduli(5). | ||
421 | |||
422 | SEE ALSO | ||
423 | ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) | ||
424 | |||
425 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
426 | |||
427 | AUTHORS | ||
428 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
429 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
430 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
431 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
432 | versions 1.5 and 2.0. | ||
433 | |||
434 | OpenBSD 4.7 March 13, 2010 7 | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..8a0ef60e4 --- /dev/null +++ b/ssh-keyscan.0 | |||
@@ -0,0 +1,107 @@ | |||
1 | SSH-KEYSCAN(1) OpenBSD Reference Manual SSH-KEYSCAN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keyscan - gather ssh public keys | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keyscan [-46Hv] [-f file] [-p port] [-T timeout] [-t type] | ||
8 | [host | addrlist namelist] ... | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh-keyscan is a utility for gathering the public ssh host keys of a num- | ||
12 | ber of hosts. It was designed to aid in building and verifying | ||
13 | ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable | ||
14 | for use by shell and perl scripts. | ||
15 | |||
16 | ssh-keyscan uses non-blocking socket I/O to contact as many hosts as pos- | ||
17 | sible in parallel, so it is very efficient. The keys from a domain of | ||
18 | 1,000 hosts can be collected in tens of seconds, even when some of those | ||
19 | hosts are down or do not run ssh. For scanning, one does not need login | ||
20 | access to the machines that are being scanned, nor does the scanning pro- | ||
21 | cess involve any encryption. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -4 Forces ssh-keyscan to use IPv4 addresses only. | ||
26 | |||
27 | -6 Forces ssh-keyscan to use IPv6 addresses only. | ||
28 | |||
29 | -f file | ||
30 | Read hosts or addrlist namelist pairs from this file, one per | ||
31 | line. If - is supplied instead of a filename, ssh-keyscan will | ||
32 | read hosts or addrlist namelist pairs from the standard input. | ||
33 | |||
34 | -H Hash all hostnames and addresses in the output. Hashed names may | ||
35 | be used normally by ssh and sshd, but they do not reveal identi- | ||
36 | fying information should the file's contents be disclosed. | ||
37 | |||
38 | -p port | ||
39 | Port to connect to on the remote host. | ||
40 | |||
41 | -T timeout | ||
42 | Set the timeout for connection attempts. If timeout seconds have | ||
43 | elapsed since a connection was initiated to a host or since the | ||
44 | last time anything was read from that host, then the connection | ||
45 | is closed and the host in question considered unavailable. De- | ||
46 | fault is 5 seconds. | ||
47 | |||
48 | -t type | ||
49 | Specifies the type of the key to fetch from the scanned hosts. | ||
50 | The possible values are ``rsa1'' for protocol version 1 and | ||
51 | ``rsa'' or ``dsa'' for protocol version 2. Multiple values may | ||
52 | be specified by separating them with commas. The default is | ||
53 | ``rsa''. | ||
54 | |||
55 | -v Verbose mode. Causes ssh-keyscan to print debugging messages | ||
56 | about its progress. | ||
57 | |||
58 | SECURITY | ||
59 | If an ssh_known_hosts file is constructed using ssh-keyscan without veri- | ||
60 | fying the keys, users will be vulnerable to man in the middle attacks. | ||
61 | On the other hand, if the security model allows such a risk, ssh-keyscan | ||
62 | can help in the detection of tampered keyfiles or man in the middle at- | ||
63 | tacks which have begun after the ssh_known_hosts file was created. | ||
64 | |||
65 | FILES | ||
66 | Input format: | ||
67 | |||
68 | 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4 | ||
69 | |||
70 | Output format for rsa1 keys: | ||
71 | |||
72 | host-or-namelist bits exponent modulus | ||
73 | |||
74 | Output format for rsa and dsa keys: | ||
75 | |||
76 | host-or-namelist keytype base64-encoded-key | ||
77 | |||
78 | Where keytype is either ``ssh-rsa'' or ``ssh-dss''. | ||
79 | |||
80 | /etc/ssh/ssh_known_hosts | ||
81 | |||
82 | EXAMPLES | ||
83 | Print the rsa host key for machine hostname: | ||
84 | |||
85 | $ ssh-keyscan hostname | ||
86 | |||
87 | Find all hosts from the file ssh_hosts which have new or different keys | ||
88 | from those in the sorted file ssh_known_hosts: | ||
89 | |||
90 | $ ssh-keyscan -t rsa,dsa -f ssh_hosts | \ | ||
91 | sort -u - ssh_known_hosts | diff ssh_known_hosts - | ||
92 | |||
93 | SEE ALSO | ||
94 | ssh(1), sshd(8) | ||
95 | |||
96 | AUTHORS | ||
97 | David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne | ||
98 | Davison <wayned@users.sourceforge.net> added support for protocol version | ||
99 | 2. | ||
100 | |||
101 | BUGS | ||
102 | It generates "Connection closed by remote host" messages on the consoles | ||
103 | of all the machines it scans if the server is older than version 2.9. | ||
104 | This is because it opens a connection to the ssh port, reads the public | ||
105 | key, and drops the connection as soon as it gets the key. | ||
106 | |||
107 | OpenBSD 4.7 January 9, 2010 2 | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..20a8eaa87 --- /dev/null +++ b/ssh-keysign.0 | |||
@@ -0,0 +1,42 @@ | |||
1 | SSH-KEYSIGN(8) OpenBSD System Manager's Manual SSH-KEYSIGN(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-keysign - ssh helper program for host-based authentication | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keysign | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-keysign is used by ssh(1) to access the local host keys and generate | ||
11 | the digital signature required during host-based authentication with SSH | ||
12 | protocol version 2. | ||
13 | |||
14 | ssh-keysign is disabled by default and can only be enabled in the global | ||
15 | client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign | ||
16 | to ``yes''. | ||
17 | |||
18 | ssh-keysign is not intended to be invoked by the user, but from ssh(1). | ||
19 | See ssh(1) and sshd(8) for more information about host-based authentica- | ||
20 | tion. | ||
21 | |||
22 | FILES | ||
23 | /etc/ssh/ssh_config | ||
24 | Controls whether ssh-keysign is enabled. | ||
25 | |||
26 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key | ||
27 | These files contain the private parts of the host keys used to | ||
28 | generate the digital signature. They should be owned by root, | ||
29 | readable only by root, and not accessible to others. Since they | ||
30 | are readable only by root, ssh-keysign must be set-uid root if | ||
31 | host-based authentication is used. | ||
32 | |||
33 | SEE ALSO | ||
34 | ssh(1), ssh-keygen(1), ssh_config(5), sshd(8) | ||
35 | |||
36 | HISTORY | ||
37 | ssh-keysign first appeared in OpenBSD 3.2. | ||
38 | |||
39 | AUTHORS | ||
40 | Markus Friedl <markus@openbsd.org> | ||
41 | |||
42 | OpenBSD 4.7 May 31, 2007 1 | ||
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0 new file mode 100644 index 000000000..9eb2bc96a --- /dev/null +++ b/ssh-pkcs11-helper.0 | |||
@@ -0,0 +1,25 @@ | |||
1 | SSH-PKCS11-HELPER(8) OpenBSD System Manager's Manual SSH-PKCS11-HELPER(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-pkcs11-helper - ssh-agent helper program for PKCS#11 support | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-pkcs11-helper | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-pkcs11-helper is used by ssh-agent(1) to access keys provided by a | ||
11 | PKCS#11 token. | ||
12 | |||
13 | ssh-pkcs11-helper is not intended to be invoked by the user, but from | ||
14 | ssh-agent(1). | ||
15 | |||
16 | SEE ALSO | ||
17 | ssh(1), ssh-add(1), ssh-agent(1) | ||
18 | |||
19 | HISTORY | ||
20 | ssh-pkcs11-helper first appeared in OpenBSD 4.7. | ||
21 | |||
22 | AUTHORS | ||
23 | Markus Friedl <markus@openbsd.org> | ||
24 | |||
25 | OpenBSD 4.7 February 10, 2010 1 | ||
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0 new file mode 100644 index 000000000..51b6f5571 --- /dev/null +++ b/ssh-rand-helper.0 | |||
@@ -0,0 +1,51 @@ | |||
1 | SSH-RAND-HELPER(8) OpenBSD System Manager's Manual SSH-RAND-HELPER(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-rand-helper - random number gatherer for OpenSSH | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-rand-hlper [-vxXh] [-b bytes] | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-rand-helper is a small helper program used by ssh(1), ssh-add(1), | ||
11 | ssh-agent(1), ssh-keygen(1), ssh-keyscan(1) and sshd(8) to gather random | ||
12 | numbers of cryptographic quality if the openssl(4) library has not been | ||
13 | configured to provide them itself. | ||
14 | |||
15 | Normally ssh-rand-helper will generate a strong random seed and provide | ||
16 | it to the calling program via standard output. If standard output is a | ||
17 | tty, ssh-rand-helper will instead print the seed in hexidecimal format | ||
18 | unless told otherwise. | ||
19 | |||
20 | ssh-rand-helper will by default gather random numbers from the system | ||
21 | commands listed in /etc/ssh/ssh_prng_cmds. The output of each of the | ||
22 | commands listed will be hashed and used to generate a random seed for the | ||
23 | calling program. ssh-rand-helper will also store seed files in | ||
24 | ~/.ssh/prng_seed between executions. | ||
25 | |||
26 | Alternately, ssh-rand-helper may be configured at build time to collect | ||
27 | random numbers from a EGD/PRNGd server via a unix domain or localhost tcp | ||
28 | socket. | ||
29 | |||
30 | This program is not intended to be run by the end-user, so the few com- | ||
31 | mandline options are for debugging purposes only. | ||
32 | |||
33 | -b bytes | ||
34 | Specify the number of random bytes to include in the output. | ||
35 | |||
36 | -x Output a hexidecimal instead of a binary seed. | ||
37 | |||
38 | -X Force output of a binary seed, even if standard output is a tty | ||
39 | |||
40 | -v Turn on debugging message. Multiple -v options will increase the | ||
41 | debugging level. | ||
42 | |||
43 | -h Display a summary of options. | ||
44 | |||
45 | AUTHORS | ||
46 | Damien Miller <djm@mindrot.org> | ||
47 | |||
48 | SEE ALSO | ||
49 | ssh(1), ssh-add(1), ssh-keygen(1), sshd(8) | ||
50 | |||
51 | OpenBSD 4.7 April 14, 2002 1 | ||
@@ -0,0 +1,880 @@ | |||
1 | SSH(1) OpenBSD Reference Manual SSH(1) | ||
2 | |||
3 | NAME | ||
4 | ssh - OpenSSH SSH client (remote login program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] | ||
8 | [-D [bind_address:]port] [-e escape_char] [-F configfile] [-I pkcs11] | ||
9 | [-i identity_file] [-L [bind_address:]port:host:hostport] | ||
10 | [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] | ||
11 | [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] | ||
12 | [-w local_tun[:remote_tun]] [user@]hostname [command] | ||
13 | |||
14 | DESCRIPTION | ||
15 | ssh (SSH client) is a program for logging into a remote machine and for | ||
16 | executing commands on a remote machine. It is intended to replace rlogin | ||
17 | and rsh, and provide secure encrypted communications between two untrust- | ||
18 | ed hosts over an insecure network. X11 connections and arbitrary TCP | ||
19 | ports can also be forwarded over the secure channel. | ||
20 | |||
21 | ssh connects and logs into the specified hostname (with optional user | ||
22 | name). The user must prove his/her identity to the remote machine using | ||
23 | one of several methods depending on the protocol version used (see be- | ||
24 | low). | ||
25 | |||
26 | If command is specified, it is executed on the remote host instead of a | ||
27 | login shell. | ||
28 | |||
29 | The options are as follows: | ||
30 | |||
31 | -1 Forces ssh to try protocol version 1 only. | ||
32 | |||
33 | -2 Forces ssh to try protocol version 2 only. | ||
34 | |||
35 | -4 Forces ssh to use IPv4 addresses only. | ||
36 | |||
37 | -6 Forces ssh to use IPv6 addresses only. | ||
38 | |||
39 | -A Enables forwarding of the authentication agent connection. This | ||
40 | can also be specified on a per-host basis in a configuration | ||
41 | file. | ||
42 | |||
43 | Agent forwarding should be enabled with caution. Users with the | ||
44 | ability to bypass file permissions on the remote host (for the | ||
45 | agent's UNIX-domain socket) can access the local agent through | ||
46 | the forwarded connection. An attacker cannot obtain key material | ||
47 | from the agent, however they can perform operations on the keys | ||
48 | that enable them to authenticate using the identities loaded into | ||
49 | the agent. | ||
50 | |||
51 | -a Disables forwarding of the authentication agent connection. | ||
52 | |||
53 | -b bind_address | ||
54 | Use bind_address on the local machine as the source address of | ||
55 | the connection. Only useful on systems with more than one ad- | ||
56 | dress. | ||
57 | |||
58 | -C Requests compression of all data (including stdin, stdout, | ||
59 | stderr, and data for forwarded X11 and TCP connections). The | ||
60 | compression algorithm is the same used by gzip(1), and the | ||
61 | ``level'' can be controlled by the CompressionLevel option for | ||
62 | protocol version 1. Compression is desirable on modem lines and | ||
63 | other slow connections, but will only slow down things on fast | ||
64 | networks. The default value can be set on a host-by-host basis | ||
65 | in the configuration files; see the Compression option. | ||
66 | |||
67 | -c cipher_spec | ||
68 | Selects the cipher specification for encrypting the session. | ||
69 | |||
70 | Protocol version 1 allows specification of a single cipher. The | ||
71 | supported values are ``3des'', ``blowfish'', and ``des''. 3des | ||
72 | (triple-des) is an encrypt-decrypt-encrypt triple with three dif- | ||
73 | ferent keys. It is believed to be secure. blowfish is a fast | ||
74 | block cipher; it appears very secure and is much faster than | ||
75 | 3des. des is only supported in the ssh client for interoperabil- | ||
76 | ity with legacy protocol 1 implementations that do not support | ||
77 | the 3des cipher. Its use is strongly discouraged due to crypto- | ||
78 | graphic weaknesses. The default is ``3des''. | ||
79 | |||
80 | For protocol version 2, cipher_spec is a comma-separated list of | ||
81 | ciphers listed in order of preference. See the Ciphers keyword | ||
82 | for more information. | ||
83 | |||
84 | -D [bind_address:]port | ||
85 | Specifies a local ``dynamic'' application-level port forwarding. | ||
86 | This works by allocating a socket to listen to port on the local | ||
87 | side, optionally bound to the specified bind_address. Whenever a | ||
88 | connection is made to this port, the connection is forwarded over | ||
89 | the secure channel, and the application protocol is then used to | ||
90 | determine where to connect to from the remote machine. Currently | ||
91 | the SOCKS4 and SOCKS5 protocols are supported, and ssh will act | ||
92 | as a SOCKS server. Only root can forward privileged ports. Dy- | ||
93 | namic port forwardings can also be specified in the configuration | ||
94 | file. | ||
95 | |||
96 | IPv6 addresses can be specified with an alternative syntax: | ||
97 | [bind_address/]port or by enclosing the address in square brack- | ||
98 | ets. Only the superuser can forward privileged ports. By de- | ||
99 | fault, the local port is bound in accordance with the | ||
100 | GatewayPorts setting. However, an explicit bind_address may be | ||
101 | used to bind the connection to a specific address. The | ||
102 | bind_address of ``localhost'' indicates that the listening port | ||
103 | be bound for local use only, while an empty address or `*' indi- | ||
104 | cates that the port should be available from all interfaces. | ||
105 | |||
106 | -e escape_char | ||
107 | Sets the escape character for sessions with a pty (default: `~'). | ||
108 | The escape character is only recognized at the beginning of a | ||
109 | line. The escape character followed by a dot (`.') closes the | ||
110 | connection; followed by control-Z suspends the connection; and | ||
111 | followed by itself sends the escape character once. Setting the | ||
112 | character to ``none'' disables any escapes and makes the session | ||
113 | fully transparent. | ||
114 | |||
115 | -F configfile | ||
116 | Specifies an alternative per-user configuration file. If a con- | ||
117 | figuration file is given on the command line, the system-wide | ||
118 | configuration file (/etc/ssh/ssh_config) will be ignored. The | ||
119 | default for the per-user configuration file is ~/.ssh/config. | ||
120 | |||
121 | -f Requests ssh to go to background just before command execution. | ||
122 | This is useful if ssh is going to ask for passwords or passphras- | ||
123 | es, but the user wants it in the background. This implies -n. | ||
124 | The recommended way to start X11 programs at a remote site is | ||
125 | with something like ssh -f host xterm. | ||
126 | |||
127 | If the ExitOnForwardFailure configuration option is set to | ||
128 | ``yes'', then a client started with -f will wait for all remote | ||
129 | port forwards to be successfully established before placing it- | ||
130 | self in the background. | ||
131 | |||
132 | -g Allows remote hosts to connect to local forwarded ports. | ||
133 | |||
134 | -I pkcs11 | ||
135 | Specify the PKCS#11 shared library ssh should use to communicate | ||
136 | with a PKCS#11 token providing the user's private RSA key. | ||
137 | |||
138 | -i identity_file | ||
139 | Selects a file from which the identity (private key) for RSA or | ||
140 | DSA authentication is read. The default is ~/.ssh/identity for | ||
141 | protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro- | ||
142 | tocol version 2. Identity files may also be specified on a per- | ||
143 | host basis in the configuration file. It is possible to have | ||
144 | multiple -i options (and multiple identities specified in config- | ||
145 | uration files). ssh will also try to load certificate informa- | ||
146 | tion from the filename obtained by appending -cert.pub to identi- | ||
147 | ty filenames. | ||
148 | |||
149 | -K Enables GSSAPI-based authentication and forwarding (delegation) | ||
150 | of GSSAPI credentials to the server. | ||
151 | |||
152 | -k Disables forwarding (delegation) of GSSAPI credentials to the | ||
153 | server. | ||
154 | |||
155 | -L [bind_address:]port:host:hostport | ||
156 | Specifies that the given port on the local (client) host is to be | ||
157 | forwarded to the given host and port on the remote side. This | ||
158 | works by allocating a socket to listen to port on the local side, | ||
159 | optionally bound to the specified bind_address. Whenever a con- | ||
160 | nection is made to this port, the connection is forwarded over | ||
161 | the secure channel, and a connection is made to host port | ||
162 | hostport from the remote machine. Port forwardings can also be | ||
163 | specified in the configuration file. IPv6 addresses can be spec- | ||
164 | ified with an alternative syntax: [bind_address/]port/host/host- | ||
165 | port or by enclosing the address in square brackets. Only the | ||
166 | superuser can forward privileged ports. By default, the local | ||
167 | port is bound in accordance with the GatewayPorts setting. How- | ||
168 | ever, an explicit bind_address may be used to bind the connection | ||
169 | to a specific address. The bind_address of ``localhost'' indi- | ||
170 | cates that the listening port be bound for local use only, while | ||
171 | an empty address or `*' indicates that the port should be avail- | ||
172 | able from all interfaces. | ||
173 | |||
174 | -l login_name | ||
175 | Specifies the user to log in as on the remote machine. This also | ||
176 | may be specified on a per-host basis in the configuration file. | ||
177 | |||
178 | -M Places the ssh client into ``master'' mode for connection shar- | ||
179 | ing. Multiple -M options places ssh into ``master'' mode with | ||
180 | confirmation required before slave connections are accepted. Re- | ||
181 | fer to the description of ControlMaster in ssh_config(5) for de- | ||
182 | tails. | ||
183 | |||
184 | -m mac_spec | ||
185 | Additionally, for protocol version 2 a comma-separated list of | ||
186 | MAC (message authentication code) algorithms can be specified in | ||
187 | order of preference. See the MACs keyword for more information. | ||
188 | |||
189 | -N Do not execute a remote command. This is useful for just for- | ||
190 | warding ports (protocol version 2 only). | ||
191 | |||
192 | -n Redirects stdin from /dev/null (actually, prevents reading from | ||
193 | stdin). This must be used when ssh is run in the background. A | ||
194 | common trick is to use this to run X11 programs on a remote ma- | ||
195 | chine. For example, ssh -n shadows.cs.hut.fi emacs & will start | ||
196 | an emacs on shadows.cs.hut.fi, and the X11 connection will be au- | ||
197 | tomatically forwarded over an encrypted channel. The ssh program | ||
198 | will be put in the background. (This does not work if ssh needs | ||
199 | to ask for a password or passphrase; see also the -f option.) | ||
200 | |||
201 | -O ctl_cmd | ||
202 | Control an active connection multiplexing master process. When | ||
203 | the -O option is specified, the ctl_cmd argument is interpreted | ||
204 | and passed to the master process. Valid commands are: ``check'' | ||
205 | (check that the master process is running) and ``exit'' (request | ||
206 | the master to exit). | ||
207 | |||
208 | -o option | ||
209 | Can be used to give options in the format used in the configura- | ||
210 | tion file. This is useful for specifying options for which there | ||
211 | is no separate command-line flag. For full details of the op- | ||
212 | tions listed below, and their possible values, see ssh_config(5). | ||
213 | |||
214 | AddressFamily | ||
215 | BatchMode | ||
216 | BindAddress | ||
217 | ChallengeResponseAuthentication | ||
218 | CheckHostIP | ||
219 | Cipher | ||
220 | Ciphers | ||
221 | ClearAllForwardings | ||
222 | Compression | ||
223 | CompressionLevel | ||
224 | ConnectionAttempts | ||
225 | ConnectTimeout | ||
226 | ControlMaster | ||
227 | ControlPath | ||
228 | DynamicForward | ||
229 | EscapeChar | ||
230 | ExitOnForwardFailure | ||
231 | ForwardAgent | ||
232 | ForwardX11 | ||
233 | ForwardX11Trusted | ||
234 | GatewayPorts | ||
235 | GlobalKnownHostsFile | ||
236 | GSSAPIAuthentication | ||
237 | GSSAPIDelegateCredentials | ||
238 | HashKnownHosts | ||
239 | Host | ||
240 | HostbasedAuthentication | ||
241 | HostKeyAlgorithms | ||
242 | HostKeyAlias | ||
243 | HostName | ||
244 | IdentityFile | ||
245 | IdentitiesOnly | ||
246 | KbdInteractiveDevices | ||
247 | LocalCommand | ||
248 | LocalForward | ||
249 | LogLevel | ||
250 | MACs | ||
251 | NoHostAuthenticationForLocalhost | ||
252 | NumberOfPasswordPrompts | ||
253 | PasswordAuthentication | ||
254 | PermitLocalCommand | ||
255 | PKCS11Provider | ||
256 | Port | ||
257 | PreferredAuthentications | ||
258 | Protocol | ||
259 | ProxyCommand | ||
260 | PubkeyAuthentication | ||
261 | RekeyLimit | ||
262 | RemoteForward | ||
263 | RhostsRSAAuthentication | ||
264 | RSAAuthentication | ||
265 | SendEnv | ||
266 | ServerAliveInterval | ||
267 | ServerAliveCountMax | ||
268 | StrictHostKeyChecking | ||
269 | TCPKeepAlive | ||
270 | Tunnel | ||
271 | TunnelDevice | ||
272 | UsePrivilegedPort | ||
273 | User | ||
274 | UserKnownHostsFile | ||
275 | VerifyHostKeyDNS | ||
276 | VisualHostKey | ||
277 | XAuthLocation | ||
278 | |||
279 | -p port | ||
280 | Port to connect to on the remote host. This can be specified on | ||
281 | a per-host basis in the configuration file. | ||
282 | |||
283 | -q Quiet mode. Causes most warning and diagnostic messages to be | ||
284 | suppressed. | ||
285 | |||
286 | -R [bind_address:]port:host:hostport | ||
287 | Specifies that the given port on the remote (server) host is to | ||
288 | be forwarded to the given host and port on the local side. This | ||
289 | works by allocating a socket to listen to port on the remote | ||
290 | side, and whenever a connection is made to this port, the connec- | ||
291 | tion is forwarded over the secure channel, and a connection is | ||
292 | made to host port hostport from the local machine. | ||
293 | |||
294 | Port forwardings can also be specified in the configuration file. | ||
295 | Privileged ports can be forwarded only when logging in as root on | ||
296 | the remote machine. IPv6 addresses can be specified by enclosing | ||
297 | the address in square braces or using an alternative syntax: | ||
298 | [bind_address/]host/port/hostport. | ||
299 | |||
300 | By default, the listening socket on the server will be bound to | ||
301 | the loopback interface only. This may be overridden by specify- | ||
302 | ing a bind_address. An empty bind_address, or the address `*', | ||
303 | indicates that the remote socket should listen on all interfaces. | ||
304 | Specifying a remote bind_address will only succeed if the serv- | ||
305 | er's GatewayPorts option is enabled (see sshd_config(5)). | ||
306 | |||
307 | If the port argument is `0', the listen port will be dynamically | ||
308 | allocated on the server and reported to the client at run time. | ||
309 | |||
310 | -S ctl_path | ||
311 | Specifies the location of a control socket for connection sharing | ||
312 | or the string ``none'' to disable connection sharing. Refer to | ||
313 | the description of ControlPath and ControlMaster in ssh_config(5) | ||
314 | for details. | ||
315 | |||
316 | -s May be used to request invocation of a subsystem on the remote | ||
317 | system. Subsystems are a feature of the SSH2 protocol which fa- | ||
318 | cilitate the use of SSH as a secure transport for other applica- | ||
319 | tions (eg. sftp(1)). The subsystem is specified as the remote | ||
320 | command. | ||
321 | |||
322 | -T Disable pseudo-tty allocation. | ||
323 | |||
324 | -t Force pseudo-tty allocation. This can be used to execute arbi- | ||
325 | trary screen-based programs on a remote machine, which can be | ||
326 | very useful, e.g. when implementing menu services. Multiple -t | ||
327 | options force tty allocation, even if ssh has no local tty. | ||
328 | |||
329 | -V Display the version number and exit. | ||
330 | |||
331 | -v Verbose mode. Causes ssh to print debugging messages about its | ||
332 | progress. This is helpful in debugging connection, authentica- | ||
333 | tion, and configuration problems. Multiple -v options increase | ||
334 | the verbosity. The maximum is 3. | ||
335 | |||
336 | -W host:port | ||
337 | Requests that standard input and output on the client be forward- | ||
338 | ed to host on port over the secure channel. Implies -N, -T, | ||
339 | ExitOnForwardFailure and ClearAllForwardings and works with Pro- | ||
340 | tocol version 2 only. | ||
341 | |||
342 | -w local_tun[:remote_tun] | ||
343 | Requests tunnel device forwarding with the specified tun(4) de- | ||
344 | vices between the client (local_tun) and the server (remote_tun). | ||
345 | |||
346 | The devices may be specified by numerical ID or the keyword | ||
347 | ``any'', which uses the next available tunnel device. If | ||
348 | remote_tun is not specified, it defaults to ``any''. See also | ||
349 | the Tunnel and TunnelDevice directives in ssh_config(5). If the | ||
350 | Tunnel directive is unset, it is set to the default tunnel mode, | ||
351 | which is ``point-to-point''. | ||
352 | |||
353 | -X Enables X11 forwarding. This can also be specified on a per-host | ||
354 | basis in a configuration file. | ||
355 | |||
356 | X11 forwarding should be enabled with caution. Users with the | ||
357 | ability to bypass file permissions on the remote host (for the | ||
358 | user's X authorization database) can access the local X11 display | ||
359 | through the forwarded connection. An attacker may then be able | ||
360 | to perform activities such as keystroke monitoring. | ||
361 | |||
362 | For this reason, X11 forwarding is subjected to X11 SECURITY ex- | ||
363 | tension restrictions by default. Please refer to the ssh -Y op- | ||
364 | tion and the ForwardX11Trusted directive in ssh_config(5) for | ||
365 | more information. | ||
366 | |||
367 | -x Disables X11 forwarding. | ||
368 | |||
369 | -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not | ||
370 | subjected to the X11 SECURITY extension controls. | ||
371 | |||
372 | -y Send log information using the syslog(3) system module. By de- | ||
373 | fault this information is sent to stderr. | ||
374 | |||
375 | ssh may additionally obtain configuration data from a per-user configura- | ||
376 | tion file and a system-wide configuration file. The file format and con- | ||
377 | figuration options are described in ssh_config(5). | ||
378 | |||
379 | ssh exits with the exit status of the remote command or with 255 if an | ||
380 | error occurred. | ||
381 | |||
382 | AUTHENTICATION | ||
383 | The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to | ||
384 | use protocol 2 only, though this can be changed via the Protocol option | ||
385 | in ssh_config(5) or the -1 and -2 options (see above). Both protocols | ||
386 | support similar authentication methods, but protocol 2 is the default | ||
387 | since it provides additional mechanisms for confidentiality (the traffic | ||
388 | is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and integri- | ||
389 | ty (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1 lacks a | ||
390 | strong mechanism for ensuring the integrity of the connection. | ||
391 | |||
392 | The methods available for authentication are: GSSAPI-based authentica- | ||
393 | tion, host-based authentication, public key authentication, challenge-re- | ||
394 | sponse authentication, and password authentication. Authentication meth- | ||
395 | ods are tried in the order specified above, though protocol 2 has a con- | ||
396 | figuration option to change the default order: PreferredAuthentications. | ||
397 | |||
398 | Host-based authentication works as follows: If the machine the user logs | ||
399 | in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote | ||
400 | machine, and the user names are the same on both sides, or if the files | ||
401 | ~/.rhosts or ~/.shosts exist in the user's home directory on the remote | ||
402 | machine and contain a line containing the name of the client machine and | ||
403 | the name of the user on that machine, the user is considered for login. | ||
404 | Additionally, the server must be able to verify the client's host key | ||
405 | (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts, | ||
406 | below) for login to be permitted. This authentication method closes se- | ||
407 | curity holes due to IP spoofing, DNS spoofing, and routing spoofing. | ||
408 | [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the | ||
409 | rlogin/rsh protocol in general, are inherently insecure and should be | ||
410 | disabled if security is desired.] | ||
411 | |||
412 | Public key authentication works as follows: The scheme is based on pub- | ||
413 | lic-key cryptography, using cryptosystems where encryption and decryption | ||
414 | are done using separate keys, and it is unfeasible to derive the decryp- | ||
415 | tion key from the encryption key. The idea is that each user creates a | ||
416 | public/private key pair for authentication purposes. The server knows | ||
417 | the public key, and only the user knows the private key. ssh implements | ||
418 | public key authentication protocol automatically, using either the RSA or | ||
419 | DSA algorithms. Protocol 1 is restricted to using only RSA keys, but | ||
420 | protocol 2 may use either. The HISTORY section of ssl(8) contains a | ||
421 | brief discussion of the two algorithms. | ||
422 | |||
423 | The file ~/.ssh/authorized_keys lists the public keys that are permitted | ||
424 | for logging in. When the user logs in, the ssh program tells the server | ||
425 | which key pair it would like to use for authentication. The client | ||
426 | proves that it has access to the private key and the server checks that | ||
427 | the corresponding public key is authorized to accept the account. | ||
428 | |||
429 | The user creates his/her key pair by running ssh-keygen(1). This stores | ||
430 | the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol | ||
431 | 2 DSA), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in | ||
432 | ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), or | ||
433 | ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home directory. The us- | ||
434 | er should then copy the public key to ~/.ssh/authorized_keys in his/her | ||
435 | home directory on the remote machine. The authorized_keys file corre- | ||
436 | sponds to the conventional ~/.rhosts file, and has one key per line, | ||
437 | though the lines can be very long. After this, the user can log in with- | ||
438 | out giving the password. | ||
439 | |||
440 | A variation on public key authentication is available in the form of cer- | ||
441 | tificate authentication: instead of a set of public/private keys, signed | ||
442 | certificates are used. This has the advantage that a single trusted cer- | ||
443 | tification authority can be used in place of many public/private keys. | ||
444 | See the CERTIFICATES section of ssh-keygen(1) for more information. | ||
445 | |||
446 | The most convenient way to use public key or certificate authentication | ||
447 | may be with an authentication agent. See ssh-agent(1) for more informa- | ||
448 | tion. | ||
449 | |||
450 | Challenge-response authentication works as follows: The server sends an | ||
451 | arbitrary "challenge" text, and prompts for a response. Protocol 2 al- | ||
452 | lows multiple challenges and responses; protocol 1 is restricted to just | ||
453 | one challenge/response. Examples of challenge-response authentication | ||
454 | include BSD Authentication (see login.conf(5)) and PAM (some non-OpenBSD | ||
455 | systems). | ||
456 | |||
457 | Finally, if other authentication methods fail, ssh prompts the user for a | ||
458 | password. The password is sent to the remote host for checking; however, | ||
459 | since all communications are encrypted, the password cannot be seen by | ||
460 | someone listening on the network. | ||
461 | |||
462 | ssh automatically maintains and checks a database containing identifica- | ||
463 | tion for all hosts it has ever been used with. Host keys are stored in | ||
464 | ~/.ssh/known_hosts in the user's home directory. Additionally, the file | ||
465 | /etc/ssh/ssh_known_hosts is automatically checked for known hosts. Any | ||
466 | new hosts are automatically added to the user's file. If a host's iden- | ||
467 | tification ever changes, ssh warns about this and disables password au- | ||
468 | thentication to prevent server spoofing or man-in-the-middle attacks, | ||
469 | which could otherwise be used to circumvent the encryption. The | ||
470 | StrictHostKeyChecking option can be used to control logins to machines | ||
471 | whose host key is not known or has changed. | ||
472 | |||
473 | When the user's identity has been accepted by the server, the server ei- | ||
474 | ther executes the given command, or logs into the machine and gives the | ||
475 | user a normal shell on the remote machine. All communication with the | ||
476 | remote command or shell will be automatically encrypted. | ||
477 | |||
478 | If a pseudo-terminal has been allocated (normal login session), the user | ||
479 | may use the escape characters noted below. | ||
480 | |||
481 | If no pseudo-tty has been allocated, the session is transparent and can | ||
482 | be used to reliably transfer binary data. On most systems, setting the | ||
483 | escape character to ``none'' will also make the session transparent even | ||
484 | if a tty is used. | ||
485 | |||
486 | The session terminates when the command or shell on the remote machine | ||
487 | exits and all X11 and TCP connections have been closed. | ||
488 | |||
489 | ESCAPE CHARACTERS | ||
490 | When a pseudo-terminal has been requested, ssh supports a number of func- | ||
491 | tions through the use of an escape character. | ||
492 | |||
493 | A single tilde character can be sent as ~~ or by following the tilde by a | ||
494 | character other than those described below. The escape character must | ||
495 | always follow a newline to be interpreted as special. The escape charac- | ||
496 | ter can be changed in configuration files using the EscapeChar configura- | ||
497 | tion directive or on the command line by the -e option. | ||
498 | |||
499 | The supported escapes (assuming the default `~') are: | ||
500 | |||
501 | ~. Disconnect. | ||
502 | |||
503 | ~^Z Background ssh. | ||
504 | |||
505 | ~# List forwarded connections. | ||
506 | |||
507 | ~& Background ssh at logout when waiting for forwarded connection / | ||
508 | X11 sessions to terminate. | ||
509 | |||
510 | ~? Display a list of escape characters. | ||
511 | |||
512 | ~B Send a BREAK to the remote system (only useful for SSH protocol | ||
513 | version 2 and if the peer supports it). | ||
514 | |||
515 | ~C Open command line. Currently this allows the addition of port | ||
516 | forwardings using the -L, -R and -D options (see above). It also | ||
517 | allows the cancellation of existing remote port-forwardings using | ||
518 | -KR[bind_address:]port. !command allows the user to execute a | ||
519 | local command if the PermitLocalCommand option is enabled in | ||
520 | ssh_config(5). Basic help is available, using the -h option. | ||
521 | |||
522 | ~R Request rekeying of the connection (only useful for SSH protocol | ||
523 | version 2 and if the peer supports it). | ||
524 | |||
525 | TCP FORWARDING | ||
526 | Forwarding of arbitrary TCP connections over the secure channel can be | ||
527 | specified either on the command line or in a configuration file. One | ||
528 | possible application of TCP forwarding is a secure connection to a mail | ||
529 | server; another is going through firewalls. | ||
530 | |||
531 | In the example below, we look at encrypting communication between an IRC | ||
532 | client and server, even though the IRC server does not directly support | ||
533 | encrypted communications. This works as follows: the user connects to | ||
534 | the remote host using ssh, specifying a port to be used to forward con- | ||
535 | nections to the remote server. After that it is possible to start the | ||
536 | service which is to be encrypted on the client machine, connecting to the | ||
537 | same local port, and ssh will encrypt and forward the connection. | ||
538 | |||
539 | The following example tunnels an IRC session from client machine | ||
540 | ``127.0.0.1'' (localhost) to remote server ``server.example.com'': | ||
541 | |||
542 | $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10 | ||
543 | $ irc -c '#users' -p 1234 pinky 127.0.0.1 | ||
544 | |||
545 | This tunnels a connection to IRC server ``server.example.com'', joining | ||
546 | channel ``#users'', nickname ``pinky'', using port 1234. It doesn't mat- | ||
547 | ter which port is used, as long as it's greater than 1023 (remember, only | ||
548 | root can open sockets on privileged ports) and doesn't conflict with any | ||
549 | ports already in use. The connection is forwarded to port 6667 on the | ||
550 | remote server, since that's the standard port for IRC services. | ||
551 | |||
552 | The -f option backgrounds ssh and the remote command ``sleep 10'' is | ||
553 | specified to allow an amount of time (10 seconds, in the example) to | ||
554 | start the service which is to be tunnelled. If no connections are made | ||
555 | within the time specified, ssh will exit. | ||
556 | |||
557 | X11 FORWARDING | ||
558 | If the ForwardX11 variable is set to ``yes'' (or see the description of | ||
559 | the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY | ||
560 | environment variable is set), the connection to the X11 display is auto- | ||
561 | matically forwarded to the remote side in such a way that any X11 pro- | ||
562 | grams started from the shell (or command) will go through the encrypted | ||
563 | channel, and the connection to the real X server will be made from the | ||
564 | local machine. The user should not manually set DISPLAY. Forwarding of | ||
565 | X11 connections can be configured on the command line or in configuration | ||
566 | files. | ||
567 | |||
568 | The DISPLAY value set by ssh will point to the server machine, but with a | ||
569 | display number greater than zero. This is normal, and happens because | ||
570 | ssh creates a ``proxy'' X server on the server machine for forwarding the | ||
571 | connections over the encrypted channel. | ||
572 | |||
573 | ssh will also automatically set up Xauthority data on the server machine. | ||
574 | For this purpose, it will generate a random authorization cookie, store | ||
575 | it in Xauthority on the server, and verify that any forwarded connections | ||
576 | carry this cookie and replace it by the real cookie when the connection | ||
577 | is opened. The real authentication cookie is never sent to the server | ||
578 | machine (and no cookies are sent in the plain). | ||
579 | |||
580 | If the ForwardAgent variable is set to ``yes'' (or see the description of | ||
581 | the -A and -a options above) and the user is using an authentication | ||
582 | agent, the connection to the agent is automatically forwarded to the re- | ||
583 | mote side. | ||
584 | |||
585 | VERIFYING HOST KEYS | ||
586 | When connecting to a server for the first time, a fingerprint of the | ||
587 | server's public key is presented to the user (unless the option | ||
588 | StrictHostKeyChecking has been disabled). Fingerprints can be determined | ||
589 | using ssh-keygen(1): | ||
590 | |||
591 | $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
592 | |||
593 | If the fingerprint is already known, it can be matched and the key can be | ||
594 | accepted or rejected. Because of the difficulty of comparing host keys | ||
595 | just by looking at hex strings, there is also support to compare host | ||
596 | keys visually, using random art. By setting the VisualHostKey option to | ||
597 | ``yes'', a small ASCII graphic gets displayed on every login to a server, | ||
598 | no matter if the session itself is interactive or not. By learning the | ||
599 | pattern a known server produces, a user can easily find out that the host | ||
600 | key has changed when a completely different pattern is displayed. Be- | ||
601 | cause these patterns are not unambiguous however, a pattern that looks | ||
602 | similar to the pattern remembered only gives a good probability that the | ||
603 | host key is the same, not guaranteed proof. | ||
604 | |||
605 | To get a listing of the fingerprints along with their random art for all | ||
606 | known hosts, the following command line can be used: | ||
607 | |||
608 | $ ssh-keygen -lv -f ~/.ssh/known_hosts | ||
609 | |||
610 | If the fingerprint is unknown, an alternative method of verification is | ||
611 | available: SSH fingerprints verified by DNS. An additional resource | ||
612 | record (RR), SSHFP, is added to a zonefile and the connecting client is | ||
613 | able to match the fingerprint with that of the key presented. | ||
614 | |||
615 | In this example, we are connecting a client to a server, | ||
616 | ``host.example.com''. The SSHFP resource records should first be added | ||
617 | to the zonefile for host.example.com: | ||
618 | |||
619 | $ ssh-keygen -r host.example.com. | ||
620 | |||
621 | The output lines will have to be added to the zonefile. To check that | ||
622 | the zone is answering fingerprint queries: | ||
623 | |||
624 | $ dig -t SSHFP host.example.com | ||
625 | |||
626 | Finally the client connects: | ||
627 | |||
628 | $ ssh -o "VerifyHostKeyDNS ask" host.example.com | ||
629 | [...] | ||
630 | Matching host key fingerprint found in DNS. | ||
631 | Are you sure you want to continue connecting (yes/no)? | ||
632 | |||
633 | See the VerifyHostKeyDNS option in ssh_config(5) for more information. | ||
634 | |||
635 | SSH-BASED VIRTUAL PRIVATE NETWORKS | ||
636 | ssh contains support for Virtual Private Network (VPN) tunnelling using | ||
637 | the tun(4) network pseudo-device, allowing two networks to be joined se- | ||
638 | curely. The sshd_config(5) configuration option PermitTunnel controls | ||
639 | whether the server supports this, and at what level (layer 2 or 3 traf- | ||
640 | fic). | ||
641 | |||
642 | The following example would connect client network 10.0.50.0/24 with re- | ||
643 | mote network 10.0.99.0/24 using a point-to-point connection from 10.1.1.1 | ||
644 | to 10.1.1.2, provided that the SSH server running on the gateway to the | ||
645 | remote network, at 192.168.1.15, allows it. | ||
646 | |||
647 | On the client: | ||
648 | |||
649 | # ssh -f -w 0:1 192.168.1.15 true | ||
650 | # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252 | ||
651 | # route add 10.0.99.0/24 10.1.1.2 | ||
652 | |||
653 | On the server: | ||
654 | |||
655 | # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252 | ||
656 | # route add 10.0.50.0/24 10.1.1.1 | ||
657 | |||
658 | Client access may be more finely tuned via the /root/.ssh/authorized_keys | ||
659 | file (see below) and the PermitRootLogin server option. The following | ||
660 | entry would permit connections on tun(4) device 1 from user ``jane'' and | ||
661 | on tun device 2 from user ``john'', if PermitRootLogin is set to | ||
662 | ``forced-commands-only'': | ||
663 | |||
664 | tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane | ||
665 | tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john | ||
666 | |||
667 | Since an SSH-based setup entails a fair amount of overhead, it may be | ||
668 | more suited to temporary setups, such as for wireless VPNs. More perma- | ||
669 | nent VPNs are better provided by tools such as ipsecctl(8) and | ||
670 | isakmpd(8). | ||
671 | |||
672 | ENVIRONMENT | ||
673 | ssh will normally set the following environment variables: | ||
674 | |||
675 | DISPLAY The DISPLAY variable indicates the location of the | ||
676 | X11 server. It is automatically set by ssh to | ||
677 | point to a value of the form ``hostname:n'', where | ||
678 | ``hostname'' indicates the host where the shell | ||
679 | runs, and `n' is an integer >= 1. ssh uses this | ||
680 | special value to forward X11 connections over the | ||
681 | secure channel. The user should normally not set | ||
682 | DISPLAY explicitly, as that will render the X11 | ||
683 | connection insecure (and will require the user to | ||
684 | manually copy any required authorization cookies). | ||
685 | |||
686 | HOME Set to the path of the user's home directory. | ||
687 | |||
688 | LOGNAME Synonym for USER; set for compatibility with sys- | ||
689 | tems that use this variable. | ||
690 | |||
691 | MAIL Set to the path of the user's mailbox. | ||
692 | |||
693 | PATH Set to the default PATH, as specified when compil- | ||
694 | ing ssh. | ||
695 | |||
696 | SSH_ASKPASS If ssh needs a passphrase, it will read the | ||
697 | passphrase from the current terminal if it was run | ||
698 | from a terminal. If ssh does not have a terminal | ||
699 | associated with it but DISPLAY and SSH_ASKPASS are | ||
700 | set, it will execute the program specified by | ||
701 | SSH_ASKPASS and open an X11 window to read the | ||
702 | passphrase. This is particularly useful when call- | ||
703 | ing ssh from a .xsession or related script. (Note | ||
704 | that on some machines it may be necessary to redi- | ||
705 | rect the input from /dev/null to make this work.) | ||
706 | |||
707 | SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to | ||
708 | communicate with the agent. | ||
709 | |||
710 | SSH_CONNECTION Identifies the client and server ends of the con- | ||
711 | nection. The variable contains four space-separat- | ||
712 | ed values: client IP address, client port number, | ||
713 | server IP address, and server port number. | ||
714 | |||
715 | SSH_ORIGINAL_COMMAND This variable contains the original command line if | ||
716 | a forced command is executed. It can be used to | ||
717 | extract the original arguments. | ||
718 | |||
719 | SSH_TTY This is set to the name of the tty (path to the de- | ||
720 | vice) associated with the current shell or command. | ||
721 | If the current session has no tty, this variable is | ||
722 | not set. | ||
723 | |||
724 | TZ This variable is set to indicate the present time | ||
725 | zone if it was set when the daemon was started | ||
726 | (i.e. the daemon passes the value on to new connec- | ||
727 | tions). | ||
728 | |||
729 | USER Set to the name of the user logging in. | ||
730 | |||
731 | Additionally, ssh reads ~/.ssh/environment, and adds lines of the format | ||
732 | ``VARNAME=value'' to the environment if the file exists and users are al- | ||
733 | lowed to change their environment. For more information, see the | ||
734 | PermitUserEnvironment option in sshd_config(5). | ||
735 | |||
736 | FILES | ||
737 | ~/.rhosts | ||
738 | This file is used for host-based authentication (see above). On | ||
739 | some machines this file may need to be world-readable if the us- | ||
740 | er's home directory is on an NFS partition, because sshd(8) reads | ||
741 | it as root. Additionally, this file must be owned by the user, | ||
742 | and must not have write permissions for anyone else. The recom- | ||
743 | mended permission for most machines is read/write for the user, | ||
744 | and not accessible by others. | ||
745 | |||
746 | ~/.shosts | ||
747 | This file is used in exactly the same way as .rhosts, but allows | ||
748 | host-based authentication without permitting login with | ||
749 | rlogin/rsh. | ||
750 | |||
751 | ~/.ssh/ | ||
752 | This directory is the default location for all user-specific con- | ||
753 | figuration and authentication information. There is no general | ||
754 | requirement to keep the entire contents of this directory secret, | ||
755 | but the recommended permissions are read/write/execute for the | ||
756 | user, and not accessible by others. | ||
757 | |||
758 | ~/.ssh/authorized_keys | ||
759 | Lists the public keys (RSA/DSA) that can be used for logging in | ||
760 | as this user. The format of this file is described in the | ||
761 | sshd(8) manual page. This file is not highly sensitive, but the | ||
762 | recommended permissions are read/write for the user, and not ac- | ||
763 | cessible by others. | ||
764 | |||
765 | ~/.ssh/config | ||
766 | This is the per-user configuration file. The file format and | ||
767 | configuration options are described in ssh_config(5). Because of | ||
768 | the potential for abuse, this file must have strict permissions: | ||
769 | read/write for the user, and not accessible by others. | ||
770 | |||
771 | ~/.ssh/environment | ||
772 | Contains additional definitions for environment variables; see | ||
773 | ENVIRONMENT, above. | ||
774 | |||
775 | ~/.ssh/identity | ||
776 | ~/.ssh/id_dsa | ||
777 | ~/.ssh/id_rsa | ||
778 | Contains the private key for authentication. These files contain | ||
779 | sensitive data and should be readable by the user but not acces- | ||
780 | sible by others (read/write/execute). ssh will simply ignore a | ||
781 | private key file if it is accessible by others. It is possible | ||
782 | to specify a passphrase when generating the key which will be | ||
783 | used to encrypt the sensitive part of this file using 3DES. | ||
784 | |||
785 | ~/.ssh/identity.pub | ||
786 | ~/.ssh/id_dsa.pub | ||
787 | ~/.ssh/id_rsa.pub | ||
788 | Contains the public key for authentication. These files are not | ||
789 | sensitive and can (but need not) be readable by anyone. | ||
790 | |||
791 | ~/.ssh/known_hosts | ||
792 | Contains a list of host keys for all hosts the user has logged | ||
793 | into that are not already in the systemwide list of known host | ||
794 | keys. See sshd(8) for further details of the format of this | ||
795 | file. | ||
796 | |||
797 | ~/.ssh/rc | ||
798 | Commands in this file are executed by ssh when the user logs in, | ||
799 | just before the user's shell (or command) is started. See the | ||
800 | sshd(8) manual page for more information. | ||
801 | |||
802 | /etc/hosts.equiv | ||
803 | This file is for host-based authentication (see above). It | ||
804 | should only be writable by root. | ||
805 | |||
806 | /etc/shosts.equiv | ||
807 | This file is used in exactly the same way as hosts.equiv, but al- | ||
808 | lows host-based authentication without permitting login with | ||
809 | rlogin/rsh. | ||
810 | |||
811 | /etc/ssh/ssh_config | ||
812 | Systemwide configuration file. The file format and configuration | ||
813 | options are described in ssh_config(5). | ||
814 | |||
815 | /etc/ssh/ssh_host_key | ||
816 | /etc/ssh/ssh_host_dsa_key | ||
817 | /etc/ssh/ssh_host_rsa_key | ||
818 | These three files contain the private parts of the host keys and | ||
819 | are used for host-based authentication. If protocol version 1 is | ||
820 | used, ssh must be setuid root, since the host key is readable on- | ||
821 | ly by root. For protocol version 2, ssh uses ssh-keysign(8) to | ||
822 | access the host keys, eliminating the requirement that ssh be se- | ||
823 | tuid root when host-based authentication is used. By default ssh | ||
824 | is not setuid root. | ||
825 | |||
826 | /etc/ssh/ssh_known_hosts | ||
827 | Systemwide list of known host keys. This file should be prepared | ||
828 | by the system administrator to contain the public host keys of | ||
829 | all machines in the organization. It should be world-readable. | ||
830 | See sshd(8) for further details of the format of this file. | ||
831 | |||
832 | /etc/ssh/sshrc | ||
833 | Commands in this file are executed by ssh when the user logs in, | ||
834 | just before the user's shell (or command) is started. See the | ||
835 | sshd(8) manual page for more information. | ||
836 | |||
837 | SEE ALSO | ||
838 | scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1), | ||
839 | tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8) | ||
840 | |||
841 | The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006. | ||
842 | |||
843 | The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006. | ||
844 | |||
845 | The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006. | ||
846 | |||
847 | The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006. | ||
848 | |||
849 | The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006. | ||
850 | |||
851 | Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC | ||
852 | 4255, 2006. | ||
853 | |||
854 | Generic Message Exchange Authentication for the Secure Shell Protocol | ||
855 | (SSH), RFC 4256, 2006. | ||
856 | |||
857 | The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006. | ||
858 | |||
859 | The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006. | ||
860 | |||
861 | Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer | ||
862 | Protocol, RFC 4345, 2006. | ||
863 | |||
864 | Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer | ||
865 | Protocol, RFC 4419, 2006. | ||
866 | |||
867 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
868 | |||
869 | A. Perrig and D. Song, Hash Visualization: a New Technique to improve | ||
870 | Real-World Security, 1999, International Workshop on Cryptographic | ||
871 | Techniques and E-Commerce (CrypTEC '99). | ||
872 | |||
873 | AUTHORS | ||
874 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
875 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
876 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
877 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
878 | versions 1.5 and 2.0. | ||
879 | |||
880 | OpenBSD 4.7 March 26, 2010 14 | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..1a2c64ce1 --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,676 @@ | |||
1 | SSH_CONFIG(5) OpenBSD Programmer's Manual SSH_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | ssh_config - OpenSSH SSH client configuration files | ||
5 | |||
6 | SYNOPSIS | ||
7 | ~/.ssh/config | ||
8 | /etc/ssh/ssh_config | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh(1) obtains configuration data from the following sources in the fol- | ||
12 | lowing order: | ||
13 | |||
14 | 1. command-line options | ||
15 | 2. user's configuration file (~/.ssh/config) | ||
16 | 3. system-wide configuration file (/etc/ssh/ssh_config) | ||
17 | |||
18 | For each parameter, the first obtained value will be used. The configu- | ||
19 | ration files contain sections separated by ``Host'' specifications, and | ||
20 | that section is only applied for hosts that match one of the patterns | ||
21 | given in the specification. The matched host name is the one given on | ||
22 | the command line. | ||
23 | |||
24 | Since the first obtained value for each parameter is used, more host-spe- | ||
25 | cific declarations should be given near the beginning of the file, and | ||
26 | general defaults at the end. | ||
27 | |||
28 | The configuration file has the following format: | ||
29 | |||
30 | Empty lines and lines starting with `#' are comments. Otherwise a line | ||
31 | is of the format ``keyword arguments''. Configuration options may be | ||
32 | separated by whitespace or optional whitespace and exactly one `='; the | ||
33 | latter format is useful to avoid the need to quote whitespace when speci- | ||
34 | fying configuration options using the ssh, scp, and sftp -o option. Ar- | ||
35 | guments may optionally be enclosed in double quotes (") in order to rep- | ||
36 | resent arguments containing spaces. | ||
37 | |||
38 | The possible keywords and their meanings are as follows (note that key- | ||
39 | words are case-insensitive and arguments are case-sensitive): | ||
40 | |||
41 | Host Restricts the following declarations (up to the next Host key- | ||
42 | word) to be only for those hosts that match one of the patterns | ||
43 | given after the keyword. If more than one pattern is provided, | ||
44 | they should be separated by whitespace. A single `*' as a pat- | ||
45 | tern can be used to provide global defaults for all hosts. The | ||
46 | host is the hostname argument given on the command line (i.e. the | ||
47 | name is not converted to a canonicalized host name before match- | ||
48 | ing). | ||
49 | |||
50 | See PATTERNS for more information on patterns. | ||
51 | |||
52 | AddressFamily | ||
53 | Specifies which address family to use when connecting. Valid ar- | ||
54 | guments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' (use | ||
55 | IPv6 only). | ||
56 | |||
57 | BatchMode | ||
58 | If set to ``yes'', passphrase/password querying will be disabled. | ||
59 | This option is useful in scripts and other batch jobs where no | ||
60 | user is present to supply the password. The argument must be | ||
61 | ``yes'' or ``no''. The default is ``no''. | ||
62 | |||
63 | BindAddress | ||
64 | Use the specified address on the local machine as the source ad- | ||
65 | dress of the connection. Only useful on systems with more than | ||
66 | one address. Note that this option does not work if | ||
67 | UsePrivilegedPort is set to ``yes''. | ||
68 | |||
69 | ChallengeResponseAuthentication | ||
70 | Specifies whether to use challenge-response authentication. The | ||
71 | argument to this keyword must be ``yes'' or ``no''. The default | ||
72 | is ``yes''. | ||
73 | |||
74 | CheckHostIP | ||
75 | If this flag is set to ``yes'', ssh(1) will additionally check | ||
76 | the host IP address in the known_hosts file. This allows ssh to | ||
77 | detect if a host key changed due to DNS spoofing. If the option | ||
78 | is set to ``no'', the check will not be executed. The default is | ||
79 | ``yes''. | ||
80 | |||
81 | Cipher Specifies the cipher to use for encrypting the session in proto- | ||
82 | col version 1. Currently, ``blowfish'', ``3des'', and ``des'' | ||
83 | are supported. des is only supported in the ssh(1) client for | ||
84 | interoperability with legacy protocol 1 implementations that do | ||
85 | not support the 3des cipher. Its use is strongly discouraged due | ||
86 | to cryptographic weaknesses. The default is ``3des''. | ||
87 | |||
88 | Ciphers | ||
89 | Specifies the ciphers allowed for protocol version 2 in order of | ||
90 | preference. Multiple ciphers must be comma-separated. The sup- | ||
91 | ported ciphers are ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', | ||
92 | ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', | ||
93 | ``arcfour128'', ``arcfour256'', ``arcfour'', ``blowfish-cbc'', | ||
94 | and ``cast128-cbc''. The default is: | ||
95 | |||
96 | aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, | ||
97 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, | ||
98 | aes256-cbc,arcfour | ||
99 | |||
100 | ClearAllForwardings | ||
101 | Specifies that all local, remote, and dynamic port forwardings | ||
102 | specified in the configuration files or on the command line be | ||
103 | cleared. This option is primarily useful when used from the | ||
104 | ssh(1) command line to clear port forwardings set in configura- | ||
105 | tion files, and is automatically set by scp(1) and sftp(1). The | ||
106 | argument must be ``yes'' or ``no''. The default is ``no''. | ||
107 | |||
108 | Compression | ||
109 | Specifies whether to use compression. The argument must be | ||
110 | ``yes'' or ``no''. The default is ``no''. | ||
111 | |||
112 | CompressionLevel | ||
113 | Specifies the compression level to use if compression is enabled. | ||
114 | The argument must be an integer from 1 (fast) to 9 (slow, best). | ||
115 | The default level is 6, which is good for most applications. The | ||
116 | meaning of the values is the same as in gzip(1). Note that this | ||
117 | option applies to protocol version 1 only. | ||
118 | |||
119 | ConnectionAttempts | ||
120 | Specifies the number of tries (one per second) to make before ex- | ||
121 | iting. The argument must be an integer. This may be useful in | ||
122 | scripts if the connection sometimes fails. The default is 1. | ||
123 | |||
124 | ConnectTimeout | ||
125 | Specifies the timeout (in seconds) used when connecting to the | ||
126 | SSH server, instead of using the default system TCP timeout. | ||
127 | This value is used only when the target is down or really un- | ||
128 | reachable, not when it refuses the connection. | ||
129 | |||
130 | ControlMaster | ||
131 | Enables the sharing of multiple sessions over a single network | ||
132 | connection. When set to ``yes'', ssh(1) will listen for connec- | ||
133 | tions on a control socket specified using the ControlPath argu- | ||
134 | ment. Additional sessions can connect to this socket using the | ||
135 | same ControlPath with ControlMaster set to ``no'' (the default). | ||
136 | These sessions will try to reuse the master instance's network | ||
137 | connection rather than initiating new ones, but will fall back to | ||
138 | connecting normally if the control socket does not exist, or is | ||
139 | not listening. | ||
140 | |||
141 | Setting this to ``ask'' will cause ssh to listen for control con- | ||
142 | nections, but require confirmation using the SSH_ASKPASS program | ||
143 | before they are accepted (see ssh-add(1) for details). If the | ||
144 | ControlPath cannot be opened, ssh will continue without connect- | ||
145 | ing to a master instance. | ||
146 | |||
147 | X11 and ssh-agent(1) forwarding is supported over these multi- | ||
148 | plexed connections, however the display and agent forwarded will | ||
149 | be the one belonging to the master connection i.e. it is not pos- | ||
150 | sible to forward multiple displays or agents. | ||
151 | |||
152 | Two additional options allow for opportunistic multiplexing: try | ||
153 | to use a master connection but fall back to creating a new one if | ||
154 | one does not already exist. These options are: ``auto'' and | ||
155 | ``autoask''. The latter requires confirmation like the ``ask'' | ||
156 | option. | ||
157 | |||
158 | ControlPath | ||
159 | Specify the path to the control socket used for connection shar- | ||
160 | ing as described in the ControlMaster section above or the string | ||
161 | ``none'' to disable connection sharing. In the path, `%l' will | ||
162 | be substituted by the local host name, `%h' will be substituted | ||
163 | by the target host name, `%p' the port, and `%r' by the remote | ||
164 | login username. It is recommended that any ControlPath used for | ||
165 | opportunistic connection sharing include at least %h, %p, and %r. | ||
166 | This ensures that shared connections are uniquely identified. | ||
167 | |||
168 | DynamicForward | ||
169 | Specifies that a TCP port on the local machine be forwarded over | ||
170 | the secure channel, and the application protocol is then used to | ||
171 | determine where to connect to from the remote machine. | ||
172 | |||
173 | The argument must be [bind_address:]port. IPv6 addresses can be | ||
174 | specified by enclosing addresses in square brackets or by using | ||
175 | an alternative syntax: [bind_address/]port. By default, the lo- | ||
176 | cal port is bound in accordance with the GatewayPorts setting. | ||
177 | However, an explicit bind_address may be used to bind the connec- | ||
178 | tion to a specific address. The bind_address of ``localhost'' | ||
179 | indicates that the listening port be bound for local use only, | ||
180 | while an empty address or `*' indicates that the port should be | ||
181 | available from all interfaces. | ||
182 | |||
183 | Currently the SOCKS4 and SOCKS5 protocols are supported, and | ||
184 | ssh(1) will act as a SOCKS server. Multiple forwardings may be | ||
185 | specified, and additional forwardings can be given on the command | ||
186 | line. Only the superuser can forward privileged ports. | ||
187 | |||
188 | EnableSSHKeysign | ||
189 | Setting this option to ``yes'' in the global client configuration | ||
190 | file /etc/ssh/ssh_config enables the use of the helper program | ||
191 | ssh-keysign(8) during HostbasedAuthentication. The argument must | ||
192 | be ``yes'' or ``no''. The default is ``no''. This option should | ||
193 | be placed in the non-hostspecific section. See ssh-keysign(8) | ||
194 | for more information. | ||
195 | |||
196 | EscapeChar | ||
197 | Sets the escape character (default: `~'). The escape character | ||
198 | can also be set on the command line. The argument should be a | ||
199 | single character, `^' followed by a letter, or ``none'' to dis- | ||
200 | able the escape character entirely (making the connection trans- | ||
201 | parent for binary data). | ||
202 | |||
203 | ExitOnForwardFailure | ||
204 | Specifies whether ssh(1) should terminate the connection if it | ||
205 | cannot set up all requested dynamic, tunnel, local, and remote | ||
206 | port forwardings. The argument must be ``yes'' or ``no''. The | ||
207 | default is ``no''. | ||
208 | |||
209 | ForwardAgent | ||
210 | Specifies whether the connection to the authentication agent (if | ||
211 | any) will be forwarded to the remote machine. The argument must | ||
212 | be ``yes'' or ``no''. The default is ``no''. | ||
213 | |||
214 | Agent forwarding should be enabled with caution. Users with the | ||
215 | ability to bypass file permissions on the remote host (for the | ||
216 | agent's Unix-domain socket) can access the local agent through | ||
217 | the forwarded connection. An attacker cannot obtain key material | ||
218 | from the agent, however they can perform operations on the keys | ||
219 | that enable them to authenticate using the identities loaded into | ||
220 | the agent. | ||
221 | |||
222 | ForwardX11 | ||
223 | Specifies whether X11 connections will be automatically redirect- | ||
224 | ed over the secure channel and DISPLAY set. The argument must be | ||
225 | ``yes'' or ``no''. The default is ``no''. | ||
226 | |||
227 | X11 forwarding should be enabled with caution. Users with the | ||
228 | ability to bypass file permissions on the remote host (for the | ||
229 | user's X11 authorization database) can access the local X11 dis- | ||
230 | play through the forwarded connection. An attacker may then be | ||
231 | able to perform activities such as keystroke monitoring if the | ||
232 | ForwardX11Trusted option is also enabled. | ||
233 | |||
234 | ForwardX11Trusted | ||
235 | If this option is set to ``yes'', remote X11 clients will have | ||
236 | full access to the original X11 display. | ||
237 | |||
238 | If this option is set to ``no'', remote X11 clients will be con- | ||
239 | sidered untrusted and prevented from stealing or tampering with | ||
240 | data belonging to trusted X11 clients. Furthermore, the xauth(1) | ||
241 | token used for the session will be set to expire after 20 min- | ||
242 | utes. Remote clients will be refused access after this time. | ||
243 | |||
244 | The default is ``no''. | ||
245 | |||
246 | See the X11 SECURITY extension specification for full details on | ||
247 | the restrictions imposed on untrusted clients. | ||
248 | |||
249 | GatewayPorts | ||
250 | Specifies whether remote hosts are allowed to connect to local | ||
251 | forwarded ports. By default, ssh(1) binds local port forwardings | ||
252 | to the loopback address. This prevents other remote hosts from | ||
253 | connecting to forwarded ports. GatewayPorts can be used to spec- | ||
254 | ify that ssh should bind local port forwardings to the wildcard | ||
255 | address, thus allowing remote hosts to connect to forwarded | ||
256 | ports. The argument must be ``yes'' or ``no''. The default is | ||
257 | ``no''. | ||
258 | |||
259 | GlobalKnownHostsFile | ||
260 | Specifies a file to use for the global host key database instead | ||
261 | of /etc/ssh/ssh_known_hosts. | ||
262 | |||
263 | GSSAPIAuthentication | ||
264 | Specifies whether user authentication based on GSSAPI is allowed. | ||
265 | The default is ``no''. Note that this option applies to protocol | ||
266 | version 2 only. | ||
267 | |||
268 | GSSAPIDelegateCredentials | ||
269 | Forward (delegate) credentials to the server. The default is | ||
270 | ``no''. Note that this option applies to protocol version 2 on- | ||
271 | ly. | ||
272 | |||
273 | HashKnownHosts | ||
274 | Indicates that ssh(1) should hash host names and addresses when | ||
275 | they are added to ~/.ssh/known_hosts. These hashed names may be | ||
276 | used normally by ssh(1) and sshd(8), but they do not reveal iden- | ||
277 | tifying information should the file's contents be disclosed. The | ||
278 | default is ``no''. Note that existing names and addresses in | ||
279 | known hosts files will not be converted automatically, but may be | ||
280 | manually hashed using ssh-keygen(1). | ||
281 | |||
282 | HostbasedAuthentication | ||
283 | Specifies whether to try rhosts based authentication with public | ||
284 | key authentication. The argument must be ``yes'' or ``no''. The | ||
285 | default is ``no''. This option applies to protocol version 2 on- | ||
286 | ly and is similar to RhostsRSAAuthentication. | ||
287 | |||
288 | HostKeyAlgorithms | ||
289 | Specifies the protocol version 2 host key algorithms that the | ||
290 | client wants to use in order of preference. The default for this | ||
291 | option is: ``ssh-rsa,ssh-dss''. | ||
292 | |||
293 | HostKeyAlias | ||
294 | Specifies an alias that should be used instead of the real host | ||
295 | name when looking up or saving the host key in the host key | ||
296 | database files. This option is useful for tunneling SSH connec- | ||
297 | tions or for multiple servers running on a single host. | ||
298 | |||
299 | HostName | ||
300 | Specifies the real host name to log into. This can be used to | ||
301 | specify nicknames or abbreviations for hosts. The default is the | ||
302 | name given on the command line. Numeric IP addresses are also | ||
303 | permitted (both on the command line and in HostName specifica- | ||
304 | tions). | ||
305 | |||
306 | IdentitiesOnly | ||
307 | Specifies that ssh(1) should only use the authentication identity | ||
308 | files configured in the ssh_config files, even if ssh-agent(1) | ||
309 | offers more identities. The argument to this keyword must be | ||
310 | ``yes'' or ``no''. This option is intended for situations where | ||
311 | ssh-agent offers many different identities. The default is | ||
312 | ``no''. | ||
313 | |||
314 | IdentityFile | ||
315 | Specifies a file from which the user's RSA or DSA authentication | ||
316 | identity is read. The default is ~/.ssh/identity for protocol | ||
317 | version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol ver- | ||
318 | sion 2. Additionally, any identities represented by the authen- | ||
319 | tication agent will be used for authentication. ssh(1) will try | ||
320 | to load certificate information from the filename obtained by ap- | ||
321 | pending -cert.pub to the path of a specified IdentityFile. | ||
322 | |||
323 | The file name may use the tilde syntax to refer to a user's home | ||
324 | directory or one of the following escape characters: `%d' (local | ||
325 | user's home directory), `%u' (local user name), `%l' (local host | ||
326 | name), `%h' (remote host name) or `%r' (remote user name). | ||
327 | |||
328 | It is possible to have multiple identity files specified in con- | ||
329 | figuration files; all these identities will be tried in sequence. | ||
330 | |||
331 | KbdInteractiveAuthentication | ||
332 | Specifies whether to use keyboard-interactive authentication. | ||
333 | The argument to this keyword must be ``yes'' or ``no''. The de- | ||
334 | fault is ``yes''. | ||
335 | |||
336 | KbdInteractiveDevices | ||
337 | Specifies the list of methods to use in keyboard-interactive au- | ||
338 | thentication. Multiple method names must be comma-separated. | ||
339 | The default is to use the server specified list. The methods | ||
340 | available vary depending on what the server supports. For an | ||
341 | OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'', | ||
342 | and ``skey''. | ||
343 | |||
344 | LocalCommand | ||
345 | Specifies a command to execute on the local machine after suc- | ||
346 | cessfully connecting to the server. The command string extends | ||
347 | to the end of the line, and is executed with the user's shell. | ||
348 | The following escape character substitutions will be performed: | ||
349 | `%d' (local user's home directory), `%h' (remote host name), `%l' | ||
350 | (local host name), `%n' (host name as provided on the command | ||
351 | line), `%p' (remote port), `%r' (remote user name) or `%u' (local | ||
352 | user name). | ||
353 | |||
354 | The command is run synchronously and does not have access to the | ||
355 | session of the ssh(1) that spawned it. It should not be used for | ||
356 | interactive commands. | ||
357 | |||
358 | This directive is ignored unless PermitLocalCommand has been en- | ||
359 | abled. | ||
360 | |||
361 | LocalForward | ||
362 | Specifies that a TCP port on the local machine be forwarded over | ||
363 | the secure channel to the specified host and port from the remote | ||
364 | machine. The first argument must be [bind_address:]port and the | ||
365 | second argument must be host:hostport. IPv6 addresses can be | ||
366 | specified by enclosing addresses in square brackets or by using | ||
367 | an alternative syntax: [bind_address/]port and host/hostport. | ||
368 | Multiple forwardings may be specified, and additional forwardings | ||
369 | can be given on the command line. Only the superuser can forward | ||
370 | privileged ports. By default, the local port is bound in accor- | ||
371 | dance with the GatewayPorts setting. However, an explicit | ||
372 | bind_address may be used to bind the connection to a specific ad- | ||
373 | dress. The bind_address of ``localhost'' indicates that the lis- | ||
374 | tening port be bound for local use only, while an empty address | ||
375 | or `*' indicates that the port should be available from all in- | ||
376 | terfaces. | ||
377 | |||
378 | LogLevel | ||
379 | Gives the verbosity level that is used when logging messages from | ||
380 | ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, VER- | ||
381 | BOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
382 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
383 | higher levels of verbose output. | ||
384 | |||
385 | MACs Specifies the MAC (message authentication code) algorithms in or- | ||
386 | der of preference. The MAC algorithm is used in protocol version | ||
387 | 2 for data integrity protection. Multiple algorithms must be | ||
388 | comma-separated. The default is: | ||
389 | |||
390 | hmac-md5,hmac-sha1,umac-64@openssh.com, | ||
391 | hmac-ripemd160,hmac-sha1-96,hmac-md5-96 | ||
392 | |||
393 | NoHostAuthenticationForLocalhost | ||
394 | This option can be used if the home directory is shared across | ||
395 | machines. In this case localhost will refer to a different ma- | ||
396 | chine on each of the machines and the user will get many warnings | ||
397 | about changed host keys. However, this option disables host au- | ||
398 | thentication for localhost. The argument to this keyword must be | ||
399 | ``yes'' or ``no''. The default is to check the host key for lo- | ||
400 | calhost. | ||
401 | |||
402 | NumberOfPasswordPrompts | ||
403 | Specifies the number of password prompts before giving up. The | ||
404 | argument to this keyword must be an integer. The default is 3. | ||
405 | |||
406 | PasswordAuthentication | ||
407 | Specifies whether to use password authentication. The argument | ||
408 | to this keyword must be ``yes'' or ``no''. The default is | ||
409 | ``yes''. | ||
410 | |||
411 | PermitLocalCommand | ||
412 | Allow local command execution via the LocalCommand option or us- | ||
413 | ing the !command escape sequence in ssh(1). The argument must be | ||
414 | ``yes'' or ``no''. The default is ``no''. | ||
415 | |||
416 | PKCS11Provider | ||
417 | Specifies which PKCS#11 provider to use. The argument to this | ||
418 | keyword is the PKCS#11 shared libary ssh(1) should use to commu- | ||
419 | nicate with a PKCS#11 token providing the user's private RSA key. | ||
420 | |||
421 | Port Specifies the port number to connect on the remote host. The de- | ||
422 | fault is 22. | ||
423 | |||
424 | PreferredAuthentications | ||
425 | Specifies the order in which the client should try protocol 2 au- | ||
426 | thentication methods. This allows a client to prefer one method | ||
427 | (e.g. keyboard-interactive) over another method (e.g. password) | ||
428 | The default for this option is: ``gssapi-with- | ||
429 | mic,hostbased,publickey,keyboard-interactive,password''. | ||
430 | |||
431 | Protocol | ||
432 | Specifies the protocol versions ssh(1) should support in order of | ||
433 | preference. The possible values are `1' and `2'. Multiple ver- | ||
434 | sions must be comma-separated. When this option is set to | ||
435 | ``2,1'' ssh will try version 2 and fall back to version 1 if ver- | ||
436 | sion 2 is not available. The default is `2'. | ||
437 | |||
438 | ProxyCommand | ||
439 | Specifies the command to use to connect to the server. The com- | ||
440 | mand string extends to the end of the line, and is executed with | ||
441 | the user's shell. In the command string, `%h' will be substitut- | ||
442 | ed by the host name to connect and `%p' by the port. The command | ||
443 | can be basically anything, and should read from its standard in- | ||
444 | put and write to its standard output. It should eventually con- | ||
445 | nect an sshd(8) server running on some machine, or execute sshd | ||
446 | -i somewhere. Host key management will be done using the Host- | ||
447 | Name of the host being connected (defaulting to the name typed by | ||
448 | the user). Setting the command to ``none'' disables this option | ||
449 | entirely. Note that CheckHostIP is not available for connects | ||
450 | with a proxy command. | ||
451 | |||
452 | This directive is useful in conjunction with nc(1) and its proxy | ||
453 | support. For example, the following directive would connect via | ||
454 | an HTTP proxy at 192.0.2.0: | ||
455 | |||
456 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | ||
457 | |||
458 | PubkeyAuthentication | ||
459 | Specifies whether to try public key authentication. The argument | ||
460 | to this keyword must be ``yes'' or ``no''. The default is | ||
461 | ``yes''. This option applies to protocol version 2 only. | ||
462 | |||
463 | RekeyLimit | ||
464 | Specifies the maximum amount of data that may be transmitted be- | ||
465 | fore the session key is renegotiated. The argument is the number | ||
466 | of bytes, with an optional suffix of `K', `M', or `G' to indicate | ||
467 | Kilobytes, Megabytes, or Gigabytes, respectively. The default is | ||
468 | between `1G' and `4G', depending on the cipher. This option ap- | ||
469 | plies to protocol version 2 only. | ||
470 | |||
471 | RemoteForward | ||
472 | Specifies that a TCP port on the remote machine be forwarded over | ||
473 | the secure channel to the specified host and port from the local | ||
474 | machine. The first argument must be [bind_address:]port and the | ||
475 | second argument must be host:hostport. IPv6 addresses can be | ||
476 | specified by enclosing addresses in square brackets or by using | ||
477 | an alternative syntax: [bind_address/]port and host/hostport. | ||
478 | Multiple forwardings may be specified, and additional forwardings | ||
479 | can be given on the command line. Privileged ports can be for- | ||
480 | warded only when logging in as root on the remote machine. | ||
481 | |||
482 | If the port argument is `0', the listen port will be dynamically | ||
483 | allocated on the server and reported to the client at run time. | ||
484 | |||
485 | If the bind_address is not specified, the default is to only bind | ||
486 | to loopback addresses. If the bind_address is `*' or an empty | ||
487 | string, then the forwarding is requested to listen on all inter- | ||
488 | faces. Specifying a remote bind_address will only succeed if the | ||
489 | server's GatewayPorts option is enabled (see sshd_config(5)). | ||
490 | |||
491 | RhostsRSAAuthentication | ||
492 | Specifies whether to try rhosts based authentication with RSA | ||
493 | host authentication. The argument must be ``yes'' or ``no''. | ||
494 | The default is ``no''. This option applies to protocol version 1 | ||
495 | only and requires ssh(1) to be setuid root. | ||
496 | |||
497 | RSAAuthentication | ||
498 | Specifies whether to try RSA authentication. The argument to | ||
499 | this keyword must be ``yes'' or ``no''. RSA authentication will | ||
500 | only be attempted if the identity file exists, or an authentica- | ||
501 | tion agent is running. The default is ``yes''. Note that this | ||
502 | option applies to protocol version 1 only. | ||
503 | |||
504 | SendEnv | ||
505 | Specifies what variables from the local environ(7) should be sent | ||
506 | to the server. Note that environment passing is only supported | ||
507 | for protocol 2. The server must also support it, and the server | ||
508 | must be configured to accept these environment variables. Refer | ||
509 | to AcceptEnv in sshd_config(5) for how to configure the server. | ||
510 | Variables are specified by name, which may contain wildcard char- | ||
511 | acters. Multiple environment variables may be separated by | ||
512 | whitespace or spread across multiple SendEnv directives. The de- | ||
513 | fault is not to send any environment variables. | ||
514 | |||
515 | See PATTERNS for more information on patterns. | ||
516 | |||
517 | ServerAliveCountMax | ||
518 | Sets the number of server alive messages (see below) which may be | ||
519 | sent without ssh(1) receiving any messages back from the server. | ||
520 | If this threshold is reached while server alive messages are be- | ||
521 | ing sent, ssh will disconnect from the server, terminating the | ||
522 | session. It is important to note that the use of server alive | ||
523 | messages is very different from TCPKeepAlive (below). The server | ||
524 | alive messages are sent through the encrypted channel and there- | ||
525 | fore will not be spoofable. The TCP keepalive option enabled by | ||
526 | TCPKeepAlive is spoofable. The server alive mechanism is valu- | ||
527 | able when the client or server depend on knowing when a connec- | ||
528 | tion has become inactive. | ||
529 | |||
530 | The default value is 3. If, for example, ServerAliveInterval | ||
531 | (see below) is set to 15 and ServerAliveCountMax is left at the | ||
532 | default, if the server becomes unresponsive, ssh will disconnect | ||
533 | after approximately 45 seconds. This option applies to protocol | ||
534 | version 2 only. | ||
535 | |||
536 | ServerAliveInterval | ||
537 | Sets a timeout interval in seconds after which if no data has | ||
538 | been received from the server, ssh(1) will send a message through | ||
539 | the encrypted channel to request a response from the server. The | ||
540 | default is 0, indicating that these messages will not be sent to | ||
541 | the server. This option applies to protocol version 2 only. | ||
542 | |||
543 | StrictHostKeyChecking | ||
544 | If this flag is set to ``yes'', ssh(1) will never automatically | ||
545 | add host keys to the ~/.ssh/known_hosts file, and refuses to con- | ||
546 | nect to hosts whose host key has changed. This provides maximum | ||
547 | protection against trojan horse attacks, though it can be annoy- | ||
548 | ing when the /etc/ssh/ssh_known_hosts file is poorly maintained | ||
549 | or when connections to new hosts are frequently made. This op- | ||
550 | tion forces the user to manually add all new hosts. If this flag | ||
551 | is set to ``no'', ssh will automatically add new host keys to the | ||
552 | user known hosts files. If this flag is set to ``ask'', new host | ||
553 | keys will be added to the user known host files only after the | ||
554 | user has confirmed that is what they really want to do, and ssh | ||
555 | will refuse to connect to hosts whose host key has changed. The | ||
556 | host keys of known hosts will be verified automatically in all | ||
557 | cases. The argument must be ``yes'', ``no'', or ``ask''. The | ||
558 | default is ``ask''. | ||
559 | |||
560 | TCPKeepAlive | ||
561 | Specifies whether the system should send TCP keepalive messages | ||
562 | to the other side. If they are sent, death of the connection or | ||
563 | crash of one of the machines will be properly noticed. However, | ||
564 | this means that connections will die if the route is down tem- | ||
565 | porarily, and some people find it annoying. | ||
566 | |||
567 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
568 | client will notice if the network goes down or the remote host | ||
569 | dies. This is important in scripts, and many users want it too. | ||
570 | |||
571 | To disable TCP keepalive messages, the value should be set to | ||
572 | ``no''. | ||
573 | |||
574 | Tunnel Request tun(4) device forwarding between the client and the serv- | ||
575 | er. The argument must be ``yes'', ``point-to-point'' (layer 3), | ||
576 | ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' requests | ||
577 | the default tunnel mode, which is ``point-to-point''. The de- | ||
578 | fault is ``no''. | ||
579 | |||
580 | TunnelDevice | ||
581 | Specifies the tun(4) devices to open on the client (local_tun) | ||
582 | and the server (remote_tun). | ||
583 | |||
584 | The argument must be local_tun[:remote_tun]. The devices may be | ||
585 | specified by numerical ID or the keyword ``any'', which uses the | ||
586 | next available tunnel device. If remote_tun is not specified, it | ||
587 | defaults to ``any''. The default is ``any:any''. | ||
588 | |||
589 | UsePrivilegedPort | ||
590 | Specifies whether to use a privileged port for outgoing connec- | ||
591 | tions. The argument must be ``yes'' or ``no''. The default is | ||
592 | ``no''. If set to ``yes'', ssh(1) must be setuid root. Note | ||
593 | that this option must be set to ``yes'' for | ||
594 | RhostsRSAAuthentication with older servers. | ||
595 | |||
596 | User Specifies the user to log in as. This can be useful when a dif- | ||
597 | ferent user name is used on different machines. This saves the | ||
598 | trouble of having to remember to give the user name on the com- | ||
599 | mand line. | ||
600 | |||
601 | UserKnownHostsFile | ||
602 | Specifies a file to use for the user host key database instead of | ||
603 | ~/.ssh/known_hosts. | ||
604 | |||
605 | VerifyHostKeyDNS | ||
606 | Specifies whether to verify the remote key using DNS and SSHFP | ||
607 | resource records. If this option is set to ``yes'', the client | ||
608 | will implicitly trust keys that match a secure fingerprint from | ||
609 | DNS. Insecure fingerprints will be handled as if this option was | ||
610 | set to ``ask''. If this option is set to ``ask'', information on | ||
611 | fingerprint match will be displayed, but the user will still need | ||
612 | to confirm new host keys according to the StrictHostKeyChecking | ||
613 | option. The argument must be ``yes'', ``no'', or ``ask''. The | ||
614 | default is ``no''. Note that this option applies to protocol | ||
615 | version 2 only. | ||
616 | |||
617 | See also VERIFYING HOST KEYS in ssh(1). | ||
618 | |||
619 | VisualHostKey | ||
620 | If this flag is set to ``yes'', an ASCII art representation of | ||
621 | the remote host key fingerprint is printed in addition to the hex | ||
622 | fingerprint string at login and for unknown host keys. If this | ||
623 | flag is set to ``no'', no fingerprint strings are printed at lo- | ||
624 | gin and only the hex fingerprint string will be printed for un- | ||
625 | known host keys. The default is ``no''. | ||
626 | |||
627 | XAuthLocation | ||
628 | Specifies the full pathname of the xauth(1) program. The default | ||
629 | is /usr/X11R6/bin/xauth. | ||
630 | |||
631 | PATTERNS | ||
632 | A pattern consists of zero or more non-whitespace characters, `*' (a | ||
633 | wildcard that matches zero or more characters), or `?' (a wildcard that | ||
634 | matches exactly one character). For example, to specify a set of decla- | ||
635 | rations for any host in the ``.co.uk'' set of domains, the following pat- | ||
636 | tern could be used: | ||
637 | |||
638 | Host *.co.uk | ||
639 | |||
640 | The following pattern would match any host in the 192.168.0.[0-9] network | ||
641 | range: | ||
642 | |||
643 | Host 192.168.0.? | ||
644 | |||
645 | A pattern-list is a comma-separated list of patterns. Patterns within | ||
646 | pattern-lists may be negated by preceding them with an exclamation mark | ||
647 | (`!'). For example, to allow a key to be used from anywhere within an | ||
648 | organisation except from the ``dialup'' pool, the following entry (in au- | ||
649 | thorized_keys) could be used: | ||
650 | |||
651 | from="!*.dialup.example.com,*.example.com" | ||
652 | |||
653 | FILES | ||
654 | ~/.ssh/config | ||
655 | This is the per-user configuration file. The format of this file | ||
656 | is described above. This file is used by the SSH client. Be- | ||
657 | cause of the potential for abuse, this file must have strict per- | ||
658 | missions: read/write for the user, and not accessible by others. | ||
659 | |||
660 | /etc/ssh/ssh_config | ||
661 | Systemwide configuration file. This file provides defaults for | ||
662 | those values that are not specified in the user's configuration | ||
663 | file, and for those users who do not have a configuration file. | ||
664 | This file must be world-readable. | ||
665 | |||
666 | SEE ALSO | ||
667 | ssh(1) | ||
668 | |||
669 | AUTHORS | ||
670 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
671 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
672 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
673 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
674 | versions 1.5 and 2.0. | ||
675 | |||
676 | OpenBSD 4.7 March 26, 2010 11 | ||
@@ -0,0 +1,617 @@ | |||
1 | SSHD(8) OpenBSD System Manager's Manual SSHD(8) | ||
2 | |||
3 | NAME | ||
4 | sshd - OpenSSH SSH daemon | ||
5 | |||
6 | SYNOPSIS | ||
7 | sshd [-46DdeiqTt] [-b bits] [-C connection_spec] | ||
8 | [-c host_certificate_file] [-f config_file] [-g login_grace_time] | ||
9 | [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len] | ||
10 | |||
11 | DESCRIPTION | ||
12 | sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these | ||
13 | programs replace rlogin(1) and rsh(1), and provide secure encrypted com- | ||
14 | munications between two untrusted hosts over an insecure network. | ||
15 | |||
16 | sshd listens for connections from clients. It is normally started at | ||
17 | boot from /etc/rc. It forks a new daemon for each incoming connection. | ||
18 | The forked daemons handle key exchange, encryption, authentication, com- | ||
19 | mand execution, and data exchange. | ||
20 | |||
21 | sshd can be configured using command-line options or a configuration file | ||
22 | (by default sshd_config(5)); command-line options override values speci- | ||
23 | fied in the configuration file. sshd rereads its configuration file when | ||
24 | it receives a hangup signal, SIGHUP, by executing itself with the name | ||
25 | and options it was started with, e.g. /usr/sbin/sshd. | ||
26 | |||
27 | The options are as follows: | ||
28 | |||
29 | -4 Forces sshd to use IPv4 addresses only. | ||
30 | |||
31 | -6 Forces sshd to use IPv6 addresses only. | ||
32 | |||
33 | -b bits | ||
34 | Specifies the number of bits in the ephemeral protocol version 1 | ||
35 | server key (default 1024). | ||
36 | |||
37 | -C connection_spec | ||
38 | Specify the connection parameters to use for the -T extended test | ||
39 | mode. If provided, any Match directives in the configuration | ||
40 | file that would apply to the specified user, host, and address | ||
41 | will be set before the configuration is written to standard out- | ||
42 | put. The connection parameters are supplied as keyword=value | ||
43 | pairs. The keywords are ``user'', ``host'', and ``addr''. All | ||
44 | are required and may be supplied in any order, either with multi- | ||
45 | ple -C options or as a comma-separated list. | ||
46 | |||
47 | -c host_certificate_file | ||
48 | Specifies a path to a certificate file to identify sshd during | ||
49 | key exchange. The certificate file must match a host key file | ||
50 | specified using the -h option or the HostKey configuration direc- | ||
51 | tive. | ||
52 | |||
53 | -D When this option is specified, sshd will not detach and does not | ||
54 | become a daemon. This allows easy monitoring of sshd. | ||
55 | |||
56 | -d Debug mode. The server sends verbose debug output to standard | ||
57 | error, and does not put itself in the background. The server al- | ||
58 | so will not fork and will only process one connection. This op- | ||
59 | tion is only intended for debugging for the server. Multiple -d | ||
60 | options increase the debugging level. Maximum is 3. | ||
61 | |||
62 | -e When this option is specified, sshd will send the output to the | ||
63 | standard error instead of the system log. | ||
64 | |||
65 | -f config_file | ||
66 | Specifies the name of the configuration file. The default is | ||
67 | /etc/ssh/sshd_config. sshd refuses to start if there is no con- | ||
68 | figuration file. | ||
69 | |||
70 | -g login_grace_time | ||
71 | Gives the grace time for clients to authenticate themselves (de- | ||
72 | fault 120 seconds). If the client fails to authenticate the user | ||
73 | within this many seconds, the server disconnects and exits. A | ||
74 | value of zero indicates no limit. | ||
75 | |||
76 | -h host_key_file | ||
77 | Specifies a file from which a host key is read. This option must | ||
78 | be given if sshd is not run as root (as the normal host key files | ||
79 | are normally not readable by anyone but root). The default is | ||
80 | /etc/ssh/ssh_host_key for protocol version 1, and | ||
81 | /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro- | ||
82 | tocol version 2. It is possible to have multiple host key files | ||
83 | for the different protocol versions and host key algorithms. | ||
84 | |||
85 | -i Specifies that sshd is being run from inetd(8). sshd is normally | ||
86 | not run from inetd because it needs to generate the server key | ||
87 | before it can respond to the client, and this may take tens of | ||
88 | seconds. Clients would have to wait too long if the key was re- | ||
89 | generated every time. However, with small key sizes (e.g. 512) | ||
90 | using sshd from inetd may be feasible. | ||
91 | |||
92 | -k key_gen_time | ||
93 | Specifies how often the ephemeral protocol version 1 server key | ||
94 | is regenerated (default 3600 seconds, or one hour). The motiva- | ||
95 | tion for regenerating the key fairly often is that the key is not | ||
96 | stored anywhere, and after about an hour it becomes impossible to | ||
97 | recover the key for decrypting intercepted communications even if | ||
98 | the machine is cracked into or physically seized. A value of ze- | ||
99 | ro indicates that the key will never be regenerated. | ||
100 | |||
101 | -o option | ||
102 | Can be used to give options in the format used in the configura- | ||
103 | tion file. This is useful for specifying options for which there | ||
104 | is no separate command-line flag. For full details of the op- | ||
105 | tions, and their values, see sshd_config(5). | ||
106 | |||
107 | -p port | ||
108 | Specifies the port on which the server listens for connections | ||
109 | (default 22). Multiple port options are permitted. Ports speci- | ||
110 | fied in the configuration file with the Port option are ignored | ||
111 | when a command-line port is specified. Ports specified using the | ||
112 | ListenAddress option override command-line ports. | ||
113 | |||
114 | -q Quiet mode. Nothing is sent to the system log. Normally the be- | ||
115 | ginning, authentication, and termination of each connection is | ||
116 | logged. | ||
117 | |||
118 | -T Extended test mode. Check the validity of the configuration | ||
119 | file, output the effective configuration to stdout and then exit. | ||
120 | Optionally, Match rules may be applied by specifying the connec- | ||
121 | tion parameters using one or more -C options. | ||
122 | |||
123 | -t Test mode. Only check the validity of the configuration file and | ||
124 | sanity of the keys. This is useful for updating sshd reliably as | ||
125 | configuration options may change. | ||
126 | |||
127 | -u len This option is used to specify the size of the field in the utmp | ||
128 | structure that holds the remote host name. If the resolved host | ||
129 | name is longer than len, the dotted decimal value will be used | ||
130 | instead. This allows hosts with very long host names that over- | ||
131 | flow this field to still be uniquely identified. Specifying -u0 | ||
132 | indicates that only dotted decimal addresses should be put into | ||
133 | the utmp file. -u0 may also be used to prevent sshd from making | ||
134 | DNS requests unless the authentication mechanism or configuration | ||
135 | requires it. Authentication mechanisms that may require DNS in- | ||
136 | clude RhostsRSAAuthentication, HostbasedAuthentication, and using | ||
137 | a from="pattern-list" option in a key file. Configuration op- | ||
138 | tions that require DNS include using a USER@HOST pattern in | ||
139 | AllowUsers or DenyUsers. | ||
140 | |||
141 | AUTHENTICATION | ||
142 | The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to | ||
143 | use protocol 2 only, though this can be changed via the Protocol option | ||
144 | in sshd_config(5). Protocol 2 supports both RSA and DSA keys; protocol 1 | ||
145 | only supports RSA keys. For both protocols, each host has a host-specif- | ||
146 | ic key, normally 2048 bits, used to identify the host. | ||
147 | |||
148 | Forward security for protocol 1 is provided through an additional server | ||
149 | key, normally 768 bits, generated when the server starts. This key is | ||
150 | normally regenerated every hour if it has been used, and is never stored | ||
151 | on disk. Whenever a client connects, the daemon responds with its public | ||
152 | host and server keys. The client compares the RSA host key against its | ||
153 | own database to verify that it has not changed. The client then gener- | ||
154 | ates a 256-bit random number. It encrypts this random number using both | ||
155 | the host key and the server key, and sends the encrypted number to the | ||
156 | server. Both sides then use this random number as a session key which is | ||
157 | used to encrypt all further communications in the session. The rest of | ||
158 | the session is encrypted using a conventional cipher, currently Blowfish | ||
159 | or 3DES, with 3DES being used by default. The client selects the encryp- | ||
160 | tion algorithm to use from those offered by the server. | ||
161 | |||
162 | For protocol 2, forward security is provided through a Diffie-Hellman key | ||
163 | agreement. This key agreement results in a shared session key. The rest | ||
164 | of the session is encrypted using a symmetric cipher, currently 128-bit | ||
165 | AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The | ||
166 | client selects the encryption algorithm to use from those offered by the | ||
167 | server. Additionally, session integrity is provided through a crypto- | ||
168 | graphic message authentication code (hmac-md5, hmac-sha1, umac-64 or | ||
169 | hmac-ripemd160). | ||
170 | |||
171 | Finally, the server and the client enter an authentication dialog. The | ||
172 | client tries to authenticate itself using host-based authentication, pub- | ||
173 | lic key authentication, challenge-response authentication, or password | ||
174 | authentication. | ||
175 | |||
176 | Regardless of the authentication type, the account is checked to ensure | ||
177 | that it is accessible. An account is not accessible if it is locked, | ||
178 | listed in DenyUsers or its group is listed in DenyGroups . The defini- | ||
179 | tion of a locked account is system dependant. Some platforms have their | ||
180 | own account database (eg AIX) and some modify the passwd field ( `*LK*' | ||
181 | on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on Tru64, a | ||
182 | leading `*LOCKED*' on FreeBSD and a leading `!' on most Linuxes). If | ||
183 | there is a requirement to disable password authentication for the account | ||
184 | while allowing still public-key, then the passwd field should be set to | ||
185 | something other than these values (eg `NP' or `*NP*' ). | ||
186 | |||
187 | If the client successfully authenticates itself, a dialog for preparing | ||
188 | the session is entered. At this time the client may request things like | ||
189 | allocating a pseudo-tty, forwarding X11 connections, forwarding TCP con- | ||
190 | nections, or forwarding the authentication agent connection over the se- | ||
191 | cure channel. | ||
192 | |||
193 | After this, the client either requests a shell or execution of a command. | ||
194 | The sides then enter session mode. In this mode, either side may send | ||
195 | data at any time, and such data is forwarded to/from the shell or command | ||
196 | on the server side, and the user terminal in the client side. | ||
197 | |||
198 | When the user program terminates and all forwarded X11 and other connec- | ||
199 | tions have been closed, the server sends command exit status to the | ||
200 | client, and both sides exit. | ||
201 | |||
202 | LOGIN PROCESS | ||
203 | When a user successfully logs in, sshd does the following: | ||
204 | |||
205 | 1. If the login is on a tty, and no command has been specified, | ||
206 | prints last login time and /etc/motd (unless prevented in the | ||
207 | configuration file or by ~/.hushlogin; see the FILES section). | ||
208 | |||
209 | 2. If the login is on a tty, records login time. | ||
210 | |||
211 | 3. Checks /etc/nologin; if it exists, prints contents and quits | ||
212 | (unless root). | ||
213 | |||
214 | 4. Changes to run with normal user privileges. | ||
215 | |||
216 | 5. Sets up basic environment. | ||
217 | |||
218 | 6. Reads the file ~/.ssh/environment, if it exists, and users are | ||
219 | allowed to change their environment. See the | ||
220 | PermitUserEnvironment option in sshd_config(5). | ||
221 | |||
222 | 7. Changes to user's home directory. | ||
223 | |||
224 | 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists, | ||
225 | runs it; otherwise runs xauth. The ``rc'' files are given the | ||
226 | X11 authentication protocol and cookie in standard input. See | ||
227 | SSHRC, below. | ||
228 | |||
229 | 9. Runs user's shell or command. | ||
230 | |||
231 | SSHRC | ||
232 | If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment | ||
233 | files but before starting the user's shell or command. It must not pro- | ||
234 | duce any output on stdout; stderr must be used instead. If X11 forward- | ||
235 | ing is in use, it will receive the "proto cookie" pair in its standard | ||
236 | input (and DISPLAY in its environment). The script must call xauth(1) | ||
237 | because sshd will not run xauth automatically to add X11 cookies. | ||
238 | |||
239 | The primary purpose of this file is to run any initialization routines | ||
240 | which may be needed before the user's home directory becomes accessible; | ||
241 | AFS is a particular example of such an environment. | ||
242 | |||
243 | This file will probably contain some initialization code followed by | ||
244 | something similar to: | ||
245 | |||
246 | if read proto cookie && [ -n "$DISPLAY" ]; then | ||
247 | if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then | ||
248 | # X11UseLocalhost=yes | ||
249 | echo add unix:`echo $DISPLAY | | ||
250 | cut -c11-` $proto $cookie | ||
251 | else | ||
252 | # X11UseLocalhost=no | ||
253 | echo add $DISPLAY $proto $cookie | ||
254 | fi | xauth -q - | ||
255 | fi | ||
256 | |||
257 | If this file does not exist, /etc/ssh/sshrc is run, and if that does not | ||
258 | exist either, xauth is used to add the cookie. | ||
259 | |||
260 | AUTHORIZED_KEYS FILE FORMAT | ||
261 | AuthorizedKeysFile specifies the file containing public keys for public | ||
262 | key authentication; if none is specified, the default is | ||
263 | ~/.ssh/authorized_keys. Each line of the file contains one key (empty | ||
264 | lines and lines starting with a `#' are ignored as comments). Protocol 1 | ||
265 | public keys consist of the following space-separated fields: options, | ||
266 | bits, exponent, modulus, comment. Protocol 2 public key consist of: op- | ||
267 | tions, keytype, base64-encoded key, comment. The options field is op- | ||
268 | tional; its presence is determined by whether the line starts with a num- | ||
269 | ber or not (the options field never starts with a number). The bits, ex- | ||
270 | ponent, modulus, and comment fields give the RSA key for protocol version | ||
271 | 1; the comment field is not used for anything (but may be convenient for | ||
272 | the user to identify the key). For protocol version 2 the keytype is | ||
273 | ``ssh-dss'' or ``ssh-rsa''. | ||
274 | |||
275 | Note that lines in this file are usually several hundred bytes long (be- | ||
276 | cause of the size of the public key encoding) up to a limit of 8 kilo- | ||
277 | bytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16 | ||
278 | kilobits. You don't want to type them in; instead, copy the | ||
279 | identity.pub, id_dsa.pub, or the id_rsa.pub file and edit it. | ||
280 | |||
281 | sshd enforces a minimum RSA key modulus size for protocol 1 and protocol | ||
282 | 2 keys of 768 bits. | ||
283 | |||
284 | The options (if present) consist of comma-separated option specifica- | ||
285 | tions. No spaces are permitted, except within double quotes. The fol- | ||
286 | lowing option specifications are supported (note that option keywords are | ||
287 | case-insensitive): | ||
288 | |||
289 | cert-authority | ||
290 | Specifies that the listed key is a certification authority (CA) | ||
291 | that is trusted to validate signed certificates for user authen- | ||
292 | tication. | ||
293 | |||
294 | Certificates may encode access restrictions similar to these key | ||
295 | options. If both certificate restrictions and key options are | ||
296 | present, the most restrictive union of the two is applied. | ||
297 | |||
298 | command="command" | ||
299 | Specifies that the command is executed whenever this key is used | ||
300 | for authentication. The command supplied by the user (if any) is | ||
301 | ignored. The command is run on a pty if the client requests a | ||
302 | pty; otherwise it is run without a tty. If an 8-bit clean chan- | ||
303 | nel is required, one must not request a pty or should specify no- | ||
304 | pty. A quote may be included in the command by quoting it with a | ||
305 | backslash. This option might be useful to restrict certain pub- | ||
306 | lic keys to perform just a specific operation. An example might | ||
307 | be a key that permits remote backups but nothing else. Note that | ||
308 | the client may specify TCP and/or X11 forwarding unless they are | ||
309 | explicitly prohibited. The command originally supplied by the | ||
310 | client is available in the SSH_ORIGINAL_COMMAND environment vari- | ||
311 | able. Note that this option applies to shell, command or subsys- | ||
312 | tem execution. Also note that this command may be superseded by | ||
313 | either a sshd_config(5) ForceCommand directive or a command em- | ||
314 | bedded in a certificate. | ||
315 | |||
316 | environment="NAME=value" | ||
317 | Specifies that the string is to be added to the environment when | ||
318 | logging in using this key. Environment variables set this way | ||
319 | override other default environment values. Multiple options of | ||
320 | this type are permitted. Environment processing is disabled by | ||
321 | default and is controlled via the PermitUserEnvironment option. | ||
322 | This option is automatically disabled if UseLogin is enabled. | ||
323 | |||
324 | from="pattern-list" | ||
325 | Specifies that in addition to public key authentication, either | ||
326 | the canonical name of the remote host or its IP address must be | ||
327 | present in the comma-separated list of patterns. See PATTERNS in | ||
328 | ssh_config(5) for more information on patterns. | ||
329 | |||
330 | In addition to the wildcard matching that may be applied to host- | ||
331 | names or addresses, a from stanza may match IP addresses using | ||
332 | CIDR address/masklen notation. | ||
333 | |||
334 | The purpose of this option is to optionally increase security: | ||
335 | public key authentication by itself does not trust the network or | ||
336 | name servers or anything (but the key); however, if somebody | ||
337 | somehow steals the key, the key permits an intruder to log in | ||
338 | from anywhere in the world. This additional option makes using a | ||
339 | stolen key more difficult (name servers and/or routers would have | ||
340 | to be compromised in addition to just the key). | ||
341 | |||
342 | no-agent-forwarding | ||
343 | Forbids authentication agent forwarding when this key is used for | ||
344 | authentication. | ||
345 | |||
346 | no-port-forwarding | ||
347 | Forbids TCP forwarding when this key is used for authentication. | ||
348 | Any port forward requests by the client will return an error. | ||
349 | This might be used, e.g. in connection with the command option. | ||
350 | |||
351 | no-pty Prevents tty allocation (a request to allocate a pty will fail). | ||
352 | |||
353 | no-user-rc | ||
354 | Disables execution of ~/.ssh/rc. | ||
355 | |||
356 | no-X11-forwarding | ||
357 | Forbids X11 forwarding when this key is used for authentication. | ||
358 | Any X11 forward requests by the client will return an error. | ||
359 | |||
360 | permitopen="host:port" | ||
361 | Limit local ``ssh -L'' port forwarding such that it may only con- | ||
362 | nect to the specified host and port. IPv6 addresses can be spec- | ||
363 | ified with an alternative syntax: host/port. Multiple permitopen | ||
364 | options may be applied separated by commas. No pattern matching | ||
365 | is performed on the specified hostnames, they must be literal do- | ||
366 | mains or addresses. | ||
367 | |||
368 | tunnel="n" | ||
369 | Force a tun(4) device on the server. Without this option, the | ||
370 | next available device will be used if the client requests a tun- | ||
371 | nel. | ||
372 | |||
373 | An example authorized_keys file: | ||
374 | |||
375 | # Comments allowed at start of line | ||
376 | ssh-rsa AAAAB3Nza...LiPk== user@example.net | ||
377 | from="*.sales.example.net,!pc.sales.example.net" ssh-rsa | ||
378 | AAAAB2...19Q== john@example.net | ||
379 | command="dump /home",no-pty,no-port-forwarding ssh-dss | ||
380 | AAAAC3...51R== example.net | ||
381 | permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss | ||
382 | AAAAB5...21S== | ||
383 | tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...== | ||
384 | jane@example.net | ||
385 | |||
386 | SSH_KNOWN_HOSTS FILE FORMAT | ||
387 | The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host | ||
388 | public keys for all known hosts. The global file should be prepared by | ||
389 | the administrator (optional), and the per-user file is maintained auto- | ||
390 | matically: whenever the user connects from an unknown host, its key is | ||
391 | added to the per-user file. | ||
392 | |||
393 | Each line in these files contains the following fields: markers (option- | ||
394 | al), hostnames, bits, exponent, modulus, comment. The fields are sepa- | ||
395 | rated by spaces. | ||
396 | |||
397 | The marker is optional, but if it is present then it must be one of | ||
398 | ``@cert-authority'', to indicate that the line contains a certification | ||
399 | authority (CA) key, or ``@revoked'', to indicate that the key contained | ||
400 | on the line is revoked and must not ever be accepted. Only one marker | ||
401 | should be used on a key line. | ||
402 | |||
403 | Hostnames is a comma-separated list of patterns (`*' and `?' act as wild- | ||
404 | cards); each pattern in turn is matched against the canonical host name | ||
405 | (when authenticating a client) or against the user-supplied name (when | ||
406 | authenticating a server). A pattern may also be preceded by `!' to indi- | ||
407 | cate negation: if the host name matches a negated pattern, it is not ac- | ||
408 | cepted (by that line) even if it matched another pattern on the line. A | ||
409 | hostname or address may optionally be enclosed within `[' and `]' brack- | ||
410 | ets then followed by `:' and a non-standard port number. | ||
411 | |||
412 | Alternately, hostnames may be stored in a hashed form which hides host | ||
413 | names and addresses should the file's contents be disclosed. Hashed | ||
414 | hostnames start with a `|' character. Only one hashed hostname may ap- | ||
415 | pear on a single line and none of the above negation or wildcard opera- | ||
416 | tors may be applied. | ||
417 | |||
418 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
419 | they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The | ||
420 | optional comment field continues to the end of the line, and is not used. | ||
421 | |||
422 | Lines starting with `#' and empty lines are ignored as comments. | ||
423 | |||
424 | When performing host authentication, authentication is accepted if any | ||
425 | matching line has the proper key; either one that matches exactly or, if | ||
426 | the server has presented a certificate for authentication, the key of the | ||
427 | certification authority that signed the certificate. For a key to be | ||
428 | trusted as a certification authority, it must use the ``@cert-authority'' | ||
429 | marker described above. | ||
430 | |||
431 | The known hosts file also provides a facility to mark keys as revoked, | ||
432 | for example when it is known that the associated private key has been | ||
433 | stolen. Revoked keys are specified by including the ``@revoked'' marker | ||
434 | at the beginning of the key line, and are never accepted for authentica- | ||
435 | tion or as certification authorities, but instead will produce a warning | ||
436 | from ssh(1) when they are encountered. | ||
437 | |||
438 | It is permissible (but not recommended) to have several lines or differ- | ||
439 | ent host keys for the same names. This will inevitably happen when short | ||
440 | forms of host names from different domains are put in the file. It is | ||
441 | possible that the files contain conflicting information; authentication | ||
442 | is accepted if valid information can be found from either file. | ||
443 | |||
444 | Note that the lines in these files are typically hundreds of characters | ||
445 | long, and you definitely don't want to type in the host keys by hand. | ||
446 | Rather, generate them by a script, ssh-keyscan(1) or by taking | ||
447 | /etc/ssh/ssh_host_key.pub and adding the host names at the front. | ||
448 | ssh-keygen(1) also offers some basic automated editing for | ||
449 | ~/.ssh/known_hosts including removing hosts matching a host name and con- | ||
450 | verting all host names to their hashed representations. | ||
451 | |||
452 | An example ssh_known_hosts file: | ||
453 | |||
454 | # Comments allowed at start of line | ||
455 | closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net | ||
456 | cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | ||
457 | # A hashed hostname | ||
458 | |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa | ||
459 | AAAA1234.....= | ||
460 | # A revoked key | ||
461 | @revoked * ssh-rsa AAAAB5W... | ||
462 | # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org | ||
463 | @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W... | ||
464 | |||
465 | FILES | ||
466 | ~/.hushlogin | ||
467 | This file is used to suppress printing the last login time and | ||
468 | /etc/motd, if PrintLastLog and PrintMotd, respectively, are en- | ||
469 | abled. It does not suppress printing of the banner specified by | ||
470 | Banner. | ||
471 | |||
472 | ~/.rhosts | ||
473 | This file is used for host-based authentication (see ssh(1) for | ||
474 | more information). On some machines this file may need to be | ||
475 | world-readable if the user's home directory is on an NFS parti- | ||
476 | tion, because sshd reads it as root. Additionally, this file | ||
477 | must be owned by the user, and must not have write permissions | ||
478 | for anyone else. The recommended permission for most machines is | ||
479 | read/write for the user, and not accessible by others. | ||
480 | |||
481 | ~/.shosts | ||
482 | This file is used in exactly the same way as .rhosts, but allows | ||
483 | host-based authentication without permitting login with | ||
484 | rlogin/rsh. | ||
485 | |||
486 | ~/.ssh/ | ||
487 | This directory is the default location for all user-specific con- | ||
488 | figuration and authentication information. There is no general | ||
489 | requirement to keep the entire contents of this directory secret, | ||
490 | but the recommended permissions are read/write/execute for the | ||
491 | user, and not accessible by others. | ||
492 | |||
493 | ~/.ssh/authorized_keys | ||
494 | Lists the public keys (RSA/DSA) that can be used for logging in | ||
495 | as this user. The format of this file is described above. The | ||
496 | content of the file is not highly sensitive, but the recommended | ||
497 | permissions are read/write for the user, and not accessible by | ||
498 | others. | ||
499 | |||
500 | If this file, the ~/.ssh directory, or the user's home directory | ||
501 | are writable by other users, then the file could be modified or | ||
502 | replaced by unauthorized users. In this case, sshd will not al- | ||
503 | low it to be used unless the StrictModes option has been set to | ||
504 | ``no''. | ||
505 | |||
506 | ~/.ssh/environment | ||
507 | This file is read into the environment at login (if it exists). | ||
508 | It can only contain empty lines, comment lines (that start with | ||
509 | `#'), and assignment lines of the form name=value. The file | ||
510 | should be writable only by the user; it need not be readable by | ||
511 | anyone else. Environment processing is disabled by default and | ||
512 | is controlled via the PermitUserEnvironment option. | ||
513 | |||
514 | ~/.ssh/known_hosts | ||
515 | Contains a list of host keys for all hosts the user has logged | ||
516 | into that are not already in the systemwide list of known host | ||
517 | keys. The format of this file is described above. This file | ||
518 | should be writable only by root/the owner and can, but need not | ||
519 | be, world-readable. | ||
520 | |||
521 | ~/.ssh/rc | ||
522 | Contains initialization routines to be run before the user's home | ||
523 | directory becomes accessible. This file should be writable only | ||
524 | by the user, and need not be readable by anyone else. | ||
525 | |||
526 | /etc/hosts.allow | ||
527 | /etc/hosts.deny | ||
528 | Access controls that should be enforced by tcp-wrappers are de- | ||
529 | fined here. Further details are described in hosts_access(5). | ||
530 | |||
531 | /etc/hosts.equiv | ||
532 | This file is for host-based authentication (see ssh(1)). It | ||
533 | should only be writable by root. | ||
534 | |||
535 | /etc/moduli | ||
536 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group | ||
537 | Exchange". The file format is described in moduli(5). | ||
538 | |||
539 | /etc/motd | ||
540 | See motd(5). | ||
541 | |||
542 | /etc/nologin | ||
543 | If this file exists, sshd refuses to let anyone except root log | ||
544 | in. The contents of the file are displayed to anyone trying to | ||
545 | log in, and non-root connections are refused. The file should be | ||
546 | world-readable. | ||
547 | |||
548 | /etc/shosts.equiv | ||
549 | This file is used in exactly the same way as hosts.equiv, but al- | ||
550 | lows host-based authentication without permitting login with | ||
551 | rlogin/rsh. | ||
552 | |||
553 | /etc/ssh/ssh_host_key | ||
554 | /etc/ssh/ssh_host_dsa_key | ||
555 | /etc/ssh/ssh_host_rsa_key | ||
556 | These three files contain the private parts of the host keys. | ||
557 | These files should only be owned by root, readable only by root, | ||
558 | and not accessible to others. Note that sshd does not start if | ||
559 | these files are group/world-accessible. | ||
560 | |||
561 | /etc/ssh/ssh_host_key.pub | ||
562 | /etc/ssh/ssh_host_dsa_key.pub | ||
563 | /etc/ssh/ssh_host_rsa_key.pub | ||
564 | These three files contain the public parts of the host keys. | ||
565 | These files should be world-readable but writable only by root. | ||
566 | Their contents should match the respective private parts. These | ||
567 | files are not really used for anything; they are provided for the | ||
568 | convenience of the user so their contents can be copied to known | ||
569 | hosts files. These files are created using ssh-keygen(1). | ||
570 | |||
571 | /etc/ssh/ssh_known_hosts | ||
572 | Systemwide list of known host keys. This file should be prepared | ||
573 | by the system administrator to contain the public host keys of | ||
574 | all machines in the organization. The format of this file is de- | ||
575 | scribed above. This file should be writable only by root/the | ||
576 | owner and should be world-readable. | ||
577 | |||
578 | /etc/ssh/sshd_config | ||
579 | Contains configuration data for sshd. The file format and con- | ||
580 | figuration options are described in sshd_config(5). | ||
581 | |||
582 | /etc/ssh/sshrc | ||
583 | Similar to ~/.ssh/rc, it can be used to specify machine-specific | ||
584 | login-time initializations globally. This file should be | ||
585 | writable only by root, and should be world-readable. | ||
586 | |||
587 | /var/empty | ||
588 | chroot(2) directory used by sshd during privilege separation in | ||
589 | the pre-authentication phase. The directory should not contain | ||
590 | any files and must be owned by root and not group or world- | ||
591 | writable. | ||
592 | |||
593 | /var/run/sshd.pid | ||
594 | Contains the process ID of the sshd listening for connections (if | ||
595 | there are several daemons running concurrently for different | ||
596 | ports, this contains the process ID of the one started last). | ||
597 | The content of this file is not sensitive; it can be world-read- | ||
598 | able. | ||
599 | |||
600 | SEE ALSO | ||
601 | scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
602 | ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5), | ||
603 | sshd_config(5), inetd(8), sftp-server(8) | ||
604 | |||
605 | AUTHORS | ||
606 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
607 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
608 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
609 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
610 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
611 | for privilege separation. | ||
612 | |||
613 | CAVEATS | ||
614 | System security is not improved unless rshd, rlogind, and rexecd are dis- | ||
615 | abled (thus completely disabling rlogin and rsh into the machine). | ||
616 | |||
617 | OpenBSD 4.7 March 5, 2010 10 | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..94935c07f --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,659 @@ | |||
1 | SSHD_CONFIG(5) OpenBSD Programmer's Manual SSHD_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | sshd_config - OpenSSH SSH daemon configuration file | ||
5 | |||
6 | SYNOPSIS | ||
7 | /etc/ssh/sshd_config | ||
8 | |||
9 | DESCRIPTION | ||
10 | sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file | ||
11 | specified with -f on the command line). The file contains keyword-argu- | ||
12 | ment pairs, one per line. Lines starting with `#' and empty lines are | ||
13 | interpreted as comments. Arguments may optionally be enclosed in double | ||
14 | quotes (") in order to represent arguments containing spaces. | ||
15 | |||
16 | The possible keywords and their meanings are as follows (note that key- | ||
17 | words are case-insensitive and arguments are case-sensitive): | ||
18 | |||
19 | AcceptEnv | ||
20 | Specifies what environment variables sent by the client will be | ||
21 | copied into the session's environ(7). See SendEnv in | ||
22 | ssh_config(5) for how to configure the client. Note that envi- | ||
23 | ronment passing is only supported for protocol 2. Variables are | ||
24 | specified by name, which may contain the wildcard characters `*' | ||
25 | and `?'. Multiple environment variables may be separated by | ||
26 | whitespace or spread across multiple AcceptEnv directives. Be | ||
27 | warned that some environment variables could be used to bypass | ||
28 | restricted user environments. For this reason, care should be | ||
29 | taken in the use of this directive. The default is not to accept | ||
30 | any environment variables. | ||
31 | |||
32 | AddressFamily | ||
33 | Specifies which address family should be used by sshd(8). Valid | ||
34 | arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' | ||
35 | (use IPv6 only). The default is ``any''. | ||
36 | |||
37 | AllowAgentForwarding | ||
38 | Specifies whether ssh-agent(1) forwarding is permitted. The de- | ||
39 | fault is ``yes''. Note that disabling agent forwarding does not | ||
40 | improve security unless users are also denied shell access, as | ||
41 | they can always install their own forwarders. | ||
42 | |||
43 | AllowGroups | ||
44 | This keyword can be followed by a list of group name patterns, | ||
45 | separated by spaces. If specified, login is allowed only for | ||
46 | users whose primary group or supplementary group list matches one | ||
47 | of the patterns. Only group names are valid; a numerical group | ||
48 | ID is not recognized. By default, login is allowed for all | ||
49 | groups. The allow/deny directives are processed in the following | ||
50 | order: DenyUsers, AllowUsers, DenyGroups, and finally | ||
51 | AllowGroups. | ||
52 | |||
53 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
54 | |||
55 | AllowTcpForwarding | ||
56 | Specifies whether TCP forwarding is permitted. The default is | ||
57 | ``yes''. Note that disabling TCP forwarding does not improve se- | ||
58 | curity unless users are also denied shell access, as they can al- | ||
59 | ways install their own forwarders. | ||
60 | |||
61 | AllowUsers | ||
62 | This keyword can be followed by a list of user name patterns, | ||
63 | separated by spaces. If specified, login is allowed only for us- | ||
64 | er names that match one of the patterns. Only user names are | ||
65 | valid; a numerical user ID is not recognized. By default, login | ||
66 | is allowed for all users. If the pattern takes the form US- | ||
67 | ER@HOST then USER and HOST are separately checked, restricting | ||
68 | logins to particular users from particular hosts. The allow/deny | ||
69 | directives are processed in the following order: DenyUsers, | ||
70 | AllowUsers, DenyGroups, and finally AllowGroups. | ||
71 | |||
72 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
73 | |||
74 | AuthorizedKeysFile | ||
75 | Specifies the file that contains the public keys that can be used | ||
76 | for user authentication. AuthorizedKeysFile may contain tokens | ||
77 | of the form %T which are substituted during connection setup. | ||
78 | The following tokens are defined: %% is replaced by a literal | ||
79 | '%', %h is replaced by the home directory of the user being au- | ||
80 | thenticated, and %u is replaced by the username of that user. | ||
81 | After expansion, AuthorizedKeysFile is taken to be an absolute | ||
82 | path or one relative to the user's home directory. The default | ||
83 | is ``.ssh/authorized_keys''. | ||
84 | |||
85 | Banner The contents of the specified file are sent to the remote user | ||
86 | before authentication is allowed. If the argument is ``none'' | ||
87 | then no banner is displayed. This option is only available for | ||
88 | protocol version 2. By default, no banner is displayed. | ||
89 | |||
90 | ChallengeResponseAuthentication | ||
91 | Specifies whether challenge-response authentication is allowed | ||
92 | (e.g. via PAM or though authentication styles supported in | ||
93 | login.conf(5)) The default is ``yes''. | ||
94 | |||
95 | ChrootDirectory | ||
96 | Specifies the pathname of a directory to chroot(2) to after au- | ||
97 | thentication. All components of the pathname must be root-owned | ||
98 | directories that are not writable by any other user or group. | ||
99 | After the chroot, sshd(8) changes the working directory to the | ||
100 | user's home directory. | ||
101 | |||
102 | The pathname may contain the following tokens that are expanded | ||
103 | at runtime once the connecting user has been authenticated: %% is | ||
104 | replaced by a literal '%', %h is replaced by the home directory | ||
105 | of the user being authenticated, and %u is replaced by the user- | ||
106 | name of that user. | ||
107 | |||
108 | The ChrootDirectory must contain the necessary files and directo- | ||
109 | ries to support the user's session. For an interactive session | ||
110 | this requires at least a shell, typically sh(1), and basic /dev | ||
111 | nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4), | ||
112 | arandom(4) and tty(4) devices. For file transfer sessions using | ||
113 | ``sftp'', no additional configuration of the environment is nec- | ||
114 | essary if the in-process sftp server is used, though sessions | ||
115 | which use logging do require /dev/log inside the chroot directory | ||
116 | (see sftp-server(8) for details). | ||
117 | |||
118 | The default is not to chroot(2). | ||
119 | |||
120 | Ciphers | ||
121 | Specifies the ciphers allowed for protocol version 2. Multiple | ||
122 | ciphers must be comma-separated. The supported ciphers are | ||
123 | ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'', | ||
124 | ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'', | ||
125 | ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and | ||
126 | ``cast128-cbc''. The default is: | ||
127 | |||
128 | aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, | ||
129 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, | ||
130 | aes256-cbc,arcfour | ||
131 | |||
132 | ClientAliveCountMax | ||
133 | Sets the number of client alive messages (see below) which may be | ||
134 | sent without sshd(8) receiving any messages back from the client. | ||
135 | If this threshold is reached while client alive messages are be- | ||
136 | ing sent, sshd will disconnect the client, terminating the ses- | ||
137 | sion. It is important to note that the use of client alive mes- | ||
138 | sages is very different from TCPKeepAlive (below). The client | ||
139 | alive messages are sent through the encrypted channel and there- | ||
140 | fore will not be spoofable. The TCP keepalive option enabled by | ||
141 | TCPKeepAlive is spoofable. The client alive mechanism is valu- | ||
142 | able when the client or server depend on knowing when a connec- | ||
143 | tion has become inactive. | ||
144 | |||
145 | The default value is 3. If ClientAliveInterval (see below) is | ||
146 | set to 15, and ClientAliveCountMax is left at the default, unre- | ||
147 | sponsive SSH clients will be disconnected after approximately 45 | ||
148 | seconds. This option applies to protocol version 2 only. | ||
149 | |||
150 | ClientAliveInterval | ||
151 | Sets a timeout interval in seconds after which if no data has | ||
152 | been received from the client, sshd(8) will send a message | ||
153 | through the encrypted channel to request a response from the | ||
154 | client. The default is 0, indicating that these messages will | ||
155 | not be sent to the client. This option applies to protocol ver- | ||
156 | sion 2 only. | ||
157 | |||
158 | Compression | ||
159 | Specifies whether compression is allowed, or delayed until the | ||
160 | user has authenticated successfully. The argument must be | ||
161 | ``yes'', ``delayed'', or ``no''. The default is ``delayed''. | ||
162 | |||
163 | DenyGroups | ||
164 | This keyword can be followed by a list of group name patterns, | ||
165 | separated by spaces. Login is disallowed for users whose primary | ||
166 | group or supplementary group list matches one of the patterns. | ||
167 | Only group names are valid; a numerical group ID is not recog- | ||
168 | nized. By default, login is allowed for all groups. The al- | ||
169 | low/deny directives are processed in the following order: | ||
170 | DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. | ||
171 | |||
172 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
173 | |||
174 | DenyUsers | ||
175 | This keyword can be followed by a list of user name patterns, | ||
176 | separated by spaces. Login is disallowed for user names that | ||
177 | match one of the patterns. Only user names are valid; a numeri- | ||
178 | cal user ID is not recognized. By default, login is allowed for | ||
179 | all users. If the pattern takes the form USER@HOST then USER and | ||
180 | HOST are separately checked, restricting logins to particular | ||
181 | users from particular hosts. The allow/deny directives are pro- | ||
182 | cessed in the following order: DenyUsers, AllowUsers, DenyGroups, | ||
183 | and finally AllowGroups. | ||
184 | |||
185 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
186 | |||
187 | ForceCommand | ||
188 | Forces the execution of the command specified by ForceCommand, | ||
189 | ignoring any command supplied by the client and ~/.ssh/rc if pre- | ||
190 | sent. The command is invoked by using the user's login shell | ||
191 | with the -c option. This applies to shell, command, or subsystem | ||
192 | execution. It is most useful inside a Match block. The command | ||
193 | originally supplied by the client is available in the | ||
194 | SSH_ORIGINAL_COMMAND environment variable. Specifying a command | ||
195 | of ``internal-sftp'' will force the use of an in-process sftp | ||
196 | server that requires no support files when used with | ||
197 | ChrootDirectory. | ||
198 | |||
199 | GatewayPorts | ||
200 | Specifies whether remote hosts are allowed to connect to ports | ||
201 | forwarded for the client. By default, sshd(8) binds remote port | ||
202 | forwardings to the loopback address. This prevents other remote | ||
203 | hosts from connecting to forwarded ports. GatewayPorts can be | ||
204 | used to specify that sshd should allow remote port forwardings to | ||
205 | bind to non-loopback addresses, thus allowing other hosts to con- | ||
206 | nect. The argument may be ``no'' to force remote port forward- | ||
207 | ings to be available to the local host only, ``yes'' to force re- | ||
208 | mote port forwardings to bind to the wildcard address, or | ||
209 | ``clientspecified'' to allow the client to select the address to | ||
210 | which the forwarding is bound. The default is ``no''. | ||
211 | |||
212 | GSSAPIAuthentication | ||
213 | Specifies whether user authentication based on GSSAPI is allowed. | ||
214 | The default is ``no''. Note that this option applies to protocol | ||
215 | version 2 only. | ||
216 | |||
217 | GSSAPICleanupCredentials | ||
218 | Specifies whether to automatically destroy the user's credentials | ||
219 | cache on logout. The default is ``yes''. Note that this option | ||
220 | applies to protocol version 2 only. | ||
221 | |||
222 | HostbasedAuthentication | ||
223 | Specifies whether rhosts or /etc/hosts.equiv authentication to- | ||
224 | gether with successful public key client host authentication is | ||
225 | allowed (host-based authentication). This option is similar to | ||
226 | RhostsRSAAuthentication and applies to protocol version 2 only. | ||
227 | The default is ``no''. | ||
228 | |||
229 | HostbasedUsesNameFromPacketOnly | ||
230 | Specifies whether or not the server will attempt to perform a re- | ||
231 | verse name lookup when matching the name in the ~/.shosts, | ||
232 | ~/.rhosts, and /etc/hosts.equiv files during | ||
233 | HostbasedAuthentication. A setting of ``yes'' means that sshd(8) | ||
234 | uses the name supplied by the client rather than attempting to | ||
235 | resolve the name from the TCP connection itself. The default is | ||
236 | ``no''. | ||
237 | |||
238 | HostCertificate | ||
239 | Specifies a file containing a public host certificate. The cer- | ||
240 | tificate's public key must match a private host key already spec- | ||
241 | ified by HostKey. The default behaviour of sshd(8) is not to | ||
242 | load any certificates. | ||
243 | |||
244 | HostKey | ||
245 | Specifies a file containing a private host key used by SSH. The | ||
246 | default is /etc/ssh/ssh_host_key for protocol version 1, and | ||
247 | /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro- | ||
248 | tocol version 2. Note that sshd(8) will refuse to use a file if | ||
249 | it is group/world-accessible. It is possible to have multiple | ||
250 | host key files. ``rsa1'' keys are used for version 1 and ``dsa'' | ||
251 | or ``rsa'' are used for version 2 of the SSH protocol. | ||
252 | |||
253 | IgnoreRhosts | ||
254 | Specifies that .rhosts and .shosts files will not be used in | ||
255 | RhostsRSAAuthentication or HostbasedAuthentication. | ||
256 | |||
257 | /etc/hosts.equiv and /etc/shosts.equiv are still used. The de- | ||
258 | fault is ``yes''. | ||
259 | |||
260 | IgnoreUserKnownHosts | ||
261 | Specifies whether sshd(8) should ignore the user's | ||
262 | ~/.ssh/known_hosts during RhostsRSAAuthentication or | ||
263 | HostbasedAuthentication. The default is ``no''. | ||
264 | |||
265 | KerberosAuthentication | ||
266 | Specifies whether the password provided by the user for | ||
267 | PasswordAuthentication will be validated through the Kerberos | ||
268 | KDC. To use this option, the server needs a Kerberos servtab | ||
269 | which allows the verification of the KDC's identity. The default | ||
270 | is ``no''. | ||
271 | |||
272 | KerberosGetAFSToken | ||
273 | If AFS is active and the user has a Kerberos 5 TGT, attempt to | ||
274 | acquire an AFS token before accessing the user's home directory. | ||
275 | The default is ``no''. | ||
276 | |||
277 | KerberosOrLocalPasswd | ||
278 | If password authentication through Kerberos fails then the pass- | ||
279 | word will be validated via any additional local mechanism such as | ||
280 | /etc/passwd. The default is ``yes''. | ||
281 | |||
282 | KerberosTicketCleanup | ||
283 | Specifies whether to automatically destroy the user's ticket | ||
284 | cache file on logout. The default is ``yes''. | ||
285 | |||
286 | KeyRegenerationInterval | ||
287 | In protocol version 1, the ephemeral server key is automatically | ||
288 | regenerated after this many seconds (if it has been used). The | ||
289 | purpose of regeneration is to prevent decrypting captured ses- | ||
290 | sions by later breaking into the machine and stealing the keys. | ||
291 | The key is never stored anywhere. If the value is 0, the key is | ||
292 | never regenerated. The default is 3600 (seconds). | ||
293 | |||
294 | ListenAddress | ||
295 | Specifies the local addresses sshd(8) should listen on. The fol- | ||
296 | lowing forms may be used: | ||
297 | |||
298 | ListenAddress host|IPv4_addr|IPv6_addr | ||
299 | ListenAddress host|IPv4_addr:port | ||
300 | ListenAddress [host|IPv6_addr]:port | ||
301 | |||
302 | If port is not specified, sshd will listen on the address and all | ||
303 | prior Port options specified. The default is to listen on all | ||
304 | local addresses. Multiple ListenAddress options are permitted. | ||
305 | Additionally, any Port options must precede this option for non- | ||
306 | port qualified addresses. | ||
307 | |||
308 | LoginGraceTime | ||
309 | The server disconnects after this time if the user has not suc- | ||
310 | cessfully logged in. If the value is 0, there is no time limit. | ||
311 | The default is 120 seconds. | ||
312 | |||
313 | LogLevel | ||
314 | Gives the verbosity level that is used when logging messages from | ||
315 | sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
316 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
317 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
318 | higher levels of debugging output. Logging with a DEBUG level | ||
319 | violates the privacy of users and is not recommended. | ||
320 | |||
321 | MACs Specifies the available MAC (message authentication code) algo- | ||
322 | rithms. The MAC algorithm is used in protocol version 2 for data | ||
323 | integrity protection. Multiple algorithms must be comma-separat- | ||
324 | ed. The default is: | ||
325 | |||
326 | hmac-md5,hmac-sha1,umac-64@openssh.com, | ||
327 | hmac-ripemd160,hmac-sha1-96,hmac-md5-96 | ||
328 | |||
329 | Match Introduces a conditional block. If all of the criteria on the | ||
330 | Match line are satisfied, the keywords on the following lines | ||
331 | override those set in the global section of the config file, un- | ||
332 | til either another Match line or the end of the file. | ||
333 | |||
334 | The arguments to Match are one or more criteria-pattern pairs. | ||
335 | The available criteria are User, Group, Host, and Address. The | ||
336 | match patterns may consist of single entries or comma-separated | ||
337 | lists and may use the wildcard and negation operators described | ||
338 | in the PATTERNS section of ssh_config(5). | ||
339 | |||
340 | The patterns in an Address criteria may additionally contain ad- | ||
341 | dresses to match in CIDR address/masklen format, e.g. | ||
342 | ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask | ||
343 | length provided must be consistent with the address - it is an | ||
344 | error to specify a mask length that is too long for the address | ||
345 | or one with bits set in this host portion of the address. For | ||
346 | example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively. | ||
347 | |||
348 | Only a subset of keywords may be used on the lines following a | ||
349 | Match keyword. Available keywords are AllowAgentForwarding, | ||
350 | AllowTcpForwarding, Banner, ChrootDirectory, ForceCommand, | ||
351 | GatewayPorts, GSSAPIAuthentication, HostbasedAuthentication, | ||
352 | KbdInteractiveAuthentication, KerberosAuthentication, | ||
353 | MaxAuthTries, MaxSessions, PasswordAuthentication, | ||
354 | PermitEmptyPasswords, PermitOpen, PermitRootLogin, | ||
355 | PubkeyAuthentication, RhostsRSAAuthentication, RSAAuthentication, | ||
356 | X11DisplayOffset, X11Forwarding and X11UseLocalHost. | ||
357 | |||
358 | MaxAuthTries | ||
359 | Specifies the maximum number of authentication attempts permitted | ||
360 | per connection. Once the number of failures reaches half this | ||
361 | value, additional failures are logged. The default is 6. | ||
362 | |||
363 | MaxSessions | ||
364 | Specifies the maximum number of open sessions permitted per net- | ||
365 | work connection. The default is 10. | ||
366 | |||
367 | MaxStartups | ||
368 | Specifies the maximum number of concurrent unauthenticated con- | ||
369 | nections to the SSH daemon. Additional connections will be | ||
370 | dropped until authentication succeeds or the LoginGraceTime ex- | ||
371 | pires for a connection. The default is 10. | ||
372 | |||
373 | Alternatively, random early drop can be enabled by specifying the | ||
374 | three colon separated values ``start:rate:full'' (e.g. | ||
375 | "10:30:60"). sshd(8) will refuse connection attempts with a | ||
376 | probability of ``rate/100'' (30%) if there are currently | ||
377 | ``start'' (10) unauthenticated connections. The probability in- | ||
378 | creases linearly and all connection attempts are refused if the | ||
379 | number of unauthenticated connections reaches ``full'' (60). | ||
380 | |||
381 | PasswordAuthentication | ||
382 | Specifies whether password authentication is allowed. The de- | ||
383 | fault is ``yes''. | ||
384 | |||
385 | PermitEmptyPasswords | ||
386 | When password authentication is allowed, it specifies whether the | ||
387 | server allows login to accounts with empty password strings. The | ||
388 | default is ``no''. | ||
389 | |||
390 | PermitOpen | ||
391 | Specifies the destinations to which TCP port forwarding is per- | ||
392 | mitted. The forwarding specification must be one of the follow- | ||
393 | ing forms: | ||
394 | |||
395 | PermitOpen host:port | ||
396 | PermitOpen IPv4_addr:port | ||
397 | PermitOpen [IPv6_addr]:port | ||
398 | |||
399 | Multiple forwards may be specified by separating them with | ||
400 | whitespace. An argument of ``any'' can be used to remove all re- | ||
401 | strictions and permit any forwarding requests. By default all | ||
402 | port forwarding requests are permitted. | ||
403 | |||
404 | PermitRootLogin | ||
405 | Specifies whether root can log in using ssh(1). The argument | ||
406 | must be ``yes'', ``without-password'', ``forced-commands-only'', | ||
407 | or ``no''. The default is ``yes''. | ||
408 | |||
409 | If this option is set to ``without-password'', password authenti- | ||
410 | cation is disabled for root. | ||
411 | |||
412 | If this option is set to ``forced-commands-only'', root login | ||
413 | with public key authentication will be allowed, but only if the | ||
414 | command option has been specified (which may be useful for taking | ||
415 | remote backups even if root login is normally not allowed). All | ||
416 | other authentication methods are disabled for root. | ||
417 | |||
418 | If this option is set to ``no'', root is not allowed to log in. | ||
419 | |||
420 | PermitTunnel | ||
421 | Specifies whether tun(4) device forwarding is allowed. The argu- | ||
422 | ment must be ``yes'', ``point-to-point'' (layer 3), ``ethernet'' | ||
423 | (layer 2), or ``no''. Specifying ``yes'' permits both ``point- | ||
424 | to-point'' and ``ethernet''. The default is ``no''. | ||
425 | |||
426 | PermitUserEnvironment | ||
427 | Specifies whether ~/.ssh/environment and environment= options in | ||
428 | ~/.ssh/authorized_keys are processed by sshd(8). The default is | ||
429 | ``no''. Enabling environment processing may enable users to by- | ||
430 | pass access restrictions in some configurations using mechanisms | ||
431 | such as LD_PRELOAD. | ||
432 | |||
433 | PidFile | ||
434 | Specifies the file that contains the process ID of the SSH dae- | ||
435 | mon. The default is /var/run/sshd.pid. | ||
436 | |||
437 | Port Specifies the port number that sshd(8) listens on. The default | ||
438 | is 22. Multiple options of this type are permitted. See also | ||
439 | ListenAddress. | ||
440 | |||
441 | PrintLastLog | ||
442 | Specifies whether sshd(8) should print the date and time of the | ||
443 | last user login when a user logs in interactively. The default | ||
444 | is ``yes''. | ||
445 | |||
446 | PrintMotd | ||
447 | Specifies whether sshd(8) should print /etc/motd when a user logs | ||
448 | in interactively. (On some systems it is also printed by the | ||
449 | shell, /etc/profile, or equivalent.) The default is ``yes''. | ||
450 | |||
451 | Protocol | ||
452 | Specifies the protocol versions sshd(8) supports. The possible | ||
453 | values are `1' and `2'. Multiple versions must be comma-separat- | ||
454 | ed. The default is `2'. Note that the order of the protocol | ||
455 | list does not indicate preference, because the client selects | ||
456 | among multiple protocol versions offered by the server. Specify- | ||
457 | ing ``2,1'' is identical to ``1,2''. | ||
458 | |||
459 | PubkeyAuthentication | ||
460 | Specifies whether public key authentication is allowed. The de- | ||
461 | fault is ``yes''. Note that this option applies to protocol ver- | ||
462 | sion 2 only. | ||
463 | |||
464 | RevokedKeys | ||
465 | Specifies a list of revoked public keys. Keys listed in this | ||
466 | file will be refused for public key authentication. Note that if | ||
467 | this file is not readable, then public key authentication will be | ||
468 | refused for all users. | ||
469 | |||
470 | RhostsRSAAuthentication | ||
471 | Specifies whether rhosts or /etc/hosts.equiv authentication to- | ||
472 | gether with successful RSA host authentication is allowed. The | ||
473 | default is ``no''. This option applies to protocol version 1 on- | ||
474 | ly. | ||
475 | |||
476 | RSAAuthentication | ||
477 | Specifies whether pure RSA authentication is allowed. The de- | ||
478 | fault is ``yes''. This option applies to protocol version 1 on- | ||
479 | ly. | ||
480 | |||
481 | ServerKeyBits | ||
482 | Defines the number of bits in the ephemeral protocol version 1 | ||
483 | server key. The minimum value is 512, and the default is 1024. | ||
484 | |||
485 | StrictModes | ||
486 | Specifies whether sshd(8) should check file modes and ownership | ||
487 | of the user's files and home directory before accepting login. | ||
488 | This is normally desirable because novices sometimes accidentally | ||
489 | leave their directory or files world-writable. The default is | ||
490 | ``yes''. Note that this does not apply to ChrootDirectory, whose | ||
491 | permissions and ownership are checked unconditionally. | ||
492 | |||
493 | Subsystem | ||
494 | Configures an external subsystem (e.g. file transfer daemon). | ||
495 | Arguments should be a subsystem name and a command (with optional | ||
496 | arguments) to execute upon subsystem request. | ||
497 | |||
498 | The command sftp-server(8) implements the ``sftp'' file transfer | ||
499 | subsystem. | ||
500 | |||
501 | Alternately the name ``internal-sftp'' implements an in-process | ||
502 | ``sftp'' server. This may simplify configurations using | ||
503 | ChrootDirectory to force a different filesystem root on clients. | ||
504 | |||
505 | By default no subsystems are defined. Note that this option ap- | ||
506 | plies to protocol version 2 only. | ||
507 | |||
508 | SyslogFacility | ||
509 | Gives the facility code that is used when logging messages from | ||
510 | sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
511 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The de- | ||
512 | fault is AUTH. | ||
513 | |||
514 | TCPKeepAlive | ||
515 | Specifies whether the system should send TCP keepalive messages | ||
516 | to the other side. If they are sent, death of the connection or | ||
517 | crash of one of the machines will be properly noticed. However, | ||
518 | this means that connections will die if the route is down tem- | ||
519 | porarily, and some people find it annoying. On the other hand, | ||
520 | if TCP keepalives are not sent, sessions may hang indefinitely on | ||
521 | the server, leaving ``ghost'' users and consuming server re- | ||
522 | sources. | ||
523 | |||
524 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
525 | server will notice if the network goes down or the client host | ||
526 | crashes. This avoids infinitely hanging sessions. | ||
527 | |||
528 | To disable TCP keepalive messages, the value should be set to | ||
529 | ``no''. | ||
530 | |||
531 | TrustedUserCAKeys | ||
532 | Specifies a file containing public keys of certificate authori- | ||
533 | ties that are trusted to sign user certificates for authentica- | ||
534 | tion. Keys are listed one per line; empty lines and comments | ||
535 | starting with `#' are allowed. If a certificate is presented for | ||
536 | authentication and has its signing CA key listed in this file, | ||
537 | then it may be used for authentication for any user listed in the | ||
538 | certificate's principals list. Note that certificates that lack | ||
539 | a list of principals will not be permitted for authentication us- | ||
540 | ing TrustedUserCAKeys. For more details on certificates, see the | ||
541 | CERTIFICATES section in ssh-keygen(1). | ||
542 | |||
543 | UseDNS Specifies whether sshd(8) should look up the remote host name and | ||
544 | check that the resolved host name for the remote IP address maps | ||
545 | back to the very same IP address. The default is ``yes''. | ||
546 | |||
547 | UseLogin | ||
548 | Specifies whether login(1) is used for interactive login ses- | ||
549 | sions. The default is ``no''. Note that login(1) is never used | ||
550 | for remote command execution. Note also, that if this is en- | ||
551 | abled, X11Forwarding will be disabled because login(1) does not | ||
552 | know how to handle xauth(1) cookies. If UsePrivilegeSeparation | ||
553 | is specified, it will be disabled after authentication. | ||
554 | |||
555 | UsePAM Enables the Pluggable Authentication Module interface. If set to | ||
556 | ``yes'' this will enable PAM authentication using | ||
557 | ChallengeResponseAuthentication and PasswordAuthentication in ad- | ||
558 | dition to PAM account and session module processing for all au- | ||
559 | thentication types. | ||
560 | |||
561 | Because PAM challenge-response authentication usually serves an | ||
562 | equivalent role to password authentication, you should disable | ||
563 | either PasswordAuthentication or ChallengeResponseAuthentication. | ||
564 | |||
565 | If UsePAM is enabled, you will not be able to run sshd(8) as a | ||
566 | non-root user. The default is ``no''. | ||
567 | |||
568 | UsePrivilegeSeparation | ||
569 | Specifies whether sshd(8) separates privileges by creating an un- | ||
570 | privileged child process to deal with incoming network traffic. | ||
571 | After successful authentication, another process will be created | ||
572 | that has the privilege of the authenticated user. The goal of | ||
573 | privilege separation is to prevent privilege escalation by con- | ||
574 | taining any corruption within the unprivileged processes. The | ||
575 | default is ``yes''. | ||
576 | |||
577 | X11DisplayOffset | ||
578 | Specifies the first display number available for sshd(8)'s X11 | ||
579 | forwarding. This prevents sshd from interfering with real X11 | ||
580 | servers. The default is 10. | ||
581 | |||
582 | X11Forwarding | ||
583 | Specifies whether X11 forwarding is permitted. The argument must | ||
584 | be ``yes'' or ``no''. The default is ``no''. | ||
585 | |||
586 | When X11 forwarding is enabled, there may be additional exposure | ||
587 | to the server and to client displays if the sshd(8) proxy display | ||
588 | is configured to listen on the wildcard address (see | ||
589 | X11UseLocalhost below), though this is not the default. Addi- | ||
590 | tionally, the authentication spoofing and authentication data | ||
591 | verification and substitution occur on the client side. The se- | ||
592 | curity risk of using X11 forwarding is that the client's X11 dis- | ||
593 | play server may be exposed to attack when the SSH client requests | ||
594 | forwarding (see the warnings for ForwardX11 in ssh_config(5)). A | ||
595 | system administrator may have a stance in which they want to pro- | ||
596 | tect clients that may expose themselves to attack by unwittingly | ||
597 | requesting X11 forwarding, which can warrant a ``no'' setting. | ||
598 | |||
599 | Note that disabling X11 forwarding does not prevent users from | ||
600 | forwarding X11 traffic, as users can always install their own | ||
601 | forwarders. X11 forwarding is automatically disabled if UseLogin | ||
602 | is enabled. | ||
603 | |||
604 | X11UseLocalhost | ||
605 | Specifies whether sshd(8) should bind the X11 forwarding server | ||
606 | to the loopback address or to the wildcard address. By default, | ||
607 | sshd binds the forwarding server to the loopback address and sets | ||
608 | the hostname part of the DISPLAY environment variable to | ||
609 | ``localhost''. This prevents remote hosts from connecting to the | ||
610 | proxy display. However, some older X11 clients may not function | ||
611 | with this configuration. X11UseLocalhost may be set to ``no'' to | ||
612 | specify that the forwarding server should be bound to the wild- | ||
613 | card address. The argument must be ``yes'' or ``no''. The de- | ||
614 | fault is ``yes''. | ||
615 | |||
616 | XAuthLocation | ||
617 | Specifies the full pathname of the xauth(1) program. The default | ||
618 | is /usr/X11R6/bin/xauth. | ||
619 | |||
620 | TIME FORMATS | ||
621 | sshd(8) command-line arguments and configuration file options that speci- | ||
622 | fy time may be expressed using a sequence of the form: time[qualifier], | ||
623 | where time is a positive integer value and qualifier is one of the fol- | ||
624 | lowing: | ||
625 | |||
626 | <none> seconds | ||
627 | s | S seconds | ||
628 | m | M minutes | ||
629 | h | H hours | ||
630 | d | D days | ||
631 | w | W weeks | ||
632 | |||
633 | Each member of the sequence is added together to calculate the total time | ||
634 | value. | ||
635 | |||
636 | Time format examples: | ||
637 | |||
638 | 600 600 seconds (10 minutes) | ||
639 | 10m 10 minutes | ||
640 | 1h30m 1 hour 30 minutes (90 minutes) | ||
641 | |||
642 | FILES | ||
643 | /etc/ssh/sshd_config | ||
644 | Contains configuration data for sshd(8). This file should be | ||
645 | writable by root only, but it is recommended (though not neces- | ||
646 | sary) that it be world-readable. | ||
647 | |||
648 | SEE ALSO | ||
649 | sshd(8) | ||
650 | |||
651 | AUTHORS | ||
652 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
653 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
654 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
655 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
656 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
657 | for privilege separation. | ||
658 | |||
659 | OpenBSD 4.7 March 4, 2010 10 | ||