diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-01 17:10:56 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-01 17:10:56 +0000 |
commit | 54af7a4ae8d455791a631bdfaade4b64436ae16a (patch) | |
tree | e0ae21993bfc33f09c820b8b2e6b408ad855f4ff | |
parent | faec50b554730338c0e9f34966c11368920b6a78 (diff) | |
parent | ef94e5613d37bcbf880f21ee6094e4b1c7683a4c (diff) |
Import 5.2p1 tarball
-rw-r--r-- | .cvsignore | 29 | ||||
-rw-r--r-- | config.h.in | 1432 | ||||
-rwxr-xr-x | configure | 30605 | ||||
-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-- | scard/Ssh.bin | bin | 0 -> 600 bytes | |||
-rw-r--r-- | scp.0 | 148 | ||||
-rw-r--r-- | sftp-server.0 | 50 | ||||
-rw-r--r-- | sftp.0 | 274 | ||||
-rw-r--r-- | ssh-add.0 | 106 | ||||
-rw-r--r-- | ssh-agent.0 | 117 | ||||
-rw-r--r-- | ssh-keygen.0 | 289 | ||||
-rw-r--r-- | ssh-keyscan.0 | 107 | ||||
-rw-r--r-- | ssh-keysign.0 | 42 | ||||
-rw-r--r-- | ssh-rand-helper.0 | 51 | ||||
-rw-r--r-- | ssh.0 | 873 | ||||
-rw-r--r-- | ssh_config.0 | 670 | ||||
-rw-r--r-- | sshd.0 | 574 | ||||
-rw-r--r-- | sshd_config.0 | 631 |
25 files changed, 36041 insertions, 38 deletions
diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index b893c972d..000000000 --- a/.cvsignore +++ /dev/null | |||
@@ -1,29 +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-rand-helper | ||
25 | ssh_prng_cmds | ||
26 | sshd | ||
27 | stamp-h.in | ||
28 | survey | ||
29 | survey.sh | ||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..84967a461 --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,1432 @@ | |||
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 | /* updwtmpx is broken (if present) */ | ||
72 | #undef BROKEN_UPDWTMPX | ||
73 | |||
74 | /* Define if you have BSD auth support */ | ||
75 | #undef BSD_AUTH | ||
76 | |||
77 | /* Define if you want to specify the path to your lastlog file */ | ||
78 | #undef CONF_LASTLOG_FILE | ||
79 | |||
80 | /* Define if you want to specify the path to your utmpx file */ | ||
81 | #undef CONF_UTMPX_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 | /* Builtin PRNG command timeout */ | ||
123 | #undef ENTROPY_TIMEOUT_MSEC | ||
124 | |||
125 | /* f_fsid has members */ | ||
126 | #undef FSID_HAS_VAL | ||
127 | |||
128 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
129 | #undef GETPGRP_VOID | ||
130 | |||
131 | /* Conflicting defs for getspnam */ | ||
132 | #undef GETSPNAM_CONFLICTING_DEFS | ||
133 | |||
134 | /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */ | ||
135 | #undef GLOB_HAS_ALTDIRFUNC | ||
136 | |||
137 | /* Define if your system glob() function has gl_matchc options in glob_t */ | ||
138 | #undef GLOB_HAS_GL_MATCHC | ||
139 | |||
140 | /* Define this if you want GSSAPI support in the version 2 protocol */ | ||
141 | #undef GSSAPI | ||
142 | |||
143 | /* Define if you want to use shadow password expire field */ | ||
144 | #undef HAS_SHADOW_EXPIRE | ||
145 | |||
146 | /* Define if your system uses access rights style file descriptor passing */ | ||
147 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
148 | |||
149 | /* Define if you have ut_addr in utmp.h */ | ||
150 | #undef HAVE_ADDR_IN_UTMP | ||
151 | |||
152 | /* Define if you have ut_addr in utmpx.h */ | ||
153 | #undef HAVE_ADDR_IN_UTMPX | ||
154 | |||
155 | /* Define if you have ut_addr_v6 in utmp.h */ | ||
156 | #undef HAVE_ADDR_V6_IN_UTMP | ||
157 | |||
158 | /* Define if you have ut_addr_v6 in utmpx.h */ | ||
159 | #undef HAVE_ADDR_V6_IN_UTMPX | ||
160 | |||
161 | /* Define to 1 if you have the `arc4random' function. */ | ||
162 | #undef HAVE_ARC4RANDOM | ||
163 | |||
164 | /* Define to 1 if you have the `arc4random_buf' function. */ | ||
165 | #undef HAVE_ARC4RANDOM_BUF | ||
166 | |||
167 | /* Define to 1 if you have the `arc4random_uniform' function. */ | ||
168 | #undef HAVE_ARC4RANDOM_UNIFORM | ||
169 | |||
170 | /* Define to 1 if you have the `asprintf' function. */ | ||
171 | #undef HAVE_ASPRINTF | ||
172 | |||
173 | /* OpenBSD's gcc has bounded */ | ||
174 | #undef HAVE_ATTRIBUTE__BOUNDED__ | ||
175 | |||
176 | /* Have attribute nonnull */ | ||
177 | #undef HAVE_ATTRIBUTE__NONNULL__ | ||
178 | |||
179 | /* OpenBSD's gcc has sentinel */ | ||
180 | #undef HAVE_ATTRIBUTE__SENTINEL__ | ||
181 | |||
182 | /* Define to 1 if you have the `aug_get_machine' function. */ | ||
183 | #undef HAVE_AUG_GET_MACHINE | ||
184 | |||
185 | /* Define to 1 if you have the `b64_ntop' function. */ | ||
186 | #undef HAVE_B64_NTOP | ||
187 | |||
188 | /* Define to 1 if you have the `b64_pton' function. */ | ||
189 | #undef HAVE_B64_PTON | ||
190 | |||
191 | /* Define if you have the basename function. */ | ||
192 | #undef HAVE_BASENAME | ||
193 | |||
194 | /* Define to 1 if you have the `bcopy' function. */ | ||
195 | #undef HAVE_BCOPY | ||
196 | |||
197 | /* Define to 1 if you have the `bindresvport_sa' function. */ | ||
198 | #undef HAVE_BINDRESVPORT_SA | ||
199 | |||
200 | /* Define to 1 if you have the <bsm/audit.h> header file. */ | ||
201 | #undef HAVE_BSM_AUDIT_H | ||
202 | |||
203 | /* Define to 1 if you have the <bstring.h> header file. */ | ||
204 | #undef HAVE_BSTRING_H | ||
205 | |||
206 | /* Define to 1 if you have the `clock' function. */ | ||
207 | #undef HAVE_CLOCK | ||
208 | |||
209 | /* define if you have clock_t data type */ | ||
210 | #undef HAVE_CLOCK_T | ||
211 | |||
212 | /* Define to 1 if you have the `closefrom' function. */ | ||
213 | #undef HAVE_CLOSEFROM | ||
214 | |||
215 | /* Define if gai_strerror() returns const char * */ | ||
216 | #undef HAVE_CONST_GAI_STRERROR_PROTO | ||
217 | |||
218 | /* Define if your system uses ancillary data style file descriptor passing */ | ||
219 | #undef HAVE_CONTROL_IN_MSGHDR | ||
220 | |||
221 | /* Define to 1 if you have the <crypto/sha2.h> header file. */ | ||
222 | #undef HAVE_CRYPTO_SHA2_H | ||
223 | |||
224 | /* Define to 1 if you have the <crypt.h> header file. */ | ||
225 | #undef HAVE_CRYPT_H | ||
226 | |||
227 | /* Define if you are on Cygwin */ | ||
228 | #undef HAVE_CYGWIN | ||
229 | |||
230 | /* Define if your libraries define daemon() */ | ||
231 | #undef HAVE_DAEMON | ||
232 | |||
233 | /* Define to 1 if you have the declaration of `authenticate', and to 0 if you | ||
234 | don't. */ | ||
235 | #undef HAVE_DECL_AUTHENTICATE | ||
236 | |||
237 | /* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you | ||
238 | don't. */ | ||
239 | #undef HAVE_DECL_GLOB_NOMATCH | ||
240 | |||
241 | /* Define to 1 if you have the declaration of `h_errno', and to 0 if you | ||
242 | don't. */ | ||
243 | #undef HAVE_DECL_H_ERRNO | ||
244 | |||
245 | /* Define to 1 if you have the declaration of `loginfailed', and to 0 if you | ||
246 | don't. */ | ||
247 | #undef HAVE_DECL_LOGINFAILED | ||
248 | |||
249 | /* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if | ||
250 | you don't. */ | ||
251 | #undef HAVE_DECL_LOGINRESTRICTIONS | ||
252 | |||
253 | /* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you | ||
254 | don't. */ | ||
255 | #undef HAVE_DECL_LOGINSUCCESS | ||
256 | |||
257 | /* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you | ||
258 | don't. */ | ||
259 | #undef HAVE_DECL_MAXSYMLINKS | ||
260 | |||
261 | /* Define to 1 if you have the declaration of `offsetof', and to 0 if you | ||
262 | don't. */ | ||
263 | #undef HAVE_DECL_OFFSETOF | ||
264 | |||
265 | /* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you | ||
266 | don't. */ | ||
267 | #undef HAVE_DECL_O_NONBLOCK | ||
268 | |||
269 | /* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you | ||
270 | don't. */ | ||
271 | #undef HAVE_DECL_PASSWDEXPIRED | ||
272 | |||
273 | /* Define to 1 if you have the declaration of `setauthdb', and to 0 if you | ||
274 | don't. */ | ||
275 | #undef HAVE_DECL_SETAUTHDB | ||
276 | |||
277 | /* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you | ||
278 | don't. */ | ||
279 | #undef HAVE_DECL_SHUT_RD | ||
280 | |||
281 | /* Define to 1 if you have the declaration of `writev', and to 0 if you don't. | ||
282 | */ | ||
283 | #undef HAVE_DECL_WRITEV | ||
284 | |||
285 | /* Define to 1 if you have the declaration of `_getlong', and to 0 if you | ||
286 | don't. */ | ||
287 | #undef HAVE_DECL__GETLONG | ||
288 | |||
289 | /* Define to 1 if you have the declaration of `_getshort', and to 0 if you | ||
290 | don't. */ | ||
291 | #undef HAVE_DECL__GETSHORT | ||
292 | |||
293 | /* Define if you have /dev/ptmx */ | ||
294 | #undef HAVE_DEV_PTMX | ||
295 | |||
296 | /* Define if you have /dev/ptc */ | ||
297 | #undef HAVE_DEV_PTS_AND_PTC | ||
298 | |||
299 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
300 | #undef HAVE_DIRENT_H | ||
301 | |||
302 | /* Define to 1 if you have the `dirfd' function. */ | ||
303 | #undef HAVE_DIRFD | ||
304 | |||
305 | /* Define to 1 if you have the `dirname' function. */ | ||
306 | #undef HAVE_DIRNAME | ||
307 | |||
308 | /* Define to 1 if you have the <endian.h> header file. */ | ||
309 | #undef HAVE_ENDIAN_H | ||
310 | |||
311 | /* Define to 1 if you have the `endutent' function. */ | ||
312 | #undef HAVE_ENDUTENT | ||
313 | |||
314 | /* Define to 1 if you have the `endutxent' function. */ | ||
315 | #undef HAVE_ENDUTXENT | ||
316 | |||
317 | /* Define if your system has /etc/default/login */ | ||
318 | #undef HAVE_ETC_DEFAULT_LOGIN | ||
319 | |||
320 | /* Define to 1 if you have the `EVP_sha256' function. */ | ||
321 | #undef HAVE_EVP_SHA256 | ||
322 | |||
323 | /* Define if you have ut_exit in utmp.h */ | ||
324 | #undef HAVE_EXIT_IN_UTMP | ||
325 | |||
326 | /* Define to 1 if you have the `fchmod' function. */ | ||
327 | #undef HAVE_FCHMOD | ||
328 | |||
329 | /* Define to 1 if you have the `fchown' function. */ | ||
330 | #undef HAVE_FCHOWN | ||
331 | |||
332 | /* Use F_CLOSEM fcntl for closefrom */ | ||
333 | #undef HAVE_FCNTL_CLOSEM | ||
334 | |||
335 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
336 | #undef HAVE_FCNTL_H | ||
337 | |||
338 | /* Define to 1 if you have the <features.h> header file. */ | ||
339 | #undef HAVE_FEATURES_H | ||
340 | |||
341 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
342 | #undef HAVE_FLOATINGPOINT_H | ||
343 | |||
344 | /* Define to 1 if you have the `fmt_scaled' function. */ | ||
345 | #undef HAVE_FMT_SCALED | ||
346 | |||
347 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
348 | #undef HAVE_FREEADDRINFO | ||
349 | |||
350 | /* Define to 1 if the system has the type `fsblkcnt_t'. */ | ||
351 | #undef HAVE_FSBLKCNT_T | ||
352 | |||
353 | /* Define to 1 if the system has the type `fsfilcnt_t'. */ | ||
354 | #undef HAVE_FSFILCNT_T | ||
355 | |||
356 | /* Define to 1 if you have the `fstatvfs' function. */ | ||
357 | #undef HAVE_FSTATVFS | ||
358 | |||
359 | /* Define to 1 if you have the `futimes' function. */ | ||
360 | #undef HAVE_FUTIMES | ||
361 | |||
362 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
363 | #undef HAVE_GAI_STRERROR | ||
364 | |||
365 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
366 | #undef HAVE_GETADDRINFO | ||
367 | |||
368 | /* Define to 1 if you have the `getaudit' function. */ | ||
369 | #undef HAVE_GETAUDIT | ||
370 | |||
371 | /* Define to 1 if you have the `getaudit_addr' function. */ | ||
372 | #undef HAVE_GETAUDIT_ADDR | ||
373 | |||
374 | /* Define to 1 if you have the `getcwd' function. */ | ||
375 | #undef HAVE_GETCWD | ||
376 | |||
377 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
378 | #undef HAVE_GETGROUPLIST | ||
379 | |||
380 | /* Define to 1 if you have the `getgrset' function. */ | ||
381 | #undef HAVE_GETGRSET | ||
382 | |||
383 | /* Define to 1 if you have the `getlastlogxbyname' function. */ | ||
384 | #undef HAVE_GETLASTLOGXBYNAME | ||
385 | |||
386 | /* Define to 1 if you have the `getluid' function. */ | ||
387 | #undef HAVE_GETLUID | ||
388 | |||
389 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
390 | #undef HAVE_GETNAMEINFO | ||
391 | |||
392 | /* Define to 1 if you have the `getopt' function. */ | ||
393 | #undef HAVE_GETOPT | ||
394 | |||
395 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
396 | #undef HAVE_GETOPT_H | ||
397 | |||
398 | /* Define if your getopt(3) defines and uses optreset */ | ||
399 | #undef HAVE_GETOPT_OPTRESET | ||
400 | |||
401 | /* Define if your libraries define getpagesize() */ | ||
402 | #undef HAVE_GETPAGESIZE | ||
403 | |||
404 | /* Define to 1 if you have the `getpeereid' function. */ | ||
405 | #undef HAVE_GETPEEREID | ||
406 | |||
407 | /* Define to 1 if you have the `getpeerucred' function. */ | ||
408 | #undef HAVE_GETPEERUCRED | ||
409 | |||
410 | /* Define to 1 if you have the `getpwanam' function. */ | ||
411 | #undef HAVE_GETPWANAM | ||
412 | |||
413 | /* Define to 1 if you have the `getrlimit' function. */ | ||
414 | #undef HAVE_GETRLIMIT | ||
415 | |||
416 | /* Define if getrrsetbyname() exists */ | ||
417 | #undef HAVE_GETRRSETBYNAME | ||
418 | |||
419 | /* Define to 1 if you have the `getrusage' function. */ | ||
420 | #undef HAVE_GETRUSAGE | ||
421 | |||
422 | /* Define to 1 if you have the `getseuserbyname' function. */ | ||
423 | #undef HAVE_GETSEUSERBYNAME | ||
424 | |||
425 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
426 | #undef HAVE_GETTIMEOFDAY | ||
427 | |||
428 | /* Define to 1 if you have the `getttyent' function. */ | ||
429 | #undef HAVE_GETTTYENT | ||
430 | |||
431 | /* Define to 1 if you have the `getutent' function. */ | ||
432 | #undef HAVE_GETUTENT | ||
433 | |||
434 | /* Define to 1 if you have the `getutid' function. */ | ||
435 | #undef HAVE_GETUTID | ||
436 | |||
437 | /* Define to 1 if you have the `getutline' function. */ | ||
438 | #undef HAVE_GETUTLINE | ||
439 | |||
440 | /* Define to 1 if you have the `getutxent' function. */ | ||
441 | #undef HAVE_GETUTXENT | ||
442 | |||
443 | /* Define to 1 if you have the `getutxid' function. */ | ||
444 | #undef HAVE_GETUTXID | ||
445 | |||
446 | /* Define to 1 if you have the `getutxline' function. */ | ||
447 | #undef HAVE_GETUTXLINE | ||
448 | |||
449 | /* Define to 1 if you have the `get_default_context_with_level' function. */ | ||
450 | #undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL | ||
451 | |||
452 | /* Define to 1 if you have the `glob' function. */ | ||
453 | #undef HAVE_GLOB | ||
454 | |||
455 | /* Define to 1 if you have the <glob.h> header file. */ | ||
456 | #undef HAVE_GLOB_H | ||
457 | |||
458 | /* Define to 1 if you have the <gssapi_generic.h> header file. */ | ||
459 | #undef HAVE_GSSAPI_GENERIC_H | ||
460 | |||
461 | /* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ | ||
462 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | ||
463 | |||
464 | /* Define to 1 if you have the <gssapi/gssapi.h> header file. */ | ||
465 | #undef HAVE_GSSAPI_GSSAPI_H | ||
466 | |||
467 | /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ | ||
468 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | ||
469 | |||
470 | /* Define to 1 if you have the <gssapi.h> header file. */ | ||
471 | #undef HAVE_GSSAPI_H | ||
472 | |||
473 | /* Define to 1 if you have the <gssapi_krb5.h> header file. */ | ||
474 | #undef HAVE_GSSAPI_KRB5_H | ||
475 | |||
476 | /* Define if HEADER.ad exists in arpa/nameser.h */ | ||
477 | #undef HAVE_HEADER_AD | ||
478 | |||
479 | /* Define if you have ut_host in utmp.h */ | ||
480 | #undef HAVE_HOST_IN_UTMP | ||
481 | |||
482 | /* Define if you have ut_host in utmpx.h */ | ||
483 | #undef HAVE_HOST_IN_UTMPX | ||
484 | |||
485 | /* Define to 1 if you have the <iaf.h> header file. */ | ||
486 | #undef HAVE_IAF_H | ||
487 | |||
488 | /* Define to 1 if you have the <ia.h> header file. */ | ||
489 | #undef HAVE_IA_H | ||
490 | |||
491 | /* Define if you have ut_id in utmp.h */ | ||
492 | #undef HAVE_ID_IN_UTMP | ||
493 | |||
494 | /* Define if you have ut_id in utmpx.h */ | ||
495 | #undef HAVE_ID_IN_UTMPX | ||
496 | |||
497 | /* Define to 1 if you have the `inet_aton' function. */ | ||
498 | #undef HAVE_INET_ATON | ||
499 | |||
500 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
501 | #undef HAVE_INET_NTOA | ||
502 | |||
503 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
504 | #undef HAVE_INET_NTOP | ||
505 | |||
506 | /* Define to 1 if you have the `innetgr' function. */ | ||
507 | #undef HAVE_INNETGR | ||
508 | |||
509 | /* define if you have int64_t data type */ | ||
510 | #undef HAVE_INT64_T | ||
511 | |||
512 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
513 | #undef HAVE_INTTYPES_H | ||
514 | |||
515 | /* define if you have intxx_t data type */ | ||
516 | #undef HAVE_INTXX_T | ||
517 | |||
518 | /* Define to 1 if the system has the type `in_addr_t'. */ | ||
519 | #undef HAVE_IN_ADDR_T | ||
520 | |||
521 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
522 | #undef HAVE_LASTLOG_H | ||
523 | |||
524 | /* Define to 1 if you have the `bsm' library (-lbsm). */ | ||
525 | #undef HAVE_LIBBSM | ||
526 | |||
527 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
528 | #undef HAVE_LIBCRYPT | ||
529 | |||
530 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
531 | #undef HAVE_LIBDL | ||
532 | |||
533 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
534 | #undef HAVE_LIBGEN_H | ||
535 | |||
536 | /* Define if system has libiaf that supports set_id */ | ||
537 | #undef HAVE_LIBIAF | ||
538 | |||
539 | /* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
540 | #undef HAVE_LIBNSL | ||
541 | |||
542 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
543 | #undef HAVE_LIBPAM | ||
544 | |||
545 | /* Define to 1 if you have the `sectok' library (-lsectok). */ | ||
546 | #undef HAVE_LIBSECTOK | ||
547 | |||
548 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
549 | #undef HAVE_LIBSOCKET | ||
550 | |||
551 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
552 | #undef HAVE_LIBUTIL_H | ||
553 | |||
554 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
555 | #undef HAVE_LIBXNET | ||
556 | |||
557 | /* Define to 1 if you have the `z' library (-lz). */ | ||
558 | #undef HAVE_LIBZ | ||
559 | |||
560 | /* Define to 1 if you have the <limits.h> header file. */ | ||
561 | #undef HAVE_LIMITS_H | ||
562 | |||
563 | /* Define to 1 if you have the <linux/if_tun.h> header file. */ | ||
564 | #undef HAVE_LINUX_IF_TUN_H | ||
565 | |||
566 | /* Define if your libraries define login() */ | ||
567 | #undef HAVE_LOGIN | ||
568 | |||
569 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
570 | #undef HAVE_LOGIN_CAP_H | ||
571 | |||
572 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
573 | #undef HAVE_LOGIN_GETCAPBOOL | ||
574 | |||
575 | /* Define to 1 if you have the <login.h> header file. */ | ||
576 | #undef HAVE_LOGIN_H | ||
577 | |||
578 | /* Define to 1 if you have the `logout' function. */ | ||
579 | #undef HAVE_LOGOUT | ||
580 | |||
581 | /* Define to 1 if you have the `logwtmp' function. */ | ||
582 | #undef HAVE_LOGWTMP | ||
583 | |||
584 | /* Define to 1 if the system has the type `long double'. */ | ||
585 | #undef HAVE_LONG_DOUBLE | ||
586 | |||
587 | /* Define to 1 if the system has the type `long long'. */ | ||
588 | #undef HAVE_LONG_LONG | ||
589 | |||
590 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
591 | #undef HAVE_MAILLOCK_H | ||
592 | |||
593 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
594 | #undef HAVE_MD5_CRYPT | ||
595 | |||
596 | /* Define if you want to allow MD5 passwords */ | ||
597 | #undef HAVE_MD5_PASSWORDS | ||
598 | |||
599 | /* Define to 1 if you have the `memmove' function. */ | ||
600 | #undef HAVE_MEMMOVE | ||
601 | |||
602 | /* Define to 1 if you have the <memory.h> header file. */ | ||
603 | #undef HAVE_MEMORY_H | ||
604 | |||
605 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
606 | #undef HAVE_MKDTEMP | ||
607 | |||
608 | /* Define to 1 if you have the `mmap' function. */ | ||
609 | #undef HAVE_MMAP | ||
610 | |||
611 | /* define if you have mode_t data type */ | ||
612 | #undef HAVE_MODE_T | ||
613 | |||
614 | /* Some systems put nanosleep outside of libc */ | ||
615 | #undef HAVE_NANOSLEEP | ||
616 | |||
617 | /* Define to 1 if you have the <ndir.h> header file. */ | ||
618 | #undef HAVE_NDIR_H | ||
619 | |||
620 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
621 | #undef HAVE_NETDB_H | ||
622 | |||
623 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
624 | #undef HAVE_NETGROUP_H | ||
625 | |||
626 | /* Define to 1 if you have the <net/if_tun.h> header file. */ | ||
627 | #undef HAVE_NET_IF_TUN_H | ||
628 | |||
629 | /* Define if you are on NeXT */ | ||
630 | #undef HAVE_NEXT | ||
631 | |||
632 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
633 | #undef HAVE_NGETADDRINFO | ||
634 | |||
635 | /* Define to 1 if you have the `nsleep' function. */ | ||
636 | #undef HAVE_NSLEEP | ||
637 | |||
638 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
639 | #undef HAVE_OGETADDRINFO | ||
640 | |||
641 | /* Define if you have an old version of PAM which takes only one argument to | ||
642 | pam_strerror */ | ||
643 | #undef HAVE_OLD_PAM | ||
644 | |||
645 | /* Define to 1 if you have the `openlog_r' function. */ | ||
646 | #undef HAVE_OPENLOG_R | ||
647 | |||
648 | /* Define to 1 if you have the `openpty' function. */ | ||
649 | #undef HAVE_OPENPTY | ||
650 | |||
651 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
652 | #undef HAVE_OPENSSL | ||
653 | |||
654 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
655 | #undef HAVE_OSF_SIA | ||
656 | |||
657 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
658 | #undef HAVE_PAM_GETENVLIST | ||
659 | |||
660 | /* Define to 1 if you have the <pam/pam_appl.h> header file. */ | ||
661 | #undef HAVE_PAM_PAM_APPL_H | ||
662 | |||
663 | /* Define to 1 if you have the `pam_putenv' function. */ | ||
664 | #undef HAVE_PAM_PUTENV | ||
665 | |||
666 | /* Define to 1 if you have the <paths.h> header file. */ | ||
667 | #undef HAVE_PATHS_H | ||
668 | |||
669 | /* Define if you have ut_pid in utmp.h */ | ||
670 | #undef HAVE_PID_IN_UTMP | ||
671 | |||
672 | /* define if you have pid_t data type */ | ||
673 | #undef HAVE_PID_T | ||
674 | |||
675 | /* Define to 1 if you have the `poll' function. */ | ||
676 | #undef HAVE_POLL | ||
677 | |||
678 | /* Define to 1 if you have the <poll.h> header file. */ | ||
679 | #undef HAVE_POLL_H | ||
680 | |||
681 | /* Define to 1 if you have the `prctl' function. */ | ||
682 | #undef HAVE_PRCTL | ||
683 | |||
684 | /* Define if you have /proc/$pid/fd */ | ||
685 | #undef HAVE_PROC_PID | ||
686 | |||
687 | /* Define to 1 if you have the `pstat' function. */ | ||
688 | #undef HAVE_PSTAT | ||
689 | |||
690 | /* Define to 1 if you have the <pty.h> header file. */ | ||
691 | #undef HAVE_PTY_H | ||
692 | |||
693 | /* Define to 1 if you have the `pututline' function. */ | ||
694 | #undef HAVE_PUTUTLINE | ||
695 | |||
696 | /* Define to 1 if you have the `pututxline' function. */ | ||
697 | #undef HAVE_PUTUTXLINE | ||
698 | |||
699 | /* Define if your password has a pw_change field */ | ||
700 | #undef HAVE_PW_CHANGE_IN_PASSWD | ||
701 | |||
702 | /* Define if your password has a pw_class field */ | ||
703 | #undef HAVE_PW_CLASS_IN_PASSWD | ||
704 | |||
705 | /* Define if your password has a pw_expire field */ | ||
706 | #undef HAVE_PW_EXPIRE_IN_PASSWD | ||
707 | |||
708 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
709 | #undef HAVE_READPASSPHRASE | ||
710 | |||
711 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
712 | #undef HAVE_READPASSPHRASE_H | ||
713 | |||
714 | /* Define to 1 if you have the `realpath' function. */ | ||
715 | #undef HAVE_REALPATH | ||
716 | |||
717 | /* Define to 1 if you have the `recvmsg' function. */ | ||
718 | #undef HAVE_RECVMSG | ||
719 | |||
720 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
721 | #undef HAVE_RPC_TYPES_H | ||
722 | |||
723 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
724 | #undef HAVE_RRESVPORT_AF | ||
725 | |||
726 | /* define if you have sa_family_t data type */ | ||
727 | #undef HAVE_SA_FAMILY_T | ||
728 | |||
729 | /* Define to 1 if you have the <sectok.h> header file. */ | ||
730 | #undef HAVE_SECTOK_H | ||
731 | |||
732 | /* Define if you have SecureWare-based protected password database */ | ||
733 | #undef HAVE_SECUREWARE | ||
734 | |||
735 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
736 | #undef HAVE_SECURITY_PAM_APPL_H | ||
737 | |||
738 | /* Define to 1 if you have the `sendmsg' function. */ | ||
739 | #undef HAVE_SENDMSG | ||
740 | |||
741 | /* Define to 1 if you have the `setauthdb' function. */ | ||
742 | #undef HAVE_SETAUTHDB | ||
743 | |||
744 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
745 | #undef HAVE_SETDTABLESIZE | ||
746 | |||
747 | /* Define to 1 if you have the `setegid' function. */ | ||
748 | #undef HAVE_SETEGID | ||
749 | |||
750 | /* Define to 1 if you have the `setenv' function. */ | ||
751 | #undef HAVE_SETENV | ||
752 | |||
753 | /* Define to 1 if you have the `seteuid' function. */ | ||
754 | #undef HAVE_SETEUID | ||
755 | |||
756 | /* Define to 1 if you have the `setgroups' function. */ | ||
757 | #undef HAVE_SETGROUPS | ||
758 | |||
759 | /* Define to 1 if you have the `setlogin' function. */ | ||
760 | #undef HAVE_SETLOGIN | ||
761 | |||
762 | /* Define to 1 if you have the `setluid' function. */ | ||
763 | #undef HAVE_SETLUID | ||
764 | |||
765 | /* Define to 1 if you have the `setpcred' function. */ | ||
766 | #undef HAVE_SETPCRED | ||
767 | |||
768 | /* Define to 1 if you have the `setproctitle' function. */ | ||
769 | #undef HAVE_SETPROCTITLE | ||
770 | |||
771 | /* Define to 1 if you have the `setregid' function. */ | ||
772 | #undef HAVE_SETREGID | ||
773 | |||
774 | /* Define to 1 if you have the `setresgid' function. */ | ||
775 | #undef HAVE_SETRESGID | ||
776 | |||
777 | /* Define to 1 if you have the `setresuid' function. */ | ||
778 | #undef HAVE_SETRESUID | ||
779 | |||
780 | /* Define to 1 if you have the `setreuid' function. */ | ||
781 | #undef HAVE_SETREUID | ||
782 | |||
783 | /* Define to 1 if you have the `setrlimit' function. */ | ||
784 | #undef HAVE_SETRLIMIT | ||
785 | |||
786 | /* Define to 1 if you have the `setsid' function. */ | ||
787 | #undef HAVE_SETSID | ||
788 | |||
789 | /* Define to 1 if you have the `setutent' function. */ | ||
790 | #undef HAVE_SETUTENT | ||
791 | |||
792 | /* Define to 1 if you have the `setutxent' function. */ | ||
793 | #undef HAVE_SETUTXENT | ||
794 | |||
795 | /* Define to 1 if you have the `setvbuf' function. */ | ||
796 | #undef HAVE_SETVBUF | ||
797 | |||
798 | /* Define to 1 if you have the `set_id' function. */ | ||
799 | #undef HAVE_SET_ID | ||
800 | |||
801 | /* Define to 1 if you have the `SHA256_Update' function. */ | ||
802 | #undef HAVE_SHA256_UPDATE | ||
803 | |||
804 | /* Define to 1 if you have the <sha2.h> header file. */ | ||
805 | #undef HAVE_SHA2_H | ||
806 | |||
807 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
808 | #undef HAVE_SHADOW_H | ||
809 | |||
810 | /* Define to 1 if you have the `sigaction' function. */ | ||
811 | #undef HAVE_SIGACTION | ||
812 | |||
813 | /* Define to 1 if you have the `sigvec' function. */ | ||
814 | #undef HAVE_SIGVEC | ||
815 | |||
816 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
817 | #undef HAVE_SIG_ATOMIC_T | ||
818 | |||
819 | /* define if you have size_t data type */ | ||
820 | #undef HAVE_SIZE_T | ||
821 | |||
822 | /* Define to 1 if you have the `snprintf' function. */ | ||
823 | #undef HAVE_SNPRINTF | ||
824 | |||
825 | /* Define to 1 if you have the `socketpair' function. */ | ||
826 | #undef HAVE_SOCKETPAIR | ||
827 | |||
828 | /* Have PEERCRED socket option */ | ||
829 | #undef HAVE_SO_PEERCRED | ||
830 | |||
831 | /* define if you have ssize_t data type */ | ||
832 | #undef HAVE_SSIZE_T | ||
833 | |||
834 | /* Fields in struct sockaddr_storage */ | ||
835 | #undef HAVE_SS_FAMILY_IN_SS | ||
836 | |||
837 | /* Define to 1 if you have the `statfs' function. */ | ||
838 | #undef HAVE_STATFS | ||
839 | |||
840 | /* Define to 1 if you have the `statvfs' function. */ | ||
841 | #undef HAVE_STATVFS | ||
842 | |||
843 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
844 | #undef HAVE_STDDEF_H | ||
845 | |||
846 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
847 | #undef HAVE_STDINT_H | ||
848 | |||
849 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
850 | #undef HAVE_STDLIB_H | ||
851 | |||
852 | /* Define to 1 if you have the `strdup' function. */ | ||
853 | #undef HAVE_STRDUP | ||
854 | |||
855 | /* Define to 1 if you have the `strerror' function. */ | ||
856 | #undef HAVE_STRERROR | ||
857 | |||
858 | /* Define to 1 if you have the `strftime' function. */ | ||
859 | #undef HAVE_STRFTIME | ||
860 | |||
861 | /* Silly mkstemp() */ | ||
862 | #undef HAVE_STRICT_MKSTEMP | ||
863 | |||
864 | /* Define to 1 if you have the <strings.h> header file. */ | ||
865 | #undef HAVE_STRINGS_H | ||
866 | |||
867 | /* Define to 1 if you have the <string.h> header file. */ | ||
868 | #undef HAVE_STRING_H | ||
869 | |||
870 | /* Define to 1 if you have the `strlcat' function. */ | ||
871 | #undef HAVE_STRLCAT | ||
872 | |||
873 | /* Define to 1 if you have the `strlcpy' function. */ | ||
874 | #undef HAVE_STRLCPY | ||
875 | |||
876 | /* Define to 1 if you have the `strmode' function. */ | ||
877 | #undef HAVE_STRMODE | ||
878 | |||
879 | /* Define to 1 if you have the `strnvis' function. */ | ||
880 | #undef HAVE_STRNVIS | ||
881 | |||
882 | /* Define to 1 if you have the `strsep' function. */ | ||
883 | #undef HAVE_STRSEP | ||
884 | |||
885 | /* Define to 1 if you have the `strtoll' function. */ | ||
886 | #undef HAVE_STRTOLL | ||
887 | |||
888 | /* Define to 1 if you have the `strtonum' function. */ | ||
889 | #undef HAVE_STRTONUM | ||
890 | |||
891 | /* Define to 1 if you have the `strtoul' function. */ | ||
892 | #undef HAVE_STRTOUL | ||
893 | |||
894 | /* define if you have struct addrinfo data type */ | ||
895 | #undef HAVE_STRUCT_ADDRINFO | ||
896 | |||
897 | /* define if you have struct in6_addr data type */ | ||
898 | #undef HAVE_STRUCT_IN6_ADDR | ||
899 | |||
900 | /* define if you have struct sockaddr_in6 data type */ | ||
901 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
902 | |||
903 | /* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */ | ||
904 | #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
905 | |||
906 | /* define if you have struct sockaddr_storage data type */ | ||
907 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
908 | |||
909 | /* Define to 1 if `st_blksize' is member of `struct stat'. */ | ||
910 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
911 | |||
912 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
913 | #undef HAVE_STRUCT_TIMESPEC | ||
914 | |||
915 | /* define if you have struct timeval */ | ||
916 | #undef HAVE_STRUCT_TIMEVAL | ||
917 | |||
918 | /* Define to 1 if you have the `swap32' function. */ | ||
919 | #undef HAVE_SWAP32 | ||
920 | |||
921 | /* Define to 1 if you have the `sysconf' function. */ | ||
922 | #undef HAVE_SYSCONF | ||
923 | |||
924 | /* Define if you have syslen in utmpx.h */ | ||
925 | #undef HAVE_SYSLEN_IN_UTMPX | ||
926 | |||
927 | /* Define to 1 if you have the <sys/audit.h> header file. */ | ||
928 | #undef HAVE_SYS_AUDIT_H | ||
929 | |||
930 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
931 | #undef HAVE_SYS_BITYPES_H | ||
932 | |||
933 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
934 | #undef HAVE_SYS_BSDTTY_H | ||
935 | |||
936 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
937 | #undef HAVE_SYS_CDEFS_H | ||
938 | |||
939 | /* Define to 1 if you have the <sys/dir.h> header file. */ | ||
940 | #undef HAVE_SYS_DIR_H | ||
941 | |||
942 | /* Define if your system defines sys_errlist[] */ | ||
943 | #undef HAVE_SYS_ERRLIST | ||
944 | |||
945 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
946 | #undef HAVE_SYS_MMAN_H | ||
947 | |||
948 | /* Define to 1 if you have the <sys/mount.h> header file. */ | ||
949 | #undef HAVE_SYS_MOUNT_H | ||
950 | |||
951 | /* Define to 1 if you have the <sys/ndir.h> header file. */ | ||
952 | #undef HAVE_SYS_NDIR_H | ||
953 | |||
954 | /* Define if your system defines sys_nerr */ | ||
955 | #undef HAVE_SYS_NERR | ||
956 | |||
957 | /* Define to 1 if you have the <sys/poll.h> header file. */ | ||
958 | #undef HAVE_SYS_POLL_H | ||
959 | |||
960 | /* Define to 1 if you have the <sys/prctl.h> header file. */ | ||
961 | #undef HAVE_SYS_PRCTL_H | ||
962 | |||
963 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
964 | #undef HAVE_SYS_PSTAT_H | ||
965 | |||
966 | /* Define to 1 if you have the <sys/ptms.h> header file. */ | ||
967 | #undef HAVE_SYS_PTMS_H | ||
968 | |||
969 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
970 | #undef HAVE_SYS_SELECT_H | ||
971 | |||
972 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
973 | #undef HAVE_SYS_STATVFS_H | ||
974 | |||
975 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
976 | #undef HAVE_SYS_STAT_H | ||
977 | |||
978 | /* Define to 1 if you have the <sys/stream.h> header file. */ | ||
979 | #undef HAVE_SYS_STREAM_H | ||
980 | |||
981 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
982 | #undef HAVE_SYS_STROPTS_H | ||
983 | |||
984 | /* Define to 1 if you have the <sys/strtio.h> header file. */ | ||
985 | #undef HAVE_SYS_STRTIO_H | ||
986 | |||
987 | /* Force use of sys/syslog.h on Ultrix */ | ||
988 | #undef HAVE_SYS_SYSLOG_H | ||
989 | |||
990 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
991 | #undef HAVE_SYS_SYSMACROS_H | ||
992 | |||
993 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
994 | #undef HAVE_SYS_TIMERS_H | ||
995 | |||
996 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
997 | #undef HAVE_SYS_TIME_H | ||
998 | |||
999 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
1000 | #undef HAVE_SYS_TYPES_H | ||
1001 | |||
1002 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
1003 | #undef HAVE_SYS_UN_H | ||
1004 | |||
1005 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
1006 | #undef HAVE_TCGETPGRP | ||
1007 | |||
1008 | /* Define to 1 if you have the `tcsendbreak' function. */ | ||
1009 | #undef HAVE_TCSENDBREAK | ||
1010 | |||
1011 | /* Define to 1 if you have the `time' function. */ | ||
1012 | #undef HAVE_TIME | ||
1013 | |||
1014 | /* Define to 1 if you have the <time.h> header file. */ | ||
1015 | #undef HAVE_TIME_H | ||
1016 | |||
1017 | /* Define if you have ut_time in utmp.h */ | ||
1018 | #undef HAVE_TIME_IN_UTMP | ||
1019 | |||
1020 | /* Define if you have ut_time in utmpx.h */ | ||
1021 | #undef HAVE_TIME_IN_UTMPX | ||
1022 | |||
1023 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
1024 | #undef HAVE_TMPDIR_H | ||
1025 | |||
1026 | /* Define to 1 if you have the `truncate' function. */ | ||
1027 | #undef HAVE_TRUNCATE | ||
1028 | |||
1029 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
1030 | #undef HAVE_TTYENT_H | ||
1031 | |||
1032 | /* Define if you have ut_tv in utmp.h */ | ||
1033 | #undef HAVE_TV_IN_UTMP | ||
1034 | |||
1035 | /* Define if you have ut_tv in utmpx.h */ | ||
1036 | #undef HAVE_TV_IN_UTMPX | ||
1037 | |||
1038 | /* Define if you have ut_type in utmp.h */ | ||
1039 | #undef HAVE_TYPE_IN_UTMP | ||
1040 | |||
1041 | /* Define if you have ut_type in utmpx.h */ | ||
1042 | #undef HAVE_TYPE_IN_UTMPX | ||
1043 | |||
1044 | /* Define to 1 if you have the <ucred.h> header file. */ | ||
1045 | #undef HAVE_UCRED_H | ||
1046 | |||
1047 | /* define if you have uintxx_t data type */ | ||
1048 | #undef HAVE_UINTXX_T | ||
1049 | |||
1050 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
1051 | #undef HAVE_UNISTD_H | ||
1052 | |||
1053 | /* Define to 1 if you have the `unsetenv' function. */ | ||
1054 | #undef HAVE_UNSETENV | ||
1055 | |||
1056 | /* Define to 1 if the system has the type `unsigned long long'. */ | ||
1057 | #undef HAVE_UNSIGNED_LONG_LONG | ||
1058 | |||
1059 | /* Define to 1 if you have the `updwtmp' function. */ | ||
1060 | #undef HAVE_UPDWTMP | ||
1061 | |||
1062 | /* Define to 1 if you have the `updwtmpx' function. */ | ||
1063 | #undef HAVE_UPDWTMPX | ||
1064 | |||
1065 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
1066 | #undef HAVE_USERSEC_H | ||
1067 | |||
1068 | /* Define to 1 if you have the <util.h> header file. */ | ||
1069 | #undef HAVE_UTIL_H | ||
1070 | |||
1071 | /* Define to 1 if you have the `utimes' function. */ | ||
1072 | #undef HAVE_UTIMES | ||
1073 | |||
1074 | /* Define to 1 if you have the <utime.h> header file. */ | ||
1075 | #undef HAVE_UTIME_H | ||
1076 | |||
1077 | /* Define to 1 if you have the `utmpname' function. */ | ||
1078 | #undef HAVE_UTMPNAME | ||
1079 | |||
1080 | /* Define to 1 if you have the `utmpxname' function. */ | ||
1081 | #undef HAVE_UTMPXNAME | ||
1082 | |||
1083 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
1084 | #undef HAVE_UTMPX_H | ||
1085 | |||
1086 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
1087 | #undef HAVE_UTMP_H | ||
1088 | |||
1089 | /* define if you have u_char data type */ | ||
1090 | #undef HAVE_U_CHAR | ||
1091 | |||
1092 | /* define if you have u_int data type */ | ||
1093 | #undef HAVE_U_INT | ||
1094 | |||
1095 | /* define if you have u_int64_t data type */ | ||
1096 | #undef HAVE_U_INT64_T | ||
1097 | |||
1098 | /* define if you have u_intxx_t data type */ | ||
1099 | #undef HAVE_U_INTXX_T | ||
1100 | |||
1101 | /* Define to 1 if you have the `vasprintf' function. */ | ||
1102 | #undef HAVE_VASPRINTF | ||
1103 | |||
1104 | /* Define if va_copy exists */ | ||
1105 | #undef HAVE_VA_COPY | ||
1106 | |||
1107 | /* Define to 1 if you have the `vhangup' function. */ | ||
1108 | #undef HAVE_VHANGUP | ||
1109 | |||
1110 | /* Define to 1 if you have the <vis.h> header file. */ | ||
1111 | #undef HAVE_VIS_H | ||
1112 | |||
1113 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
1114 | #undef HAVE_VSNPRINTF | ||
1115 | |||
1116 | /* Define to 1 if you have the `waitpid' function. */ | ||
1117 | #undef HAVE_WAITPID | ||
1118 | |||
1119 | /* Define to 1 if you have the `_getlong' function. */ | ||
1120 | #undef HAVE__GETLONG | ||
1121 | |||
1122 | /* Define to 1 if you have the `_getpty' function. */ | ||
1123 | #undef HAVE__GETPTY | ||
1124 | |||
1125 | /* Define to 1 if you have the `_getshort' function. */ | ||
1126 | #undef HAVE__GETSHORT | ||
1127 | |||
1128 | /* Define if you have struct __res_state _res as an extern */ | ||
1129 | #undef HAVE__RES_EXTERN | ||
1130 | |||
1131 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
1132 | #undef HAVE___B64_NTOP | ||
1133 | |||
1134 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
1135 | #undef HAVE___B64_PTON | ||
1136 | |||
1137 | /* Define if compiler implements __FUNCTION__ */ | ||
1138 | #undef HAVE___FUNCTION__ | ||
1139 | |||
1140 | /* Define if libc defines __progname */ | ||
1141 | #undef HAVE___PROGNAME | ||
1142 | |||
1143 | /* Fields in struct sockaddr_storage */ | ||
1144 | #undef HAVE___SS_FAMILY_IN_SS | ||
1145 | |||
1146 | /* Define if __va_copy exists */ | ||
1147 | #undef HAVE___VA_COPY | ||
1148 | |||
1149 | /* Define if compiler implements __func__ */ | ||
1150 | #undef HAVE___func__ | ||
1151 | |||
1152 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
1153 | #undef HEIMDAL | ||
1154 | |||
1155 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
1156 | #undef IPADDR_IN_DISPLAY | ||
1157 | |||
1158 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
1159 | #undef IPV4_IN_IPV6 | ||
1160 | |||
1161 | /* Define if your system choked on IP TOS setting */ | ||
1162 | #undef IP_TOS_IS_BROKEN | ||
1163 | |||
1164 | /* Define if you want Kerberos 5 support */ | ||
1165 | #undef KRB5 | ||
1166 | |||
1167 | /* Define if pututxline updates lastlog too */ | ||
1168 | #undef LASTLOG_WRITE_PUTUTXLINE | ||
1169 | |||
1170 | /* Define if you want TCP Wrappers support */ | ||
1171 | #undef LIBWRAP | ||
1172 | |||
1173 | /* Define to whatever link() returns for "not supported" if it doesn't return | ||
1174 | EOPNOTSUPP. */ | ||
1175 | #undef LINK_OPNOTSUPP_ERRNO | ||
1176 | |||
1177 | /* max value of long long calculated by configure */ | ||
1178 | #undef LLONG_MAX | ||
1179 | |||
1180 | /* min value of long long calculated by configure */ | ||
1181 | #undef LLONG_MIN | ||
1182 | |||
1183 | /* Account locked with pw(1) */ | ||
1184 | #undef LOCKED_PASSWD_PREFIX | ||
1185 | |||
1186 | /* String used in /etc/passwd to denote locked account */ | ||
1187 | #undef LOCKED_PASSWD_STRING | ||
1188 | |||
1189 | /* String used in /etc/passwd to denote locked account */ | ||
1190 | #undef LOCKED_PASSWD_SUBSTR | ||
1191 | |||
1192 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
1193 | #undef LOGIN_NEEDS_TERM | ||
1194 | |||
1195 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
1196 | #undef LOGIN_NEEDS_UTMPX | ||
1197 | |||
1198 | /* Define if your login program cannot handle end of options ("--") */ | ||
1199 | #undef LOGIN_NO_ENDOPT | ||
1200 | |||
1201 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) | ||
1202 | from environment and PATH */ | ||
1203 | #undef LOGIN_PROGRAM_FALLBACK | ||
1204 | |||
1205 | /* Set this to your mail directory if you don't have maillock.h */ | ||
1206 | #undef MAIL_DIRECTORY | ||
1207 | |||
1208 | /* Define on *nto-qnx systems */ | ||
1209 | #undef MISSING_FD_MASK | ||
1210 | |||
1211 | /* Define on *nto-qnx systems */ | ||
1212 | #undef MISSING_HOWMANY | ||
1213 | |||
1214 | /* Define on *nto-qnx systems */ | ||
1215 | #undef MISSING_NFDBITS | ||
1216 | |||
1217 | /* Need setpgrp to acquire controlling tty */ | ||
1218 | #undef NEED_SETPGRP | ||
1219 | |||
1220 | /* Define if the concept of ports only accessible to superusers isn't known */ | ||
1221 | #undef NO_IPPORT_RESERVED_CONCEPT | ||
1222 | |||
1223 | /* Define if you don't want to use lastlog in session.c */ | ||
1224 | #undef NO_SSH_LASTLOG | ||
1225 | |||
1226 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
1227 | #undef NO_X11_UNIX_SOCKETS | ||
1228 | |||
1229 | /* libcrypto is missing AES 192 and 256 bit functions */ | ||
1230 | #undef OPENSSL_LOBOTOMISED_AES | ||
1231 | |||
1232 | /* Define if you want OpenSSL's internally seeded PRNG only */ | ||
1233 | #undef OPENSSL_PRNG_ONLY | ||
1234 | |||
1235 | /* Define to the address where bug reports for this package should be sent. */ | ||
1236 | #undef PACKAGE_BUGREPORT | ||
1237 | |||
1238 | /* Define to the full name of this package. */ | ||
1239 | #undef PACKAGE_NAME | ||
1240 | |||
1241 | /* Define to the full name and version of this package. */ | ||
1242 | #undef PACKAGE_STRING | ||
1243 | |||
1244 | /* Define to the one symbol short name of this package. */ | ||
1245 | #undef PACKAGE_TARNAME | ||
1246 | |||
1247 | /* Define to the version of this package. */ | ||
1248 | #undef PACKAGE_VERSION | ||
1249 | |||
1250 | /* Define if you are using Solaris-derived PAM which passes pam_messages to | ||
1251 | the conversation function with an extra level of indirection */ | ||
1252 | #undef PAM_SUN_CODEBASE | ||
1253 | |||
1254 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
1255 | #undef PAM_TTY_KLUDGE | ||
1256 | |||
1257 | /* must supply username to passwd */ | ||
1258 | #undef PASSWD_NEEDS_USERNAME | ||
1259 | |||
1260 | /* Port number of PRNGD/EGD random number socket */ | ||
1261 | #undef PRNGD_PORT | ||
1262 | |||
1263 | /* Location of PRNGD/EGD random number socket */ | ||
1264 | #undef PRNGD_SOCKET | ||
1265 | |||
1266 | /* read(1) can return 0 for a non-closed fd */ | ||
1267 | #undef PTY_ZEROREAD | ||
1268 | |||
1269 | /* Define if your platform breaks doing a seteuid before a setuid */ | ||
1270 | #undef SETEUID_BREAKS_SETUID | ||
1271 | |||
1272 | /* The size of `char', as computed by sizeof. */ | ||
1273 | #undef SIZEOF_CHAR | ||
1274 | |||
1275 | /* The size of `int', as computed by sizeof. */ | ||
1276 | #undef SIZEOF_INT | ||
1277 | |||
1278 | /* The size of `long int', as computed by sizeof. */ | ||
1279 | #undef SIZEOF_LONG_INT | ||
1280 | |||
1281 | /* The size of `long long int', as computed by sizeof. */ | ||
1282 | #undef SIZEOF_LONG_LONG_INT | ||
1283 | |||
1284 | /* The size of `short int', as computed by sizeof. */ | ||
1285 | #undef SIZEOF_SHORT_INT | ||
1286 | |||
1287 | /* Define if you want S/Key support */ | ||
1288 | #undef SKEY | ||
1289 | |||
1290 | /* Define if your skeychallenge() function takes 4 arguments (NetBSD) */ | ||
1291 | #undef SKEYCHALLENGE_4ARG | ||
1292 | |||
1293 | /* Define if you want smartcard support */ | ||
1294 | #undef SMARTCARD | ||
1295 | |||
1296 | /* Define as const if snprintf() can declare const char *fmt */ | ||
1297 | #undef SNPRINTF_CONST | ||
1298 | |||
1299 | /* Define to a Set Process Title type if your system is supported by | ||
1300 | bsd-setproctitle.c */ | ||
1301 | #undef SPT_TYPE | ||
1302 | |||
1303 | /* Define if sshd somehow reacquires a controlling TTY after setsid() */ | ||
1304 | #undef SSHD_ACQUIRES_CTTY | ||
1305 | |||
1306 | /* Define if pam_chauthtok wants real uid set to the unpriv'ed user */ | ||
1307 | #undef SSHPAM_CHAUTHTOK_NEEDS_RUID | ||
1308 | |||
1309 | /* Use audit debugging module */ | ||
1310 | #undef SSH_AUDIT_EVENTS | ||
1311 | |||
1312 | /* non-privileged user for privilege separation */ | ||
1313 | #undef SSH_PRIVSEP_USER | ||
1314 | |||
1315 | /* Use tunnel device compatibility to OpenBSD */ | ||
1316 | #undef SSH_TUN_COMPAT_AF | ||
1317 | |||
1318 | /* Open tunnel devices the FreeBSD way */ | ||
1319 | #undef SSH_TUN_FREEBSD | ||
1320 | |||
1321 | /* Open tunnel devices the Linux tun/tap way */ | ||
1322 | #undef SSH_TUN_LINUX | ||
1323 | |||
1324 | /* No layer 2 tunnel support */ | ||
1325 | #undef SSH_TUN_NO_L2 | ||
1326 | |||
1327 | /* Open tunnel devices the OpenBSD way */ | ||
1328 | #undef SSH_TUN_OPENBSD | ||
1329 | |||
1330 | /* Prepend the address family to IP tunnel traffic */ | ||
1331 | #undef SSH_TUN_PREPEND_AF | ||
1332 | |||
1333 | /* Define to 1 if you have the ANSI C header files. */ | ||
1334 | #undef STDC_HEADERS | ||
1335 | |||
1336 | /* Define if you want a different $PATH for the superuser */ | ||
1337 | #undef SUPERUSER_PATH | ||
1338 | |||
1339 | /* syslog_r function is safe to use in in a signal handler */ | ||
1340 | #undef SYSLOG_R_SAFE_IN_SIGHAND | ||
1341 | |||
1342 | /* Support passwords > 8 chars */ | ||
1343 | #undef UNIXWARE_LONG_PASSWORDS | ||
1344 | |||
1345 | /* Specify default $PATH */ | ||
1346 | #undef USER_PATH | ||
1347 | |||
1348 | /* Define this if you want to use libkafs' AFS support */ | ||
1349 | #undef USE_AFS | ||
1350 | |||
1351 | /* Use BSM audit module */ | ||
1352 | #undef USE_BSM_AUDIT | ||
1353 | |||
1354 | /* Use btmp to log bad logins */ | ||
1355 | #undef USE_BTMP | ||
1356 | |||
1357 | /* Use libedit for sftp */ | ||
1358 | #undef USE_LIBEDIT | ||
1359 | |||
1360 | /* Define if you want smartcard support using OpenSC */ | ||
1361 | #undef USE_OPENSC | ||
1362 | |||
1363 | /* Enable OpenSSL engine support */ | ||
1364 | #undef USE_OPENSSL_ENGINE | ||
1365 | |||
1366 | /* Define if you want to enable PAM support */ | ||
1367 | #undef USE_PAM | ||
1368 | |||
1369 | /* Use PIPES instead of a socketpair() */ | ||
1370 | #undef USE_PIPES | ||
1371 | |||
1372 | /* Define if you want smartcard support using sectok */ | ||
1373 | #undef USE_SECTOK | ||
1374 | |||
1375 | /* Define if you have Solaris process contracts */ | ||
1376 | #undef USE_SOLARIS_PROCESS_CONTRACTS | ||
1377 | |||
1378 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
1379 | #undef WITH_ABBREV_NO_TTY | ||
1380 | |||
1381 | /* Define if you want to enable AIX4's authenticate function */ | ||
1382 | #undef WITH_AIXAUTHENTICATE | ||
1383 | |||
1384 | /* Define if you have/want arrays (cluster-wide session managment, not C | ||
1385 | arrays) */ | ||
1386 | #undef WITH_IRIX_ARRAY | ||
1387 | |||
1388 | /* Define if you want IRIX audit trails */ | ||
1389 | #undef WITH_IRIX_AUDIT | ||
1390 | |||
1391 | /* Define if you want IRIX kernel jobs */ | ||
1392 | #undef WITH_IRIX_JOBS | ||
1393 | |||
1394 | /* Define if you want IRIX project management */ | ||
1395 | #undef WITH_IRIX_PROJECT | ||
1396 | |||
1397 | /* Define if you want SELinux support. */ | ||
1398 | #undef WITH_SELINUX | ||
1399 | |||
1400 | /* Define to 1 if your processor stores words with the most significant byte | ||
1401 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
1402 | #undef WORDS_BIGENDIAN | ||
1403 | |||
1404 | /* Define if xauth is found in your path */ | ||
1405 | #undef XAUTH_PATH | ||
1406 | |||
1407 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
1408 | #undef _FILE_OFFSET_BITS | ||
1409 | |||
1410 | /* Define for large files, on AIX-style hosts. */ | ||
1411 | #undef _LARGE_FILES | ||
1412 | |||
1413 | /* log for bad login attempts */ | ||
1414 | #undef _PATH_BTMP | ||
1415 | |||
1416 | /* Full path of your "passwd" program */ | ||
1417 | #undef _PATH_PASSWD_PROG | ||
1418 | |||
1419 | /* Specify location of ssh.pid */ | ||
1420 | #undef _PATH_SSH_PIDDIR | ||
1421 | |||
1422 | /* Define if we don't have struct __res_state in resolv.h */ | ||
1423 | #undef __res_state | ||
1424 | |||
1425 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
1426 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
1427 | #ifndef __cplusplus | ||
1428 | #undef inline | ||
1429 | #endif | ||
1430 | |||
1431 | /* type to use in place of socklen_t if not defined */ | ||
1432 | #undef socklen_t | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..0b757c6a4 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,30605 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.415 . | ||
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 | LIBEDIT | ||
697 | INSTALL_SSH_RAND_HELPER | ||
698 | SSH_PRIVSEP_USER | ||
699 | PROG_LS | ||
700 | PROG_NETSTAT | ||
701 | PROG_ARP | ||
702 | PROG_IFCONFIG | ||
703 | PROG_JSTAT | ||
704 | PROG_PS | ||
705 | PROG_SAR | ||
706 | PROG_W | ||
707 | PROG_WHO | ||
708 | PROG_LAST | ||
709 | PROG_LASTLOG | ||
710 | PROG_DF | ||
711 | PROG_VMSTAT | ||
712 | PROG_UPTIME | ||
713 | PROG_IPCS | ||
714 | PROG_TAIL | ||
715 | INSTALL_SSH_PRNG_CMDS | ||
716 | OPENSC_CONFIG | ||
717 | PRIVSEP_PATH | ||
718 | xauth_path | ||
719 | STRIP_OPT | ||
720 | XAUTH_PATH | ||
721 | NROFF | ||
722 | MANTYPE | ||
723 | mansubdir | ||
724 | user_path | ||
725 | piddir | ||
726 | TEST_SSH_IPV6 | ||
727 | LIBOBJS | ||
728 | LTLIBOBJS' | ||
729 | ac_subst_files='' | ||
730 | ac_precious_vars='build_alias | ||
731 | host_alias | ||
732 | target_alias | ||
733 | CC | ||
734 | CFLAGS | ||
735 | LDFLAGS | ||
736 | LIBS | ||
737 | CPPFLAGS | ||
738 | CPP' | ||
739 | |||
740 | |||
741 | # Initialize some variables set by options. | ||
742 | ac_init_help= | ||
743 | ac_init_version=false | ||
744 | # The variables have the same names as the options, with | ||
745 | # dashes changed to underlines. | ||
746 | cache_file=/dev/null | ||
747 | exec_prefix=NONE | ||
748 | no_create= | ||
749 | no_recursion= | ||
750 | prefix=NONE | ||
751 | program_prefix=NONE | ||
752 | program_suffix=NONE | ||
753 | program_transform_name=s,x,x, | ||
754 | silent= | ||
755 | site= | ||
756 | srcdir= | ||
757 | verbose= | ||
758 | x_includes=NONE | ||
759 | x_libraries=NONE | ||
760 | |||
761 | # Installation directory options. | ||
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
763 | # and all the variables that are supposed to be based on exec_prefix | ||
764 | # by default will actually change. | ||
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
766 | # (The list follows the same order as the GNU Coding Standards.) | ||
767 | bindir='${exec_prefix}/bin' | ||
768 | sbindir='${exec_prefix}/sbin' | ||
769 | libexecdir='${exec_prefix}/libexec' | ||
770 | datarootdir='${prefix}/share' | ||
771 | datadir='${datarootdir}' | ||
772 | sysconfdir='${prefix}/etc' | ||
773 | sharedstatedir='${prefix}/com' | ||
774 | localstatedir='${prefix}/var' | ||
775 | includedir='${prefix}/include' | ||
776 | oldincludedir='/usr/include' | ||
777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
778 | infodir='${datarootdir}/info' | ||
779 | htmldir='${docdir}' | ||
780 | dvidir='${docdir}' | ||
781 | pdfdir='${docdir}' | ||
782 | psdir='${docdir}' | ||
783 | libdir='${exec_prefix}/lib' | ||
784 | localedir='${datarootdir}/locale' | ||
785 | mandir='${datarootdir}/man' | ||
786 | |||
787 | ac_prev= | ||
788 | ac_dashdash= | ||
789 | for ac_option | ||
790 | do | ||
791 | # If the previous option needs an argument, assign it. | ||
792 | if test -n "$ac_prev"; then | ||
793 | eval $ac_prev=\$ac_option | ||
794 | ac_prev= | ||
795 | continue | ||
796 | fi | ||
797 | |||
798 | case $ac_option in | ||
799 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
800 | *) ac_optarg=yes ;; | ||
801 | esac | ||
802 | |||
803 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
804 | |||
805 | case $ac_dashdash$ac_option in | ||
806 | --) | ||
807 | ac_dashdash=yes ;; | ||
808 | |||
809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
810 | ac_prev=bindir ;; | ||
811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
812 | bindir=$ac_optarg ;; | ||
813 | |||
814 | -build | --build | --buil | --bui | --bu) | ||
815 | ac_prev=build_alias ;; | ||
816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
817 | build_alias=$ac_optarg ;; | ||
818 | |||
819 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
820 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
821 | ac_prev=cache_file ;; | ||
822 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
823 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
824 | cache_file=$ac_optarg ;; | ||
825 | |||
826 | --config-cache | -C) | ||
827 | cache_file=config.cache ;; | ||
828 | |||
829 | -datadir | --datadir | --datadi | --datad) | ||
830 | ac_prev=datadir ;; | ||
831 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
832 | datadir=$ac_optarg ;; | ||
833 | |||
834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
835 | | --dataroo | --dataro | --datar) | ||
836 | ac_prev=datarootdir ;; | ||
837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
839 | datarootdir=$ac_optarg ;; | ||
840 | |||
841 | -disable-* | --disable-*) | ||
842 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
843 | # Reject names that are not valid shell variable names. | ||
844 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
845 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
846 | { (exit 1); exit 1; }; } | ||
847 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
848 | eval enable_$ac_feature=no ;; | ||
849 | |||
850 | -docdir | --docdir | --docdi | --doc | --do) | ||
851 | ac_prev=docdir ;; | ||
852 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
853 | docdir=$ac_optarg ;; | ||
854 | |||
855 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
856 | ac_prev=dvidir ;; | ||
857 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
858 | dvidir=$ac_optarg ;; | ||
859 | |||
860 | -enable-* | --enable-*) | ||
861 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
862 | # Reject names that are not valid shell variable names. | ||
863 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
864 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
865 | { (exit 1); exit 1; }; } | ||
866 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
867 | eval enable_$ac_feature=\$ac_optarg ;; | ||
868 | |||
869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
871 | | --exec | --exe | --ex) | ||
872 | ac_prev=exec_prefix ;; | ||
873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
875 | | --exec=* | --exe=* | --ex=*) | ||
876 | exec_prefix=$ac_optarg ;; | ||
877 | |||
878 | -gas | --gas | --ga | --g) | ||
879 | # Obsolete; use --with-gas. | ||
880 | with_gas=yes ;; | ||
881 | |||
882 | -help | --help | --hel | --he | -h) | ||
883 | ac_init_help=long ;; | ||
884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
885 | ac_init_help=recursive ;; | ||
886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
887 | ac_init_help=short ;; | ||
888 | |||
889 | -host | --host | --hos | --ho) | ||
890 | ac_prev=host_alias ;; | ||
891 | -host=* | --host=* | --hos=* | --ho=*) | ||
892 | host_alias=$ac_optarg ;; | ||
893 | |||
894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
895 | ac_prev=htmldir ;; | ||
896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
897 | | --ht=*) | ||
898 | htmldir=$ac_optarg ;; | ||
899 | |||
900 | -includedir | --includedir | --includedi | --included | --include \ | ||
901 | | --includ | --inclu | --incl | --inc) | ||
902 | ac_prev=includedir ;; | ||
903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
904 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
905 | includedir=$ac_optarg ;; | ||
906 | |||
907 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
908 | ac_prev=infodir ;; | ||
909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
910 | infodir=$ac_optarg ;; | ||
911 | |||
912 | -libdir | --libdir | --libdi | --libd) | ||
913 | ac_prev=libdir ;; | ||
914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
915 | libdir=$ac_optarg ;; | ||
916 | |||
917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
918 | | --libexe | --libex | --libe) | ||
919 | ac_prev=libexecdir ;; | ||
920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
921 | | --libexe=* | --libex=* | --libe=*) | ||
922 | libexecdir=$ac_optarg ;; | ||
923 | |||
924 | -localedir | --localedir | --localedi | --localed | --locale) | ||
925 | ac_prev=localedir ;; | ||
926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
927 | localedir=$ac_optarg ;; | ||
928 | |||
929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
930 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
931 | ac_prev=localstatedir ;; | ||
932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
934 | localstatedir=$ac_optarg ;; | ||
935 | |||
936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
937 | ac_prev=mandir ;; | ||
938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
939 | mandir=$ac_optarg ;; | ||
940 | |||
941 | -nfp | --nfp | --nf) | ||
942 | # Obsolete; use --without-fp. | ||
943 | with_fp=no ;; | ||
944 | |||
945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
946 | | --no-cr | --no-c | -n) | ||
947 | no_create=yes ;; | ||
948 | |||
949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
951 | no_recursion=yes ;; | ||
952 | |||
953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
955 | | --oldin | --oldi | --old | --ol | --o) | ||
956 | ac_prev=oldincludedir ;; | ||
957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
960 | oldincludedir=$ac_optarg ;; | ||
961 | |||
962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
963 | ac_prev=prefix ;; | ||
964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
965 | prefix=$ac_optarg ;; | ||
966 | |||
967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
968 | | --program-pre | --program-pr | --program-p) | ||
969 | ac_prev=program_prefix ;; | ||
970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
972 | program_prefix=$ac_optarg ;; | ||
973 | |||
974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
975 | | --program-suf | --program-su | --program-s) | ||
976 | ac_prev=program_suffix ;; | ||
977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
979 | program_suffix=$ac_optarg ;; | ||
980 | |||
981 | -program-transform-name | --program-transform-name \ | ||
982 | | --program-transform-nam | --program-transform-na \ | ||
983 | | --program-transform-n | --program-transform- \ | ||
984 | | --program-transform | --program-transfor \ | ||
985 | | --program-transfo | --program-transf \ | ||
986 | | --program-trans | --program-tran \ | ||
987 | | --progr-tra | --program-tr | --program-t) | ||
988 | ac_prev=program_transform_name ;; | ||
989 | -program-transform-name=* | --program-transform-name=* \ | ||
990 | | --program-transform-nam=* | --program-transform-na=* \ | ||
991 | | --program-transform-n=* | --program-transform-=* \ | ||
992 | | --program-transform=* | --program-transfor=* \ | ||
993 | | --program-transfo=* | --program-transf=* \ | ||
994 | | --program-trans=* | --program-tran=* \ | ||
995 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
996 | program_transform_name=$ac_optarg ;; | ||
997 | |||
998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
999 | ac_prev=pdfdir ;; | ||
1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1001 | pdfdir=$ac_optarg ;; | ||
1002 | |||
1003 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1004 | ac_prev=psdir ;; | ||
1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1006 | psdir=$ac_optarg ;; | ||
1007 | |||
1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1009 | | -silent | --silent | --silen | --sile | --sil) | ||
1010 | silent=yes ;; | ||
1011 | |||
1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1013 | ac_prev=sbindir ;; | ||
1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1015 | | --sbi=* | --sb=*) | ||
1016 | sbindir=$ac_optarg ;; | ||
1017 | |||
1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1020 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1021 | | --sha | --sh) | ||
1022 | ac_prev=sharedstatedir ;; | ||
1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1026 | | --sha=* | --sh=*) | ||
1027 | sharedstatedir=$ac_optarg ;; | ||
1028 | |||
1029 | -site | --site | --sit) | ||
1030 | ac_prev=site ;; | ||
1031 | -site=* | --site=* | --sit=*) | ||
1032 | site=$ac_optarg ;; | ||
1033 | |||
1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1035 | ac_prev=srcdir ;; | ||
1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1037 | srcdir=$ac_optarg ;; | ||
1038 | |||
1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1040 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1041 | ac_prev=sysconfdir ;; | ||
1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1044 | sysconfdir=$ac_optarg ;; | ||
1045 | |||
1046 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1047 | ac_prev=target_alias ;; | ||
1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1049 | target_alias=$ac_optarg ;; | ||
1050 | |||
1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1052 | verbose=yes ;; | ||
1053 | |||
1054 | -version | --version | --versio | --versi | --vers | -V) | ||
1055 | ac_init_version=: ;; | ||
1056 | |||
1057 | -with-* | --with-*) | ||
1058 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1059 | # Reject names that are not valid shell variable names. | ||
1060 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1062 | { (exit 1); exit 1; }; } | ||
1063 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1064 | eval with_$ac_package=\$ac_optarg ;; | ||
1065 | |||
1066 | -without-* | --without-*) | ||
1067 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1068 | # Reject names that are not valid shell variable names. | ||
1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1071 | { (exit 1); exit 1; }; } | ||
1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1073 | eval with_$ac_package=no ;; | ||
1074 | |||
1075 | --x) | ||
1076 | # Obsolete; use --with-x. | ||
1077 | with_x=yes ;; | ||
1078 | |||
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1080 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1081 | ac_prev=x_includes ;; | ||
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1084 | x_includes=$ac_optarg ;; | ||
1085 | |||
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1088 | ac_prev=x_libraries ;; | ||
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1091 | x_libraries=$ac_optarg ;; | ||
1092 | |||
1093 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1094 | Try \`$0 --help' for more information." >&2 | ||
1095 | { (exit 1); exit 1; }; } | ||
1096 | ;; | ||
1097 | |||
1098 | *=*) | ||
1099 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1100 | # Reject names that are not valid shell variable names. | ||
1101 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1102 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1103 | { (exit 1); exit 1; }; } | ||
1104 | eval $ac_envvar=\$ac_optarg | ||
1105 | export $ac_envvar ;; | ||
1106 | |||
1107 | *) | ||
1108 | # FIXME: should be removed in autoconf 3.0. | ||
1109 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1111 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1113 | ;; | ||
1114 | |||
1115 | esac | ||
1116 | done | ||
1117 | |||
1118 | if test -n "$ac_prev"; then | ||
1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1120 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1121 | { (exit 1); exit 1; }; } | ||
1122 | fi | ||
1123 | |||
1124 | # Be sure to have absolute directory names. | ||
1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1126 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1128 | libdir localedir mandir | ||
1129 | do | ||
1130 | eval ac_val=\$$ac_var | ||
1131 | case $ac_val in | ||
1132 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1133 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1134 | esac | ||
1135 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1136 | { (exit 1); exit 1; }; } | ||
1137 | done | ||
1138 | |||
1139 | # There might be people who depend on the old broken behavior: `$host' | ||
1140 | # used to hold the argument of --host etc. | ||
1141 | # FIXME: To remove some day. | ||
1142 | build=$build_alias | ||
1143 | host=$host_alias | ||
1144 | target=$target_alias | ||
1145 | |||
1146 | # FIXME: To remove some day. | ||
1147 | if test "x$host_alias" != x; then | ||
1148 | if test "x$build_alias" = x; then | ||
1149 | cross_compiling=maybe | ||
1150 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1151 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1152 | elif test "x$build_alias" != "x$host_alias"; then | ||
1153 | cross_compiling=yes | ||
1154 | fi | ||
1155 | fi | ||
1156 | |||
1157 | ac_tool_prefix= | ||
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1159 | |||
1160 | test "$silent" = yes && exec 6>/dev/null | ||
1161 | |||
1162 | |||
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1164 | ac_ls_di=`ls -di .` && | ||
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1166 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1167 | { (exit 1); exit 1; }; } | ||
1168 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1169 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1170 | { (exit 1); exit 1; }; } | ||
1171 | |||
1172 | |||
1173 | # Find the source files, if location was not specified. | ||
1174 | if test -z "$srcdir"; then | ||
1175 | ac_srcdir_defaulted=yes | ||
1176 | # Try the directory containing this script, then the parent directory. | ||
1177 | ac_confdir=`$as_dirname -- "$0" || | ||
1178 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1179 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1180 | X"$0" : 'X\(//\)$' \| \ | ||
1181 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1182 | echo X"$0" | | ||
1183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1184 | s//\1/ | ||
1185 | q | ||
1186 | } | ||
1187 | /^X\(\/\/\)[^/].*/{ | ||
1188 | s//\1/ | ||
1189 | q | ||
1190 | } | ||
1191 | /^X\(\/\/\)$/{ | ||
1192 | s//\1/ | ||
1193 | q | ||
1194 | } | ||
1195 | /^X\(\/\).*/{ | ||
1196 | s//\1/ | ||
1197 | q | ||
1198 | } | ||
1199 | s/.*/./; q'` | ||
1200 | srcdir=$ac_confdir | ||
1201 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1202 | srcdir=.. | ||
1203 | fi | ||
1204 | else | ||
1205 | ac_srcdir_defaulted=no | ||
1206 | fi | ||
1207 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1208 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1209 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1210 | { (exit 1); exit 1; }; } | ||
1211 | fi | ||
1212 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1213 | ac_abs_confdir=`( | ||
1214 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1215 | { (exit 1); exit 1; }; } | ||
1216 | pwd)` | ||
1217 | # When building in place, set srcdir=. | ||
1218 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1219 | srcdir=. | ||
1220 | fi | ||
1221 | # Remove unnecessary trailing slashes from srcdir. | ||
1222 | # Double slashes in file names in object file debugging info | ||
1223 | # mess up M-x gdb in Emacs. | ||
1224 | case $srcdir in | ||
1225 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1226 | esac | ||
1227 | for ac_var in $ac_precious_vars; do | ||
1228 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1229 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1230 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1231 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1232 | done | ||
1233 | |||
1234 | # | ||
1235 | # Report the --help message. | ||
1236 | # | ||
1237 | if test "$ac_init_help" = "long"; then | ||
1238 | # Omit some internal or obsolete options to make the list less imposing. | ||
1239 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1240 | cat <<_ACEOF | ||
1241 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1242 | |||
1243 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1244 | |||
1245 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1246 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1247 | |||
1248 | Defaults for the options are specified in brackets. | ||
1249 | |||
1250 | Configuration: | ||
1251 | -h, --help display this help and exit | ||
1252 | --help=short display options specific to this package | ||
1253 | --help=recursive display the short help of all the included packages | ||
1254 | -V, --version display version information and exit | ||
1255 | -q, --quiet, --silent do not print \`checking...' messages | ||
1256 | --cache-file=FILE cache test results in FILE [disabled] | ||
1257 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1258 | -n, --no-create do not create output files | ||
1259 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1260 | |||
1261 | Installation directories: | ||
1262 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1263 | [$ac_default_prefix] | ||
1264 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1265 | [PREFIX] | ||
1266 | |||
1267 | By default, \`make install' will install all the files in | ||
1268 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1269 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1270 | for instance \`--prefix=\$HOME'. | ||
1271 | |||
1272 | For better control, use the options below. | ||
1273 | |||
1274 | Fine tuning of the installation directories: | ||
1275 | --bindir=DIR user executables [EPREFIX/bin] | ||
1276 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1277 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1278 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1279 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1280 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1281 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1282 | --includedir=DIR C header files [PREFIX/include] | ||
1283 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1284 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1285 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1286 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1287 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1288 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1289 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1290 | --htmldir=DIR html documentation [DOCDIR] | ||
1291 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1292 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1293 | --psdir=DIR ps documentation [DOCDIR] | ||
1294 | _ACEOF | ||
1295 | |||
1296 | cat <<\_ACEOF | ||
1297 | |||
1298 | System types: | ||
1299 | --build=BUILD configure for building on BUILD [guessed] | ||
1300 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1301 | _ACEOF | ||
1302 | fi | ||
1303 | |||
1304 | if test -n "$ac_init_help"; then | ||
1305 | case $ac_init_help in | ||
1306 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1307 | esac | ||
1308 | cat <<\_ACEOF | ||
1309 | |||
1310 | Optional Features: | ||
1311 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1312 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1313 | --disable-largefile omit support for large files | ||
1314 | --disable-strip Disable calling strip(1) on install | ||
1315 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1316 | --disable-lastlog disable use of lastlog even if detected no | ||
1317 | --disable-utmp disable use of utmp even if detected no | ||
1318 | --disable-utmpx disable use of utmpx even if detected no | ||
1319 | --disable-wtmp disable use of wtmp even if detected no | ||
1320 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1321 | --disable-libutil disable use of libutil (login() etc.) no | ||
1322 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1323 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1324 | |||
1325 | Optional Packages: | ||
1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1328 | --without-stackprotect Don't use compiler's stack protection | ||
1329 | --without-rpath Disable auto-added -R linker paths | ||
1330 | --with-cflags Specify additional flags to pass to compiler | ||
1331 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1332 | --with-ldflags Specify additional flags to pass to linker | ||
1333 | --with-libs Specify additional libraries to link with | ||
1334 | --with-Werror Build main code with -Werror | ||
1335 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1336 | --with-osfsia Enable Digital Unix SIA | ||
1337 | --with-zlib=PATH Use zlib in PATH | ||
1338 | --without-zlib-version-check Disable zlib version check | ||
1339 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1340 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1341 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1342 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
1343 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1344 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1345 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1346 | --with-pam Enable PAM support | ||
1347 | --with-rand-helper Use subprocess to gather strong randomness | ||
1348 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1349 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1350 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1351 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1352 | --with-sectok Enable smartcard support using libsectok | ||
1353 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
1354 | --with-selinux Enable SELinux support | ||
1355 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1356 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1357 | --with-xauth=PATH Specify path to xauth program | ||
1358 | --with-mantype=man|cat|doc Set man page type | ||
1359 | --with-md5-passwords Enable use of MD5 passwords | ||
1360 | --without-shadow Disable shadow password support | ||
1361 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1362 | --with-default-path= Specify default \$PATH environment for server | ||
1363 | --with-superuser-path= Specify different path for super-user | ||
1364 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1365 | --with-bsd-auth Enable BSD auth support | ||
1366 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1367 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1368 | |||
1369 | Some influential environment variables: | ||
1370 | CC C compiler command | ||
1371 | CFLAGS C compiler flags | ||
1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1373 | nonstandard directory <lib dir> | ||
1374 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1375 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1376 | you have headers in a nonstandard directory <include dir> | ||
1377 | CPP C preprocessor | ||
1378 | |||
1379 | Use these variables to override the choices made by `configure' or to help | ||
1380 | it to find libraries and programs with nonstandard names/locations. | ||
1381 | |||
1382 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1383 | _ACEOF | ||
1384 | ac_status=$? | ||
1385 | fi | ||
1386 | |||
1387 | if test "$ac_init_help" = "recursive"; then | ||
1388 | # If there are subdirs, report their specific --help. | ||
1389 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1390 | test -d "$ac_dir" || continue | ||
1391 | ac_builddir=. | ||
1392 | |||
1393 | case "$ac_dir" in | ||
1394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1395 | *) | ||
1396 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1397 | # A ".." for each directory in $ac_dir_suffix. | ||
1398 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1399 | case $ac_top_builddir_sub in | ||
1400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1402 | esac ;; | ||
1403 | esac | ||
1404 | ac_abs_top_builddir=$ac_pwd | ||
1405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1406 | # for backward compatibility: | ||
1407 | ac_top_builddir=$ac_top_build_prefix | ||
1408 | |||
1409 | case $srcdir in | ||
1410 | .) # We are building in place. | ||
1411 | ac_srcdir=. | ||
1412 | ac_top_srcdir=$ac_top_builddir_sub | ||
1413 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1414 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1415 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1416 | ac_top_srcdir=$srcdir | ||
1417 | ac_abs_top_srcdir=$srcdir ;; | ||
1418 | *) # Relative name. | ||
1419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1420 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1422 | esac | ||
1423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1424 | |||
1425 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1426 | # Check for guested configure. | ||
1427 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1428 | echo && | ||
1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1430 | elif test -f "$ac_srcdir/configure"; then | ||
1431 | echo && | ||
1432 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1433 | else | ||
1434 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1435 | fi || ac_status=$? | ||
1436 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1437 | done | ||
1438 | fi | ||
1439 | |||
1440 | test -n "$ac_init_help" && exit $ac_status | ||
1441 | if $ac_init_version; then | ||
1442 | cat <<\_ACEOF | ||
1443 | OpenSSH configure Portable | ||
1444 | generated by GNU Autoconf 2.61 | ||
1445 | |||
1446 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1447 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1448 | This configure script is free software; the Free Software Foundation | ||
1449 | gives unlimited permission to copy, distribute and modify it. | ||
1450 | _ACEOF | ||
1451 | exit | ||
1452 | fi | ||
1453 | cat >config.log <<_ACEOF | ||
1454 | This file contains any messages produced by compilers while | ||
1455 | running configure, to aid debugging if configure makes a mistake. | ||
1456 | |||
1457 | It was created by OpenSSH $as_me Portable, which was | ||
1458 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1459 | |||
1460 | $ $0 $@ | ||
1461 | |||
1462 | _ACEOF | ||
1463 | exec 5>>config.log | ||
1464 | { | ||
1465 | cat <<_ASUNAME | ||
1466 | ## --------- ## | ||
1467 | ## Platform. ## | ||
1468 | ## --------- ## | ||
1469 | |||
1470 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1471 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1472 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1473 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1474 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1475 | |||
1476 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1477 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1478 | |||
1479 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1480 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1481 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1482 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1483 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1484 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1485 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1486 | |||
1487 | _ASUNAME | ||
1488 | |||
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1490 | for as_dir in $PATH | ||
1491 | do | ||
1492 | IFS=$as_save_IFS | ||
1493 | test -z "$as_dir" && as_dir=. | ||
1494 | echo "PATH: $as_dir" | ||
1495 | done | ||
1496 | IFS=$as_save_IFS | ||
1497 | |||
1498 | } >&5 | ||
1499 | |||
1500 | cat >&5 <<_ACEOF | ||
1501 | |||
1502 | |||
1503 | ## ----------- ## | ||
1504 | ## Core tests. ## | ||
1505 | ## ----------- ## | ||
1506 | |||
1507 | _ACEOF | ||
1508 | |||
1509 | |||
1510 | # Keep a trace of the command line. | ||
1511 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1512 | # Strip out --silent because we don't want to record it for future runs. | ||
1513 | # Also quote any args containing shell meta-characters. | ||
1514 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1515 | ac_configure_args= | ||
1516 | ac_configure_args0= | ||
1517 | ac_configure_args1= | ||
1518 | ac_must_keep_next=false | ||
1519 | for ac_pass in 1 2 | ||
1520 | do | ||
1521 | for ac_arg | ||
1522 | do | ||
1523 | case $ac_arg in | ||
1524 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1525 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1526 | | -silent | --silent | --silen | --sile | --sil) | ||
1527 | continue ;; | ||
1528 | *\'*) | ||
1529 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1530 | esac | ||
1531 | case $ac_pass in | ||
1532 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1533 | 2) | ||
1534 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1535 | if test $ac_must_keep_next = true; then | ||
1536 | ac_must_keep_next=false # Got value, back to normal. | ||
1537 | else | ||
1538 | case $ac_arg in | ||
1539 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1540 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1541 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1542 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1543 | case "$ac_configure_args0 " in | ||
1544 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1545 | esac | ||
1546 | ;; | ||
1547 | -* ) ac_must_keep_next=true ;; | ||
1548 | esac | ||
1549 | fi | ||
1550 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1551 | ;; | ||
1552 | esac | ||
1553 | done | ||
1554 | done | ||
1555 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1556 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1557 | |||
1558 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1559 | # config.log. We remove comments because anyway the quotes in there | ||
1560 | # would cause problems or look ugly. | ||
1561 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1562 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1563 | trap 'exit_status=$? | ||
1564 | # Save into config.log some information that might help in debugging. | ||
1565 | { | ||
1566 | echo | ||
1567 | |||
1568 | cat <<\_ASBOX | ||
1569 | ## ---------------- ## | ||
1570 | ## Cache variables. ## | ||
1571 | ## ---------------- ## | ||
1572 | _ASBOX | ||
1573 | echo | ||
1574 | # The following way of writing the cache mishandles newlines in values, | ||
1575 | ( | ||
1576 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1577 | eval ac_val=\$$ac_var | ||
1578 | case $ac_val in #( | ||
1579 | *${as_nl}*) | ||
1580 | case $ac_var in #( | ||
1581 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1582 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1583 | esac | ||
1584 | case $ac_var in #( | ||
1585 | _ | IFS | as_nl) ;; #( | ||
1586 | *) $as_unset $ac_var ;; | ||
1587 | esac ;; | ||
1588 | esac | ||
1589 | done | ||
1590 | (set) 2>&1 | | ||
1591 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1592 | *${as_nl}ac_space=\ *) | ||
1593 | sed -n \ | ||
1594 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1595 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1596 | ;; #( | ||
1597 | *) | ||
1598 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1599 | ;; | ||
1600 | esac | | ||
1601 | sort | ||
1602 | ) | ||
1603 | echo | ||
1604 | |||
1605 | cat <<\_ASBOX | ||
1606 | ## ----------------- ## | ||
1607 | ## Output variables. ## | ||
1608 | ## ----------------- ## | ||
1609 | _ASBOX | ||
1610 | echo | ||
1611 | for ac_var in $ac_subst_vars | ||
1612 | do | ||
1613 | eval ac_val=\$$ac_var | ||
1614 | case $ac_val in | ||
1615 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1616 | esac | ||
1617 | echo "$ac_var='\''$ac_val'\''" | ||
1618 | done | sort | ||
1619 | echo | ||
1620 | |||
1621 | if test -n "$ac_subst_files"; then | ||
1622 | cat <<\_ASBOX | ||
1623 | ## ------------------- ## | ||
1624 | ## File substitutions. ## | ||
1625 | ## ------------------- ## | ||
1626 | _ASBOX | ||
1627 | echo | ||
1628 | for ac_var in $ac_subst_files | ||
1629 | do | ||
1630 | eval ac_val=\$$ac_var | ||
1631 | case $ac_val in | ||
1632 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1633 | esac | ||
1634 | echo "$ac_var='\''$ac_val'\''" | ||
1635 | done | sort | ||
1636 | echo | ||
1637 | fi | ||
1638 | |||
1639 | if test -s confdefs.h; then | ||
1640 | cat <<\_ASBOX | ||
1641 | ## ----------- ## | ||
1642 | ## confdefs.h. ## | ||
1643 | ## ----------- ## | ||
1644 | _ASBOX | ||
1645 | echo | ||
1646 | cat confdefs.h | ||
1647 | echo | ||
1648 | fi | ||
1649 | test "$ac_signal" != 0 && | ||
1650 | echo "$as_me: caught signal $ac_signal" | ||
1651 | echo "$as_me: exit $exit_status" | ||
1652 | } >&5 | ||
1653 | rm -f core *.core core.conftest.* && | ||
1654 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1655 | exit $exit_status | ||
1656 | ' 0 | ||
1657 | for ac_signal in 1 2 13 15; do | ||
1658 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1659 | done | ||
1660 | ac_signal=0 | ||
1661 | |||
1662 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1663 | rm -f -r conftest* confdefs.h | ||
1664 | |||
1665 | # Predefined preprocessor variables. | ||
1666 | |||
1667 | cat >>confdefs.h <<_ACEOF | ||
1668 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1669 | _ACEOF | ||
1670 | |||
1671 | |||
1672 | cat >>confdefs.h <<_ACEOF | ||
1673 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1674 | _ACEOF | ||
1675 | |||
1676 | |||
1677 | cat >>confdefs.h <<_ACEOF | ||
1678 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1679 | _ACEOF | ||
1680 | |||
1681 | |||
1682 | cat >>confdefs.h <<_ACEOF | ||
1683 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1684 | _ACEOF | ||
1685 | |||
1686 | |||
1687 | cat >>confdefs.h <<_ACEOF | ||
1688 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1689 | _ACEOF | ||
1690 | |||
1691 | |||
1692 | # Let the site file select an alternate cache file if it wants to. | ||
1693 | # Prefer explicitly selected file to automatically selected ones. | ||
1694 | if test -n "$CONFIG_SITE"; then | ||
1695 | set x "$CONFIG_SITE" | ||
1696 | elif test "x$prefix" != xNONE; then | ||
1697 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1698 | else | ||
1699 | set x "$ac_default_prefix/share/config.site" \ | ||
1700 | "$ac_default_prefix/etc/config.site" | ||
1701 | fi | ||
1702 | shift | ||
1703 | for ac_site_file | ||
1704 | do | ||
1705 | if test -r "$ac_site_file"; then | ||
1706 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1707 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1708 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1709 | . "$ac_site_file" | ||
1710 | fi | ||
1711 | done | ||
1712 | |||
1713 | if test -r "$cache_file"; then | ||
1714 | # Some versions of bash will fail to source /dev/null (special | ||
1715 | # files actually), so we avoid doing that. | ||
1716 | if test -f "$cache_file"; then | ||
1717 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1718 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1719 | case $cache_file in | ||
1720 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1721 | *) . "./$cache_file";; | ||
1722 | esac | ||
1723 | fi | ||
1724 | else | ||
1725 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1726 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1727 | >$cache_file | ||
1728 | fi | ||
1729 | |||
1730 | # Check that the precious variables saved in the cache have kept the same | ||
1731 | # value. | ||
1732 | ac_cache_corrupted=false | ||
1733 | for ac_var in $ac_precious_vars; do | ||
1734 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1735 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1736 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1737 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1738 | case $ac_old_set,$ac_new_set in | ||
1739 | set,) | ||
1740 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1741 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1742 | ac_cache_corrupted=: ;; | ||
1743 | ,set) | ||
1744 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1745 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1746 | ac_cache_corrupted=: ;; | ||
1747 | ,);; | ||
1748 | *) | ||
1749 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1750 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1751 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1752 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1753 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1754 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1755 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1756 | ac_cache_corrupted=: | ||
1757 | fi;; | ||
1758 | esac | ||
1759 | # Pass precious variables to config.status. | ||
1760 | if test "$ac_new_set" = set; then | ||
1761 | case $ac_new_val in | ||
1762 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1763 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1764 | esac | ||
1765 | case " $ac_configure_args " in | ||
1766 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1767 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1768 | esac | ||
1769 | fi | ||
1770 | done | ||
1771 | if $ac_cache_corrupted; then | ||
1772 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1773 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1774 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1775 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1776 | { (exit 1); exit 1; }; } | ||
1777 | fi | ||
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 | |||
1803 | ac_ext=c | ||
1804 | ac_cpp='$CPP $CPPFLAGS' | ||
1805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1808 | |||
1809 | |||
1810 | |||
1811 | |||
1812 | |||
1813 | ac_config_headers="$ac_config_headers config.h" | ||
1814 | |||
1815 | ac_ext=c | ||
1816 | ac_cpp='$CPP $CPPFLAGS' | ||
1817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1820 | if test -n "$ac_tool_prefix"; then | ||
1821 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1822 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1825 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1827 | else | ||
1828 | if test -n "$CC"; then | ||
1829 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1830 | else | ||
1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1832 | for as_dir in $PATH | ||
1833 | do | ||
1834 | IFS=$as_save_IFS | ||
1835 | test -z "$as_dir" && as_dir=. | ||
1836 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1838 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1840 | break 2 | ||
1841 | fi | ||
1842 | done | ||
1843 | done | ||
1844 | IFS=$as_save_IFS | ||
1845 | |||
1846 | fi | ||
1847 | fi | ||
1848 | CC=$ac_cv_prog_CC | ||
1849 | if test -n "$CC"; then | ||
1850 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1851 | echo "${ECHO_T}$CC" >&6; } | ||
1852 | else | ||
1853 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1854 | echo "${ECHO_T}no" >&6; } | ||
1855 | fi | ||
1856 | |||
1857 | |||
1858 | fi | ||
1859 | if test -z "$ac_cv_prog_CC"; then | ||
1860 | ac_ct_CC=$CC | ||
1861 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1862 | set dummy gcc; ac_word=$2 | ||
1863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1865 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1867 | else | ||
1868 | if test -n "$ac_ct_CC"; then | ||
1869 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1870 | else | ||
1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1872 | for as_dir in $PATH | ||
1873 | do | ||
1874 | IFS=$as_save_IFS | ||
1875 | test -z "$as_dir" && as_dir=. | ||
1876 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1878 | ac_cv_prog_ac_ct_CC="gcc" | ||
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1880 | break 2 | ||
1881 | fi | ||
1882 | done | ||
1883 | done | ||
1884 | IFS=$as_save_IFS | ||
1885 | |||
1886 | fi | ||
1887 | fi | ||
1888 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1889 | if test -n "$ac_ct_CC"; then | ||
1890 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1891 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1892 | else | ||
1893 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1894 | echo "${ECHO_T}no" >&6; } | ||
1895 | fi | ||
1896 | |||
1897 | if test "x$ac_ct_CC" = x; then | ||
1898 | CC="" | ||
1899 | else | ||
1900 | case $cross_compiling:$ac_tool_warned in | ||
1901 | yes:) | ||
1902 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1903 | whose name does not start with the host triplet. If you think this | ||
1904 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1905 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1906 | whose name does not start with the host triplet. If you think this | ||
1907 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1908 | ac_tool_warned=yes ;; | ||
1909 | esac | ||
1910 | CC=$ac_ct_CC | ||
1911 | fi | ||
1912 | else | ||
1913 | CC="$ac_cv_prog_CC" | ||
1914 | fi | ||
1915 | |||
1916 | if test -z "$CC"; then | ||
1917 | if test -n "$ac_tool_prefix"; then | ||
1918 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1919 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1922 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1924 | else | ||
1925 | if test -n "$CC"; then | ||
1926 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1927 | else | ||
1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1929 | for as_dir in $PATH | ||
1930 | do | ||
1931 | IFS=$as_save_IFS | ||
1932 | test -z "$as_dir" && as_dir=. | ||
1933 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1935 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1937 | break 2 | ||
1938 | fi | ||
1939 | done | ||
1940 | done | ||
1941 | IFS=$as_save_IFS | ||
1942 | |||
1943 | fi | ||
1944 | fi | ||
1945 | CC=$ac_cv_prog_CC | ||
1946 | if test -n "$CC"; then | ||
1947 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1948 | echo "${ECHO_T}$CC" >&6; } | ||
1949 | else | ||
1950 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1951 | echo "${ECHO_T}no" >&6; } | ||
1952 | fi | ||
1953 | |||
1954 | |||
1955 | fi | ||
1956 | fi | ||
1957 | if test -z "$CC"; then | ||
1958 | # Extract the first word of "cc", so it can be a program name with args. | ||
1959 | set dummy cc; ac_word=$2 | ||
1960 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1962 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1964 | else | ||
1965 | if test -n "$CC"; then | ||
1966 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1967 | else | ||
1968 | ac_prog_rejected=no | ||
1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1970 | for as_dir in $PATH | ||
1971 | do | ||
1972 | IFS=$as_save_IFS | ||
1973 | test -z "$as_dir" && as_dir=. | ||
1974 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1976 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1977 | ac_prog_rejected=yes | ||
1978 | continue | ||
1979 | fi | ||
1980 | ac_cv_prog_CC="cc" | ||
1981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1982 | break 2 | ||
1983 | fi | ||
1984 | done | ||
1985 | done | ||
1986 | IFS=$as_save_IFS | ||
1987 | |||
1988 | if test $ac_prog_rejected = yes; then | ||
1989 | # We found a bogon in the path, so make sure we never use it. | ||
1990 | set dummy $ac_cv_prog_CC | ||
1991 | shift | ||
1992 | if test $# != 0; then | ||
1993 | # We chose a different compiler from the bogus one. | ||
1994 | # However, it has the same basename, so the bogon will be chosen | ||
1995 | # first if we set CC to just the basename; use the full file name. | ||
1996 | shift | ||
1997 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1998 | fi | ||
1999 | fi | ||
2000 | fi | ||
2001 | fi | ||
2002 | CC=$ac_cv_prog_CC | ||
2003 | if test -n "$CC"; then | ||
2004 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2005 | echo "${ECHO_T}$CC" >&6; } | ||
2006 | else | ||
2007 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2008 | echo "${ECHO_T}no" >&6; } | ||
2009 | fi | ||
2010 | |||
2011 | |||
2012 | fi | ||
2013 | if test -z "$CC"; then | ||
2014 | if test -n "$ac_tool_prefix"; then | ||
2015 | for ac_prog in cl.exe | ||
2016 | do | ||
2017 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2018 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2021 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2023 | else | ||
2024 | if test -n "$CC"; then | ||
2025 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2026 | else | ||
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2028 | for as_dir in $PATH | ||
2029 | do | ||
2030 | IFS=$as_save_IFS | ||
2031 | test -z "$as_dir" && as_dir=. | ||
2032 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2034 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2036 | break 2 | ||
2037 | fi | ||
2038 | done | ||
2039 | done | ||
2040 | IFS=$as_save_IFS | ||
2041 | |||
2042 | fi | ||
2043 | fi | ||
2044 | CC=$ac_cv_prog_CC | ||
2045 | if test -n "$CC"; then | ||
2046 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2047 | echo "${ECHO_T}$CC" >&6; } | ||
2048 | else | ||
2049 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2050 | echo "${ECHO_T}no" >&6; } | ||
2051 | fi | ||
2052 | |||
2053 | |||
2054 | test -n "$CC" && break | ||
2055 | done | ||
2056 | fi | ||
2057 | if test -z "$CC"; then | ||
2058 | ac_ct_CC=$CC | ||
2059 | for ac_prog in cl.exe | ||
2060 | do | ||
2061 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2062 | set dummy $ac_prog; ac_word=$2 | ||
2063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2065 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2067 | else | ||
2068 | if test -n "$ac_ct_CC"; then | ||
2069 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2070 | else | ||
2071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2072 | for as_dir in $PATH | ||
2073 | do | ||
2074 | IFS=$as_save_IFS | ||
2075 | test -z "$as_dir" && as_dir=. | ||
2076 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2078 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2080 | break 2 | ||
2081 | fi | ||
2082 | done | ||
2083 | done | ||
2084 | IFS=$as_save_IFS | ||
2085 | |||
2086 | fi | ||
2087 | fi | ||
2088 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2089 | if test -n "$ac_ct_CC"; then | ||
2090 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2091 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2092 | else | ||
2093 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2094 | echo "${ECHO_T}no" >&6; } | ||
2095 | fi | ||
2096 | |||
2097 | |||
2098 | test -n "$ac_ct_CC" && break | ||
2099 | done | ||
2100 | |||
2101 | if test "x$ac_ct_CC" = x; then | ||
2102 | CC="" | ||
2103 | else | ||
2104 | case $cross_compiling:$ac_tool_warned in | ||
2105 | yes:) | ||
2106 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2107 | whose name does not start with the host triplet. If you think this | ||
2108 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2109 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2110 | whose name does not start with the host triplet. If you think this | ||
2111 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2112 | ac_tool_warned=yes ;; | ||
2113 | esac | ||
2114 | CC=$ac_ct_CC | ||
2115 | fi | ||
2116 | fi | ||
2117 | |||
2118 | fi | ||
2119 | |||
2120 | |||
2121 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2122 | See \`config.log' for more details." >&5 | ||
2123 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2124 | See \`config.log' for more details." >&2;} | ||
2125 | { (exit 1); exit 1; }; } | ||
2126 | |||
2127 | # Provide some information about the compiler. | ||
2128 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2129 | ac_compiler=`set X $ac_compile; echo $2` | ||
2130 | { (ac_try="$ac_compiler --version >&5" | ||
2131 | case "(($ac_try" in | ||
2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2133 | *) ac_try_echo=$ac_try;; | ||
2134 | esac | ||
2135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2136 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2137 | ac_status=$? | ||
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2139 | (exit $ac_status); } | ||
2140 | { (ac_try="$ac_compiler -v >&5" | ||
2141 | case "(($ac_try" in | ||
2142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2143 | *) ac_try_echo=$ac_try;; | ||
2144 | esac | ||
2145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2146 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2147 | ac_status=$? | ||
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2149 | (exit $ac_status); } | ||
2150 | { (ac_try="$ac_compiler -V >&5" | ||
2151 | case "(($ac_try" in | ||
2152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2153 | *) ac_try_echo=$ac_try;; | ||
2154 | esac | ||
2155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2156 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2157 | ac_status=$? | ||
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2159 | (exit $ac_status); } | ||
2160 | |||
2161 | cat >conftest.$ac_ext <<_ACEOF | ||
2162 | /* confdefs.h. */ | ||
2163 | _ACEOF | ||
2164 | cat confdefs.h >>conftest.$ac_ext | ||
2165 | cat >>conftest.$ac_ext <<_ACEOF | ||
2166 | /* end confdefs.h. */ | ||
2167 | |||
2168 | int | ||
2169 | main () | ||
2170 | { | ||
2171 | |||
2172 | ; | ||
2173 | return 0; | ||
2174 | } | ||
2175 | _ACEOF | ||
2176 | ac_clean_files_save=$ac_clean_files | ||
2177 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2178 | # Try to create an executable without -o first, disregard a.out. | ||
2179 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2180 | # of exeext. | ||
2181 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2182 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2183 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2184 | # | ||
2185 | # List of possible output files, starting from the most likely. | ||
2186 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2187 | # only as a last resort. b.out is created by i960 compilers. | ||
2188 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2189 | # | ||
2190 | # The IRIX 6 linker writes into existing files which may not be | ||
2191 | # executable, retaining their permissions. Remove them first so a | ||
2192 | # subsequent execution test works. | ||
2193 | ac_rmfiles= | ||
2194 | for ac_file in $ac_files | ||
2195 | do | ||
2196 | case $ac_file in | ||
2197 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2198 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2199 | esac | ||
2200 | done | ||
2201 | rm -f $ac_rmfiles | ||
2202 | |||
2203 | if { (ac_try="$ac_link_default" | ||
2204 | case "(($ac_try" in | ||
2205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2206 | *) ac_try_echo=$ac_try;; | ||
2207 | esac | ||
2208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2209 | (eval "$ac_link_default") 2>&5 | ||
2210 | ac_status=$? | ||
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2212 | (exit $ac_status); }; then | ||
2213 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2214 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2215 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2216 | # so that the user can short-circuit this test for compilers unknown to | ||
2217 | # Autoconf. | ||
2218 | for ac_file in $ac_files '' | ||
2219 | do | ||
2220 | test -f "$ac_file" || continue | ||
2221 | case $ac_file in | ||
2222 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2223 | ;; | ||
2224 | [ab].out ) | ||
2225 | # We found the default executable, but exeext='' is most | ||
2226 | # certainly right. | ||
2227 | break;; | ||
2228 | *.* ) | ||
2229 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2230 | then :; else | ||
2231 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2232 | fi | ||
2233 | # We set ac_cv_exeext here because the later test for it is not | ||
2234 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2235 | # argument, so we may need to know it at that point already. | ||
2236 | # Even if this section looks crufty: it has the advantage of | ||
2237 | # actually working. | ||
2238 | break;; | ||
2239 | * ) | ||
2240 | break;; | ||
2241 | esac | ||
2242 | done | ||
2243 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2244 | |||
2245 | else | ||
2246 | ac_file='' | ||
2247 | fi | ||
2248 | |||
2249 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2250 | echo "${ECHO_T}$ac_file" >&6; } | ||
2251 | if test -z "$ac_file"; then | ||
2252 | echo "$as_me: failed program was:" >&5 | ||
2253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2254 | |||
2255 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2256 | See \`config.log' for more details." >&5 | ||
2257 | echo "$as_me: error: C compiler cannot create executables | ||
2258 | See \`config.log' for more details." >&2;} | ||
2259 | { (exit 77); exit 77; }; } | ||
2260 | fi | ||
2261 | |||
2262 | ac_exeext=$ac_cv_exeext | ||
2263 | |||
2264 | # Check that the compiler produces executables we can run. If not, either | ||
2265 | # the compiler is broken, or we cross compile. | ||
2266 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2267 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2268 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2269 | # If not cross compiling, check that we can run a simple program. | ||
2270 | if test "$cross_compiling" != yes; then | ||
2271 | if { ac_try='./$ac_file' | ||
2272 | { (case "(($ac_try" in | ||
2273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2274 | *) ac_try_echo=$ac_try;; | ||
2275 | esac | ||
2276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2277 | (eval "$ac_try") 2>&5 | ||
2278 | ac_status=$? | ||
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2280 | (exit $ac_status); }; }; then | ||
2281 | cross_compiling=no | ||
2282 | else | ||
2283 | if test "$cross_compiling" = maybe; then | ||
2284 | cross_compiling=yes | ||
2285 | else | ||
2286 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2287 | If you meant to cross compile, use \`--host'. | ||
2288 | See \`config.log' for more details." >&5 | ||
2289 | echo "$as_me: error: cannot run C compiled programs. | ||
2290 | If you meant to cross compile, use \`--host'. | ||
2291 | See \`config.log' for more details." >&2;} | ||
2292 | { (exit 1); exit 1; }; } | ||
2293 | fi | ||
2294 | fi | ||
2295 | fi | ||
2296 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2297 | echo "${ECHO_T}yes" >&6; } | ||
2298 | |||
2299 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2300 | ac_clean_files=$ac_clean_files_save | ||
2301 | # Check that the compiler produces executables we can run. If not, either | ||
2302 | # the compiler is broken, or we cross compile. | ||
2303 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2304 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2305 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2306 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2307 | |||
2308 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2309 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2310 | if { (ac_try="$ac_link" | ||
2311 | case "(($ac_try" in | ||
2312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2313 | *) ac_try_echo=$ac_try;; | ||
2314 | esac | ||
2315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2316 | (eval "$ac_link") 2>&5 | ||
2317 | ac_status=$? | ||
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2319 | (exit $ac_status); }; then | ||
2320 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2321 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2322 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2323 | # `rm'. | ||
2324 | for ac_file in conftest.exe conftest conftest.*; do | ||
2325 | test -f "$ac_file" || continue | ||
2326 | case $ac_file in | ||
2327 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2328 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2329 | break;; | ||
2330 | * ) break;; | ||
2331 | esac | ||
2332 | done | ||
2333 | else | ||
2334 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2335 | See \`config.log' for more details." >&5 | ||
2336 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2337 | See \`config.log' for more details." >&2;} | ||
2338 | { (exit 1); exit 1; }; } | ||
2339 | fi | ||
2340 | |||
2341 | rm -f conftest$ac_cv_exeext | ||
2342 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2343 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2344 | |||
2345 | rm -f conftest.$ac_ext | ||
2346 | EXEEXT=$ac_cv_exeext | ||
2347 | ac_exeext=$EXEEXT | ||
2348 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2349 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2350 | if test "${ac_cv_objext+set}" = set; then | ||
2351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2352 | else | ||
2353 | cat >conftest.$ac_ext <<_ACEOF | ||
2354 | /* confdefs.h. */ | ||
2355 | _ACEOF | ||
2356 | cat confdefs.h >>conftest.$ac_ext | ||
2357 | cat >>conftest.$ac_ext <<_ACEOF | ||
2358 | /* end confdefs.h. */ | ||
2359 | |||
2360 | int | ||
2361 | main () | ||
2362 | { | ||
2363 | |||
2364 | ; | ||
2365 | return 0; | ||
2366 | } | ||
2367 | _ACEOF | ||
2368 | rm -f conftest.o conftest.obj | ||
2369 | if { (ac_try="$ac_compile" | ||
2370 | case "(($ac_try" in | ||
2371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2372 | *) ac_try_echo=$ac_try;; | ||
2373 | esac | ||
2374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2375 | (eval "$ac_compile") 2>&5 | ||
2376 | ac_status=$? | ||
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2378 | (exit $ac_status); }; then | ||
2379 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2380 | test -f "$ac_file" || continue; | ||
2381 | case $ac_file in | ||
2382 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2383 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2384 | break;; | ||
2385 | esac | ||
2386 | done | ||
2387 | else | ||
2388 | echo "$as_me: failed program was:" >&5 | ||
2389 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2390 | |||
2391 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2392 | See \`config.log' for more details." >&5 | ||
2393 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2394 | See \`config.log' for more details." >&2;} | ||
2395 | { (exit 1); exit 1; }; } | ||
2396 | fi | ||
2397 | |||
2398 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2399 | fi | ||
2400 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2401 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2402 | OBJEXT=$ac_cv_objext | ||
2403 | ac_objext=$OBJEXT | ||
2404 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2405 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2406 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2408 | else | ||
2409 | cat >conftest.$ac_ext <<_ACEOF | ||
2410 | /* confdefs.h. */ | ||
2411 | _ACEOF | ||
2412 | cat confdefs.h >>conftest.$ac_ext | ||
2413 | cat >>conftest.$ac_ext <<_ACEOF | ||
2414 | /* end confdefs.h. */ | ||
2415 | |||
2416 | int | ||
2417 | main () | ||
2418 | { | ||
2419 | #ifndef __GNUC__ | ||
2420 | choke me | ||
2421 | #endif | ||
2422 | |||
2423 | ; | ||
2424 | return 0; | ||
2425 | } | ||
2426 | _ACEOF | ||
2427 | rm -f conftest.$ac_objext | ||
2428 | if { (ac_try="$ac_compile" | ||
2429 | case "(($ac_try" in | ||
2430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2431 | *) ac_try_echo=$ac_try;; | ||
2432 | esac | ||
2433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2434 | (eval "$ac_compile") 2>conftest.er1 | ||
2435 | ac_status=$? | ||
2436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2437 | rm -f conftest.er1 | ||
2438 | cat conftest.err >&5 | ||
2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2440 | (exit $ac_status); } && { | ||
2441 | test -z "$ac_c_werror_flag" || | ||
2442 | test ! -s conftest.err | ||
2443 | } && test -s conftest.$ac_objext; then | ||
2444 | ac_compiler_gnu=yes | ||
2445 | else | ||
2446 | echo "$as_me: failed program was:" >&5 | ||
2447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2448 | |||
2449 | ac_compiler_gnu=no | ||
2450 | fi | ||
2451 | |||
2452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2453 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2454 | |||
2455 | fi | ||
2456 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2457 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2458 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2459 | ac_test_CFLAGS=${CFLAGS+set} | ||
2460 | ac_save_CFLAGS=$CFLAGS | ||
2461 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2462 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2463 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2465 | else | ||
2466 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2467 | ac_c_werror_flag=yes | ||
2468 | ac_cv_prog_cc_g=no | ||
2469 | CFLAGS="-g" | ||
2470 | cat >conftest.$ac_ext <<_ACEOF | ||
2471 | /* confdefs.h. */ | ||
2472 | _ACEOF | ||
2473 | cat confdefs.h >>conftest.$ac_ext | ||
2474 | cat >>conftest.$ac_ext <<_ACEOF | ||
2475 | /* end confdefs.h. */ | ||
2476 | |||
2477 | int | ||
2478 | main () | ||
2479 | { | ||
2480 | |||
2481 | ; | ||
2482 | return 0; | ||
2483 | } | ||
2484 | _ACEOF | ||
2485 | rm -f conftest.$ac_objext | ||
2486 | if { (ac_try="$ac_compile" | ||
2487 | case "(($ac_try" in | ||
2488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2489 | *) ac_try_echo=$ac_try;; | ||
2490 | esac | ||
2491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2492 | (eval "$ac_compile") 2>conftest.er1 | ||
2493 | ac_status=$? | ||
2494 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2495 | rm -f conftest.er1 | ||
2496 | cat conftest.err >&5 | ||
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2498 | (exit $ac_status); } && { | ||
2499 | test -z "$ac_c_werror_flag" || | ||
2500 | test ! -s conftest.err | ||
2501 | } && test -s conftest.$ac_objext; then | ||
2502 | ac_cv_prog_cc_g=yes | ||
2503 | else | ||
2504 | echo "$as_me: failed program was:" >&5 | ||
2505 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2506 | |||
2507 | CFLAGS="" | ||
2508 | cat >conftest.$ac_ext <<_ACEOF | ||
2509 | /* confdefs.h. */ | ||
2510 | _ACEOF | ||
2511 | cat confdefs.h >>conftest.$ac_ext | ||
2512 | cat >>conftest.$ac_ext <<_ACEOF | ||
2513 | /* end confdefs.h. */ | ||
2514 | |||
2515 | int | ||
2516 | main () | ||
2517 | { | ||
2518 | |||
2519 | ; | ||
2520 | return 0; | ||
2521 | } | ||
2522 | _ACEOF | ||
2523 | rm -f conftest.$ac_objext | ||
2524 | if { (ac_try="$ac_compile" | ||
2525 | case "(($ac_try" in | ||
2526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2527 | *) ac_try_echo=$ac_try;; | ||
2528 | esac | ||
2529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2530 | (eval "$ac_compile") 2>conftest.er1 | ||
2531 | ac_status=$? | ||
2532 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2533 | rm -f conftest.er1 | ||
2534 | cat conftest.err >&5 | ||
2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2536 | (exit $ac_status); } && { | ||
2537 | test -z "$ac_c_werror_flag" || | ||
2538 | test ! -s conftest.err | ||
2539 | } && test -s conftest.$ac_objext; then | ||
2540 | : | ||
2541 | else | ||
2542 | echo "$as_me: failed program was:" >&5 | ||
2543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2544 | |||
2545 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2546 | CFLAGS="-g" | ||
2547 | cat >conftest.$ac_ext <<_ACEOF | ||
2548 | /* confdefs.h. */ | ||
2549 | _ACEOF | ||
2550 | cat confdefs.h >>conftest.$ac_ext | ||
2551 | cat >>conftest.$ac_ext <<_ACEOF | ||
2552 | /* end confdefs.h. */ | ||
2553 | |||
2554 | int | ||
2555 | main () | ||
2556 | { | ||
2557 | |||
2558 | ; | ||
2559 | return 0; | ||
2560 | } | ||
2561 | _ACEOF | ||
2562 | rm -f conftest.$ac_objext | ||
2563 | if { (ac_try="$ac_compile" | ||
2564 | case "(($ac_try" in | ||
2565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2566 | *) ac_try_echo=$ac_try;; | ||
2567 | esac | ||
2568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2569 | (eval "$ac_compile") 2>conftest.er1 | ||
2570 | ac_status=$? | ||
2571 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2572 | rm -f conftest.er1 | ||
2573 | cat conftest.err >&5 | ||
2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2575 | (exit $ac_status); } && { | ||
2576 | test -z "$ac_c_werror_flag" || | ||
2577 | test ! -s conftest.err | ||
2578 | } && test -s conftest.$ac_objext; then | ||
2579 | ac_cv_prog_cc_g=yes | ||
2580 | else | ||
2581 | echo "$as_me: failed program was:" >&5 | ||
2582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2583 | |||
2584 | |||
2585 | fi | ||
2586 | |||
2587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2588 | fi | ||
2589 | |||
2590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2591 | fi | ||
2592 | |||
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2594 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2595 | fi | ||
2596 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2597 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2598 | if test "$ac_test_CFLAGS" = set; then | ||
2599 | CFLAGS=$ac_save_CFLAGS | ||
2600 | elif test $ac_cv_prog_cc_g = yes; then | ||
2601 | if test "$GCC" = yes; then | ||
2602 | CFLAGS="-g -O2" | ||
2603 | else | ||
2604 | CFLAGS="-g" | ||
2605 | fi | ||
2606 | else | ||
2607 | if test "$GCC" = yes; then | ||
2608 | CFLAGS="-O2" | ||
2609 | else | ||
2610 | CFLAGS= | ||
2611 | fi | ||
2612 | fi | ||
2613 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2614 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2615 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2617 | else | ||
2618 | ac_cv_prog_cc_c89=no | ||
2619 | ac_save_CC=$CC | ||
2620 | cat >conftest.$ac_ext <<_ACEOF | ||
2621 | /* confdefs.h. */ | ||
2622 | _ACEOF | ||
2623 | cat confdefs.h >>conftest.$ac_ext | ||
2624 | cat >>conftest.$ac_ext <<_ACEOF | ||
2625 | /* end confdefs.h. */ | ||
2626 | #include <stdarg.h> | ||
2627 | #include <stdio.h> | ||
2628 | #include <sys/types.h> | ||
2629 | #include <sys/stat.h> | ||
2630 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2631 | struct buf { int x; }; | ||
2632 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2633 | static char *e (p, i) | ||
2634 | char **p; | ||
2635 | int i; | ||
2636 | { | ||
2637 | return p[i]; | ||
2638 | } | ||
2639 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2640 | { | ||
2641 | char *s; | ||
2642 | va_list v; | ||
2643 | va_start (v,p); | ||
2644 | s = g (p, va_arg (v,int)); | ||
2645 | va_end (v); | ||
2646 | return s; | ||
2647 | } | ||
2648 | |||
2649 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2650 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2651 | These don't provoke an error unfortunately, instead are silently treated | ||
2652 | as 'x'. The following induces an error, until -std is added to get | ||
2653 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2654 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2655 | that's true only with -std. */ | ||
2656 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2657 | |||
2658 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2659 | inside strings and character constants. */ | ||
2660 | #define FOO(x) 'x' | ||
2661 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2662 | |||
2663 | int test (int i, double x); | ||
2664 | struct s1 {int (*f) (int a);}; | ||
2665 | struct s2 {int (*f) (double a);}; | ||
2666 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2667 | int argc; | ||
2668 | char **argv; | ||
2669 | int | ||
2670 | main () | ||
2671 | { | ||
2672 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2673 | ; | ||
2674 | return 0; | ||
2675 | } | ||
2676 | _ACEOF | ||
2677 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2678 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2679 | do | ||
2680 | CC="$ac_save_CC $ac_arg" | ||
2681 | rm -f conftest.$ac_objext | ||
2682 | if { (ac_try="$ac_compile" | ||
2683 | case "(($ac_try" in | ||
2684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2685 | *) ac_try_echo=$ac_try;; | ||
2686 | esac | ||
2687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2688 | (eval "$ac_compile") 2>conftest.er1 | ||
2689 | ac_status=$? | ||
2690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2691 | rm -f conftest.er1 | ||
2692 | cat conftest.err >&5 | ||
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2694 | (exit $ac_status); } && { | ||
2695 | test -z "$ac_c_werror_flag" || | ||
2696 | test ! -s conftest.err | ||
2697 | } && test -s conftest.$ac_objext; then | ||
2698 | ac_cv_prog_cc_c89=$ac_arg | ||
2699 | else | ||
2700 | echo "$as_me: failed program was:" >&5 | ||
2701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2702 | |||
2703 | |||
2704 | fi | ||
2705 | |||
2706 | rm -f core conftest.err conftest.$ac_objext | ||
2707 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2708 | done | ||
2709 | rm -f conftest.$ac_ext | ||
2710 | CC=$ac_save_CC | ||
2711 | |||
2712 | fi | ||
2713 | # AC_CACHE_VAL | ||
2714 | case "x$ac_cv_prog_cc_c89" in | ||
2715 | x) | ||
2716 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2717 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2718 | xno) | ||
2719 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2720 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2721 | *) | ||
2722 | CC="$CC $ac_cv_prog_cc_c89" | ||
2723 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2724 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2725 | esac | ||
2726 | |||
2727 | |||
2728 | ac_ext=c | ||
2729 | ac_cpp='$CPP $CPPFLAGS' | ||
2730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2733 | |||
2734 | ac_aux_dir= | ||
2735 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2736 | if test -f "$ac_dir/install-sh"; then | ||
2737 | ac_aux_dir=$ac_dir | ||
2738 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2739 | break | ||
2740 | elif test -f "$ac_dir/install.sh"; then | ||
2741 | ac_aux_dir=$ac_dir | ||
2742 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2743 | break | ||
2744 | elif test -f "$ac_dir/shtool"; then | ||
2745 | ac_aux_dir=$ac_dir | ||
2746 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2747 | break | ||
2748 | fi | ||
2749 | done | ||
2750 | if test -z "$ac_aux_dir"; then | ||
2751 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2752 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2753 | { (exit 1); exit 1; }; } | ||
2754 | fi | ||
2755 | |||
2756 | # These three variables are undocumented and unsupported, | ||
2757 | # and are intended to be withdrawn in a future Autoconf release. | ||
2758 | # They can cause serious problems if a builder's source tree is in a directory | ||
2759 | # whose full name contains unusual characters. | ||
2760 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2761 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2762 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2763 | |||
2764 | |||
2765 | # Make sure we can run config.sub. | ||
2766 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2767 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2768 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2769 | { (exit 1); exit 1; }; } | ||
2770 | |||
2771 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2772 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2773 | if test "${ac_cv_build+set}" = set; then | ||
2774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2775 | else | ||
2776 | ac_build_alias=$build_alias | ||
2777 | test "x$ac_build_alias" = x && | ||
2778 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2779 | test "x$ac_build_alias" = x && | ||
2780 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2781 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2782 | { (exit 1); exit 1; }; } | ||
2783 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2784 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2785 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2786 | { (exit 1); exit 1; }; } | ||
2787 | |||
2788 | fi | ||
2789 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2790 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2791 | case $ac_cv_build in | ||
2792 | *-*-*) ;; | ||
2793 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2794 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2795 | { (exit 1); exit 1; }; };; | ||
2796 | esac | ||
2797 | build=$ac_cv_build | ||
2798 | ac_save_IFS=$IFS; IFS='-' | ||
2799 | set x $ac_cv_build | ||
2800 | shift | ||
2801 | build_cpu=$1 | ||
2802 | build_vendor=$2 | ||
2803 | shift; shift | ||
2804 | # Remember, the first character of IFS is used to create $*, | ||
2805 | # except with old shells: | ||
2806 | build_os=$* | ||
2807 | IFS=$ac_save_IFS | ||
2808 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2809 | |||
2810 | |||
2811 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2812 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2813 | if test "${ac_cv_host+set}" = set; then | ||
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2815 | else | ||
2816 | if test "x$host_alias" = x; then | ||
2817 | ac_cv_host=$ac_cv_build | ||
2818 | else | ||
2819 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2820 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2821 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2822 | { (exit 1); exit 1; }; } | ||
2823 | fi | ||
2824 | |||
2825 | fi | ||
2826 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2827 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2828 | case $ac_cv_host in | ||
2829 | *-*-*) ;; | ||
2830 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2831 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2832 | { (exit 1); exit 1; }; };; | ||
2833 | esac | ||
2834 | host=$ac_cv_host | ||
2835 | ac_save_IFS=$IFS; IFS='-' | ||
2836 | set x $ac_cv_host | ||
2837 | shift | ||
2838 | host_cpu=$1 | ||
2839 | host_vendor=$2 | ||
2840 | shift; shift | ||
2841 | # Remember, the first character of IFS is used to create $*, | ||
2842 | # except with old shells: | ||
2843 | host_os=$* | ||
2844 | IFS=$ac_save_IFS | ||
2845 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2846 | |||
2847 | |||
2848 | |||
2849 | ac_ext=c | ||
2850 | ac_cpp='$CPP $CPPFLAGS' | ||
2851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2854 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2855 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2856 | # On Suns, sometimes $CPP names a directory. | ||
2857 | if test -n "$CPP" && test -d "$CPP"; then | ||
2858 | CPP= | ||
2859 | fi | ||
2860 | if test -z "$CPP"; then | ||
2861 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2863 | else | ||
2864 | # Double quotes because CPP needs to be expanded | ||
2865 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2866 | do | ||
2867 | ac_preproc_ok=false | ||
2868 | for ac_c_preproc_warn_flag in '' yes | ||
2869 | do | ||
2870 | # Use a header file that comes with gcc, so configuring glibc | ||
2871 | # with a fresh cross-compiler works. | ||
2872 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2873 | # <limits.h> exists even on freestanding compilers. | ||
2874 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2875 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2876 | cat >conftest.$ac_ext <<_ACEOF | ||
2877 | /* confdefs.h. */ | ||
2878 | _ACEOF | ||
2879 | cat confdefs.h >>conftest.$ac_ext | ||
2880 | cat >>conftest.$ac_ext <<_ACEOF | ||
2881 | /* end confdefs.h. */ | ||
2882 | #ifdef __STDC__ | ||
2883 | # include <limits.h> | ||
2884 | #else | ||
2885 | # include <assert.h> | ||
2886 | #endif | ||
2887 | Syntax error | ||
2888 | _ACEOF | ||
2889 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2890 | case "(($ac_try" in | ||
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2892 | *) ac_try_echo=$ac_try;; | ||
2893 | esac | ||
2894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2895 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2896 | ac_status=$? | ||
2897 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2898 | rm -f conftest.er1 | ||
2899 | cat conftest.err >&5 | ||
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2901 | (exit $ac_status); } >/dev/null && { | ||
2902 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2903 | test ! -s conftest.err | ||
2904 | }; then | ||
2905 | : | ||
2906 | else | ||
2907 | echo "$as_me: failed program was:" >&5 | ||
2908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2909 | |||
2910 | # Broken: fails on valid input. | ||
2911 | continue | ||
2912 | fi | ||
2913 | |||
2914 | rm -f conftest.err conftest.$ac_ext | ||
2915 | |||
2916 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2917 | # can be detected and how. | ||
2918 | cat >conftest.$ac_ext <<_ACEOF | ||
2919 | /* confdefs.h. */ | ||
2920 | _ACEOF | ||
2921 | cat confdefs.h >>conftest.$ac_ext | ||
2922 | cat >>conftest.$ac_ext <<_ACEOF | ||
2923 | /* end confdefs.h. */ | ||
2924 | #include <ac_nonexistent.h> | ||
2925 | _ACEOF | ||
2926 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2927 | case "(($ac_try" in | ||
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2929 | *) ac_try_echo=$ac_try;; | ||
2930 | esac | ||
2931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2933 | ac_status=$? | ||
2934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2935 | rm -f conftest.er1 | ||
2936 | cat conftest.err >&5 | ||
2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2938 | (exit $ac_status); } >/dev/null && { | ||
2939 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2940 | test ! -s conftest.err | ||
2941 | }; then | ||
2942 | # Broken: success on invalid input. | ||
2943 | continue | ||
2944 | else | ||
2945 | echo "$as_me: failed program was:" >&5 | ||
2946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2947 | |||
2948 | # Passes both tests. | ||
2949 | ac_preproc_ok=: | ||
2950 | break | ||
2951 | fi | ||
2952 | |||
2953 | rm -f conftest.err conftest.$ac_ext | ||
2954 | |||
2955 | done | ||
2956 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2957 | rm -f conftest.err conftest.$ac_ext | ||
2958 | if $ac_preproc_ok; then | ||
2959 | break | ||
2960 | fi | ||
2961 | |||
2962 | done | ||
2963 | ac_cv_prog_CPP=$CPP | ||
2964 | |||
2965 | fi | ||
2966 | CPP=$ac_cv_prog_CPP | ||
2967 | else | ||
2968 | ac_cv_prog_CPP=$CPP | ||
2969 | fi | ||
2970 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2971 | echo "${ECHO_T}$CPP" >&6; } | ||
2972 | ac_preproc_ok=false | ||
2973 | for ac_c_preproc_warn_flag in '' yes | ||
2974 | do | ||
2975 | # Use a header file that comes with gcc, so configuring glibc | ||
2976 | # with a fresh cross-compiler works. | ||
2977 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2978 | # <limits.h> exists even on freestanding compilers. | ||
2979 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2980 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2981 | cat >conftest.$ac_ext <<_ACEOF | ||
2982 | /* confdefs.h. */ | ||
2983 | _ACEOF | ||
2984 | cat confdefs.h >>conftest.$ac_ext | ||
2985 | cat >>conftest.$ac_ext <<_ACEOF | ||
2986 | /* end confdefs.h. */ | ||
2987 | #ifdef __STDC__ | ||
2988 | # include <limits.h> | ||
2989 | #else | ||
2990 | # include <assert.h> | ||
2991 | #endif | ||
2992 | Syntax error | ||
2993 | _ACEOF | ||
2994 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2995 | case "(($ac_try" in | ||
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2997 | *) ac_try_echo=$ac_try;; | ||
2998 | esac | ||
2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3001 | ac_status=$? | ||
3002 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3003 | rm -f conftest.er1 | ||
3004 | cat conftest.err >&5 | ||
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3006 | (exit $ac_status); } >/dev/null && { | ||
3007 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3008 | test ! -s conftest.err | ||
3009 | }; then | ||
3010 | : | ||
3011 | else | ||
3012 | echo "$as_me: failed program was:" >&5 | ||
3013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3014 | |||
3015 | # Broken: fails on valid input. | ||
3016 | continue | ||
3017 | fi | ||
3018 | |||
3019 | rm -f conftest.err conftest.$ac_ext | ||
3020 | |||
3021 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3022 | # can be detected and how. | ||
3023 | cat >conftest.$ac_ext <<_ACEOF | ||
3024 | /* confdefs.h. */ | ||
3025 | _ACEOF | ||
3026 | cat confdefs.h >>conftest.$ac_ext | ||
3027 | cat >>conftest.$ac_ext <<_ACEOF | ||
3028 | /* end confdefs.h. */ | ||
3029 | #include <ac_nonexistent.h> | ||
3030 | _ACEOF | ||
3031 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3032 | case "(($ac_try" in | ||
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3034 | *) ac_try_echo=$ac_try;; | ||
3035 | esac | ||
3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3038 | ac_status=$? | ||
3039 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3040 | rm -f conftest.er1 | ||
3041 | cat conftest.err >&5 | ||
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3043 | (exit $ac_status); } >/dev/null && { | ||
3044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3045 | test ! -s conftest.err | ||
3046 | }; then | ||
3047 | # Broken: success on invalid input. | ||
3048 | continue | ||
3049 | else | ||
3050 | echo "$as_me: failed program was:" >&5 | ||
3051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3052 | |||
3053 | # Passes both tests. | ||
3054 | ac_preproc_ok=: | ||
3055 | break | ||
3056 | fi | ||
3057 | |||
3058 | rm -f conftest.err conftest.$ac_ext | ||
3059 | |||
3060 | done | ||
3061 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3062 | rm -f conftest.err conftest.$ac_ext | ||
3063 | if $ac_preproc_ok; then | ||
3064 | : | ||
3065 | else | ||
3066 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3067 | See \`config.log' for more details." >&5 | ||
3068 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3069 | See \`config.log' for more details." >&2;} | ||
3070 | { (exit 1); exit 1; }; } | ||
3071 | fi | ||
3072 | |||
3073 | ac_ext=c | ||
3074 | ac_cpp='$CPP $CPPFLAGS' | ||
3075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3078 | |||
3079 | |||
3080 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3081 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3082 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3084 | else | ||
3085 | # Extract the first word of "grep ggrep" to use in msg output | ||
3086 | if test -z "$GREP"; then | ||
3087 | set dummy grep ggrep; ac_prog_name=$2 | ||
3088 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3090 | else | ||
3091 | ac_path_GREP_found=false | ||
3092 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3094 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3095 | do | ||
3096 | IFS=$as_save_IFS | ||
3097 | test -z "$as_dir" && as_dir=. | ||
3098 | for ac_prog in grep ggrep; do | ||
3099 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3100 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3101 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3102 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3103 | # Check for GNU $ac_path_GREP | ||
3104 | case `"$ac_path_GREP" --version 2>&1` in | ||
3105 | *GNU*) | ||
3106 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3107 | *) | ||
3108 | ac_count=0 | ||
3109 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3110 | while : | ||
3111 | do | ||
3112 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3113 | mv "conftest.tmp" "conftest.in" | ||
3114 | cp "conftest.in" "conftest.nl" | ||
3115 | echo 'GREP' >> "conftest.nl" | ||
3116 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3117 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3118 | ac_count=`expr $ac_count + 1` | ||
3119 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3120 | # Best one so far, save it but keep looking for a better one | ||
3121 | ac_cv_path_GREP="$ac_path_GREP" | ||
3122 | ac_path_GREP_max=$ac_count | ||
3123 | fi | ||
3124 | # 10*(2^10) chars as input seems more than enough | ||
3125 | test $ac_count -gt 10 && break | ||
3126 | done | ||
3127 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3128 | esac | ||
3129 | |||
3130 | |||
3131 | $ac_path_GREP_found && break 3 | ||
3132 | done | ||
3133 | done | ||
3134 | |||
3135 | done | ||
3136 | IFS=$as_save_IFS | ||
3137 | |||
3138 | |||
3139 | fi | ||
3140 | |||
3141 | GREP="$ac_cv_path_GREP" | ||
3142 | if test -z "$GREP"; then | ||
3143 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3144 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3145 | { (exit 1); exit 1; }; } | ||
3146 | fi | ||
3147 | |||
3148 | else | ||
3149 | ac_cv_path_GREP=$GREP | ||
3150 | fi | ||
3151 | |||
3152 | |||
3153 | fi | ||
3154 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3155 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3156 | GREP="$ac_cv_path_GREP" | ||
3157 | |||
3158 | |||
3159 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3160 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3161 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3163 | else | ||
3164 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3165 | then ac_cv_path_EGREP="$GREP -E" | ||
3166 | else | ||
3167 | # Extract the first word of "egrep" to use in msg output | ||
3168 | if test -z "$EGREP"; then | ||
3169 | set dummy egrep; ac_prog_name=$2 | ||
3170 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3172 | else | ||
3173 | ac_path_EGREP_found=false | ||
3174 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3176 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3177 | do | ||
3178 | IFS=$as_save_IFS | ||
3179 | test -z "$as_dir" && as_dir=. | ||
3180 | for ac_prog in egrep; do | ||
3181 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3182 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3183 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3184 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3185 | # Check for GNU $ac_path_EGREP | ||
3186 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3187 | *GNU*) | ||
3188 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3189 | *) | ||
3190 | ac_count=0 | ||
3191 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3192 | while : | ||
3193 | do | ||
3194 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3195 | mv "conftest.tmp" "conftest.in" | ||
3196 | cp "conftest.in" "conftest.nl" | ||
3197 | echo 'EGREP' >> "conftest.nl" | ||
3198 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3199 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3200 | ac_count=`expr $ac_count + 1` | ||
3201 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3202 | # Best one so far, save it but keep looking for a better one | ||
3203 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3204 | ac_path_EGREP_max=$ac_count | ||
3205 | fi | ||
3206 | # 10*(2^10) chars as input seems more than enough | ||
3207 | test $ac_count -gt 10 && break | ||
3208 | done | ||
3209 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3210 | esac | ||
3211 | |||
3212 | |||
3213 | $ac_path_EGREP_found && break 3 | ||
3214 | done | ||
3215 | done | ||
3216 | |||
3217 | done | ||
3218 | IFS=$as_save_IFS | ||
3219 | |||
3220 | |||
3221 | fi | ||
3222 | |||
3223 | EGREP="$ac_cv_path_EGREP" | ||
3224 | if test -z "$EGREP"; then | ||
3225 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3226 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3227 | { (exit 1); exit 1; }; } | ||
3228 | fi | ||
3229 | |||
3230 | else | ||
3231 | ac_cv_path_EGREP=$EGREP | ||
3232 | fi | ||
3233 | |||
3234 | |||
3235 | fi | ||
3236 | fi | ||
3237 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3238 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3239 | EGREP="$ac_cv_path_EGREP" | ||
3240 | |||
3241 | |||
3242 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3243 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3244 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3246 | else | ||
3247 | cat >conftest.$ac_ext <<_ACEOF | ||
3248 | /* confdefs.h. */ | ||
3249 | _ACEOF | ||
3250 | cat confdefs.h >>conftest.$ac_ext | ||
3251 | cat >>conftest.$ac_ext <<_ACEOF | ||
3252 | /* end confdefs.h. */ | ||
3253 | #include <stdlib.h> | ||
3254 | #include <stdarg.h> | ||
3255 | #include <string.h> | ||
3256 | #include <float.h> | ||
3257 | |||
3258 | int | ||
3259 | main () | ||
3260 | { | ||
3261 | |||
3262 | ; | ||
3263 | return 0; | ||
3264 | } | ||
3265 | _ACEOF | ||
3266 | rm -f conftest.$ac_objext | ||
3267 | if { (ac_try="$ac_compile" | ||
3268 | case "(($ac_try" in | ||
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3270 | *) ac_try_echo=$ac_try;; | ||
3271 | esac | ||
3272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3273 | (eval "$ac_compile") 2>conftest.er1 | ||
3274 | ac_status=$? | ||
3275 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3276 | rm -f conftest.er1 | ||
3277 | cat conftest.err >&5 | ||
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3279 | (exit $ac_status); } && { | ||
3280 | test -z "$ac_c_werror_flag" || | ||
3281 | test ! -s conftest.err | ||
3282 | } && test -s conftest.$ac_objext; then | ||
3283 | ac_cv_header_stdc=yes | ||
3284 | else | ||
3285 | echo "$as_me: failed program was:" >&5 | ||
3286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3287 | |||
3288 | ac_cv_header_stdc=no | ||
3289 | fi | ||
3290 | |||
3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3292 | |||
3293 | if test $ac_cv_header_stdc = yes; then | ||
3294 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3295 | cat >conftest.$ac_ext <<_ACEOF | ||
3296 | /* confdefs.h. */ | ||
3297 | _ACEOF | ||
3298 | cat confdefs.h >>conftest.$ac_ext | ||
3299 | cat >>conftest.$ac_ext <<_ACEOF | ||
3300 | /* end confdefs.h. */ | ||
3301 | #include <string.h> | ||
3302 | |||
3303 | _ACEOF | ||
3304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3305 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3306 | : | ||
3307 | else | ||
3308 | ac_cv_header_stdc=no | ||
3309 | fi | ||
3310 | rm -f conftest* | ||
3311 | |||
3312 | fi | ||
3313 | |||
3314 | if test $ac_cv_header_stdc = yes; then | ||
3315 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3316 | cat >conftest.$ac_ext <<_ACEOF | ||
3317 | /* confdefs.h. */ | ||
3318 | _ACEOF | ||
3319 | cat confdefs.h >>conftest.$ac_ext | ||
3320 | cat >>conftest.$ac_ext <<_ACEOF | ||
3321 | /* end confdefs.h. */ | ||
3322 | #include <stdlib.h> | ||
3323 | |||
3324 | _ACEOF | ||
3325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3326 | $EGREP "free" >/dev/null 2>&1; then | ||
3327 | : | ||
3328 | else | ||
3329 | ac_cv_header_stdc=no | ||
3330 | fi | ||
3331 | rm -f conftest* | ||
3332 | |||
3333 | fi | ||
3334 | |||
3335 | if test $ac_cv_header_stdc = yes; then | ||
3336 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3337 | if test "$cross_compiling" = yes; then | ||
3338 | : | ||
3339 | else | ||
3340 | cat >conftest.$ac_ext <<_ACEOF | ||
3341 | /* confdefs.h. */ | ||
3342 | _ACEOF | ||
3343 | cat confdefs.h >>conftest.$ac_ext | ||
3344 | cat >>conftest.$ac_ext <<_ACEOF | ||
3345 | /* end confdefs.h. */ | ||
3346 | #include <ctype.h> | ||
3347 | #include <stdlib.h> | ||
3348 | #if ((' ' & 0x0FF) == 0x020) | ||
3349 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3350 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3351 | #else | ||
3352 | # define ISLOWER(c) \ | ||
3353 | (('a' <= (c) && (c) <= 'i') \ | ||
3354 | || ('j' <= (c) && (c) <= 'r') \ | ||
3355 | || ('s' <= (c) && (c) <= 'z')) | ||
3356 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3357 | #endif | ||
3358 | |||
3359 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3360 | int | ||
3361 | main () | ||
3362 | { | ||
3363 | int i; | ||
3364 | for (i = 0; i < 256; i++) | ||
3365 | if (XOR (islower (i), ISLOWER (i)) | ||
3366 | || toupper (i) != TOUPPER (i)) | ||
3367 | return 2; | ||
3368 | return 0; | ||
3369 | } | ||
3370 | _ACEOF | ||
3371 | rm -f conftest$ac_exeext | ||
3372 | if { (ac_try="$ac_link" | ||
3373 | case "(($ac_try" in | ||
3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3375 | *) ac_try_echo=$ac_try;; | ||
3376 | esac | ||
3377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3378 | (eval "$ac_link") 2>&5 | ||
3379 | ac_status=$? | ||
3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3382 | { (case "(($ac_try" in | ||
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3384 | *) ac_try_echo=$ac_try;; | ||
3385 | esac | ||
3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3387 | (eval "$ac_try") 2>&5 | ||
3388 | ac_status=$? | ||
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3390 | (exit $ac_status); }; }; then | ||
3391 | : | ||
3392 | else | ||
3393 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3394 | echo "$as_me: failed program was:" >&5 | ||
3395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3396 | |||
3397 | ( exit $ac_status ) | ||
3398 | ac_cv_header_stdc=no | ||
3399 | fi | ||
3400 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3401 | fi | ||
3402 | |||
3403 | |||
3404 | fi | ||
3405 | fi | ||
3406 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3407 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3408 | if test $ac_cv_header_stdc = yes; then | ||
3409 | |||
3410 | cat >>confdefs.h <<\_ACEOF | ||
3411 | #define STDC_HEADERS 1 | ||
3412 | _ACEOF | ||
3413 | |||
3414 | fi | ||
3415 | |||
3416 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3417 | |||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3427 | inttypes.h stdint.h unistd.h | ||
3428 | do | ||
3429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3430 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3432 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3434 | else | ||
3435 | cat >conftest.$ac_ext <<_ACEOF | ||
3436 | /* confdefs.h. */ | ||
3437 | _ACEOF | ||
3438 | cat confdefs.h >>conftest.$ac_ext | ||
3439 | cat >>conftest.$ac_ext <<_ACEOF | ||
3440 | /* end confdefs.h. */ | ||
3441 | $ac_includes_default | ||
3442 | |||
3443 | #include <$ac_header> | ||
3444 | _ACEOF | ||
3445 | rm -f conftest.$ac_objext | ||
3446 | if { (ac_try="$ac_compile" | ||
3447 | case "(($ac_try" in | ||
3448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3449 | *) ac_try_echo=$ac_try;; | ||
3450 | esac | ||
3451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3452 | (eval "$ac_compile") 2>conftest.er1 | ||
3453 | ac_status=$? | ||
3454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3455 | rm -f conftest.er1 | ||
3456 | cat conftest.err >&5 | ||
3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3458 | (exit $ac_status); } && { | ||
3459 | test -z "$ac_c_werror_flag" || | ||
3460 | test ! -s conftest.err | ||
3461 | } && test -s conftest.$ac_objext; then | ||
3462 | eval "$as_ac_Header=yes" | ||
3463 | else | ||
3464 | echo "$as_me: failed program was:" >&5 | ||
3465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3466 | |||
3467 | eval "$as_ac_Header=no" | ||
3468 | fi | ||
3469 | |||
3470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3471 | fi | ||
3472 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3474 | echo "${ECHO_T}$ac_res" >&6; } | ||
3475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3476 | cat >>confdefs.h <<_ACEOF | ||
3477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3478 | _ACEOF | ||
3479 | |||
3480 | fi | ||
3481 | |||
3482 | done | ||
3483 | |||
3484 | |||
3485 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3486 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3487 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3489 | else | ||
3490 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3491 | cat >conftest.$ac_ext <<_ACEOF | ||
3492 | /* confdefs.h. */ | ||
3493 | _ACEOF | ||
3494 | cat confdefs.h >>conftest.$ac_ext | ||
3495 | cat >>conftest.$ac_ext <<_ACEOF | ||
3496 | /* end confdefs.h. */ | ||
3497 | #include <sys/types.h> | ||
3498 | #include <sys/param.h> | ||
3499 | |||
3500 | int | ||
3501 | main () | ||
3502 | { | ||
3503 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3504 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3505 | bogus endian macros | ||
3506 | #endif | ||
3507 | |||
3508 | ; | ||
3509 | return 0; | ||
3510 | } | ||
3511 | _ACEOF | ||
3512 | rm -f conftest.$ac_objext | ||
3513 | if { (ac_try="$ac_compile" | ||
3514 | case "(($ac_try" in | ||
3515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3516 | *) ac_try_echo=$ac_try;; | ||
3517 | esac | ||
3518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3519 | (eval "$ac_compile") 2>conftest.er1 | ||
3520 | ac_status=$? | ||
3521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3522 | rm -f conftest.er1 | ||
3523 | cat conftest.err >&5 | ||
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3525 | (exit $ac_status); } && { | ||
3526 | test -z "$ac_c_werror_flag" || | ||
3527 | test ! -s conftest.err | ||
3528 | } && test -s conftest.$ac_objext; then | ||
3529 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3530 | cat >conftest.$ac_ext <<_ACEOF | ||
3531 | /* confdefs.h. */ | ||
3532 | _ACEOF | ||
3533 | cat confdefs.h >>conftest.$ac_ext | ||
3534 | cat >>conftest.$ac_ext <<_ACEOF | ||
3535 | /* end confdefs.h. */ | ||
3536 | #include <sys/types.h> | ||
3537 | #include <sys/param.h> | ||
3538 | |||
3539 | int | ||
3540 | main () | ||
3541 | { | ||
3542 | #if BYTE_ORDER != BIG_ENDIAN | ||
3543 | not big endian | ||
3544 | #endif | ||
3545 | |||
3546 | ; | ||
3547 | return 0; | ||
3548 | } | ||
3549 | _ACEOF | ||
3550 | rm -f conftest.$ac_objext | ||
3551 | if { (ac_try="$ac_compile" | ||
3552 | case "(($ac_try" in | ||
3553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3554 | *) ac_try_echo=$ac_try;; | ||
3555 | esac | ||
3556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3557 | (eval "$ac_compile") 2>conftest.er1 | ||
3558 | ac_status=$? | ||
3559 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3560 | rm -f conftest.er1 | ||
3561 | cat conftest.err >&5 | ||
3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3563 | (exit $ac_status); } && { | ||
3564 | test -z "$ac_c_werror_flag" || | ||
3565 | test ! -s conftest.err | ||
3566 | } && test -s conftest.$ac_objext; then | ||
3567 | ac_cv_c_bigendian=yes | ||
3568 | else | ||
3569 | echo "$as_me: failed program was:" >&5 | ||
3570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3571 | |||
3572 | ac_cv_c_bigendian=no | ||
3573 | fi | ||
3574 | |||
3575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3576 | else | ||
3577 | echo "$as_me: failed program was:" >&5 | ||
3578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3579 | |||
3580 | # It does not; compile a test program. | ||
3581 | if test "$cross_compiling" = yes; then | ||
3582 | # try to guess the endianness by grepping values into an object file | ||
3583 | ac_cv_c_bigendian=unknown | ||
3584 | cat >conftest.$ac_ext <<_ACEOF | ||
3585 | /* confdefs.h. */ | ||
3586 | _ACEOF | ||
3587 | cat confdefs.h >>conftest.$ac_ext | ||
3588 | cat >>conftest.$ac_ext <<_ACEOF | ||
3589 | /* end confdefs.h. */ | ||
3590 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3591 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3592 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3593 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3594 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3595 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3596 | int | ||
3597 | main () | ||
3598 | { | ||
3599 | _ascii (); _ebcdic (); | ||
3600 | ; | ||
3601 | return 0; | ||
3602 | } | ||
3603 | _ACEOF | ||
3604 | rm -f conftest.$ac_objext | ||
3605 | if { (ac_try="$ac_compile" | ||
3606 | case "(($ac_try" in | ||
3607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3608 | *) ac_try_echo=$ac_try;; | ||
3609 | esac | ||
3610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3611 | (eval "$ac_compile") 2>conftest.er1 | ||
3612 | ac_status=$? | ||
3613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3614 | rm -f conftest.er1 | ||
3615 | cat conftest.err >&5 | ||
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3617 | (exit $ac_status); } && { | ||
3618 | test -z "$ac_c_werror_flag" || | ||
3619 | test ! -s conftest.err | ||
3620 | } && test -s conftest.$ac_objext; then | ||
3621 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3622 | ac_cv_c_bigendian=yes | ||
3623 | fi | ||
3624 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3625 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3626 | ac_cv_c_bigendian=no | ||
3627 | else | ||
3628 | # finding both strings is unlikely to happen, but who knows? | ||
3629 | ac_cv_c_bigendian=unknown | ||
3630 | fi | ||
3631 | fi | ||
3632 | else | ||
3633 | echo "$as_me: failed program was:" >&5 | ||
3634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3635 | |||
3636 | |||
3637 | fi | ||
3638 | |||
3639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3640 | else | ||
3641 | cat >conftest.$ac_ext <<_ACEOF | ||
3642 | /* confdefs.h. */ | ||
3643 | _ACEOF | ||
3644 | cat confdefs.h >>conftest.$ac_ext | ||
3645 | cat >>conftest.$ac_ext <<_ACEOF | ||
3646 | /* end confdefs.h. */ | ||
3647 | $ac_includes_default | ||
3648 | int | ||
3649 | main () | ||
3650 | { | ||
3651 | |||
3652 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3653 | union | ||
3654 | { | ||
3655 | long int l; | ||
3656 | char c[sizeof (long int)]; | ||
3657 | } u; | ||
3658 | u.l = 1; | ||
3659 | return u.c[sizeof (long int) - 1] == 1; | ||
3660 | |||
3661 | ; | ||
3662 | return 0; | ||
3663 | } | ||
3664 | _ACEOF | ||
3665 | rm -f conftest$ac_exeext | ||
3666 | if { (ac_try="$ac_link" | ||
3667 | case "(($ac_try" in | ||
3668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3669 | *) ac_try_echo=$ac_try;; | ||
3670 | esac | ||
3671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3672 | (eval "$ac_link") 2>&5 | ||
3673 | ac_status=$? | ||
3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3676 | { (case "(($ac_try" in | ||
3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3678 | *) ac_try_echo=$ac_try;; | ||
3679 | esac | ||
3680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3681 | (eval "$ac_try") 2>&5 | ||
3682 | ac_status=$? | ||
3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3684 | (exit $ac_status); }; }; then | ||
3685 | ac_cv_c_bigendian=no | ||
3686 | else | ||
3687 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3688 | echo "$as_me: failed program was:" >&5 | ||
3689 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3690 | |||
3691 | ( exit $ac_status ) | ||
3692 | ac_cv_c_bigendian=yes | ||
3693 | fi | ||
3694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3695 | fi | ||
3696 | |||
3697 | |||
3698 | fi | ||
3699 | |||
3700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3701 | fi | ||
3702 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3703 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3704 | case $ac_cv_c_bigendian in | ||
3705 | yes) | ||
3706 | |||
3707 | cat >>confdefs.h <<\_ACEOF | ||
3708 | #define WORDS_BIGENDIAN 1 | ||
3709 | _ACEOF | ||
3710 | ;; | ||
3711 | no) | ||
3712 | ;; | ||
3713 | *) | ||
3714 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3715 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3716 | echo "$as_me: error: unknown endianness | ||
3717 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3718 | { (exit 1); exit 1; }; } ;; | ||
3719 | esac | ||
3720 | |||
3721 | |||
3722 | # Checks for programs. | ||
3723 | for ac_prog in gawk mawk nawk awk | ||
3724 | do | ||
3725 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3726 | set dummy $ac_prog; ac_word=$2 | ||
3727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3729 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3731 | else | ||
3732 | if test -n "$AWK"; then | ||
3733 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3734 | else | ||
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3736 | for as_dir in $PATH | ||
3737 | do | ||
3738 | IFS=$as_save_IFS | ||
3739 | test -z "$as_dir" && as_dir=. | ||
3740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3742 | ac_cv_prog_AWK="$ac_prog" | ||
3743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3744 | break 2 | ||
3745 | fi | ||
3746 | done | ||
3747 | done | ||
3748 | IFS=$as_save_IFS | ||
3749 | |||
3750 | fi | ||
3751 | fi | ||
3752 | AWK=$ac_cv_prog_AWK | ||
3753 | if test -n "$AWK"; then | ||
3754 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3755 | echo "${ECHO_T}$AWK" >&6; } | ||
3756 | else | ||
3757 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3758 | echo "${ECHO_T}no" >&6; } | ||
3759 | fi | ||
3760 | |||
3761 | |||
3762 | test -n "$AWK" && break | ||
3763 | done | ||
3764 | |||
3765 | ac_ext=c | ||
3766 | ac_cpp='$CPP $CPPFLAGS' | ||
3767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3770 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3771 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3772 | # On Suns, sometimes $CPP names a directory. | ||
3773 | if test -n "$CPP" && test -d "$CPP"; then | ||
3774 | CPP= | ||
3775 | fi | ||
3776 | if test -z "$CPP"; then | ||
3777 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3779 | else | ||
3780 | # Double quotes because CPP needs to be expanded | ||
3781 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3782 | do | ||
3783 | ac_preproc_ok=false | ||
3784 | for ac_c_preproc_warn_flag in '' yes | ||
3785 | do | ||
3786 | # Use a header file that comes with gcc, so configuring glibc | ||
3787 | # with a fresh cross-compiler works. | ||
3788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3789 | # <limits.h> exists even on freestanding compilers. | ||
3790 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3791 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3792 | cat >conftest.$ac_ext <<_ACEOF | ||
3793 | /* confdefs.h. */ | ||
3794 | _ACEOF | ||
3795 | cat confdefs.h >>conftest.$ac_ext | ||
3796 | cat >>conftest.$ac_ext <<_ACEOF | ||
3797 | /* end confdefs.h. */ | ||
3798 | #ifdef __STDC__ | ||
3799 | # include <limits.h> | ||
3800 | #else | ||
3801 | # include <assert.h> | ||
3802 | #endif | ||
3803 | Syntax error | ||
3804 | _ACEOF | ||
3805 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3806 | case "(($ac_try" in | ||
3807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3808 | *) ac_try_echo=$ac_try;; | ||
3809 | esac | ||
3810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3812 | ac_status=$? | ||
3813 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3814 | rm -f conftest.er1 | ||
3815 | cat conftest.err >&5 | ||
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3817 | (exit $ac_status); } >/dev/null && { | ||
3818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3819 | test ! -s conftest.err | ||
3820 | }; then | ||
3821 | : | ||
3822 | else | ||
3823 | echo "$as_me: failed program was:" >&5 | ||
3824 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3825 | |||
3826 | # Broken: fails on valid input. | ||
3827 | continue | ||
3828 | fi | ||
3829 | |||
3830 | rm -f conftest.err conftest.$ac_ext | ||
3831 | |||
3832 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3833 | # can be detected and how. | ||
3834 | cat >conftest.$ac_ext <<_ACEOF | ||
3835 | /* confdefs.h. */ | ||
3836 | _ACEOF | ||
3837 | cat confdefs.h >>conftest.$ac_ext | ||
3838 | cat >>conftest.$ac_ext <<_ACEOF | ||
3839 | /* end confdefs.h. */ | ||
3840 | #include <ac_nonexistent.h> | ||
3841 | _ACEOF | ||
3842 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3843 | case "(($ac_try" in | ||
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3845 | *) ac_try_echo=$ac_try;; | ||
3846 | esac | ||
3847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3849 | ac_status=$? | ||
3850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3851 | rm -f conftest.er1 | ||
3852 | cat conftest.err >&5 | ||
3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3854 | (exit $ac_status); } >/dev/null && { | ||
3855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3856 | test ! -s conftest.err | ||
3857 | }; then | ||
3858 | # Broken: success on invalid input. | ||
3859 | continue | ||
3860 | else | ||
3861 | echo "$as_me: failed program was:" >&5 | ||
3862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3863 | |||
3864 | # Passes both tests. | ||
3865 | ac_preproc_ok=: | ||
3866 | break | ||
3867 | fi | ||
3868 | |||
3869 | rm -f conftest.err conftest.$ac_ext | ||
3870 | |||
3871 | done | ||
3872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3873 | rm -f conftest.err conftest.$ac_ext | ||
3874 | if $ac_preproc_ok; then | ||
3875 | break | ||
3876 | fi | ||
3877 | |||
3878 | done | ||
3879 | ac_cv_prog_CPP=$CPP | ||
3880 | |||
3881 | fi | ||
3882 | CPP=$ac_cv_prog_CPP | ||
3883 | else | ||
3884 | ac_cv_prog_CPP=$CPP | ||
3885 | fi | ||
3886 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3887 | echo "${ECHO_T}$CPP" >&6; } | ||
3888 | ac_preproc_ok=false | ||
3889 | for ac_c_preproc_warn_flag in '' yes | ||
3890 | do | ||
3891 | # Use a header file that comes with gcc, so configuring glibc | ||
3892 | # with a fresh cross-compiler works. | ||
3893 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3894 | # <limits.h> exists even on freestanding compilers. | ||
3895 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3896 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3897 | cat >conftest.$ac_ext <<_ACEOF | ||
3898 | /* confdefs.h. */ | ||
3899 | _ACEOF | ||
3900 | cat confdefs.h >>conftest.$ac_ext | ||
3901 | cat >>conftest.$ac_ext <<_ACEOF | ||
3902 | /* end confdefs.h. */ | ||
3903 | #ifdef __STDC__ | ||
3904 | # include <limits.h> | ||
3905 | #else | ||
3906 | # include <assert.h> | ||
3907 | #endif | ||
3908 | Syntax error | ||
3909 | _ACEOF | ||
3910 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3911 | case "(($ac_try" in | ||
3912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3913 | *) ac_try_echo=$ac_try;; | ||
3914 | esac | ||
3915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3916 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3917 | ac_status=$? | ||
3918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3919 | rm -f conftest.er1 | ||
3920 | cat conftest.err >&5 | ||
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3922 | (exit $ac_status); } >/dev/null && { | ||
3923 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3924 | test ! -s conftest.err | ||
3925 | }; then | ||
3926 | : | ||
3927 | else | ||
3928 | echo "$as_me: failed program was:" >&5 | ||
3929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3930 | |||
3931 | # Broken: fails on valid input. | ||
3932 | continue | ||
3933 | fi | ||
3934 | |||
3935 | rm -f conftest.err conftest.$ac_ext | ||
3936 | |||
3937 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3938 | # can be detected and how. | ||
3939 | cat >conftest.$ac_ext <<_ACEOF | ||
3940 | /* confdefs.h. */ | ||
3941 | _ACEOF | ||
3942 | cat confdefs.h >>conftest.$ac_ext | ||
3943 | cat >>conftest.$ac_ext <<_ACEOF | ||
3944 | /* end confdefs.h. */ | ||
3945 | #include <ac_nonexistent.h> | ||
3946 | _ACEOF | ||
3947 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3948 | case "(($ac_try" in | ||
3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3950 | *) ac_try_echo=$ac_try;; | ||
3951 | esac | ||
3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3953 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3954 | ac_status=$? | ||
3955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3956 | rm -f conftest.er1 | ||
3957 | cat conftest.err >&5 | ||
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3959 | (exit $ac_status); } >/dev/null && { | ||
3960 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3961 | test ! -s conftest.err | ||
3962 | }; then | ||
3963 | # Broken: success on invalid input. | ||
3964 | continue | ||
3965 | else | ||
3966 | echo "$as_me: failed program was:" >&5 | ||
3967 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3968 | |||
3969 | # Passes both tests. | ||
3970 | ac_preproc_ok=: | ||
3971 | break | ||
3972 | fi | ||
3973 | |||
3974 | rm -f conftest.err conftest.$ac_ext | ||
3975 | |||
3976 | done | ||
3977 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3978 | rm -f conftest.err conftest.$ac_ext | ||
3979 | if $ac_preproc_ok; then | ||
3980 | : | ||
3981 | else | ||
3982 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3983 | See \`config.log' for more details." >&5 | ||
3984 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3985 | See \`config.log' for more details." >&2;} | ||
3986 | { (exit 1); exit 1; }; } | ||
3987 | fi | ||
3988 | |||
3989 | ac_ext=c | ||
3990 | ac_cpp='$CPP $CPPFLAGS' | ||
3991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3994 | |||
3995 | if test -n "$ac_tool_prefix"; then | ||
3996 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
3997 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
3998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4000 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4002 | else | ||
4003 | if test -n "$RANLIB"; then | ||
4004 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4005 | else | ||
4006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4007 | for as_dir in $PATH | ||
4008 | do | ||
4009 | IFS=$as_save_IFS | ||
4010 | test -z "$as_dir" && as_dir=. | ||
4011 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4013 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4015 | break 2 | ||
4016 | fi | ||
4017 | done | ||
4018 | done | ||
4019 | IFS=$as_save_IFS | ||
4020 | |||
4021 | fi | ||
4022 | fi | ||
4023 | RANLIB=$ac_cv_prog_RANLIB | ||
4024 | if test -n "$RANLIB"; then | ||
4025 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4026 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4027 | else | ||
4028 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4029 | echo "${ECHO_T}no" >&6; } | ||
4030 | fi | ||
4031 | |||
4032 | |||
4033 | fi | ||
4034 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4035 | ac_ct_RANLIB=$RANLIB | ||
4036 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4037 | set dummy ranlib; ac_word=$2 | ||
4038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4040 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4042 | else | ||
4043 | if test -n "$ac_ct_RANLIB"; then | ||
4044 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4045 | else | ||
4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4047 | for as_dir in $PATH | ||
4048 | do | ||
4049 | IFS=$as_save_IFS | ||
4050 | test -z "$as_dir" && as_dir=. | ||
4051 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4053 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4055 | break 2 | ||
4056 | fi | ||
4057 | done | ||
4058 | done | ||
4059 | IFS=$as_save_IFS | ||
4060 | |||
4061 | fi | ||
4062 | fi | ||
4063 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4064 | if test -n "$ac_ct_RANLIB"; then | ||
4065 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4066 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4067 | else | ||
4068 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4069 | echo "${ECHO_T}no" >&6; } | ||
4070 | fi | ||
4071 | |||
4072 | if test "x$ac_ct_RANLIB" = x; then | ||
4073 | RANLIB=":" | ||
4074 | else | ||
4075 | case $cross_compiling:$ac_tool_warned in | ||
4076 | yes:) | ||
4077 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4078 | whose name does not start with the host triplet. If you think this | ||
4079 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4080 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4081 | whose name does not start with the host triplet. If you think this | ||
4082 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4083 | ac_tool_warned=yes ;; | ||
4084 | esac | ||
4085 | RANLIB=$ac_ct_RANLIB | ||
4086 | fi | ||
4087 | else | ||
4088 | RANLIB="$ac_cv_prog_RANLIB" | ||
4089 | fi | ||
4090 | |||
4091 | # Find a good install program. We prefer a C program (faster), | ||
4092 | # so one script is as good as another. But avoid the broken or | ||
4093 | # incompatible versions: | ||
4094 | # SysV /etc/install, /usr/sbin/install | ||
4095 | # SunOS /usr/etc/install | ||
4096 | # IRIX /sbin/install | ||
4097 | # AIX /bin/install | ||
4098 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4099 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4100 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4101 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4102 | # OS/2's system install, which has a completely different semantic | ||
4103 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4104 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4105 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4106 | if test -z "$INSTALL"; then | ||
4107 | if test "${ac_cv_path_install+set}" = set; then | ||
4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4109 | else | ||
4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4111 | for as_dir in $PATH | ||
4112 | do | ||
4113 | IFS=$as_save_IFS | ||
4114 | test -z "$as_dir" && as_dir=. | ||
4115 | # Account for people who put trailing slashes in PATH elements. | ||
4116 | case $as_dir/ in | ||
4117 | ./ | .// | /cC/* | \ | ||
4118 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4119 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4120 | /usr/ucb/* ) ;; | ||
4121 | *) | ||
4122 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4123 | # Don't use installbsd from OSF since it installs stuff as root | ||
4124 | # by default. | ||
4125 | for ac_prog in ginstall scoinst install; do | ||
4126 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4127 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4128 | if test $ac_prog = install && | ||
4129 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4130 | # AIX install. It has an incompatible calling convention. | ||
4131 | : | ||
4132 | elif test $ac_prog = install && | ||
4133 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4134 | # program-specific install script used by HP pwplus--don't use. | ||
4135 | : | ||
4136 | else | ||
4137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4138 | break 3 | ||
4139 | fi | ||
4140 | fi | ||
4141 | done | ||
4142 | done | ||
4143 | ;; | ||
4144 | esac | ||
4145 | done | ||
4146 | IFS=$as_save_IFS | ||
4147 | |||
4148 | |||
4149 | fi | ||
4150 | if test "${ac_cv_path_install+set}" = set; then | ||
4151 | INSTALL=$ac_cv_path_install | ||
4152 | else | ||
4153 | # As a last resort, use the slow shell script. Don't cache a | ||
4154 | # value for INSTALL within a source directory, because that will | ||
4155 | # break other packages using the cache if that directory is | ||
4156 | # removed, or if the value is a relative name. | ||
4157 | INSTALL=$ac_install_sh | ||
4158 | fi | ||
4159 | fi | ||
4160 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4161 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4162 | |||
4163 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4164 | # It thinks the first close brace ends the variable substitution. | ||
4165 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4166 | |||
4167 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4168 | |||
4169 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4170 | |||
4171 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4172 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4173 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4175 | else | ||
4176 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4177 | then ac_cv_path_EGREP="$GREP -E" | ||
4178 | else | ||
4179 | # Extract the first word of "egrep" to use in msg output | ||
4180 | if test -z "$EGREP"; then | ||
4181 | set dummy egrep; ac_prog_name=$2 | ||
4182 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4184 | else | ||
4185 | ac_path_EGREP_found=false | ||
4186 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4188 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4189 | do | ||
4190 | IFS=$as_save_IFS | ||
4191 | test -z "$as_dir" && as_dir=. | ||
4192 | for ac_prog in egrep; do | ||
4193 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4194 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4195 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4196 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4197 | # Check for GNU $ac_path_EGREP | ||
4198 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4199 | *GNU*) | ||
4200 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4201 | *) | ||
4202 | ac_count=0 | ||
4203 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4204 | while : | ||
4205 | do | ||
4206 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4207 | mv "conftest.tmp" "conftest.in" | ||
4208 | cp "conftest.in" "conftest.nl" | ||
4209 | echo 'EGREP' >> "conftest.nl" | ||
4210 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4211 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4212 | ac_count=`expr $ac_count + 1` | ||
4213 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4214 | # Best one so far, save it but keep looking for a better one | ||
4215 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4216 | ac_path_EGREP_max=$ac_count | ||
4217 | fi | ||
4218 | # 10*(2^10) chars as input seems more than enough | ||
4219 | test $ac_count -gt 10 && break | ||
4220 | done | ||
4221 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4222 | esac | ||
4223 | |||
4224 | |||
4225 | $ac_path_EGREP_found && break 3 | ||
4226 | done | ||
4227 | done | ||
4228 | |||
4229 | done | ||
4230 | IFS=$as_save_IFS | ||
4231 | |||
4232 | |||
4233 | fi | ||
4234 | |||
4235 | EGREP="$ac_cv_path_EGREP" | ||
4236 | if test -z "$EGREP"; then | ||
4237 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4238 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4239 | { (exit 1); exit 1; }; } | ||
4240 | fi | ||
4241 | |||
4242 | else | ||
4243 | ac_cv_path_EGREP=$EGREP | ||
4244 | fi | ||
4245 | |||
4246 | |||
4247 | fi | ||
4248 | fi | ||
4249 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4250 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4251 | EGREP="$ac_cv_path_EGREP" | ||
4252 | |||
4253 | |||
4254 | # Extract the first word of "ar", so it can be a program name with args. | ||
4255 | set dummy ar; ac_word=$2 | ||
4256 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4258 | if test "${ac_cv_path_AR+set}" = set; then | ||
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4260 | else | ||
4261 | case $AR in | ||
4262 | [\\/]* | ?:[\\/]*) | ||
4263 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4264 | ;; | ||
4265 | *) | ||
4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4267 | for as_dir in $PATH | ||
4268 | do | ||
4269 | IFS=$as_save_IFS | ||
4270 | test -z "$as_dir" && as_dir=. | ||
4271 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4273 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4275 | break 2 | ||
4276 | fi | ||
4277 | done | ||
4278 | done | ||
4279 | IFS=$as_save_IFS | ||
4280 | |||
4281 | ;; | ||
4282 | esac | ||
4283 | fi | ||
4284 | AR=$ac_cv_path_AR | ||
4285 | if test -n "$AR"; then | ||
4286 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4287 | echo "${ECHO_T}$AR" >&6; } | ||
4288 | else | ||
4289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4290 | echo "${ECHO_T}no" >&6; } | ||
4291 | fi | ||
4292 | |||
4293 | |||
4294 | # Extract the first word of "cat", so it can be a program name with args. | ||
4295 | set dummy cat; ac_word=$2 | ||
4296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4298 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4300 | else | ||
4301 | case $CAT in | ||
4302 | [\\/]* | ?:[\\/]*) | ||
4303 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4304 | ;; | ||
4305 | *) | ||
4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4307 | for as_dir in $PATH | ||
4308 | do | ||
4309 | IFS=$as_save_IFS | ||
4310 | test -z "$as_dir" && as_dir=. | ||
4311 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4313 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4315 | break 2 | ||
4316 | fi | ||
4317 | done | ||
4318 | done | ||
4319 | IFS=$as_save_IFS | ||
4320 | |||
4321 | ;; | ||
4322 | esac | ||
4323 | fi | ||
4324 | CAT=$ac_cv_path_CAT | ||
4325 | if test -n "$CAT"; then | ||
4326 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4327 | echo "${ECHO_T}$CAT" >&6; } | ||
4328 | else | ||
4329 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4330 | echo "${ECHO_T}no" >&6; } | ||
4331 | fi | ||
4332 | |||
4333 | |||
4334 | # Extract the first word of "kill", so it can be a program name with args. | ||
4335 | set dummy kill; ac_word=$2 | ||
4336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4338 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4340 | else | ||
4341 | case $KILL in | ||
4342 | [\\/]* | ?:[\\/]*) | ||
4343 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4344 | ;; | ||
4345 | *) | ||
4346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4347 | for as_dir in $PATH | ||
4348 | do | ||
4349 | IFS=$as_save_IFS | ||
4350 | test -z "$as_dir" && as_dir=. | ||
4351 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4353 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4355 | break 2 | ||
4356 | fi | ||
4357 | done | ||
4358 | done | ||
4359 | IFS=$as_save_IFS | ||
4360 | |||
4361 | ;; | ||
4362 | esac | ||
4363 | fi | ||
4364 | KILL=$ac_cv_path_KILL | ||
4365 | if test -n "$KILL"; then | ||
4366 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4367 | echo "${ECHO_T}$KILL" >&6; } | ||
4368 | else | ||
4369 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4370 | echo "${ECHO_T}no" >&6; } | ||
4371 | fi | ||
4372 | |||
4373 | |||
4374 | for ac_prog in perl5 perl | ||
4375 | do | ||
4376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4377 | set dummy $ac_prog; ac_word=$2 | ||
4378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4380 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4382 | else | ||
4383 | case $PERL in | ||
4384 | [\\/]* | ?:[\\/]*) | ||
4385 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4386 | ;; | ||
4387 | *) | ||
4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4389 | for as_dir in $PATH | ||
4390 | do | ||
4391 | IFS=$as_save_IFS | ||
4392 | test -z "$as_dir" && as_dir=. | ||
4393 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4395 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4397 | break 2 | ||
4398 | fi | ||
4399 | done | ||
4400 | done | ||
4401 | IFS=$as_save_IFS | ||
4402 | |||
4403 | ;; | ||
4404 | esac | ||
4405 | fi | ||
4406 | PERL=$ac_cv_path_PERL | ||
4407 | if test -n "$PERL"; then | ||
4408 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4409 | echo "${ECHO_T}$PERL" >&6; } | ||
4410 | else | ||
4411 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4412 | echo "${ECHO_T}no" >&6; } | ||
4413 | fi | ||
4414 | |||
4415 | |||
4416 | test -n "$PERL" && break | ||
4417 | done | ||
4418 | |||
4419 | # Extract the first word of "sed", so it can be a program name with args. | ||
4420 | set dummy sed; ac_word=$2 | ||
4421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4423 | if test "${ac_cv_path_SED+set}" = set; then | ||
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4425 | else | ||
4426 | case $SED in | ||
4427 | [\\/]* | ?:[\\/]*) | ||
4428 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4429 | ;; | ||
4430 | *) | ||
4431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4432 | for as_dir in $PATH | ||
4433 | do | ||
4434 | IFS=$as_save_IFS | ||
4435 | test -z "$as_dir" && as_dir=. | ||
4436 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4438 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4440 | break 2 | ||
4441 | fi | ||
4442 | done | ||
4443 | done | ||
4444 | IFS=$as_save_IFS | ||
4445 | |||
4446 | ;; | ||
4447 | esac | ||
4448 | fi | ||
4449 | SED=$ac_cv_path_SED | ||
4450 | if test -n "$SED"; then | ||
4451 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4452 | echo "${ECHO_T}$SED" >&6; } | ||
4453 | else | ||
4454 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4455 | echo "${ECHO_T}no" >&6; } | ||
4456 | fi | ||
4457 | |||
4458 | |||
4459 | |||
4460 | # Extract the first word of "ent", so it can be a program name with args. | ||
4461 | set dummy ent; ac_word=$2 | ||
4462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4464 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4466 | else | ||
4467 | case $ENT in | ||
4468 | [\\/]* | ?:[\\/]*) | ||
4469 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4470 | ;; | ||
4471 | *) | ||
4472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4473 | for as_dir in $PATH | ||
4474 | do | ||
4475 | IFS=$as_save_IFS | ||
4476 | test -z "$as_dir" && as_dir=. | ||
4477 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4479 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4481 | break 2 | ||
4482 | fi | ||
4483 | done | ||
4484 | done | ||
4485 | IFS=$as_save_IFS | ||
4486 | |||
4487 | ;; | ||
4488 | esac | ||
4489 | fi | ||
4490 | ENT=$ac_cv_path_ENT | ||
4491 | if test -n "$ENT"; then | ||
4492 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4493 | echo "${ECHO_T}$ENT" >&6; } | ||
4494 | else | ||
4495 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4496 | echo "${ECHO_T}no" >&6; } | ||
4497 | fi | ||
4498 | |||
4499 | |||
4500 | |||
4501 | # Extract the first word of "bash", so it can be a program name with args. | ||
4502 | set dummy bash; ac_word=$2 | ||
4503 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4505 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4507 | else | ||
4508 | case $TEST_MINUS_S_SH in | ||
4509 | [\\/]* | ?:[\\/]*) | ||
4510 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4511 | ;; | ||
4512 | *) | ||
4513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4514 | for as_dir in $PATH | ||
4515 | do | ||
4516 | IFS=$as_save_IFS | ||
4517 | test -z "$as_dir" && as_dir=. | ||
4518 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4520 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4522 | break 2 | ||
4523 | fi | ||
4524 | done | ||
4525 | done | ||
4526 | IFS=$as_save_IFS | ||
4527 | |||
4528 | ;; | ||
4529 | esac | ||
4530 | fi | ||
4531 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4532 | if test -n "$TEST_MINUS_S_SH"; then | ||
4533 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4534 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4535 | else | ||
4536 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4537 | echo "${ECHO_T}no" >&6; } | ||
4538 | fi | ||
4539 | |||
4540 | |||
4541 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4542 | set dummy ksh; ac_word=$2 | ||
4543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4545 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4547 | else | ||
4548 | case $TEST_MINUS_S_SH in | ||
4549 | [\\/]* | ?:[\\/]*) | ||
4550 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4551 | ;; | ||
4552 | *) | ||
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4554 | for as_dir in $PATH | ||
4555 | do | ||
4556 | IFS=$as_save_IFS | ||
4557 | test -z "$as_dir" && as_dir=. | ||
4558 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4560 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4562 | break 2 | ||
4563 | fi | ||
4564 | done | ||
4565 | done | ||
4566 | IFS=$as_save_IFS | ||
4567 | |||
4568 | ;; | ||
4569 | esac | ||
4570 | fi | ||
4571 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4572 | if test -n "$TEST_MINUS_S_SH"; then | ||
4573 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4574 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4575 | else | ||
4576 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4577 | echo "${ECHO_T}no" >&6; } | ||
4578 | fi | ||
4579 | |||
4580 | |||
4581 | # Extract the first word of "sh", so it can be a program name with args. | ||
4582 | set dummy sh; ac_word=$2 | ||
4583 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4585 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4587 | else | ||
4588 | case $TEST_MINUS_S_SH in | ||
4589 | [\\/]* | ?:[\\/]*) | ||
4590 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4591 | ;; | ||
4592 | *) | ||
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4594 | for as_dir in $PATH | ||
4595 | do | ||
4596 | IFS=$as_save_IFS | ||
4597 | test -z "$as_dir" && as_dir=. | ||
4598 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4600 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4602 | break 2 | ||
4603 | fi | ||
4604 | done | ||
4605 | done | ||
4606 | IFS=$as_save_IFS | ||
4607 | |||
4608 | ;; | ||
4609 | esac | ||
4610 | fi | ||
4611 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4612 | if test -n "$TEST_MINUS_S_SH"; then | ||
4613 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4614 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4615 | else | ||
4616 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4617 | echo "${ECHO_T}no" >&6; } | ||
4618 | fi | ||
4619 | |||
4620 | |||
4621 | # Extract the first word of "sh", so it can be a program name with args. | ||
4622 | set dummy sh; ac_word=$2 | ||
4623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4625 | if test "${ac_cv_path_SH+set}" = set; then | ||
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4627 | else | ||
4628 | case $SH in | ||
4629 | [\\/]* | ?:[\\/]*) | ||
4630 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4631 | ;; | ||
4632 | *) | ||
4633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4634 | for as_dir in $PATH | ||
4635 | do | ||
4636 | IFS=$as_save_IFS | ||
4637 | test -z "$as_dir" && as_dir=. | ||
4638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4640 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4642 | break 2 | ||
4643 | fi | ||
4644 | done | ||
4645 | done | ||
4646 | IFS=$as_save_IFS | ||
4647 | |||
4648 | ;; | ||
4649 | esac | ||
4650 | fi | ||
4651 | SH=$ac_cv_path_SH | ||
4652 | if test -n "$SH"; then | ||
4653 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4654 | echo "${ECHO_T}$SH" >&6; } | ||
4655 | else | ||
4656 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4657 | echo "${ECHO_T}no" >&6; } | ||
4658 | fi | ||
4659 | |||
4660 | |||
4661 | TEST_SHELL=sh | ||
4662 | |||
4663 | |||
4664 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4665 | set dummy groupadd; ac_word=$2 | ||
4666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4668 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4670 | else | ||
4671 | case $PATH_GROUPADD_PROG in | ||
4672 | [\\/]* | ?:[\\/]*) | ||
4673 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4674 | ;; | ||
4675 | *) | ||
4676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4677 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4678 | do | ||
4679 | IFS=$as_save_IFS | ||
4680 | test -z "$as_dir" && as_dir=. | ||
4681 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4683 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4685 | break 2 | ||
4686 | fi | ||
4687 | done | ||
4688 | done | ||
4689 | IFS=$as_save_IFS | ||
4690 | |||
4691 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4692 | ;; | ||
4693 | esac | ||
4694 | fi | ||
4695 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4696 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4697 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4698 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4699 | else | ||
4700 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4701 | echo "${ECHO_T}no" >&6; } | ||
4702 | fi | ||
4703 | |||
4704 | |||
4705 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4706 | set dummy useradd; ac_word=$2 | ||
4707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4709 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4711 | else | ||
4712 | case $PATH_USERADD_PROG in | ||
4713 | [\\/]* | ?:[\\/]*) | ||
4714 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4715 | ;; | ||
4716 | *) | ||
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4718 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4719 | do | ||
4720 | IFS=$as_save_IFS | ||
4721 | test -z "$as_dir" && as_dir=. | ||
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4724 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4726 | break 2 | ||
4727 | fi | ||
4728 | done | ||
4729 | done | ||
4730 | IFS=$as_save_IFS | ||
4731 | |||
4732 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4733 | ;; | ||
4734 | esac | ||
4735 | fi | ||
4736 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4737 | if test -n "$PATH_USERADD_PROG"; then | ||
4738 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4739 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4740 | else | ||
4741 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4742 | echo "${ECHO_T}no" >&6; } | ||
4743 | fi | ||
4744 | |||
4745 | |||
4746 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4747 | set dummy pkgmk; ac_word=$2 | ||
4748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4750 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4752 | else | ||
4753 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4754 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4755 | else | ||
4756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4757 | for as_dir in $PATH | ||
4758 | do | ||
4759 | IFS=$as_save_IFS | ||
4760 | test -z "$as_dir" && as_dir=. | ||
4761 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4763 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4765 | break 2 | ||
4766 | fi | ||
4767 | done | ||
4768 | done | ||
4769 | IFS=$as_save_IFS | ||
4770 | |||
4771 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4772 | fi | ||
4773 | fi | ||
4774 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4775 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4776 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4777 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4778 | else | ||
4779 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4780 | echo "${ECHO_T}no" >&6; } | ||
4781 | fi | ||
4782 | |||
4783 | |||
4784 | if test -x /sbin/sh; then | ||
4785 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4786 | |||
4787 | else | ||
4788 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4789 | |||
4790 | fi | ||
4791 | |||
4792 | # System features | ||
4793 | # Check whether --enable-largefile was given. | ||
4794 | if test "${enable_largefile+set}" = set; then | ||
4795 | enableval=$enable_largefile; | ||
4796 | fi | ||
4797 | |||
4798 | if test "$enable_largefile" != no; then | ||
4799 | |||
4800 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4801 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4802 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4804 | else | ||
4805 | ac_cv_sys_largefile_CC=no | ||
4806 | if test "$GCC" != yes; then | ||
4807 | ac_save_CC=$CC | ||
4808 | while :; do | ||
4809 | # IRIX 6.2 and later do not support large files by default, | ||
4810 | # so use the C compiler's -n32 option if that helps. | ||
4811 | cat >conftest.$ac_ext <<_ACEOF | ||
4812 | /* confdefs.h. */ | ||
4813 | _ACEOF | ||
4814 | cat confdefs.h >>conftest.$ac_ext | ||
4815 | cat >>conftest.$ac_ext <<_ACEOF | ||
4816 | /* end confdefs.h. */ | ||
4817 | #include <sys/types.h> | ||
4818 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4819 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4820 | since some C++ compilers masquerading as C compilers | ||
4821 | incorrectly reject 9223372036854775807. */ | ||
4822 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4823 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4824 | && LARGE_OFF_T % 2147483647 == 1) | ||
4825 | ? 1 : -1]; | ||
4826 | int | ||
4827 | main () | ||
4828 | { | ||
4829 | |||
4830 | ; | ||
4831 | return 0; | ||
4832 | } | ||
4833 | _ACEOF | ||
4834 | rm -f conftest.$ac_objext | ||
4835 | if { (ac_try="$ac_compile" | ||
4836 | case "(($ac_try" in | ||
4837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4838 | *) ac_try_echo=$ac_try;; | ||
4839 | esac | ||
4840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4841 | (eval "$ac_compile") 2>conftest.er1 | ||
4842 | ac_status=$? | ||
4843 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4844 | rm -f conftest.er1 | ||
4845 | cat conftest.err >&5 | ||
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4847 | (exit $ac_status); } && { | ||
4848 | test -z "$ac_c_werror_flag" || | ||
4849 | test ! -s conftest.err | ||
4850 | } && test -s conftest.$ac_objext; then | ||
4851 | break | ||
4852 | else | ||
4853 | echo "$as_me: failed program was:" >&5 | ||
4854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4855 | |||
4856 | |||
4857 | fi | ||
4858 | |||
4859 | rm -f core conftest.err conftest.$ac_objext | ||
4860 | CC="$CC -n32" | ||
4861 | rm -f conftest.$ac_objext | ||
4862 | if { (ac_try="$ac_compile" | ||
4863 | case "(($ac_try" in | ||
4864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4865 | *) ac_try_echo=$ac_try;; | ||
4866 | esac | ||
4867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4868 | (eval "$ac_compile") 2>conftest.er1 | ||
4869 | ac_status=$? | ||
4870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4871 | rm -f conftest.er1 | ||
4872 | cat conftest.err >&5 | ||
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4874 | (exit $ac_status); } && { | ||
4875 | test -z "$ac_c_werror_flag" || | ||
4876 | test ! -s conftest.err | ||
4877 | } && test -s conftest.$ac_objext; then | ||
4878 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4879 | else | ||
4880 | echo "$as_me: failed program was:" >&5 | ||
4881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4882 | |||
4883 | |||
4884 | fi | ||
4885 | |||
4886 | rm -f core conftest.err conftest.$ac_objext | ||
4887 | break | ||
4888 | done | ||
4889 | CC=$ac_save_CC | ||
4890 | rm -f conftest.$ac_ext | ||
4891 | fi | ||
4892 | fi | ||
4893 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
4894 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
4895 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4896 | CC=$CC$ac_cv_sys_largefile_CC | ||
4897 | fi | ||
4898 | |||
4899 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4900 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
4901 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4903 | else | ||
4904 | while :; do | ||
4905 | cat >conftest.$ac_ext <<_ACEOF | ||
4906 | /* confdefs.h. */ | ||
4907 | _ACEOF | ||
4908 | cat confdefs.h >>conftest.$ac_ext | ||
4909 | cat >>conftest.$ac_ext <<_ACEOF | ||
4910 | /* end confdefs.h. */ | ||
4911 | #include <sys/types.h> | ||
4912 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4913 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4914 | since some C++ compilers masquerading as C compilers | ||
4915 | incorrectly reject 9223372036854775807. */ | ||
4916 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4917 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4918 | && LARGE_OFF_T % 2147483647 == 1) | ||
4919 | ? 1 : -1]; | ||
4920 | int | ||
4921 | main () | ||
4922 | { | ||
4923 | |||
4924 | ; | ||
4925 | return 0; | ||
4926 | } | ||
4927 | _ACEOF | ||
4928 | rm -f conftest.$ac_objext | ||
4929 | if { (ac_try="$ac_compile" | ||
4930 | case "(($ac_try" in | ||
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4932 | *) ac_try_echo=$ac_try;; | ||
4933 | esac | ||
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4935 | (eval "$ac_compile") 2>conftest.er1 | ||
4936 | ac_status=$? | ||
4937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4938 | rm -f conftest.er1 | ||
4939 | cat conftest.err >&5 | ||
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4941 | (exit $ac_status); } && { | ||
4942 | test -z "$ac_c_werror_flag" || | ||
4943 | test ! -s conftest.err | ||
4944 | } && test -s conftest.$ac_objext; then | ||
4945 | ac_cv_sys_file_offset_bits=no; break | ||
4946 | else | ||
4947 | echo "$as_me: failed program was:" >&5 | ||
4948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4949 | |||
4950 | |||
4951 | fi | ||
4952 | |||
4953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4954 | cat >conftest.$ac_ext <<_ACEOF | ||
4955 | /* confdefs.h. */ | ||
4956 | _ACEOF | ||
4957 | cat confdefs.h >>conftest.$ac_ext | ||
4958 | cat >>conftest.$ac_ext <<_ACEOF | ||
4959 | /* end confdefs.h. */ | ||
4960 | #define _FILE_OFFSET_BITS 64 | ||
4961 | #include <sys/types.h> | ||
4962 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4963 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4964 | since some C++ compilers masquerading as C compilers | ||
4965 | incorrectly reject 9223372036854775807. */ | ||
4966 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4967 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4968 | && LARGE_OFF_T % 2147483647 == 1) | ||
4969 | ? 1 : -1]; | ||
4970 | int | ||
4971 | main () | ||
4972 | { | ||
4973 | |||
4974 | ; | ||
4975 | return 0; | ||
4976 | } | ||
4977 | _ACEOF | ||
4978 | rm -f conftest.$ac_objext | ||
4979 | if { (ac_try="$ac_compile" | ||
4980 | case "(($ac_try" in | ||
4981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4982 | *) ac_try_echo=$ac_try;; | ||
4983 | esac | ||
4984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4985 | (eval "$ac_compile") 2>conftest.er1 | ||
4986 | ac_status=$? | ||
4987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4988 | rm -f conftest.er1 | ||
4989 | cat conftest.err >&5 | ||
4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4991 | (exit $ac_status); } && { | ||
4992 | test -z "$ac_c_werror_flag" || | ||
4993 | test ! -s conftest.err | ||
4994 | } && test -s conftest.$ac_objext; then | ||
4995 | ac_cv_sys_file_offset_bits=64; break | ||
4996 | else | ||
4997 | echo "$as_me: failed program was:" >&5 | ||
4998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4999 | |||
5000 | |||
5001 | fi | ||
5002 | |||
5003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5004 | ac_cv_sys_file_offset_bits=unknown | ||
5005 | break | ||
5006 | done | ||
5007 | fi | ||
5008 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5009 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5010 | case $ac_cv_sys_file_offset_bits in #( | ||
5011 | no | unknown) ;; | ||
5012 | *) | ||
5013 | cat >>confdefs.h <<_ACEOF | ||
5014 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5015 | _ACEOF | ||
5016 | ;; | ||
5017 | esac | ||
5018 | rm -f conftest* | ||
5019 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5020 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5021 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5022 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5024 | else | ||
5025 | while :; do | ||
5026 | cat >conftest.$ac_ext <<_ACEOF | ||
5027 | /* confdefs.h. */ | ||
5028 | _ACEOF | ||
5029 | cat confdefs.h >>conftest.$ac_ext | ||
5030 | cat >>conftest.$ac_ext <<_ACEOF | ||
5031 | /* end confdefs.h. */ | ||
5032 | #include <sys/types.h> | ||
5033 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5034 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5035 | since some C++ compilers masquerading as C compilers | ||
5036 | incorrectly reject 9223372036854775807. */ | ||
5037 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5038 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5039 | && LARGE_OFF_T % 2147483647 == 1) | ||
5040 | ? 1 : -1]; | ||
5041 | int | ||
5042 | main () | ||
5043 | { | ||
5044 | |||
5045 | ; | ||
5046 | return 0; | ||
5047 | } | ||
5048 | _ACEOF | ||
5049 | rm -f conftest.$ac_objext | ||
5050 | if { (ac_try="$ac_compile" | ||
5051 | case "(($ac_try" in | ||
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5053 | *) ac_try_echo=$ac_try;; | ||
5054 | esac | ||
5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5056 | (eval "$ac_compile") 2>conftest.er1 | ||
5057 | ac_status=$? | ||
5058 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5059 | rm -f conftest.er1 | ||
5060 | cat conftest.err >&5 | ||
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5062 | (exit $ac_status); } && { | ||
5063 | test -z "$ac_c_werror_flag" || | ||
5064 | test ! -s conftest.err | ||
5065 | } && test -s conftest.$ac_objext; then | ||
5066 | ac_cv_sys_large_files=no; break | ||
5067 | else | ||
5068 | echo "$as_me: failed program was:" >&5 | ||
5069 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5070 | |||
5071 | |||
5072 | fi | ||
5073 | |||
5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5075 | cat >conftest.$ac_ext <<_ACEOF | ||
5076 | /* confdefs.h. */ | ||
5077 | _ACEOF | ||
5078 | cat confdefs.h >>conftest.$ac_ext | ||
5079 | cat >>conftest.$ac_ext <<_ACEOF | ||
5080 | /* end confdefs.h. */ | ||
5081 | #define _LARGE_FILES 1 | ||
5082 | #include <sys/types.h> | ||
5083 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5084 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5085 | since some C++ compilers masquerading as C compilers | ||
5086 | incorrectly reject 9223372036854775807. */ | ||
5087 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5088 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5089 | && LARGE_OFF_T % 2147483647 == 1) | ||
5090 | ? 1 : -1]; | ||
5091 | int | ||
5092 | main () | ||
5093 | { | ||
5094 | |||
5095 | ; | ||
5096 | return 0; | ||
5097 | } | ||
5098 | _ACEOF | ||
5099 | rm -f conftest.$ac_objext | ||
5100 | if { (ac_try="$ac_compile" | ||
5101 | case "(($ac_try" in | ||
5102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5103 | *) ac_try_echo=$ac_try;; | ||
5104 | esac | ||
5105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5106 | (eval "$ac_compile") 2>conftest.er1 | ||
5107 | ac_status=$? | ||
5108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5109 | rm -f conftest.er1 | ||
5110 | cat conftest.err >&5 | ||
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5112 | (exit $ac_status); } && { | ||
5113 | test -z "$ac_c_werror_flag" || | ||
5114 | test ! -s conftest.err | ||
5115 | } && test -s conftest.$ac_objext; then | ||
5116 | ac_cv_sys_large_files=1; break | ||
5117 | else | ||
5118 | echo "$as_me: failed program was:" >&5 | ||
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5120 | |||
5121 | |||
5122 | fi | ||
5123 | |||
5124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5125 | ac_cv_sys_large_files=unknown | ||
5126 | break | ||
5127 | done | ||
5128 | fi | ||
5129 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5130 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5131 | case $ac_cv_sys_large_files in #( | ||
5132 | no | unknown) ;; | ||
5133 | *) | ||
5134 | cat >>confdefs.h <<_ACEOF | ||
5135 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5136 | _ACEOF | ||
5137 | ;; | ||
5138 | esac | ||
5139 | rm -f conftest* | ||
5140 | fi | ||
5141 | fi | ||
5142 | |||
5143 | |||
5144 | if test -z "$AR" ; then | ||
5145 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5146 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5147 | { (exit 1); exit 1; }; } | ||
5148 | fi | ||
5149 | |||
5150 | # Use LOGIN_PROGRAM from environment if possible | ||
5151 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5152 | |||
5153 | cat >>confdefs.h <<_ACEOF | ||
5154 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5155 | _ACEOF | ||
5156 | |||
5157 | else | ||
5158 | # Search for login | ||
5159 | # Extract the first word of "login", so it can be a program name with args. | ||
5160 | set dummy login; ac_word=$2 | ||
5161 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5163 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5165 | else | ||
5166 | case $LOGIN_PROGRAM_FALLBACK in | ||
5167 | [\\/]* | ?:[\\/]*) | ||
5168 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5169 | ;; | ||
5170 | *) | ||
5171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5172 | for as_dir in $PATH | ||
5173 | do | ||
5174 | IFS=$as_save_IFS | ||
5175 | test -z "$as_dir" && as_dir=. | ||
5176 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5178 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5180 | break 2 | ||
5181 | fi | ||
5182 | done | ||
5183 | done | ||
5184 | IFS=$as_save_IFS | ||
5185 | |||
5186 | ;; | ||
5187 | esac | ||
5188 | fi | ||
5189 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5190 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5191 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5192 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5193 | else | ||
5194 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5195 | echo "${ECHO_T}no" >&6; } | ||
5196 | fi | ||
5197 | |||
5198 | |||
5199 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5200 | cat >>confdefs.h <<_ACEOF | ||
5201 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5202 | _ACEOF | ||
5203 | |||
5204 | fi | ||
5205 | fi | ||
5206 | |||
5207 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5208 | set dummy passwd; ac_word=$2 | ||
5209 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5211 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5213 | else | ||
5214 | case $PATH_PASSWD_PROG in | ||
5215 | [\\/]* | ?:[\\/]*) | ||
5216 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5217 | ;; | ||
5218 | *) | ||
5219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5220 | for as_dir in $PATH | ||
5221 | do | ||
5222 | IFS=$as_save_IFS | ||
5223 | test -z "$as_dir" && as_dir=. | ||
5224 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5226 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5228 | break 2 | ||
5229 | fi | ||
5230 | done | ||
5231 | done | ||
5232 | IFS=$as_save_IFS | ||
5233 | |||
5234 | ;; | ||
5235 | esac | ||
5236 | fi | ||
5237 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5238 | if test -n "$PATH_PASSWD_PROG"; then | ||
5239 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5240 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5241 | else | ||
5242 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5243 | echo "${ECHO_T}no" >&6; } | ||
5244 | fi | ||
5245 | |||
5246 | |||
5247 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5248 | |||
5249 | cat >>confdefs.h <<_ACEOF | ||
5250 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5251 | _ACEOF | ||
5252 | |||
5253 | fi | ||
5254 | |||
5255 | if test -z "$LD" ; then | ||
5256 | LD=$CC | ||
5257 | fi | ||
5258 | |||
5259 | |||
5260 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5261 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5262 | if test "${ac_cv_c_inline+set}" = set; then | ||
5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5264 | else | ||
5265 | ac_cv_c_inline=no | ||
5266 | for ac_kw in inline __inline__ __inline; do | ||
5267 | cat >conftest.$ac_ext <<_ACEOF | ||
5268 | /* confdefs.h. */ | ||
5269 | _ACEOF | ||
5270 | cat confdefs.h >>conftest.$ac_ext | ||
5271 | cat >>conftest.$ac_ext <<_ACEOF | ||
5272 | /* end confdefs.h. */ | ||
5273 | #ifndef __cplusplus | ||
5274 | typedef int foo_t; | ||
5275 | static $ac_kw foo_t static_foo () {return 0; } | ||
5276 | $ac_kw foo_t foo () {return 0; } | ||
5277 | #endif | ||
5278 | |||
5279 | _ACEOF | ||
5280 | rm -f conftest.$ac_objext | ||
5281 | if { (ac_try="$ac_compile" | ||
5282 | case "(($ac_try" in | ||
5283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5284 | *) ac_try_echo=$ac_try;; | ||
5285 | esac | ||
5286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5287 | (eval "$ac_compile") 2>conftest.er1 | ||
5288 | ac_status=$? | ||
5289 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5290 | rm -f conftest.er1 | ||
5291 | cat conftest.err >&5 | ||
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5293 | (exit $ac_status); } && { | ||
5294 | test -z "$ac_c_werror_flag" || | ||
5295 | test ! -s conftest.err | ||
5296 | } && test -s conftest.$ac_objext; then | ||
5297 | ac_cv_c_inline=$ac_kw | ||
5298 | else | ||
5299 | echo "$as_me: failed program was:" >&5 | ||
5300 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5301 | |||
5302 | |||
5303 | fi | ||
5304 | |||
5305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5306 | test "$ac_cv_c_inline" != no && break | ||
5307 | done | ||
5308 | |||
5309 | fi | ||
5310 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5311 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5312 | |||
5313 | |||
5314 | case $ac_cv_c_inline in | ||
5315 | inline | yes) ;; | ||
5316 | *) | ||
5317 | case $ac_cv_c_inline in | ||
5318 | no) ac_val=;; | ||
5319 | *) ac_val=$ac_cv_c_inline;; | ||
5320 | esac | ||
5321 | cat >>confdefs.h <<_ACEOF | ||
5322 | #ifndef __cplusplus | ||
5323 | #define inline $ac_val | ||
5324 | #endif | ||
5325 | _ACEOF | ||
5326 | ;; | ||
5327 | esac | ||
5328 | |||
5329 | |||
5330 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5331 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5332 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5334 | else | ||
5335 | cat >conftest.$ac_ext <<_ACEOF | ||
5336 | /* confdefs.h. */ | ||
5337 | _ACEOF | ||
5338 | cat confdefs.h >>conftest.$ac_ext | ||
5339 | cat >>conftest.$ac_ext <<_ACEOF | ||
5340 | /* end confdefs.h. */ | ||
5341 | #include <limits.h> | ||
5342 | |||
5343 | int | ||
5344 | main () | ||
5345 | { | ||
5346 | #ifndef LLONG_MAX | ||
5347 | (void) LLONG_MAX; | ||
5348 | #endif | ||
5349 | |||
5350 | ; | ||
5351 | return 0; | ||
5352 | } | ||
5353 | _ACEOF | ||
5354 | rm -f conftest.$ac_objext | ||
5355 | if { (ac_try="$ac_compile" | ||
5356 | case "(($ac_try" in | ||
5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5358 | *) ac_try_echo=$ac_try;; | ||
5359 | esac | ||
5360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5361 | (eval "$ac_compile") 2>conftest.er1 | ||
5362 | ac_status=$? | ||
5363 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5364 | rm -f conftest.er1 | ||
5365 | cat conftest.err >&5 | ||
5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5367 | (exit $ac_status); } && { | ||
5368 | test -z "$ac_c_werror_flag" || | ||
5369 | test ! -s conftest.err | ||
5370 | } && test -s conftest.$ac_objext; then | ||
5371 | ac_cv_have_decl_LLONG_MAX=yes | ||
5372 | else | ||
5373 | echo "$as_me: failed program was:" >&5 | ||
5374 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5375 | |||
5376 | ac_cv_have_decl_LLONG_MAX=no | ||
5377 | fi | ||
5378 | |||
5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5380 | fi | ||
5381 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5382 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5383 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5384 | have_llong_max=1 | ||
5385 | fi | ||
5386 | |||
5387 | |||
5388 | use_stack_protector=1 | ||
5389 | |||
5390 | # Check whether --with-stackprotect was given. | ||
5391 | if test "${with_stackprotect+set}" = set; then | ||
5392 | withval=$with_stackprotect; | ||
5393 | if test "x$withval" = "xno"; then | ||
5394 | use_stack_protector=0 | ||
5395 | fi | ||
5396 | fi | ||
5397 | |||
5398 | |||
5399 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5400 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5401 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5402 | case $GCC_VER in | ||
5403 | 1.*) no_attrib_nonnull=1 ;; | ||
5404 | 2.8* | 2.9*) | ||
5405 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5406 | no_attrib_nonnull=1 | ||
5407 | ;; | ||
5408 | 2.*) no_attrib_nonnull=1 ;; | ||
5409 | 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; | ||
5410 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;; | ||
5411 | *) ;; | ||
5412 | esac | ||
5413 | |||
5414 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5415 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
5416 | saved_CFLAGS="$CFLAGS" | ||
5417 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5418 | cat >conftest.$ac_ext <<_ACEOF | ||
5419 | /* confdefs.h. */ | ||
5420 | _ACEOF | ||
5421 | cat confdefs.h >>conftest.$ac_ext | ||
5422 | cat >>conftest.$ac_ext <<_ACEOF | ||
5423 | /* end confdefs.h. */ | ||
5424 | |||
5425 | #include <string.h> | ||
5426 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5427 | |||
5428 | _ACEOF | ||
5429 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5430 | if { (ac_try="$ac_link" | ||
5431 | case "(($ac_try" in | ||
5432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5433 | *) ac_try_echo=$ac_try;; | ||
5434 | esac | ||
5435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5436 | (eval "$ac_link") 2>conftest.er1 | ||
5437 | ac_status=$? | ||
5438 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5439 | rm -f conftest.er1 | ||
5440 | cat conftest.err >&5 | ||
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5442 | (exit $ac_status); } && { | ||
5443 | test -z "$ac_c_werror_flag" || | ||
5444 | test ! -s conftest.err | ||
5445 | } && test -s conftest$ac_exeext && | ||
5446 | $as_test_x conftest$ac_exeext; then | ||
5447 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5448 | echo "${ECHO_T}yes" >&6; } | ||
5449 | else | ||
5450 | echo "$as_me: failed program was:" >&5 | ||
5451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5452 | |||
5453 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5454 | echo "${ECHO_T}no" >&6; } | ||
5455 | CFLAGS="$saved_CFLAGS" | ||
5456 | |||
5457 | fi | ||
5458 | |||
5459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5460 | conftest$ac_exeext conftest.$ac_ext | ||
5461 | |||
5462 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5463 | # and/or platforms, so we test if we can. If it's not supported | ||
5464 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5465 | if test "x$use_stack_protector" = "x1"; then | ||
5466 | for t in -fstack-protector-all -fstack-protector; do | ||
5467 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5468 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
5469 | saved_CFLAGS="$CFLAGS" | ||
5470 | saved_LDFLAGS="$LDFLAGS" | ||
5471 | CFLAGS="$CFLAGS $t -Werror" | ||
5472 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5473 | cat >conftest.$ac_ext <<_ACEOF | ||
5474 | /* confdefs.h. */ | ||
5475 | _ACEOF | ||
5476 | cat confdefs.h >>conftest.$ac_ext | ||
5477 | cat >>conftest.$ac_ext <<_ACEOF | ||
5478 | /* end confdefs.h. */ | ||
5479 | |||
5480 | #include <stdio.h> | ||
5481 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5482 | |||
5483 | _ACEOF | ||
5484 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5485 | if { (ac_try="$ac_link" | ||
5486 | case "(($ac_try" in | ||
5487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5488 | *) ac_try_echo=$ac_try;; | ||
5489 | esac | ||
5490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5491 | (eval "$ac_link") 2>conftest.er1 | ||
5492 | ac_status=$? | ||
5493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5494 | rm -f conftest.er1 | ||
5495 | cat conftest.err >&5 | ||
5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5497 | (exit $ac_status); } && { | ||
5498 | test -z "$ac_c_werror_flag" || | ||
5499 | test ! -s conftest.err | ||
5500 | } && test -s conftest$ac_exeext && | ||
5501 | $as_test_x conftest$ac_exeext; then | ||
5502 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5503 | echo "${ECHO_T}yes" >&6; } | ||
5504 | CFLAGS="$saved_CFLAGS $t" | ||
5505 | LDFLAGS="$saved_LDFLAGS $t" | ||
5506 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5507 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
5508 | if test "$cross_compiling" = yes; then | ||
5509 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5510 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5511 | break | ||
5512 | |||
5513 | else | ||
5514 | cat >conftest.$ac_ext <<_ACEOF | ||
5515 | /* confdefs.h. */ | ||
5516 | _ACEOF | ||
5517 | cat confdefs.h >>conftest.$ac_ext | ||
5518 | cat >>conftest.$ac_ext <<_ACEOF | ||
5519 | /* end confdefs.h. */ | ||
5520 | |||
5521 | #include <stdio.h> | ||
5522 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5523 | |||
5524 | _ACEOF | ||
5525 | rm -f conftest$ac_exeext | ||
5526 | if { (ac_try="$ac_link" | ||
5527 | case "(($ac_try" in | ||
5528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5529 | *) ac_try_echo=$ac_try;; | ||
5530 | esac | ||
5531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5532 | (eval "$ac_link") 2>&5 | ||
5533 | ac_status=$? | ||
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5536 | { (case "(($ac_try" in | ||
5537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5538 | *) ac_try_echo=$ac_try;; | ||
5539 | esac | ||
5540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5541 | (eval "$ac_try") 2>&5 | ||
5542 | ac_status=$? | ||
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5544 | (exit $ac_status); }; }; then | ||
5545 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5546 | echo "${ECHO_T}yes" >&6; } | ||
5547 | break | ||
5548 | else | ||
5549 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5550 | echo "$as_me: failed program was:" >&5 | ||
5551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5552 | |||
5553 | ( exit $ac_status ) | ||
5554 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5555 | echo "${ECHO_T}no" >&6; } | ||
5556 | fi | ||
5557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5558 | fi | ||
5559 | |||
5560 | |||
5561 | |||
5562 | else | ||
5563 | echo "$as_me: failed program was:" >&5 | ||
5564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5565 | |||
5566 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5567 | echo "${ECHO_T}no" >&6; } | ||
5568 | |||
5569 | fi | ||
5570 | |||
5571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5572 | conftest$ac_exeext conftest.$ac_ext | ||
5573 | CFLAGS="$saved_CFLAGS" | ||
5574 | LDFLAGS="$saved_LDFLAGS" | ||
5575 | done | ||
5576 | fi | ||
5577 | |||
5578 | if test -z "$have_llong_max"; then | ||
5579 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5580 | unset ac_cv_have_decl_LLONG_MAX | ||
5581 | saved_CFLAGS="$CFLAGS" | ||
5582 | CFLAGS="$CFLAGS -std=gnu99" | ||
5583 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5584 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5585 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5587 | else | ||
5588 | cat >conftest.$ac_ext <<_ACEOF | ||
5589 | /* confdefs.h. */ | ||
5590 | _ACEOF | ||
5591 | cat confdefs.h >>conftest.$ac_ext | ||
5592 | cat >>conftest.$ac_ext <<_ACEOF | ||
5593 | /* end confdefs.h. */ | ||
5594 | #include <limits.h> | ||
5595 | |||
5596 | |||
5597 | int | ||
5598 | main () | ||
5599 | { | ||
5600 | #ifndef LLONG_MAX | ||
5601 | (void) LLONG_MAX; | ||
5602 | #endif | ||
5603 | |||
5604 | ; | ||
5605 | return 0; | ||
5606 | } | ||
5607 | _ACEOF | ||
5608 | rm -f conftest.$ac_objext | ||
5609 | if { (ac_try="$ac_compile" | ||
5610 | case "(($ac_try" in | ||
5611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5612 | *) ac_try_echo=$ac_try;; | ||
5613 | esac | ||
5614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5615 | (eval "$ac_compile") 2>conftest.er1 | ||
5616 | ac_status=$? | ||
5617 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5618 | rm -f conftest.er1 | ||
5619 | cat conftest.err >&5 | ||
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5621 | (exit $ac_status); } && { | ||
5622 | test -z "$ac_c_werror_flag" || | ||
5623 | test ! -s conftest.err | ||
5624 | } && test -s conftest.$ac_objext; then | ||
5625 | ac_cv_have_decl_LLONG_MAX=yes | ||
5626 | else | ||
5627 | echo "$as_me: failed program was:" >&5 | ||
5628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5629 | |||
5630 | ac_cv_have_decl_LLONG_MAX=no | ||
5631 | fi | ||
5632 | |||
5633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5634 | fi | ||
5635 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5636 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5637 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5638 | have_llong_max=1 | ||
5639 | else | ||
5640 | CFLAGS="$saved_CFLAGS" | ||
5641 | fi | ||
5642 | |||
5643 | fi | ||
5644 | fi | ||
5645 | |||
5646 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5647 | |||
5648 | cat >>confdefs.h <<\_ACEOF | ||
5649 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
5650 | _ACEOF | ||
5651 | |||
5652 | fi | ||
5653 | |||
5654 | |||
5655 | # Check whether --with-rpath was given. | ||
5656 | if test "${with_rpath+set}" = set; then | ||
5657 | withval=$with_rpath; | ||
5658 | if test "x$withval" = "xno" ; then | ||
5659 | need_dash_r="" | ||
5660 | fi | ||
5661 | if test "x$withval" = "xyes" ; then | ||
5662 | need_dash_r=1 | ||
5663 | fi | ||
5664 | |||
5665 | |||
5666 | fi | ||
5667 | |||
5668 | |||
5669 | # Allow user to specify flags | ||
5670 | |||
5671 | # Check whether --with-cflags was given. | ||
5672 | if test "${with_cflags+set}" = set; then | ||
5673 | withval=$with_cflags; | ||
5674 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5675 | test "x${withval}" != "xyes"; then | ||
5676 | CFLAGS="$CFLAGS $withval" | ||
5677 | fi | ||
5678 | |||
5679 | |||
5680 | fi | ||
5681 | |||
5682 | |||
5683 | # Check whether --with-cppflags was given. | ||
5684 | if test "${with_cppflags+set}" = set; then | ||
5685 | withval=$with_cppflags; | ||
5686 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5687 | test "x${withval}" != "xyes"; then | ||
5688 | CPPFLAGS="$CPPFLAGS $withval" | ||
5689 | fi | ||
5690 | |||
5691 | |||
5692 | fi | ||
5693 | |||
5694 | |||
5695 | # Check whether --with-ldflags was given. | ||
5696 | if test "${with_ldflags+set}" = set; then | ||
5697 | withval=$with_ldflags; | ||
5698 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5699 | test "x${withval}" != "xyes"; then | ||
5700 | LDFLAGS="$LDFLAGS $withval" | ||
5701 | fi | ||
5702 | |||
5703 | |||
5704 | fi | ||
5705 | |||
5706 | |||
5707 | # Check whether --with-libs was given. | ||
5708 | if test "${with_libs+set}" = set; then | ||
5709 | withval=$with_libs; | ||
5710 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5711 | test "x${withval}" != "xyes"; then | ||
5712 | LIBS="$LIBS $withval" | ||
5713 | fi | ||
5714 | |||
5715 | |||
5716 | fi | ||
5717 | |||
5718 | |||
5719 | # Check whether --with-Werror was given. | ||
5720 | if test "${with_Werror+set}" = set; then | ||
5721 | withval=$with_Werror; | ||
5722 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5723 | werror_flags="-Werror" | ||
5724 | if test "x${withval}" != "xyes"; then | ||
5725 | werror_flags="$withval" | ||
5726 | fi | ||
5727 | fi | ||
5728 | |||
5729 | |||
5730 | fi | ||
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 | |||
5796 | |||
5797 | for ac_header in \ | ||
5798 | bstring.h \ | ||
5799 | crypt.h \ | ||
5800 | crypto/sha2.h \ | ||
5801 | dirent.h \ | ||
5802 | endian.h \ | ||
5803 | features.h \ | ||
5804 | fcntl.h \ | ||
5805 | floatingpoint.h \ | ||
5806 | getopt.h \ | ||
5807 | glob.h \ | ||
5808 | ia.h \ | ||
5809 | iaf.h \ | ||
5810 | limits.h \ | ||
5811 | login.h \ | ||
5812 | maillock.h \ | ||
5813 | ndir.h \ | ||
5814 | net/if_tun.h \ | ||
5815 | netdb.h \ | ||
5816 | netgroup.h \ | ||
5817 | pam/pam_appl.h \ | ||
5818 | paths.h \ | ||
5819 | poll.h \ | ||
5820 | pty.h \ | ||
5821 | readpassphrase.h \ | ||
5822 | rpc/types.h \ | ||
5823 | security/pam_appl.h \ | ||
5824 | sha2.h \ | ||
5825 | shadow.h \ | ||
5826 | stddef.h \ | ||
5827 | stdint.h \ | ||
5828 | string.h \ | ||
5829 | strings.h \ | ||
5830 | sys/audit.h \ | ||
5831 | sys/bitypes.h \ | ||
5832 | sys/bsdtty.h \ | ||
5833 | sys/cdefs.h \ | ||
5834 | sys/dir.h \ | ||
5835 | sys/mman.h \ | ||
5836 | sys/mount.h \ | ||
5837 | sys/ndir.h \ | ||
5838 | sys/poll.h \ | ||
5839 | sys/prctl.h \ | ||
5840 | sys/pstat.h \ | ||
5841 | sys/select.h \ | ||
5842 | sys/stat.h \ | ||
5843 | sys/stream.h \ | ||
5844 | sys/stropts.h \ | ||
5845 | sys/strtio.h \ | ||
5846 | sys/statvfs.h \ | ||
5847 | sys/sysmacros.h \ | ||
5848 | sys/time.h \ | ||
5849 | sys/timers.h \ | ||
5850 | sys/un.h \ | ||
5851 | time.h \ | ||
5852 | tmpdir.h \ | ||
5853 | ttyent.h \ | ||
5854 | ucred.h \ | ||
5855 | unistd.h \ | ||
5856 | usersec.h \ | ||
5857 | util.h \ | ||
5858 | utime.h \ | ||
5859 | utmp.h \ | ||
5860 | utmpx.h \ | ||
5861 | vis.h \ | ||
5862 | |||
5863 | do | ||
5864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5870 | fi | ||
5871 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5873 | echo "${ECHO_T}$ac_res" >&6; } | ||
5874 | else | ||
5875 | # Is the header compilable? | ||
5876 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5878 | cat >conftest.$ac_ext <<_ACEOF | ||
5879 | /* confdefs.h. */ | ||
5880 | _ACEOF | ||
5881 | cat confdefs.h >>conftest.$ac_ext | ||
5882 | cat >>conftest.$ac_ext <<_ACEOF | ||
5883 | /* end confdefs.h. */ | ||
5884 | $ac_includes_default | ||
5885 | #include <$ac_header> | ||
5886 | _ACEOF | ||
5887 | rm -f conftest.$ac_objext | ||
5888 | if { (ac_try="$ac_compile" | ||
5889 | case "(($ac_try" in | ||
5890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5891 | *) ac_try_echo=$ac_try;; | ||
5892 | esac | ||
5893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5894 | (eval "$ac_compile") 2>conftest.er1 | ||
5895 | ac_status=$? | ||
5896 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5897 | rm -f conftest.er1 | ||
5898 | cat conftest.err >&5 | ||
5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5900 | (exit $ac_status); } && { | ||
5901 | test -z "$ac_c_werror_flag" || | ||
5902 | test ! -s conftest.err | ||
5903 | } && test -s conftest.$ac_objext; then | ||
5904 | ac_header_compiler=yes | ||
5905 | else | ||
5906 | echo "$as_me: failed program was:" >&5 | ||
5907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5908 | |||
5909 | ac_header_compiler=no | ||
5910 | fi | ||
5911 | |||
5912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5913 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5914 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5915 | |||
5916 | # Is the header present? | ||
5917 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5918 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5919 | cat >conftest.$ac_ext <<_ACEOF | ||
5920 | /* confdefs.h. */ | ||
5921 | _ACEOF | ||
5922 | cat confdefs.h >>conftest.$ac_ext | ||
5923 | cat >>conftest.$ac_ext <<_ACEOF | ||
5924 | /* end confdefs.h. */ | ||
5925 | #include <$ac_header> | ||
5926 | _ACEOF | ||
5927 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5928 | case "(($ac_try" in | ||
5929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5930 | *) ac_try_echo=$ac_try;; | ||
5931 | esac | ||
5932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5933 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5934 | ac_status=$? | ||
5935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5936 | rm -f conftest.er1 | ||
5937 | cat conftest.err >&5 | ||
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5939 | (exit $ac_status); } >/dev/null && { | ||
5940 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5941 | test ! -s conftest.err | ||
5942 | }; then | ||
5943 | ac_header_preproc=yes | ||
5944 | else | ||
5945 | echo "$as_me: failed program was:" >&5 | ||
5946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5947 | |||
5948 | ac_header_preproc=no | ||
5949 | fi | ||
5950 | |||
5951 | rm -f conftest.err conftest.$ac_ext | ||
5952 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5953 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5954 | |||
5955 | # So? What about this header? | ||
5956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5957 | yes:no: ) | ||
5958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5961 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5962 | ac_header_preproc=yes | ||
5963 | ;; | ||
5964 | no:yes:* ) | ||
5965 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5966 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5967 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5968 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5970 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5971 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5972 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5973 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5974 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5975 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5976 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5977 | ( cat <<\_ASBOX | ||
5978 | ## ------------------------------------------- ## | ||
5979 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5980 | ## ------------------------------------------- ## | ||
5981 | _ASBOX | ||
5982 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5983 | ;; | ||
5984 | esac | ||
5985 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5989 | else | ||
5990 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5991 | fi | ||
5992 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5994 | echo "${ECHO_T}$ac_res" >&6; } | ||
5995 | |||
5996 | fi | ||
5997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5998 | cat >>confdefs.h <<_ACEOF | ||
5999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6000 | _ACEOF | ||
6001 | |||
6002 | fi | ||
6003 | |||
6004 | done | ||
6005 | |||
6006 | |||
6007 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6008 | |||
6009 | for ac_header in lastlog.h | ||
6010 | do | ||
6011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6016 | else | ||
6017 | cat >conftest.$ac_ext <<_ACEOF | ||
6018 | /* confdefs.h. */ | ||
6019 | _ACEOF | ||
6020 | cat confdefs.h >>conftest.$ac_ext | ||
6021 | cat >>conftest.$ac_ext <<_ACEOF | ||
6022 | /* end confdefs.h. */ | ||
6023 | |||
6024 | #ifdef HAVE_SYS_TIME_H | ||
6025 | # include <sys/time.h> | ||
6026 | #endif | ||
6027 | |||
6028 | |||
6029 | #include <$ac_header> | ||
6030 | _ACEOF | ||
6031 | rm -f conftest.$ac_objext | ||
6032 | if { (ac_try="$ac_compile" | ||
6033 | case "(($ac_try" in | ||
6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6035 | *) ac_try_echo=$ac_try;; | ||
6036 | esac | ||
6037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6038 | (eval "$ac_compile") 2>conftest.er1 | ||
6039 | ac_status=$? | ||
6040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6041 | rm -f conftest.er1 | ||
6042 | cat conftest.err >&5 | ||
6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6044 | (exit $ac_status); } && { | ||
6045 | test -z "$ac_c_werror_flag" || | ||
6046 | test ! -s conftest.err | ||
6047 | } && test -s conftest.$ac_objext; then | ||
6048 | eval "$as_ac_Header=yes" | ||
6049 | else | ||
6050 | echo "$as_me: failed program was:" >&5 | ||
6051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6052 | |||
6053 | eval "$as_ac_Header=no" | ||
6054 | fi | ||
6055 | |||
6056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6057 | fi | ||
6058 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6060 | echo "${ECHO_T}$ac_res" >&6; } | ||
6061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6062 | cat >>confdefs.h <<_ACEOF | ||
6063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6064 | _ACEOF | ||
6065 | |||
6066 | fi | ||
6067 | |||
6068 | done | ||
6069 | |||
6070 | |||
6071 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6072 | |||
6073 | for ac_header in sys/ptms.h | ||
6074 | do | ||
6075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6076 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6080 | else | ||
6081 | cat >conftest.$ac_ext <<_ACEOF | ||
6082 | /* confdefs.h. */ | ||
6083 | _ACEOF | ||
6084 | cat confdefs.h >>conftest.$ac_ext | ||
6085 | cat >>conftest.$ac_ext <<_ACEOF | ||
6086 | /* end confdefs.h. */ | ||
6087 | |||
6088 | #ifdef HAVE_SYS_STREAM_H | ||
6089 | # include <sys/stream.h> | ||
6090 | #endif | ||
6091 | |||
6092 | |||
6093 | #include <$ac_header> | ||
6094 | _ACEOF | ||
6095 | rm -f conftest.$ac_objext | ||
6096 | if { (ac_try="$ac_compile" | ||
6097 | case "(($ac_try" in | ||
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6099 | *) ac_try_echo=$ac_try;; | ||
6100 | esac | ||
6101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6102 | (eval "$ac_compile") 2>conftest.er1 | ||
6103 | ac_status=$? | ||
6104 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6105 | rm -f conftest.er1 | ||
6106 | cat conftest.err >&5 | ||
6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6108 | (exit $ac_status); } && { | ||
6109 | test -z "$ac_c_werror_flag" || | ||
6110 | test ! -s conftest.err | ||
6111 | } && test -s conftest.$ac_objext; then | ||
6112 | eval "$as_ac_Header=yes" | ||
6113 | else | ||
6114 | echo "$as_me: failed program was:" >&5 | ||
6115 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6116 | |||
6117 | eval "$as_ac_Header=no" | ||
6118 | fi | ||
6119 | |||
6120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6121 | fi | ||
6122 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6123 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6124 | echo "${ECHO_T}$ac_res" >&6; } | ||
6125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6126 | cat >>confdefs.h <<_ACEOF | ||
6127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6128 | _ACEOF | ||
6129 | |||
6130 | fi | ||
6131 | |||
6132 | done | ||
6133 | |||
6134 | |||
6135 | # login_cap.h requires sys/types.h on NetBSD | ||
6136 | |||
6137 | for ac_header in login_cap.h | ||
6138 | do | ||
6139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6144 | else | ||
6145 | cat >conftest.$ac_ext <<_ACEOF | ||
6146 | /* confdefs.h. */ | ||
6147 | _ACEOF | ||
6148 | cat confdefs.h >>conftest.$ac_ext | ||
6149 | cat >>conftest.$ac_ext <<_ACEOF | ||
6150 | /* end confdefs.h. */ | ||
6151 | |||
6152 | #include <sys/types.h> | ||
6153 | |||
6154 | |||
6155 | #include <$ac_header> | ||
6156 | _ACEOF | ||
6157 | rm -f conftest.$ac_objext | ||
6158 | if { (ac_try="$ac_compile" | ||
6159 | case "(($ac_try" in | ||
6160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6161 | *) ac_try_echo=$ac_try;; | ||
6162 | esac | ||
6163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6164 | (eval "$ac_compile") 2>conftest.er1 | ||
6165 | ac_status=$? | ||
6166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6167 | rm -f conftest.er1 | ||
6168 | cat conftest.err >&5 | ||
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6170 | (exit $ac_status); } && { | ||
6171 | test -z "$ac_c_werror_flag" || | ||
6172 | test ! -s conftest.err | ||
6173 | } && test -s conftest.$ac_objext; then | ||
6174 | eval "$as_ac_Header=yes" | ||
6175 | else | ||
6176 | echo "$as_me: failed program was:" >&5 | ||
6177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6178 | |||
6179 | eval "$as_ac_Header=no" | ||
6180 | fi | ||
6181 | |||
6182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6183 | fi | ||
6184 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6186 | echo "${ECHO_T}$ac_res" >&6; } | ||
6187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6188 | cat >>confdefs.h <<_ACEOF | ||
6189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6190 | _ACEOF | ||
6191 | |||
6192 | fi | ||
6193 | |||
6194 | done | ||
6195 | |||
6196 | |||
6197 | # Messages for features tested for in target-specific section | ||
6198 | SIA_MSG="no" | ||
6199 | SPC_MSG="no" | ||
6200 | |||
6201 | # Check for some target-specific stuff | ||
6202 | case "$host" in | ||
6203 | *-*-aix*) | ||
6204 | # Some versions of VAC won't allow macro redefinitions at | ||
6205 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6206 | # particularly with older versions of vac or xlc. | ||
6207 | # It also throws errors about null macro argments, but these are | ||
6208 | # not fatal. | ||
6209 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6210 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6211 | cat >conftest.$ac_ext <<_ACEOF | ||
6212 | /* confdefs.h. */ | ||
6213 | _ACEOF | ||
6214 | cat confdefs.h >>conftest.$ac_ext | ||
6215 | cat >>conftest.$ac_ext <<_ACEOF | ||
6216 | /* end confdefs.h. */ | ||
6217 | |||
6218 | #define testmacro foo | ||
6219 | #define testmacro bar | ||
6220 | int main(void) { exit(0); } | ||
6221 | |||
6222 | _ACEOF | ||
6223 | rm -f conftest.$ac_objext | ||
6224 | if { (ac_try="$ac_compile" | ||
6225 | case "(($ac_try" in | ||
6226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6227 | *) ac_try_echo=$ac_try;; | ||
6228 | esac | ||
6229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6230 | (eval "$ac_compile") 2>conftest.er1 | ||
6231 | ac_status=$? | ||
6232 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6233 | rm -f conftest.er1 | ||
6234 | cat conftest.err >&5 | ||
6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6236 | (exit $ac_status); } && { | ||
6237 | test -z "$ac_c_werror_flag" || | ||
6238 | test ! -s conftest.err | ||
6239 | } && test -s conftest.$ac_objext; then | ||
6240 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6241 | echo "${ECHO_T}yes" >&6; } | ||
6242 | else | ||
6243 | echo "$as_me: failed program was:" >&5 | ||
6244 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6245 | |||
6246 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6247 | echo "${ECHO_T}no" >&6; } | ||
6248 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6249 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6250 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6251 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6252 | |||
6253 | |||
6254 | fi | ||
6255 | |||
6256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6257 | |||
6258 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6259 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6260 | if (test -z "$blibpath"); then | ||
6261 | blibpath="/usr/lib:/lib" | ||
6262 | fi | ||
6263 | saved_LDFLAGS="$LDFLAGS" | ||
6264 | if test "$GCC" = "yes"; then | ||
6265 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6266 | else | ||
6267 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6268 | fi | ||
6269 | for tryflags in $flags ;do | ||
6270 | if (test -z "$blibflags"); then | ||
6271 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6272 | cat >conftest.$ac_ext <<_ACEOF | ||
6273 | /* confdefs.h. */ | ||
6274 | _ACEOF | ||
6275 | cat confdefs.h >>conftest.$ac_ext | ||
6276 | cat >>conftest.$ac_ext <<_ACEOF | ||
6277 | /* end confdefs.h. */ | ||
6278 | |||
6279 | int | ||
6280 | main () | ||
6281 | { | ||
6282 | |||
6283 | ; | ||
6284 | return 0; | ||
6285 | } | ||
6286 | _ACEOF | ||
6287 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6288 | if { (ac_try="$ac_link" | ||
6289 | case "(($ac_try" in | ||
6290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6291 | *) ac_try_echo=$ac_try;; | ||
6292 | esac | ||
6293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6294 | (eval "$ac_link") 2>conftest.er1 | ||
6295 | ac_status=$? | ||
6296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6297 | rm -f conftest.er1 | ||
6298 | cat conftest.err >&5 | ||
6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6300 | (exit $ac_status); } && { | ||
6301 | test -z "$ac_c_werror_flag" || | ||
6302 | test ! -s conftest.err | ||
6303 | } && test -s conftest$ac_exeext && | ||
6304 | $as_test_x conftest$ac_exeext; then | ||
6305 | blibflags=$tryflags | ||
6306 | else | ||
6307 | echo "$as_me: failed program was:" >&5 | ||
6308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6309 | |||
6310 | |||
6311 | fi | ||
6312 | |||
6313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6314 | conftest$ac_exeext conftest.$ac_ext | ||
6315 | fi | ||
6316 | done | ||
6317 | if (test -z "$blibflags"); then | ||
6318 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6319 | echo "${ECHO_T}not found" >&6; } | ||
6320 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6321 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6322 | { (exit 1); exit 1; }; } | ||
6323 | else | ||
6324 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6325 | echo "${ECHO_T}$blibflags" >&6; } | ||
6326 | fi | ||
6327 | LDFLAGS="$saved_LDFLAGS" | ||
6328 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6329 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6330 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6332 | else | ||
6333 | cat >conftest.$ac_ext <<_ACEOF | ||
6334 | /* confdefs.h. */ | ||
6335 | _ACEOF | ||
6336 | cat confdefs.h >>conftest.$ac_ext | ||
6337 | cat >>conftest.$ac_ext <<_ACEOF | ||
6338 | /* end confdefs.h. */ | ||
6339 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6341 | #define authenticate innocuous_authenticate | ||
6342 | |||
6343 | /* System header to define __stub macros and hopefully few prototypes, | ||
6344 | which can conflict with char authenticate (); below. | ||
6345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6346 | <limits.h> exists even on freestanding compilers. */ | ||
6347 | |||
6348 | #ifdef __STDC__ | ||
6349 | # include <limits.h> | ||
6350 | #else | ||
6351 | # include <assert.h> | ||
6352 | #endif | ||
6353 | |||
6354 | #undef authenticate | ||
6355 | |||
6356 | /* Override any GCC internal prototype to avoid an error. | ||
6357 | Use char because int might match the return type of a GCC | ||
6358 | builtin and then its argument prototype would still apply. */ | ||
6359 | #ifdef __cplusplus | ||
6360 | extern "C" | ||
6361 | #endif | ||
6362 | char authenticate (); | ||
6363 | /* The GNU C library defines this for functions which it implements | ||
6364 | to always fail with ENOSYS. Some functions are actually named | ||
6365 | something starting with __ and the normal name is an alias. */ | ||
6366 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6367 | choke me | ||
6368 | #endif | ||
6369 | |||
6370 | int | ||
6371 | main () | ||
6372 | { | ||
6373 | return authenticate (); | ||
6374 | ; | ||
6375 | return 0; | ||
6376 | } | ||
6377 | _ACEOF | ||
6378 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6379 | if { (ac_try="$ac_link" | ||
6380 | case "(($ac_try" in | ||
6381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6382 | *) ac_try_echo=$ac_try;; | ||
6383 | esac | ||
6384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6385 | (eval "$ac_link") 2>conftest.er1 | ||
6386 | ac_status=$? | ||
6387 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6388 | rm -f conftest.er1 | ||
6389 | cat conftest.err >&5 | ||
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6391 | (exit $ac_status); } && { | ||
6392 | test -z "$ac_c_werror_flag" || | ||
6393 | test ! -s conftest.err | ||
6394 | } && test -s conftest$ac_exeext && | ||
6395 | $as_test_x conftest$ac_exeext; then | ||
6396 | ac_cv_func_authenticate=yes | ||
6397 | else | ||
6398 | echo "$as_me: failed program was:" >&5 | ||
6399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6400 | |||
6401 | ac_cv_func_authenticate=no | ||
6402 | fi | ||
6403 | |||
6404 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6405 | conftest$ac_exeext conftest.$ac_ext | ||
6406 | fi | ||
6407 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6408 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6409 | if test $ac_cv_func_authenticate = yes; then | ||
6410 | |||
6411 | cat >>confdefs.h <<\_ACEOF | ||
6412 | #define WITH_AIXAUTHENTICATE 1 | ||
6413 | _ACEOF | ||
6414 | |||
6415 | else | ||
6416 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6417 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6418 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6420 | else | ||
6421 | ac_check_lib_save_LIBS=$LIBS | ||
6422 | LIBS="-ls $LIBS" | ||
6423 | cat >conftest.$ac_ext <<_ACEOF | ||
6424 | /* confdefs.h. */ | ||
6425 | _ACEOF | ||
6426 | cat confdefs.h >>conftest.$ac_ext | ||
6427 | cat >>conftest.$ac_ext <<_ACEOF | ||
6428 | /* end confdefs.h. */ | ||
6429 | |||
6430 | /* Override any GCC internal prototype to avoid an error. | ||
6431 | Use char because int might match the return type of a GCC | ||
6432 | builtin and then its argument prototype would still apply. */ | ||
6433 | #ifdef __cplusplus | ||
6434 | extern "C" | ||
6435 | #endif | ||
6436 | char authenticate (); | ||
6437 | int | ||
6438 | main () | ||
6439 | { | ||
6440 | return authenticate (); | ||
6441 | ; | ||
6442 | return 0; | ||
6443 | } | ||
6444 | _ACEOF | ||
6445 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6446 | if { (ac_try="$ac_link" | ||
6447 | case "(($ac_try" in | ||
6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6449 | *) ac_try_echo=$ac_try;; | ||
6450 | esac | ||
6451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6452 | (eval "$ac_link") 2>conftest.er1 | ||
6453 | ac_status=$? | ||
6454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6455 | rm -f conftest.er1 | ||
6456 | cat conftest.err >&5 | ||
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6458 | (exit $ac_status); } && { | ||
6459 | test -z "$ac_c_werror_flag" || | ||
6460 | test ! -s conftest.err | ||
6461 | } && test -s conftest$ac_exeext && | ||
6462 | $as_test_x conftest$ac_exeext; then | ||
6463 | ac_cv_lib_s_authenticate=yes | ||
6464 | else | ||
6465 | echo "$as_me: failed program was:" >&5 | ||
6466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6467 | |||
6468 | ac_cv_lib_s_authenticate=no | ||
6469 | fi | ||
6470 | |||
6471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6472 | conftest$ac_exeext conftest.$ac_ext | ||
6473 | LIBS=$ac_check_lib_save_LIBS | ||
6474 | fi | ||
6475 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6476 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6477 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6478 | cat >>confdefs.h <<\_ACEOF | ||
6479 | #define WITH_AIXAUTHENTICATE 1 | ||
6480 | _ACEOF | ||
6481 | |||
6482 | LIBS="$LIBS -ls" | ||
6483 | |||
6484 | fi | ||
6485 | |||
6486 | |||
6487 | fi | ||
6488 | |||
6489 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6490 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
6491 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6493 | else | ||
6494 | cat >conftest.$ac_ext <<_ACEOF | ||
6495 | /* confdefs.h. */ | ||
6496 | _ACEOF | ||
6497 | cat confdefs.h >>conftest.$ac_ext | ||
6498 | cat >>conftest.$ac_ext <<_ACEOF | ||
6499 | /* end confdefs.h. */ | ||
6500 | #include <usersec.h> | ||
6501 | |||
6502 | int | ||
6503 | main () | ||
6504 | { | ||
6505 | #ifndef authenticate | ||
6506 | (void) authenticate; | ||
6507 | #endif | ||
6508 | |||
6509 | ; | ||
6510 | return 0; | ||
6511 | } | ||
6512 | _ACEOF | ||
6513 | rm -f conftest.$ac_objext | ||
6514 | if { (ac_try="$ac_compile" | ||
6515 | case "(($ac_try" in | ||
6516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6517 | *) ac_try_echo=$ac_try;; | ||
6518 | esac | ||
6519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6520 | (eval "$ac_compile") 2>conftest.er1 | ||
6521 | ac_status=$? | ||
6522 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6523 | rm -f conftest.er1 | ||
6524 | cat conftest.err >&5 | ||
6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6526 | (exit $ac_status); } && { | ||
6527 | test -z "$ac_c_werror_flag" || | ||
6528 | test ! -s conftest.err | ||
6529 | } && test -s conftest.$ac_objext; then | ||
6530 | ac_cv_have_decl_authenticate=yes | ||
6531 | else | ||
6532 | echo "$as_me: failed program was:" >&5 | ||
6533 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6534 | |||
6535 | ac_cv_have_decl_authenticate=no | ||
6536 | fi | ||
6537 | |||
6538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6539 | fi | ||
6540 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6541 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
6542 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6543 | |||
6544 | cat >>confdefs.h <<_ACEOF | ||
6545 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6546 | _ACEOF | ||
6547 | |||
6548 | |||
6549 | else | ||
6550 | cat >>confdefs.h <<_ACEOF | ||
6551 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6552 | _ACEOF | ||
6553 | |||
6554 | |||
6555 | fi | ||
6556 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6557 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
6558 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6560 | else | ||
6561 | cat >conftest.$ac_ext <<_ACEOF | ||
6562 | /* confdefs.h. */ | ||
6563 | _ACEOF | ||
6564 | cat confdefs.h >>conftest.$ac_ext | ||
6565 | cat >>conftest.$ac_ext <<_ACEOF | ||
6566 | /* end confdefs.h. */ | ||
6567 | #include <usersec.h> | ||
6568 | |||
6569 | int | ||
6570 | main () | ||
6571 | { | ||
6572 | #ifndef loginrestrictions | ||
6573 | (void) loginrestrictions; | ||
6574 | #endif | ||
6575 | |||
6576 | ; | ||
6577 | return 0; | ||
6578 | } | ||
6579 | _ACEOF | ||
6580 | rm -f conftest.$ac_objext | ||
6581 | if { (ac_try="$ac_compile" | ||
6582 | case "(($ac_try" in | ||
6583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6584 | *) ac_try_echo=$ac_try;; | ||
6585 | esac | ||
6586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6587 | (eval "$ac_compile") 2>conftest.er1 | ||
6588 | ac_status=$? | ||
6589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6590 | rm -f conftest.er1 | ||
6591 | cat conftest.err >&5 | ||
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6593 | (exit $ac_status); } && { | ||
6594 | test -z "$ac_c_werror_flag" || | ||
6595 | test ! -s conftest.err | ||
6596 | } && test -s conftest.$ac_objext; then | ||
6597 | ac_cv_have_decl_loginrestrictions=yes | ||
6598 | else | ||
6599 | echo "$as_me: failed program was:" >&5 | ||
6600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6601 | |||
6602 | ac_cv_have_decl_loginrestrictions=no | ||
6603 | fi | ||
6604 | |||
6605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6606 | fi | ||
6607 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
6608 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
6609 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
6610 | |||
6611 | cat >>confdefs.h <<_ACEOF | ||
6612 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
6613 | _ACEOF | ||
6614 | |||
6615 | |||
6616 | else | ||
6617 | cat >>confdefs.h <<_ACEOF | ||
6618 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
6619 | _ACEOF | ||
6620 | |||
6621 | |||
6622 | fi | ||
6623 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
6624 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
6625 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6627 | else | ||
6628 | cat >conftest.$ac_ext <<_ACEOF | ||
6629 | /* confdefs.h. */ | ||
6630 | _ACEOF | ||
6631 | cat confdefs.h >>conftest.$ac_ext | ||
6632 | cat >>conftest.$ac_ext <<_ACEOF | ||
6633 | /* end confdefs.h. */ | ||
6634 | #include <usersec.h> | ||
6635 | |||
6636 | int | ||
6637 | main () | ||
6638 | { | ||
6639 | #ifndef loginsuccess | ||
6640 | (void) loginsuccess; | ||
6641 | #endif | ||
6642 | |||
6643 | ; | ||
6644 | return 0; | ||
6645 | } | ||
6646 | _ACEOF | ||
6647 | rm -f conftest.$ac_objext | ||
6648 | if { (ac_try="$ac_compile" | ||
6649 | case "(($ac_try" in | ||
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6651 | *) ac_try_echo=$ac_try;; | ||
6652 | esac | ||
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6654 | (eval "$ac_compile") 2>conftest.er1 | ||
6655 | ac_status=$? | ||
6656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6657 | rm -f conftest.er1 | ||
6658 | cat conftest.err >&5 | ||
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6660 | (exit $ac_status); } && { | ||
6661 | test -z "$ac_c_werror_flag" || | ||
6662 | test ! -s conftest.err | ||
6663 | } && test -s conftest.$ac_objext; then | ||
6664 | ac_cv_have_decl_loginsuccess=yes | ||
6665 | else | ||
6666 | echo "$as_me: failed program was:" >&5 | ||
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6668 | |||
6669 | ac_cv_have_decl_loginsuccess=no | ||
6670 | fi | ||
6671 | |||
6672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6673 | fi | ||
6674 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
6675 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
6676 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
6677 | |||
6678 | cat >>confdefs.h <<_ACEOF | ||
6679 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
6680 | _ACEOF | ||
6681 | |||
6682 | |||
6683 | else | ||
6684 | cat >>confdefs.h <<_ACEOF | ||
6685 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
6686 | _ACEOF | ||
6687 | |||
6688 | |||
6689 | fi | ||
6690 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
6691 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
6692 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
6693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6694 | else | ||
6695 | cat >conftest.$ac_ext <<_ACEOF | ||
6696 | /* confdefs.h. */ | ||
6697 | _ACEOF | ||
6698 | cat confdefs.h >>conftest.$ac_ext | ||
6699 | cat >>conftest.$ac_ext <<_ACEOF | ||
6700 | /* end confdefs.h. */ | ||
6701 | #include <usersec.h> | ||
6702 | |||
6703 | int | ||
6704 | main () | ||
6705 | { | ||
6706 | #ifndef passwdexpired | ||
6707 | (void) passwdexpired; | ||
6708 | #endif | ||
6709 | |||
6710 | ; | ||
6711 | return 0; | ||
6712 | } | ||
6713 | _ACEOF | ||
6714 | rm -f conftest.$ac_objext | ||
6715 | if { (ac_try="$ac_compile" | ||
6716 | case "(($ac_try" in | ||
6717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6718 | *) ac_try_echo=$ac_try;; | ||
6719 | esac | ||
6720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6721 | (eval "$ac_compile") 2>conftest.er1 | ||
6722 | ac_status=$? | ||
6723 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6724 | rm -f conftest.er1 | ||
6725 | cat conftest.err >&5 | ||
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6727 | (exit $ac_status); } && { | ||
6728 | test -z "$ac_c_werror_flag" || | ||
6729 | test ! -s conftest.err | ||
6730 | } && test -s conftest.$ac_objext; then | ||
6731 | ac_cv_have_decl_passwdexpired=yes | ||
6732 | else | ||
6733 | echo "$as_me: failed program was:" >&5 | ||
6734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6735 | |||
6736 | ac_cv_have_decl_passwdexpired=no | ||
6737 | fi | ||
6738 | |||
6739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6740 | fi | ||
6741 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
6742 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
6743 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
6744 | |||
6745 | cat >>confdefs.h <<_ACEOF | ||
6746 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
6747 | _ACEOF | ||
6748 | |||
6749 | |||
6750 | else | ||
6751 | cat >>confdefs.h <<_ACEOF | ||
6752 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
6753 | _ACEOF | ||
6754 | |||
6755 | |||
6756 | fi | ||
6757 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
6758 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
6759 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
6760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6761 | else | ||
6762 | cat >conftest.$ac_ext <<_ACEOF | ||
6763 | /* confdefs.h. */ | ||
6764 | _ACEOF | ||
6765 | cat confdefs.h >>conftest.$ac_ext | ||
6766 | cat >>conftest.$ac_ext <<_ACEOF | ||
6767 | /* end confdefs.h. */ | ||
6768 | #include <usersec.h> | ||
6769 | |||
6770 | int | ||
6771 | main () | ||
6772 | { | ||
6773 | #ifndef setauthdb | ||
6774 | (void) setauthdb; | ||
6775 | #endif | ||
6776 | |||
6777 | ; | ||
6778 | return 0; | ||
6779 | } | ||
6780 | _ACEOF | ||
6781 | rm -f conftest.$ac_objext | ||
6782 | if { (ac_try="$ac_compile" | ||
6783 | case "(($ac_try" in | ||
6784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6785 | *) ac_try_echo=$ac_try;; | ||
6786 | esac | ||
6787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6788 | (eval "$ac_compile") 2>conftest.er1 | ||
6789 | ac_status=$? | ||
6790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6791 | rm -f conftest.er1 | ||
6792 | cat conftest.err >&5 | ||
6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6794 | (exit $ac_status); } && { | ||
6795 | test -z "$ac_c_werror_flag" || | ||
6796 | test ! -s conftest.err | ||
6797 | } && test -s conftest.$ac_objext; then | ||
6798 | ac_cv_have_decl_setauthdb=yes | ||
6799 | else | ||
6800 | echo "$as_me: failed program was:" >&5 | ||
6801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6802 | |||
6803 | ac_cv_have_decl_setauthdb=no | ||
6804 | fi | ||
6805 | |||
6806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6807 | fi | ||
6808 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
6809 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
6810 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
6811 | |||
6812 | cat >>confdefs.h <<_ACEOF | ||
6813 | #define HAVE_DECL_SETAUTHDB 1 | ||
6814 | _ACEOF | ||
6815 | |||
6816 | |||
6817 | else | ||
6818 | cat >>confdefs.h <<_ACEOF | ||
6819 | #define HAVE_DECL_SETAUTHDB 0 | ||
6820 | _ACEOF | ||
6821 | |||
6822 | |||
6823 | fi | ||
6824 | |||
6825 | |||
6826 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
6827 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
6828 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
6829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6830 | else | ||
6831 | cat >conftest.$ac_ext <<_ACEOF | ||
6832 | /* confdefs.h. */ | ||
6833 | _ACEOF | ||
6834 | cat confdefs.h >>conftest.$ac_ext | ||
6835 | cat >>conftest.$ac_ext <<_ACEOF | ||
6836 | /* end confdefs.h. */ | ||
6837 | #include <usersec.h> | ||
6838 | |||
6839 | |||
6840 | int | ||
6841 | main () | ||
6842 | { | ||
6843 | #ifndef loginfailed | ||
6844 | (void) loginfailed; | ||
6845 | #endif | ||
6846 | |||
6847 | ; | ||
6848 | return 0; | ||
6849 | } | ||
6850 | _ACEOF | ||
6851 | rm -f conftest.$ac_objext | ||
6852 | if { (ac_try="$ac_compile" | ||
6853 | case "(($ac_try" in | ||
6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6855 | *) ac_try_echo=$ac_try;; | ||
6856 | esac | ||
6857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6858 | (eval "$ac_compile") 2>conftest.er1 | ||
6859 | ac_status=$? | ||
6860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6861 | rm -f conftest.er1 | ||
6862 | cat conftest.err >&5 | ||
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6864 | (exit $ac_status); } && { | ||
6865 | test -z "$ac_c_werror_flag" || | ||
6866 | test ! -s conftest.err | ||
6867 | } && test -s conftest.$ac_objext; then | ||
6868 | ac_cv_have_decl_loginfailed=yes | ||
6869 | else | ||
6870 | echo "$as_me: failed program was:" >&5 | ||
6871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6872 | |||
6873 | ac_cv_have_decl_loginfailed=no | ||
6874 | fi | ||
6875 | |||
6876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6877 | fi | ||
6878 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
6879 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
6880 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
6881 | |||
6882 | cat >>confdefs.h <<_ACEOF | ||
6883 | #define HAVE_DECL_LOGINFAILED 1 | ||
6884 | _ACEOF | ||
6885 | |||
6886 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
6887 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
6888 | cat >conftest.$ac_ext <<_ACEOF | ||
6889 | /* confdefs.h. */ | ||
6890 | _ACEOF | ||
6891 | cat confdefs.h >>conftest.$ac_ext | ||
6892 | cat >>conftest.$ac_ext <<_ACEOF | ||
6893 | /* end confdefs.h. */ | ||
6894 | #include <usersec.h> | ||
6895 | int | ||
6896 | main () | ||
6897 | { | ||
6898 | (void)loginfailed("user","host","tty",0); | ||
6899 | ; | ||
6900 | return 0; | ||
6901 | } | ||
6902 | _ACEOF | ||
6903 | rm -f conftest.$ac_objext | ||
6904 | if { (ac_try="$ac_compile" | ||
6905 | case "(($ac_try" in | ||
6906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6907 | *) ac_try_echo=$ac_try;; | ||
6908 | esac | ||
6909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6910 | (eval "$ac_compile") 2>conftest.er1 | ||
6911 | ac_status=$? | ||
6912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6913 | rm -f conftest.er1 | ||
6914 | cat conftest.err >&5 | ||
6915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6916 | (exit $ac_status); } && { | ||
6917 | test -z "$ac_c_werror_flag" || | ||
6918 | test ! -s conftest.err | ||
6919 | } && test -s conftest.$ac_objext; then | ||
6920 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6921 | echo "${ECHO_T}yes" >&6; } | ||
6922 | |||
6923 | cat >>confdefs.h <<\_ACEOF | ||
6924 | #define AIX_LOGINFAILED_4ARG 1 | ||
6925 | _ACEOF | ||
6926 | |||
6927 | else | ||
6928 | echo "$as_me: failed program was:" >&5 | ||
6929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6930 | |||
6931 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6932 | echo "${ECHO_T}no" >&6; } | ||
6933 | |||
6934 | fi | ||
6935 | |||
6936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6937 | else | ||
6938 | cat >>confdefs.h <<_ACEOF | ||
6939 | #define HAVE_DECL_LOGINFAILED 0 | ||
6940 | _ACEOF | ||
6941 | |||
6942 | |||
6943 | fi | ||
6944 | |||
6945 | |||
6946 | |||
6947 | |||
6948 | for ac_func in getgrset setauthdb | ||
6949 | do | ||
6950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6951 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
6953 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6955 | else | ||
6956 | cat >conftest.$ac_ext <<_ACEOF | ||
6957 | /* confdefs.h. */ | ||
6958 | _ACEOF | ||
6959 | cat confdefs.h >>conftest.$ac_ext | ||
6960 | cat >>conftest.$ac_ext <<_ACEOF | ||
6961 | /* end confdefs.h. */ | ||
6962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6964 | #define $ac_func innocuous_$ac_func | ||
6965 | |||
6966 | /* System header to define __stub macros and hopefully few prototypes, | ||
6967 | which can conflict with char $ac_func (); below. | ||
6968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6969 | <limits.h> exists even on freestanding compilers. */ | ||
6970 | |||
6971 | #ifdef __STDC__ | ||
6972 | # include <limits.h> | ||
6973 | #else | ||
6974 | # include <assert.h> | ||
6975 | #endif | ||
6976 | |||
6977 | #undef $ac_func | ||
6978 | |||
6979 | /* Override any GCC internal prototype to avoid an error. | ||
6980 | Use char because int might match the return type of a GCC | ||
6981 | builtin and then its argument prototype would still apply. */ | ||
6982 | #ifdef __cplusplus | ||
6983 | extern "C" | ||
6984 | #endif | ||
6985 | char $ac_func (); | ||
6986 | /* The GNU C library defines this for functions which it implements | ||
6987 | to always fail with ENOSYS. Some functions are actually named | ||
6988 | something starting with __ and the normal name is an alias. */ | ||
6989 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
6990 | choke me | ||
6991 | #endif | ||
6992 | |||
6993 | int | ||
6994 | main () | ||
6995 | { | ||
6996 | return $ac_func (); | ||
6997 | ; | ||
6998 | return 0; | ||
6999 | } | ||
7000 | _ACEOF | ||
7001 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7002 | if { (ac_try="$ac_link" | ||
7003 | case "(($ac_try" in | ||
7004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7005 | *) ac_try_echo=$ac_try;; | ||
7006 | esac | ||
7007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7008 | (eval "$ac_link") 2>conftest.er1 | ||
7009 | ac_status=$? | ||
7010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7011 | rm -f conftest.er1 | ||
7012 | cat conftest.err >&5 | ||
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7014 | (exit $ac_status); } && { | ||
7015 | test -z "$ac_c_werror_flag" || | ||
7016 | test ! -s conftest.err | ||
7017 | } && test -s conftest$ac_exeext && | ||
7018 | $as_test_x conftest$ac_exeext; then | ||
7019 | eval "$as_ac_var=yes" | ||
7020 | else | ||
7021 | echo "$as_me: failed program was:" >&5 | ||
7022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7023 | |||
7024 | eval "$as_ac_var=no" | ||
7025 | fi | ||
7026 | |||
7027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7028 | conftest$ac_exeext conftest.$ac_ext | ||
7029 | fi | ||
7030 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
7031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7032 | echo "${ECHO_T}$ac_res" >&6; } | ||
7033 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7034 | cat >>confdefs.h <<_ACEOF | ||
7035 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7036 | _ACEOF | ||
7037 | |||
7038 | fi | ||
7039 | done | ||
7040 | |||
7041 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7042 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
7043 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7045 | else | ||
7046 | cat >conftest.$ac_ext <<_ACEOF | ||
7047 | /* confdefs.h. */ | ||
7048 | _ACEOF | ||
7049 | cat confdefs.h >>conftest.$ac_ext | ||
7050 | cat >>conftest.$ac_ext <<_ACEOF | ||
7051 | /* end confdefs.h. */ | ||
7052 | #include <limits.h> | ||
7053 | #include <fcntl.h> | ||
7054 | |||
7055 | |||
7056 | int | ||
7057 | main () | ||
7058 | { | ||
7059 | #ifndef F_CLOSEM | ||
7060 | (void) F_CLOSEM; | ||
7061 | #endif | ||
7062 | |||
7063 | ; | ||
7064 | return 0; | ||
7065 | } | ||
7066 | _ACEOF | ||
7067 | rm -f conftest.$ac_objext | ||
7068 | if { (ac_try="$ac_compile" | ||
7069 | case "(($ac_try" in | ||
7070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7071 | *) ac_try_echo=$ac_try;; | ||
7072 | esac | ||
7073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7074 | (eval "$ac_compile") 2>conftest.er1 | ||
7075 | ac_status=$? | ||
7076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7077 | rm -f conftest.er1 | ||
7078 | cat conftest.err >&5 | ||
7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7080 | (exit $ac_status); } && { | ||
7081 | test -z "$ac_c_werror_flag" || | ||
7082 | test ! -s conftest.err | ||
7083 | } && test -s conftest.$ac_objext; then | ||
7084 | ac_cv_have_decl_F_CLOSEM=yes | ||
7085 | else | ||
7086 | echo "$as_me: failed program was:" >&5 | ||
7087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7088 | |||
7089 | ac_cv_have_decl_F_CLOSEM=no | ||
7090 | fi | ||
7091 | |||
7092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7093 | fi | ||
7094 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7095 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7096 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7097 | |||
7098 | cat >>confdefs.h <<\_ACEOF | ||
7099 | #define HAVE_FCNTL_CLOSEM 1 | ||
7100 | _ACEOF | ||
7101 | |||
7102 | fi | ||
7103 | |||
7104 | check_for_aix_broken_getaddrinfo=1 | ||
7105 | |||
7106 | cat >>confdefs.h <<\_ACEOF | ||
7107 | #define BROKEN_REALPATH 1 | ||
7108 | _ACEOF | ||
7109 | |||
7110 | |||
7111 | cat >>confdefs.h <<\_ACEOF | ||
7112 | #define SETEUID_BREAKS_SETUID 1 | ||
7113 | _ACEOF | ||
7114 | |||
7115 | |||
7116 | cat >>confdefs.h <<\_ACEOF | ||
7117 | #define BROKEN_SETREUID 1 | ||
7118 | _ACEOF | ||
7119 | |||
7120 | |||
7121 | cat >>confdefs.h <<\_ACEOF | ||
7122 | #define BROKEN_SETREGID 1 | ||
7123 | _ACEOF | ||
7124 | |||
7125 | |||
7126 | cat >>confdefs.h <<\_ACEOF | ||
7127 | #define DISABLE_LASTLOG 1 | ||
7128 | _ACEOF | ||
7129 | |||
7130 | |||
7131 | cat >>confdefs.h <<\_ACEOF | ||
7132 | #define LOGIN_NEEDS_UTMPX 1 | ||
7133 | _ACEOF | ||
7134 | |||
7135 | |||
7136 | cat >>confdefs.h <<\_ACEOF | ||
7137 | #define SPT_TYPE SPT_REUSEARGV | ||
7138 | _ACEOF | ||
7139 | |||
7140 | |||
7141 | cat >>confdefs.h <<\_ACEOF | ||
7142 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7143 | _ACEOF | ||
7144 | |||
7145 | |||
7146 | cat >>confdefs.h <<\_ACEOF | ||
7147 | #define PTY_ZEROREAD 1 | ||
7148 | _ACEOF | ||
7149 | |||
7150 | ;; | ||
7151 | *-*-cygwin*) | ||
7152 | check_for_libcrypt_later=1 | ||
7153 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7154 | |||
7155 | cat >>confdefs.h <<\_ACEOF | ||
7156 | #define HAVE_CYGWIN 1 | ||
7157 | _ACEOF | ||
7158 | |||
7159 | |||
7160 | cat >>confdefs.h <<\_ACEOF | ||
7161 | #define USE_PIPES 1 | ||
7162 | _ACEOF | ||
7163 | |||
7164 | |||
7165 | cat >>confdefs.h <<\_ACEOF | ||
7166 | #define DISABLE_SHADOW 1 | ||
7167 | _ACEOF | ||
7168 | |||
7169 | |||
7170 | cat >>confdefs.h <<\_ACEOF | ||
7171 | #define IP_TOS_IS_BROKEN 1 | ||
7172 | _ACEOF | ||
7173 | |||
7174 | |||
7175 | cat >>confdefs.h <<\_ACEOF | ||
7176 | #define NO_X11_UNIX_SOCKETS 1 | ||
7177 | _ACEOF | ||
7178 | |||
7179 | |||
7180 | cat >>confdefs.h <<\_ACEOF | ||
7181 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7182 | _ACEOF | ||
7183 | |||
7184 | |||
7185 | cat >>confdefs.h <<\_ACEOF | ||
7186 | #define DISABLE_FD_PASSING 1 | ||
7187 | _ACEOF | ||
7188 | |||
7189 | ;; | ||
7190 | *-*-dgux*) | ||
7191 | cat >>confdefs.h <<\_ACEOF | ||
7192 | #define IP_TOS_IS_BROKEN 1 | ||
7193 | _ACEOF | ||
7194 | |||
7195 | cat >>confdefs.h <<\_ACEOF | ||
7196 | #define SETEUID_BREAKS_SETUID 1 | ||
7197 | _ACEOF | ||
7198 | |||
7199 | cat >>confdefs.h <<\_ACEOF | ||
7200 | #define BROKEN_SETREUID 1 | ||
7201 | _ACEOF | ||
7202 | |||
7203 | cat >>confdefs.h <<\_ACEOF | ||
7204 | #define BROKEN_SETREGID 1 | ||
7205 | _ACEOF | ||
7206 | |||
7207 | ;; | ||
7208 | *-*-darwin*) | ||
7209 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7210 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7211 | if test "$cross_compiling" = yes; then | ||
7212 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7213 | echo "${ECHO_T}assume it is working" >&6; } | ||
7214 | else | ||
7215 | cat >conftest.$ac_ext <<_ACEOF | ||
7216 | /* confdefs.h. */ | ||
7217 | _ACEOF | ||
7218 | cat confdefs.h >>conftest.$ac_ext | ||
7219 | cat >>conftest.$ac_ext <<_ACEOF | ||
7220 | /* end confdefs.h. */ | ||
7221 | #include <mach-o/dyld.h> | ||
7222 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7223 | exit(0); | ||
7224 | else | ||
7225 | exit(1); | ||
7226 | } | ||
7227 | _ACEOF | ||
7228 | rm -f conftest$ac_exeext | ||
7229 | if { (ac_try="$ac_link" | ||
7230 | case "(($ac_try" in | ||
7231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7232 | *) ac_try_echo=$ac_try;; | ||
7233 | esac | ||
7234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7235 | (eval "$ac_link") 2>&5 | ||
7236 | ac_status=$? | ||
7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7239 | { (case "(($ac_try" in | ||
7240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7241 | *) ac_try_echo=$ac_try;; | ||
7242 | esac | ||
7243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7244 | (eval "$ac_try") 2>&5 | ||
7245 | ac_status=$? | ||
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7247 | (exit $ac_status); }; }; then | ||
7248 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7249 | echo "${ECHO_T}working" >&6; } | ||
7250 | else | ||
7251 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7252 | echo "$as_me: failed program was:" >&5 | ||
7253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7254 | |||
7255 | ( exit $ac_status ) | ||
7256 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7257 | echo "${ECHO_T}buggy" >&6; } | ||
7258 | |||
7259 | cat >>confdefs.h <<\_ACEOF | ||
7260 | #define BROKEN_GETADDRINFO 1 | ||
7261 | _ACEOF | ||
7262 | |||
7263 | fi | ||
7264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7265 | fi | ||
7266 | |||
7267 | |||
7268 | cat >>confdefs.h <<\_ACEOF | ||
7269 | #define SETEUID_BREAKS_SETUID 1 | ||
7270 | _ACEOF | ||
7271 | |||
7272 | cat >>confdefs.h <<\_ACEOF | ||
7273 | #define BROKEN_SETREUID 1 | ||
7274 | _ACEOF | ||
7275 | |||
7276 | cat >>confdefs.h <<\_ACEOF | ||
7277 | #define BROKEN_SETREGID 1 | ||
7278 | _ACEOF | ||
7279 | |||
7280 | |||
7281 | cat >>confdefs.h <<\_ACEOF | ||
7282 | #define BROKEN_GLOB 1 | ||
7283 | _ACEOF | ||
7284 | |||
7285 | |||
7286 | cat >>confdefs.h <<_ACEOF | ||
7287 | #define BIND_8_COMPAT 1 | ||
7288 | _ACEOF | ||
7289 | |||
7290 | |||
7291 | cat >>confdefs.h <<\_ACEOF | ||
7292 | #define SSH_TUN_FREEBSD 1 | ||
7293 | _ACEOF | ||
7294 | |||
7295 | |||
7296 | cat >>confdefs.h <<\_ACEOF | ||
7297 | #define SSH_TUN_COMPAT_AF 1 | ||
7298 | _ACEOF | ||
7299 | |||
7300 | |||
7301 | cat >>confdefs.h <<\_ACEOF | ||
7302 | #define SSH_TUN_PREPEND_AF 1 | ||
7303 | _ACEOF | ||
7304 | |||
7305 | |||
7306 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7307 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
7308 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7310 | else | ||
7311 | cat >conftest.$ac_ext <<_ACEOF | ||
7312 | /* confdefs.h. */ | ||
7313 | _ACEOF | ||
7314 | cat confdefs.h >>conftest.$ac_ext | ||
7315 | cat >>conftest.$ac_ext <<_ACEOF | ||
7316 | /* end confdefs.h. */ | ||
7317 | $ac_includes_default | ||
7318 | int | ||
7319 | main () | ||
7320 | { | ||
7321 | #ifndef AU_IPv4 | ||
7322 | (void) AU_IPv4; | ||
7323 | #endif | ||
7324 | |||
7325 | ; | ||
7326 | return 0; | ||
7327 | } | ||
7328 | _ACEOF | ||
7329 | rm -f conftest.$ac_objext | ||
7330 | if { (ac_try="$ac_compile" | ||
7331 | case "(($ac_try" in | ||
7332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7333 | *) ac_try_echo=$ac_try;; | ||
7334 | esac | ||
7335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7336 | (eval "$ac_compile") 2>conftest.er1 | ||
7337 | ac_status=$? | ||
7338 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7339 | rm -f conftest.er1 | ||
7340 | cat conftest.err >&5 | ||
7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7342 | (exit $ac_status); } && { | ||
7343 | test -z "$ac_c_werror_flag" || | ||
7344 | test ! -s conftest.err | ||
7345 | } && test -s conftest.$ac_objext; then | ||
7346 | ac_cv_have_decl_AU_IPv4=yes | ||
7347 | else | ||
7348 | echo "$as_me: failed program was:" >&5 | ||
7349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7350 | |||
7351 | ac_cv_have_decl_AU_IPv4=no | ||
7352 | fi | ||
7353 | |||
7354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7355 | fi | ||
7356 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7357 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7358 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7359 | : | ||
7360 | else | ||
7361 | |||
7362 | cat >>confdefs.h <<\_ACEOF | ||
7363 | #define AU_IPv4 0 | ||
7364 | _ACEOF | ||
7365 | |||
7366 | #include <bsm/audit.h> | ||
7367 | |||
7368 | cat >>confdefs.h <<\_ACEOF | ||
7369 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
7370 | _ACEOF | ||
7371 | |||
7372 | |||
7373 | fi | ||
7374 | |||
7375 | ;; | ||
7376 | *-*-dragonfly*) | ||
7377 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7378 | ;; | ||
7379 | *-*-hpux*) | ||
7380 | # first we define all of the options common to all HP-UX releases | ||
7381 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7382 | IPADDR_IN_DISPLAY=yes | ||
7383 | cat >>confdefs.h <<\_ACEOF | ||
7384 | #define USE_PIPES 1 | ||
7385 | _ACEOF | ||
7386 | |||
7387 | |||
7388 | cat >>confdefs.h <<\_ACEOF | ||
7389 | #define LOGIN_NO_ENDOPT 1 | ||
7390 | _ACEOF | ||
7391 | |||
7392 | cat >>confdefs.h <<\_ACEOF | ||
7393 | #define LOGIN_NEEDS_UTMPX 1 | ||
7394 | _ACEOF | ||
7395 | |||
7396 | |||
7397 | cat >>confdefs.h <<\_ACEOF | ||
7398 | #define LOCKED_PASSWD_STRING "*" | ||
7399 | _ACEOF | ||
7400 | |||
7401 | cat >>confdefs.h <<\_ACEOF | ||
7402 | #define SPT_TYPE SPT_PSTAT | ||
7403 | _ACEOF | ||
7404 | |||
7405 | MAIL="/var/mail/username" | ||
7406 | LIBS="$LIBS -lsec" | ||
7407 | |||
7408 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7409 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
7410 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7412 | else | ||
7413 | ac_check_lib_save_LIBS=$LIBS | ||
7414 | LIBS="-lxnet $LIBS" | ||
7415 | cat >conftest.$ac_ext <<_ACEOF | ||
7416 | /* confdefs.h. */ | ||
7417 | _ACEOF | ||
7418 | cat confdefs.h >>conftest.$ac_ext | ||
7419 | cat >>conftest.$ac_ext <<_ACEOF | ||
7420 | /* end confdefs.h. */ | ||
7421 | |||
7422 | /* Override any GCC internal prototype to avoid an error. | ||
7423 | Use char because int might match the return type of a GCC | ||
7424 | builtin and then its argument prototype would still apply. */ | ||
7425 | #ifdef __cplusplus | ||
7426 | extern "C" | ||
7427 | #endif | ||
7428 | char t_error (); | ||
7429 | int | ||
7430 | main () | ||
7431 | { | ||
7432 | return t_error (); | ||
7433 | ; | ||
7434 | return 0; | ||
7435 | } | ||
7436 | _ACEOF | ||
7437 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7438 | if { (ac_try="$ac_link" | ||
7439 | case "(($ac_try" in | ||
7440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7441 | *) ac_try_echo=$ac_try;; | ||
7442 | esac | ||
7443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7444 | (eval "$ac_link") 2>conftest.er1 | ||
7445 | ac_status=$? | ||
7446 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7447 | rm -f conftest.er1 | ||
7448 | cat conftest.err >&5 | ||
7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7450 | (exit $ac_status); } && { | ||
7451 | test -z "$ac_c_werror_flag" || | ||
7452 | test ! -s conftest.err | ||
7453 | } && test -s conftest$ac_exeext && | ||
7454 | $as_test_x conftest$ac_exeext; then | ||
7455 | ac_cv_lib_xnet_t_error=yes | ||
7456 | else | ||
7457 | echo "$as_me: failed program was:" >&5 | ||
7458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7459 | |||
7460 | ac_cv_lib_xnet_t_error=no | ||
7461 | fi | ||
7462 | |||
7463 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7464 | conftest$ac_exeext conftest.$ac_ext | ||
7465 | LIBS=$ac_check_lib_save_LIBS | ||
7466 | fi | ||
7467 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7468 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
7469 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7470 | cat >>confdefs.h <<_ACEOF | ||
7471 | #define HAVE_LIBXNET 1 | ||
7472 | _ACEOF | ||
7473 | |||
7474 | LIBS="-lxnet $LIBS" | ||
7475 | |||
7476 | else | ||
7477 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7478 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7479 | { (exit 1); exit 1; }; } | ||
7480 | fi | ||
7481 | |||
7482 | |||
7483 | # next, we define all of the options specific to major releases | ||
7484 | case "$host" in | ||
7485 | *-*-hpux10*) | ||
7486 | if test -z "$GCC"; then | ||
7487 | CFLAGS="$CFLAGS -Ae" | ||
7488 | fi | ||
7489 | ;; | ||
7490 | *-*-hpux11*) | ||
7491 | |||
7492 | cat >>confdefs.h <<\_ACEOF | ||
7493 | #define PAM_SUN_CODEBASE 1 | ||
7494 | _ACEOF | ||
7495 | |||
7496 | |||
7497 | cat >>confdefs.h <<\_ACEOF | ||
7498 | #define DISABLE_UTMP 1 | ||
7499 | _ACEOF | ||
7500 | |||
7501 | |||
7502 | cat >>confdefs.h <<\_ACEOF | ||
7503 | #define USE_BTMP 1 | ||
7504 | _ACEOF | ||
7505 | |||
7506 | check_for_hpux_broken_getaddrinfo=1 | ||
7507 | check_for_conflicting_getspnam=1 | ||
7508 | ;; | ||
7509 | esac | ||
7510 | |||
7511 | # lastly, we define options specific to minor releases | ||
7512 | case "$host" in | ||
7513 | *-*-hpux10.26) | ||
7514 | |||
7515 | cat >>confdefs.h <<\_ACEOF | ||
7516 | #define HAVE_SECUREWARE 1 | ||
7517 | _ACEOF | ||
7518 | |||
7519 | disable_ptmx_check=yes | ||
7520 | LIBS="$LIBS -lsecpw" | ||
7521 | ;; | ||
7522 | esac | ||
7523 | ;; | ||
7524 | *-*-irix5*) | ||
7525 | PATH="$PATH:/usr/etc" | ||
7526 | |||
7527 | cat >>confdefs.h <<\_ACEOF | ||
7528 | #define BROKEN_INET_NTOA 1 | ||
7529 | _ACEOF | ||
7530 | |||
7531 | cat >>confdefs.h <<\_ACEOF | ||
7532 | #define SETEUID_BREAKS_SETUID 1 | ||
7533 | _ACEOF | ||
7534 | |||
7535 | cat >>confdefs.h <<\_ACEOF | ||
7536 | #define BROKEN_SETREUID 1 | ||
7537 | _ACEOF | ||
7538 | |||
7539 | cat >>confdefs.h <<\_ACEOF | ||
7540 | #define BROKEN_SETREGID 1 | ||
7541 | _ACEOF | ||
7542 | |||
7543 | |||
7544 | cat >>confdefs.h <<\_ACEOF | ||
7545 | #define WITH_ABBREV_NO_TTY 1 | ||
7546 | _ACEOF | ||
7547 | |||
7548 | cat >>confdefs.h <<\_ACEOF | ||
7549 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7550 | _ACEOF | ||
7551 | |||
7552 | ;; | ||
7553 | *-*-irix6*) | ||
7554 | PATH="$PATH:/usr/etc" | ||
7555 | |||
7556 | cat >>confdefs.h <<\_ACEOF | ||
7557 | #define WITH_IRIX_ARRAY 1 | ||
7558 | _ACEOF | ||
7559 | |||
7560 | |||
7561 | cat >>confdefs.h <<\_ACEOF | ||
7562 | #define WITH_IRIX_PROJECT 1 | ||
7563 | _ACEOF | ||
7564 | |||
7565 | |||
7566 | cat >>confdefs.h <<\_ACEOF | ||
7567 | #define WITH_IRIX_AUDIT 1 | ||
7568 | _ACEOF | ||
7569 | |||
7570 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
7571 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
7572 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
7573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7574 | else | ||
7575 | cat >conftest.$ac_ext <<_ACEOF | ||
7576 | /* confdefs.h. */ | ||
7577 | _ACEOF | ||
7578 | cat confdefs.h >>conftest.$ac_ext | ||
7579 | cat >>conftest.$ac_ext <<_ACEOF | ||
7580 | /* end confdefs.h. */ | ||
7581 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
7582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7583 | #define jlimit_startjob innocuous_jlimit_startjob | ||
7584 | |||
7585 | /* System header to define __stub macros and hopefully few prototypes, | ||
7586 | which can conflict with char jlimit_startjob (); below. | ||
7587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7588 | <limits.h> exists even on freestanding compilers. */ | ||
7589 | |||
7590 | #ifdef __STDC__ | ||
7591 | # include <limits.h> | ||
7592 | #else | ||
7593 | # include <assert.h> | ||
7594 | #endif | ||
7595 | |||
7596 | #undef jlimit_startjob | ||
7597 | |||
7598 | /* Override any GCC internal prototype to avoid an error. | ||
7599 | Use char because int might match the return type of a GCC | ||
7600 | builtin and then its argument prototype would still apply. */ | ||
7601 | #ifdef __cplusplus | ||
7602 | extern "C" | ||
7603 | #endif | ||
7604 | char jlimit_startjob (); | ||
7605 | /* The GNU C library defines this for functions which it implements | ||
7606 | to always fail with ENOSYS. Some functions are actually named | ||
7607 | something starting with __ and the normal name is an alias. */ | ||
7608 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
7609 | choke me | ||
7610 | #endif | ||
7611 | |||
7612 | int | ||
7613 | main () | ||
7614 | { | ||
7615 | return jlimit_startjob (); | ||
7616 | ; | ||
7617 | return 0; | ||
7618 | } | ||
7619 | _ACEOF | ||
7620 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7621 | if { (ac_try="$ac_link" | ||
7622 | case "(($ac_try" in | ||
7623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7624 | *) ac_try_echo=$ac_try;; | ||
7625 | esac | ||
7626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7627 | (eval "$ac_link") 2>conftest.er1 | ||
7628 | ac_status=$? | ||
7629 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7630 | rm -f conftest.er1 | ||
7631 | cat conftest.err >&5 | ||
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7633 | (exit $ac_status); } && { | ||
7634 | test -z "$ac_c_werror_flag" || | ||
7635 | test ! -s conftest.err | ||
7636 | } && test -s conftest$ac_exeext && | ||
7637 | $as_test_x conftest$ac_exeext; then | ||
7638 | ac_cv_func_jlimit_startjob=yes | ||
7639 | else | ||
7640 | echo "$as_me: failed program was:" >&5 | ||
7641 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7642 | |||
7643 | ac_cv_func_jlimit_startjob=no | ||
7644 | fi | ||
7645 | |||
7646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7647 | conftest$ac_exeext conftest.$ac_ext | ||
7648 | fi | ||
7649 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
7650 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
7651 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
7652 | |||
7653 | cat >>confdefs.h <<\_ACEOF | ||
7654 | #define WITH_IRIX_JOBS 1 | ||
7655 | _ACEOF | ||
7656 | |||
7657 | fi | ||
7658 | |||
7659 | cat >>confdefs.h <<\_ACEOF | ||
7660 | #define BROKEN_INET_NTOA 1 | ||
7661 | _ACEOF | ||
7662 | |||
7663 | cat >>confdefs.h <<\_ACEOF | ||
7664 | #define SETEUID_BREAKS_SETUID 1 | ||
7665 | _ACEOF | ||
7666 | |||
7667 | cat >>confdefs.h <<\_ACEOF | ||
7668 | #define BROKEN_SETREUID 1 | ||
7669 | _ACEOF | ||
7670 | |||
7671 | cat >>confdefs.h <<\_ACEOF | ||
7672 | #define BROKEN_SETREGID 1 | ||
7673 | _ACEOF | ||
7674 | |||
7675 | |||
7676 | cat >>confdefs.h <<\_ACEOF | ||
7677 | #define BROKEN_UPDWTMPX 1 | ||
7678 | _ACEOF | ||
7679 | |||
7680 | cat >>confdefs.h <<\_ACEOF | ||
7681 | #define WITH_ABBREV_NO_TTY 1 | ||
7682 | _ACEOF | ||
7683 | |||
7684 | cat >>confdefs.h <<\_ACEOF | ||
7685 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7686 | _ACEOF | ||
7687 | |||
7688 | ;; | ||
7689 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7690 | check_for_libcrypt_later=1 | ||
7691 | cat >>confdefs.h <<\_ACEOF | ||
7692 | #define PAM_TTY_KLUDGE 1 | ||
7693 | _ACEOF | ||
7694 | |||
7695 | cat >>confdefs.h <<\_ACEOF | ||
7696 | #define LOCKED_PASSWD_PREFIX "!" | ||
7697 | _ACEOF | ||
7698 | |||
7699 | cat >>confdefs.h <<\_ACEOF | ||
7700 | #define SPT_TYPE SPT_REUSEARGV | ||
7701 | _ACEOF | ||
7702 | |||
7703 | |||
7704 | cat >>confdefs.h <<\_ACEOF | ||
7705 | #define _PATH_BTMP "/var/log/btmp" | ||
7706 | _ACEOF | ||
7707 | |||
7708 | |||
7709 | cat >>confdefs.h <<\_ACEOF | ||
7710 | #define USE_BTMP 1 | ||
7711 | _ACEOF | ||
7712 | |||
7713 | ;; | ||
7714 | *-*-linux*) | ||
7715 | no_dev_ptmx=1 | ||
7716 | check_for_libcrypt_later=1 | ||
7717 | check_for_openpty_ctty_bug=1 | ||
7718 | |||
7719 | cat >>confdefs.h <<\_ACEOF | ||
7720 | #define PAM_TTY_KLUDGE 1 | ||
7721 | _ACEOF | ||
7722 | |||
7723 | |||
7724 | cat >>confdefs.h <<\_ACEOF | ||
7725 | #define LOCKED_PASSWD_PREFIX "!" | ||
7726 | _ACEOF | ||
7727 | |||
7728 | cat >>confdefs.h <<\_ACEOF | ||
7729 | #define SPT_TYPE SPT_REUSEARGV | ||
7730 | _ACEOF | ||
7731 | |||
7732 | |||
7733 | cat >>confdefs.h <<\_ACEOF | ||
7734 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
7735 | _ACEOF | ||
7736 | |||
7737 | |||
7738 | cat >>confdefs.h <<\_ACEOF | ||
7739 | #define _PATH_BTMP "/var/log/btmp" | ||
7740 | _ACEOF | ||
7741 | |||
7742 | cat >>confdefs.h <<\_ACEOF | ||
7743 | #define USE_BTMP 1 | ||
7744 | _ACEOF | ||
7745 | |||
7746 | inet6_default_4in6=yes | ||
7747 | case `uname -r` in | ||
7748 | 1.*|2.0.*) | ||
7749 | |||
7750 | cat >>confdefs.h <<\_ACEOF | ||
7751 | #define BROKEN_CMSG_TYPE 1 | ||
7752 | _ACEOF | ||
7753 | |||
7754 | ;; | ||
7755 | esac | ||
7756 | # tun(4) forwarding compat code | ||
7757 | |||
7758 | for ac_header in linux/if_tun.h | ||
7759 | do | ||
7760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7762 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7766 | fi | ||
7767 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7769 | echo "${ECHO_T}$ac_res" >&6; } | ||
7770 | else | ||
7771 | # Is the header compilable? | ||
7772 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7774 | cat >conftest.$ac_ext <<_ACEOF | ||
7775 | /* confdefs.h. */ | ||
7776 | _ACEOF | ||
7777 | cat confdefs.h >>conftest.$ac_ext | ||
7778 | cat >>conftest.$ac_ext <<_ACEOF | ||
7779 | /* end confdefs.h. */ | ||
7780 | $ac_includes_default | ||
7781 | #include <$ac_header> | ||
7782 | _ACEOF | ||
7783 | rm -f conftest.$ac_objext | ||
7784 | if { (ac_try="$ac_compile" | ||
7785 | case "(($ac_try" in | ||
7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7787 | *) ac_try_echo=$ac_try;; | ||
7788 | esac | ||
7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7790 | (eval "$ac_compile") 2>conftest.er1 | ||
7791 | ac_status=$? | ||
7792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7793 | rm -f conftest.er1 | ||
7794 | cat conftest.err >&5 | ||
7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7796 | (exit $ac_status); } && { | ||
7797 | test -z "$ac_c_werror_flag" || | ||
7798 | test ! -s conftest.err | ||
7799 | } && test -s conftest.$ac_objext; then | ||
7800 | ac_header_compiler=yes | ||
7801 | else | ||
7802 | echo "$as_me: failed program was:" >&5 | ||
7803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7804 | |||
7805 | ac_header_compiler=no | ||
7806 | fi | ||
7807 | |||
7808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7809 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7810 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7811 | |||
7812 | # Is the header present? | ||
7813 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7815 | cat >conftest.$ac_ext <<_ACEOF | ||
7816 | /* confdefs.h. */ | ||
7817 | _ACEOF | ||
7818 | cat confdefs.h >>conftest.$ac_ext | ||
7819 | cat >>conftest.$ac_ext <<_ACEOF | ||
7820 | /* end confdefs.h. */ | ||
7821 | #include <$ac_header> | ||
7822 | _ACEOF | ||
7823 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7824 | case "(($ac_try" in | ||
7825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7826 | *) ac_try_echo=$ac_try;; | ||
7827 | esac | ||
7828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7830 | ac_status=$? | ||
7831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7832 | rm -f conftest.er1 | ||
7833 | cat conftest.err >&5 | ||
7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7835 | (exit $ac_status); } >/dev/null && { | ||
7836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7837 | test ! -s conftest.err | ||
7838 | }; then | ||
7839 | ac_header_preproc=yes | ||
7840 | else | ||
7841 | echo "$as_me: failed program was:" >&5 | ||
7842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7843 | |||
7844 | ac_header_preproc=no | ||
7845 | fi | ||
7846 | |||
7847 | rm -f conftest.err conftest.$ac_ext | ||
7848 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7849 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7850 | |||
7851 | # So? What about this header? | ||
7852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7853 | yes:no: ) | ||
7854 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7855 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7857 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7858 | ac_header_preproc=yes | ||
7859 | ;; | ||
7860 | no:yes:* ) | ||
7861 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7862 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7863 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7864 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7865 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7866 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7867 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7868 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7870 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7871 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7872 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7873 | ( cat <<\_ASBOX | ||
7874 | ## ------------------------------------------- ## | ||
7875 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7876 | ## ------------------------------------------- ## | ||
7877 | _ASBOX | ||
7878 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7879 | ;; | ||
7880 | esac | ||
7881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7885 | else | ||
7886 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7887 | fi | ||
7888 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7889 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7890 | echo "${ECHO_T}$ac_res" >&6; } | ||
7891 | |||
7892 | fi | ||
7893 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7894 | cat >>confdefs.h <<_ACEOF | ||
7895 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7896 | _ACEOF | ||
7897 | |||
7898 | fi | ||
7899 | |||
7900 | done | ||
7901 | |||
7902 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7903 | |||
7904 | cat >>confdefs.h <<\_ACEOF | ||
7905 | #define SSH_TUN_LINUX 1 | ||
7906 | _ACEOF | ||
7907 | |||
7908 | |||
7909 | cat >>confdefs.h <<\_ACEOF | ||
7910 | #define SSH_TUN_COMPAT_AF 1 | ||
7911 | _ACEOF | ||
7912 | |||
7913 | |||
7914 | cat >>confdefs.h <<\_ACEOF | ||
7915 | #define SSH_TUN_PREPEND_AF 1 | ||
7916 | _ACEOF | ||
7917 | |||
7918 | fi | ||
7919 | ;; | ||
7920 | mips-sony-bsd|mips-sony-newsos4) | ||
7921 | |||
7922 | cat >>confdefs.h <<\_ACEOF | ||
7923 | #define NEED_SETPGRP 1 | ||
7924 | _ACEOF | ||
7925 | |||
7926 | SONY=1 | ||
7927 | ;; | ||
7928 | *-*-netbsd*) | ||
7929 | check_for_libcrypt_before=1 | ||
7930 | if test "x$withval" != "xno" ; then | ||
7931 | need_dash_r=1 | ||
7932 | fi | ||
7933 | |||
7934 | cat >>confdefs.h <<\_ACEOF | ||
7935 | #define SSH_TUN_FREEBSD 1 | ||
7936 | _ACEOF | ||
7937 | |||
7938 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7939 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7940 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7941 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7943 | fi | ||
7944 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7945 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7946 | else | ||
7947 | # Is the header compilable? | ||
7948 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
7949 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
7950 | cat >conftest.$ac_ext <<_ACEOF | ||
7951 | /* confdefs.h. */ | ||
7952 | _ACEOF | ||
7953 | cat confdefs.h >>conftest.$ac_ext | ||
7954 | cat >>conftest.$ac_ext <<_ACEOF | ||
7955 | /* end confdefs.h. */ | ||
7956 | $ac_includes_default | ||
7957 | #include <net/if_tap.h> | ||
7958 | _ACEOF | ||
7959 | rm -f conftest.$ac_objext | ||
7960 | if { (ac_try="$ac_compile" | ||
7961 | case "(($ac_try" in | ||
7962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7963 | *) ac_try_echo=$ac_try;; | ||
7964 | esac | ||
7965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7966 | (eval "$ac_compile") 2>conftest.er1 | ||
7967 | ac_status=$? | ||
7968 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7969 | rm -f conftest.er1 | ||
7970 | cat conftest.err >&5 | ||
7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7972 | (exit $ac_status); } && { | ||
7973 | test -z "$ac_c_werror_flag" || | ||
7974 | test ! -s conftest.err | ||
7975 | } && test -s conftest.$ac_objext; then | ||
7976 | ac_header_compiler=yes | ||
7977 | else | ||
7978 | echo "$as_me: failed program was:" >&5 | ||
7979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7980 | |||
7981 | ac_header_compiler=no | ||
7982 | fi | ||
7983 | |||
7984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7985 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7986 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7987 | |||
7988 | # Is the header present? | ||
7989 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
7990 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
7991 | cat >conftest.$ac_ext <<_ACEOF | ||
7992 | /* confdefs.h. */ | ||
7993 | _ACEOF | ||
7994 | cat confdefs.h >>conftest.$ac_ext | ||
7995 | cat >>conftest.$ac_ext <<_ACEOF | ||
7996 | /* end confdefs.h. */ | ||
7997 | #include <net/if_tap.h> | ||
7998 | _ACEOF | ||
7999 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8000 | case "(($ac_try" in | ||
8001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8002 | *) ac_try_echo=$ac_try;; | ||
8003 | esac | ||
8004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8006 | ac_status=$? | ||
8007 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8008 | rm -f conftest.er1 | ||
8009 | cat conftest.err >&5 | ||
8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8011 | (exit $ac_status); } >/dev/null && { | ||
8012 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8013 | test ! -s conftest.err | ||
8014 | }; then | ||
8015 | ac_header_preproc=yes | ||
8016 | else | ||
8017 | echo "$as_me: failed program was:" >&5 | ||
8018 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8019 | |||
8020 | ac_header_preproc=no | ||
8021 | fi | ||
8022 | |||
8023 | rm -f conftest.err conftest.$ac_ext | ||
8024 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8025 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8026 | |||
8027 | # So? What about this header? | ||
8028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8029 | yes:no: ) | ||
8030 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8031 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8032 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8033 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8034 | ac_header_preproc=yes | ||
8035 | ;; | ||
8036 | no:yes:* ) | ||
8037 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8038 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8039 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8040 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8041 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8042 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8043 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8044 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8045 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8046 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8047 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8048 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8049 | ( cat <<\_ASBOX | ||
8050 | ## ------------------------------------------- ## | ||
8051 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8052 | ## ------------------------------------------- ## | ||
8053 | _ASBOX | ||
8054 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8055 | ;; | ||
8056 | esac | ||
8057 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8058 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8059 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8061 | else | ||
8062 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8063 | fi | ||
8064 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8065 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8066 | |||
8067 | fi | ||
8068 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8069 | : | ||
8070 | else | ||
8071 | |||
8072 | cat >>confdefs.h <<\_ACEOF | ||
8073 | #define SSH_TUN_NO_L2 1 | ||
8074 | _ACEOF | ||
8075 | |||
8076 | fi | ||
8077 | |||
8078 | |||
8079 | |||
8080 | cat >>confdefs.h <<\_ACEOF | ||
8081 | #define SSH_TUN_PREPEND_AF 1 | ||
8082 | _ACEOF | ||
8083 | |||
8084 | ;; | ||
8085 | *-*-freebsd*) | ||
8086 | check_for_libcrypt_later=1 | ||
8087 | |||
8088 | cat >>confdefs.h <<\_ACEOF | ||
8089 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8090 | _ACEOF | ||
8091 | |||
8092 | |||
8093 | cat >>confdefs.h <<\_ACEOF | ||
8094 | #define SSH_TUN_FREEBSD 1 | ||
8095 | _ACEOF | ||
8096 | |||
8097 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8098 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8099 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8100 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8102 | fi | ||
8103 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8104 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8105 | else | ||
8106 | # Is the header compilable? | ||
8107 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8108 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8109 | cat >conftest.$ac_ext <<_ACEOF | ||
8110 | /* confdefs.h. */ | ||
8111 | _ACEOF | ||
8112 | cat confdefs.h >>conftest.$ac_ext | ||
8113 | cat >>conftest.$ac_ext <<_ACEOF | ||
8114 | /* end confdefs.h. */ | ||
8115 | $ac_includes_default | ||
8116 | #include <net/if_tap.h> | ||
8117 | _ACEOF | ||
8118 | rm -f conftest.$ac_objext | ||
8119 | if { (ac_try="$ac_compile" | ||
8120 | case "(($ac_try" in | ||
8121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8122 | *) ac_try_echo=$ac_try;; | ||
8123 | esac | ||
8124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8125 | (eval "$ac_compile") 2>conftest.er1 | ||
8126 | ac_status=$? | ||
8127 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8128 | rm -f conftest.er1 | ||
8129 | cat conftest.err >&5 | ||
8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8131 | (exit $ac_status); } && { | ||
8132 | test -z "$ac_c_werror_flag" || | ||
8133 | test ! -s conftest.err | ||
8134 | } && test -s conftest.$ac_objext; then | ||
8135 | ac_header_compiler=yes | ||
8136 | else | ||
8137 | echo "$as_me: failed program was:" >&5 | ||
8138 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8139 | |||
8140 | ac_header_compiler=no | ||
8141 | fi | ||
8142 | |||
8143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8144 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8145 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8146 | |||
8147 | # Is the header present? | ||
8148 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8149 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8150 | cat >conftest.$ac_ext <<_ACEOF | ||
8151 | /* confdefs.h. */ | ||
8152 | _ACEOF | ||
8153 | cat confdefs.h >>conftest.$ac_ext | ||
8154 | cat >>conftest.$ac_ext <<_ACEOF | ||
8155 | /* end confdefs.h. */ | ||
8156 | #include <net/if_tap.h> | ||
8157 | _ACEOF | ||
8158 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8159 | case "(($ac_try" in | ||
8160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8161 | *) ac_try_echo=$ac_try;; | ||
8162 | esac | ||
8163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8164 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8165 | ac_status=$? | ||
8166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8167 | rm -f conftest.er1 | ||
8168 | cat conftest.err >&5 | ||
8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8170 | (exit $ac_status); } >/dev/null && { | ||
8171 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8172 | test ! -s conftest.err | ||
8173 | }; then | ||
8174 | ac_header_preproc=yes | ||
8175 | else | ||
8176 | echo "$as_me: failed program was:" >&5 | ||
8177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8178 | |||
8179 | ac_header_preproc=no | ||
8180 | fi | ||
8181 | |||
8182 | rm -f conftest.err conftest.$ac_ext | ||
8183 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8184 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8185 | |||
8186 | # So? What about this header? | ||
8187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8188 | yes:no: ) | ||
8189 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8190 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8191 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8192 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8193 | ac_header_preproc=yes | ||
8194 | ;; | ||
8195 | no:yes:* ) | ||
8196 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8197 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8198 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8199 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8200 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8201 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8202 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8203 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8204 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8205 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8206 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8207 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8208 | ( cat <<\_ASBOX | ||
8209 | ## ------------------------------------------- ## | ||
8210 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8211 | ## ------------------------------------------- ## | ||
8212 | _ASBOX | ||
8213 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8214 | ;; | ||
8215 | esac | ||
8216 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8217 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8218 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8220 | else | ||
8221 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8222 | fi | ||
8223 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8224 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8225 | |||
8226 | fi | ||
8227 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8228 | : | ||
8229 | else | ||
8230 | |||
8231 | cat >>confdefs.h <<\_ACEOF | ||
8232 | #define SSH_TUN_NO_L2 1 | ||
8233 | _ACEOF | ||
8234 | |||
8235 | fi | ||
8236 | |||
8237 | |||
8238 | |||
8239 | cat >>confdefs.h <<\_ACEOF | ||
8240 | #define BROKEN_GLOB 1 | ||
8241 | _ACEOF | ||
8242 | |||
8243 | ;; | ||
8244 | *-*-bsdi*) | ||
8245 | cat >>confdefs.h <<\_ACEOF | ||
8246 | #define SETEUID_BREAKS_SETUID 1 | ||
8247 | _ACEOF | ||
8248 | |||
8249 | cat >>confdefs.h <<\_ACEOF | ||
8250 | #define BROKEN_SETREUID 1 | ||
8251 | _ACEOF | ||
8252 | |||
8253 | cat >>confdefs.h <<\_ACEOF | ||
8254 | #define BROKEN_SETREGID 1 | ||
8255 | _ACEOF | ||
8256 | |||
8257 | ;; | ||
8258 | *-next-*) | ||
8259 | conf_lastlog_location="/usr/adm/lastlog" | ||
8260 | conf_utmp_location=/etc/utmp | ||
8261 | conf_wtmp_location=/usr/adm/wtmp | ||
8262 | MAIL=/usr/spool/mail | ||
8263 | |||
8264 | cat >>confdefs.h <<\_ACEOF | ||
8265 | #define HAVE_NEXT 1 | ||
8266 | _ACEOF | ||
8267 | |||
8268 | cat >>confdefs.h <<\_ACEOF | ||
8269 | #define BROKEN_REALPATH 1 | ||
8270 | _ACEOF | ||
8271 | |||
8272 | cat >>confdefs.h <<\_ACEOF | ||
8273 | #define USE_PIPES 1 | ||
8274 | _ACEOF | ||
8275 | |||
8276 | |||
8277 | cat >>confdefs.h <<\_ACEOF | ||
8278 | #define BROKEN_SAVED_UIDS 1 | ||
8279 | _ACEOF | ||
8280 | |||
8281 | ;; | ||
8282 | *-*-openbsd*) | ||
8283 | |||
8284 | cat >>confdefs.h <<\_ACEOF | ||
8285 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8286 | _ACEOF | ||
8287 | |||
8288 | |||
8289 | cat >>confdefs.h <<\_ACEOF | ||
8290 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8291 | _ACEOF | ||
8292 | |||
8293 | |||
8294 | cat >>confdefs.h <<\_ACEOF | ||
8295 | #define SSH_TUN_OPENBSD 1 | ||
8296 | _ACEOF | ||
8297 | |||
8298 | |||
8299 | cat >>confdefs.h <<\_ACEOF | ||
8300 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8301 | _ACEOF | ||
8302 | |||
8303 | ;; | ||
8304 | *-*-solaris*) | ||
8305 | if test "x$withval" != "xno" ; then | ||
8306 | need_dash_r=1 | ||
8307 | fi | ||
8308 | cat >>confdefs.h <<\_ACEOF | ||
8309 | #define PAM_SUN_CODEBASE 1 | ||
8310 | _ACEOF | ||
8311 | |||
8312 | cat >>confdefs.h <<\_ACEOF | ||
8313 | #define LOGIN_NEEDS_UTMPX 1 | ||
8314 | _ACEOF | ||
8315 | |||
8316 | |||
8317 | cat >>confdefs.h <<\_ACEOF | ||
8318 | #define LOGIN_NEEDS_TERM 1 | ||
8319 | _ACEOF | ||
8320 | |||
8321 | cat >>confdefs.h <<\_ACEOF | ||
8322 | #define PAM_TTY_KLUDGE 1 | ||
8323 | _ACEOF | ||
8324 | |||
8325 | |||
8326 | cat >>confdefs.h <<\_ACEOF | ||
8327 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8328 | _ACEOF | ||
8329 | |||
8330 | cat >>confdefs.h <<\_ACEOF | ||
8331 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8332 | _ACEOF | ||
8333 | |||
8334 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8335 | |||
8336 | cat >>confdefs.h <<\_ACEOF | ||
8337 | #define SSHD_ACQUIRES_CTTY 1 | ||
8338 | _ACEOF | ||
8339 | |||
8340 | |||
8341 | cat >>confdefs.h <<\_ACEOF | ||
8342 | #define PASSWD_NEEDS_USERNAME 1 | ||
8343 | _ACEOF | ||
8344 | |||
8345 | external_path_file=/etc/default/login | ||
8346 | # hardwire lastlog location (can't detect it on some versions) | ||
8347 | conf_lastlog_location="/var/adm/lastlog" | ||
8348 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8349 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8350 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8351 | if test "$sol2ver" -ge 8; then | ||
8352 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8353 | echo "${ECHO_T}yes" >&6; } | ||
8354 | cat >>confdefs.h <<\_ACEOF | ||
8355 | #define DISABLE_UTMP 1 | ||
8356 | _ACEOF | ||
8357 | |||
8358 | |||
8359 | cat >>confdefs.h <<\_ACEOF | ||
8360 | #define DISABLE_WTMP 1 | ||
8361 | _ACEOF | ||
8362 | |||
8363 | else | ||
8364 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8365 | echo "${ECHO_T}no" >&6; } | ||
8366 | fi | ||
8367 | |||
8368 | # Check whether --with-solaris-contracts was given. | ||
8369 | if test "${with_solaris_contracts+set}" = set; then | ||
8370 | withval=$with_solaris_contracts; | ||
8371 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8372 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8373 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8375 | else | ||
8376 | ac_check_lib_save_LIBS=$LIBS | ||
8377 | LIBS="-lcontract $LIBS" | ||
8378 | cat >conftest.$ac_ext <<_ACEOF | ||
8379 | /* confdefs.h. */ | ||
8380 | _ACEOF | ||
8381 | cat confdefs.h >>conftest.$ac_ext | ||
8382 | cat >>conftest.$ac_ext <<_ACEOF | ||
8383 | /* end confdefs.h. */ | ||
8384 | |||
8385 | /* Override any GCC internal prototype to avoid an error. | ||
8386 | Use char because int might match the return type of a GCC | ||
8387 | builtin and then its argument prototype would still apply. */ | ||
8388 | #ifdef __cplusplus | ||
8389 | extern "C" | ||
8390 | #endif | ||
8391 | char ct_tmpl_activate (); | ||
8392 | int | ||
8393 | main () | ||
8394 | { | ||
8395 | return ct_tmpl_activate (); | ||
8396 | ; | ||
8397 | return 0; | ||
8398 | } | ||
8399 | _ACEOF | ||
8400 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8401 | if { (ac_try="$ac_link" | ||
8402 | case "(($ac_try" in | ||
8403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8404 | *) ac_try_echo=$ac_try;; | ||
8405 | esac | ||
8406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8407 | (eval "$ac_link") 2>conftest.er1 | ||
8408 | ac_status=$? | ||
8409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8410 | rm -f conftest.er1 | ||
8411 | cat conftest.err >&5 | ||
8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8413 | (exit $ac_status); } && { | ||
8414 | test -z "$ac_c_werror_flag" || | ||
8415 | test ! -s conftest.err | ||
8416 | } && test -s conftest$ac_exeext && | ||
8417 | $as_test_x conftest$ac_exeext; then | ||
8418 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8419 | else | ||
8420 | echo "$as_me: failed program was:" >&5 | ||
8421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8422 | |||
8423 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8424 | fi | ||
8425 | |||
8426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8427 | conftest$ac_exeext conftest.$ac_ext | ||
8428 | LIBS=$ac_check_lib_save_LIBS | ||
8429 | fi | ||
8430 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8431 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8432 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8433 | |||
8434 | cat >>confdefs.h <<\_ACEOF | ||
8435 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8436 | _ACEOF | ||
8437 | |||
8438 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8439 | |||
8440 | SPC_MSG="yes" | ||
8441 | fi | ||
8442 | |||
8443 | |||
8444 | fi | ||
8445 | |||
8446 | ;; | ||
8447 | *-*-sunos4*) | ||
8448 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8449 | |||
8450 | for ac_func in getpwanam | ||
8451 | do | ||
8452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8453 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8455 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8457 | else | ||
8458 | cat >conftest.$ac_ext <<_ACEOF | ||
8459 | /* confdefs.h. */ | ||
8460 | _ACEOF | ||
8461 | cat confdefs.h >>conftest.$ac_ext | ||
8462 | cat >>conftest.$ac_ext <<_ACEOF | ||
8463 | /* end confdefs.h. */ | ||
8464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8466 | #define $ac_func innocuous_$ac_func | ||
8467 | |||
8468 | /* System header to define __stub macros and hopefully few prototypes, | ||
8469 | which can conflict with char $ac_func (); below. | ||
8470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8471 | <limits.h> exists even on freestanding compilers. */ | ||
8472 | |||
8473 | #ifdef __STDC__ | ||
8474 | # include <limits.h> | ||
8475 | #else | ||
8476 | # include <assert.h> | ||
8477 | #endif | ||
8478 | |||
8479 | #undef $ac_func | ||
8480 | |||
8481 | /* Override any GCC internal prototype to avoid an error. | ||
8482 | Use char because int might match the return type of a GCC | ||
8483 | builtin and then its argument prototype would still apply. */ | ||
8484 | #ifdef __cplusplus | ||
8485 | extern "C" | ||
8486 | #endif | ||
8487 | char $ac_func (); | ||
8488 | /* The GNU C library defines this for functions which it implements | ||
8489 | to always fail with ENOSYS. Some functions are actually named | ||
8490 | something starting with __ and the normal name is an alias. */ | ||
8491 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8492 | choke me | ||
8493 | #endif | ||
8494 | |||
8495 | int | ||
8496 | main () | ||
8497 | { | ||
8498 | return $ac_func (); | ||
8499 | ; | ||
8500 | return 0; | ||
8501 | } | ||
8502 | _ACEOF | ||
8503 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8504 | if { (ac_try="$ac_link" | ||
8505 | case "(($ac_try" in | ||
8506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8507 | *) ac_try_echo=$ac_try;; | ||
8508 | esac | ||
8509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8510 | (eval "$ac_link") 2>conftest.er1 | ||
8511 | ac_status=$? | ||
8512 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8513 | rm -f conftest.er1 | ||
8514 | cat conftest.err >&5 | ||
8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8516 | (exit $ac_status); } && { | ||
8517 | test -z "$ac_c_werror_flag" || | ||
8518 | test ! -s conftest.err | ||
8519 | } && test -s conftest$ac_exeext && | ||
8520 | $as_test_x conftest$ac_exeext; then | ||
8521 | eval "$as_ac_var=yes" | ||
8522 | else | ||
8523 | echo "$as_me: failed program was:" >&5 | ||
8524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8525 | |||
8526 | eval "$as_ac_var=no" | ||
8527 | fi | ||
8528 | |||
8529 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8530 | conftest$ac_exeext conftest.$ac_ext | ||
8531 | fi | ||
8532 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8533 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8534 | echo "${ECHO_T}$ac_res" >&6; } | ||
8535 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8536 | cat >>confdefs.h <<_ACEOF | ||
8537 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8538 | _ACEOF | ||
8539 | |||
8540 | fi | ||
8541 | done | ||
8542 | |||
8543 | cat >>confdefs.h <<\_ACEOF | ||
8544 | #define PAM_SUN_CODEBASE 1 | ||
8545 | _ACEOF | ||
8546 | |||
8547 | conf_utmp_location=/etc/utmp | ||
8548 | conf_wtmp_location=/var/adm/wtmp | ||
8549 | conf_lastlog_location=/var/adm/lastlog | ||
8550 | cat >>confdefs.h <<\_ACEOF | ||
8551 | #define USE_PIPES 1 | ||
8552 | _ACEOF | ||
8553 | |||
8554 | ;; | ||
8555 | *-ncr-sysv*) | ||
8556 | LIBS="$LIBS -lc89" | ||
8557 | cat >>confdefs.h <<\_ACEOF | ||
8558 | #define USE_PIPES 1 | ||
8559 | _ACEOF | ||
8560 | |||
8561 | cat >>confdefs.h <<\_ACEOF | ||
8562 | #define SSHD_ACQUIRES_CTTY 1 | ||
8563 | _ACEOF | ||
8564 | |||
8565 | cat >>confdefs.h <<\_ACEOF | ||
8566 | #define SETEUID_BREAKS_SETUID 1 | ||
8567 | _ACEOF | ||
8568 | |||
8569 | cat >>confdefs.h <<\_ACEOF | ||
8570 | #define BROKEN_SETREUID 1 | ||
8571 | _ACEOF | ||
8572 | |||
8573 | cat >>confdefs.h <<\_ACEOF | ||
8574 | #define BROKEN_SETREGID 1 | ||
8575 | _ACEOF | ||
8576 | |||
8577 | ;; | ||
8578 | *-sni-sysv*) | ||
8579 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8580 | |||
8581 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
8582 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
8583 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8585 | else | ||
8586 | ac_check_lib_save_LIBS=$LIBS | ||
8587 | LIBS="-ldl $LIBS" | ||
8588 | cat >conftest.$ac_ext <<_ACEOF | ||
8589 | /* confdefs.h. */ | ||
8590 | _ACEOF | ||
8591 | cat confdefs.h >>conftest.$ac_ext | ||
8592 | cat >>conftest.$ac_ext <<_ACEOF | ||
8593 | /* end confdefs.h. */ | ||
8594 | |||
8595 | /* Override any GCC internal prototype to avoid an error. | ||
8596 | Use char because int might match the return type of a GCC | ||
8597 | builtin and then its argument prototype would still apply. */ | ||
8598 | #ifdef __cplusplus | ||
8599 | extern "C" | ||
8600 | #endif | ||
8601 | char dlsym (); | ||
8602 | int | ||
8603 | main () | ||
8604 | { | ||
8605 | return dlsym (); | ||
8606 | ; | ||
8607 | return 0; | ||
8608 | } | ||
8609 | _ACEOF | ||
8610 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8611 | if { (ac_try="$ac_link" | ||
8612 | case "(($ac_try" in | ||
8613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8614 | *) ac_try_echo=$ac_try;; | ||
8615 | esac | ||
8616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8617 | (eval "$ac_link") 2>conftest.er1 | ||
8618 | ac_status=$? | ||
8619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8620 | rm -f conftest.er1 | ||
8621 | cat conftest.err >&5 | ||
8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8623 | (exit $ac_status); } && { | ||
8624 | test -z "$ac_c_werror_flag" || | ||
8625 | test ! -s conftest.err | ||
8626 | } && test -s conftest$ac_exeext && | ||
8627 | $as_test_x conftest$ac_exeext; then | ||
8628 | ac_cv_lib_dl_dlsym=yes | ||
8629 | else | ||
8630 | echo "$as_me: failed program was:" >&5 | ||
8631 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8632 | |||
8633 | ac_cv_lib_dl_dlsym=no | ||
8634 | fi | ||
8635 | |||
8636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8637 | conftest$ac_exeext conftest.$ac_ext | ||
8638 | LIBS=$ac_check_lib_save_LIBS | ||
8639 | fi | ||
8640 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8641 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
8642 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
8643 | cat >>confdefs.h <<_ACEOF | ||
8644 | #define HAVE_LIBDL 1 | ||
8645 | _ACEOF | ||
8646 | |||
8647 | LIBS="-ldl $LIBS" | ||
8648 | |||
8649 | fi | ||
8650 | |||
8651 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8652 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
8653 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
8654 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
8655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8656 | else | ||
8657 | ac_check_lib_save_LIBS=$LIBS | ||
8658 | LIBS="-lresolv $LIBS" | ||
8659 | cat >conftest.$ac_ext <<_ACEOF | ||
8660 | /* confdefs.h. */ | ||
8661 | _ACEOF | ||
8662 | cat confdefs.h >>conftest.$ac_ext | ||
8663 | cat >>conftest.$ac_ext <<_ACEOF | ||
8664 | /* end confdefs.h. */ | ||
8665 | |||
8666 | /* Override any GCC internal prototype to avoid an error. | ||
8667 | Use char because int might match the return type of a GCC | ||
8668 | builtin and then its argument prototype would still apply. */ | ||
8669 | #ifdef __cplusplus | ||
8670 | extern "C" | ||
8671 | #endif | ||
8672 | char res_query (); | ||
8673 | int | ||
8674 | main () | ||
8675 | { | ||
8676 | return res_query (); | ||
8677 | ; | ||
8678 | return 0; | ||
8679 | } | ||
8680 | _ACEOF | ||
8681 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8682 | if { (ac_try="$ac_link" | ||
8683 | case "(($ac_try" in | ||
8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8685 | *) ac_try_echo=$ac_try;; | ||
8686 | esac | ||
8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8688 | (eval "$ac_link") 2>conftest.er1 | ||
8689 | ac_status=$? | ||
8690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8691 | rm -f conftest.er1 | ||
8692 | cat conftest.err >&5 | ||
8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8694 | (exit $ac_status); } && { | ||
8695 | test -z "$ac_c_werror_flag" || | ||
8696 | test ! -s conftest.err | ||
8697 | } && test -s conftest$ac_exeext && | ||
8698 | $as_test_x conftest$ac_exeext; then | ||
8699 | ac_cv_lib_resolv_res_query=yes | ||
8700 | else | ||
8701 | echo "$as_me: failed program was:" >&5 | ||
8702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8703 | |||
8704 | ac_cv_lib_resolv_res_query=no | ||
8705 | fi | ||
8706 | |||
8707 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8708 | conftest$ac_exeext conftest.$ac_ext | ||
8709 | LIBS=$ac_check_lib_save_LIBS | ||
8710 | fi | ||
8711 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8712 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
8713 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
8714 | LIBS="$LIBS -lresolv" | ||
8715 | fi | ||
8716 | |||
8717 | IPADDR_IN_DISPLAY=yes | ||
8718 | cat >>confdefs.h <<\_ACEOF | ||
8719 | #define USE_PIPES 1 | ||
8720 | _ACEOF | ||
8721 | |||
8722 | cat >>confdefs.h <<\_ACEOF | ||
8723 | #define IP_TOS_IS_BROKEN 1 | ||
8724 | _ACEOF | ||
8725 | |||
8726 | cat >>confdefs.h <<\_ACEOF | ||
8727 | #define SETEUID_BREAKS_SETUID 1 | ||
8728 | _ACEOF | ||
8729 | |||
8730 | cat >>confdefs.h <<\_ACEOF | ||
8731 | #define BROKEN_SETREUID 1 | ||
8732 | _ACEOF | ||
8733 | |||
8734 | cat >>confdefs.h <<\_ACEOF | ||
8735 | #define BROKEN_SETREGID 1 | ||
8736 | _ACEOF | ||
8737 | |||
8738 | cat >>confdefs.h <<\_ACEOF | ||
8739 | #define SSHD_ACQUIRES_CTTY 1 | ||
8740 | _ACEOF | ||
8741 | |||
8742 | external_path_file=/etc/default/login | ||
8743 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8744 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8745 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8746 | ;; | ||
8747 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8748 | *-*-sysv4.2*) | ||
8749 | cat >>confdefs.h <<\_ACEOF | ||
8750 | #define USE_PIPES 1 | ||
8751 | _ACEOF | ||
8752 | |||
8753 | cat >>confdefs.h <<\_ACEOF | ||
8754 | #define SETEUID_BREAKS_SETUID 1 | ||
8755 | _ACEOF | ||
8756 | |||
8757 | cat >>confdefs.h <<\_ACEOF | ||
8758 | #define BROKEN_SETREUID 1 | ||
8759 | _ACEOF | ||
8760 | |||
8761 | cat >>confdefs.h <<\_ACEOF | ||
8762 | #define BROKEN_SETREGID 1 | ||
8763 | _ACEOF | ||
8764 | |||
8765 | |||
8766 | cat >>confdefs.h <<\_ACEOF | ||
8767 | #define PASSWD_NEEDS_USERNAME 1 | ||
8768 | _ACEOF | ||
8769 | |||
8770 | cat >>confdefs.h <<\_ACEOF | ||
8771 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8772 | _ACEOF | ||
8773 | |||
8774 | ;; | ||
8775 | # UnixWare 7.x, OpenUNIX 8 | ||
8776 | *-*-sysv5*) | ||
8777 | |||
8778 | cat >>confdefs.h <<\_ACEOF | ||
8779 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
8780 | _ACEOF | ||
8781 | |||
8782 | cat >>confdefs.h <<\_ACEOF | ||
8783 | #define USE_PIPES 1 | ||
8784 | _ACEOF | ||
8785 | |||
8786 | cat >>confdefs.h <<\_ACEOF | ||
8787 | #define SETEUID_BREAKS_SETUID 1 | ||
8788 | _ACEOF | ||
8789 | |||
8790 | cat >>confdefs.h <<\_ACEOF | ||
8791 | #define BROKEN_SETREUID 1 | ||
8792 | _ACEOF | ||
8793 | |||
8794 | cat >>confdefs.h <<\_ACEOF | ||
8795 | #define BROKEN_SETREGID 1 | ||
8796 | _ACEOF | ||
8797 | |||
8798 | cat >>confdefs.h <<\_ACEOF | ||
8799 | #define PASSWD_NEEDS_USERNAME 1 | ||
8800 | _ACEOF | ||
8801 | |||
8802 | case "$host" in | ||
8803 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8804 | TEST_SHELL=/u95/bin/sh | ||
8805 | |||
8806 | cat >>confdefs.h <<\_ACEOF | ||
8807 | #define BROKEN_LIBIAF 1 | ||
8808 | _ACEOF | ||
8809 | |||
8810 | cat >>confdefs.h <<\_ACEOF | ||
8811 | #define BROKEN_UPDWTMPX 1 | ||
8812 | _ACEOF | ||
8813 | |||
8814 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
8815 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
8816 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
8817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8818 | else | ||
8819 | ac_check_lib_save_LIBS=$LIBS | ||
8820 | LIBS="-lprot $LIBS" | ||
8821 | cat >conftest.$ac_ext <<_ACEOF | ||
8822 | /* confdefs.h. */ | ||
8823 | _ACEOF | ||
8824 | cat confdefs.h >>conftest.$ac_ext | ||
8825 | cat >>conftest.$ac_ext <<_ACEOF | ||
8826 | /* end confdefs.h. */ | ||
8827 | |||
8828 | /* Override any GCC internal prototype to avoid an error. | ||
8829 | Use char because int might match the return type of a GCC | ||
8830 | builtin and then its argument prototype would still apply. */ | ||
8831 | #ifdef __cplusplus | ||
8832 | extern "C" | ||
8833 | #endif | ||
8834 | char getluid (); | ||
8835 | int | ||
8836 | main () | ||
8837 | { | ||
8838 | return getluid (); | ||
8839 | ; | ||
8840 | return 0; | ||
8841 | } | ||
8842 | _ACEOF | ||
8843 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8844 | if { (ac_try="$ac_link" | ||
8845 | case "(($ac_try" in | ||
8846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8847 | *) ac_try_echo=$ac_try;; | ||
8848 | esac | ||
8849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8850 | (eval "$ac_link") 2>conftest.er1 | ||
8851 | ac_status=$? | ||
8852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8853 | rm -f conftest.er1 | ||
8854 | cat conftest.err >&5 | ||
8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8856 | (exit $ac_status); } && { | ||
8857 | test -z "$ac_c_werror_flag" || | ||
8858 | test ! -s conftest.err | ||
8859 | } && test -s conftest$ac_exeext && | ||
8860 | $as_test_x conftest$ac_exeext; then | ||
8861 | ac_cv_lib_prot_getluid=yes | ||
8862 | else | ||
8863 | echo "$as_me: failed program was:" >&5 | ||
8864 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8865 | |||
8866 | ac_cv_lib_prot_getluid=no | ||
8867 | fi | ||
8868 | |||
8869 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8870 | conftest$ac_exeext conftest.$ac_ext | ||
8871 | LIBS=$ac_check_lib_save_LIBS | ||
8872 | fi | ||
8873 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
8874 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
8875 | if test $ac_cv_lib_prot_getluid = yes; then | ||
8876 | LIBS="$LIBS -lprot" | ||
8877 | |||
8878 | |||
8879 | for ac_func in getluid setluid | ||
8880 | do | ||
8881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8882 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8884 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8886 | else | ||
8887 | cat >conftest.$ac_ext <<_ACEOF | ||
8888 | /* confdefs.h. */ | ||
8889 | _ACEOF | ||
8890 | cat confdefs.h >>conftest.$ac_ext | ||
8891 | cat >>conftest.$ac_ext <<_ACEOF | ||
8892 | /* end confdefs.h. */ | ||
8893 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8895 | #define $ac_func innocuous_$ac_func | ||
8896 | |||
8897 | /* System header to define __stub macros and hopefully few prototypes, | ||
8898 | which can conflict with char $ac_func (); below. | ||
8899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8900 | <limits.h> exists even on freestanding compilers. */ | ||
8901 | |||
8902 | #ifdef __STDC__ | ||
8903 | # include <limits.h> | ||
8904 | #else | ||
8905 | # include <assert.h> | ||
8906 | #endif | ||
8907 | |||
8908 | #undef $ac_func | ||
8909 | |||
8910 | /* Override any GCC internal prototype to avoid an error. | ||
8911 | Use char because int might match the return type of a GCC | ||
8912 | builtin and then its argument prototype would still apply. */ | ||
8913 | #ifdef __cplusplus | ||
8914 | extern "C" | ||
8915 | #endif | ||
8916 | char $ac_func (); | ||
8917 | /* The GNU C library defines this for functions which it implements | ||
8918 | to always fail with ENOSYS. Some functions are actually named | ||
8919 | something starting with __ and the normal name is an alias. */ | ||
8920 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8921 | choke me | ||
8922 | #endif | ||
8923 | |||
8924 | int | ||
8925 | main () | ||
8926 | { | ||
8927 | return $ac_func (); | ||
8928 | ; | ||
8929 | return 0; | ||
8930 | } | ||
8931 | _ACEOF | ||
8932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8933 | if { (ac_try="$ac_link" | ||
8934 | case "(($ac_try" in | ||
8935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8936 | *) ac_try_echo=$ac_try;; | ||
8937 | esac | ||
8938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8939 | (eval "$ac_link") 2>conftest.er1 | ||
8940 | ac_status=$? | ||
8941 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8942 | rm -f conftest.er1 | ||
8943 | cat conftest.err >&5 | ||
8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8945 | (exit $ac_status); } && { | ||
8946 | test -z "$ac_c_werror_flag" || | ||
8947 | test ! -s conftest.err | ||
8948 | } && test -s conftest$ac_exeext && | ||
8949 | $as_test_x conftest$ac_exeext; then | ||
8950 | eval "$as_ac_var=yes" | ||
8951 | else | ||
8952 | echo "$as_me: failed program was:" >&5 | ||
8953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8954 | |||
8955 | eval "$as_ac_var=no" | ||
8956 | fi | ||
8957 | |||
8958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8959 | conftest$ac_exeext conftest.$ac_ext | ||
8960 | fi | ||
8961 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8963 | echo "${ECHO_T}$ac_res" >&6; } | ||
8964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8965 | cat >>confdefs.h <<_ACEOF | ||
8966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8967 | _ACEOF | ||
8968 | |||
8969 | fi | ||
8970 | done | ||
8971 | |||
8972 | cat >>confdefs.h <<\_ACEOF | ||
8973 | #define HAVE_SECUREWARE 1 | ||
8974 | _ACEOF | ||
8975 | |||
8976 | cat >>confdefs.h <<\_ACEOF | ||
8977 | #define DISABLE_SHADOW 1 | ||
8978 | _ACEOF | ||
8979 | |||
8980 | |||
8981 | fi | ||
8982 | |||
8983 | ;; | ||
8984 | *) cat >>confdefs.h <<\_ACEOF | ||
8985 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8986 | _ACEOF | ||
8987 | |||
8988 | check_for_libcrypt_later=1 | ||
8989 | ;; | ||
8990 | esac | ||
8991 | ;; | ||
8992 | *-*-sysv*) | ||
8993 | ;; | ||
8994 | # SCO UNIX and OEM versions of SCO UNIX | ||
8995 | *-*-sco3.2v4*) | ||
8996 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
8997 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
8998 | { (exit 1); exit 1; }; } | ||
8999 | ;; | ||
9000 | # SCO OpenServer 5.x | ||
9001 | *-*-sco3.2v5*) | ||
9002 | if test -z "$GCC"; then | ||
9003 | CFLAGS="$CFLAGS -belf" | ||
9004 | fi | ||
9005 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
9006 | no_dev_ptmx=1 | ||
9007 | cat >>confdefs.h <<\_ACEOF | ||
9008 | #define USE_PIPES 1 | ||
9009 | _ACEOF | ||
9010 | |||
9011 | cat >>confdefs.h <<\_ACEOF | ||
9012 | #define HAVE_SECUREWARE 1 | ||
9013 | _ACEOF | ||
9014 | |||
9015 | cat >>confdefs.h <<\_ACEOF | ||
9016 | #define DISABLE_SHADOW 1 | ||
9017 | _ACEOF | ||
9018 | |||
9019 | cat >>confdefs.h <<\_ACEOF | ||
9020 | #define DISABLE_FD_PASSING 1 | ||
9021 | _ACEOF | ||
9022 | |||
9023 | cat >>confdefs.h <<\_ACEOF | ||
9024 | #define SETEUID_BREAKS_SETUID 1 | ||
9025 | _ACEOF | ||
9026 | |||
9027 | cat >>confdefs.h <<\_ACEOF | ||
9028 | #define BROKEN_SETREUID 1 | ||
9029 | _ACEOF | ||
9030 | |||
9031 | cat >>confdefs.h <<\_ACEOF | ||
9032 | #define BROKEN_SETREGID 1 | ||
9033 | _ACEOF | ||
9034 | |||
9035 | cat >>confdefs.h <<\_ACEOF | ||
9036 | #define WITH_ABBREV_NO_TTY 1 | ||
9037 | _ACEOF | ||
9038 | |||
9039 | cat >>confdefs.h <<\_ACEOF | ||
9040 | #define BROKEN_UPDWTMPX 1 | ||
9041 | _ACEOF | ||
9042 | |||
9043 | cat >>confdefs.h <<\_ACEOF | ||
9044 | #define PASSWD_NEEDS_USERNAME 1 | ||
9045 | _ACEOF | ||
9046 | |||
9047 | |||
9048 | |||
9049 | for ac_func in getluid setluid | ||
9050 | do | ||
9051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9052 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9054 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9056 | else | ||
9057 | cat >conftest.$ac_ext <<_ACEOF | ||
9058 | /* confdefs.h. */ | ||
9059 | _ACEOF | ||
9060 | cat confdefs.h >>conftest.$ac_ext | ||
9061 | cat >>conftest.$ac_ext <<_ACEOF | ||
9062 | /* end confdefs.h. */ | ||
9063 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9064 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9065 | #define $ac_func innocuous_$ac_func | ||
9066 | |||
9067 | /* System header to define __stub macros and hopefully few prototypes, | ||
9068 | which can conflict with char $ac_func (); below. | ||
9069 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9070 | <limits.h> exists even on freestanding compilers. */ | ||
9071 | |||
9072 | #ifdef __STDC__ | ||
9073 | # include <limits.h> | ||
9074 | #else | ||
9075 | # include <assert.h> | ||
9076 | #endif | ||
9077 | |||
9078 | #undef $ac_func | ||
9079 | |||
9080 | /* Override any GCC internal prototype to avoid an error. | ||
9081 | Use char because int might match the return type of a GCC | ||
9082 | builtin and then its argument prototype would still apply. */ | ||
9083 | #ifdef __cplusplus | ||
9084 | extern "C" | ||
9085 | #endif | ||
9086 | char $ac_func (); | ||
9087 | /* The GNU C library defines this for functions which it implements | ||
9088 | to always fail with ENOSYS. Some functions are actually named | ||
9089 | something starting with __ and the normal name is an alias. */ | ||
9090 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9091 | choke me | ||
9092 | #endif | ||
9093 | |||
9094 | int | ||
9095 | main () | ||
9096 | { | ||
9097 | return $ac_func (); | ||
9098 | ; | ||
9099 | return 0; | ||
9100 | } | ||
9101 | _ACEOF | ||
9102 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9103 | if { (ac_try="$ac_link" | ||
9104 | case "(($ac_try" in | ||
9105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9106 | *) ac_try_echo=$ac_try;; | ||
9107 | esac | ||
9108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9109 | (eval "$ac_link") 2>conftest.er1 | ||
9110 | ac_status=$? | ||
9111 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9112 | rm -f conftest.er1 | ||
9113 | cat conftest.err >&5 | ||
9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9115 | (exit $ac_status); } && { | ||
9116 | test -z "$ac_c_werror_flag" || | ||
9117 | test ! -s conftest.err | ||
9118 | } && test -s conftest$ac_exeext && | ||
9119 | $as_test_x conftest$ac_exeext; then | ||
9120 | eval "$as_ac_var=yes" | ||
9121 | else | ||
9122 | echo "$as_me: failed program was:" >&5 | ||
9123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9124 | |||
9125 | eval "$as_ac_var=no" | ||
9126 | fi | ||
9127 | |||
9128 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9129 | conftest$ac_exeext conftest.$ac_ext | ||
9130 | fi | ||
9131 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9132 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9133 | echo "${ECHO_T}$ac_res" >&6; } | ||
9134 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9135 | cat >>confdefs.h <<_ACEOF | ||
9136 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9137 | _ACEOF | ||
9138 | |||
9139 | fi | ||
9140 | done | ||
9141 | |||
9142 | MANTYPE=man | ||
9143 | TEST_SHELL=ksh | ||
9144 | ;; | ||
9145 | *-*-unicosmk*) | ||
9146 | |||
9147 | cat >>confdefs.h <<\_ACEOF | ||
9148 | #define NO_SSH_LASTLOG 1 | ||
9149 | _ACEOF | ||
9150 | |||
9151 | cat >>confdefs.h <<\_ACEOF | ||
9152 | #define SETEUID_BREAKS_SETUID 1 | ||
9153 | _ACEOF | ||
9154 | |||
9155 | cat >>confdefs.h <<\_ACEOF | ||
9156 | #define BROKEN_SETREUID 1 | ||
9157 | _ACEOF | ||
9158 | |||
9159 | cat >>confdefs.h <<\_ACEOF | ||
9160 | #define BROKEN_SETREGID 1 | ||
9161 | _ACEOF | ||
9162 | |||
9163 | cat >>confdefs.h <<\_ACEOF | ||
9164 | #define USE_PIPES 1 | ||
9165 | _ACEOF | ||
9166 | |||
9167 | cat >>confdefs.h <<\_ACEOF | ||
9168 | #define DISABLE_FD_PASSING 1 | ||
9169 | _ACEOF | ||
9170 | |||
9171 | LDFLAGS="$LDFLAGS" | ||
9172 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9173 | MANTYPE=cat | ||
9174 | ;; | ||
9175 | *-*-unicosmp*) | ||
9176 | cat >>confdefs.h <<\_ACEOF | ||
9177 | #define SETEUID_BREAKS_SETUID 1 | ||
9178 | _ACEOF | ||
9179 | |||
9180 | cat >>confdefs.h <<\_ACEOF | ||
9181 | #define BROKEN_SETREUID 1 | ||
9182 | _ACEOF | ||
9183 | |||
9184 | cat >>confdefs.h <<\_ACEOF | ||
9185 | #define BROKEN_SETREGID 1 | ||
9186 | _ACEOF | ||
9187 | |||
9188 | cat >>confdefs.h <<\_ACEOF | ||
9189 | #define WITH_ABBREV_NO_TTY 1 | ||
9190 | _ACEOF | ||
9191 | |||
9192 | cat >>confdefs.h <<\_ACEOF | ||
9193 | #define USE_PIPES 1 | ||
9194 | _ACEOF | ||
9195 | |||
9196 | cat >>confdefs.h <<\_ACEOF | ||
9197 | #define DISABLE_FD_PASSING 1 | ||
9198 | _ACEOF | ||
9199 | |||
9200 | LDFLAGS="$LDFLAGS" | ||
9201 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9202 | MANTYPE=cat | ||
9203 | ;; | ||
9204 | *-*-unicos*) | ||
9205 | cat >>confdefs.h <<\_ACEOF | ||
9206 | #define SETEUID_BREAKS_SETUID 1 | ||
9207 | _ACEOF | ||
9208 | |||
9209 | cat >>confdefs.h <<\_ACEOF | ||
9210 | #define BROKEN_SETREUID 1 | ||
9211 | _ACEOF | ||
9212 | |||
9213 | cat >>confdefs.h <<\_ACEOF | ||
9214 | #define BROKEN_SETREGID 1 | ||
9215 | _ACEOF | ||
9216 | |||
9217 | cat >>confdefs.h <<\_ACEOF | ||
9218 | #define USE_PIPES 1 | ||
9219 | _ACEOF | ||
9220 | |||
9221 | cat >>confdefs.h <<\_ACEOF | ||
9222 | #define DISABLE_FD_PASSING 1 | ||
9223 | _ACEOF | ||
9224 | |||
9225 | cat >>confdefs.h <<\_ACEOF | ||
9226 | #define NO_SSH_LASTLOG 1 | ||
9227 | _ACEOF | ||
9228 | |||
9229 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9230 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9231 | MANTYPE=cat | ||
9232 | ;; | ||
9233 | *-dec-osf*) | ||
9234 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9235 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
9236 | no_osfsia="" | ||
9237 | |||
9238 | # Check whether --with-osfsia was given. | ||
9239 | if test "${with_osfsia+set}" = set; then | ||
9240 | withval=$with_osfsia; | ||
9241 | if test "x$withval" = "xno" ; then | ||
9242 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
9243 | echo "${ECHO_T}disabled" >&6; } | ||
9244 | no_osfsia=1 | ||
9245 | fi | ||
9246 | |||
9247 | fi | ||
9248 | |||
9249 | if test -z "$no_osfsia" ; then | ||
9250 | if test -f /etc/sia/matrix.conf; then | ||
9251 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9252 | echo "${ECHO_T}yes" >&6; } | ||
9253 | |||
9254 | cat >>confdefs.h <<\_ACEOF | ||
9255 | #define HAVE_OSF_SIA 1 | ||
9256 | _ACEOF | ||
9257 | |||
9258 | |||
9259 | cat >>confdefs.h <<\_ACEOF | ||
9260 | #define DISABLE_LOGIN 1 | ||
9261 | _ACEOF | ||
9262 | |||
9263 | cat >>confdefs.h <<\_ACEOF | ||
9264 | #define DISABLE_FD_PASSING 1 | ||
9265 | _ACEOF | ||
9266 | |||
9267 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9268 | SIA_MSG="yes" | ||
9269 | else | ||
9270 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9271 | echo "${ECHO_T}no" >&6; } | ||
9272 | |||
9273 | cat >>confdefs.h <<\_ACEOF | ||
9274 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9275 | _ACEOF | ||
9276 | |||
9277 | fi | ||
9278 | fi | ||
9279 | cat >>confdefs.h <<\_ACEOF | ||
9280 | #define BROKEN_GETADDRINFO 1 | ||
9281 | _ACEOF | ||
9282 | |||
9283 | cat >>confdefs.h <<\_ACEOF | ||
9284 | #define SETEUID_BREAKS_SETUID 1 | ||
9285 | _ACEOF | ||
9286 | |||
9287 | cat >>confdefs.h <<\_ACEOF | ||
9288 | #define BROKEN_SETREUID 1 | ||
9289 | _ACEOF | ||
9290 | |||
9291 | cat >>confdefs.h <<\_ACEOF | ||
9292 | #define BROKEN_SETREGID 1 | ||
9293 | _ACEOF | ||
9294 | |||
9295 | |||
9296 | cat >>confdefs.h <<\_ACEOF | ||
9297 | #define BROKEN_READV_COMPARISON 1 | ||
9298 | _ACEOF | ||
9299 | |||
9300 | ;; | ||
9301 | |||
9302 | *-*-nto-qnx*) | ||
9303 | cat >>confdefs.h <<\_ACEOF | ||
9304 | #define USE_PIPES 1 | ||
9305 | _ACEOF | ||
9306 | |||
9307 | cat >>confdefs.h <<\_ACEOF | ||
9308 | #define NO_X11_UNIX_SOCKETS 1 | ||
9309 | _ACEOF | ||
9310 | |||
9311 | |||
9312 | cat >>confdefs.h <<\_ACEOF | ||
9313 | #define MISSING_NFDBITS 1 | ||
9314 | _ACEOF | ||
9315 | |||
9316 | |||
9317 | cat >>confdefs.h <<\_ACEOF | ||
9318 | #define MISSING_HOWMANY 1 | ||
9319 | _ACEOF | ||
9320 | |||
9321 | |||
9322 | cat >>confdefs.h <<\_ACEOF | ||
9323 | #define MISSING_FD_MASK 1 | ||
9324 | _ACEOF | ||
9325 | |||
9326 | cat >>confdefs.h <<\_ACEOF | ||
9327 | #define DISABLE_LASTLOG 1 | ||
9328 | _ACEOF | ||
9329 | |||
9330 | cat >>confdefs.h <<\_ACEOF | ||
9331 | #define SSHD_ACQUIRES_CTTY 1 | ||
9332 | _ACEOF | ||
9333 | |||
9334 | |||
9335 | cat >>confdefs.h <<\_ACEOF | ||
9336 | #define BROKEN_SHADOW_EXPIRE 1 | ||
9337 | _ACEOF | ||
9338 | |||
9339 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
9340 | case "$host" in | ||
9341 | *-*-nto-qnx6*) | ||
9342 | cat >>confdefs.h <<\_ACEOF | ||
9343 | #define DISABLE_FD_PASSING 1 | ||
9344 | _ACEOF | ||
9345 | |||
9346 | ;; | ||
9347 | esac | ||
9348 | ;; | ||
9349 | |||
9350 | *-*-ultrix*) | ||
9351 | |||
9352 | cat >>confdefs.h <<\_ACEOF | ||
9353 | #define BROKEN_GETGROUPS 1 | ||
9354 | _ACEOF | ||
9355 | |||
9356 | |||
9357 | cat >>confdefs.h <<\_ACEOF | ||
9358 | #define BROKEN_MMAP 1 | ||
9359 | _ACEOF | ||
9360 | |||
9361 | cat >>confdefs.h <<\_ACEOF | ||
9362 | #define NEED_SETPGRP 1 | ||
9363 | _ACEOF | ||
9364 | |||
9365 | |||
9366 | cat >>confdefs.h <<\_ACEOF | ||
9367 | #define HAVE_SYS_SYSLOG_H 1 | ||
9368 | _ACEOF | ||
9369 | |||
9370 | ;; | ||
9371 | |||
9372 | *-*-lynxos) | ||
9373 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
9374 | cat >>confdefs.h <<\_ACEOF | ||
9375 | #define MISSING_HOWMANY 1 | ||
9376 | _ACEOF | ||
9377 | |||
9378 | |||
9379 | cat >>confdefs.h <<\_ACEOF | ||
9380 | #define BROKEN_SETVBUF 1 | ||
9381 | _ACEOF | ||
9382 | |||
9383 | ;; | ||
9384 | esac | ||
9385 | |||
9386 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
9387 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
9388 | if test "$cross_compiling" = yes; then | ||
9389 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
9390 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
9391 | |||
9392 | else | ||
9393 | cat >conftest.$ac_ext <<_ACEOF | ||
9394 | /* confdefs.h. */ | ||
9395 | _ACEOF | ||
9396 | cat confdefs.h >>conftest.$ac_ext | ||
9397 | cat >>conftest.$ac_ext <<_ACEOF | ||
9398 | /* end confdefs.h. */ | ||
9399 | |||
9400 | #include <stdio.h> | ||
9401 | int main(){exit(0);} | ||
9402 | |||
9403 | _ACEOF | ||
9404 | rm -f conftest$ac_exeext | ||
9405 | if { (ac_try="$ac_link" | ||
9406 | case "(($ac_try" in | ||
9407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9408 | *) ac_try_echo=$ac_try;; | ||
9409 | esac | ||
9410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9411 | (eval "$ac_link") 2>&5 | ||
9412 | ac_status=$? | ||
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9414 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9415 | { (case "(($ac_try" in | ||
9416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9417 | *) ac_try_echo=$ac_try;; | ||
9418 | esac | ||
9419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9420 | (eval "$ac_try") 2>&5 | ||
9421 | ac_status=$? | ||
9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9423 | (exit $ac_status); }; }; then | ||
9424 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9425 | echo "${ECHO_T}yes" >&6; } | ||
9426 | else | ||
9427 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9428 | echo "$as_me: failed program was:" >&5 | ||
9429 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9430 | |||
9431 | ( exit $ac_status ) | ||
9432 | |||
9433 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9434 | echo "${ECHO_T}no" >&6; } | ||
9435 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
9436 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
9437 | { (exit 1); exit 1; }; } | ||
9438 | |||
9439 | fi | ||
9440 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9441 | fi | ||
9442 | |||
9443 | |||
9444 | |||
9445 | # Checks for libraries. | ||
9446 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
9447 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
9448 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9450 | else | ||
9451 | cat >conftest.$ac_ext <<_ACEOF | ||
9452 | /* confdefs.h. */ | ||
9453 | _ACEOF | ||
9454 | cat confdefs.h >>conftest.$ac_ext | ||
9455 | cat >>conftest.$ac_ext <<_ACEOF | ||
9456 | /* end confdefs.h. */ | ||
9457 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
9458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9459 | #define yp_match innocuous_yp_match | ||
9460 | |||
9461 | /* System header to define __stub macros and hopefully few prototypes, | ||
9462 | which can conflict with char yp_match (); below. | ||
9463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9464 | <limits.h> exists even on freestanding compilers. */ | ||
9465 | |||
9466 | #ifdef __STDC__ | ||
9467 | # include <limits.h> | ||
9468 | #else | ||
9469 | # include <assert.h> | ||
9470 | #endif | ||
9471 | |||
9472 | #undef yp_match | ||
9473 | |||
9474 | /* Override any GCC internal prototype to avoid an error. | ||
9475 | Use char because int might match the return type of a GCC | ||
9476 | builtin and then its argument prototype would still apply. */ | ||
9477 | #ifdef __cplusplus | ||
9478 | extern "C" | ||
9479 | #endif | ||
9480 | char yp_match (); | ||
9481 | /* The GNU C library defines this for functions which it implements | ||
9482 | to always fail with ENOSYS. Some functions are actually named | ||
9483 | something starting with __ and the normal name is an alias. */ | ||
9484 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9485 | choke me | ||
9486 | #endif | ||
9487 | |||
9488 | int | ||
9489 | main () | ||
9490 | { | ||
9491 | return yp_match (); | ||
9492 | ; | ||
9493 | return 0; | ||
9494 | } | ||
9495 | _ACEOF | ||
9496 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9497 | if { (ac_try="$ac_link" | ||
9498 | case "(($ac_try" in | ||
9499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9500 | *) ac_try_echo=$ac_try;; | ||
9501 | esac | ||
9502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9503 | (eval "$ac_link") 2>conftest.er1 | ||
9504 | ac_status=$? | ||
9505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9506 | rm -f conftest.er1 | ||
9507 | cat conftest.err >&5 | ||
9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9509 | (exit $ac_status); } && { | ||
9510 | test -z "$ac_c_werror_flag" || | ||
9511 | test ! -s conftest.err | ||
9512 | } && test -s conftest$ac_exeext && | ||
9513 | $as_test_x conftest$ac_exeext; then | ||
9514 | ac_cv_func_yp_match=yes | ||
9515 | else | ||
9516 | echo "$as_me: failed program was:" >&5 | ||
9517 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9518 | |||
9519 | ac_cv_func_yp_match=no | ||
9520 | fi | ||
9521 | |||
9522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9523 | conftest$ac_exeext conftest.$ac_ext | ||
9524 | fi | ||
9525 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
9526 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
9527 | if test $ac_cv_func_yp_match = yes; then | ||
9528 | : | ||
9529 | else | ||
9530 | |||
9531 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
9532 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
9533 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
9534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9535 | else | ||
9536 | ac_check_lib_save_LIBS=$LIBS | ||
9537 | LIBS="-lnsl $LIBS" | ||
9538 | cat >conftest.$ac_ext <<_ACEOF | ||
9539 | /* confdefs.h. */ | ||
9540 | _ACEOF | ||
9541 | cat confdefs.h >>conftest.$ac_ext | ||
9542 | cat >>conftest.$ac_ext <<_ACEOF | ||
9543 | /* end confdefs.h. */ | ||
9544 | |||
9545 | /* Override any GCC internal prototype to avoid an error. | ||
9546 | Use char because int might match the return type of a GCC | ||
9547 | builtin and then its argument prototype would still apply. */ | ||
9548 | #ifdef __cplusplus | ||
9549 | extern "C" | ||
9550 | #endif | ||
9551 | char yp_match (); | ||
9552 | int | ||
9553 | main () | ||
9554 | { | ||
9555 | return yp_match (); | ||
9556 | ; | ||
9557 | return 0; | ||
9558 | } | ||
9559 | _ACEOF | ||
9560 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9561 | if { (ac_try="$ac_link" | ||
9562 | case "(($ac_try" in | ||
9563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9564 | *) ac_try_echo=$ac_try;; | ||
9565 | esac | ||
9566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9567 | (eval "$ac_link") 2>conftest.er1 | ||
9568 | ac_status=$? | ||
9569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9570 | rm -f conftest.er1 | ||
9571 | cat conftest.err >&5 | ||
9572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9573 | (exit $ac_status); } && { | ||
9574 | test -z "$ac_c_werror_flag" || | ||
9575 | test ! -s conftest.err | ||
9576 | } && test -s conftest$ac_exeext && | ||
9577 | $as_test_x conftest$ac_exeext; then | ||
9578 | ac_cv_lib_nsl_yp_match=yes | ||
9579 | else | ||
9580 | echo "$as_me: failed program was:" >&5 | ||
9581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9582 | |||
9583 | ac_cv_lib_nsl_yp_match=no | ||
9584 | fi | ||
9585 | |||
9586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9587 | conftest$ac_exeext conftest.$ac_ext | ||
9588 | LIBS=$ac_check_lib_save_LIBS | ||
9589 | fi | ||
9590 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
9591 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
9592 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
9593 | cat >>confdefs.h <<_ACEOF | ||
9594 | #define HAVE_LIBNSL 1 | ||
9595 | _ACEOF | ||
9596 | |||
9597 | LIBS="-lnsl $LIBS" | ||
9598 | |||
9599 | fi | ||
9600 | |||
9601 | fi | ||
9602 | |||
9603 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
9604 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
9605 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
9606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9607 | else | ||
9608 | cat >conftest.$ac_ext <<_ACEOF | ||
9609 | /* confdefs.h. */ | ||
9610 | _ACEOF | ||
9611 | cat confdefs.h >>conftest.$ac_ext | ||
9612 | cat >>conftest.$ac_ext <<_ACEOF | ||
9613 | /* end confdefs.h. */ | ||
9614 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
9615 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9616 | #define setsockopt innocuous_setsockopt | ||
9617 | |||
9618 | /* System header to define __stub macros and hopefully few prototypes, | ||
9619 | which can conflict with char setsockopt (); below. | ||
9620 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9621 | <limits.h> exists even on freestanding compilers. */ | ||
9622 | |||
9623 | #ifdef __STDC__ | ||
9624 | # include <limits.h> | ||
9625 | #else | ||
9626 | # include <assert.h> | ||
9627 | #endif | ||
9628 | |||
9629 | #undef setsockopt | ||
9630 | |||
9631 | /* Override any GCC internal prototype to avoid an error. | ||
9632 | Use char because int might match the return type of a GCC | ||
9633 | builtin and then its argument prototype would still apply. */ | ||
9634 | #ifdef __cplusplus | ||
9635 | extern "C" | ||
9636 | #endif | ||
9637 | char setsockopt (); | ||
9638 | /* The GNU C library defines this for functions which it implements | ||
9639 | to always fail with ENOSYS. Some functions are actually named | ||
9640 | something starting with __ and the normal name is an alias. */ | ||
9641 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
9642 | choke me | ||
9643 | #endif | ||
9644 | |||
9645 | int | ||
9646 | main () | ||
9647 | { | ||
9648 | return setsockopt (); | ||
9649 | ; | ||
9650 | return 0; | ||
9651 | } | ||
9652 | _ACEOF | ||
9653 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9654 | if { (ac_try="$ac_link" | ||
9655 | case "(($ac_try" in | ||
9656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9657 | *) ac_try_echo=$ac_try;; | ||
9658 | esac | ||
9659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9660 | (eval "$ac_link") 2>conftest.er1 | ||
9661 | ac_status=$? | ||
9662 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9663 | rm -f conftest.er1 | ||
9664 | cat conftest.err >&5 | ||
9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9666 | (exit $ac_status); } && { | ||
9667 | test -z "$ac_c_werror_flag" || | ||
9668 | test ! -s conftest.err | ||
9669 | } && test -s conftest$ac_exeext && | ||
9670 | $as_test_x conftest$ac_exeext; then | ||
9671 | ac_cv_func_setsockopt=yes | ||
9672 | else | ||
9673 | echo "$as_me: failed program was:" >&5 | ||
9674 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9675 | |||
9676 | ac_cv_func_setsockopt=no | ||
9677 | fi | ||
9678 | |||
9679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9680 | conftest$ac_exeext conftest.$ac_ext | ||
9681 | fi | ||
9682 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
9683 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
9684 | if test $ac_cv_func_setsockopt = yes; then | ||
9685 | : | ||
9686 | else | ||
9687 | |||
9688 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
9689 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
9690 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
9691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9692 | else | ||
9693 | ac_check_lib_save_LIBS=$LIBS | ||
9694 | LIBS="-lsocket $LIBS" | ||
9695 | cat >conftest.$ac_ext <<_ACEOF | ||
9696 | /* confdefs.h. */ | ||
9697 | _ACEOF | ||
9698 | cat confdefs.h >>conftest.$ac_ext | ||
9699 | cat >>conftest.$ac_ext <<_ACEOF | ||
9700 | /* end confdefs.h. */ | ||
9701 | |||
9702 | /* Override any GCC internal prototype to avoid an error. | ||
9703 | Use char because int might match the return type of a GCC | ||
9704 | builtin and then its argument prototype would still apply. */ | ||
9705 | #ifdef __cplusplus | ||
9706 | extern "C" | ||
9707 | #endif | ||
9708 | char setsockopt (); | ||
9709 | int | ||
9710 | main () | ||
9711 | { | ||
9712 | return setsockopt (); | ||
9713 | ; | ||
9714 | return 0; | ||
9715 | } | ||
9716 | _ACEOF | ||
9717 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9718 | if { (ac_try="$ac_link" | ||
9719 | case "(($ac_try" in | ||
9720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9721 | *) ac_try_echo=$ac_try;; | ||
9722 | esac | ||
9723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9724 | (eval "$ac_link") 2>conftest.er1 | ||
9725 | ac_status=$? | ||
9726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9727 | rm -f conftest.er1 | ||
9728 | cat conftest.err >&5 | ||
9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9730 | (exit $ac_status); } && { | ||
9731 | test -z "$ac_c_werror_flag" || | ||
9732 | test ! -s conftest.err | ||
9733 | } && test -s conftest$ac_exeext && | ||
9734 | $as_test_x conftest$ac_exeext; then | ||
9735 | ac_cv_lib_socket_setsockopt=yes | ||
9736 | else | ||
9737 | echo "$as_me: failed program was:" >&5 | ||
9738 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9739 | |||
9740 | ac_cv_lib_socket_setsockopt=no | ||
9741 | fi | ||
9742 | |||
9743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9744 | conftest$ac_exeext conftest.$ac_ext | ||
9745 | LIBS=$ac_check_lib_save_LIBS | ||
9746 | fi | ||
9747 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
9748 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
9749 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
9750 | cat >>confdefs.h <<_ACEOF | ||
9751 | #define HAVE_LIBSOCKET 1 | ||
9752 | _ACEOF | ||
9753 | |||
9754 | LIBS="-lsocket $LIBS" | ||
9755 | |||
9756 | fi | ||
9757 | |||
9758 | fi | ||
9759 | |||
9760 | |||
9761 | |||
9762 | for ac_func in dirname | ||
9763 | do | ||
9764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9765 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9767 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9769 | else | ||
9770 | cat >conftest.$ac_ext <<_ACEOF | ||
9771 | /* confdefs.h. */ | ||
9772 | _ACEOF | ||
9773 | cat confdefs.h >>conftest.$ac_ext | ||
9774 | cat >>conftest.$ac_ext <<_ACEOF | ||
9775 | /* end confdefs.h. */ | ||
9776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9778 | #define $ac_func innocuous_$ac_func | ||
9779 | |||
9780 | /* System header to define __stub macros and hopefully few prototypes, | ||
9781 | which can conflict with char $ac_func (); below. | ||
9782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9783 | <limits.h> exists even on freestanding compilers. */ | ||
9784 | |||
9785 | #ifdef __STDC__ | ||
9786 | # include <limits.h> | ||
9787 | #else | ||
9788 | # include <assert.h> | ||
9789 | #endif | ||
9790 | |||
9791 | #undef $ac_func | ||
9792 | |||
9793 | /* Override any GCC internal prototype to avoid an error. | ||
9794 | Use char because int might match the return type of a GCC | ||
9795 | builtin and then its argument prototype would still apply. */ | ||
9796 | #ifdef __cplusplus | ||
9797 | extern "C" | ||
9798 | #endif | ||
9799 | char $ac_func (); | ||
9800 | /* The GNU C library defines this for functions which it implements | ||
9801 | to always fail with ENOSYS. Some functions are actually named | ||
9802 | something starting with __ and the normal name is an alias. */ | ||
9803 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9804 | choke me | ||
9805 | #endif | ||
9806 | |||
9807 | int | ||
9808 | main () | ||
9809 | { | ||
9810 | return $ac_func (); | ||
9811 | ; | ||
9812 | return 0; | ||
9813 | } | ||
9814 | _ACEOF | ||
9815 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9816 | if { (ac_try="$ac_link" | ||
9817 | case "(($ac_try" in | ||
9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9819 | *) ac_try_echo=$ac_try;; | ||
9820 | esac | ||
9821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9822 | (eval "$ac_link") 2>conftest.er1 | ||
9823 | ac_status=$? | ||
9824 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9825 | rm -f conftest.er1 | ||
9826 | cat conftest.err >&5 | ||
9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9828 | (exit $ac_status); } && { | ||
9829 | test -z "$ac_c_werror_flag" || | ||
9830 | test ! -s conftest.err | ||
9831 | } && test -s conftest$ac_exeext && | ||
9832 | $as_test_x conftest$ac_exeext; then | ||
9833 | eval "$as_ac_var=yes" | ||
9834 | else | ||
9835 | echo "$as_me: failed program was:" >&5 | ||
9836 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9837 | |||
9838 | eval "$as_ac_var=no" | ||
9839 | fi | ||
9840 | |||
9841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9842 | conftest$ac_exeext conftest.$ac_ext | ||
9843 | fi | ||
9844 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9845 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9846 | echo "${ECHO_T}$ac_res" >&6; } | ||
9847 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9848 | cat >>confdefs.h <<_ACEOF | ||
9849 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9850 | _ACEOF | ||
9851 | |||
9852 | for ac_header in libgen.h | ||
9853 | do | ||
9854 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9856 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9860 | fi | ||
9861 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9862 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9863 | echo "${ECHO_T}$ac_res" >&6; } | ||
9864 | else | ||
9865 | # Is the header compilable? | ||
9866 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9868 | cat >conftest.$ac_ext <<_ACEOF | ||
9869 | /* confdefs.h. */ | ||
9870 | _ACEOF | ||
9871 | cat confdefs.h >>conftest.$ac_ext | ||
9872 | cat >>conftest.$ac_ext <<_ACEOF | ||
9873 | /* end confdefs.h. */ | ||
9874 | $ac_includes_default | ||
9875 | #include <$ac_header> | ||
9876 | _ACEOF | ||
9877 | rm -f conftest.$ac_objext | ||
9878 | if { (ac_try="$ac_compile" | ||
9879 | case "(($ac_try" in | ||
9880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9881 | *) ac_try_echo=$ac_try;; | ||
9882 | esac | ||
9883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9884 | (eval "$ac_compile") 2>conftest.er1 | ||
9885 | ac_status=$? | ||
9886 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9887 | rm -f conftest.er1 | ||
9888 | cat conftest.err >&5 | ||
9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9890 | (exit $ac_status); } && { | ||
9891 | test -z "$ac_c_werror_flag" || | ||
9892 | test ! -s conftest.err | ||
9893 | } && test -s conftest.$ac_objext; then | ||
9894 | ac_header_compiler=yes | ||
9895 | else | ||
9896 | echo "$as_me: failed program was:" >&5 | ||
9897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9898 | |||
9899 | ac_header_compiler=no | ||
9900 | fi | ||
9901 | |||
9902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9903 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9904 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9905 | |||
9906 | # Is the header present? | ||
9907 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9908 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9909 | cat >conftest.$ac_ext <<_ACEOF | ||
9910 | /* confdefs.h. */ | ||
9911 | _ACEOF | ||
9912 | cat confdefs.h >>conftest.$ac_ext | ||
9913 | cat >>conftest.$ac_ext <<_ACEOF | ||
9914 | /* end confdefs.h. */ | ||
9915 | #include <$ac_header> | ||
9916 | _ACEOF | ||
9917 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9918 | case "(($ac_try" in | ||
9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9920 | *) ac_try_echo=$ac_try;; | ||
9921 | esac | ||
9922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9924 | ac_status=$? | ||
9925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9926 | rm -f conftest.er1 | ||
9927 | cat conftest.err >&5 | ||
9928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9929 | (exit $ac_status); } >/dev/null && { | ||
9930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9931 | test ! -s conftest.err | ||
9932 | }; then | ||
9933 | ac_header_preproc=yes | ||
9934 | else | ||
9935 | echo "$as_me: failed program was:" >&5 | ||
9936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9937 | |||
9938 | ac_header_preproc=no | ||
9939 | fi | ||
9940 | |||
9941 | rm -f conftest.err conftest.$ac_ext | ||
9942 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9943 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9944 | |||
9945 | # So? What about this header? | ||
9946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9947 | yes:no: ) | ||
9948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9952 | ac_header_preproc=yes | ||
9953 | ;; | ||
9954 | no:yes:* ) | ||
9955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9967 | ( cat <<\_ASBOX | ||
9968 | ## ------------------------------------------- ## | ||
9969 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9970 | ## ------------------------------------------- ## | ||
9971 | _ASBOX | ||
9972 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9973 | ;; | ||
9974 | esac | ||
9975 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9979 | else | ||
9980 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9981 | fi | ||
9982 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9983 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9984 | echo "${ECHO_T}$ac_res" >&6; } | ||
9985 | |||
9986 | fi | ||
9987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9988 | cat >>confdefs.h <<_ACEOF | ||
9989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9990 | _ACEOF | ||
9991 | |||
9992 | fi | ||
9993 | |||
9994 | done | ||
9995 | |||
9996 | else | ||
9997 | |||
9998 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
9999 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
10000 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
10001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10002 | else | ||
10003 | ac_check_lib_save_LIBS=$LIBS | ||
10004 | LIBS="-lgen $LIBS" | ||
10005 | cat >conftest.$ac_ext <<_ACEOF | ||
10006 | /* confdefs.h. */ | ||
10007 | _ACEOF | ||
10008 | cat confdefs.h >>conftest.$ac_ext | ||
10009 | cat >>conftest.$ac_ext <<_ACEOF | ||
10010 | /* end confdefs.h. */ | ||
10011 | |||
10012 | /* Override any GCC internal prototype to avoid an error. | ||
10013 | Use char because int might match the return type of a GCC | ||
10014 | builtin and then its argument prototype would still apply. */ | ||
10015 | #ifdef __cplusplus | ||
10016 | extern "C" | ||
10017 | #endif | ||
10018 | char dirname (); | ||
10019 | int | ||
10020 | main () | ||
10021 | { | ||
10022 | return dirname (); | ||
10023 | ; | ||
10024 | return 0; | ||
10025 | } | ||
10026 | _ACEOF | ||
10027 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10028 | if { (ac_try="$ac_link" | ||
10029 | case "(($ac_try" in | ||
10030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10031 | *) ac_try_echo=$ac_try;; | ||
10032 | esac | ||
10033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10034 | (eval "$ac_link") 2>conftest.er1 | ||
10035 | ac_status=$? | ||
10036 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10037 | rm -f conftest.er1 | ||
10038 | cat conftest.err >&5 | ||
10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10040 | (exit $ac_status); } && { | ||
10041 | test -z "$ac_c_werror_flag" || | ||
10042 | test ! -s conftest.err | ||
10043 | } && test -s conftest$ac_exeext && | ||
10044 | $as_test_x conftest$ac_exeext; then | ||
10045 | ac_cv_lib_gen_dirname=yes | ||
10046 | else | ||
10047 | echo "$as_me: failed program was:" >&5 | ||
10048 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10049 | |||
10050 | ac_cv_lib_gen_dirname=no | ||
10051 | fi | ||
10052 | |||
10053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10054 | conftest$ac_exeext conftest.$ac_ext | ||
10055 | LIBS=$ac_check_lib_save_LIBS | ||
10056 | fi | ||
10057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
10058 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
10059 | if test $ac_cv_lib_gen_dirname = yes; then | ||
10060 | |||
10061 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
10062 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
10063 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
10064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10065 | else | ||
10066 | |||
10067 | save_LIBS="$LIBS" | ||
10068 | LIBS="$LIBS -lgen" | ||
10069 | if test "$cross_compiling" = yes; then | ||
10070 | ac_cv_have_broken_dirname="no" | ||
10071 | else | ||
10072 | cat >conftest.$ac_ext <<_ACEOF | ||
10073 | /* confdefs.h. */ | ||
10074 | _ACEOF | ||
10075 | cat confdefs.h >>conftest.$ac_ext | ||
10076 | cat >>conftest.$ac_ext <<_ACEOF | ||
10077 | /* end confdefs.h. */ | ||
10078 | |||
10079 | #include <libgen.h> | ||
10080 | #include <string.h> | ||
10081 | |||
10082 | int main(int argc, char **argv) { | ||
10083 | char *s, buf[32]; | ||
10084 | |||
10085 | strncpy(buf,"/etc", 32); | ||
10086 | s = dirname(buf); | ||
10087 | if (!s || strncmp(s, "/", 32) != 0) { | ||
10088 | exit(1); | ||
10089 | } else { | ||
10090 | exit(0); | ||
10091 | } | ||
10092 | } | ||
10093 | |||
10094 | _ACEOF | ||
10095 | rm -f conftest$ac_exeext | ||
10096 | if { (ac_try="$ac_link" | ||
10097 | case "(($ac_try" in | ||
10098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10099 | *) ac_try_echo=$ac_try;; | ||
10100 | esac | ||
10101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10102 | (eval "$ac_link") 2>&5 | ||
10103 | ac_status=$? | ||
10104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10106 | { (case "(($ac_try" in | ||
10107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10108 | *) ac_try_echo=$ac_try;; | ||
10109 | esac | ||
10110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10111 | (eval "$ac_try") 2>&5 | ||
10112 | ac_status=$? | ||
10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10114 | (exit $ac_status); }; }; then | ||
10115 | ac_cv_have_broken_dirname="no" | ||
10116 | else | ||
10117 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10118 | echo "$as_me: failed program was:" >&5 | ||
10119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10120 | |||
10121 | ( exit $ac_status ) | ||
10122 | ac_cv_have_broken_dirname="yes" | ||
10123 | fi | ||
10124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10125 | fi | ||
10126 | |||
10127 | |||
10128 | LIBS="$save_LIBS" | ||
10129 | |||
10130 | fi | ||
10131 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
10132 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
10133 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
10134 | LIBS="$LIBS -lgen" | ||
10135 | cat >>confdefs.h <<\_ACEOF | ||
10136 | #define HAVE_DIRNAME 1 | ||
10137 | _ACEOF | ||
10138 | |||
10139 | |||
10140 | for ac_header in libgen.h | ||
10141 | do | ||
10142 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10144 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10148 | fi | ||
10149 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10151 | echo "${ECHO_T}$ac_res" >&6; } | ||
10152 | else | ||
10153 | # Is the header compilable? | ||
10154 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10156 | cat >conftest.$ac_ext <<_ACEOF | ||
10157 | /* confdefs.h. */ | ||
10158 | _ACEOF | ||
10159 | cat confdefs.h >>conftest.$ac_ext | ||
10160 | cat >>conftest.$ac_ext <<_ACEOF | ||
10161 | /* end confdefs.h. */ | ||
10162 | $ac_includes_default | ||
10163 | #include <$ac_header> | ||
10164 | _ACEOF | ||
10165 | rm -f conftest.$ac_objext | ||
10166 | if { (ac_try="$ac_compile" | ||
10167 | case "(($ac_try" in | ||
10168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10169 | *) ac_try_echo=$ac_try;; | ||
10170 | esac | ||
10171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10172 | (eval "$ac_compile") 2>conftest.er1 | ||
10173 | ac_status=$? | ||
10174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10175 | rm -f conftest.er1 | ||
10176 | cat conftest.err >&5 | ||
10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10178 | (exit $ac_status); } && { | ||
10179 | test -z "$ac_c_werror_flag" || | ||
10180 | test ! -s conftest.err | ||
10181 | } && test -s conftest.$ac_objext; then | ||
10182 | ac_header_compiler=yes | ||
10183 | else | ||
10184 | echo "$as_me: failed program was:" >&5 | ||
10185 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10186 | |||
10187 | ac_header_compiler=no | ||
10188 | fi | ||
10189 | |||
10190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10191 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10192 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10193 | |||
10194 | # Is the header present? | ||
10195 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10196 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10197 | cat >conftest.$ac_ext <<_ACEOF | ||
10198 | /* confdefs.h. */ | ||
10199 | _ACEOF | ||
10200 | cat confdefs.h >>conftest.$ac_ext | ||
10201 | cat >>conftest.$ac_ext <<_ACEOF | ||
10202 | /* end confdefs.h. */ | ||
10203 | #include <$ac_header> | ||
10204 | _ACEOF | ||
10205 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10206 | case "(($ac_try" in | ||
10207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10208 | *) ac_try_echo=$ac_try;; | ||
10209 | esac | ||
10210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10211 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10212 | ac_status=$? | ||
10213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10214 | rm -f conftest.er1 | ||
10215 | cat conftest.err >&5 | ||
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10217 | (exit $ac_status); } >/dev/null && { | ||
10218 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10219 | test ! -s conftest.err | ||
10220 | }; then | ||
10221 | ac_header_preproc=yes | ||
10222 | else | ||
10223 | echo "$as_me: failed program was:" >&5 | ||
10224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10225 | |||
10226 | ac_header_preproc=no | ||
10227 | fi | ||
10228 | |||
10229 | rm -f conftest.err conftest.$ac_ext | ||
10230 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10231 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10232 | |||
10233 | # So? What about this header? | ||
10234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10235 | yes:no: ) | ||
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10239 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10240 | ac_header_preproc=yes | ||
10241 | ;; | ||
10242 | no:yes:* ) | ||
10243 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10244 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10245 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10246 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10247 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10248 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10249 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10250 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10253 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10254 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10255 | ( cat <<\_ASBOX | ||
10256 | ## ------------------------------------------- ## | ||
10257 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10258 | ## ------------------------------------------- ## | ||
10259 | _ASBOX | ||
10260 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10261 | ;; | ||
10262 | esac | ||
10263 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10267 | else | ||
10268 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10269 | fi | ||
10270 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10271 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10272 | echo "${ECHO_T}$ac_res" >&6; } | ||
10273 | |||
10274 | fi | ||
10275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10276 | cat >>confdefs.h <<_ACEOF | ||
10277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10278 | _ACEOF | ||
10279 | |||
10280 | fi | ||
10281 | |||
10282 | done | ||
10283 | |||
10284 | fi | ||
10285 | |||
10286 | fi | ||
10287 | |||
10288 | |||
10289 | fi | ||
10290 | done | ||
10291 | |||
10292 | |||
10293 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10294 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
10295 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10297 | else | ||
10298 | cat >conftest.$ac_ext <<_ACEOF | ||
10299 | /* confdefs.h. */ | ||
10300 | _ACEOF | ||
10301 | cat confdefs.h >>conftest.$ac_ext | ||
10302 | cat >>conftest.$ac_ext <<_ACEOF | ||
10303 | /* end confdefs.h. */ | ||
10304 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
10305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10306 | #define getspnam innocuous_getspnam | ||
10307 | |||
10308 | /* System header to define __stub macros and hopefully few prototypes, | ||
10309 | which can conflict with char getspnam (); below. | ||
10310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10311 | <limits.h> exists even on freestanding compilers. */ | ||
10312 | |||
10313 | #ifdef __STDC__ | ||
10314 | # include <limits.h> | ||
10315 | #else | ||
10316 | # include <assert.h> | ||
10317 | #endif | ||
10318 | |||
10319 | #undef getspnam | ||
10320 | |||
10321 | /* Override any GCC internal prototype to avoid an error. | ||
10322 | Use char because int might match the return type of a GCC | ||
10323 | builtin and then its argument prototype would still apply. */ | ||
10324 | #ifdef __cplusplus | ||
10325 | extern "C" | ||
10326 | #endif | ||
10327 | char getspnam (); | ||
10328 | /* The GNU C library defines this for functions which it implements | ||
10329 | to always fail with ENOSYS. Some functions are actually named | ||
10330 | something starting with __ and the normal name is an alias. */ | ||
10331 | #if defined __stub_getspnam || defined __stub___getspnam | ||
10332 | choke me | ||
10333 | #endif | ||
10334 | |||
10335 | int | ||
10336 | main () | ||
10337 | { | ||
10338 | return getspnam (); | ||
10339 | ; | ||
10340 | return 0; | ||
10341 | } | ||
10342 | _ACEOF | ||
10343 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10344 | if { (ac_try="$ac_link" | ||
10345 | case "(($ac_try" in | ||
10346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10347 | *) ac_try_echo=$ac_try;; | ||
10348 | esac | ||
10349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10350 | (eval "$ac_link") 2>conftest.er1 | ||
10351 | ac_status=$? | ||
10352 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10353 | rm -f conftest.er1 | ||
10354 | cat conftest.err >&5 | ||
10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10356 | (exit $ac_status); } && { | ||
10357 | test -z "$ac_c_werror_flag" || | ||
10358 | test ! -s conftest.err | ||
10359 | } && test -s conftest$ac_exeext && | ||
10360 | $as_test_x conftest$ac_exeext; then | ||
10361 | ac_cv_func_getspnam=yes | ||
10362 | else | ||
10363 | echo "$as_me: failed program was:" >&5 | ||
10364 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10365 | |||
10366 | ac_cv_func_getspnam=no | ||
10367 | fi | ||
10368 | |||
10369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10370 | conftest$ac_exeext conftest.$ac_ext | ||
10371 | fi | ||
10372 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
10373 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
10374 | if test $ac_cv_func_getspnam = yes; then | ||
10375 | : | ||
10376 | else | ||
10377 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
10378 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
10379 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
10380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10381 | else | ||
10382 | ac_check_lib_save_LIBS=$LIBS | ||
10383 | LIBS="-lgen $LIBS" | ||
10384 | cat >conftest.$ac_ext <<_ACEOF | ||
10385 | /* confdefs.h. */ | ||
10386 | _ACEOF | ||
10387 | cat confdefs.h >>conftest.$ac_ext | ||
10388 | cat >>conftest.$ac_ext <<_ACEOF | ||
10389 | /* end confdefs.h. */ | ||
10390 | |||
10391 | /* Override any GCC internal prototype to avoid an error. | ||
10392 | Use char because int might match the return type of a GCC | ||
10393 | builtin and then its argument prototype would still apply. */ | ||
10394 | #ifdef __cplusplus | ||
10395 | extern "C" | ||
10396 | #endif | ||
10397 | char getspnam (); | ||
10398 | int | ||
10399 | main () | ||
10400 | { | ||
10401 | return getspnam (); | ||
10402 | ; | ||
10403 | return 0; | ||
10404 | } | ||
10405 | _ACEOF | ||
10406 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10407 | if { (ac_try="$ac_link" | ||
10408 | case "(($ac_try" in | ||
10409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10410 | *) ac_try_echo=$ac_try;; | ||
10411 | esac | ||
10412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10413 | (eval "$ac_link") 2>conftest.er1 | ||
10414 | ac_status=$? | ||
10415 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10416 | rm -f conftest.er1 | ||
10417 | cat conftest.err >&5 | ||
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10419 | (exit $ac_status); } && { | ||
10420 | test -z "$ac_c_werror_flag" || | ||
10421 | test ! -s conftest.err | ||
10422 | } && test -s conftest$ac_exeext && | ||
10423 | $as_test_x conftest$ac_exeext; then | ||
10424 | ac_cv_lib_gen_getspnam=yes | ||
10425 | else | ||
10426 | echo "$as_me: failed program was:" >&5 | ||
10427 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10428 | |||
10429 | ac_cv_lib_gen_getspnam=no | ||
10430 | fi | ||
10431 | |||
10432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10433 | conftest$ac_exeext conftest.$ac_ext | ||
10434 | LIBS=$ac_check_lib_save_LIBS | ||
10435 | fi | ||
10436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
10437 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
10438 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
10439 | LIBS="$LIBS -lgen" | ||
10440 | fi | ||
10441 | |||
10442 | fi | ||
10443 | |||
10444 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
10445 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
10446 | if test "${ac_cv_search_basename+set}" = set; then | ||
10447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10448 | else | ||
10449 | ac_func_search_save_LIBS=$LIBS | ||
10450 | cat >conftest.$ac_ext <<_ACEOF | ||
10451 | /* confdefs.h. */ | ||
10452 | _ACEOF | ||
10453 | cat confdefs.h >>conftest.$ac_ext | ||
10454 | cat >>conftest.$ac_ext <<_ACEOF | ||
10455 | /* end confdefs.h. */ | ||
10456 | |||
10457 | /* Override any GCC internal prototype to avoid an error. | ||
10458 | Use char because int might match the return type of a GCC | ||
10459 | builtin and then its argument prototype would still apply. */ | ||
10460 | #ifdef __cplusplus | ||
10461 | extern "C" | ||
10462 | #endif | ||
10463 | char basename (); | ||
10464 | int | ||
10465 | main () | ||
10466 | { | ||
10467 | return basename (); | ||
10468 | ; | ||
10469 | return 0; | ||
10470 | } | ||
10471 | _ACEOF | ||
10472 | for ac_lib in '' gen; do | ||
10473 | if test -z "$ac_lib"; then | ||
10474 | ac_res="none required" | ||
10475 | else | ||
10476 | ac_res=-l$ac_lib | ||
10477 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10478 | fi | ||
10479 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10480 | if { (ac_try="$ac_link" | ||
10481 | case "(($ac_try" in | ||
10482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10483 | *) ac_try_echo=$ac_try;; | ||
10484 | esac | ||
10485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10486 | (eval "$ac_link") 2>conftest.er1 | ||
10487 | ac_status=$? | ||
10488 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10489 | rm -f conftest.er1 | ||
10490 | cat conftest.err >&5 | ||
10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10492 | (exit $ac_status); } && { | ||
10493 | test -z "$ac_c_werror_flag" || | ||
10494 | test ! -s conftest.err | ||
10495 | } && test -s conftest$ac_exeext && | ||
10496 | $as_test_x conftest$ac_exeext; then | ||
10497 | ac_cv_search_basename=$ac_res | ||
10498 | else | ||
10499 | echo "$as_me: failed program was:" >&5 | ||
10500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10501 | |||
10502 | |||
10503 | fi | ||
10504 | |||
10505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10506 | conftest$ac_exeext | ||
10507 | if test "${ac_cv_search_basename+set}" = set; then | ||
10508 | break | ||
10509 | fi | ||
10510 | done | ||
10511 | if test "${ac_cv_search_basename+set}" = set; then | ||
10512 | : | ||
10513 | else | ||
10514 | ac_cv_search_basename=no | ||
10515 | fi | ||
10516 | rm conftest.$ac_ext | ||
10517 | LIBS=$ac_func_search_save_LIBS | ||
10518 | fi | ||
10519 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
10520 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
10521 | ac_res=$ac_cv_search_basename | ||
10522 | if test "$ac_res" != no; then | ||
10523 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10524 | |||
10525 | cat >>confdefs.h <<\_ACEOF | ||
10526 | #define HAVE_BASENAME 1 | ||
10527 | _ACEOF | ||
10528 | |||
10529 | fi | ||
10530 | |||
10531 | |||
10532 | |||
10533 | # Check whether --with-zlib was given. | ||
10534 | if test "${with_zlib+set}" = set; then | ||
10535 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
10536 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
10537 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
10538 | { (exit 1); exit 1; }; } | ||
10539 | elif test "x$withval" != "xyes"; then | ||
10540 | if test -d "$withval/lib"; then | ||
10541 | if test -n "${need_dash_r}"; then | ||
10542 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10543 | else | ||
10544 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10545 | fi | ||
10546 | else | ||
10547 | if test -n "${need_dash_r}"; then | ||
10548 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10549 | else | ||
10550 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10551 | fi | ||
10552 | fi | ||
10553 | if test -d "$withval/include"; then | ||
10554 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10555 | else | ||
10556 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10557 | fi | ||
10558 | fi | ||
10559 | |||
10560 | fi | ||
10561 | |||
10562 | |||
10563 | |||
10564 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
10565 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
10566 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
10567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10568 | else | ||
10569 | ac_check_lib_save_LIBS=$LIBS | ||
10570 | LIBS="-lz $LIBS" | ||
10571 | cat >conftest.$ac_ext <<_ACEOF | ||
10572 | /* confdefs.h. */ | ||
10573 | _ACEOF | ||
10574 | cat confdefs.h >>conftest.$ac_ext | ||
10575 | cat >>conftest.$ac_ext <<_ACEOF | ||
10576 | /* end confdefs.h. */ | ||
10577 | |||
10578 | /* Override any GCC internal prototype to avoid an error. | ||
10579 | Use char because int might match the return type of a GCC | ||
10580 | builtin and then its argument prototype would still apply. */ | ||
10581 | #ifdef __cplusplus | ||
10582 | extern "C" | ||
10583 | #endif | ||
10584 | char deflate (); | ||
10585 | int | ||
10586 | main () | ||
10587 | { | ||
10588 | return deflate (); | ||
10589 | ; | ||
10590 | return 0; | ||
10591 | } | ||
10592 | _ACEOF | ||
10593 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10594 | if { (ac_try="$ac_link" | ||
10595 | case "(($ac_try" in | ||
10596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10597 | *) ac_try_echo=$ac_try;; | ||
10598 | esac | ||
10599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10600 | (eval "$ac_link") 2>conftest.er1 | ||
10601 | ac_status=$? | ||
10602 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10603 | rm -f conftest.er1 | ||
10604 | cat conftest.err >&5 | ||
10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10606 | (exit $ac_status); } && { | ||
10607 | test -z "$ac_c_werror_flag" || | ||
10608 | test ! -s conftest.err | ||
10609 | } && test -s conftest$ac_exeext && | ||
10610 | $as_test_x conftest$ac_exeext; then | ||
10611 | ac_cv_lib_z_deflate=yes | ||
10612 | else | ||
10613 | echo "$as_me: failed program was:" >&5 | ||
10614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10615 | |||
10616 | ac_cv_lib_z_deflate=no | ||
10617 | fi | ||
10618 | |||
10619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10620 | conftest$ac_exeext conftest.$ac_ext | ||
10621 | LIBS=$ac_check_lib_save_LIBS | ||
10622 | fi | ||
10623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
10624 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
10625 | if test $ac_cv_lib_z_deflate = yes; then | ||
10626 | cat >>confdefs.h <<_ACEOF | ||
10627 | #define HAVE_LIBZ 1 | ||
10628 | _ACEOF | ||
10629 | |||
10630 | LIBS="-lz $LIBS" | ||
10631 | |||
10632 | else | ||
10633 | |||
10634 | saved_CPPFLAGS="$CPPFLAGS" | ||
10635 | saved_LDFLAGS="$LDFLAGS" | ||
10636 | save_LIBS="$LIBS" | ||
10637 | if test -n "${need_dash_r}"; then | ||
10638 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
10639 | else | ||
10640 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
10641 | fi | ||
10642 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
10643 | LIBS="$LIBS -lz" | ||
10644 | cat >conftest.$ac_ext <<_ACEOF | ||
10645 | /* confdefs.h. */ | ||
10646 | _ACEOF | ||
10647 | cat confdefs.h >>conftest.$ac_ext | ||
10648 | cat >>conftest.$ac_ext <<_ACEOF | ||
10649 | /* end confdefs.h. */ | ||
10650 | |||
10651 | /* Override any GCC internal prototype to avoid an error. | ||
10652 | Use char because int might match the return type of a GCC | ||
10653 | builtin and then its argument prototype would still apply. */ | ||
10654 | #ifdef __cplusplus | ||
10655 | extern "C" | ||
10656 | #endif | ||
10657 | char deflate (); | ||
10658 | int | ||
10659 | main () | ||
10660 | { | ||
10661 | return deflate (); | ||
10662 | ; | ||
10663 | return 0; | ||
10664 | } | ||
10665 | _ACEOF | ||
10666 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10667 | if { (ac_try="$ac_link" | ||
10668 | case "(($ac_try" in | ||
10669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10670 | *) ac_try_echo=$ac_try;; | ||
10671 | esac | ||
10672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10673 | (eval "$ac_link") 2>conftest.er1 | ||
10674 | ac_status=$? | ||
10675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10676 | rm -f conftest.er1 | ||
10677 | cat conftest.err >&5 | ||
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10679 | (exit $ac_status); } && { | ||
10680 | test -z "$ac_c_werror_flag" || | ||
10681 | test ! -s conftest.err | ||
10682 | } && test -s conftest$ac_exeext && | ||
10683 | $as_test_x conftest$ac_exeext; then | ||
10684 | cat >>confdefs.h <<\_ACEOF | ||
10685 | #define HAVE_LIBZ 1 | ||
10686 | _ACEOF | ||
10687 | |||
10688 | else | ||
10689 | echo "$as_me: failed program was:" >&5 | ||
10690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10691 | |||
10692 | |||
10693 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
10694 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
10695 | { (exit 1); exit 1; }; } | ||
10696 | |||
10697 | |||
10698 | fi | ||
10699 | |||
10700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10701 | conftest$ac_exeext conftest.$ac_ext | ||
10702 | |||
10703 | |||
10704 | fi | ||
10705 | |||
10706 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10707 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10708 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10709 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10711 | fi | ||
10712 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10713 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10714 | else | ||
10715 | # Is the header compilable? | ||
10716 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
10717 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
10718 | cat >conftest.$ac_ext <<_ACEOF | ||
10719 | /* confdefs.h. */ | ||
10720 | _ACEOF | ||
10721 | cat confdefs.h >>conftest.$ac_ext | ||
10722 | cat >>conftest.$ac_ext <<_ACEOF | ||
10723 | /* end confdefs.h. */ | ||
10724 | $ac_includes_default | ||
10725 | #include <zlib.h> | ||
10726 | _ACEOF | ||
10727 | rm -f conftest.$ac_objext | ||
10728 | if { (ac_try="$ac_compile" | ||
10729 | case "(($ac_try" in | ||
10730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10731 | *) ac_try_echo=$ac_try;; | ||
10732 | esac | ||
10733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10734 | (eval "$ac_compile") 2>conftest.er1 | ||
10735 | ac_status=$? | ||
10736 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10737 | rm -f conftest.er1 | ||
10738 | cat conftest.err >&5 | ||
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10740 | (exit $ac_status); } && { | ||
10741 | test -z "$ac_c_werror_flag" || | ||
10742 | test ! -s conftest.err | ||
10743 | } && test -s conftest.$ac_objext; then | ||
10744 | ac_header_compiler=yes | ||
10745 | else | ||
10746 | echo "$as_me: failed program was:" >&5 | ||
10747 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10748 | |||
10749 | ac_header_compiler=no | ||
10750 | fi | ||
10751 | |||
10752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10753 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10754 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10755 | |||
10756 | # Is the header present? | ||
10757 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
10758 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
10759 | cat >conftest.$ac_ext <<_ACEOF | ||
10760 | /* confdefs.h. */ | ||
10761 | _ACEOF | ||
10762 | cat confdefs.h >>conftest.$ac_ext | ||
10763 | cat >>conftest.$ac_ext <<_ACEOF | ||
10764 | /* end confdefs.h. */ | ||
10765 | #include <zlib.h> | ||
10766 | _ACEOF | ||
10767 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10768 | case "(($ac_try" in | ||
10769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10770 | *) ac_try_echo=$ac_try;; | ||
10771 | esac | ||
10772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10773 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10774 | ac_status=$? | ||
10775 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10776 | rm -f conftest.er1 | ||
10777 | cat conftest.err >&5 | ||
10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10779 | (exit $ac_status); } >/dev/null && { | ||
10780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10781 | test ! -s conftest.err | ||
10782 | }; then | ||
10783 | ac_header_preproc=yes | ||
10784 | else | ||
10785 | echo "$as_me: failed program was:" >&5 | ||
10786 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10787 | |||
10788 | ac_header_preproc=no | ||
10789 | fi | ||
10790 | |||
10791 | rm -f conftest.err conftest.$ac_ext | ||
10792 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10793 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10794 | |||
10795 | # So? What about this header? | ||
10796 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10797 | yes:no: ) | ||
10798 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10799 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10800 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
10801 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
10802 | ac_header_preproc=yes | ||
10803 | ;; | ||
10804 | no:yes:* ) | ||
10805 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
10806 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
10807 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
10808 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
10809 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
10810 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
10811 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10812 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10813 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
10814 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
10815 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
10816 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
10817 | ( cat <<\_ASBOX | ||
10818 | ## ------------------------------------------- ## | ||
10819 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10820 | ## ------------------------------------------- ## | ||
10821 | _ASBOX | ||
10822 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10823 | ;; | ||
10824 | esac | ||
10825 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10826 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10827 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10829 | else | ||
10830 | ac_cv_header_zlib_h=$ac_header_preproc | ||
10831 | fi | ||
10832 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10833 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10834 | |||
10835 | fi | ||
10836 | if test $ac_cv_header_zlib_h = yes; then | ||
10837 | : | ||
10838 | else | ||
10839 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
10840 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
10841 | { (exit 1); exit 1; }; } | ||
10842 | fi | ||
10843 | |||
10844 | |||
10845 | |||
10846 | |||
10847 | # Check whether --with-zlib-version-check was given. | ||
10848 | if test "${with_zlib_version_check+set}" = set; then | ||
10849 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
10850 | zlib_check_nonfatal=1 | ||
10851 | fi | ||
10852 | |||
10853 | |||
10854 | fi | ||
10855 | |||
10856 | |||
10857 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
10858 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
10859 | if test "$cross_compiling" = yes; then | ||
10860 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
10861 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
10862 | |||
10863 | else | ||
10864 | cat >conftest.$ac_ext <<_ACEOF | ||
10865 | /* confdefs.h. */ | ||
10866 | _ACEOF | ||
10867 | cat confdefs.h >>conftest.$ac_ext | ||
10868 | cat >>conftest.$ac_ext <<_ACEOF | ||
10869 | /* end confdefs.h. */ | ||
10870 | |||
10871 | #include <stdio.h> | ||
10872 | #include <zlib.h> | ||
10873 | int main() | ||
10874 | { | ||
10875 | int a=0, b=0, c=0, d=0, n, v; | ||
10876 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
10877 | if (n != 3 && n != 4) | ||
10878 | exit(1); | ||
10879 | v = a*1000000 + b*10000 + c*100 + d; | ||
10880 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
10881 | |||
10882 | /* 1.1.4 is OK */ | ||
10883 | if (a == 1 && b == 1 && c >= 4) | ||
10884 | exit(0); | ||
10885 | |||
10886 | /* 1.2.3 and up are OK */ | ||
10887 | if (v >= 1020300) | ||
10888 | exit(0); | ||
10889 | |||
10890 | exit(2); | ||
10891 | } | ||
10892 | |||
10893 | _ACEOF | ||
10894 | rm -f conftest$ac_exeext | ||
10895 | if { (ac_try="$ac_link" | ||
10896 | case "(($ac_try" in | ||
10897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10898 | *) ac_try_echo=$ac_try;; | ||
10899 | esac | ||
10900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10901 | (eval "$ac_link") 2>&5 | ||
10902 | ac_status=$? | ||
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10905 | { (case "(($ac_try" in | ||
10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10907 | *) ac_try_echo=$ac_try;; | ||
10908 | esac | ||
10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10910 | (eval "$ac_try") 2>&5 | ||
10911 | ac_status=$? | ||
10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10913 | (exit $ac_status); }; }; then | ||
10914 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10915 | echo "${ECHO_T}no" >&6; } | ||
10916 | else | ||
10917 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10918 | echo "$as_me: failed program was:" >&5 | ||
10919 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10920 | |||
10921 | ( exit $ac_status ) | ||
10922 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10923 | echo "${ECHO_T}yes" >&6; } | ||
10924 | if test -z "$zlib_check_nonfatal" ; then | ||
10925 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
10926 | Your reported zlib version has known security problems. It's possible your | ||
10927 | vendor has fixed these problems without changing the version number. If you | ||
10928 | are sure this is the case, you can disable the check by running | ||
10929 | \"./configure --without-zlib-version-check\". | ||
10930 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10931 | See http://www.gzip.org/zlib/ for details." >&5 | ||
10932 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
10933 | Your reported zlib version has known security problems. It's possible your | ||
10934 | vendor has fixed these problems without changing the version number. If you | ||
10935 | are sure this is the case, you can disable the check by running | ||
10936 | \"./configure --without-zlib-version-check\". | ||
10937 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10938 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
10939 | { (exit 1); exit 1; }; } | ||
10940 | else | ||
10941 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
10942 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
10943 | fi | ||
10944 | |||
10945 | fi | ||
10946 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10947 | fi | ||
10948 | |||
10949 | |||
10950 | |||
10951 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
10952 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
10953 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
10954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10955 | else | ||
10956 | cat >conftest.$ac_ext <<_ACEOF | ||
10957 | /* confdefs.h. */ | ||
10958 | _ACEOF | ||
10959 | cat confdefs.h >>conftest.$ac_ext | ||
10960 | cat >>conftest.$ac_ext <<_ACEOF | ||
10961 | /* end confdefs.h. */ | ||
10962 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
10963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10964 | #define strcasecmp innocuous_strcasecmp | ||
10965 | |||
10966 | /* System header to define __stub macros and hopefully few prototypes, | ||
10967 | which can conflict with char strcasecmp (); below. | ||
10968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10969 | <limits.h> exists even on freestanding compilers. */ | ||
10970 | |||
10971 | #ifdef __STDC__ | ||
10972 | # include <limits.h> | ||
10973 | #else | ||
10974 | # include <assert.h> | ||
10975 | #endif | ||
10976 | |||
10977 | #undef strcasecmp | ||
10978 | |||
10979 | /* Override any GCC internal prototype to avoid an error. | ||
10980 | Use char because int might match the return type of a GCC | ||
10981 | builtin and then its argument prototype would still apply. */ | ||
10982 | #ifdef __cplusplus | ||
10983 | extern "C" | ||
10984 | #endif | ||
10985 | char strcasecmp (); | ||
10986 | /* The GNU C library defines this for functions which it implements | ||
10987 | to always fail with ENOSYS. Some functions are actually named | ||
10988 | something starting with __ and the normal name is an alias. */ | ||
10989 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
10990 | choke me | ||
10991 | #endif | ||
10992 | |||
10993 | int | ||
10994 | main () | ||
10995 | { | ||
10996 | return strcasecmp (); | ||
10997 | ; | ||
10998 | return 0; | ||
10999 | } | ||
11000 | _ACEOF | ||
11001 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11002 | if { (ac_try="$ac_link" | ||
11003 | case "(($ac_try" in | ||
11004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11005 | *) ac_try_echo=$ac_try;; | ||
11006 | esac | ||
11007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11008 | (eval "$ac_link") 2>conftest.er1 | ||
11009 | ac_status=$? | ||
11010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11011 | rm -f conftest.er1 | ||
11012 | cat conftest.err >&5 | ||
11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11014 | (exit $ac_status); } && { | ||
11015 | test -z "$ac_c_werror_flag" || | ||
11016 | test ! -s conftest.err | ||
11017 | } && test -s conftest$ac_exeext && | ||
11018 | $as_test_x conftest$ac_exeext; then | ||
11019 | ac_cv_func_strcasecmp=yes | ||
11020 | else | ||
11021 | echo "$as_me: failed program was:" >&5 | ||
11022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11023 | |||
11024 | ac_cv_func_strcasecmp=no | ||
11025 | fi | ||
11026 | |||
11027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11028 | conftest$ac_exeext conftest.$ac_ext | ||
11029 | fi | ||
11030 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
11031 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
11032 | if test $ac_cv_func_strcasecmp = yes; then | ||
11033 | : | ||
11034 | else | ||
11035 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
11036 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
11037 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11039 | else | ||
11040 | ac_check_lib_save_LIBS=$LIBS | ||
11041 | LIBS="-lresolv $LIBS" | ||
11042 | cat >conftest.$ac_ext <<_ACEOF | ||
11043 | /* confdefs.h. */ | ||
11044 | _ACEOF | ||
11045 | cat confdefs.h >>conftest.$ac_ext | ||
11046 | cat >>conftest.$ac_ext <<_ACEOF | ||
11047 | /* end confdefs.h. */ | ||
11048 | |||
11049 | /* Override any GCC internal prototype to avoid an error. | ||
11050 | Use char because int might match the return type of a GCC | ||
11051 | builtin and then its argument prototype would still apply. */ | ||
11052 | #ifdef __cplusplus | ||
11053 | extern "C" | ||
11054 | #endif | ||
11055 | char strcasecmp (); | ||
11056 | int | ||
11057 | main () | ||
11058 | { | ||
11059 | return strcasecmp (); | ||
11060 | ; | ||
11061 | return 0; | ||
11062 | } | ||
11063 | _ACEOF | ||
11064 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11065 | if { (ac_try="$ac_link" | ||
11066 | case "(($ac_try" in | ||
11067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11068 | *) ac_try_echo=$ac_try;; | ||
11069 | esac | ||
11070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11071 | (eval "$ac_link") 2>conftest.er1 | ||
11072 | ac_status=$? | ||
11073 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11074 | rm -f conftest.er1 | ||
11075 | cat conftest.err >&5 | ||
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11077 | (exit $ac_status); } && { | ||
11078 | test -z "$ac_c_werror_flag" || | ||
11079 | test ! -s conftest.err | ||
11080 | } && test -s conftest$ac_exeext && | ||
11081 | $as_test_x conftest$ac_exeext; then | ||
11082 | ac_cv_lib_resolv_strcasecmp=yes | ||
11083 | else | ||
11084 | echo "$as_me: failed program was:" >&5 | ||
11085 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11086 | |||
11087 | ac_cv_lib_resolv_strcasecmp=no | ||
11088 | fi | ||
11089 | |||
11090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11091 | conftest$ac_exeext conftest.$ac_ext | ||
11092 | LIBS=$ac_check_lib_save_LIBS | ||
11093 | fi | ||
11094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
11095 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
11096 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
11097 | LIBS="$LIBS -lresolv" | ||
11098 | fi | ||
11099 | |||
11100 | |||
11101 | fi | ||
11102 | |||
11103 | |||
11104 | for ac_func in utimes | ||
11105 | do | ||
11106 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11107 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11108 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11109 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11111 | else | ||
11112 | cat >conftest.$ac_ext <<_ACEOF | ||
11113 | /* confdefs.h. */ | ||
11114 | _ACEOF | ||
11115 | cat confdefs.h >>conftest.$ac_ext | ||
11116 | cat >>conftest.$ac_ext <<_ACEOF | ||
11117 | /* end confdefs.h. */ | ||
11118 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11120 | #define $ac_func innocuous_$ac_func | ||
11121 | |||
11122 | /* System header to define __stub macros and hopefully few prototypes, | ||
11123 | which can conflict with char $ac_func (); below. | ||
11124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11125 | <limits.h> exists even on freestanding compilers. */ | ||
11126 | |||
11127 | #ifdef __STDC__ | ||
11128 | # include <limits.h> | ||
11129 | #else | ||
11130 | # include <assert.h> | ||
11131 | #endif | ||
11132 | |||
11133 | #undef $ac_func | ||
11134 | |||
11135 | /* Override any GCC internal prototype to avoid an error. | ||
11136 | Use char because int might match the return type of a GCC | ||
11137 | builtin and then its argument prototype would still apply. */ | ||
11138 | #ifdef __cplusplus | ||
11139 | extern "C" | ||
11140 | #endif | ||
11141 | char $ac_func (); | ||
11142 | /* The GNU C library defines this for functions which it implements | ||
11143 | to always fail with ENOSYS. Some functions are actually named | ||
11144 | something starting with __ and the normal name is an alias. */ | ||
11145 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11146 | choke me | ||
11147 | #endif | ||
11148 | |||
11149 | int | ||
11150 | main () | ||
11151 | { | ||
11152 | return $ac_func (); | ||
11153 | ; | ||
11154 | return 0; | ||
11155 | } | ||
11156 | _ACEOF | ||
11157 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11158 | if { (ac_try="$ac_link" | ||
11159 | case "(($ac_try" in | ||
11160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11161 | *) ac_try_echo=$ac_try;; | ||
11162 | esac | ||
11163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11164 | (eval "$ac_link") 2>conftest.er1 | ||
11165 | ac_status=$? | ||
11166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11167 | rm -f conftest.er1 | ||
11168 | cat conftest.err >&5 | ||
11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11170 | (exit $ac_status); } && { | ||
11171 | test -z "$ac_c_werror_flag" || | ||
11172 | test ! -s conftest.err | ||
11173 | } && test -s conftest$ac_exeext && | ||
11174 | $as_test_x conftest$ac_exeext; then | ||
11175 | eval "$as_ac_var=yes" | ||
11176 | else | ||
11177 | echo "$as_me: failed program was:" >&5 | ||
11178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11179 | |||
11180 | eval "$as_ac_var=no" | ||
11181 | fi | ||
11182 | |||
11183 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11184 | conftest$ac_exeext conftest.$ac_ext | ||
11185 | fi | ||
11186 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11187 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11188 | echo "${ECHO_T}$ac_res" >&6; } | ||
11189 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11190 | cat >>confdefs.h <<_ACEOF | ||
11191 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11192 | _ACEOF | ||
11193 | |||
11194 | else | ||
11195 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
11196 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
11197 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
11198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11199 | else | ||
11200 | ac_check_lib_save_LIBS=$LIBS | ||
11201 | LIBS="-lc89 $LIBS" | ||
11202 | cat >conftest.$ac_ext <<_ACEOF | ||
11203 | /* confdefs.h. */ | ||
11204 | _ACEOF | ||
11205 | cat confdefs.h >>conftest.$ac_ext | ||
11206 | cat >>conftest.$ac_ext <<_ACEOF | ||
11207 | /* end confdefs.h. */ | ||
11208 | |||
11209 | /* Override any GCC internal prototype to avoid an error. | ||
11210 | Use char because int might match the return type of a GCC | ||
11211 | builtin and then its argument prototype would still apply. */ | ||
11212 | #ifdef __cplusplus | ||
11213 | extern "C" | ||
11214 | #endif | ||
11215 | char utimes (); | ||
11216 | int | ||
11217 | main () | ||
11218 | { | ||
11219 | return utimes (); | ||
11220 | ; | ||
11221 | return 0; | ||
11222 | } | ||
11223 | _ACEOF | ||
11224 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11225 | if { (ac_try="$ac_link" | ||
11226 | case "(($ac_try" in | ||
11227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11228 | *) ac_try_echo=$ac_try;; | ||
11229 | esac | ||
11230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11231 | (eval "$ac_link") 2>conftest.er1 | ||
11232 | ac_status=$? | ||
11233 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11234 | rm -f conftest.er1 | ||
11235 | cat conftest.err >&5 | ||
11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11237 | (exit $ac_status); } && { | ||
11238 | test -z "$ac_c_werror_flag" || | ||
11239 | test ! -s conftest.err | ||
11240 | } && test -s conftest$ac_exeext && | ||
11241 | $as_test_x conftest$ac_exeext; then | ||
11242 | ac_cv_lib_c89_utimes=yes | ||
11243 | else | ||
11244 | echo "$as_me: failed program was:" >&5 | ||
11245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11246 | |||
11247 | ac_cv_lib_c89_utimes=no | ||
11248 | fi | ||
11249 | |||
11250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11251 | conftest$ac_exeext conftest.$ac_ext | ||
11252 | LIBS=$ac_check_lib_save_LIBS | ||
11253 | fi | ||
11254 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11255 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
11256 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11257 | cat >>confdefs.h <<\_ACEOF | ||
11258 | #define HAVE_UTIMES 1 | ||
11259 | _ACEOF | ||
11260 | |||
11261 | LIBS="$LIBS -lc89" | ||
11262 | fi | ||
11263 | |||
11264 | |||
11265 | fi | ||
11266 | done | ||
11267 | |||
11268 | |||
11269 | |||
11270 | for ac_header in libutil.h | ||
11271 | do | ||
11272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11278 | fi | ||
11279 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11281 | echo "${ECHO_T}$ac_res" >&6; } | ||
11282 | else | ||
11283 | # Is the header compilable? | ||
11284 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11286 | cat >conftest.$ac_ext <<_ACEOF | ||
11287 | /* confdefs.h. */ | ||
11288 | _ACEOF | ||
11289 | cat confdefs.h >>conftest.$ac_ext | ||
11290 | cat >>conftest.$ac_ext <<_ACEOF | ||
11291 | /* end confdefs.h. */ | ||
11292 | $ac_includes_default | ||
11293 | #include <$ac_header> | ||
11294 | _ACEOF | ||
11295 | rm -f conftest.$ac_objext | ||
11296 | if { (ac_try="$ac_compile" | ||
11297 | case "(($ac_try" in | ||
11298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11299 | *) ac_try_echo=$ac_try;; | ||
11300 | esac | ||
11301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11302 | (eval "$ac_compile") 2>conftest.er1 | ||
11303 | ac_status=$? | ||
11304 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11305 | rm -f conftest.er1 | ||
11306 | cat conftest.err >&5 | ||
11307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11308 | (exit $ac_status); } && { | ||
11309 | test -z "$ac_c_werror_flag" || | ||
11310 | test ! -s conftest.err | ||
11311 | } && test -s conftest.$ac_objext; then | ||
11312 | ac_header_compiler=yes | ||
11313 | else | ||
11314 | echo "$as_me: failed program was:" >&5 | ||
11315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11316 | |||
11317 | ac_header_compiler=no | ||
11318 | fi | ||
11319 | |||
11320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11322 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11323 | |||
11324 | # Is the header present? | ||
11325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11327 | cat >conftest.$ac_ext <<_ACEOF | ||
11328 | /* confdefs.h. */ | ||
11329 | _ACEOF | ||
11330 | cat confdefs.h >>conftest.$ac_ext | ||
11331 | cat >>conftest.$ac_ext <<_ACEOF | ||
11332 | /* end confdefs.h. */ | ||
11333 | #include <$ac_header> | ||
11334 | _ACEOF | ||
11335 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11336 | case "(($ac_try" in | ||
11337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11338 | *) ac_try_echo=$ac_try;; | ||
11339 | esac | ||
11340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11342 | ac_status=$? | ||
11343 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11344 | rm -f conftest.er1 | ||
11345 | cat conftest.err >&5 | ||
11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11347 | (exit $ac_status); } >/dev/null && { | ||
11348 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11349 | test ! -s conftest.err | ||
11350 | }; then | ||
11351 | ac_header_preproc=yes | ||
11352 | else | ||
11353 | echo "$as_me: failed program was:" >&5 | ||
11354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11355 | |||
11356 | ac_header_preproc=no | ||
11357 | fi | ||
11358 | |||
11359 | rm -f conftest.err conftest.$ac_ext | ||
11360 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11361 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11362 | |||
11363 | # So? What about this header? | ||
11364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11365 | yes:no: ) | ||
11366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11369 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11370 | ac_header_preproc=yes | ||
11371 | ;; | ||
11372 | no:yes:* ) | ||
11373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11384 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11385 | ( cat <<\_ASBOX | ||
11386 | ## ------------------------------------------- ## | ||
11387 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11388 | ## ------------------------------------------- ## | ||
11389 | _ASBOX | ||
11390 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11391 | ;; | ||
11392 | esac | ||
11393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11397 | else | ||
11398 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11399 | fi | ||
11400 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11401 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11402 | echo "${ECHO_T}$ac_res" >&6; } | ||
11403 | |||
11404 | fi | ||
11405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11406 | cat >>confdefs.h <<_ACEOF | ||
11407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11408 | _ACEOF | ||
11409 | |||
11410 | fi | ||
11411 | |||
11412 | done | ||
11413 | |||
11414 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
11415 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
11416 | if test "${ac_cv_search_login+set}" = set; then | ||
11417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11418 | else | ||
11419 | ac_func_search_save_LIBS=$LIBS | ||
11420 | cat >conftest.$ac_ext <<_ACEOF | ||
11421 | /* confdefs.h. */ | ||
11422 | _ACEOF | ||
11423 | cat confdefs.h >>conftest.$ac_ext | ||
11424 | cat >>conftest.$ac_ext <<_ACEOF | ||
11425 | /* end confdefs.h. */ | ||
11426 | |||
11427 | /* Override any GCC internal prototype to avoid an error. | ||
11428 | Use char because int might match the return type of a GCC | ||
11429 | builtin and then its argument prototype would still apply. */ | ||
11430 | #ifdef __cplusplus | ||
11431 | extern "C" | ||
11432 | #endif | ||
11433 | char login (); | ||
11434 | int | ||
11435 | main () | ||
11436 | { | ||
11437 | return login (); | ||
11438 | ; | ||
11439 | return 0; | ||
11440 | } | ||
11441 | _ACEOF | ||
11442 | for ac_lib in '' util bsd; do | ||
11443 | if test -z "$ac_lib"; then | ||
11444 | ac_res="none required" | ||
11445 | else | ||
11446 | ac_res=-l$ac_lib | ||
11447 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11448 | fi | ||
11449 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11450 | if { (ac_try="$ac_link" | ||
11451 | case "(($ac_try" in | ||
11452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11453 | *) ac_try_echo=$ac_try;; | ||
11454 | esac | ||
11455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11456 | (eval "$ac_link") 2>conftest.er1 | ||
11457 | ac_status=$? | ||
11458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11459 | rm -f conftest.er1 | ||
11460 | cat conftest.err >&5 | ||
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11462 | (exit $ac_status); } && { | ||
11463 | test -z "$ac_c_werror_flag" || | ||
11464 | test ! -s conftest.err | ||
11465 | } && test -s conftest$ac_exeext && | ||
11466 | $as_test_x conftest$ac_exeext; then | ||
11467 | ac_cv_search_login=$ac_res | ||
11468 | else | ||
11469 | echo "$as_me: failed program was:" >&5 | ||
11470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11471 | |||
11472 | |||
11473 | fi | ||
11474 | |||
11475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11476 | conftest$ac_exeext | ||
11477 | if test "${ac_cv_search_login+set}" = set; then | ||
11478 | break | ||
11479 | fi | ||
11480 | done | ||
11481 | if test "${ac_cv_search_login+set}" = set; then | ||
11482 | : | ||
11483 | else | ||
11484 | ac_cv_search_login=no | ||
11485 | fi | ||
11486 | rm conftest.$ac_ext | ||
11487 | LIBS=$ac_func_search_save_LIBS | ||
11488 | fi | ||
11489 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
11490 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
11491 | ac_res=$ac_cv_search_login | ||
11492 | if test "$ac_res" != no; then | ||
11493 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11494 | |||
11495 | cat >>confdefs.h <<\_ACEOF | ||
11496 | #define HAVE_LOGIN 1 | ||
11497 | _ACEOF | ||
11498 | |||
11499 | fi | ||
11500 | |||
11501 | |||
11502 | |||
11503 | |||
11504 | |||
11505 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
11506 | do | ||
11507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11508 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11510 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11512 | else | ||
11513 | cat >conftest.$ac_ext <<_ACEOF | ||
11514 | /* confdefs.h. */ | ||
11515 | _ACEOF | ||
11516 | cat confdefs.h >>conftest.$ac_ext | ||
11517 | cat >>conftest.$ac_ext <<_ACEOF | ||
11518 | /* end confdefs.h. */ | ||
11519 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11521 | #define $ac_func innocuous_$ac_func | ||
11522 | |||
11523 | /* System header to define __stub macros and hopefully few prototypes, | ||
11524 | which can conflict with char $ac_func (); below. | ||
11525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11526 | <limits.h> exists even on freestanding compilers. */ | ||
11527 | |||
11528 | #ifdef __STDC__ | ||
11529 | # include <limits.h> | ||
11530 | #else | ||
11531 | # include <assert.h> | ||
11532 | #endif | ||
11533 | |||
11534 | #undef $ac_func | ||
11535 | |||
11536 | /* Override any GCC internal prototype to avoid an error. | ||
11537 | Use char because int might match the return type of a GCC | ||
11538 | builtin and then its argument prototype would still apply. */ | ||
11539 | #ifdef __cplusplus | ||
11540 | extern "C" | ||
11541 | #endif | ||
11542 | char $ac_func (); | ||
11543 | /* The GNU C library defines this for functions which it implements | ||
11544 | to always fail with ENOSYS. Some functions are actually named | ||
11545 | something starting with __ and the normal name is an alias. */ | ||
11546 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11547 | choke me | ||
11548 | #endif | ||
11549 | |||
11550 | int | ||
11551 | main () | ||
11552 | { | ||
11553 | return $ac_func (); | ||
11554 | ; | ||
11555 | return 0; | ||
11556 | } | ||
11557 | _ACEOF | ||
11558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11559 | if { (ac_try="$ac_link" | ||
11560 | case "(($ac_try" in | ||
11561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11562 | *) ac_try_echo=$ac_try;; | ||
11563 | esac | ||
11564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11565 | (eval "$ac_link") 2>conftest.er1 | ||
11566 | ac_status=$? | ||
11567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11568 | rm -f conftest.er1 | ||
11569 | cat conftest.err >&5 | ||
11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11571 | (exit $ac_status); } && { | ||
11572 | test -z "$ac_c_werror_flag" || | ||
11573 | test ! -s conftest.err | ||
11574 | } && test -s conftest$ac_exeext && | ||
11575 | $as_test_x conftest$ac_exeext; then | ||
11576 | eval "$as_ac_var=yes" | ||
11577 | else | ||
11578 | echo "$as_me: failed program was:" >&5 | ||
11579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11580 | |||
11581 | eval "$as_ac_var=no" | ||
11582 | fi | ||
11583 | |||
11584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11585 | conftest$ac_exeext conftest.$ac_ext | ||
11586 | fi | ||
11587 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11588 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11589 | echo "${ECHO_T}$ac_res" >&6; } | ||
11590 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11591 | cat >>confdefs.h <<_ACEOF | ||
11592 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11593 | _ACEOF | ||
11594 | |||
11595 | fi | ||
11596 | done | ||
11597 | |||
11598 | |||
11599 | |||
11600 | for ac_func in strftime | ||
11601 | do | ||
11602 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11603 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11604 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11605 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11607 | else | ||
11608 | cat >conftest.$ac_ext <<_ACEOF | ||
11609 | /* confdefs.h. */ | ||
11610 | _ACEOF | ||
11611 | cat confdefs.h >>conftest.$ac_ext | ||
11612 | cat >>conftest.$ac_ext <<_ACEOF | ||
11613 | /* end confdefs.h. */ | ||
11614 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11615 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11616 | #define $ac_func innocuous_$ac_func | ||
11617 | |||
11618 | /* System header to define __stub macros and hopefully few prototypes, | ||
11619 | which can conflict with char $ac_func (); below. | ||
11620 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11621 | <limits.h> exists even on freestanding compilers. */ | ||
11622 | |||
11623 | #ifdef __STDC__ | ||
11624 | # include <limits.h> | ||
11625 | #else | ||
11626 | # include <assert.h> | ||
11627 | #endif | ||
11628 | |||
11629 | #undef $ac_func | ||
11630 | |||
11631 | /* Override any GCC internal prototype to avoid an error. | ||
11632 | Use char because int might match the return type of a GCC | ||
11633 | builtin and then its argument prototype would still apply. */ | ||
11634 | #ifdef __cplusplus | ||
11635 | extern "C" | ||
11636 | #endif | ||
11637 | char $ac_func (); | ||
11638 | /* The GNU C library defines this for functions which it implements | ||
11639 | to always fail with ENOSYS. Some functions are actually named | ||
11640 | something starting with __ and the normal name is an alias. */ | ||
11641 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11642 | choke me | ||
11643 | #endif | ||
11644 | |||
11645 | int | ||
11646 | main () | ||
11647 | { | ||
11648 | return $ac_func (); | ||
11649 | ; | ||
11650 | return 0; | ||
11651 | } | ||
11652 | _ACEOF | ||
11653 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11654 | if { (ac_try="$ac_link" | ||
11655 | case "(($ac_try" in | ||
11656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11657 | *) ac_try_echo=$ac_try;; | ||
11658 | esac | ||
11659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11660 | (eval "$ac_link") 2>conftest.er1 | ||
11661 | ac_status=$? | ||
11662 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11663 | rm -f conftest.er1 | ||
11664 | cat conftest.err >&5 | ||
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11666 | (exit $ac_status); } && { | ||
11667 | test -z "$ac_c_werror_flag" || | ||
11668 | test ! -s conftest.err | ||
11669 | } && test -s conftest$ac_exeext && | ||
11670 | $as_test_x conftest$ac_exeext; then | ||
11671 | eval "$as_ac_var=yes" | ||
11672 | else | ||
11673 | echo "$as_me: failed program was:" >&5 | ||
11674 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11675 | |||
11676 | eval "$as_ac_var=no" | ||
11677 | fi | ||
11678 | |||
11679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11680 | conftest$ac_exeext conftest.$ac_ext | ||
11681 | fi | ||
11682 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11683 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11684 | echo "${ECHO_T}$ac_res" >&6; } | ||
11685 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11686 | cat >>confdefs.h <<_ACEOF | ||
11687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11688 | _ACEOF | ||
11689 | |||
11690 | else | ||
11691 | # strftime is in -lintl on SCO UNIX. | ||
11692 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
11693 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
11694 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
11695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11696 | else | ||
11697 | ac_check_lib_save_LIBS=$LIBS | ||
11698 | LIBS="-lintl $LIBS" | ||
11699 | cat >conftest.$ac_ext <<_ACEOF | ||
11700 | /* confdefs.h. */ | ||
11701 | _ACEOF | ||
11702 | cat confdefs.h >>conftest.$ac_ext | ||
11703 | cat >>conftest.$ac_ext <<_ACEOF | ||
11704 | /* end confdefs.h. */ | ||
11705 | |||
11706 | /* Override any GCC internal prototype to avoid an error. | ||
11707 | Use char because int might match the return type of a GCC | ||
11708 | builtin and then its argument prototype would still apply. */ | ||
11709 | #ifdef __cplusplus | ||
11710 | extern "C" | ||
11711 | #endif | ||
11712 | char strftime (); | ||
11713 | int | ||
11714 | main () | ||
11715 | { | ||
11716 | return strftime (); | ||
11717 | ; | ||
11718 | return 0; | ||
11719 | } | ||
11720 | _ACEOF | ||
11721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11722 | if { (ac_try="$ac_link" | ||
11723 | case "(($ac_try" in | ||
11724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11725 | *) ac_try_echo=$ac_try;; | ||
11726 | esac | ||
11727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11728 | (eval "$ac_link") 2>conftest.er1 | ||
11729 | ac_status=$? | ||
11730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11731 | rm -f conftest.er1 | ||
11732 | cat conftest.err >&5 | ||
11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11734 | (exit $ac_status); } && { | ||
11735 | test -z "$ac_c_werror_flag" || | ||
11736 | test ! -s conftest.err | ||
11737 | } && test -s conftest$ac_exeext && | ||
11738 | $as_test_x conftest$ac_exeext; then | ||
11739 | ac_cv_lib_intl_strftime=yes | ||
11740 | else | ||
11741 | echo "$as_me: failed program was:" >&5 | ||
11742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11743 | |||
11744 | ac_cv_lib_intl_strftime=no | ||
11745 | fi | ||
11746 | |||
11747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11748 | conftest$ac_exeext conftest.$ac_ext | ||
11749 | LIBS=$ac_check_lib_save_LIBS | ||
11750 | fi | ||
11751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
11752 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
11753 | if test $ac_cv_lib_intl_strftime = yes; then | ||
11754 | cat >>confdefs.h <<\_ACEOF | ||
11755 | #define HAVE_STRFTIME 1 | ||
11756 | _ACEOF | ||
11757 | |||
11758 | LIBS="-lintl $LIBS" | ||
11759 | fi | ||
11760 | |||
11761 | fi | ||
11762 | done | ||
11763 | |||
11764 | |||
11765 | # Check for ALTDIRFUNC glob() extension | ||
11766 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
11767 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
11768 | cat >conftest.$ac_ext <<_ACEOF | ||
11769 | /* confdefs.h. */ | ||
11770 | _ACEOF | ||
11771 | cat confdefs.h >>conftest.$ac_ext | ||
11772 | cat >>conftest.$ac_ext <<_ACEOF | ||
11773 | /* end confdefs.h. */ | ||
11774 | |||
11775 | #include <glob.h> | ||
11776 | #ifdef GLOB_ALTDIRFUNC | ||
11777 | FOUNDIT | ||
11778 | #endif | ||
11779 | |||
11780 | _ACEOF | ||
11781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11782 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
11783 | |||
11784 | |||
11785 | cat >>confdefs.h <<\_ACEOF | ||
11786 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
11787 | _ACEOF | ||
11788 | |||
11789 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11790 | echo "${ECHO_T}yes" >&6; } | ||
11791 | |||
11792 | else | ||
11793 | |||
11794 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11795 | echo "${ECHO_T}no" >&6; } | ||
11796 | |||
11797 | |||
11798 | fi | ||
11799 | rm -f conftest* | ||
11800 | |||
11801 | |||
11802 | # Check for g.gl_matchc glob() extension | ||
11803 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
11804 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
11805 | cat >conftest.$ac_ext <<_ACEOF | ||
11806 | /* confdefs.h. */ | ||
11807 | _ACEOF | ||
11808 | cat confdefs.h >>conftest.$ac_ext | ||
11809 | cat >>conftest.$ac_ext <<_ACEOF | ||
11810 | /* end confdefs.h. */ | ||
11811 | #include <glob.h> | ||
11812 | int | ||
11813 | main () | ||
11814 | { | ||
11815 | glob_t g; g.gl_matchc = 1; | ||
11816 | ; | ||
11817 | return 0; | ||
11818 | } | ||
11819 | _ACEOF | ||
11820 | rm -f conftest.$ac_objext | ||
11821 | if { (ac_try="$ac_compile" | ||
11822 | case "(($ac_try" in | ||
11823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11824 | *) ac_try_echo=$ac_try;; | ||
11825 | esac | ||
11826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11827 | (eval "$ac_compile") 2>conftest.er1 | ||
11828 | ac_status=$? | ||
11829 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11830 | rm -f conftest.er1 | ||
11831 | cat conftest.err >&5 | ||
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11833 | (exit $ac_status); } && { | ||
11834 | test -z "$ac_c_werror_flag" || | ||
11835 | test ! -s conftest.err | ||
11836 | } && test -s conftest.$ac_objext; then | ||
11837 | |||
11838 | |||
11839 | cat >>confdefs.h <<\_ACEOF | ||
11840 | #define GLOB_HAS_GL_MATCHC 1 | ||
11841 | _ACEOF | ||
11842 | |||
11843 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11844 | echo "${ECHO_T}yes" >&6; } | ||
11845 | |||
11846 | else | ||
11847 | echo "$as_me: failed program was:" >&5 | ||
11848 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11849 | |||
11850 | |||
11851 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11852 | echo "${ECHO_T}no" >&6; } | ||
11853 | |||
11854 | |||
11855 | fi | ||
11856 | |||
11857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11858 | |||
11859 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
11860 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
11861 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
11862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11863 | else | ||
11864 | cat >conftest.$ac_ext <<_ACEOF | ||
11865 | /* confdefs.h. */ | ||
11866 | _ACEOF | ||
11867 | cat confdefs.h >>conftest.$ac_ext | ||
11868 | cat >>conftest.$ac_ext <<_ACEOF | ||
11869 | /* end confdefs.h. */ | ||
11870 | #include <glob.h> | ||
11871 | |||
11872 | int | ||
11873 | main () | ||
11874 | { | ||
11875 | #ifndef GLOB_NOMATCH | ||
11876 | (void) GLOB_NOMATCH; | ||
11877 | #endif | ||
11878 | |||
11879 | ; | ||
11880 | return 0; | ||
11881 | } | ||
11882 | _ACEOF | ||
11883 | rm -f conftest.$ac_objext | ||
11884 | if { (ac_try="$ac_compile" | ||
11885 | case "(($ac_try" in | ||
11886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11887 | *) ac_try_echo=$ac_try;; | ||
11888 | esac | ||
11889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11890 | (eval "$ac_compile") 2>conftest.er1 | ||
11891 | ac_status=$? | ||
11892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11893 | rm -f conftest.er1 | ||
11894 | cat conftest.err >&5 | ||
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11896 | (exit $ac_status); } && { | ||
11897 | test -z "$ac_c_werror_flag" || | ||
11898 | test ! -s conftest.err | ||
11899 | } && test -s conftest.$ac_objext; then | ||
11900 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
11901 | else | ||
11902 | echo "$as_me: failed program was:" >&5 | ||
11903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11904 | |||
11905 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
11906 | fi | ||
11907 | |||
11908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11909 | fi | ||
11910 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
11911 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
11912 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
11913 | |||
11914 | cat >>confdefs.h <<_ACEOF | ||
11915 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
11916 | _ACEOF | ||
11917 | |||
11918 | |||
11919 | else | ||
11920 | cat >>confdefs.h <<_ACEOF | ||
11921 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
11922 | _ACEOF | ||
11923 | |||
11924 | |||
11925 | fi | ||
11926 | |||
11927 | |||
11928 | |||
11929 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
11930 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
11931 | if test "$cross_compiling" = yes; then | ||
11932 | |||
11933 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
11934 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
11935 | cat >>confdefs.h <<\_ACEOF | ||
11936 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11937 | _ACEOF | ||
11938 | |||
11939 | |||
11940 | |||
11941 | else | ||
11942 | cat >conftest.$ac_ext <<_ACEOF | ||
11943 | /* confdefs.h. */ | ||
11944 | _ACEOF | ||
11945 | cat confdefs.h >>conftest.$ac_ext | ||
11946 | cat >>conftest.$ac_ext <<_ACEOF | ||
11947 | /* end confdefs.h. */ | ||
11948 | |||
11949 | #include <sys/types.h> | ||
11950 | #include <dirent.h> | ||
11951 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
11952 | |||
11953 | _ACEOF | ||
11954 | rm -f conftest$ac_exeext | ||
11955 | if { (ac_try="$ac_link" | ||
11956 | case "(($ac_try" in | ||
11957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11958 | *) ac_try_echo=$ac_try;; | ||
11959 | esac | ||
11960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11961 | (eval "$ac_link") 2>&5 | ||
11962 | ac_status=$? | ||
11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11965 | { (case "(($ac_try" in | ||
11966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11967 | *) ac_try_echo=$ac_try;; | ||
11968 | esac | ||
11969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11970 | (eval "$ac_try") 2>&5 | ||
11971 | ac_status=$? | ||
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11973 | (exit $ac_status); }; }; then | ||
11974 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11975 | echo "${ECHO_T}yes" >&6; } | ||
11976 | else | ||
11977 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11978 | echo "$as_me: failed program was:" >&5 | ||
11979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11980 | |||
11981 | ( exit $ac_status ) | ||
11982 | |||
11983 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11984 | echo "${ECHO_T}no" >&6; } | ||
11985 | |||
11986 | cat >>confdefs.h <<\_ACEOF | ||
11987 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11988 | _ACEOF | ||
11989 | |||
11990 | |||
11991 | fi | ||
11992 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11993 | fi | ||
11994 | |||
11995 | |||
11996 | |||
11997 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
11998 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
11999 | if test -d "/proc/$$/fd" ; then | ||
12000 | |||
12001 | cat >>confdefs.h <<\_ACEOF | ||
12002 | #define HAVE_PROC_PID 1 | ||
12003 | _ACEOF | ||
12004 | |||
12005 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12006 | echo "${ECHO_T}yes" >&6; } | ||
12007 | else | ||
12008 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12009 | echo "${ECHO_T}no" >&6; } | ||
12010 | fi | ||
12011 | |||
12012 | # Check whether user wants S/Key support | ||
12013 | SKEY_MSG="no" | ||
12014 | |||
12015 | # Check whether --with-skey was given. | ||
12016 | if test "${with_skey+set}" = set; then | ||
12017 | withval=$with_skey; | ||
12018 | if test "x$withval" != "xno" ; then | ||
12019 | |||
12020 | if test "x$withval" != "xyes" ; then | ||
12021 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12022 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
12023 | fi | ||
12024 | |||
12025 | |||
12026 | cat >>confdefs.h <<\_ACEOF | ||
12027 | #define SKEY 1 | ||
12028 | _ACEOF | ||
12029 | |||
12030 | LIBS="-lskey $LIBS" | ||
12031 | SKEY_MSG="yes" | ||
12032 | |||
12033 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
12034 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
12035 | cat >conftest.$ac_ext <<_ACEOF | ||
12036 | /* confdefs.h. */ | ||
12037 | _ACEOF | ||
12038 | cat confdefs.h >>conftest.$ac_ext | ||
12039 | cat >>conftest.$ac_ext <<_ACEOF | ||
12040 | /* end confdefs.h. */ | ||
12041 | |||
12042 | #include <stdio.h> | ||
12043 | #include <skey.h> | ||
12044 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
12045 | |||
12046 | _ACEOF | ||
12047 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12048 | if { (ac_try="$ac_link" | ||
12049 | case "(($ac_try" in | ||
12050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12051 | *) ac_try_echo=$ac_try;; | ||
12052 | esac | ||
12053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12054 | (eval "$ac_link") 2>conftest.er1 | ||
12055 | ac_status=$? | ||
12056 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12057 | rm -f conftest.er1 | ||
12058 | cat conftest.err >&5 | ||
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12060 | (exit $ac_status); } && { | ||
12061 | test -z "$ac_c_werror_flag" || | ||
12062 | test ! -s conftest.err | ||
12063 | } && test -s conftest$ac_exeext && | ||
12064 | $as_test_x conftest$ac_exeext; then | ||
12065 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12066 | echo "${ECHO_T}yes" >&6; } | ||
12067 | else | ||
12068 | echo "$as_me: failed program was:" >&5 | ||
12069 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12070 | |||
12071 | |||
12072 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12073 | echo "${ECHO_T}no" >&6; } | ||
12074 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
12075 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
12076 | { (exit 1); exit 1; }; } | ||
12077 | |||
12078 | fi | ||
12079 | |||
12080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12081 | conftest$ac_exeext conftest.$ac_ext | ||
12082 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
12083 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
12084 | cat >conftest.$ac_ext <<_ACEOF | ||
12085 | /* confdefs.h. */ | ||
12086 | _ACEOF | ||
12087 | cat confdefs.h >>conftest.$ac_ext | ||
12088 | cat >>conftest.$ac_ext <<_ACEOF | ||
12089 | /* end confdefs.h. */ | ||
12090 | #include <stdio.h> | ||
12091 | #include <skey.h> | ||
12092 | int | ||
12093 | main () | ||
12094 | { | ||
12095 | (void)skeychallenge(NULL,"name","",0); | ||
12096 | ; | ||
12097 | return 0; | ||
12098 | } | ||
12099 | _ACEOF | ||
12100 | rm -f conftest.$ac_objext | ||
12101 | if { (ac_try="$ac_compile" | ||
12102 | case "(($ac_try" in | ||
12103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12104 | *) ac_try_echo=$ac_try;; | ||
12105 | esac | ||
12106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12107 | (eval "$ac_compile") 2>conftest.er1 | ||
12108 | ac_status=$? | ||
12109 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12110 | rm -f conftest.er1 | ||
12111 | cat conftest.err >&5 | ||
12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12113 | (exit $ac_status); } && { | ||
12114 | test -z "$ac_c_werror_flag" || | ||
12115 | test ! -s conftest.err | ||
12116 | } && test -s conftest.$ac_objext; then | ||
12117 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12118 | echo "${ECHO_T}yes" >&6; } | ||
12119 | |||
12120 | cat >>confdefs.h <<\_ACEOF | ||
12121 | #define SKEYCHALLENGE_4ARG 1 | ||
12122 | _ACEOF | ||
12123 | |||
12124 | else | ||
12125 | echo "$as_me: failed program was:" >&5 | ||
12126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12127 | |||
12128 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12129 | echo "${ECHO_T}no" >&6; } | ||
12130 | |||
12131 | fi | ||
12132 | |||
12133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12134 | fi | ||
12135 | |||
12136 | |||
12137 | fi | ||
12138 | |||
12139 | |||
12140 | # Check whether user wants TCP wrappers support | ||
12141 | TCPW_MSG="no" | ||
12142 | |||
12143 | # Check whether --with-tcp-wrappers was given. | ||
12144 | if test "${with_tcp_wrappers+set}" = set; then | ||
12145 | withval=$with_tcp_wrappers; | ||
12146 | if test "x$withval" != "xno" ; then | ||
12147 | saved_LIBS="$LIBS" | ||
12148 | saved_LDFLAGS="$LDFLAGS" | ||
12149 | saved_CPPFLAGS="$CPPFLAGS" | ||
12150 | if test -n "${withval}" && \ | ||
12151 | test "x${withval}" != "xyes"; then | ||
12152 | if test -d "${withval}/lib"; then | ||
12153 | if test -n "${need_dash_r}"; then | ||
12154 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12155 | else | ||
12156 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12157 | fi | ||
12158 | else | ||
12159 | if test -n "${need_dash_r}"; then | ||
12160 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12161 | else | ||
12162 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12163 | fi | ||
12164 | fi | ||
12165 | if test -d "${withval}/include"; then | ||
12166 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12167 | else | ||
12168 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12169 | fi | ||
12170 | fi | ||
12171 | LIBS="-lwrap $LIBS" | ||
12172 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
12173 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
12174 | cat >conftest.$ac_ext <<_ACEOF | ||
12175 | /* confdefs.h. */ | ||
12176 | _ACEOF | ||
12177 | cat confdefs.h >>conftest.$ac_ext | ||
12178 | cat >>conftest.$ac_ext <<_ACEOF | ||
12179 | /* end confdefs.h. */ | ||
12180 | |||
12181 | #include <sys/types.h> | ||
12182 | #include <sys/socket.h> | ||
12183 | #include <netinet/in.h> | ||
12184 | #include <tcpd.h> | ||
12185 | int deny_severity = 0, allow_severity = 0; | ||
12186 | |||
12187 | int | ||
12188 | main () | ||
12189 | { | ||
12190 | hosts_access(0); | ||
12191 | ; | ||
12192 | return 0; | ||
12193 | } | ||
12194 | _ACEOF | ||
12195 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12196 | if { (ac_try="$ac_link" | ||
12197 | case "(($ac_try" in | ||
12198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12199 | *) ac_try_echo=$ac_try;; | ||
12200 | esac | ||
12201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12202 | (eval "$ac_link") 2>conftest.er1 | ||
12203 | ac_status=$? | ||
12204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12205 | rm -f conftest.er1 | ||
12206 | cat conftest.err >&5 | ||
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12208 | (exit $ac_status); } && { | ||
12209 | test -z "$ac_c_werror_flag" || | ||
12210 | test ! -s conftest.err | ||
12211 | } && test -s conftest$ac_exeext && | ||
12212 | $as_test_x conftest$ac_exeext; then | ||
12213 | |||
12214 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12215 | echo "${ECHO_T}yes" >&6; } | ||
12216 | |||
12217 | cat >>confdefs.h <<\_ACEOF | ||
12218 | #define LIBWRAP 1 | ||
12219 | _ACEOF | ||
12220 | |||
12221 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12222 | TCPW_MSG="yes" | ||
12223 | |||
12224 | else | ||
12225 | echo "$as_me: failed program was:" >&5 | ||
12226 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12227 | |||
12228 | |||
12229 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12230 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
12231 | { (exit 1); exit 1; }; } | ||
12232 | |||
12233 | |||
12234 | fi | ||
12235 | |||
12236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12237 | conftest$ac_exeext conftest.$ac_ext | ||
12238 | LIBS="$saved_LIBS" | ||
12239 | fi | ||
12240 | |||
12241 | |||
12242 | fi | ||
12243 | |||
12244 | |||
12245 | # Check whether user wants libedit support | ||
12246 | LIBEDIT_MSG="no" | ||
12247 | |||
12248 | # Check whether --with-libedit was given. | ||
12249 | if test "${with_libedit+set}" = set; then | ||
12250 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
12251 | if test "x$withval" != "xyes"; then | ||
12252 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12253 | if test -n "${need_dash_r}"; then | ||
12254 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12255 | else | ||
12256 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12257 | fi | ||
12258 | fi | ||
12259 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
12260 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
12261 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12263 | else | ||
12264 | ac_check_lib_save_LIBS=$LIBS | ||
12265 | LIBS="-ledit -lcurses | ||
12266 | $LIBS" | ||
12267 | cat >conftest.$ac_ext <<_ACEOF | ||
12268 | /* confdefs.h. */ | ||
12269 | _ACEOF | ||
12270 | cat confdefs.h >>conftest.$ac_ext | ||
12271 | cat >>conftest.$ac_ext <<_ACEOF | ||
12272 | /* end confdefs.h. */ | ||
12273 | |||
12274 | /* Override any GCC internal prototype to avoid an error. | ||
12275 | Use char because int might match the return type of a GCC | ||
12276 | builtin and then its argument prototype would still apply. */ | ||
12277 | #ifdef __cplusplus | ||
12278 | extern "C" | ||
12279 | #endif | ||
12280 | char el_init (); | ||
12281 | int | ||
12282 | main () | ||
12283 | { | ||
12284 | return el_init (); | ||
12285 | ; | ||
12286 | return 0; | ||
12287 | } | ||
12288 | _ACEOF | ||
12289 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12290 | if { (ac_try="$ac_link" | ||
12291 | case "(($ac_try" in | ||
12292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12293 | *) ac_try_echo=$ac_try;; | ||
12294 | esac | ||
12295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12296 | (eval "$ac_link") 2>conftest.er1 | ||
12297 | ac_status=$? | ||
12298 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12299 | rm -f conftest.er1 | ||
12300 | cat conftest.err >&5 | ||
12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12302 | (exit $ac_status); } && { | ||
12303 | test -z "$ac_c_werror_flag" || | ||
12304 | test ! -s conftest.err | ||
12305 | } && test -s conftest$ac_exeext && | ||
12306 | $as_test_x conftest$ac_exeext; then | ||
12307 | ac_cv_lib_edit_el_init=yes | ||
12308 | else | ||
12309 | echo "$as_me: failed program was:" >&5 | ||
12310 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12311 | |||
12312 | ac_cv_lib_edit_el_init=no | ||
12313 | fi | ||
12314 | |||
12315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12316 | conftest$ac_exeext conftest.$ac_ext | ||
12317 | LIBS=$ac_check_lib_save_LIBS | ||
12318 | fi | ||
12319 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
12320 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
12321 | if test $ac_cv_lib_edit_el_init = yes; then | ||
12322 | |||
12323 | cat >>confdefs.h <<\_ACEOF | ||
12324 | #define USE_LIBEDIT 1 | ||
12325 | _ACEOF | ||
12326 | |||
12327 | LIBEDIT="-ledit -lcurses" | ||
12328 | LIBEDIT_MSG="yes" | ||
12329 | |||
12330 | |||
12331 | else | ||
12332 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
12333 | echo "$as_me: error: libedit not found" >&2;} | ||
12334 | { (exit 1); exit 1; }; } | ||
12335 | fi | ||
12336 | |||
12337 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
12338 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
12339 | cat >conftest.$ac_ext <<_ACEOF | ||
12340 | /* confdefs.h. */ | ||
12341 | _ACEOF | ||
12342 | cat confdefs.h >>conftest.$ac_ext | ||
12343 | cat >>conftest.$ac_ext <<_ACEOF | ||
12344 | /* end confdefs.h. */ | ||
12345 | |||
12346 | #include <histedit.h> | ||
12347 | int main(void) | ||
12348 | { | ||
12349 | int i = H_SETSIZE; | ||
12350 | el_init("", NULL, NULL, NULL); | ||
12351 | exit(0); | ||
12352 | } | ||
12353 | |||
12354 | _ACEOF | ||
12355 | rm -f conftest.$ac_objext | ||
12356 | if { (ac_try="$ac_compile" | ||
12357 | case "(($ac_try" in | ||
12358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12359 | *) ac_try_echo=$ac_try;; | ||
12360 | esac | ||
12361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12362 | (eval "$ac_compile") 2>conftest.er1 | ||
12363 | ac_status=$? | ||
12364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12365 | rm -f conftest.er1 | ||
12366 | cat conftest.err >&5 | ||
12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12368 | (exit $ac_status); } && { | ||
12369 | test -z "$ac_c_werror_flag" || | ||
12370 | test ! -s conftest.err | ||
12371 | } && test -s conftest.$ac_objext; then | ||
12372 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12373 | echo "${ECHO_T}yes" >&6; } | ||
12374 | else | ||
12375 | echo "$as_me: failed program was:" >&5 | ||
12376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12377 | |||
12378 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12379 | echo "${ECHO_T}no" >&6; } | ||
12380 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
12381 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
12382 | { (exit 1); exit 1; }; } | ||
12383 | |||
12384 | fi | ||
12385 | |||
12386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12387 | fi | ||
12388 | |||
12389 | fi | ||
12390 | |||
12391 | |||
12392 | AUDIT_MODULE=none | ||
12393 | |||
12394 | # Check whether --with-audit was given. | ||
12395 | if test "${with_audit+set}" = set; then | ||
12396 | withval=$with_audit; | ||
12397 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
12398 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
12399 | case "$withval" in | ||
12400 | bsm) | ||
12401 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
12402 | echo "${ECHO_T}bsm" >&6; } | ||
12403 | AUDIT_MODULE=bsm | ||
12404 | |||
12405 | for ac_header in bsm/audit.h | ||
12406 | do | ||
12407 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12408 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12410 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12412 | else | ||
12413 | cat >conftest.$ac_ext <<_ACEOF | ||
12414 | /* confdefs.h. */ | ||
12415 | _ACEOF | ||
12416 | cat confdefs.h >>conftest.$ac_ext | ||
12417 | cat >>conftest.$ac_ext <<_ACEOF | ||
12418 | /* end confdefs.h. */ | ||
12419 | |||
12420 | #ifdef HAVE_TIME_H | ||
12421 | # include <time.h> | ||
12422 | #endif | ||
12423 | |||
12424 | |||
12425 | |||
12426 | #include <$ac_header> | ||
12427 | _ACEOF | ||
12428 | rm -f conftest.$ac_objext | ||
12429 | if { (ac_try="$ac_compile" | ||
12430 | case "(($ac_try" in | ||
12431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12432 | *) ac_try_echo=$ac_try;; | ||
12433 | esac | ||
12434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12435 | (eval "$ac_compile") 2>conftest.er1 | ||
12436 | ac_status=$? | ||
12437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12438 | rm -f conftest.er1 | ||
12439 | cat conftest.err >&5 | ||
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12441 | (exit $ac_status); } && { | ||
12442 | test -z "$ac_c_werror_flag" || | ||
12443 | test ! -s conftest.err | ||
12444 | } && test -s conftest.$ac_objext; then | ||
12445 | eval "$as_ac_Header=yes" | ||
12446 | else | ||
12447 | echo "$as_me: failed program was:" >&5 | ||
12448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12449 | |||
12450 | eval "$as_ac_Header=no" | ||
12451 | fi | ||
12452 | |||
12453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12454 | fi | ||
12455 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12457 | echo "${ECHO_T}$ac_res" >&6; } | ||
12458 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12459 | cat >>confdefs.h <<_ACEOF | ||
12460 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12461 | _ACEOF | ||
12462 | |||
12463 | else | ||
12464 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
12465 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
12466 | { (exit 1); exit 1; }; } | ||
12467 | fi | ||
12468 | |||
12469 | done | ||
12470 | |||
12471 | |||
12472 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
12473 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
12474 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
12475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12476 | else | ||
12477 | ac_check_lib_save_LIBS=$LIBS | ||
12478 | LIBS="-lbsm $LIBS" | ||
12479 | cat >conftest.$ac_ext <<_ACEOF | ||
12480 | /* confdefs.h. */ | ||
12481 | _ACEOF | ||
12482 | cat confdefs.h >>conftest.$ac_ext | ||
12483 | cat >>conftest.$ac_ext <<_ACEOF | ||
12484 | /* end confdefs.h. */ | ||
12485 | |||
12486 | /* Override any GCC internal prototype to avoid an error. | ||
12487 | Use char because int might match the return type of a GCC | ||
12488 | builtin and then its argument prototype would still apply. */ | ||
12489 | #ifdef __cplusplus | ||
12490 | extern "C" | ||
12491 | #endif | ||
12492 | char getaudit (); | ||
12493 | int | ||
12494 | main () | ||
12495 | { | ||
12496 | return getaudit (); | ||
12497 | ; | ||
12498 | return 0; | ||
12499 | } | ||
12500 | _ACEOF | ||
12501 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12502 | if { (ac_try="$ac_link" | ||
12503 | case "(($ac_try" in | ||
12504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12505 | *) ac_try_echo=$ac_try;; | ||
12506 | esac | ||
12507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12508 | (eval "$ac_link") 2>conftest.er1 | ||
12509 | ac_status=$? | ||
12510 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12511 | rm -f conftest.er1 | ||
12512 | cat conftest.err >&5 | ||
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12514 | (exit $ac_status); } && { | ||
12515 | test -z "$ac_c_werror_flag" || | ||
12516 | test ! -s conftest.err | ||
12517 | } && test -s conftest$ac_exeext && | ||
12518 | $as_test_x conftest$ac_exeext; then | ||
12519 | ac_cv_lib_bsm_getaudit=yes | ||
12520 | else | ||
12521 | echo "$as_me: failed program was:" >&5 | ||
12522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12523 | |||
12524 | ac_cv_lib_bsm_getaudit=no | ||
12525 | fi | ||
12526 | |||
12527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12528 | conftest$ac_exeext conftest.$ac_ext | ||
12529 | LIBS=$ac_check_lib_save_LIBS | ||
12530 | fi | ||
12531 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
12532 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
12533 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
12534 | cat >>confdefs.h <<_ACEOF | ||
12535 | #define HAVE_LIBBSM 1 | ||
12536 | _ACEOF | ||
12537 | |||
12538 | LIBS="-lbsm $LIBS" | ||
12539 | |||
12540 | else | ||
12541 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
12542 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
12543 | { (exit 1); exit 1; }; } | ||
12544 | fi | ||
12545 | |||
12546 | |||
12547 | for ac_func in getaudit | ||
12548 | do | ||
12549 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12550 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12551 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12552 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12554 | else | ||
12555 | cat >conftest.$ac_ext <<_ACEOF | ||
12556 | /* confdefs.h. */ | ||
12557 | _ACEOF | ||
12558 | cat confdefs.h >>conftest.$ac_ext | ||
12559 | cat >>conftest.$ac_ext <<_ACEOF | ||
12560 | /* end confdefs.h. */ | ||
12561 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12563 | #define $ac_func innocuous_$ac_func | ||
12564 | |||
12565 | /* System header to define __stub macros and hopefully few prototypes, | ||
12566 | which can conflict with char $ac_func (); below. | ||
12567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12568 | <limits.h> exists even on freestanding compilers. */ | ||
12569 | |||
12570 | #ifdef __STDC__ | ||
12571 | # include <limits.h> | ||
12572 | #else | ||
12573 | # include <assert.h> | ||
12574 | #endif | ||
12575 | |||
12576 | #undef $ac_func | ||
12577 | |||
12578 | /* Override any GCC internal prototype to avoid an error. | ||
12579 | Use char because int might match the return type of a GCC | ||
12580 | builtin and then its argument prototype would still apply. */ | ||
12581 | #ifdef __cplusplus | ||
12582 | extern "C" | ||
12583 | #endif | ||
12584 | char $ac_func (); | ||
12585 | /* The GNU C library defines this for functions which it implements | ||
12586 | to always fail with ENOSYS. Some functions are actually named | ||
12587 | something starting with __ and the normal name is an alias. */ | ||
12588 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12589 | choke me | ||
12590 | #endif | ||
12591 | |||
12592 | int | ||
12593 | main () | ||
12594 | { | ||
12595 | return $ac_func (); | ||
12596 | ; | ||
12597 | return 0; | ||
12598 | } | ||
12599 | _ACEOF | ||
12600 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12601 | if { (ac_try="$ac_link" | ||
12602 | case "(($ac_try" in | ||
12603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12604 | *) ac_try_echo=$ac_try;; | ||
12605 | esac | ||
12606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12607 | (eval "$ac_link") 2>conftest.er1 | ||
12608 | ac_status=$? | ||
12609 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12610 | rm -f conftest.er1 | ||
12611 | cat conftest.err >&5 | ||
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12613 | (exit $ac_status); } && { | ||
12614 | test -z "$ac_c_werror_flag" || | ||
12615 | test ! -s conftest.err | ||
12616 | } && test -s conftest$ac_exeext && | ||
12617 | $as_test_x conftest$ac_exeext; then | ||
12618 | eval "$as_ac_var=yes" | ||
12619 | else | ||
12620 | echo "$as_me: failed program was:" >&5 | ||
12621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12622 | |||
12623 | eval "$as_ac_var=no" | ||
12624 | fi | ||
12625 | |||
12626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12627 | conftest$ac_exeext conftest.$ac_ext | ||
12628 | fi | ||
12629 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12631 | echo "${ECHO_T}$ac_res" >&6; } | ||
12632 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12633 | cat >>confdefs.h <<_ACEOF | ||
12634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12635 | _ACEOF | ||
12636 | |||
12637 | else | ||
12638 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
12639 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
12640 | { (exit 1); exit 1; }; } | ||
12641 | fi | ||
12642 | done | ||
12643 | |||
12644 | # These are optional | ||
12645 | |||
12646 | |||
12647 | for ac_func in getaudit_addr aug_get_machine | ||
12648 | do | ||
12649 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12650 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12651 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12652 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12654 | else | ||
12655 | cat >conftest.$ac_ext <<_ACEOF | ||
12656 | /* confdefs.h. */ | ||
12657 | _ACEOF | ||
12658 | cat confdefs.h >>conftest.$ac_ext | ||
12659 | cat >>conftest.$ac_ext <<_ACEOF | ||
12660 | /* end confdefs.h. */ | ||
12661 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12662 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12663 | #define $ac_func innocuous_$ac_func | ||
12664 | |||
12665 | /* System header to define __stub macros and hopefully few prototypes, | ||
12666 | which can conflict with char $ac_func (); below. | ||
12667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12668 | <limits.h> exists even on freestanding compilers. */ | ||
12669 | |||
12670 | #ifdef __STDC__ | ||
12671 | # include <limits.h> | ||
12672 | #else | ||
12673 | # include <assert.h> | ||
12674 | #endif | ||
12675 | |||
12676 | #undef $ac_func | ||
12677 | |||
12678 | /* Override any GCC internal prototype to avoid an error. | ||
12679 | Use char because int might match the return type of a GCC | ||
12680 | builtin and then its argument prototype would still apply. */ | ||
12681 | #ifdef __cplusplus | ||
12682 | extern "C" | ||
12683 | #endif | ||
12684 | char $ac_func (); | ||
12685 | /* The GNU C library defines this for functions which it implements | ||
12686 | to always fail with ENOSYS. Some functions are actually named | ||
12687 | something starting with __ and the normal name is an alias. */ | ||
12688 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12689 | choke me | ||
12690 | #endif | ||
12691 | |||
12692 | int | ||
12693 | main () | ||
12694 | { | ||
12695 | return $ac_func (); | ||
12696 | ; | ||
12697 | return 0; | ||
12698 | } | ||
12699 | _ACEOF | ||
12700 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12701 | if { (ac_try="$ac_link" | ||
12702 | case "(($ac_try" in | ||
12703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12704 | *) ac_try_echo=$ac_try;; | ||
12705 | esac | ||
12706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12707 | (eval "$ac_link") 2>conftest.er1 | ||
12708 | ac_status=$? | ||
12709 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12710 | rm -f conftest.er1 | ||
12711 | cat conftest.err >&5 | ||
12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12713 | (exit $ac_status); } && { | ||
12714 | test -z "$ac_c_werror_flag" || | ||
12715 | test ! -s conftest.err | ||
12716 | } && test -s conftest$ac_exeext && | ||
12717 | $as_test_x conftest$ac_exeext; then | ||
12718 | eval "$as_ac_var=yes" | ||
12719 | else | ||
12720 | echo "$as_me: failed program was:" >&5 | ||
12721 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12722 | |||
12723 | eval "$as_ac_var=no" | ||
12724 | fi | ||
12725 | |||
12726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12727 | conftest$ac_exeext conftest.$ac_ext | ||
12728 | fi | ||
12729 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12731 | echo "${ECHO_T}$ac_res" >&6; } | ||
12732 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12733 | cat >>confdefs.h <<_ACEOF | ||
12734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12735 | _ACEOF | ||
12736 | |||
12737 | fi | ||
12738 | done | ||
12739 | |||
12740 | |||
12741 | cat >>confdefs.h <<\_ACEOF | ||
12742 | #define USE_BSM_AUDIT 1 | ||
12743 | _ACEOF | ||
12744 | |||
12745 | ;; | ||
12746 | debug) | ||
12747 | AUDIT_MODULE=debug | ||
12748 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
12749 | echo "${ECHO_T}debug" >&6; } | ||
12750 | |||
12751 | cat >>confdefs.h <<\_ACEOF | ||
12752 | #define SSH_AUDIT_EVENTS 1 | ||
12753 | _ACEOF | ||
12754 | |||
12755 | ;; | ||
12756 | no) | ||
12757 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12758 | echo "${ECHO_T}no" >&6; } | ||
12759 | ;; | ||
12760 | *) | ||
12761 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
12762 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
12763 | { (exit 1); exit 1; }; } | ||
12764 | ;; | ||
12765 | esac | ||
12766 | |||
12767 | fi | ||
12768 | |||
12769 | |||
12770 | |||
12771 | |||
12772 | |||
12773 | |||
12774 | |||
12775 | |||
12776 | |||
12777 | |||
12778 | |||
12779 | |||
12780 | |||
12781 | |||
12782 | |||
12783 | |||
12784 | |||
12785 | |||
12786 | |||
12787 | |||
12788 | |||
12789 | |||
12790 | |||
12791 | |||
12792 | |||
12793 | |||
12794 | |||
12795 | |||
12796 | |||
12797 | |||
12798 | |||
12799 | |||
12800 | |||
12801 | |||
12802 | |||
12803 | |||
12804 | |||
12805 | |||
12806 | |||
12807 | |||
12808 | |||
12809 | |||
12810 | |||
12811 | |||
12812 | |||
12813 | |||
12814 | |||
12815 | |||
12816 | |||
12817 | |||
12818 | |||
12819 | |||
12820 | |||
12821 | |||
12822 | |||
12823 | |||
12824 | |||
12825 | |||
12826 | |||
12827 | |||
12828 | |||
12829 | |||
12830 | |||
12831 | |||
12832 | |||
12833 | |||
12834 | |||
12835 | |||
12836 | |||
12837 | |||
12838 | |||
12839 | |||
12840 | |||
12841 | |||
12842 | |||
12843 | |||
12844 | |||
12845 | |||
12846 | |||
12847 | |||
12848 | |||
12849 | |||
12850 | |||
12851 | |||
12852 | |||
12853 | |||
12854 | |||
12855 | |||
12856 | |||
12857 | |||
12858 | |||
12859 | for ac_func in \ | ||
12860 | arc4random \ | ||
12861 | arc4random_buf \ | ||
12862 | arc4random_uniform \ | ||
12863 | asprintf \ | ||
12864 | b64_ntop \ | ||
12865 | __b64_ntop \ | ||
12866 | b64_pton \ | ||
12867 | __b64_pton \ | ||
12868 | bcopy \ | ||
12869 | bindresvport_sa \ | ||
12870 | clock \ | ||
12871 | closefrom \ | ||
12872 | dirfd \ | ||
12873 | fchmod \ | ||
12874 | fchown \ | ||
12875 | freeaddrinfo \ | ||
12876 | fstatvfs \ | ||
12877 | futimes \ | ||
12878 | getaddrinfo \ | ||
12879 | getcwd \ | ||
12880 | getgrouplist \ | ||
12881 | getnameinfo \ | ||
12882 | getopt \ | ||
12883 | getpeereid \ | ||
12884 | getpeerucred \ | ||
12885 | _getpty \ | ||
12886 | getrlimit \ | ||
12887 | getttyent \ | ||
12888 | glob \ | ||
12889 | inet_aton \ | ||
12890 | inet_ntoa \ | ||
12891 | inet_ntop \ | ||
12892 | innetgr \ | ||
12893 | login_getcapbool \ | ||
12894 | md5_crypt \ | ||
12895 | memmove \ | ||
12896 | mkdtemp \ | ||
12897 | mmap \ | ||
12898 | ngetaddrinfo \ | ||
12899 | nsleep \ | ||
12900 | ogetaddrinfo \ | ||
12901 | openlog_r \ | ||
12902 | openpty \ | ||
12903 | poll \ | ||
12904 | prctl \ | ||
12905 | pstat \ | ||
12906 | readpassphrase \ | ||
12907 | realpath \ | ||
12908 | recvmsg \ | ||
12909 | rresvport_af \ | ||
12910 | sendmsg \ | ||
12911 | setdtablesize \ | ||
12912 | setegid \ | ||
12913 | setenv \ | ||
12914 | seteuid \ | ||
12915 | setgroups \ | ||
12916 | setlogin \ | ||
12917 | setpcred \ | ||
12918 | setproctitle \ | ||
12919 | setregid \ | ||
12920 | setreuid \ | ||
12921 | setrlimit \ | ||
12922 | setsid \ | ||
12923 | setvbuf \ | ||
12924 | sigaction \ | ||
12925 | sigvec \ | ||
12926 | snprintf \ | ||
12927 | socketpair \ | ||
12928 | statfs \ | ||
12929 | statvfs \ | ||
12930 | strdup \ | ||
12931 | strerror \ | ||
12932 | strlcat \ | ||
12933 | strlcpy \ | ||
12934 | strmode \ | ||
12935 | strnvis \ | ||
12936 | strtonum \ | ||
12937 | strtoll \ | ||
12938 | strtoul \ | ||
12939 | swap32 \ | ||
12940 | sysconf \ | ||
12941 | tcgetpgrp \ | ||
12942 | truncate \ | ||
12943 | unsetenv \ | ||
12944 | updwtmpx \ | ||
12945 | vasprintf \ | ||
12946 | vhangup \ | ||
12947 | vsnprintf \ | ||
12948 | waitpid \ | ||
12949 | |||
12950 | do | ||
12951 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12952 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12953 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12954 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12956 | else | ||
12957 | cat >conftest.$ac_ext <<_ACEOF | ||
12958 | /* confdefs.h. */ | ||
12959 | _ACEOF | ||
12960 | cat confdefs.h >>conftest.$ac_ext | ||
12961 | cat >>conftest.$ac_ext <<_ACEOF | ||
12962 | /* end confdefs.h. */ | ||
12963 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12965 | #define $ac_func innocuous_$ac_func | ||
12966 | |||
12967 | /* System header to define __stub macros and hopefully few prototypes, | ||
12968 | which can conflict with char $ac_func (); below. | ||
12969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12970 | <limits.h> exists even on freestanding compilers. */ | ||
12971 | |||
12972 | #ifdef __STDC__ | ||
12973 | # include <limits.h> | ||
12974 | #else | ||
12975 | # include <assert.h> | ||
12976 | #endif | ||
12977 | |||
12978 | #undef $ac_func | ||
12979 | |||
12980 | /* Override any GCC internal prototype to avoid an error. | ||
12981 | Use char because int might match the return type of a GCC | ||
12982 | builtin and then its argument prototype would still apply. */ | ||
12983 | #ifdef __cplusplus | ||
12984 | extern "C" | ||
12985 | #endif | ||
12986 | char $ac_func (); | ||
12987 | /* The GNU C library defines this for functions which it implements | ||
12988 | to always fail with ENOSYS. Some functions are actually named | ||
12989 | something starting with __ and the normal name is an alias. */ | ||
12990 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12991 | choke me | ||
12992 | #endif | ||
12993 | |||
12994 | int | ||
12995 | main () | ||
12996 | { | ||
12997 | return $ac_func (); | ||
12998 | ; | ||
12999 | return 0; | ||
13000 | } | ||
13001 | _ACEOF | ||
13002 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13003 | if { (ac_try="$ac_link" | ||
13004 | case "(($ac_try" in | ||
13005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13006 | *) ac_try_echo=$ac_try;; | ||
13007 | esac | ||
13008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13009 | (eval "$ac_link") 2>conftest.er1 | ||
13010 | ac_status=$? | ||
13011 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13012 | rm -f conftest.er1 | ||
13013 | cat conftest.err >&5 | ||
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13015 | (exit $ac_status); } && { | ||
13016 | test -z "$ac_c_werror_flag" || | ||
13017 | test ! -s conftest.err | ||
13018 | } && test -s conftest$ac_exeext && | ||
13019 | $as_test_x conftest$ac_exeext; then | ||
13020 | eval "$as_ac_var=yes" | ||
13021 | else | ||
13022 | echo "$as_me: failed program was:" >&5 | ||
13023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13024 | |||
13025 | eval "$as_ac_var=no" | ||
13026 | fi | ||
13027 | |||
13028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13029 | conftest$ac_exeext conftest.$ac_ext | ||
13030 | fi | ||
13031 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13033 | echo "${ECHO_T}$ac_res" >&6; } | ||
13034 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13035 | cat >>confdefs.h <<_ACEOF | ||
13036 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13037 | _ACEOF | ||
13038 | |||
13039 | fi | ||
13040 | done | ||
13041 | |||
13042 | |||
13043 | # IRIX has a const char return value for gai_strerror() | ||
13044 | |||
13045 | for ac_func in gai_strerror | ||
13046 | do | ||
13047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13052 | else | ||
13053 | cat >conftest.$ac_ext <<_ACEOF | ||
13054 | /* confdefs.h. */ | ||
13055 | _ACEOF | ||
13056 | cat confdefs.h >>conftest.$ac_ext | ||
13057 | cat >>conftest.$ac_ext <<_ACEOF | ||
13058 | /* end confdefs.h. */ | ||
13059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13061 | #define $ac_func innocuous_$ac_func | ||
13062 | |||
13063 | /* System header to define __stub macros and hopefully few prototypes, | ||
13064 | which can conflict with char $ac_func (); below. | ||
13065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13066 | <limits.h> exists even on freestanding compilers. */ | ||
13067 | |||
13068 | #ifdef __STDC__ | ||
13069 | # include <limits.h> | ||
13070 | #else | ||
13071 | # include <assert.h> | ||
13072 | #endif | ||
13073 | |||
13074 | #undef $ac_func | ||
13075 | |||
13076 | /* Override any GCC internal prototype to avoid an error. | ||
13077 | Use char because int might match the return type of a GCC | ||
13078 | builtin and then its argument prototype would still apply. */ | ||
13079 | #ifdef __cplusplus | ||
13080 | extern "C" | ||
13081 | #endif | ||
13082 | char $ac_func (); | ||
13083 | /* The GNU C library defines this for functions which it implements | ||
13084 | to always fail with ENOSYS. Some functions are actually named | ||
13085 | something starting with __ and the normal name is an alias. */ | ||
13086 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13087 | choke me | ||
13088 | #endif | ||
13089 | |||
13090 | int | ||
13091 | main () | ||
13092 | { | ||
13093 | return $ac_func (); | ||
13094 | ; | ||
13095 | return 0; | ||
13096 | } | ||
13097 | _ACEOF | ||
13098 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13099 | if { (ac_try="$ac_link" | ||
13100 | case "(($ac_try" in | ||
13101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13102 | *) ac_try_echo=$ac_try;; | ||
13103 | esac | ||
13104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13105 | (eval "$ac_link") 2>conftest.er1 | ||
13106 | ac_status=$? | ||
13107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13108 | rm -f conftest.er1 | ||
13109 | cat conftest.err >&5 | ||
13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13111 | (exit $ac_status); } && { | ||
13112 | test -z "$ac_c_werror_flag" || | ||
13113 | test ! -s conftest.err | ||
13114 | } && test -s conftest$ac_exeext && | ||
13115 | $as_test_x conftest$ac_exeext; then | ||
13116 | eval "$as_ac_var=yes" | ||
13117 | else | ||
13118 | echo "$as_me: failed program was:" >&5 | ||
13119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13120 | |||
13121 | eval "$as_ac_var=no" | ||
13122 | fi | ||
13123 | |||
13124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13125 | conftest$ac_exeext conftest.$ac_ext | ||
13126 | fi | ||
13127 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13129 | echo "${ECHO_T}$ac_res" >&6; } | ||
13130 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13131 | cat >>confdefs.h <<_ACEOF | ||
13132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13133 | _ACEOF | ||
13134 | |||
13135 | cat >>confdefs.h <<\_ACEOF | ||
13136 | #define HAVE_GAI_STRERROR 1 | ||
13137 | _ACEOF | ||
13138 | |||
13139 | cat >conftest.$ac_ext <<_ACEOF | ||
13140 | /* confdefs.h. */ | ||
13141 | _ACEOF | ||
13142 | cat confdefs.h >>conftest.$ac_ext | ||
13143 | cat >>conftest.$ac_ext <<_ACEOF | ||
13144 | /* end confdefs.h. */ | ||
13145 | |||
13146 | #include <sys/types.h> | ||
13147 | #include <sys/socket.h> | ||
13148 | #include <netdb.h> | ||
13149 | |||
13150 | const char *gai_strerror(int); | ||
13151 | int | ||
13152 | main () | ||
13153 | { | ||
13154 | |||
13155 | char *str; | ||
13156 | |||
13157 | str = gai_strerror(0); | ||
13158 | ; | ||
13159 | return 0; | ||
13160 | } | ||
13161 | _ACEOF | ||
13162 | rm -f conftest.$ac_objext | ||
13163 | if { (ac_try="$ac_compile" | ||
13164 | case "(($ac_try" in | ||
13165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13166 | *) ac_try_echo=$ac_try;; | ||
13167 | esac | ||
13168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13169 | (eval "$ac_compile") 2>conftest.er1 | ||
13170 | ac_status=$? | ||
13171 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13172 | rm -f conftest.er1 | ||
13173 | cat conftest.err >&5 | ||
13174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13175 | (exit $ac_status); } && { | ||
13176 | test -z "$ac_c_werror_flag" || | ||
13177 | test ! -s conftest.err | ||
13178 | } && test -s conftest.$ac_objext; then | ||
13179 | |||
13180 | |||
13181 | cat >>confdefs.h <<\_ACEOF | ||
13182 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
13183 | _ACEOF | ||
13184 | |||
13185 | else | ||
13186 | echo "$as_me: failed program was:" >&5 | ||
13187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13188 | |||
13189 | |||
13190 | fi | ||
13191 | |||
13192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13193 | fi | ||
13194 | done | ||
13195 | |||
13196 | |||
13197 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
13198 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
13199 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13201 | else | ||
13202 | ac_func_search_save_LIBS=$LIBS | ||
13203 | cat >conftest.$ac_ext <<_ACEOF | ||
13204 | /* confdefs.h. */ | ||
13205 | _ACEOF | ||
13206 | cat confdefs.h >>conftest.$ac_ext | ||
13207 | cat >>conftest.$ac_ext <<_ACEOF | ||
13208 | /* end confdefs.h. */ | ||
13209 | |||
13210 | /* Override any GCC internal prototype to avoid an error. | ||
13211 | Use char because int might match the return type of a GCC | ||
13212 | builtin and then its argument prototype would still apply. */ | ||
13213 | #ifdef __cplusplus | ||
13214 | extern "C" | ||
13215 | #endif | ||
13216 | char nanosleep (); | ||
13217 | int | ||
13218 | main () | ||
13219 | { | ||
13220 | return nanosleep (); | ||
13221 | ; | ||
13222 | return 0; | ||
13223 | } | ||
13224 | _ACEOF | ||
13225 | for ac_lib in '' rt posix4; do | ||
13226 | if test -z "$ac_lib"; then | ||
13227 | ac_res="none required" | ||
13228 | else | ||
13229 | ac_res=-l$ac_lib | ||
13230 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13231 | fi | ||
13232 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13233 | if { (ac_try="$ac_link" | ||
13234 | case "(($ac_try" in | ||
13235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13236 | *) ac_try_echo=$ac_try;; | ||
13237 | esac | ||
13238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13239 | (eval "$ac_link") 2>conftest.er1 | ||
13240 | ac_status=$? | ||
13241 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13242 | rm -f conftest.er1 | ||
13243 | cat conftest.err >&5 | ||
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13245 | (exit $ac_status); } && { | ||
13246 | test -z "$ac_c_werror_flag" || | ||
13247 | test ! -s conftest.err | ||
13248 | } && test -s conftest$ac_exeext && | ||
13249 | $as_test_x conftest$ac_exeext; then | ||
13250 | ac_cv_search_nanosleep=$ac_res | ||
13251 | else | ||
13252 | echo "$as_me: failed program was:" >&5 | ||
13253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13254 | |||
13255 | |||
13256 | fi | ||
13257 | |||
13258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13259 | conftest$ac_exeext | ||
13260 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13261 | break | ||
13262 | fi | ||
13263 | done | ||
13264 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13265 | : | ||
13266 | else | ||
13267 | ac_cv_search_nanosleep=no | ||
13268 | fi | ||
13269 | rm conftest.$ac_ext | ||
13270 | LIBS=$ac_func_search_save_LIBS | ||
13271 | fi | ||
13272 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
13273 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
13274 | ac_res=$ac_cv_search_nanosleep | ||
13275 | if test "$ac_res" != no; then | ||
13276 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13277 | |||
13278 | cat >>confdefs.h <<\_ACEOF | ||
13279 | #define HAVE_NANOSLEEP 1 | ||
13280 | _ACEOF | ||
13281 | |||
13282 | fi | ||
13283 | |||
13284 | |||
13285 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
13286 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
13287 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
13288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13289 | else | ||
13290 | cat >conftest.$ac_ext <<_ACEOF | ||
13291 | /* confdefs.h. */ | ||
13292 | _ACEOF | ||
13293 | cat confdefs.h >>conftest.$ac_ext | ||
13294 | cat >>conftest.$ac_ext <<_ACEOF | ||
13295 | /* end confdefs.h. */ | ||
13296 | $ac_includes_default | ||
13297 | int | ||
13298 | main () | ||
13299 | { | ||
13300 | #ifndef getrusage | ||
13301 | (void) getrusage; | ||
13302 | #endif | ||
13303 | |||
13304 | ; | ||
13305 | return 0; | ||
13306 | } | ||
13307 | _ACEOF | ||
13308 | rm -f conftest.$ac_objext | ||
13309 | if { (ac_try="$ac_compile" | ||
13310 | case "(($ac_try" in | ||
13311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13312 | *) ac_try_echo=$ac_try;; | ||
13313 | esac | ||
13314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13315 | (eval "$ac_compile") 2>conftest.er1 | ||
13316 | ac_status=$? | ||
13317 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13318 | rm -f conftest.er1 | ||
13319 | cat conftest.err >&5 | ||
13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13321 | (exit $ac_status); } && { | ||
13322 | test -z "$ac_c_werror_flag" || | ||
13323 | test ! -s conftest.err | ||
13324 | } && test -s conftest.$ac_objext; then | ||
13325 | ac_cv_have_decl_getrusage=yes | ||
13326 | else | ||
13327 | echo "$as_me: failed program was:" >&5 | ||
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13329 | |||
13330 | ac_cv_have_decl_getrusage=no | ||
13331 | fi | ||
13332 | |||
13333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13334 | fi | ||
13335 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
13336 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
13337 | if test $ac_cv_have_decl_getrusage = yes; then | ||
13338 | |||
13339 | for ac_func in getrusage | ||
13340 | do | ||
13341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13342 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13344 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13346 | else | ||
13347 | cat >conftest.$ac_ext <<_ACEOF | ||
13348 | /* confdefs.h. */ | ||
13349 | _ACEOF | ||
13350 | cat confdefs.h >>conftest.$ac_ext | ||
13351 | cat >>conftest.$ac_ext <<_ACEOF | ||
13352 | /* end confdefs.h. */ | ||
13353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13355 | #define $ac_func innocuous_$ac_func | ||
13356 | |||
13357 | /* System header to define __stub macros and hopefully few prototypes, | ||
13358 | which can conflict with char $ac_func (); below. | ||
13359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13360 | <limits.h> exists even on freestanding compilers. */ | ||
13361 | |||
13362 | #ifdef __STDC__ | ||
13363 | # include <limits.h> | ||
13364 | #else | ||
13365 | # include <assert.h> | ||
13366 | #endif | ||
13367 | |||
13368 | #undef $ac_func | ||
13369 | |||
13370 | /* Override any GCC internal prototype to avoid an error. | ||
13371 | Use char because int might match the return type of a GCC | ||
13372 | builtin and then its argument prototype would still apply. */ | ||
13373 | #ifdef __cplusplus | ||
13374 | extern "C" | ||
13375 | #endif | ||
13376 | char $ac_func (); | ||
13377 | /* The GNU C library defines this for functions which it implements | ||
13378 | to always fail with ENOSYS. Some functions are actually named | ||
13379 | something starting with __ and the normal name is an alias. */ | ||
13380 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13381 | choke me | ||
13382 | #endif | ||
13383 | |||
13384 | int | ||
13385 | main () | ||
13386 | { | ||
13387 | return $ac_func (); | ||
13388 | ; | ||
13389 | return 0; | ||
13390 | } | ||
13391 | _ACEOF | ||
13392 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13393 | if { (ac_try="$ac_link" | ||
13394 | case "(($ac_try" in | ||
13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13396 | *) ac_try_echo=$ac_try;; | ||
13397 | esac | ||
13398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13399 | (eval "$ac_link") 2>conftest.er1 | ||
13400 | ac_status=$? | ||
13401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13402 | rm -f conftest.er1 | ||
13403 | cat conftest.err >&5 | ||
13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13405 | (exit $ac_status); } && { | ||
13406 | test -z "$ac_c_werror_flag" || | ||
13407 | test ! -s conftest.err | ||
13408 | } && test -s conftest$ac_exeext && | ||
13409 | $as_test_x conftest$ac_exeext; then | ||
13410 | eval "$as_ac_var=yes" | ||
13411 | else | ||
13412 | echo "$as_me: failed program was:" >&5 | ||
13413 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13414 | |||
13415 | eval "$as_ac_var=no" | ||
13416 | fi | ||
13417 | |||
13418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13419 | conftest$ac_exeext conftest.$ac_ext | ||
13420 | fi | ||
13421 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13423 | echo "${ECHO_T}$ac_res" >&6; } | ||
13424 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13425 | cat >>confdefs.h <<_ACEOF | ||
13426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13427 | _ACEOF | ||
13428 | |||
13429 | fi | ||
13430 | done | ||
13431 | |||
13432 | fi | ||
13433 | |||
13434 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
13435 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
13436 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
13437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13438 | else | ||
13439 | cat >conftest.$ac_ext <<_ACEOF | ||
13440 | /* confdefs.h. */ | ||
13441 | _ACEOF | ||
13442 | cat confdefs.h >>conftest.$ac_ext | ||
13443 | cat >>conftest.$ac_ext <<_ACEOF | ||
13444 | /* end confdefs.h. */ | ||
13445 | |||
13446 | #ifdef HAVE_STRING_H | ||
13447 | # include <string.h> | ||
13448 | #endif | ||
13449 | |||
13450 | |||
13451 | int | ||
13452 | main () | ||
13453 | { | ||
13454 | #ifndef strsep | ||
13455 | (void) strsep; | ||
13456 | #endif | ||
13457 | |||
13458 | ; | ||
13459 | return 0; | ||
13460 | } | ||
13461 | _ACEOF | ||
13462 | rm -f conftest.$ac_objext | ||
13463 | if { (ac_try="$ac_compile" | ||
13464 | case "(($ac_try" in | ||
13465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13466 | *) ac_try_echo=$ac_try;; | ||
13467 | esac | ||
13468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13469 | (eval "$ac_compile") 2>conftest.er1 | ||
13470 | ac_status=$? | ||
13471 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13472 | rm -f conftest.er1 | ||
13473 | cat conftest.err >&5 | ||
13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13475 | (exit $ac_status); } && { | ||
13476 | test -z "$ac_c_werror_flag" || | ||
13477 | test ! -s conftest.err | ||
13478 | } && test -s conftest.$ac_objext; then | ||
13479 | ac_cv_have_decl_strsep=yes | ||
13480 | else | ||
13481 | echo "$as_me: failed program was:" >&5 | ||
13482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13483 | |||
13484 | ac_cv_have_decl_strsep=no | ||
13485 | fi | ||
13486 | |||
13487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13488 | fi | ||
13489 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
13490 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
13491 | if test $ac_cv_have_decl_strsep = yes; then | ||
13492 | |||
13493 | for ac_func in strsep | ||
13494 | do | ||
13495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13496 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13498 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13500 | else | ||
13501 | cat >conftest.$ac_ext <<_ACEOF | ||
13502 | /* confdefs.h. */ | ||
13503 | _ACEOF | ||
13504 | cat confdefs.h >>conftest.$ac_ext | ||
13505 | cat >>conftest.$ac_ext <<_ACEOF | ||
13506 | /* end confdefs.h. */ | ||
13507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13509 | #define $ac_func innocuous_$ac_func | ||
13510 | |||
13511 | /* System header to define __stub macros and hopefully few prototypes, | ||
13512 | which can conflict with char $ac_func (); below. | ||
13513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13514 | <limits.h> exists even on freestanding compilers. */ | ||
13515 | |||
13516 | #ifdef __STDC__ | ||
13517 | # include <limits.h> | ||
13518 | #else | ||
13519 | # include <assert.h> | ||
13520 | #endif | ||
13521 | |||
13522 | #undef $ac_func | ||
13523 | |||
13524 | /* Override any GCC internal prototype to avoid an error. | ||
13525 | Use char because int might match the return type of a GCC | ||
13526 | builtin and then its argument prototype would still apply. */ | ||
13527 | #ifdef __cplusplus | ||
13528 | extern "C" | ||
13529 | #endif | ||
13530 | char $ac_func (); | ||
13531 | /* The GNU C library defines this for functions which it implements | ||
13532 | to always fail with ENOSYS. Some functions are actually named | ||
13533 | something starting with __ and the normal name is an alias. */ | ||
13534 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13535 | choke me | ||
13536 | #endif | ||
13537 | |||
13538 | int | ||
13539 | main () | ||
13540 | { | ||
13541 | return $ac_func (); | ||
13542 | ; | ||
13543 | return 0; | ||
13544 | } | ||
13545 | _ACEOF | ||
13546 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13547 | if { (ac_try="$ac_link" | ||
13548 | case "(($ac_try" in | ||
13549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13550 | *) ac_try_echo=$ac_try;; | ||
13551 | esac | ||
13552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13553 | (eval "$ac_link") 2>conftest.er1 | ||
13554 | ac_status=$? | ||
13555 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13556 | rm -f conftest.er1 | ||
13557 | cat conftest.err >&5 | ||
13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13559 | (exit $ac_status); } && { | ||
13560 | test -z "$ac_c_werror_flag" || | ||
13561 | test ! -s conftest.err | ||
13562 | } && test -s conftest$ac_exeext && | ||
13563 | $as_test_x conftest$ac_exeext; then | ||
13564 | eval "$as_ac_var=yes" | ||
13565 | else | ||
13566 | echo "$as_me: failed program was:" >&5 | ||
13567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13568 | |||
13569 | eval "$as_ac_var=no" | ||
13570 | fi | ||
13571 | |||
13572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13573 | conftest$ac_exeext conftest.$ac_ext | ||
13574 | fi | ||
13575 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13576 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13577 | echo "${ECHO_T}$ac_res" >&6; } | ||
13578 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13579 | cat >>confdefs.h <<_ACEOF | ||
13580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13581 | _ACEOF | ||
13582 | |||
13583 | fi | ||
13584 | done | ||
13585 | |||
13586 | fi | ||
13587 | |||
13588 | |||
13589 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
13590 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
13591 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
13592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13593 | else | ||
13594 | cat >conftest.$ac_ext <<_ACEOF | ||
13595 | /* confdefs.h. */ | ||
13596 | _ACEOF | ||
13597 | cat confdefs.h >>conftest.$ac_ext | ||
13598 | cat >>conftest.$ac_ext <<_ACEOF | ||
13599 | /* end confdefs.h. */ | ||
13600 | #include <termios.h> | ||
13601 | |||
13602 | |||
13603 | int | ||
13604 | main () | ||
13605 | { | ||
13606 | #ifndef tcsendbreak | ||
13607 | (void) tcsendbreak; | ||
13608 | #endif | ||
13609 | |||
13610 | ; | ||
13611 | return 0; | ||
13612 | } | ||
13613 | _ACEOF | ||
13614 | rm -f conftest.$ac_objext | ||
13615 | if { (ac_try="$ac_compile" | ||
13616 | case "(($ac_try" in | ||
13617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13618 | *) ac_try_echo=$ac_try;; | ||
13619 | esac | ||
13620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13621 | (eval "$ac_compile") 2>conftest.er1 | ||
13622 | ac_status=$? | ||
13623 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13624 | rm -f conftest.er1 | ||
13625 | cat conftest.err >&5 | ||
13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13627 | (exit $ac_status); } && { | ||
13628 | test -z "$ac_c_werror_flag" || | ||
13629 | test ! -s conftest.err | ||
13630 | } && test -s conftest.$ac_objext; then | ||
13631 | ac_cv_have_decl_tcsendbreak=yes | ||
13632 | else | ||
13633 | echo "$as_me: failed program was:" >&5 | ||
13634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13635 | |||
13636 | ac_cv_have_decl_tcsendbreak=no | ||
13637 | fi | ||
13638 | |||
13639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13640 | fi | ||
13641 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
13642 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
13643 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
13644 | cat >>confdefs.h <<\_ACEOF | ||
13645 | #define HAVE_TCSENDBREAK 1 | ||
13646 | _ACEOF | ||
13647 | |||
13648 | else | ||
13649 | |||
13650 | for ac_func in tcsendbreak | ||
13651 | do | ||
13652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13653 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13655 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13657 | else | ||
13658 | cat >conftest.$ac_ext <<_ACEOF | ||
13659 | /* confdefs.h. */ | ||
13660 | _ACEOF | ||
13661 | cat confdefs.h >>conftest.$ac_ext | ||
13662 | cat >>conftest.$ac_ext <<_ACEOF | ||
13663 | /* end confdefs.h. */ | ||
13664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13666 | #define $ac_func innocuous_$ac_func | ||
13667 | |||
13668 | /* System header to define __stub macros and hopefully few prototypes, | ||
13669 | which can conflict with char $ac_func (); below. | ||
13670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13671 | <limits.h> exists even on freestanding compilers. */ | ||
13672 | |||
13673 | #ifdef __STDC__ | ||
13674 | # include <limits.h> | ||
13675 | #else | ||
13676 | # include <assert.h> | ||
13677 | #endif | ||
13678 | |||
13679 | #undef $ac_func | ||
13680 | |||
13681 | /* Override any GCC internal prototype to avoid an error. | ||
13682 | Use char because int might match the return type of a GCC | ||
13683 | builtin and then its argument prototype would still apply. */ | ||
13684 | #ifdef __cplusplus | ||
13685 | extern "C" | ||
13686 | #endif | ||
13687 | char $ac_func (); | ||
13688 | /* The GNU C library defines this for functions which it implements | ||
13689 | to always fail with ENOSYS. Some functions are actually named | ||
13690 | something starting with __ and the normal name is an alias. */ | ||
13691 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13692 | choke me | ||
13693 | #endif | ||
13694 | |||
13695 | int | ||
13696 | main () | ||
13697 | { | ||
13698 | return $ac_func (); | ||
13699 | ; | ||
13700 | return 0; | ||
13701 | } | ||
13702 | _ACEOF | ||
13703 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13704 | if { (ac_try="$ac_link" | ||
13705 | case "(($ac_try" in | ||
13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13707 | *) ac_try_echo=$ac_try;; | ||
13708 | esac | ||
13709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13710 | (eval "$ac_link") 2>conftest.er1 | ||
13711 | ac_status=$? | ||
13712 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13713 | rm -f conftest.er1 | ||
13714 | cat conftest.err >&5 | ||
13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13716 | (exit $ac_status); } && { | ||
13717 | test -z "$ac_c_werror_flag" || | ||
13718 | test ! -s conftest.err | ||
13719 | } && test -s conftest$ac_exeext && | ||
13720 | $as_test_x conftest$ac_exeext; then | ||
13721 | eval "$as_ac_var=yes" | ||
13722 | else | ||
13723 | echo "$as_me: failed program was:" >&5 | ||
13724 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13725 | |||
13726 | eval "$as_ac_var=no" | ||
13727 | fi | ||
13728 | |||
13729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13730 | conftest$ac_exeext conftest.$ac_ext | ||
13731 | fi | ||
13732 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13733 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13734 | echo "${ECHO_T}$ac_res" >&6; } | ||
13735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13736 | cat >>confdefs.h <<_ACEOF | ||
13737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13738 | _ACEOF | ||
13739 | |||
13740 | fi | ||
13741 | done | ||
13742 | |||
13743 | fi | ||
13744 | |||
13745 | |||
13746 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
13747 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
13748 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
13749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13750 | else | ||
13751 | cat >conftest.$ac_ext <<_ACEOF | ||
13752 | /* confdefs.h. */ | ||
13753 | _ACEOF | ||
13754 | cat confdefs.h >>conftest.$ac_ext | ||
13755 | cat >>conftest.$ac_ext <<_ACEOF | ||
13756 | /* end confdefs.h. */ | ||
13757 | #include <netdb.h> | ||
13758 | |||
13759 | int | ||
13760 | main () | ||
13761 | { | ||
13762 | #ifndef h_errno | ||
13763 | (void) h_errno; | ||
13764 | #endif | ||
13765 | |||
13766 | ; | ||
13767 | return 0; | ||
13768 | } | ||
13769 | _ACEOF | ||
13770 | rm -f conftest.$ac_objext | ||
13771 | if { (ac_try="$ac_compile" | ||
13772 | case "(($ac_try" in | ||
13773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13774 | *) ac_try_echo=$ac_try;; | ||
13775 | esac | ||
13776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13777 | (eval "$ac_compile") 2>conftest.er1 | ||
13778 | ac_status=$? | ||
13779 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13780 | rm -f conftest.er1 | ||
13781 | cat conftest.err >&5 | ||
13782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13783 | (exit $ac_status); } && { | ||
13784 | test -z "$ac_c_werror_flag" || | ||
13785 | test ! -s conftest.err | ||
13786 | } && test -s conftest.$ac_objext; then | ||
13787 | ac_cv_have_decl_h_errno=yes | ||
13788 | else | ||
13789 | echo "$as_me: failed program was:" >&5 | ||
13790 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13791 | |||
13792 | ac_cv_have_decl_h_errno=no | ||
13793 | fi | ||
13794 | |||
13795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13796 | fi | ||
13797 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
13798 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
13799 | if test $ac_cv_have_decl_h_errno = yes; then | ||
13800 | |||
13801 | cat >>confdefs.h <<_ACEOF | ||
13802 | #define HAVE_DECL_H_ERRNO 1 | ||
13803 | _ACEOF | ||
13804 | |||
13805 | |||
13806 | else | ||
13807 | cat >>confdefs.h <<_ACEOF | ||
13808 | #define HAVE_DECL_H_ERRNO 0 | ||
13809 | _ACEOF | ||
13810 | |||
13811 | |||
13812 | fi | ||
13813 | |||
13814 | |||
13815 | |||
13816 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
13817 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
13818 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13820 | else | ||
13821 | cat >conftest.$ac_ext <<_ACEOF | ||
13822 | /* confdefs.h. */ | ||
13823 | _ACEOF | ||
13824 | cat confdefs.h >>conftest.$ac_ext | ||
13825 | cat >>conftest.$ac_ext <<_ACEOF | ||
13826 | /* end confdefs.h. */ | ||
13827 | |||
13828 | #include <sys/types.h> | ||
13829 | #include <sys/socket.h> | ||
13830 | |||
13831 | |||
13832 | int | ||
13833 | main () | ||
13834 | { | ||
13835 | #ifndef SHUT_RD | ||
13836 | (void) SHUT_RD; | ||
13837 | #endif | ||
13838 | |||
13839 | ; | ||
13840 | return 0; | ||
13841 | } | ||
13842 | _ACEOF | ||
13843 | rm -f conftest.$ac_objext | ||
13844 | if { (ac_try="$ac_compile" | ||
13845 | case "(($ac_try" in | ||
13846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13847 | *) ac_try_echo=$ac_try;; | ||
13848 | esac | ||
13849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13850 | (eval "$ac_compile") 2>conftest.er1 | ||
13851 | ac_status=$? | ||
13852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13853 | rm -f conftest.er1 | ||
13854 | cat conftest.err >&5 | ||
13855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13856 | (exit $ac_status); } && { | ||
13857 | test -z "$ac_c_werror_flag" || | ||
13858 | test ! -s conftest.err | ||
13859 | } && test -s conftest.$ac_objext; then | ||
13860 | ac_cv_have_decl_SHUT_RD=yes | ||
13861 | else | ||
13862 | echo "$as_me: failed program was:" >&5 | ||
13863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13864 | |||
13865 | ac_cv_have_decl_SHUT_RD=no | ||
13866 | fi | ||
13867 | |||
13868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13869 | fi | ||
13870 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
13871 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
13872 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
13873 | |||
13874 | cat >>confdefs.h <<_ACEOF | ||
13875 | #define HAVE_DECL_SHUT_RD 1 | ||
13876 | _ACEOF | ||
13877 | |||
13878 | |||
13879 | else | ||
13880 | cat >>confdefs.h <<_ACEOF | ||
13881 | #define HAVE_DECL_SHUT_RD 0 | ||
13882 | _ACEOF | ||
13883 | |||
13884 | |||
13885 | fi | ||
13886 | |||
13887 | |||
13888 | |||
13889 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
13890 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
13891 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13893 | else | ||
13894 | cat >conftest.$ac_ext <<_ACEOF | ||
13895 | /* confdefs.h. */ | ||
13896 | _ACEOF | ||
13897 | cat confdefs.h >>conftest.$ac_ext | ||
13898 | cat >>conftest.$ac_ext <<_ACEOF | ||
13899 | /* end confdefs.h. */ | ||
13900 | |||
13901 | #include <sys/types.h> | ||
13902 | #ifdef HAVE_SYS_STAT_H | ||
13903 | # include <sys/stat.h> | ||
13904 | #endif | ||
13905 | #ifdef HAVE_FCNTL_H | ||
13906 | # include <fcntl.h> | ||
13907 | #endif | ||
13908 | |||
13909 | |||
13910 | int | ||
13911 | main () | ||
13912 | { | ||
13913 | #ifndef O_NONBLOCK | ||
13914 | (void) O_NONBLOCK; | ||
13915 | #endif | ||
13916 | |||
13917 | ; | ||
13918 | return 0; | ||
13919 | } | ||
13920 | _ACEOF | ||
13921 | rm -f conftest.$ac_objext | ||
13922 | if { (ac_try="$ac_compile" | ||
13923 | case "(($ac_try" in | ||
13924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13925 | *) ac_try_echo=$ac_try;; | ||
13926 | esac | ||
13927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13928 | (eval "$ac_compile") 2>conftest.er1 | ||
13929 | ac_status=$? | ||
13930 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13931 | rm -f conftest.er1 | ||
13932 | cat conftest.err >&5 | ||
13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13934 | (exit $ac_status); } && { | ||
13935 | test -z "$ac_c_werror_flag" || | ||
13936 | test ! -s conftest.err | ||
13937 | } && test -s conftest.$ac_objext; then | ||
13938 | ac_cv_have_decl_O_NONBLOCK=yes | ||
13939 | else | ||
13940 | echo "$as_me: failed program was:" >&5 | ||
13941 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13942 | |||
13943 | ac_cv_have_decl_O_NONBLOCK=no | ||
13944 | fi | ||
13945 | |||
13946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13947 | fi | ||
13948 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
13949 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
13950 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
13951 | |||
13952 | cat >>confdefs.h <<_ACEOF | ||
13953 | #define HAVE_DECL_O_NONBLOCK 1 | ||
13954 | _ACEOF | ||
13955 | |||
13956 | |||
13957 | else | ||
13958 | cat >>confdefs.h <<_ACEOF | ||
13959 | #define HAVE_DECL_O_NONBLOCK 0 | ||
13960 | _ACEOF | ||
13961 | |||
13962 | |||
13963 | fi | ||
13964 | |||
13965 | |||
13966 | |||
13967 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
13968 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
13969 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13971 | else | ||
13972 | cat >conftest.$ac_ext <<_ACEOF | ||
13973 | /* confdefs.h. */ | ||
13974 | _ACEOF | ||
13975 | cat confdefs.h >>conftest.$ac_ext | ||
13976 | cat >>conftest.$ac_ext <<_ACEOF | ||
13977 | /* end confdefs.h. */ | ||
13978 | |||
13979 | #include <sys/types.h> | ||
13980 | #include <sys/uio.h> | ||
13981 | #include <unistd.h> | ||
13982 | |||
13983 | |||
13984 | int | ||
13985 | main () | ||
13986 | { | ||
13987 | #ifndef writev | ||
13988 | (void) writev; | ||
13989 | #endif | ||
13990 | |||
13991 | ; | ||
13992 | return 0; | ||
13993 | } | ||
13994 | _ACEOF | ||
13995 | rm -f conftest.$ac_objext | ||
13996 | if { (ac_try="$ac_compile" | ||
13997 | case "(($ac_try" in | ||
13998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13999 | *) ac_try_echo=$ac_try;; | ||
14000 | esac | ||
14001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14002 | (eval "$ac_compile") 2>conftest.er1 | ||
14003 | ac_status=$? | ||
14004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14005 | rm -f conftest.er1 | ||
14006 | cat conftest.err >&5 | ||
14007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14008 | (exit $ac_status); } && { | ||
14009 | test -z "$ac_c_werror_flag" || | ||
14010 | test ! -s conftest.err | ||
14011 | } && test -s conftest.$ac_objext; then | ||
14012 | ac_cv_have_decl_writev=yes | ||
14013 | else | ||
14014 | echo "$as_me: failed program was:" >&5 | ||
14015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14016 | |||
14017 | ac_cv_have_decl_writev=no | ||
14018 | fi | ||
14019 | |||
14020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14021 | fi | ||
14022 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
14023 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
14024 | if test $ac_cv_have_decl_writev = yes; then | ||
14025 | |||
14026 | cat >>confdefs.h <<_ACEOF | ||
14027 | #define HAVE_DECL_WRITEV 1 | ||
14028 | _ACEOF | ||
14029 | |||
14030 | |||
14031 | else | ||
14032 | cat >>confdefs.h <<_ACEOF | ||
14033 | #define HAVE_DECL_WRITEV 0 | ||
14034 | _ACEOF | ||
14035 | |||
14036 | |||
14037 | fi | ||
14038 | |||
14039 | |||
14040 | |||
14041 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
14042 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
14043 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
14044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14045 | else | ||
14046 | cat >conftest.$ac_ext <<_ACEOF | ||
14047 | /* confdefs.h. */ | ||
14048 | _ACEOF | ||
14049 | cat confdefs.h >>conftest.$ac_ext | ||
14050 | cat >>conftest.$ac_ext <<_ACEOF | ||
14051 | /* end confdefs.h. */ | ||
14052 | |||
14053 | #include <sys/param.h> | ||
14054 | |||
14055 | |||
14056 | int | ||
14057 | main () | ||
14058 | { | ||
14059 | #ifndef MAXSYMLINKS | ||
14060 | (void) MAXSYMLINKS; | ||
14061 | #endif | ||
14062 | |||
14063 | ; | ||
14064 | return 0; | ||
14065 | } | ||
14066 | _ACEOF | ||
14067 | rm -f conftest.$ac_objext | ||
14068 | if { (ac_try="$ac_compile" | ||
14069 | case "(($ac_try" in | ||
14070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14071 | *) ac_try_echo=$ac_try;; | ||
14072 | esac | ||
14073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14074 | (eval "$ac_compile") 2>conftest.er1 | ||
14075 | ac_status=$? | ||
14076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14077 | rm -f conftest.er1 | ||
14078 | cat conftest.err >&5 | ||
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14080 | (exit $ac_status); } && { | ||
14081 | test -z "$ac_c_werror_flag" || | ||
14082 | test ! -s conftest.err | ||
14083 | } && test -s conftest.$ac_objext; then | ||
14084 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
14085 | else | ||
14086 | echo "$as_me: failed program was:" >&5 | ||
14087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14088 | |||
14089 | ac_cv_have_decl_MAXSYMLINKS=no | ||
14090 | fi | ||
14091 | |||
14092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14093 | fi | ||
14094 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
14095 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
14096 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
14097 | |||
14098 | cat >>confdefs.h <<_ACEOF | ||
14099 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
14100 | _ACEOF | ||
14101 | |||
14102 | |||
14103 | else | ||
14104 | cat >>confdefs.h <<_ACEOF | ||
14105 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
14106 | _ACEOF | ||
14107 | |||
14108 | |||
14109 | fi | ||
14110 | |||
14111 | |||
14112 | |||
14113 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
14114 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
14115 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
14116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14117 | else | ||
14118 | cat >conftest.$ac_ext <<_ACEOF | ||
14119 | /* confdefs.h. */ | ||
14120 | _ACEOF | ||
14121 | cat confdefs.h >>conftest.$ac_ext | ||
14122 | cat >>conftest.$ac_ext <<_ACEOF | ||
14123 | /* end confdefs.h. */ | ||
14124 | |||
14125 | #include <stddef.h> | ||
14126 | |||
14127 | |||
14128 | int | ||
14129 | main () | ||
14130 | { | ||
14131 | #ifndef offsetof | ||
14132 | (void) offsetof; | ||
14133 | #endif | ||
14134 | |||
14135 | ; | ||
14136 | return 0; | ||
14137 | } | ||
14138 | _ACEOF | ||
14139 | rm -f conftest.$ac_objext | ||
14140 | if { (ac_try="$ac_compile" | ||
14141 | case "(($ac_try" in | ||
14142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14143 | *) ac_try_echo=$ac_try;; | ||
14144 | esac | ||
14145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14146 | (eval "$ac_compile") 2>conftest.er1 | ||
14147 | ac_status=$? | ||
14148 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14149 | rm -f conftest.er1 | ||
14150 | cat conftest.err >&5 | ||
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14152 | (exit $ac_status); } && { | ||
14153 | test -z "$ac_c_werror_flag" || | ||
14154 | test ! -s conftest.err | ||
14155 | } && test -s conftest.$ac_objext; then | ||
14156 | ac_cv_have_decl_offsetof=yes | ||
14157 | else | ||
14158 | echo "$as_me: failed program was:" >&5 | ||
14159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14160 | |||
14161 | ac_cv_have_decl_offsetof=no | ||
14162 | fi | ||
14163 | |||
14164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14165 | fi | ||
14166 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
14167 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
14168 | if test $ac_cv_have_decl_offsetof = yes; then | ||
14169 | |||
14170 | cat >>confdefs.h <<_ACEOF | ||
14171 | #define HAVE_DECL_OFFSETOF 1 | ||
14172 | _ACEOF | ||
14173 | |||
14174 | |||
14175 | else | ||
14176 | cat >>confdefs.h <<_ACEOF | ||
14177 | #define HAVE_DECL_OFFSETOF 0 | ||
14178 | _ACEOF | ||
14179 | |||
14180 | |||
14181 | fi | ||
14182 | |||
14183 | |||
14184 | |||
14185 | |||
14186 | for ac_func in setresuid | ||
14187 | do | ||
14188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14189 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14191 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14193 | else | ||
14194 | cat >conftest.$ac_ext <<_ACEOF | ||
14195 | /* confdefs.h. */ | ||
14196 | _ACEOF | ||
14197 | cat confdefs.h >>conftest.$ac_ext | ||
14198 | cat >>conftest.$ac_ext <<_ACEOF | ||
14199 | /* end confdefs.h. */ | ||
14200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14202 | #define $ac_func innocuous_$ac_func | ||
14203 | |||
14204 | /* System header to define __stub macros and hopefully few prototypes, | ||
14205 | which can conflict with char $ac_func (); below. | ||
14206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14207 | <limits.h> exists even on freestanding compilers. */ | ||
14208 | |||
14209 | #ifdef __STDC__ | ||
14210 | # include <limits.h> | ||
14211 | #else | ||
14212 | # include <assert.h> | ||
14213 | #endif | ||
14214 | |||
14215 | #undef $ac_func | ||
14216 | |||
14217 | /* Override any GCC internal prototype to avoid an error. | ||
14218 | Use char because int might match the return type of a GCC | ||
14219 | builtin and then its argument prototype would still apply. */ | ||
14220 | #ifdef __cplusplus | ||
14221 | extern "C" | ||
14222 | #endif | ||
14223 | char $ac_func (); | ||
14224 | /* The GNU C library defines this for functions which it implements | ||
14225 | to always fail with ENOSYS. Some functions are actually named | ||
14226 | something starting with __ and the normal name is an alias. */ | ||
14227 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14228 | choke me | ||
14229 | #endif | ||
14230 | |||
14231 | int | ||
14232 | main () | ||
14233 | { | ||
14234 | return $ac_func (); | ||
14235 | ; | ||
14236 | return 0; | ||
14237 | } | ||
14238 | _ACEOF | ||
14239 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14240 | if { (ac_try="$ac_link" | ||
14241 | case "(($ac_try" in | ||
14242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14243 | *) ac_try_echo=$ac_try;; | ||
14244 | esac | ||
14245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14246 | (eval "$ac_link") 2>conftest.er1 | ||
14247 | ac_status=$? | ||
14248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14249 | rm -f conftest.er1 | ||
14250 | cat conftest.err >&5 | ||
14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14252 | (exit $ac_status); } && { | ||
14253 | test -z "$ac_c_werror_flag" || | ||
14254 | test ! -s conftest.err | ||
14255 | } && test -s conftest$ac_exeext && | ||
14256 | $as_test_x conftest$ac_exeext; then | ||
14257 | eval "$as_ac_var=yes" | ||
14258 | else | ||
14259 | echo "$as_me: failed program was:" >&5 | ||
14260 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14261 | |||
14262 | eval "$as_ac_var=no" | ||
14263 | fi | ||
14264 | |||
14265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14266 | conftest$ac_exeext conftest.$ac_ext | ||
14267 | fi | ||
14268 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14270 | echo "${ECHO_T}$ac_res" >&6; } | ||
14271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14272 | cat >>confdefs.h <<_ACEOF | ||
14273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14274 | _ACEOF | ||
14275 | |||
14276 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
14277 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
14278 | if test "$cross_compiling" = yes; then | ||
14279 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14280 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14281 | |||
14282 | else | ||
14283 | cat >conftest.$ac_ext <<_ACEOF | ||
14284 | /* confdefs.h. */ | ||
14285 | _ACEOF | ||
14286 | cat confdefs.h >>conftest.$ac_ext | ||
14287 | cat >>conftest.$ac_ext <<_ACEOF | ||
14288 | /* end confdefs.h. */ | ||
14289 | |||
14290 | #include <stdlib.h> | ||
14291 | #include <errno.h> | ||
14292 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14293 | |||
14294 | _ACEOF | ||
14295 | rm -f conftest$ac_exeext | ||
14296 | if { (ac_try="$ac_link" | ||
14297 | case "(($ac_try" in | ||
14298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14299 | *) ac_try_echo=$ac_try;; | ||
14300 | esac | ||
14301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14302 | (eval "$ac_link") 2>&5 | ||
14303 | ac_status=$? | ||
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14306 | { (case "(($ac_try" in | ||
14307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14308 | *) ac_try_echo=$ac_try;; | ||
14309 | esac | ||
14310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14311 | (eval "$ac_try") 2>&5 | ||
14312 | ac_status=$? | ||
14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14314 | (exit $ac_status); }; }; then | ||
14315 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14316 | echo "${ECHO_T}yes" >&6; } | ||
14317 | else | ||
14318 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14319 | echo "$as_me: failed program was:" >&5 | ||
14320 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14321 | |||
14322 | ( exit $ac_status ) | ||
14323 | |||
14324 | cat >>confdefs.h <<\_ACEOF | ||
14325 | #define BROKEN_SETRESUID 1 | ||
14326 | _ACEOF | ||
14327 | |||
14328 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14329 | echo "${ECHO_T}not implemented" >&6; } | ||
14330 | fi | ||
14331 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14332 | fi | ||
14333 | |||
14334 | |||
14335 | |||
14336 | fi | ||
14337 | done | ||
14338 | |||
14339 | |||
14340 | |||
14341 | for ac_func in setresgid | ||
14342 | do | ||
14343 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14344 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14345 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14346 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14348 | else | ||
14349 | cat >conftest.$ac_ext <<_ACEOF | ||
14350 | /* confdefs.h. */ | ||
14351 | _ACEOF | ||
14352 | cat confdefs.h >>conftest.$ac_ext | ||
14353 | cat >>conftest.$ac_ext <<_ACEOF | ||
14354 | /* end confdefs.h. */ | ||
14355 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14356 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14357 | #define $ac_func innocuous_$ac_func | ||
14358 | |||
14359 | /* System header to define __stub macros and hopefully few prototypes, | ||
14360 | which can conflict with char $ac_func (); below. | ||
14361 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14362 | <limits.h> exists even on freestanding compilers. */ | ||
14363 | |||
14364 | #ifdef __STDC__ | ||
14365 | # include <limits.h> | ||
14366 | #else | ||
14367 | # include <assert.h> | ||
14368 | #endif | ||
14369 | |||
14370 | #undef $ac_func | ||
14371 | |||
14372 | /* Override any GCC internal prototype to avoid an error. | ||
14373 | Use char because int might match the return type of a GCC | ||
14374 | builtin and then its argument prototype would still apply. */ | ||
14375 | #ifdef __cplusplus | ||
14376 | extern "C" | ||
14377 | #endif | ||
14378 | char $ac_func (); | ||
14379 | /* The GNU C library defines this for functions which it implements | ||
14380 | to always fail with ENOSYS. Some functions are actually named | ||
14381 | something starting with __ and the normal name is an alias. */ | ||
14382 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14383 | choke me | ||
14384 | #endif | ||
14385 | |||
14386 | int | ||
14387 | main () | ||
14388 | { | ||
14389 | return $ac_func (); | ||
14390 | ; | ||
14391 | return 0; | ||
14392 | } | ||
14393 | _ACEOF | ||
14394 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14395 | if { (ac_try="$ac_link" | ||
14396 | case "(($ac_try" in | ||
14397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14398 | *) ac_try_echo=$ac_try;; | ||
14399 | esac | ||
14400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14401 | (eval "$ac_link") 2>conftest.er1 | ||
14402 | ac_status=$? | ||
14403 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14404 | rm -f conftest.er1 | ||
14405 | cat conftest.err >&5 | ||
14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14407 | (exit $ac_status); } && { | ||
14408 | test -z "$ac_c_werror_flag" || | ||
14409 | test ! -s conftest.err | ||
14410 | } && test -s conftest$ac_exeext && | ||
14411 | $as_test_x conftest$ac_exeext; then | ||
14412 | eval "$as_ac_var=yes" | ||
14413 | else | ||
14414 | echo "$as_me: failed program was:" >&5 | ||
14415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14416 | |||
14417 | eval "$as_ac_var=no" | ||
14418 | fi | ||
14419 | |||
14420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14421 | conftest$ac_exeext conftest.$ac_ext | ||
14422 | fi | ||
14423 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14424 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14425 | echo "${ECHO_T}$ac_res" >&6; } | ||
14426 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14427 | cat >>confdefs.h <<_ACEOF | ||
14428 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14429 | _ACEOF | ||
14430 | |||
14431 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
14432 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
14433 | if test "$cross_compiling" = yes; then | ||
14434 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14435 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14436 | |||
14437 | else | ||
14438 | cat >conftest.$ac_ext <<_ACEOF | ||
14439 | /* confdefs.h. */ | ||
14440 | _ACEOF | ||
14441 | cat confdefs.h >>conftest.$ac_ext | ||
14442 | cat >>conftest.$ac_ext <<_ACEOF | ||
14443 | /* end confdefs.h. */ | ||
14444 | |||
14445 | #include <stdlib.h> | ||
14446 | #include <errno.h> | ||
14447 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14448 | |||
14449 | _ACEOF | ||
14450 | rm -f conftest$ac_exeext | ||
14451 | if { (ac_try="$ac_link" | ||
14452 | case "(($ac_try" in | ||
14453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14454 | *) ac_try_echo=$ac_try;; | ||
14455 | esac | ||
14456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14457 | (eval "$ac_link") 2>&5 | ||
14458 | ac_status=$? | ||
14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14461 | { (case "(($ac_try" in | ||
14462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14463 | *) ac_try_echo=$ac_try;; | ||
14464 | esac | ||
14465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14466 | (eval "$ac_try") 2>&5 | ||
14467 | ac_status=$? | ||
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14469 | (exit $ac_status); }; }; then | ||
14470 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14471 | echo "${ECHO_T}yes" >&6; } | ||
14472 | else | ||
14473 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14474 | echo "$as_me: failed program was:" >&5 | ||
14475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14476 | |||
14477 | ( exit $ac_status ) | ||
14478 | |||
14479 | cat >>confdefs.h <<\_ACEOF | ||
14480 | #define BROKEN_SETRESGID 1 | ||
14481 | _ACEOF | ||
14482 | |||
14483 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14484 | echo "${ECHO_T}not implemented" >&6; } | ||
14485 | fi | ||
14486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14487 | fi | ||
14488 | |||
14489 | |||
14490 | |||
14491 | fi | ||
14492 | done | ||
14493 | |||
14494 | |||
14495 | |||
14496 | |||
14497 | for ac_func in gettimeofday time | ||
14498 | do | ||
14499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14500 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14502 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14504 | else | ||
14505 | cat >conftest.$ac_ext <<_ACEOF | ||
14506 | /* confdefs.h. */ | ||
14507 | _ACEOF | ||
14508 | cat confdefs.h >>conftest.$ac_ext | ||
14509 | cat >>conftest.$ac_ext <<_ACEOF | ||
14510 | /* end confdefs.h. */ | ||
14511 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14513 | #define $ac_func innocuous_$ac_func | ||
14514 | |||
14515 | /* System header to define __stub macros and hopefully few prototypes, | ||
14516 | which can conflict with char $ac_func (); below. | ||
14517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14518 | <limits.h> exists even on freestanding compilers. */ | ||
14519 | |||
14520 | #ifdef __STDC__ | ||
14521 | # include <limits.h> | ||
14522 | #else | ||
14523 | # include <assert.h> | ||
14524 | #endif | ||
14525 | |||
14526 | #undef $ac_func | ||
14527 | |||
14528 | /* Override any GCC internal prototype to avoid an error. | ||
14529 | Use char because int might match the return type of a GCC | ||
14530 | builtin and then its argument prototype would still apply. */ | ||
14531 | #ifdef __cplusplus | ||
14532 | extern "C" | ||
14533 | #endif | ||
14534 | char $ac_func (); | ||
14535 | /* The GNU C library defines this for functions which it implements | ||
14536 | to always fail with ENOSYS. Some functions are actually named | ||
14537 | something starting with __ and the normal name is an alias. */ | ||
14538 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14539 | choke me | ||
14540 | #endif | ||
14541 | |||
14542 | int | ||
14543 | main () | ||
14544 | { | ||
14545 | return $ac_func (); | ||
14546 | ; | ||
14547 | return 0; | ||
14548 | } | ||
14549 | _ACEOF | ||
14550 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14551 | if { (ac_try="$ac_link" | ||
14552 | case "(($ac_try" in | ||
14553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14554 | *) ac_try_echo=$ac_try;; | ||
14555 | esac | ||
14556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14557 | (eval "$ac_link") 2>conftest.er1 | ||
14558 | ac_status=$? | ||
14559 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14560 | rm -f conftest.er1 | ||
14561 | cat conftest.err >&5 | ||
14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14563 | (exit $ac_status); } && { | ||
14564 | test -z "$ac_c_werror_flag" || | ||
14565 | test ! -s conftest.err | ||
14566 | } && test -s conftest$ac_exeext && | ||
14567 | $as_test_x conftest$ac_exeext; then | ||
14568 | eval "$as_ac_var=yes" | ||
14569 | else | ||
14570 | echo "$as_me: failed program was:" >&5 | ||
14571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14572 | |||
14573 | eval "$as_ac_var=no" | ||
14574 | fi | ||
14575 | |||
14576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14577 | conftest$ac_exeext conftest.$ac_ext | ||
14578 | fi | ||
14579 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14581 | echo "${ECHO_T}$ac_res" >&6; } | ||
14582 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14583 | cat >>confdefs.h <<_ACEOF | ||
14584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14585 | _ACEOF | ||
14586 | |||
14587 | fi | ||
14588 | done | ||
14589 | |||
14590 | |||
14591 | |||
14592 | |||
14593 | |||
14594 | |||
14595 | |||
14596 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
14597 | do | ||
14598 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14599 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14600 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14601 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14603 | else | ||
14604 | cat >conftest.$ac_ext <<_ACEOF | ||
14605 | /* confdefs.h. */ | ||
14606 | _ACEOF | ||
14607 | cat confdefs.h >>conftest.$ac_ext | ||
14608 | cat >>conftest.$ac_ext <<_ACEOF | ||
14609 | /* end confdefs.h. */ | ||
14610 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14611 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14612 | #define $ac_func innocuous_$ac_func | ||
14613 | |||
14614 | /* System header to define __stub macros and hopefully few prototypes, | ||
14615 | which can conflict with char $ac_func (); below. | ||
14616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14617 | <limits.h> exists even on freestanding compilers. */ | ||
14618 | |||
14619 | #ifdef __STDC__ | ||
14620 | # include <limits.h> | ||
14621 | #else | ||
14622 | # include <assert.h> | ||
14623 | #endif | ||
14624 | |||
14625 | #undef $ac_func | ||
14626 | |||
14627 | /* Override any GCC internal prototype to avoid an error. | ||
14628 | Use char because int might match the return type of a GCC | ||
14629 | builtin and then its argument prototype would still apply. */ | ||
14630 | #ifdef __cplusplus | ||
14631 | extern "C" | ||
14632 | #endif | ||
14633 | char $ac_func (); | ||
14634 | /* The GNU C library defines this for functions which it implements | ||
14635 | to always fail with ENOSYS. Some functions are actually named | ||
14636 | something starting with __ and the normal name is an alias. */ | ||
14637 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14638 | choke me | ||
14639 | #endif | ||
14640 | |||
14641 | int | ||
14642 | main () | ||
14643 | { | ||
14644 | return $ac_func (); | ||
14645 | ; | ||
14646 | return 0; | ||
14647 | } | ||
14648 | _ACEOF | ||
14649 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14650 | if { (ac_try="$ac_link" | ||
14651 | case "(($ac_try" in | ||
14652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14653 | *) ac_try_echo=$ac_try;; | ||
14654 | esac | ||
14655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14656 | (eval "$ac_link") 2>conftest.er1 | ||
14657 | ac_status=$? | ||
14658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14659 | rm -f conftest.er1 | ||
14660 | cat conftest.err >&5 | ||
14661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14662 | (exit $ac_status); } && { | ||
14663 | test -z "$ac_c_werror_flag" || | ||
14664 | test ! -s conftest.err | ||
14665 | } && test -s conftest$ac_exeext && | ||
14666 | $as_test_x conftest$ac_exeext; then | ||
14667 | eval "$as_ac_var=yes" | ||
14668 | else | ||
14669 | echo "$as_me: failed program was:" >&5 | ||
14670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14671 | |||
14672 | eval "$as_ac_var=no" | ||
14673 | fi | ||
14674 | |||
14675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14676 | conftest$ac_exeext conftest.$ac_ext | ||
14677 | fi | ||
14678 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14679 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14680 | echo "${ECHO_T}$ac_res" >&6; } | ||
14681 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14682 | cat >>confdefs.h <<_ACEOF | ||
14683 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14684 | _ACEOF | ||
14685 | |||
14686 | fi | ||
14687 | done | ||
14688 | |||
14689 | |||
14690 | for ac_func in utmpname | ||
14691 | do | ||
14692 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14693 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14694 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14695 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14697 | else | ||
14698 | cat >conftest.$ac_ext <<_ACEOF | ||
14699 | /* confdefs.h. */ | ||
14700 | _ACEOF | ||
14701 | cat confdefs.h >>conftest.$ac_ext | ||
14702 | cat >>conftest.$ac_ext <<_ACEOF | ||
14703 | /* end confdefs.h. */ | ||
14704 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14706 | #define $ac_func innocuous_$ac_func | ||
14707 | |||
14708 | /* System header to define __stub macros and hopefully few prototypes, | ||
14709 | which can conflict with char $ac_func (); below. | ||
14710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14711 | <limits.h> exists even on freestanding compilers. */ | ||
14712 | |||
14713 | #ifdef __STDC__ | ||
14714 | # include <limits.h> | ||
14715 | #else | ||
14716 | # include <assert.h> | ||
14717 | #endif | ||
14718 | |||
14719 | #undef $ac_func | ||
14720 | |||
14721 | /* Override any GCC internal prototype to avoid an error. | ||
14722 | Use char because int might match the return type of a GCC | ||
14723 | builtin and then its argument prototype would still apply. */ | ||
14724 | #ifdef __cplusplus | ||
14725 | extern "C" | ||
14726 | #endif | ||
14727 | char $ac_func (); | ||
14728 | /* The GNU C library defines this for functions which it implements | ||
14729 | to always fail with ENOSYS. Some functions are actually named | ||
14730 | something starting with __ and the normal name is an alias. */ | ||
14731 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14732 | choke me | ||
14733 | #endif | ||
14734 | |||
14735 | int | ||
14736 | main () | ||
14737 | { | ||
14738 | return $ac_func (); | ||
14739 | ; | ||
14740 | return 0; | ||
14741 | } | ||
14742 | _ACEOF | ||
14743 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14744 | if { (ac_try="$ac_link" | ||
14745 | case "(($ac_try" in | ||
14746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14747 | *) ac_try_echo=$ac_try;; | ||
14748 | esac | ||
14749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14750 | (eval "$ac_link") 2>conftest.er1 | ||
14751 | ac_status=$? | ||
14752 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14753 | rm -f conftest.er1 | ||
14754 | cat conftest.err >&5 | ||
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14756 | (exit $ac_status); } && { | ||
14757 | test -z "$ac_c_werror_flag" || | ||
14758 | test ! -s conftest.err | ||
14759 | } && test -s conftest$ac_exeext && | ||
14760 | $as_test_x conftest$ac_exeext; then | ||
14761 | eval "$as_ac_var=yes" | ||
14762 | else | ||
14763 | echo "$as_me: failed program was:" >&5 | ||
14764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14765 | |||
14766 | eval "$as_ac_var=no" | ||
14767 | fi | ||
14768 | |||
14769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14770 | conftest$ac_exeext conftest.$ac_ext | ||
14771 | fi | ||
14772 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14774 | echo "${ECHO_T}$ac_res" >&6; } | ||
14775 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14776 | cat >>confdefs.h <<_ACEOF | ||
14777 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14778 | _ACEOF | ||
14779 | |||
14780 | fi | ||
14781 | done | ||
14782 | |||
14783 | |||
14784 | |||
14785 | |||
14786 | |||
14787 | |||
14788 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
14789 | do | ||
14790 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14791 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14792 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14793 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14795 | else | ||
14796 | cat >conftest.$ac_ext <<_ACEOF | ||
14797 | /* confdefs.h. */ | ||
14798 | _ACEOF | ||
14799 | cat confdefs.h >>conftest.$ac_ext | ||
14800 | cat >>conftest.$ac_ext <<_ACEOF | ||
14801 | /* end confdefs.h. */ | ||
14802 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14804 | #define $ac_func innocuous_$ac_func | ||
14805 | |||
14806 | /* System header to define __stub macros and hopefully few prototypes, | ||
14807 | which can conflict with char $ac_func (); below. | ||
14808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14809 | <limits.h> exists even on freestanding compilers. */ | ||
14810 | |||
14811 | #ifdef __STDC__ | ||
14812 | # include <limits.h> | ||
14813 | #else | ||
14814 | # include <assert.h> | ||
14815 | #endif | ||
14816 | |||
14817 | #undef $ac_func | ||
14818 | |||
14819 | /* Override any GCC internal prototype to avoid an error. | ||
14820 | Use char because int might match the return type of a GCC | ||
14821 | builtin and then its argument prototype would still apply. */ | ||
14822 | #ifdef __cplusplus | ||
14823 | extern "C" | ||
14824 | #endif | ||
14825 | char $ac_func (); | ||
14826 | /* The GNU C library defines this for functions which it implements | ||
14827 | to always fail with ENOSYS. Some functions are actually named | ||
14828 | something starting with __ and the normal name is an alias. */ | ||
14829 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14830 | choke me | ||
14831 | #endif | ||
14832 | |||
14833 | int | ||
14834 | main () | ||
14835 | { | ||
14836 | return $ac_func (); | ||
14837 | ; | ||
14838 | return 0; | ||
14839 | } | ||
14840 | _ACEOF | ||
14841 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14842 | if { (ac_try="$ac_link" | ||
14843 | case "(($ac_try" in | ||
14844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14845 | *) ac_try_echo=$ac_try;; | ||
14846 | esac | ||
14847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14848 | (eval "$ac_link") 2>conftest.er1 | ||
14849 | ac_status=$? | ||
14850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14851 | rm -f conftest.er1 | ||
14852 | cat conftest.err >&5 | ||
14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14854 | (exit $ac_status); } && { | ||
14855 | test -z "$ac_c_werror_flag" || | ||
14856 | test ! -s conftest.err | ||
14857 | } && test -s conftest$ac_exeext && | ||
14858 | $as_test_x conftest$ac_exeext; then | ||
14859 | eval "$as_ac_var=yes" | ||
14860 | else | ||
14861 | echo "$as_me: failed program was:" >&5 | ||
14862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14863 | |||
14864 | eval "$as_ac_var=no" | ||
14865 | fi | ||
14866 | |||
14867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14868 | conftest$ac_exeext conftest.$ac_ext | ||
14869 | fi | ||
14870 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14871 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14872 | echo "${ECHO_T}$ac_res" >&6; } | ||
14873 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14874 | cat >>confdefs.h <<_ACEOF | ||
14875 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14876 | _ACEOF | ||
14877 | |||
14878 | fi | ||
14879 | done | ||
14880 | |||
14881 | |||
14882 | |||
14883 | for ac_func in setutxent utmpxname | ||
14884 | do | ||
14885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14886 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14888 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14890 | else | ||
14891 | cat >conftest.$ac_ext <<_ACEOF | ||
14892 | /* confdefs.h. */ | ||
14893 | _ACEOF | ||
14894 | cat confdefs.h >>conftest.$ac_ext | ||
14895 | cat >>conftest.$ac_ext <<_ACEOF | ||
14896 | /* end confdefs.h. */ | ||
14897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14899 | #define $ac_func innocuous_$ac_func | ||
14900 | |||
14901 | /* System header to define __stub macros and hopefully few prototypes, | ||
14902 | which can conflict with char $ac_func (); below. | ||
14903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14904 | <limits.h> exists even on freestanding compilers. */ | ||
14905 | |||
14906 | #ifdef __STDC__ | ||
14907 | # include <limits.h> | ||
14908 | #else | ||
14909 | # include <assert.h> | ||
14910 | #endif | ||
14911 | |||
14912 | #undef $ac_func | ||
14913 | |||
14914 | /* Override any GCC internal prototype to avoid an error. | ||
14915 | Use char because int might match the return type of a GCC | ||
14916 | builtin and then its argument prototype would still apply. */ | ||
14917 | #ifdef __cplusplus | ||
14918 | extern "C" | ||
14919 | #endif | ||
14920 | char $ac_func (); | ||
14921 | /* The GNU C library defines this for functions which it implements | ||
14922 | to always fail with ENOSYS. Some functions are actually named | ||
14923 | something starting with __ and the normal name is an alias. */ | ||
14924 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14925 | choke me | ||
14926 | #endif | ||
14927 | |||
14928 | int | ||
14929 | main () | ||
14930 | { | ||
14931 | return $ac_func (); | ||
14932 | ; | ||
14933 | return 0; | ||
14934 | } | ||
14935 | _ACEOF | ||
14936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14937 | if { (ac_try="$ac_link" | ||
14938 | case "(($ac_try" in | ||
14939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14940 | *) ac_try_echo=$ac_try;; | ||
14941 | esac | ||
14942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14943 | (eval "$ac_link") 2>conftest.er1 | ||
14944 | ac_status=$? | ||
14945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14946 | rm -f conftest.er1 | ||
14947 | cat conftest.err >&5 | ||
14948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14949 | (exit $ac_status); } && { | ||
14950 | test -z "$ac_c_werror_flag" || | ||
14951 | test ! -s conftest.err | ||
14952 | } && test -s conftest$ac_exeext && | ||
14953 | $as_test_x conftest$ac_exeext; then | ||
14954 | eval "$as_ac_var=yes" | ||
14955 | else | ||
14956 | echo "$as_me: failed program was:" >&5 | ||
14957 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14958 | |||
14959 | eval "$as_ac_var=no" | ||
14960 | fi | ||
14961 | |||
14962 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14963 | conftest$ac_exeext conftest.$ac_ext | ||
14964 | fi | ||
14965 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14966 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14967 | echo "${ECHO_T}$ac_res" >&6; } | ||
14968 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14969 | cat >>confdefs.h <<_ACEOF | ||
14970 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14971 | _ACEOF | ||
14972 | |||
14973 | fi | ||
14974 | done | ||
14975 | |||
14976 | |||
14977 | for ac_func in getlastlogxbyname | ||
14978 | do | ||
14979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14980 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14982 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14984 | else | ||
14985 | cat >conftest.$ac_ext <<_ACEOF | ||
14986 | /* confdefs.h. */ | ||
14987 | _ACEOF | ||
14988 | cat confdefs.h >>conftest.$ac_ext | ||
14989 | cat >>conftest.$ac_ext <<_ACEOF | ||
14990 | /* end confdefs.h. */ | ||
14991 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14992 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14993 | #define $ac_func innocuous_$ac_func | ||
14994 | |||
14995 | /* System header to define __stub macros and hopefully few prototypes, | ||
14996 | which can conflict with char $ac_func (); below. | ||
14997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14998 | <limits.h> exists even on freestanding compilers. */ | ||
14999 | |||
15000 | #ifdef __STDC__ | ||
15001 | # include <limits.h> | ||
15002 | #else | ||
15003 | # include <assert.h> | ||
15004 | #endif | ||
15005 | |||
15006 | #undef $ac_func | ||
15007 | |||
15008 | /* Override any GCC internal prototype to avoid an error. | ||
15009 | Use char because int might match the return type of a GCC | ||
15010 | builtin and then its argument prototype would still apply. */ | ||
15011 | #ifdef __cplusplus | ||
15012 | extern "C" | ||
15013 | #endif | ||
15014 | char $ac_func (); | ||
15015 | /* The GNU C library defines this for functions which it implements | ||
15016 | to always fail with ENOSYS. Some functions are actually named | ||
15017 | something starting with __ and the normal name is an alias. */ | ||
15018 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15019 | choke me | ||
15020 | #endif | ||
15021 | |||
15022 | int | ||
15023 | main () | ||
15024 | { | ||
15025 | return $ac_func (); | ||
15026 | ; | ||
15027 | return 0; | ||
15028 | } | ||
15029 | _ACEOF | ||
15030 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15031 | if { (ac_try="$ac_link" | ||
15032 | case "(($ac_try" in | ||
15033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15034 | *) ac_try_echo=$ac_try;; | ||
15035 | esac | ||
15036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15037 | (eval "$ac_link") 2>conftest.er1 | ||
15038 | ac_status=$? | ||
15039 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15040 | rm -f conftest.er1 | ||
15041 | cat conftest.err >&5 | ||
15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15043 | (exit $ac_status); } && { | ||
15044 | test -z "$ac_c_werror_flag" || | ||
15045 | test ! -s conftest.err | ||
15046 | } && test -s conftest$ac_exeext && | ||
15047 | $as_test_x conftest$ac_exeext; then | ||
15048 | eval "$as_ac_var=yes" | ||
15049 | else | ||
15050 | echo "$as_me: failed program was:" >&5 | ||
15051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15052 | |||
15053 | eval "$as_ac_var=no" | ||
15054 | fi | ||
15055 | |||
15056 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15057 | conftest$ac_exeext conftest.$ac_ext | ||
15058 | fi | ||
15059 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15061 | echo "${ECHO_T}$ac_res" >&6; } | ||
15062 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15063 | cat >>confdefs.h <<_ACEOF | ||
15064 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15065 | _ACEOF | ||
15066 | |||
15067 | fi | ||
15068 | done | ||
15069 | |||
15070 | |||
15071 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
15072 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
15073 | if test "${ac_cv_func_daemon+set}" = set; then | ||
15074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15075 | else | ||
15076 | cat >conftest.$ac_ext <<_ACEOF | ||
15077 | /* confdefs.h. */ | ||
15078 | _ACEOF | ||
15079 | cat confdefs.h >>conftest.$ac_ext | ||
15080 | cat >>conftest.$ac_ext <<_ACEOF | ||
15081 | /* end confdefs.h. */ | ||
15082 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
15083 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15084 | #define daemon innocuous_daemon | ||
15085 | |||
15086 | /* System header to define __stub macros and hopefully few prototypes, | ||
15087 | which can conflict with char daemon (); below. | ||
15088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15089 | <limits.h> exists even on freestanding compilers. */ | ||
15090 | |||
15091 | #ifdef __STDC__ | ||
15092 | # include <limits.h> | ||
15093 | #else | ||
15094 | # include <assert.h> | ||
15095 | #endif | ||
15096 | |||
15097 | #undef daemon | ||
15098 | |||
15099 | /* Override any GCC internal prototype to avoid an error. | ||
15100 | Use char because int might match the return type of a GCC | ||
15101 | builtin and then its argument prototype would still apply. */ | ||
15102 | #ifdef __cplusplus | ||
15103 | extern "C" | ||
15104 | #endif | ||
15105 | char daemon (); | ||
15106 | /* The GNU C library defines this for functions which it implements | ||
15107 | to always fail with ENOSYS. Some functions are actually named | ||
15108 | something starting with __ and the normal name is an alias. */ | ||
15109 | #if defined __stub_daemon || defined __stub___daemon | ||
15110 | choke me | ||
15111 | #endif | ||
15112 | |||
15113 | int | ||
15114 | main () | ||
15115 | { | ||
15116 | return daemon (); | ||
15117 | ; | ||
15118 | return 0; | ||
15119 | } | ||
15120 | _ACEOF | ||
15121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15122 | if { (ac_try="$ac_link" | ||
15123 | case "(($ac_try" in | ||
15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15125 | *) ac_try_echo=$ac_try;; | ||
15126 | esac | ||
15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15128 | (eval "$ac_link") 2>conftest.er1 | ||
15129 | ac_status=$? | ||
15130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15131 | rm -f conftest.er1 | ||
15132 | cat conftest.err >&5 | ||
15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15134 | (exit $ac_status); } && { | ||
15135 | test -z "$ac_c_werror_flag" || | ||
15136 | test ! -s conftest.err | ||
15137 | } && test -s conftest$ac_exeext && | ||
15138 | $as_test_x conftest$ac_exeext; then | ||
15139 | ac_cv_func_daemon=yes | ||
15140 | else | ||
15141 | echo "$as_me: failed program was:" >&5 | ||
15142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15143 | |||
15144 | ac_cv_func_daemon=no | ||
15145 | fi | ||
15146 | |||
15147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15148 | conftest$ac_exeext conftest.$ac_ext | ||
15149 | fi | ||
15150 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
15151 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
15152 | if test $ac_cv_func_daemon = yes; then | ||
15153 | |||
15154 | cat >>confdefs.h <<\_ACEOF | ||
15155 | #define HAVE_DAEMON 1 | ||
15156 | _ACEOF | ||
15157 | |||
15158 | else | ||
15159 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
15160 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
15161 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15163 | else | ||
15164 | ac_check_lib_save_LIBS=$LIBS | ||
15165 | LIBS="-lbsd $LIBS" | ||
15166 | cat >conftest.$ac_ext <<_ACEOF | ||
15167 | /* confdefs.h. */ | ||
15168 | _ACEOF | ||
15169 | cat confdefs.h >>conftest.$ac_ext | ||
15170 | cat >>conftest.$ac_ext <<_ACEOF | ||
15171 | /* end confdefs.h. */ | ||
15172 | |||
15173 | /* Override any GCC internal prototype to avoid an error. | ||
15174 | Use char because int might match the return type of a GCC | ||
15175 | builtin and then its argument prototype would still apply. */ | ||
15176 | #ifdef __cplusplus | ||
15177 | extern "C" | ||
15178 | #endif | ||
15179 | char daemon (); | ||
15180 | int | ||
15181 | main () | ||
15182 | { | ||
15183 | return daemon (); | ||
15184 | ; | ||
15185 | return 0; | ||
15186 | } | ||
15187 | _ACEOF | ||
15188 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15189 | if { (ac_try="$ac_link" | ||
15190 | case "(($ac_try" in | ||
15191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15192 | *) ac_try_echo=$ac_try;; | ||
15193 | esac | ||
15194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15195 | (eval "$ac_link") 2>conftest.er1 | ||
15196 | ac_status=$? | ||
15197 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15198 | rm -f conftest.er1 | ||
15199 | cat conftest.err >&5 | ||
15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15201 | (exit $ac_status); } && { | ||
15202 | test -z "$ac_c_werror_flag" || | ||
15203 | test ! -s conftest.err | ||
15204 | } && test -s conftest$ac_exeext && | ||
15205 | $as_test_x conftest$ac_exeext; then | ||
15206 | ac_cv_lib_bsd_daemon=yes | ||
15207 | else | ||
15208 | echo "$as_me: failed program was:" >&5 | ||
15209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15210 | |||
15211 | ac_cv_lib_bsd_daemon=no | ||
15212 | fi | ||
15213 | |||
15214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15215 | conftest$ac_exeext conftest.$ac_ext | ||
15216 | LIBS=$ac_check_lib_save_LIBS | ||
15217 | fi | ||
15218 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
15219 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
15220 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
15221 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
15222 | #define HAVE_DAEMON 1 | ||
15223 | _ACEOF | ||
15224 | |||
15225 | fi | ||
15226 | |||
15227 | |||
15228 | fi | ||
15229 | |||
15230 | |||
15231 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
15232 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
15233 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
15234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15235 | else | ||
15236 | cat >conftest.$ac_ext <<_ACEOF | ||
15237 | /* confdefs.h. */ | ||
15238 | _ACEOF | ||
15239 | cat confdefs.h >>conftest.$ac_ext | ||
15240 | cat >>conftest.$ac_ext <<_ACEOF | ||
15241 | /* end confdefs.h. */ | ||
15242 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
15243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15244 | #define getpagesize innocuous_getpagesize | ||
15245 | |||
15246 | /* System header to define __stub macros and hopefully few prototypes, | ||
15247 | which can conflict with char getpagesize (); below. | ||
15248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15249 | <limits.h> exists even on freestanding compilers. */ | ||
15250 | |||
15251 | #ifdef __STDC__ | ||
15252 | # include <limits.h> | ||
15253 | #else | ||
15254 | # include <assert.h> | ||
15255 | #endif | ||
15256 | |||
15257 | #undef getpagesize | ||
15258 | |||
15259 | /* Override any GCC internal prototype to avoid an error. | ||
15260 | Use char because int might match the return type of a GCC | ||
15261 | builtin and then its argument prototype would still apply. */ | ||
15262 | #ifdef __cplusplus | ||
15263 | extern "C" | ||
15264 | #endif | ||
15265 | char getpagesize (); | ||
15266 | /* The GNU C library defines this for functions which it implements | ||
15267 | to always fail with ENOSYS. Some functions are actually named | ||
15268 | something starting with __ and the normal name is an alias. */ | ||
15269 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
15270 | choke me | ||
15271 | #endif | ||
15272 | |||
15273 | int | ||
15274 | main () | ||
15275 | { | ||
15276 | return getpagesize (); | ||
15277 | ; | ||
15278 | return 0; | ||
15279 | } | ||
15280 | _ACEOF | ||
15281 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15282 | if { (ac_try="$ac_link" | ||
15283 | case "(($ac_try" in | ||
15284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15285 | *) ac_try_echo=$ac_try;; | ||
15286 | esac | ||
15287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15288 | (eval "$ac_link") 2>conftest.er1 | ||
15289 | ac_status=$? | ||
15290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15291 | rm -f conftest.er1 | ||
15292 | cat conftest.err >&5 | ||
15293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15294 | (exit $ac_status); } && { | ||
15295 | test -z "$ac_c_werror_flag" || | ||
15296 | test ! -s conftest.err | ||
15297 | } && test -s conftest$ac_exeext && | ||
15298 | $as_test_x conftest$ac_exeext; then | ||
15299 | ac_cv_func_getpagesize=yes | ||
15300 | else | ||
15301 | echo "$as_me: failed program was:" >&5 | ||
15302 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15303 | |||
15304 | ac_cv_func_getpagesize=no | ||
15305 | fi | ||
15306 | |||
15307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15308 | conftest$ac_exeext conftest.$ac_ext | ||
15309 | fi | ||
15310 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
15311 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
15312 | if test $ac_cv_func_getpagesize = yes; then | ||
15313 | |||
15314 | cat >>confdefs.h <<\_ACEOF | ||
15315 | #define HAVE_GETPAGESIZE 1 | ||
15316 | _ACEOF | ||
15317 | |||
15318 | else | ||
15319 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
15320 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
15321 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
15322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15323 | else | ||
15324 | ac_check_lib_save_LIBS=$LIBS | ||
15325 | LIBS="-lucb $LIBS" | ||
15326 | cat >conftest.$ac_ext <<_ACEOF | ||
15327 | /* confdefs.h. */ | ||
15328 | _ACEOF | ||
15329 | cat confdefs.h >>conftest.$ac_ext | ||
15330 | cat >>conftest.$ac_ext <<_ACEOF | ||
15331 | /* end confdefs.h. */ | ||
15332 | |||
15333 | /* Override any GCC internal prototype to avoid an error. | ||
15334 | Use char because int might match the return type of a GCC | ||
15335 | builtin and then its argument prototype would still apply. */ | ||
15336 | #ifdef __cplusplus | ||
15337 | extern "C" | ||
15338 | #endif | ||
15339 | char getpagesize (); | ||
15340 | int | ||
15341 | main () | ||
15342 | { | ||
15343 | return getpagesize (); | ||
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 | ac_cv_lib_ucb_getpagesize=yes | ||
15367 | else | ||
15368 | echo "$as_me: failed program was:" >&5 | ||
15369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15370 | |||
15371 | ac_cv_lib_ucb_getpagesize=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 | LIBS=$ac_check_lib_save_LIBS | ||
15377 | fi | ||
15378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
15379 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
15380 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
15381 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
15382 | #define HAVE_GETPAGESIZE 1 | ||
15383 | _ACEOF | ||
15384 | |||
15385 | fi | ||
15386 | |||
15387 | |||
15388 | fi | ||
15389 | |||
15390 | |||
15391 | # Check for broken snprintf | ||
15392 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
15393 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
15394 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
15395 | if test "$cross_compiling" = yes; then | ||
15396 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15397 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15398 | |||
15399 | else | ||
15400 | cat >conftest.$ac_ext <<_ACEOF | ||
15401 | /* confdefs.h. */ | ||
15402 | _ACEOF | ||
15403 | cat confdefs.h >>conftest.$ac_ext | ||
15404 | cat >>conftest.$ac_ext <<_ACEOF | ||
15405 | /* end confdefs.h. */ | ||
15406 | |||
15407 | #include <stdio.h> | ||
15408 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
15409 | |||
15410 | _ACEOF | ||
15411 | rm -f conftest$ac_exeext | ||
15412 | if { (ac_try="$ac_link" | ||
15413 | case "(($ac_try" in | ||
15414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15415 | *) ac_try_echo=$ac_try;; | ||
15416 | esac | ||
15417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15418 | (eval "$ac_link") 2>&5 | ||
15419 | ac_status=$? | ||
15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15422 | { (case "(($ac_try" in | ||
15423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15424 | *) ac_try_echo=$ac_try;; | ||
15425 | esac | ||
15426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15427 | (eval "$ac_try") 2>&5 | ||
15428 | ac_status=$? | ||
15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15430 | (exit $ac_status); }; }; then | ||
15431 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15432 | echo "${ECHO_T}yes" >&6; } | ||
15433 | else | ||
15434 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15435 | echo "$as_me: failed program was:" >&5 | ||
15436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15437 | |||
15438 | ( exit $ac_status ) | ||
15439 | |||
15440 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15441 | echo "${ECHO_T}no" >&6; } | ||
15442 | |||
15443 | cat >>confdefs.h <<\_ACEOF | ||
15444 | #define BROKEN_SNPRINTF 1 | ||
15445 | _ACEOF | ||
15446 | |||
15447 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
15448 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
15449 | |||
15450 | fi | ||
15451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15452 | fi | ||
15453 | |||
15454 | |||
15455 | fi | ||
15456 | |||
15457 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
15458 | # returning the right thing on overflow: the number of characters it tried to | ||
15459 | # create (as per SUSv3) | ||
15460 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
15461 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
15462 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
15463 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
15464 | if test "$cross_compiling" = yes; then | ||
15465 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
15466 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
15467 | |||
15468 | else | ||
15469 | cat >conftest.$ac_ext <<_ACEOF | ||
15470 | /* confdefs.h. */ | ||
15471 | _ACEOF | ||
15472 | cat confdefs.h >>conftest.$ac_ext | ||
15473 | cat >>conftest.$ac_ext <<_ACEOF | ||
15474 | /* end confdefs.h. */ | ||
15475 | |||
15476 | #include <sys/types.h> | ||
15477 | #include <stdio.h> | ||
15478 | #include <stdarg.h> | ||
15479 | |||
15480 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
15481 | { | ||
15482 | size_t ret; va_list ap; | ||
15483 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
15484 | return ret; | ||
15485 | } | ||
15486 | int main(void) | ||
15487 | { | ||
15488 | char x[1]; | ||
15489 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
15490 | } | ||
15491 | _ACEOF | ||
15492 | rm -f conftest$ac_exeext | ||
15493 | if { (ac_try="$ac_link" | ||
15494 | case "(($ac_try" in | ||
15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15496 | *) ac_try_echo=$ac_try;; | ||
15497 | esac | ||
15498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15499 | (eval "$ac_link") 2>&5 | ||
15500 | ac_status=$? | ||
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15503 | { (case "(($ac_try" in | ||
15504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15505 | *) ac_try_echo=$ac_try;; | ||
15506 | esac | ||
15507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15508 | (eval "$ac_try") 2>&5 | ||
15509 | ac_status=$? | ||
15510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15511 | (exit $ac_status); }; }; then | ||
15512 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15513 | echo "${ECHO_T}yes" >&6; } | ||
15514 | else | ||
15515 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15516 | echo "$as_me: failed program was:" >&5 | ||
15517 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15518 | |||
15519 | ( exit $ac_status ) | ||
15520 | |||
15521 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15522 | echo "${ECHO_T}no" >&6; } | ||
15523 | |||
15524 | cat >>confdefs.h <<\_ACEOF | ||
15525 | #define BROKEN_SNPRINTF 1 | ||
15526 | _ACEOF | ||
15527 | |||
15528 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
15529 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
15530 | |||
15531 | fi | ||
15532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15533 | fi | ||
15534 | |||
15535 | |||
15536 | fi | ||
15537 | |||
15538 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
15539 | # check that the fmt argument is const char * or just char *. | ||
15540 | # This is only useful for when BROKEN_SNPRINTF | ||
15541 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
15542 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
15543 | cat >conftest.$ac_ext <<_ACEOF | ||
15544 | /* confdefs.h. */ | ||
15545 | _ACEOF | ||
15546 | cat confdefs.h >>conftest.$ac_ext | ||
15547 | cat >>conftest.$ac_ext <<_ACEOF | ||
15548 | /* end confdefs.h. */ | ||
15549 | #include <stdio.h> | ||
15550 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
15551 | int main(void) { snprintf(0, 0, 0); } | ||
15552 | |||
15553 | _ACEOF | ||
15554 | rm -f conftest.$ac_objext | ||
15555 | if { (ac_try="$ac_compile" | ||
15556 | case "(($ac_try" in | ||
15557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15558 | *) ac_try_echo=$ac_try;; | ||
15559 | esac | ||
15560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15561 | (eval "$ac_compile") 2>conftest.er1 | ||
15562 | ac_status=$? | ||
15563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15564 | rm -f conftest.er1 | ||
15565 | cat conftest.err >&5 | ||
15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15567 | (exit $ac_status); } && { | ||
15568 | test -z "$ac_c_werror_flag" || | ||
15569 | test ! -s conftest.err | ||
15570 | } && test -s conftest.$ac_objext; then | ||
15571 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15572 | echo "${ECHO_T}yes" >&6; } | ||
15573 | |||
15574 | cat >>confdefs.h <<\_ACEOF | ||
15575 | #define SNPRINTF_CONST const | ||
15576 | _ACEOF | ||
15577 | |||
15578 | else | ||
15579 | echo "$as_me: failed program was:" >&5 | ||
15580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15581 | |||
15582 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15583 | echo "${ECHO_T}no" >&6; } | ||
15584 | cat >>confdefs.h <<\_ACEOF | ||
15585 | #define SNPRINTF_CONST /* not const */ | ||
15586 | _ACEOF | ||
15587 | |||
15588 | fi | ||
15589 | |||
15590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15591 | |||
15592 | # Check for missing getpeereid (or equiv) support | ||
15593 | NO_PEERCHECK="" | ||
15594 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
15595 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
15596 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
15597 | cat >conftest.$ac_ext <<_ACEOF | ||
15598 | /* confdefs.h. */ | ||
15599 | _ACEOF | ||
15600 | cat confdefs.h >>conftest.$ac_ext | ||
15601 | cat >>conftest.$ac_ext <<_ACEOF | ||
15602 | /* end confdefs.h. */ | ||
15603 | #include <sys/types.h> | ||
15604 | #include <sys/socket.h> | ||
15605 | int | ||
15606 | main () | ||
15607 | { | ||
15608 | int i = SO_PEERCRED; | ||
15609 | ; | ||
15610 | return 0; | ||
15611 | } | ||
15612 | _ACEOF | ||
15613 | rm -f conftest.$ac_objext | ||
15614 | if { (ac_try="$ac_compile" | ||
15615 | case "(($ac_try" in | ||
15616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15617 | *) ac_try_echo=$ac_try;; | ||
15618 | esac | ||
15619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15620 | (eval "$ac_compile") 2>conftest.er1 | ||
15621 | ac_status=$? | ||
15622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15623 | rm -f conftest.er1 | ||
15624 | cat conftest.err >&5 | ||
15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15626 | (exit $ac_status); } && { | ||
15627 | test -z "$ac_c_werror_flag" || | ||
15628 | test ! -s conftest.err | ||
15629 | } && test -s conftest.$ac_objext; then | ||
15630 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15631 | echo "${ECHO_T}yes" >&6; } | ||
15632 | |||
15633 | cat >>confdefs.h <<\_ACEOF | ||
15634 | #define HAVE_SO_PEERCRED 1 | ||
15635 | _ACEOF | ||
15636 | |||
15637 | |||
15638 | else | ||
15639 | echo "$as_me: failed program was:" >&5 | ||
15640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15641 | |||
15642 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15643 | echo "${ECHO_T}no" >&6; } | ||
15644 | NO_PEERCHECK=1 | ||
15645 | |||
15646 | fi | ||
15647 | |||
15648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15649 | fi | ||
15650 | |||
15651 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
15652 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
15653 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
15654 | if test "$cross_compiling" = yes; then | ||
15655 | |||
15656 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15657 | echo "${ECHO_T}yes" >&6; } | ||
15658 | cat >>confdefs.h <<\_ACEOF | ||
15659 | #define HAVE_STRICT_MKSTEMP 1 | ||
15660 | _ACEOF | ||
15661 | |||
15662 | |||
15663 | |||
15664 | else | ||
15665 | cat >conftest.$ac_ext <<_ACEOF | ||
15666 | /* confdefs.h. */ | ||
15667 | _ACEOF | ||
15668 | cat confdefs.h >>conftest.$ac_ext | ||
15669 | cat >>conftest.$ac_ext <<_ACEOF | ||
15670 | /* end confdefs.h. */ | ||
15671 | |||
15672 | #include <stdlib.h> | ||
15673 | main() { char template[]="conftest.mkstemp-test"; | ||
15674 | if (mkstemp(template) == -1) | ||
15675 | exit(1); | ||
15676 | unlink(template); exit(0); | ||
15677 | } | ||
15678 | |||
15679 | _ACEOF | ||
15680 | rm -f conftest$ac_exeext | ||
15681 | if { (ac_try="$ac_link" | ||
15682 | case "(($ac_try" in | ||
15683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15684 | *) ac_try_echo=$ac_try;; | ||
15685 | esac | ||
15686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15687 | (eval "$ac_link") 2>&5 | ||
15688 | ac_status=$? | ||
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15690 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15691 | { (case "(($ac_try" in | ||
15692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15693 | *) ac_try_echo=$ac_try;; | ||
15694 | esac | ||
15695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15696 | (eval "$ac_try") 2>&5 | ||
15697 | ac_status=$? | ||
15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15699 | (exit $ac_status); }; }; then | ||
15700 | |||
15701 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15702 | echo "${ECHO_T}no" >&6; } | ||
15703 | |||
15704 | else | ||
15705 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15706 | echo "$as_me: failed program was:" >&5 | ||
15707 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15708 | |||
15709 | ( exit $ac_status ) | ||
15710 | |||
15711 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15712 | echo "${ECHO_T}yes" >&6; } | ||
15713 | |||
15714 | cat >>confdefs.h <<\_ACEOF | ||
15715 | #define HAVE_STRICT_MKSTEMP 1 | ||
15716 | _ACEOF | ||
15717 | |||
15718 | |||
15719 | fi | ||
15720 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15721 | fi | ||
15722 | |||
15723 | |||
15724 | fi | ||
15725 | |||
15726 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
15727 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
15728 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
15729 | if test "$cross_compiling" = yes; then | ||
15730 | |||
15731 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15732 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15733 | |||
15734 | |||
15735 | else | ||
15736 | cat >conftest.$ac_ext <<_ACEOF | ||
15737 | /* confdefs.h. */ | ||
15738 | _ACEOF | ||
15739 | cat confdefs.h >>conftest.$ac_ext | ||
15740 | cat >>conftest.$ac_ext <<_ACEOF | ||
15741 | /* end confdefs.h. */ | ||
15742 | |||
15743 | #include <stdio.h> | ||
15744 | #include <sys/fcntl.h> | ||
15745 | #include <sys/types.h> | ||
15746 | #include <sys/wait.h> | ||
15747 | |||
15748 | int | ||
15749 | main() | ||
15750 | { | ||
15751 | pid_t pid; | ||
15752 | int fd, ptyfd, ttyfd, status; | ||
15753 | |||
15754 | pid = fork(); | ||
15755 | if (pid < 0) { /* failed */ | ||
15756 | exit(1); | ||
15757 | } else if (pid > 0) { /* parent */ | ||
15758 | waitpid(pid, &status, 0); | ||
15759 | if (WIFEXITED(status)) | ||
15760 | exit(WEXITSTATUS(status)); | ||
15761 | else | ||
15762 | exit(2); | ||
15763 | } else { /* child */ | ||
15764 | close(0); close(1); close(2); | ||
15765 | setsid(); | ||
15766 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
15767 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
15768 | if (fd >= 0) | ||
15769 | exit(3); /* Acquired ctty: broken */ | ||
15770 | else | ||
15771 | exit(0); /* Did not acquire ctty: OK */ | ||
15772 | } | ||
15773 | } | ||
15774 | |||
15775 | _ACEOF | ||
15776 | rm -f conftest$ac_exeext | ||
15777 | if { (ac_try="$ac_link" | ||
15778 | case "(($ac_try" in | ||
15779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15780 | *) ac_try_echo=$ac_try;; | ||
15781 | esac | ||
15782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15783 | (eval "$ac_link") 2>&5 | ||
15784 | ac_status=$? | ||
15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15787 | { (case "(($ac_try" in | ||
15788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15789 | *) ac_try_echo=$ac_try;; | ||
15790 | esac | ||
15791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15792 | (eval "$ac_try") 2>&5 | ||
15793 | ac_status=$? | ||
15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15795 | (exit $ac_status); }; }; then | ||
15796 | |||
15797 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15798 | echo "${ECHO_T}yes" >&6; } | ||
15799 | |||
15800 | else | ||
15801 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15802 | echo "$as_me: failed program was:" >&5 | ||
15803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15804 | |||
15805 | ( exit $ac_status ) | ||
15806 | |||
15807 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15808 | echo "${ECHO_T}no" >&6; } | ||
15809 | cat >>confdefs.h <<\_ACEOF | ||
15810 | #define SSHD_ACQUIRES_CTTY 1 | ||
15811 | _ACEOF | ||
15812 | |||
15813 | |||
15814 | fi | ||
15815 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15816 | fi | ||
15817 | |||
15818 | |||
15819 | fi | ||
15820 | |||
15821 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15822 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
15823 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15824 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15825 | if test "$cross_compiling" = yes; then | ||
15826 | |||
15827 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15828 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15829 | |||
15830 | |||
15831 | else | ||
15832 | cat >conftest.$ac_ext <<_ACEOF | ||
15833 | /* confdefs.h. */ | ||
15834 | _ACEOF | ||
15835 | cat confdefs.h >>conftest.$ac_ext | ||
15836 | cat >>conftest.$ac_ext <<_ACEOF | ||
15837 | /* end confdefs.h. */ | ||
15838 | |||
15839 | #include <stdio.h> | ||
15840 | #include <sys/socket.h> | ||
15841 | #include <netdb.h> | ||
15842 | #include <errno.h> | ||
15843 | #include <netinet/in.h> | ||
15844 | |||
15845 | #define TEST_PORT "2222" | ||
15846 | |||
15847 | int | ||
15848 | main(void) | ||
15849 | { | ||
15850 | int err, sock; | ||
15851 | struct addrinfo *gai_ai, *ai, hints; | ||
15852 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15853 | |||
15854 | memset(&hints, 0, sizeof(hints)); | ||
15855 | hints.ai_family = PF_UNSPEC; | ||
15856 | hints.ai_socktype = SOCK_STREAM; | ||
15857 | hints.ai_flags = AI_PASSIVE; | ||
15858 | |||
15859 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15860 | if (err != 0) { | ||
15861 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15862 | exit(1); | ||
15863 | } | ||
15864 | |||
15865 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15866 | if (ai->ai_family != AF_INET6) | ||
15867 | continue; | ||
15868 | |||
15869 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15870 | sizeof(ntop), strport, sizeof(strport), | ||
15871 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15872 | |||
15873 | if (err != 0) { | ||
15874 | if (err == EAI_SYSTEM) | ||
15875 | perror("getnameinfo EAI_SYSTEM"); | ||
15876 | else | ||
15877 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
15878 | gai_strerror(err)); | ||
15879 | exit(2); | ||
15880 | } | ||
15881 | |||
15882 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
15883 | if (sock < 0) | ||
15884 | perror("socket"); | ||
15885 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
15886 | if (errno == EBADF) | ||
15887 | exit(3); | ||
15888 | } | ||
15889 | } | ||
15890 | exit(0); | ||
15891 | } | ||
15892 | |||
15893 | _ACEOF | ||
15894 | rm -f conftest$ac_exeext | ||
15895 | if { (ac_try="$ac_link" | ||
15896 | case "(($ac_try" in | ||
15897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15898 | *) ac_try_echo=$ac_try;; | ||
15899 | esac | ||
15900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15901 | (eval "$ac_link") 2>&5 | ||
15902 | ac_status=$? | ||
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15905 | { (case "(($ac_try" in | ||
15906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15907 | *) ac_try_echo=$ac_try;; | ||
15908 | esac | ||
15909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15910 | (eval "$ac_try") 2>&5 | ||
15911 | ac_status=$? | ||
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15913 | (exit $ac_status); }; }; then | ||
15914 | |||
15915 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15916 | echo "${ECHO_T}yes" >&6; } | ||
15917 | |||
15918 | else | ||
15919 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15920 | echo "$as_me: failed program was:" >&5 | ||
15921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15922 | |||
15923 | ( exit $ac_status ) | ||
15924 | |||
15925 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15926 | echo "${ECHO_T}no" >&6; } | ||
15927 | cat >>confdefs.h <<\_ACEOF | ||
15928 | #define BROKEN_GETADDRINFO 1 | ||
15929 | _ACEOF | ||
15930 | |||
15931 | |||
15932 | fi | ||
15933 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15934 | fi | ||
15935 | |||
15936 | |||
15937 | fi | ||
15938 | |||
15939 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15940 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
15941 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15942 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15943 | if test "$cross_compiling" = yes; then | ||
15944 | |||
15945 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15946 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15947 | |||
15948 | |||
15949 | else | ||
15950 | cat >conftest.$ac_ext <<_ACEOF | ||
15951 | /* confdefs.h. */ | ||
15952 | _ACEOF | ||
15953 | cat confdefs.h >>conftest.$ac_ext | ||
15954 | cat >>conftest.$ac_ext <<_ACEOF | ||
15955 | /* end confdefs.h. */ | ||
15956 | |||
15957 | #include <stdio.h> | ||
15958 | #include <sys/socket.h> | ||
15959 | #include <netdb.h> | ||
15960 | #include <errno.h> | ||
15961 | #include <netinet/in.h> | ||
15962 | |||
15963 | #define TEST_PORT "2222" | ||
15964 | |||
15965 | int | ||
15966 | main(void) | ||
15967 | { | ||
15968 | int err, sock; | ||
15969 | struct addrinfo *gai_ai, *ai, hints; | ||
15970 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15971 | |||
15972 | memset(&hints, 0, sizeof(hints)); | ||
15973 | hints.ai_family = PF_UNSPEC; | ||
15974 | hints.ai_socktype = SOCK_STREAM; | ||
15975 | hints.ai_flags = AI_PASSIVE; | ||
15976 | |||
15977 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15978 | if (err != 0) { | ||
15979 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15980 | exit(1); | ||
15981 | } | ||
15982 | |||
15983 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15984 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
15985 | continue; | ||
15986 | |||
15987 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15988 | sizeof(ntop), strport, sizeof(strport), | ||
15989 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15990 | |||
15991 | if (ai->ai_family == AF_INET && err != 0) { | ||
15992 | perror("getnameinfo"); | ||
15993 | exit(2); | ||
15994 | } | ||
15995 | } | ||
15996 | exit(0); | ||
15997 | } | ||
15998 | |||
15999 | _ACEOF | ||
16000 | rm -f conftest$ac_exeext | ||
16001 | if { (ac_try="$ac_link" | ||
16002 | case "(($ac_try" in | ||
16003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16004 | *) ac_try_echo=$ac_try;; | ||
16005 | esac | ||
16006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16007 | (eval "$ac_link") 2>&5 | ||
16008 | ac_status=$? | ||
16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16011 | { (case "(($ac_try" in | ||
16012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16013 | *) ac_try_echo=$ac_try;; | ||
16014 | esac | ||
16015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16016 | (eval "$ac_try") 2>&5 | ||
16017 | ac_status=$? | ||
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16019 | (exit $ac_status); }; }; then | ||
16020 | |||
16021 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16022 | echo "${ECHO_T}yes" >&6; } | ||
16023 | |||
16024 | cat >>confdefs.h <<\_ACEOF | ||
16025 | #define AIX_GETNAMEINFO_HACK 1 | ||
16026 | _ACEOF | ||
16027 | |||
16028 | |||
16029 | else | ||
16030 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16031 | echo "$as_me: failed program was:" >&5 | ||
16032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16033 | |||
16034 | ( exit $ac_status ) | ||
16035 | |||
16036 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16037 | echo "${ECHO_T}no" >&6; } | ||
16038 | cat >>confdefs.h <<\_ACEOF | ||
16039 | #define BROKEN_GETADDRINFO 1 | ||
16040 | _ACEOF | ||
16041 | |||
16042 | |||
16043 | fi | ||
16044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16045 | fi | ||
16046 | |||
16047 | |||
16048 | fi | ||
16049 | |||
16050 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
16051 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
16052 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
16053 | cat >conftest.$ac_ext <<_ACEOF | ||
16054 | |||
16055 | #include <shadow.h> | ||
16056 | int main(void) {exit(0);} | ||
16057 | |||
16058 | _ACEOF | ||
16059 | rm -f conftest.$ac_objext | ||
16060 | if { (ac_try="$ac_compile" | ||
16061 | case "(($ac_try" in | ||
16062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16063 | *) ac_try_echo=$ac_try;; | ||
16064 | esac | ||
16065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16066 | (eval "$ac_compile") 2>conftest.er1 | ||
16067 | ac_status=$? | ||
16068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16069 | rm -f conftest.er1 | ||
16070 | cat conftest.err >&5 | ||
16071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16072 | (exit $ac_status); } && { | ||
16073 | test -z "$ac_c_werror_flag" || | ||
16074 | test ! -s conftest.err | ||
16075 | } && test -s conftest.$ac_objext; then | ||
16076 | |||
16077 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16078 | echo "${ECHO_T}no" >&6; } | ||
16079 | |||
16080 | else | ||
16081 | echo "$as_me: failed program was:" >&5 | ||
16082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16083 | |||
16084 | |||
16085 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16086 | echo "${ECHO_T}yes" >&6; } | ||
16087 | |||
16088 | cat >>confdefs.h <<\_ACEOF | ||
16089 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
16090 | _ACEOF | ||
16091 | |||
16092 | |||
16093 | |||
16094 | fi | ||
16095 | |||
16096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16097 | fi | ||
16098 | |||
16099 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
16100 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
16101 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
16102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16103 | else | ||
16104 | # Use it with a single arg. | ||
16105 | cat >conftest.$ac_ext <<_ACEOF | ||
16106 | /* confdefs.h. */ | ||
16107 | _ACEOF | ||
16108 | cat confdefs.h >>conftest.$ac_ext | ||
16109 | cat >>conftest.$ac_ext <<_ACEOF | ||
16110 | /* end confdefs.h. */ | ||
16111 | $ac_includes_default | ||
16112 | int | ||
16113 | main () | ||
16114 | { | ||
16115 | getpgrp (0); | ||
16116 | ; | ||
16117 | return 0; | ||
16118 | } | ||
16119 | _ACEOF | ||
16120 | rm -f conftest.$ac_objext | ||
16121 | if { (ac_try="$ac_compile" | ||
16122 | case "(($ac_try" in | ||
16123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16124 | *) ac_try_echo=$ac_try;; | ||
16125 | esac | ||
16126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16127 | (eval "$ac_compile") 2>conftest.er1 | ||
16128 | ac_status=$? | ||
16129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16130 | rm -f conftest.er1 | ||
16131 | cat conftest.err >&5 | ||
16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16133 | (exit $ac_status); } && { | ||
16134 | test -z "$ac_c_werror_flag" || | ||
16135 | test ! -s conftest.err | ||
16136 | } && test -s conftest.$ac_objext; then | ||
16137 | ac_cv_func_getpgrp_void=no | ||
16138 | else | ||
16139 | echo "$as_me: failed program was:" >&5 | ||
16140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16141 | |||
16142 | ac_cv_func_getpgrp_void=yes | ||
16143 | fi | ||
16144 | |||
16145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16146 | |||
16147 | fi | ||
16148 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
16149 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
16150 | if test $ac_cv_func_getpgrp_void = yes; then | ||
16151 | |||
16152 | cat >>confdefs.h <<\_ACEOF | ||
16153 | #define GETPGRP_VOID 1 | ||
16154 | _ACEOF | ||
16155 | |||
16156 | fi | ||
16157 | |||
16158 | |||
16159 | # Search for OpenSSL | ||
16160 | saved_CPPFLAGS="$CPPFLAGS" | ||
16161 | saved_LDFLAGS="$LDFLAGS" | ||
16162 | |||
16163 | # Check whether --with-ssl-dir was given. | ||
16164 | if test "${with_ssl_dir+set}" = set; then | ||
16165 | withval=$with_ssl_dir; | ||
16166 | if test "x$withval" != "xno" ; then | ||
16167 | case "$withval" in | ||
16168 | # Relative paths | ||
16169 | ./*|../*) withval="`pwd`/$withval" | ||
16170 | esac | ||
16171 | if test -d "$withval/lib"; then | ||
16172 | if test -n "${need_dash_r}"; then | ||
16173 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
16174 | else | ||
16175 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
16176 | fi | ||
16177 | else | ||
16178 | if test -n "${need_dash_r}"; then | ||
16179 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
16180 | else | ||
16181 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
16182 | fi | ||
16183 | fi | ||
16184 | if test -d "$withval/include"; then | ||
16185 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
16186 | else | ||
16187 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
16188 | fi | ||
16189 | fi | ||
16190 | |||
16191 | |||
16192 | fi | ||
16193 | |||
16194 | LIBS="-lcrypto $LIBS" | ||
16195 | cat >conftest.$ac_ext <<_ACEOF | ||
16196 | /* confdefs.h. */ | ||
16197 | _ACEOF | ||
16198 | cat confdefs.h >>conftest.$ac_ext | ||
16199 | cat >>conftest.$ac_ext <<_ACEOF | ||
16200 | /* end confdefs.h. */ | ||
16201 | |||
16202 | /* Override any GCC internal prototype to avoid an error. | ||
16203 | Use char because int might match the return type of a GCC | ||
16204 | builtin and then its argument prototype would still apply. */ | ||
16205 | #ifdef __cplusplus | ||
16206 | extern "C" | ||
16207 | #endif | ||
16208 | char RAND_add (); | ||
16209 | int | ||
16210 | main () | ||
16211 | { | ||
16212 | return RAND_add (); | ||
16213 | ; | ||
16214 | return 0; | ||
16215 | } | ||
16216 | _ACEOF | ||
16217 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16218 | if { (ac_try="$ac_link" | ||
16219 | case "(($ac_try" in | ||
16220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16221 | *) ac_try_echo=$ac_try;; | ||
16222 | esac | ||
16223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16224 | (eval "$ac_link") 2>conftest.er1 | ||
16225 | ac_status=$? | ||
16226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16227 | rm -f conftest.er1 | ||
16228 | cat conftest.err >&5 | ||
16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16230 | (exit $ac_status); } && { | ||
16231 | test -z "$ac_c_werror_flag" || | ||
16232 | test ! -s conftest.err | ||
16233 | } && test -s conftest$ac_exeext && | ||
16234 | $as_test_x conftest$ac_exeext; then | ||
16235 | |||
16236 | cat >>confdefs.h <<\_ACEOF | ||
16237 | #define HAVE_OPENSSL 1 | ||
16238 | _ACEOF | ||
16239 | |||
16240 | else | ||
16241 | echo "$as_me: failed program was:" >&5 | ||
16242 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16243 | |||
16244 | |||
16245 | if test -n "${need_dash_r}"; then | ||
16246 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16247 | else | ||
16248 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16249 | fi | ||
16250 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
16251 | cat >conftest.$ac_ext <<_ACEOF | ||
16252 | /* confdefs.h. */ | ||
16253 | _ACEOF | ||
16254 | cat confdefs.h >>conftest.$ac_ext | ||
16255 | cat >>conftest.$ac_ext <<_ACEOF | ||
16256 | /* end confdefs.h. */ | ||
16257 | |||
16258 | /* Override any GCC internal prototype to avoid an error. | ||
16259 | Use char because int might match the return type of a GCC | ||
16260 | builtin and then its argument prototype would still apply. */ | ||
16261 | #ifdef __cplusplus | ||
16262 | extern "C" | ||
16263 | #endif | ||
16264 | char RAND_add (); | ||
16265 | int | ||
16266 | main () | ||
16267 | { | ||
16268 | return RAND_add (); | ||
16269 | ; | ||
16270 | return 0; | ||
16271 | } | ||
16272 | _ACEOF | ||
16273 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16274 | if { (ac_try="$ac_link" | ||
16275 | case "(($ac_try" in | ||
16276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16277 | *) ac_try_echo=$ac_try;; | ||
16278 | esac | ||
16279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16280 | (eval "$ac_link") 2>conftest.er1 | ||
16281 | ac_status=$? | ||
16282 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16283 | rm -f conftest.er1 | ||
16284 | cat conftest.err >&5 | ||
16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16286 | (exit $ac_status); } && { | ||
16287 | test -z "$ac_c_werror_flag" || | ||
16288 | test ! -s conftest.err | ||
16289 | } && test -s conftest$ac_exeext && | ||
16290 | $as_test_x conftest$ac_exeext; then | ||
16291 | cat >>confdefs.h <<\_ACEOF | ||
16292 | #define HAVE_OPENSSL 1 | ||
16293 | _ACEOF | ||
16294 | |||
16295 | else | ||
16296 | echo "$as_me: failed program was:" >&5 | ||
16297 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16298 | |||
16299 | |||
16300 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
16301 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
16302 | { (exit 1); exit 1; }; } | ||
16303 | |||
16304 | |||
16305 | fi | ||
16306 | |||
16307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16308 | conftest$ac_exeext conftest.$ac_ext | ||
16309 | |||
16310 | |||
16311 | fi | ||
16312 | |||
16313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16314 | conftest$ac_exeext conftest.$ac_ext | ||
16315 | |||
16316 | # Determine OpenSSL header version | ||
16317 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
16318 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
16319 | if test "$cross_compiling" = yes; then | ||
16320 | |||
16321 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16322 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16323 | |||
16324 | |||
16325 | else | ||
16326 | cat >conftest.$ac_ext <<_ACEOF | ||
16327 | /* confdefs.h. */ | ||
16328 | _ACEOF | ||
16329 | cat confdefs.h >>conftest.$ac_ext | ||
16330 | cat >>conftest.$ac_ext <<_ACEOF | ||
16331 | /* end confdefs.h. */ | ||
16332 | |||
16333 | #include <stdio.h> | ||
16334 | #include <string.h> | ||
16335 | #include <openssl/opensslv.h> | ||
16336 | #define DATA "conftest.sslincver" | ||
16337 | int main(void) { | ||
16338 | FILE *fd; | ||
16339 | int rc; | ||
16340 | |||
16341 | fd = fopen(DATA,"w"); | ||
16342 | if(fd == NULL) | ||
16343 | exit(1); | ||
16344 | |||
16345 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
16346 | exit(1); | ||
16347 | |||
16348 | exit(0); | ||
16349 | } | ||
16350 | |||
16351 | _ACEOF | ||
16352 | rm -f conftest$ac_exeext | ||
16353 | if { (ac_try="$ac_link" | ||
16354 | case "(($ac_try" in | ||
16355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16356 | *) ac_try_echo=$ac_try;; | ||
16357 | esac | ||
16358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16359 | (eval "$ac_link") 2>&5 | ||
16360 | ac_status=$? | ||
16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16363 | { (case "(($ac_try" in | ||
16364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16365 | *) ac_try_echo=$ac_try;; | ||
16366 | esac | ||
16367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16368 | (eval "$ac_try") 2>&5 | ||
16369 | ac_status=$? | ||
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16371 | (exit $ac_status); }; }; then | ||
16372 | |||
16373 | ssl_header_ver=`cat conftest.sslincver` | ||
16374 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
16375 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
16376 | |||
16377 | else | ||
16378 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16379 | echo "$as_me: failed program was:" >&5 | ||
16380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16381 | |||
16382 | ( exit $ac_status ) | ||
16383 | |||
16384 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16385 | echo "${ECHO_T}not found" >&6; } | ||
16386 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
16387 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
16388 | { (exit 1); exit 1; }; } | ||
16389 | |||
16390 | fi | ||
16391 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16392 | fi | ||
16393 | |||
16394 | |||
16395 | |||
16396 | # Determine OpenSSL library version | ||
16397 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
16398 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
16399 | if test "$cross_compiling" = yes; then | ||
16400 | |||
16401 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16402 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16403 | |||
16404 | |||
16405 | else | ||
16406 | cat >conftest.$ac_ext <<_ACEOF | ||
16407 | /* confdefs.h. */ | ||
16408 | _ACEOF | ||
16409 | cat confdefs.h >>conftest.$ac_ext | ||
16410 | cat >>conftest.$ac_ext <<_ACEOF | ||
16411 | /* end confdefs.h. */ | ||
16412 | |||
16413 | #include <stdio.h> | ||
16414 | #include <string.h> | ||
16415 | #include <openssl/opensslv.h> | ||
16416 | #include <openssl/crypto.h> | ||
16417 | #define DATA "conftest.ssllibver" | ||
16418 | int main(void) { | ||
16419 | FILE *fd; | ||
16420 | int rc; | ||
16421 | |||
16422 | fd = fopen(DATA,"w"); | ||
16423 | if(fd == NULL) | ||
16424 | exit(1); | ||
16425 | |||
16426 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
16427 | exit(1); | ||
16428 | |||
16429 | exit(0); | ||
16430 | } | ||
16431 | |||
16432 | _ACEOF | ||
16433 | rm -f conftest$ac_exeext | ||
16434 | if { (ac_try="$ac_link" | ||
16435 | case "(($ac_try" in | ||
16436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16437 | *) ac_try_echo=$ac_try;; | ||
16438 | esac | ||
16439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16440 | (eval "$ac_link") 2>&5 | ||
16441 | ac_status=$? | ||
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16444 | { (case "(($ac_try" in | ||
16445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16446 | *) ac_try_echo=$ac_try;; | ||
16447 | esac | ||
16448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16449 | (eval "$ac_try") 2>&5 | ||
16450 | ac_status=$? | ||
16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16452 | (exit $ac_status); }; }; then | ||
16453 | |||
16454 | ssl_library_ver=`cat conftest.ssllibver` | ||
16455 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
16456 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
16457 | |||
16458 | else | ||
16459 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16460 | echo "$as_me: failed program was:" >&5 | ||
16461 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16462 | |||
16463 | ( exit $ac_status ) | ||
16464 | |||
16465 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16466 | echo "${ECHO_T}not found" >&6; } | ||
16467 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
16468 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
16469 | { (exit 1); exit 1; }; } | ||
16470 | |||
16471 | fi | ||
16472 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16473 | fi | ||
16474 | |||
16475 | |||
16476 | |||
16477 | |||
16478 | # Check whether --with-openssl-header-check was given. | ||
16479 | if test "${with_openssl_header_check+set}" = set; then | ||
16480 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
16481 | openssl_check_nonfatal=1 | ||
16482 | fi | ||
16483 | |||
16484 | |||
16485 | fi | ||
16486 | |||
16487 | |||
16488 | # Sanity check OpenSSL headers | ||
16489 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
16490 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
16491 | if test "$cross_compiling" = yes; then | ||
16492 | |||
16493 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16494 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16495 | |||
16496 | |||
16497 | else | ||
16498 | cat >conftest.$ac_ext <<_ACEOF | ||
16499 | /* confdefs.h. */ | ||
16500 | _ACEOF | ||
16501 | cat confdefs.h >>conftest.$ac_ext | ||
16502 | cat >>conftest.$ac_ext <<_ACEOF | ||
16503 | /* end confdefs.h. */ | ||
16504 | |||
16505 | #include <string.h> | ||
16506 | #include <openssl/opensslv.h> | ||
16507 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
16508 | |||
16509 | _ACEOF | ||
16510 | rm -f conftest$ac_exeext | ||
16511 | if { (ac_try="$ac_link" | ||
16512 | case "(($ac_try" in | ||
16513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16514 | *) ac_try_echo=$ac_try;; | ||
16515 | esac | ||
16516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16517 | (eval "$ac_link") 2>&5 | ||
16518 | ac_status=$? | ||
16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16521 | { (case "(($ac_try" in | ||
16522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16523 | *) ac_try_echo=$ac_try;; | ||
16524 | esac | ||
16525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16526 | (eval "$ac_try") 2>&5 | ||
16527 | ac_status=$? | ||
16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16529 | (exit $ac_status); }; }; then | ||
16530 | |||
16531 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16532 | echo "${ECHO_T}yes" >&6; } | ||
16533 | |||
16534 | else | ||
16535 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16536 | echo "$as_me: failed program was:" >&5 | ||
16537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16538 | |||
16539 | ( exit $ac_status ) | ||
16540 | |||
16541 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16542 | echo "${ECHO_T}no" >&6; } | ||
16543 | if test "x$openssl_check_nonfatal" = "x"; then | ||
16544 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
16545 | library. Check config.log for details. | ||
16546 | If you are sure your installation is consistent, you can disable the check | ||
16547 | by running \"./configure --without-openssl-header-check\". | ||
16548 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16549 | " >&5 | ||
16550 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
16551 | library. Check config.log for details. | ||
16552 | If you are sure your installation is consistent, you can disable the check | ||
16553 | by running \"./configure --without-openssl-header-check\". | ||
16554 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16555 | " >&2;} | ||
16556 | { (exit 1); exit 1; }; } | ||
16557 | else | ||
16558 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
16559 | library. Check config.log for details. | ||
16560 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
16561 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
16562 | library. Check config.log for details. | ||
16563 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
16564 | fi | ||
16565 | |||
16566 | fi | ||
16567 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16568 | fi | ||
16569 | |||
16570 | |||
16571 | |||
16572 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
16573 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
16574 | cat >conftest.$ac_ext <<_ACEOF | ||
16575 | /* confdefs.h. */ | ||
16576 | _ACEOF | ||
16577 | cat confdefs.h >>conftest.$ac_ext | ||
16578 | cat >>conftest.$ac_ext <<_ACEOF | ||
16579 | /* end confdefs.h. */ | ||
16580 | |||
16581 | #include <openssl/evp.h> | ||
16582 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16583 | |||
16584 | _ACEOF | ||
16585 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16586 | if { (ac_try="$ac_link" | ||
16587 | case "(($ac_try" in | ||
16588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16589 | *) ac_try_echo=$ac_try;; | ||
16590 | esac | ||
16591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16592 | (eval "$ac_link") 2>conftest.er1 | ||
16593 | ac_status=$? | ||
16594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16595 | rm -f conftest.er1 | ||
16596 | cat conftest.err >&5 | ||
16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16598 | (exit $ac_status); } && { | ||
16599 | test -z "$ac_c_werror_flag" || | ||
16600 | test ! -s conftest.err | ||
16601 | } && test -s conftest$ac_exeext && | ||
16602 | $as_test_x conftest$ac_exeext; then | ||
16603 | |||
16604 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16605 | echo "${ECHO_T}yes" >&6; } | ||
16606 | |||
16607 | else | ||
16608 | echo "$as_me: failed program was:" >&5 | ||
16609 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16610 | |||
16611 | |||
16612 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16613 | echo "${ECHO_T}no" >&6; } | ||
16614 | saved_LIBS="$LIBS" | ||
16615 | LIBS="$LIBS -ldl" | ||
16616 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
16617 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
16618 | cat >conftest.$ac_ext <<_ACEOF | ||
16619 | /* confdefs.h. */ | ||
16620 | _ACEOF | ||
16621 | cat confdefs.h >>conftest.$ac_ext | ||
16622 | cat >>conftest.$ac_ext <<_ACEOF | ||
16623 | /* end confdefs.h. */ | ||
16624 | |||
16625 | #include <openssl/evp.h> | ||
16626 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16627 | |||
16628 | _ACEOF | ||
16629 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16630 | if { (ac_try="$ac_link" | ||
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_link") 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); } && { | ||
16643 | test -z "$ac_c_werror_flag" || | ||
16644 | test ! -s conftest.err | ||
16645 | } && test -s conftest$ac_exeext && | ||
16646 | $as_test_x conftest$ac_exeext; then | ||
16647 | |||
16648 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16649 | echo "${ECHO_T}yes" >&6; } | ||
16650 | |||
16651 | else | ||
16652 | echo "$as_me: failed program was:" >&5 | ||
16653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16654 | |||
16655 | |||
16656 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16657 | echo "${ECHO_T}no" >&6; } | ||
16658 | LIBS="$saved_LIBS" | ||
16659 | |||
16660 | |||
16661 | fi | ||
16662 | |||
16663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16664 | conftest$ac_exeext conftest.$ac_ext | ||
16665 | |||
16666 | |||
16667 | fi | ||
16668 | |||
16669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16670 | conftest$ac_exeext conftest.$ac_ext | ||
16671 | |||
16672 | |||
16673 | # Check whether --with-ssl-engine was given. | ||
16674 | if test "${with_ssl_engine+set}" = set; then | ||
16675 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
16676 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
16677 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
16678 | cat >conftest.$ac_ext <<_ACEOF | ||
16679 | /* confdefs.h. */ | ||
16680 | _ACEOF | ||
16681 | cat confdefs.h >>conftest.$ac_ext | ||
16682 | cat >>conftest.$ac_ext <<_ACEOF | ||
16683 | /* end confdefs.h. */ | ||
16684 | #include <openssl/engine.h> | ||
16685 | int | ||
16686 | main () | ||
16687 | { | ||
16688 | |||
16689 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
16690 | |||
16691 | ; | ||
16692 | return 0; | ||
16693 | } | ||
16694 | _ACEOF | ||
16695 | rm -f conftest.$ac_objext | ||
16696 | if { (ac_try="$ac_compile" | ||
16697 | case "(($ac_try" in | ||
16698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16699 | *) ac_try_echo=$ac_try;; | ||
16700 | esac | ||
16701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16702 | (eval "$ac_compile") 2>conftest.er1 | ||
16703 | ac_status=$? | ||
16704 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16705 | rm -f conftest.er1 | ||
16706 | cat conftest.err >&5 | ||
16707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16708 | (exit $ac_status); } && { | ||
16709 | test -z "$ac_c_werror_flag" || | ||
16710 | test ! -s conftest.err | ||
16711 | } && test -s conftest.$ac_objext; then | ||
16712 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16713 | echo "${ECHO_T}yes" >&6; } | ||
16714 | |||
16715 | cat >>confdefs.h <<\_ACEOF | ||
16716 | #define USE_OPENSSL_ENGINE 1 | ||
16717 | _ACEOF | ||
16718 | |||
16719 | |||
16720 | else | ||
16721 | echo "$as_me: failed program was:" >&5 | ||
16722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16723 | |||
16724 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
16725 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
16726 | { (exit 1); exit 1; }; } | ||
16727 | |||
16728 | fi | ||
16729 | |||
16730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16731 | fi | ||
16732 | |||
16733 | fi | ||
16734 | |||
16735 | |||
16736 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
16737 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
16738 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
16739 | cat >conftest.$ac_ext <<_ACEOF | ||
16740 | /* confdefs.h. */ | ||
16741 | _ACEOF | ||
16742 | cat confdefs.h >>conftest.$ac_ext | ||
16743 | cat >>conftest.$ac_ext <<_ACEOF | ||
16744 | /* end confdefs.h. */ | ||
16745 | |||
16746 | #include <string.h> | ||
16747 | #include <openssl/evp.h> | ||
16748 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
16749 | |||
16750 | _ACEOF | ||
16751 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16752 | if { (ac_try="$ac_link" | ||
16753 | case "(($ac_try" in | ||
16754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16755 | *) ac_try_echo=$ac_try;; | ||
16756 | esac | ||
16757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16758 | (eval "$ac_link") 2>conftest.er1 | ||
16759 | ac_status=$? | ||
16760 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16761 | rm -f conftest.er1 | ||
16762 | cat conftest.err >&5 | ||
16763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16764 | (exit $ac_status); } && { | ||
16765 | test -z "$ac_c_werror_flag" || | ||
16766 | test ! -s conftest.err | ||
16767 | } && test -s conftest$ac_exeext && | ||
16768 | $as_test_x conftest$ac_exeext; then | ||
16769 | |||
16770 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16771 | echo "${ECHO_T}no" >&6; } | ||
16772 | |||
16773 | else | ||
16774 | echo "$as_me: failed program was:" >&5 | ||
16775 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16776 | |||
16777 | |||
16778 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16779 | echo "${ECHO_T}yes" >&6; } | ||
16780 | |||
16781 | cat >>confdefs.h <<\_ACEOF | ||
16782 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
16783 | _ACEOF | ||
16784 | |||
16785 | |||
16786 | |||
16787 | fi | ||
16788 | |||
16789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16790 | conftest$ac_exeext conftest.$ac_ext | ||
16791 | |||
16792 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
16793 | # because the system crypt() is more featureful. | ||
16794 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
16795 | |||
16796 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16797 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16798 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16800 | else | ||
16801 | ac_check_lib_save_LIBS=$LIBS | ||
16802 | LIBS="-lcrypt $LIBS" | ||
16803 | cat >conftest.$ac_ext <<_ACEOF | ||
16804 | /* confdefs.h. */ | ||
16805 | _ACEOF | ||
16806 | cat confdefs.h >>conftest.$ac_ext | ||
16807 | cat >>conftest.$ac_ext <<_ACEOF | ||
16808 | /* end confdefs.h. */ | ||
16809 | |||
16810 | /* Override any GCC internal prototype to avoid an error. | ||
16811 | Use char because int might match the return type of a GCC | ||
16812 | builtin and then its argument prototype would still apply. */ | ||
16813 | #ifdef __cplusplus | ||
16814 | extern "C" | ||
16815 | #endif | ||
16816 | char crypt (); | ||
16817 | int | ||
16818 | main () | ||
16819 | { | ||
16820 | return crypt (); | ||
16821 | ; | ||
16822 | return 0; | ||
16823 | } | ||
16824 | _ACEOF | ||
16825 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16826 | if { (ac_try="$ac_link" | ||
16827 | case "(($ac_try" in | ||
16828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16829 | *) ac_try_echo=$ac_try;; | ||
16830 | esac | ||
16831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16832 | (eval "$ac_link") 2>conftest.er1 | ||
16833 | ac_status=$? | ||
16834 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16835 | rm -f conftest.er1 | ||
16836 | cat conftest.err >&5 | ||
16837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16838 | (exit $ac_status); } && { | ||
16839 | test -z "$ac_c_werror_flag" || | ||
16840 | test ! -s conftest.err | ||
16841 | } && test -s conftest$ac_exeext && | ||
16842 | $as_test_x conftest$ac_exeext; then | ||
16843 | ac_cv_lib_crypt_crypt=yes | ||
16844 | else | ||
16845 | echo "$as_me: failed program was:" >&5 | ||
16846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16847 | |||
16848 | ac_cv_lib_crypt_crypt=no | ||
16849 | fi | ||
16850 | |||
16851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16852 | conftest$ac_exeext conftest.$ac_ext | ||
16853 | LIBS=$ac_check_lib_save_LIBS | ||
16854 | fi | ||
16855 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16856 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16857 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16858 | cat >>confdefs.h <<_ACEOF | ||
16859 | #define HAVE_LIBCRYPT 1 | ||
16860 | _ACEOF | ||
16861 | |||
16862 | LIBS="-lcrypt $LIBS" | ||
16863 | |||
16864 | fi | ||
16865 | |||
16866 | fi | ||
16867 | |||
16868 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
16869 | # version in OpenSSL. | ||
16870 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
16871 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16872 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16873 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16875 | else | ||
16876 | ac_check_lib_save_LIBS=$LIBS | ||
16877 | LIBS="-lcrypt $LIBS" | ||
16878 | cat >conftest.$ac_ext <<_ACEOF | ||
16879 | /* confdefs.h. */ | ||
16880 | _ACEOF | ||
16881 | cat confdefs.h >>conftest.$ac_ext | ||
16882 | cat >>conftest.$ac_ext <<_ACEOF | ||
16883 | /* end confdefs.h. */ | ||
16884 | |||
16885 | /* Override any GCC internal prototype to avoid an error. | ||
16886 | Use char because int might match the return type of a GCC | ||
16887 | builtin and then its argument prototype would still apply. */ | ||
16888 | #ifdef __cplusplus | ||
16889 | extern "C" | ||
16890 | #endif | ||
16891 | char crypt (); | ||
16892 | int | ||
16893 | main () | ||
16894 | { | ||
16895 | return crypt (); | ||
16896 | ; | ||
16897 | return 0; | ||
16898 | } | ||
16899 | _ACEOF | ||
16900 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16901 | if { (ac_try="$ac_link" | ||
16902 | case "(($ac_try" in | ||
16903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16904 | *) ac_try_echo=$ac_try;; | ||
16905 | esac | ||
16906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16907 | (eval "$ac_link") 2>conftest.er1 | ||
16908 | ac_status=$? | ||
16909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16910 | rm -f conftest.er1 | ||
16911 | cat conftest.err >&5 | ||
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16913 | (exit $ac_status); } && { | ||
16914 | test -z "$ac_c_werror_flag" || | ||
16915 | test ! -s conftest.err | ||
16916 | } && test -s conftest$ac_exeext && | ||
16917 | $as_test_x conftest$ac_exeext; then | ||
16918 | ac_cv_lib_crypt_crypt=yes | ||
16919 | else | ||
16920 | echo "$as_me: failed program was:" >&5 | ||
16921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16922 | |||
16923 | ac_cv_lib_crypt_crypt=no | ||
16924 | fi | ||
16925 | |||
16926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16927 | conftest$ac_exeext conftest.$ac_ext | ||
16928 | LIBS=$ac_check_lib_save_LIBS | ||
16929 | fi | ||
16930 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16931 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16932 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16933 | LIBS="$LIBS -lcrypt" | ||
16934 | fi | ||
16935 | |||
16936 | fi | ||
16937 | |||
16938 | # Search for SHA256 support in libc and/or OpenSSL | ||
16939 | |||
16940 | |||
16941 | for ac_func in SHA256_Update EVP_sha256 | ||
16942 | do | ||
16943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16944 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16946 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16948 | else | ||
16949 | cat >conftest.$ac_ext <<_ACEOF | ||
16950 | /* confdefs.h. */ | ||
16951 | _ACEOF | ||
16952 | cat confdefs.h >>conftest.$ac_ext | ||
16953 | cat >>conftest.$ac_ext <<_ACEOF | ||
16954 | /* end confdefs.h. */ | ||
16955 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16957 | #define $ac_func innocuous_$ac_func | ||
16958 | |||
16959 | /* System header to define __stub macros and hopefully few prototypes, | ||
16960 | which can conflict with char $ac_func (); below. | ||
16961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16962 | <limits.h> exists even on freestanding compilers. */ | ||
16963 | |||
16964 | #ifdef __STDC__ | ||
16965 | # include <limits.h> | ||
16966 | #else | ||
16967 | # include <assert.h> | ||
16968 | #endif | ||
16969 | |||
16970 | #undef $ac_func | ||
16971 | |||
16972 | /* Override any GCC internal prototype to avoid an error. | ||
16973 | Use char because int might match the return type of a GCC | ||
16974 | builtin and then its argument prototype would still apply. */ | ||
16975 | #ifdef __cplusplus | ||
16976 | extern "C" | ||
16977 | #endif | ||
16978 | char $ac_func (); | ||
16979 | /* The GNU C library defines this for functions which it implements | ||
16980 | to always fail with ENOSYS. Some functions are actually named | ||
16981 | something starting with __ and the normal name is an alias. */ | ||
16982 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16983 | choke me | ||
16984 | #endif | ||
16985 | |||
16986 | int | ||
16987 | main () | ||
16988 | { | ||
16989 | return $ac_func (); | ||
16990 | ; | ||
16991 | return 0; | ||
16992 | } | ||
16993 | _ACEOF | ||
16994 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16995 | if { (ac_try="$ac_link" | ||
16996 | case "(($ac_try" in | ||
16997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16998 | *) ac_try_echo=$ac_try;; | ||
16999 | esac | ||
17000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17001 | (eval "$ac_link") 2>conftest.er1 | ||
17002 | ac_status=$? | ||
17003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17004 | rm -f conftest.er1 | ||
17005 | cat conftest.err >&5 | ||
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17007 | (exit $ac_status); } && { | ||
17008 | test -z "$ac_c_werror_flag" || | ||
17009 | test ! -s conftest.err | ||
17010 | } && test -s conftest$ac_exeext && | ||
17011 | $as_test_x conftest$ac_exeext; then | ||
17012 | eval "$as_ac_var=yes" | ||
17013 | else | ||
17014 | echo "$as_me: failed program was:" >&5 | ||
17015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17016 | |||
17017 | eval "$as_ac_var=no" | ||
17018 | fi | ||
17019 | |||
17020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17021 | conftest$ac_exeext conftest.$ac_ext | ||
17022 | fi | ||
17023 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17024 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17025 | echo "${ECHO_T}$ac_res" >&6; } | ||
17026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17027 | cat >>confdefs.h <<_ACEOF | ||
17028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17029 | _ACEOF | ||
17030 | |||
17031 | fi | ||
17032 | done | ||
17033 | |||
17034 | |||
17035 | saved_LIBS="$LIBS" | ||
17036 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
17037 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
17038 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
17039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17040 | else | ||
17041 | ac_check_lib_save_LIBS=$LIBS | ||
17042 | LIBS="-liaf $LIBS" | ||
17043 | cat >conftest.$ac_ext <<_ACEOF | ||
17044 | /* confdefs.h. */ | ||
17045 | _ACEOF | ||
17046 | cat confdefs.h >>conftest.$ac_ext | ||
17047 | cat >>conftest.$ac_ext <<_ACEOF | ||
17048 | /* end confdefs.h. */ | ||
17049 | |||
17050 | /* Override any GCC internal prototype to avoid an error. | ||
17051 | Use char because int might match the return type of a GCC | ||
17052 | builtin and then its argument prototype would still apply. */ | ||
17053 | #ifdef __cplusplus | ||
17054 | extern "C" | ||
17055 | #endif | ||
17056 | char ia_openinfo (); | ||
17057 | int | ||
17058 | main () | ||
17059 | { | ||
17060 | return ia_openinfo (); | ||
17061 | ; | ||
17062 | return 0; | ||
17063 | } | ||
17064 | _ACEOF | ||
17065 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17066 | if { (ac_try="$ac_link" | ||
17067 | case "(($ac_try" in | ||
17068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17069 | *) ac_try_echo=$ac_try;; | ||
17070 | esac | ||
17071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17072 | (eval "$ac_link") 2>conftest.er1 | ||
17073 | ac_status=$? | ||
17074 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17075 | rm -f conftest.er1 | ||
17076 | cat conftest.err >&5 | ||
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17078 | (exit $ac_status); } && { | ||
17079 | test -z "$ac_c_werror_flag" || | ||
17080 | test ! -s conftest.err | ||
17081 | } && test -s conftest$ac_exeext && | ||
17082 | $as_test_x conftest$ac_exeext; then | ||
17083 | ac_cv_lib_iaf_ia_openinfo=yes | ||
17084 | else | ||
17085 | echo "$as_me: failed program was:" >&5 | ||
17086 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17087 | |||
17088 | ac_cv_lib_iaf_ia_openinfo=no | ||
17089 | fi | ||
17090 | |||
17091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17092 | conftest$ac_exeext conftest.$ac_ext | ||
17093 | LIBS=$ac_check_lib_save_LIBS | ||
17094 | fi | ||
17095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
17096 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
17097 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
17098 | |||
17099 | LIBS="$LIBS -liaf" | ||
17100 | |||
17101 | for ac_func in set_id | ||
17102 | do | ||
17103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17104 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17106 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17108 | else | ||
17109 | cat >conftest.$ac_ext <<_ACEOF | ||
17110 | /* confdefs.h. */ | ||
17111 | _ACEOF | ||
17112 | cat confdefs.h >>conftest.$ac_ext | ||
17113 | cat >>conftest.$ac_ext <<_ACEOF | ||
17114 | /* end confdefs.h. */ | ||
17115 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17116 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17117 | #define $ac_func innocuous_$ac_func | ||
17118 | |||
17119 | /* System header to define __stub macros and hopefully few prototypes, | ||
17120 | which can conflict with char $ac_func (); below. | ||
17121 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17122 | <limits.h> exists even on freestanding compilers. */ | ||
17123 | |||
17124 | #ifdef __STDC__ | ||
17125 | # include <limits.h> | ||
17126 | #else | ||
17127 | # include <assert.h> | ||
17128 | #endif | ||
17129 | |||
17130 | #undef $ac_func | ||
17131 | |||
17132 | /* Override any GCC internal prototype to avoid an error. | ||
17133 | Use char because int might match the return type of a GCC | ||
17134 | builtin and then its argument prototype would still apply. */ | ||
17135 | #ifdef __cplusplus | ||
17136 | extern "C" | ||
17137 | #endif | ||
17138 | char $ac_func (); | ||
17139 | /* The GNU C library defines this for functions which it implements | ||
17140 | to always fail with ENOSYS. Some functions are actually named | ||
17141 | something starting with __ and the normal name is an alias. */ | ||
17142 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17143 | choke me | ||
17144 | #endif | ||
17145 | |||
17146 | int | ||
17147 | main () | ||
17148 | { | ||
17149 | return $ac_func (); | ||
17150 | ; | ||
17151 | return 0; | ||
17152 | } | ||
17153 | _ACEOF | ||
17154 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17155 | if { (ac_try="$ac_link" | ||
17156 | case "(($ac_try" in | ||
17157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17158 | *) ac_try_echo=$ac_try;; | ||
17159 | esac | ||
17160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17161 | (eval "$ac_link") 2>conftest.er1 | ||
17162 | ac_status=$? | ||
17163 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17164 | rm -f conftest.er1 | ||
17165 | cat conftest.err >&5 | ||
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17167 | (exit $ac_status); } && { | ||
17168 | test -z "$ac_c_werror_flag" || | ||
17169 | test ! -s conftest.err | ||
17170 | } && test -s conftest$ac_exeext && | ||
17171 | $as_test_x conftest$ac_exeext; then | ||
17172 | eval "$as_ac_var=yes" | ||
17173 | else | ||
17174 | echo "$as_me: failed program was:" >&5 | ||
17175 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17176 | |||
17177 | eval "$as_ac_var=no" | ||
17178 | fi | ||
17179 | |||
17180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17181 | conftest$ac_exeext conftest.$ac_ext | ||
17182 | fi | ||
17183 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17185 | echo "${ECHO_T}$ac_res" >&6; } | ||
17186 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17187 | cat >>confdefs.h <<_ACEOF | ||
17188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17189 | _ACEOF | ||
17190 | SSHDLIBS="$SSHDLIBS -liaf" | ||
17191 | |||
17192 | cat >>confdefs.h <<\_ACEOF | ||
17193 | #define HAVE_LIBIAF 1 | ||
17194 | _ACEOF | ||
17195 | |||
17196 | |||
17197 | fi | ||
17198 | done | ||
17199 | |||
17200 | |||
17201 | fi | ||
17202 | |||
17203 | LIBS="$saved_LIBS" | ||
17204 | |||
17205 | ### Configure cryptographic random number support | ||
17206 | |||
17207 | # Check wheter OpenSSL seeds itself | ||
17208 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
17209 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
17210 | if test "$cross_compiling" = yes; then | ||
17211 | |||
17212 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
17213 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
17214 | # This is safe, since all recent OpenSSL versions will | ||
17215 | # complain at runtime if not seeded correctly. | ||
17216 | OPENSSL_SEEDS_ITSELF=yes | ||
17217 | |||
17218 | |||
17219 | else | ||
17220 | cat >conftest.$ac_ext <<_ACEOF | ||
17221 | /* confdefs.h. */ | ||
17222 | _ACEOF | ||
17223 | cat confdefs.h >>conftest.$ac_ext | ||
17224 | cat >>conftest.$ac_ext <<_ACEOF | ||
17225 | /* end confdefs.h. */ | ||
17226 | |||
17227 | #include <string.h> | ||
17228 | #include <openssl/rand.h> | ||
17229 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
17230 | |||
17231 | _ACEOF | ||
17232 | rm -f conftest$ac_exeext | ||
17233 | if { (ac_try="$ac_link" | ||
17234 | case "(($ac_try" in | ||
17235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17236 | *) ac_try_echo=$ac_try;; | ||
17237 | esac | ||
17238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17239 | (eval "$ac_link") 2>&5 | ||
17240 | ac_status=$? | ||
17241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17243 | { (case "(($ac_try" in | ||
17244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17245 | *) ac_try_echo=$ac_try;; | ||
17246 | esac | ||
17247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17248 | (eval "$ac_try") 2>&5 | ||
17249 | ac_status=$? | ||
17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17251 | (exit $ac_status); }; }; then | ||
17252 | |||
17253 | OPENSSL_SEEDS_ITSELF=yes | ||
17254 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17255 | echo "${ECHO_T}yes" >&6; } | ||
17256 | |||
17257 | else | ||
17258 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17259 | echo "$as_me: failed program was:" >&5 | ||
17260 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17261 | |||
17262 | ( exit $ac_status ) | ||
17263 | |||
17264 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17265 | echo "${ECHO_T}no" >&6; } | ||
17266 | # Default to use of the rand helper if OpenSSL doesn't | ||
17267 | # seed itself | ||
17268 | USE_RAND_HELPER=yes | ||
17269 | |||
17270 | fi | ||
17271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17272 | fi | ||
17273 | |||
17274 | |||
17275 | |||
17276 | # Check for PAM libs | ||
17277 | PAM_MSG="no" | ||
17278 | |||
17279 | # Check whether --with-pam was given. | ||
17280 | if test "${with_pam+set}" = set; then | ||
17281 | withval=$with_pam; | ||
17282 | if test "x$withval" != "xno" ; then | ||
17283 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
17284 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
17285 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
17286 | echo "$as_me: error: PAM headers not found" >&2;} | ||
17287 | { (exit 1); exit 1; }; } | ||
17288 | fi | ||
17289 | |||
17290 | saved_LIBS="$LIBS" | ||
17291 | |||
17292 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
17293 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
17294 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17296 | else | ||
17297 | ac_check_lib_save_LIBS=$LIBS | ||
17298 | LIBS="-ldl $LIBS" | ||
17299 | cat >conftest.$ac_ext <<_ACEOF | ||
17300 | /* confdefs.h. */ | ||
17301 | _ACEOF | ||
17302 | cat confdefs.h >>conftest.$ac_ext | ||
17303 | cat >>conftest.$ac_ext <<_ACEOF | ||
17304 | /* end confdefs.h. */ | ||
17305 | |||
17306 | /* Override any GCC internal prototype to avoid an error. | ||
17307 | Use char because int might match the return type of a GCC | ||
17308 | builtin and then its argument prototype would still apply. */ | ||
17309 | #ifdef __cplusplus | ||
17310 | extern "C" | ||
17311 | #endif | ||
17312 | char dlopen (); | ||
17313 | int | ||
17314 | main () | ||
17315 | { | ||
17316 | return dlopen (); | ||
17317 | ; | ||
17318 | return 0; | ||
17319 | } | ||
17320 | _ACEOF | ||
17321 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17322 | if { (ac_try="$ac_link" | ||
17323 | case "(($ac_try" in | ||
17324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17325 | *) ac_try_echo=$ac_try;; | ||
17326 | esac | ||
17327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17328 | (eval "$ac_link") 2>conftest.er1 | ||
17329 | ac_status=$? | ||
17330 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17331 | rm -f conftest.er1 | ||
17332 | cat conftest.err >&5 | ||
17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17334 | (exit $ac_status); } && { | ||
17335 | test -z "$ac_c_werror_flag" || | ||
17336 | test ! -s conftest.err | ||
17337 | } && test -s conftest$ac_exeext && | ||
17338 | $as_test_x conftest$ac_exeext; then | ||
17339 | ac_cv_lib_dl_dlopen=yes | ||
17340 | else | ||
17341 | echo "$as_me: failed program was:" >&5 | ||
17342 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17343 | |||
17344 | ac_cv_lib_dl_dlopen=no | ||
17345 | fi | ||
17346 | |||
17347 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17348 | conftest$ac_exeext conftest.$ac_ext | ||
17349 | LIBS=$ac_check_lib_save_LIBS | ||
17350 | fi | ||
17351 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17352 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
17353 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17354 | cat >>confdefs.h <<_ACEOF | ||
17355 | #define HAVE_LIBDL 1 | ||
17356 | _ACEOF | ||
17357 | |||
17358 | LIBS="-ldl $LIBS" | ||
17359 | |||
17360 | fi | ||
17361 | |||
17362 | |||
17363 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
17364 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
17365 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
17366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17367 | else | ||
17368 | ac_check_lib_save_LIBS=$LIBS | ||
17369 | LIBS="-lpam $LIBS" | ||
17370 | cat >conftest.$ac_ext <<_ACEOF | ||
17371 | /* confdefs.h. */ | ||
17372 | _ACEOF | ||
17373 | cat confdefs.h >>conftest.$ac_ext | ||
17374 | cat >>conftest.$ac_ext <<_ACEOF | ||
17375 | /* end confdefs.h. */ | ||
17376 | |||
17377 | /* Override any GCC internal prototype to avoid an error. | ||
17378 | Use char because int might match the return type of a GCC | ||
17379 | builtin and then its argument prototype would still apply. */ | ||
17380 | #ifdef __cplusplus | ||
17381 | extern "C" | ||
17382 | #endif | ||
17383 | char pam_set_item (); | ||
17384 | int | ||
17385 | main () | ||
17386 | { | ||
17387 | return pam_set_item (); | ||
17388 | ; | ||
17389 | return 0; | ||
17390 | } | ||
17391 | _ACEOF | ||
17392 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17393 | if { (ac_try="$ac_link" | ||
17394 | case "(($ac_try" in | ||
17395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17396 | *) ac_try_echo=$ac_try;; | ||
17397 | esac | ||
17398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17399 | (eval "$ac_link") 2>conftest.er1 | ||
17400 | ac_status=$? | ||
17401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17402 | rm -f conftest.er1 | ||
17403 | cat conftest.err >&5 | ||
17404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17405 | (exit $ac_status); } && { | ||
17406 | test -z "$ac_c_werror_flag" || | ||
17407 | test ! -s conftest.err | ||
17408 | } && test -s conftest$ac_exeext && | ||
17409 | $as_test_x conftest$ac_exeext; then | ||
17410 | ac_cv_lib_pam_pam_set_item=yes | ||
17411 | else | ||
17412 | echo "$as_me: failed program was:" >&5 | ||
17413 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17414 | |||
17415 | ac_cv_lib_pam_pam_set_item=no | ||
17416 | fi | ||
17417 | |||
17418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17419 | conftest$ac_exeext conftest.$ac_ext | ||
17420 | LIBS=$ac_check_lib_save_LIBS | ||
17421 | fi | ||
17422 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
17423 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
17424 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
17425 | cat >>confdefs.h <<_ACEOF | ||
17426 | #define HAVE_LIBPAM 1 | ||
17427 | _ACEOF | ||
17428 | |||
17429 | LIBS="-lpam $LIBS" | ||
17430 | |||
17431 | else | ||
17432 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
17433 | echo "$as_me: error: *** libpam missing" >&2;} | ||
17434 | { (exit 1); exit 1; }; } | ||
17435 | fi | ||
17436 | |||
17437 | |||
17438 | for ac_func in pam_getenvlist | ||
17439 | do | ||
17440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17441 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17443 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17445 | else | ||
17446 | cat >conftest.$ac_ext <<_ACEOF | ||
17447 | /* confdefs.h. */ | ||
17448 | _ACEOF | ||
17449 | cat confdefs.h >>conftest.$ac_ext | ||
17450 | cat >>conftest.$ac_ext <<_ACEOF | ||
17451 | /* end confdefs.h. */ | ||
17452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17454 | #define $ac_func innocuous_$ac_func | ||
17455 | |||
17456 | /* System header to define __stub macros and hopefully few prototypes, | ||
17457 | which can conflict with char $ac_func (); below. | ||
17458 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17459 | <limits.h> exists even on freestanding compilers. */ | ||
17460 | |||
17461 | #ifdef __STDC__ | ||
17462 | # include <limits.h> | ||
17463 | #else | ||
17464 | # include <assert.h> | ||
17465 | #endif | ||
17466 | |||
17467 | #undef $ac_func | ||
17468 | |||
17469 | /* Override any GCC internal prototype to avoid an error. | ||
17470 | Use char because int might match the return type of a GCC | ||
17471 | builtin and then its argument prototype would still apply. */ | ||
17472 | #ifdef __cplusplus | ||
17473 | extern "C" | ||
17474 | #endif | ||
17475 | char $ac_func (); | ||
17476 | /* The GNU C library defines this for functions which it implements | ||
17477 | to always fail with ENOSYS. Some functions are actually named | ||
17478 | something starting with __ and the normal name is an alias. */ | ||
17479 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17480 | choke me | ||
17481 | #endif | ||
17482 | |||
17483 | int | ||
17484 | main () | ||
17485 | { | ||
17486 | return $ac_func (); | ||
17487 | ; | ||
17488 | return 0; | ||
17489 | } | ||
17490 | _ACEOF | ||
17491 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17492 | if { (ac_try="$ac_link" | ||
17493 | case "(($ac_try" in | ||
17494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17495 | *) ac_try_echo=$ac_try;; | ||
17496 | esac | ||
17497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17498 | (eval "$ac_link") 2>conftest.er1 | ||
17499 | ac_status=$? | ||
17500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17501 | rm -f conftest.er1 | ||
17502 | cat conftest.err >&5 | ||
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17504 | (exit $ac_status); } && { | ||
17505 | test -z "$ac_c_werror_flag" || | ||
17506 | test ! -s conftest.err | ||
17507 | } && test -s conftest$ac_exeext && | ||
17508 | $as_test_x conftest$ac_exeext; then | ||
17509 | eval "$as_ac_var=yes" | ||
17510 | else | ||
17511 | echo "$as_me: failed program was:" >&5 | ||
17512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17513 | |||
17514 | eval "$as_ac_var=no" | ||
17515 | fi | ||
17516 | |||
17517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17518 | conftest$ac_exeext conftest.$ac_ext | ||
17519 | fi | ||
17520 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17522 | echo "${ECHO_T}$ac_res" >&6; } | ||
17523 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17524 | cat >>confdefs.h <<_ACEOF | ||
17525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17526 | _ACEOF | ||
17527 | |||
17528 | fi | ||
17529 | done | ||
17530 | |||
17531 | |||
17532 | for ac_func in pam_putenv | ||
17533 | do | ||
17534 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17535 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17536 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17537 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17539 | else | ||
17540 | cat >conftest.$ac_ext <<_ACEOF | ||
17541 | /* confdefs.h. */ | ||
17542 | _ACEOF | ||
17543 | cat confdefs.h >>conftest.$ac_ext | ||
17544 | cat >>conftest.$ac_ext <<_ACEOF | ||
17545 | /* end confdefs.h. */ | ||
17546 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17548 | #define $ac_func innocuous_$ac_func | ||
17549 | |||
17550 | /* System header to define __stub macros and hopefully few prototypes, | ||
17551 | which can conflict with char $ac_func (); below. | ||
17552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17553 | <limits.h> exists even on freestanding compilers. */ | ||
17554 | |||
17555 | #ifdef __STDC__ | ||
17556 | # include <limits.h> | ||
17557 | #else | ||
17558 | # include <assert.h> | ||
17559 | #endif | ||
17560 | |||
17561 | #undef $ac_func | ||
17562 | |||
17563 | /* Override any GCC internal prototype to avoid an error. | ||
17564 | Use char because int might match the return type of a GCC | ||
17565 | builtin and then its argument prototype would still apply. */ | ||
17566 | #ifdef __cplusplus | ||
17567 | extern "C" | ||
17568 | #endif | ||
17569 | char $ac_func (); | ||
17570 | /* The GNU C library defines this for functions which it implements | ||
17571 | to always fail with ENOSYS. Some functions are actually named | ||
17572 | something starting with __ and the normal name is an alias. */ | ||
17573 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17574 | choke me | ||
17575 | #endif | ||
17576 | |||
17577 | int | ||
17578 | main () | ||
17579 | { | ||
17580 | return $ac_func (); | ||
17581 | ; | ||
17582 | return 0; | ||
17583 | } | ||
17584 | _ACEOF | ||
17585 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17586 | if { (ac_try="$ac_link" | ||
17587 | case "(($ac_try" in | ||
17588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17589 | *) ac_try_echo=$ac_try;; | ||
17590 | esac | ||
17591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17592 | (eval "$ac_link") 2>conftest.er1 | ||
17593 | ac_status=$? | ||
17594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17595 | rm -f conftest.er1 | ||
17596 | cat conftest.err >&5 | ||
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17598 | (exit $ac_status); } && { | ||
17599 | test -z "$ac_c_werror_flag" || | ||
17600 | test ! -s conftest.err | ||
17601 | } && test -s conftest$ac_exeext && | ||
17602 | $as_test_x conftest$ac_exeext; then | ||
17603 | eval "$as_ac_var=yes" | ||
17604 | else | ||
17605 | echo "$as_me: failed program was:" >&5 | ||
17606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17607 | |||
17608 | eval "$as_ac_var=no" | ||
17609 | fi | ||
17610 | |||
17611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17612 | conftest$ac_exeext conftest.$ac_ext | ||
17613 | fi | ||
17614 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17615 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17616 | echo "${ECHO_T}$ac_res" >&6; } | ||
17617 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17618 | cat >>confdefs.h <<_ACEOF | ||
17619 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17620 | _ACEOF | ||
17621 | |||
17622 | fi | ||
17623 | done | ||
17624 | |||
17625 | LIBS="$saved_LIBS" | ||
17626 | |||
17627 | PAM_MSG="yes" | ||
17628 | |||
17629 | SSHDLIBS="$SSHDLIBS -lpam" | ||
17630 | |||
17631 | cat >>confdefs.h <<\_ACEOF | ||
17632 | #define USE_PAM 1 | ||
17633 | _ACEOF | ||
17634 | |||
17635 | |||
17636 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17637 | case "$LIBS" in | ||
17638 | *-ldl*) | ||
17639 | # libdl already in LIBS | ||
17640 | ;; | ||
17641 | *) | ||
17642 | SSHDLIBS="$SSHDLIBS -ldl" | ||
17643 | ;; | ||
17644 | esac | ||
17645 | fi | ||
17646 | fi | ||
17647 | |||
17648 | |||
17649 | fi | ||
17650 | |||
17651 | |||
17652 | # Check for older PAM | ||
17653 | if test "x$PAM_MSG" = "xyes" ; then | ||
17654 | # Check PAM strerror arguments (old PAM) | ||
17655 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
17656 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
17657 | cat >conftest.$ac_ext <<_ACEOF | ||
17658 | /* confdefs.h. */ | ||
17659 | _ACEOF | ||
17660 | cat confdefs.h >>conftest.$ac_ext | ||
17661 | cat >>conftest.$ac_ext <<_ACEOF | ||
17662 | /* end confdefs.h. */ | ||
17663 | |||
17664 | #include <stdlib.h> | ||
17665 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
17666 | #include <security/pam_appl.h> | ||
17667 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
17668 | #include <pam/pam_appl.h> | ||
17669 | #endif | ||
17670 | |||
17671 | int | ||
17672 | main () | ||
17673 | { | ||
17674 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
17675 | ; | ||
17676 | return 0; | ||
17677 | } | ||
17678 | _ACEOF | ||
17679 | rm -f conftest.$ac_objext | ||
17680 | if { (ac_try="$ac_compile" | ||
17681 | case "(($ac_try" in | ||
17682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17683 | *) ac_try_echo=$ac_try;; | ||
17684 | esac | ||
17685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17686 | (eval "$ac_compile") 2>conftest.er1 | ||
17687 | ac_status=$? | ||
17688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17689 | rm -f conftest.er1 | ||
17690 | cat conftest.err >&5 | ||
17691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17692 | (exit $ac_status); } && { | ||
17693 | test -z "$ac_c_werror_flag" || | ||
17694 | test ! -s conftest.err | ||
17695 | } && test -s conftest.$ac_objext; then | ||
17696 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17697 | echo "${ECHO_T}no" >&6; } | ||
17698 | else | ||
17699 | echo "$as_me: failed program was:" >&5 | ||
17700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17701 | |||
17702 | |||
17703 | |||
17704 | cat >>confdefs.h <<\_ACEOF | ||
17705 | #define HAVE_OLD_PAM 1 | ||
17706 | _ACEOF | ||
17707 | |||
17708 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17709 | echo "${ECHO_T}yes" >&6; } | ||
17710 | PAM_MSG="yes (old library)" | ||
17711 | |||
17712 | |||
17713 | fi | ||
17714 | |||
17715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17716 | fi | ||
17717 | |||
17718 | # Do we want to force the use of the rand helper? | ||
17719 | |||
17720 | # Check whether --with-rand-helper was given. | ||
17721 | if test "${with_rand_helper+set}" = set; then | ||
17722 | withval=$with_rand_helper; | ||
17723 | if test "x$withval" = "xno" ; then | ||
17724 | # Force use of OpenSSL's internal RNG, even if | ||
17725 | # the previous test showed it to be unseeded. | ||
17726 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
17727 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
17728 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
17729 | OPENSSL_SEEDS_ITSELF=yes | ||
17730 | USE_RAND_HELPER="" | ||
17731 | fi | ||
17732 | else | ||
17733 | USE_RAND_HELPER=yes | ||
17734 | fi | ||
17735 | |||
17736 | fi | ||
17737 | |||
17738 | |||
17739 | # Which randomness source do we use? | ||
17740 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
17741 | # OpenSSL only | ||
17742 | |||
17743 | cat >>confdefs.h <<\_ACEOF | ||
17744 | #define OPENSSL_PRNG_ONLY 1 | ||
17745 | _ACEOF | ||
17746 | |||
17747 | RAND_MSG="OpenSSL internal ONLY" | ||
17748 | INSTALL_SSH_RAND_HELPER="" | ||
17749 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
17750 | # install rand helper | ||
17751 | RAND_MSG="ssh-rand-helper" | ||
17752 | INSTALL_SSH_RAND_HELPER="yes" | ||
17753 | fi | ||
17754 | |||
17755 | |||
17756 | ### Configuration of ssh-rand-helper | ||
17757 | |||
17758 | # PRNGD TCP socket | ||
17759 | |||
17760 | # Check whether --with-prngd-port was given. | ||
17761 | if test "${with_prngd_port+set}" = set; then | ||
17762 | withval=$with_prngd_port; | ||
17763 | case "$withval" in | ||
17764 | no) | ||
17765 | withval="" | ||
17766 | ;; | ||
17767 | [0-9]*) | ||
17768 | ;; | ||
17769 | *) | ||
17770 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
17771 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
17772 | { (exit 1); exit 1; }; } | ||
17773 | ;; | ||
17774 | esac | ||
17775 | if test ! -z "$withval" ; then | ||
17776 | PRNGD_PORT="$withval" | ||
17777 | |||
17778 | cat >>confdefs.h <<_ACEOF | ||
17779 | #define PRNGD_PORT $PRNGD_PORT | ||
17780 | _ACEOF | ||
17781 | |||
17782 | fi | ||
17783 | |||
17784 | |||
17785 | fi | ||
17786 | |||
17787 | |||
17788 | # PRNGD Unix domain socket | ||
17789 | |||
17790 | # Check whether --with-prngd-socket was given. | ||
17791 | if test "${with_prngd_socket+set}" = set; then | ||
17792 | withval=$with_prngd_socket; | ||
17793 | case "$withval" in | ||
17794 | yes) | ||
17795 | withval="/var/run/egd-pool" | ||
17796 | ;; | ||
17797 | no) | ||
17798 | withval="" | ||
17799 | ;; | ||
17800 | /*) | ||
17801 | ;; | ||
17802 | *) | ||
17803 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
17804 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
17805 | { (exit 1); exit 1; }; } | ||
17806 | ;; | ||
17807 | esac | ||
17808 | |||
17809 | if test ! -z "$withval" ; then | ||
17810 | if test ! -z "$PRNGD_PORT" ; then | ||
17811 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
17812 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
17813 | { (exit 1); exit 1; }; } | ||
17814 | fi | ||
17815 | if test ! -r "$withval" ; then | ||
17816 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
17817 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
17818 | fi | ||
17819 | PRNGD_SOCKET="$withval" | ||
17820 | |||
17821 | cat >>confdefs.h <<_ACEOF | ||
17822 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
17823 | _ACEOF | ||
17824 | |||
17825 | fi | ||
17826 | |||
17827 | else | ||
17828 | |||
17829 | # Check for existing socket only if we don't have a random device already | ||
17830 | if test "$USE_RAND_HELPER" = yes ; then | ||
17831 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
17832 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
17833 | # Insert other locations here | ||
17834 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
17835 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
17836 | PRNGD_SOCKET="$sock" | ||
17837 | cat >>confdefs.h <<_ACEOF | ||
17838 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
17839 | _ACEOF | ||
17840 | |||
17841 | break; | ||
17842 | fi | ||
17843 | done | ||
17844 | if test ! -z "$PRNGD_SOCKET" ; then | ||
17845 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
17846 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
17847 | else | ||
17848 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
17849 | echo "${ECHO_T}not found" >&6; } | ||
17850 | fi | ||
17851 | fi | ||
17852 | |||
17853 | |||
17854 | fi | ||
17855 | |||
17856 | |||
17857 | # Change default command timeout for hashing entropy source | ||
17858 | entropy_timeout=200 | ||
17859 | |||
17860 | # Check whether --with-entropy-timeout was given. | ||
17861 | if test "${with_entropy_timeout+set}" = set; then | ||
17862 | withval=$with_entropy_timeout; | ||
17863 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17864 | test "x${withval}" != "xyes"; then | ||
17865 | entropy_timeout=$withval | ||
17866 | fi | ||
17867 | |||
17868 | |||
17869 | fi | ||
17870 | |||
17871 | |||
17872 | cat >>confdefs.h <<_ACEOF | ||
17873 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
17874 | _ACEOF | ||
17875 | |||
17876 | |||
17877 | SSH_PRIVSEP_USER=sshd | ||
17878 | |||
17879 | # Check whether --with-privsep-user was given. | ||
17880 | if test "${with_privsep_user+set}" = set; then | ||
17881 | withval=$with_privsep_user; | ||
17882 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17883 | test "x${withval}" != "xyes"; then | ||
17884 | SSH_PRIVSEP_USER=$withval | ||
17885 | fi | ||
17886 | |||
17887 | |||
17888 | fi | ||
17889 | |||
17890 | |||
17891 | cat >>confdefs.h <<_ACEOF | ||
17892 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
17893 | _ACEOF | ||
17894 | |||
17895 | |||
17896 | |||
17897 | # We do this little dance with the search path to insure | ||
17898 | # that programs that we select for use by installed programs | ||
17899 | # (which may be run by the super-user) come from trusted | ||
17900 | # locations before they come from the user's private area. | ||
17901 | # This should help avoid accidentally configuring some | ||
17902 | # random version of a program in someone's personal bin. | ||
17903 | |||
17904 | OPATH=$PATH | ||
17905 | PATH=/bin:/usr/bin | ||
17906 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
17907 | test -d /sbin && PATH=$PATH:/sbin | ||
17908 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
17909 | PATH=$PATH:/etc:$OPATH | ||
17910 | |||
17911 | # These programs are used by the command hashing source to gather entropy | ||
17912 | |||
17913 | # Extract the first word of "ls", so it can be a program name with args. | ||
17914 | set dummy ls; ac_word=$2 | ||
17915 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17917 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
17918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17919 | else | ||
17920 | case $PROG_LS in | ||
17921 | [\\/]* | ?:[\\/]*) | ||
17922 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
17923 | ;; | ||
17924 | *) | ||
17925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17926 | for as_dir in $PATH | ||
17927 | do | ||
17928 | IFS=$as_save_IFS | ||
17929 | test -z "$as_dir" && as_dir=. | ||
17930 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17932 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
17933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17934 | break 2 | ||
17935 | fi | ||
17936 | done | ||
17937 | done | ||
17938 | IFS=$as_save_IFS | ||
17939 | |||
17940 | ;; | ||
17941 | esac | ||
17942 | fi | ||
17943 | PROG_LS=$ac_cv_path_PROG_LS | ||
17944 | if test -n "$PROG_LS"; then | ||
17945 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
17946 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
17947 | else | ||
17948 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17949 | echo "${ECHO_T}no" >&6; } | ||
17950 | fi | ||
17951 | |||
17952 | |||
17953 | if test -z "$PROG_LS" ; then | ||
17954 | PROG_LS="undef" | ||
17955 | fi | ||
17956 | |||
17957 | |||
17958 | |||
17959 | # Extract the first word of "netstat", so it can be a program name with args. | ||
17960 | set dummy netstat; ac_word=$2 | ||
17961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17963 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
17964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17965 | else | ||
17966 | case $PROG_NETSTAT in | ||
17967 | [\\/]* | ?:[\\/]*) | ||
17968 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
17969 | ;; | ||
17970 | *) | ||
17971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17972 | for as_dir in $PATH | ||
17973 | do | ||
17974 | IFS=$as_save_IFS | ||
17975 | test -z "$as_dir" && as_dir=. | ||
17976 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17978 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17980 | break 2 | ||
17981 | fi | ||
17982 | done | ||
17983 | done | ||
17984 | IFS=$as_save_IFS | ||
17985 | |||
17986 | ;; | ||
17987 | esac | ||
17988 | fi | ||
17989 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
17990 | if test -n "$PROG_NETSTAT"; then | ||
17991 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
17992 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
17993 | else | ||
17994 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17995 | echo "${ECHO_T}no" >&6; } | ||
17996 | fi | ||
17997 | |||
17998 | |||
17999 | if test -z "$PROG_NETSTAT" ; then | ||
18000 | PROG_NETSTAT="undef" | ||
18001 | fi | ||
18002 | |||
18003 | |||
18004 | |||
18005 | # Extract the first word of "arp", so it can be a program name with args. | ||
18006 | set dummy arp; ac_word=$2 | ||
18007 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18009 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
18010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18011 | else | ||
18012 | case $PROG_ARP in | ||
18013 | [\\/]* | ?:[\\/]*) | ||
18014 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
18015 | ;; | ||
18016 | *) | ||
18017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18018 | for as_dir in $PATH | ||
18019 | do | ||
18020 | IFS=$as_save_IFS | ||
18021 | test -z "$as_dir" && as_dir=. | ||
18022 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18024 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
18025 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18026 | break 2 | ||
18027 | fi | ||
18028 | done | ||
18029 | done | ||
18030 | IFS=$as_save_IFS | ||
18031 | |||
18032 | ;; | ||
18033 | esac | ||
18034 | fi | ||
18035 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
18036 | if test -n "$PROG_ARP"; then | ||
18037 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
18038 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
18039 | else | ||
18040 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18041 | echo "${ECHO_T}no" >&6; } | ||
18042 | fi | ||
18043 | |||
18044 | |||
18045 | if test -z "$PROG_ARP" ; then | ||
18046 | PROG_ARP="undef" | ||
18047 | fi | ||
18048 | |||
18049 | |||
18050 | |||
18051 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
18052 | set dummy ifconfig; ac_word=$2 | ||
18053 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18055 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
18056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18057 | else | ||
18058 | case $PROG_IFCONFIG in | ||
18059 | [\\/]* | ?:[\\/]*) | ||
18060 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
18061 | ;; | ||
18062 | *) | ||
18063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18064 | for as_dir in $PATH | ||
18065 | do | ||
18066 | IFS=$as_save_IFS | ||
18067 | test -z "$as_dir" && as_dir=. | ||
18068 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18070 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
18071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18072 | break 2 | ||
18073 | fi | ||
18074 | done | ||
18075 | done | ||
18076 | IFS=$as_save_IFS | ||
18077 | |||
18078 | ;; | ||
18079 | esac | ||
18080 | fi | ||
18081 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
18082 | if test -n "$PROG_IFCONFIG"; then | ||
18083 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
18084 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
18085 | else | ||
18086 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18087 | echo "${ECHO_T}no" >&6; } | ||
18088 | fi | ||
18089 | |||
18090 | |||
18091 | if test -z "$PROG_IFCONFIG" ; then | ||
18092 | PROG_IFCONFIG="undef" | ||
18093 | fi | ||
18094 | |||
18095 | |||
18096 | |||
18097 | # Extract the first word of "jstat", so it can be a program name with args. | ||
18098 | set dummy jstat; ac_word=$2 | ||
18099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18101 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
18102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18103 | else | ||
18104 | case $PROG_JSTAT in | ||
18105 | [\\/]* | ?:[\\/]*) | ||
18106 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
18107 | ;; | ||
18108 | *) | ||
18109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18110 | for as_dir in $PATH | ||
18111 | do | ||
18112 | IFS=$as_save_IFS | ||
18113 | test -z "$as_dir" && as_dir=. | ||
18114 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18116 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18118 | break 2 | ||
18119 | fi | ||
18120 | done | ||
18121 | done | ||
18122 | IFS=$as_save_IFS | ||
18123 | |||
18124 | ;; | ||
18125 | esac | ||
18126 | fi | ||
18127 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
18128 | if test -n "$PROG_JSTAT"; then | ||
18129 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
18130 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
18131 | else | ||
18132 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18133 | echo "${ECHO_T}no" >&6; } | ||
18134 | fi | ||
18135 | |||
18136 | |||
18137 | if test -z "$PROG_JSTAT" ; then | ||
18138 | PROG_JSTAT="undef" | ||
18139 | fi | ||
18140 | |||
18141 | |||
18142 | |||
18143 | # Extract the first word of "ps", so it can be a program name with args. | ||
18144 | set dummy ps; ac_word=$2 | ||
18145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18147 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
18148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18149 | else | ||
18150 | case $PROG_PS in | ||
18151 | [\\/]* | ?:[\\/]*) | ||
18152 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
18153 | ;; | ||
18154 | *) | ||
18155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18156 | for as_dir in $PATH | ||
18157 | do | ||
18158 | IFS=$as_save_IFS | ||
18159 | test -z "$as_dir" && as_dir=. | ||
18160 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18162 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
18163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18164 | break 2 | ||
18165 | fi | ||
18166 | done | ||
18167 | done | ||
18168 | IFS=$as_save_IFS | ||
18169 | |||
18170 | ;; | ||
18171 | esac | ||
18172 | fi | ||
18173 | PROG_PS=$ac_cv_path_PROG_PS | ||
18174 | if test -n "$PROG_PS"; then | ||
18175 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
18176 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
18177 | else | ||
18178 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18179 | echo "${ECHO_T}no" >&6; } | ||
18180 | fi | ||
18181 | |||
18182 | |||
18183 | if test -z "$PROG_PS" ; then | ||
18184 | PROG_PS="undef" | ||
18185 | fi | ||
18186 | |||
18187 | |||
18188 | |||
18189 | # Extract the first word of "sar", so it can be a program name with args. | ||
18190 | set dummy sar; ac_word=$2 | ||
18191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18193 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
18194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18195 | else | ||
18196 | case $PROG_SAR in | ||
18197 | [\\/]* | ?:[\\/]*) | ||
18198 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
18199 | ;; | ||
18200 | *) | ||
18201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18202 | for as_dir in $PATH | ||
18203 | do | ||
18204 | IFS=$as_save_IFS | ||
18205 | test -z "$as_dir" && as_dir=. | ||
18206 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18208 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
18209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18210 | break 2 | ||
18211 | fi | ||
18212 | done | ||
18213 | done | ||
18214 | IFS=$as_save_IFS | ||
18215 | |||
18216 | ;; | ||
18217 | esac | ||
18218 | fi | ||
18219 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
18220 | if test -n "$PROG_SAR"; then | ||
18221 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
18222 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
18223 | else | ||
18224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18225 | echo "${ECHO_T}no" >&6; } | ||
18226 | fi | ||
18227 | |||
18228 | |||
18229 | if test -z "$PROG_SAR" ; then | ||
18230 | PROG_SAR="undef" | ||
18231 | fi | ||
18232 | |||
18233 | |||
18234 | |||
18235 | # Extract the first word of "w", so it can be a program name with args. | ||
18236 | set dummy w; ac_word=$2 | ||
18237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18239 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18241 | else | ||
18242 | case $PROG_W in | ||
18243 | [\\/]* | ?:[\\/]*) | ||
18244 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
18245 | ;; | ||
18246 | *) | ||
18247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18248 | for as_dir in $PATH | ||
18249 | do | ||
18250 | IFS=$as_save_IFS | ||
18251 | test -z "$as_dir" && as_dir=. | ||
18252 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18254 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
18255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18256 | break 2 | ||
18257 | fi | ||
18258 | done | ||
18259 | done | ||
18260 | IFS=$as_save_IFS | ||
18261 | |||
18262 | ;; | ||
18263 | esac | ||
18264 | fi | ||
18265 | PROG_W=$ac_cv_path_PROG_W | ||
18266 | if test -n "$PROG_W"; then | ||
18267 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
18268 | echo "${ECHO_T}$PROG_W" >&6; } | ||
18269 | else | ||
18270 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18271 | echo "${ECHO_T}no" >&6; } | ||
18272 | fi | ||
18273 | |||
18274 | |||
18275 | if test -z "$PROG_W" ; then | ||
18276 | PROG_W="undef" | ||
18277 | fi | ||
18278 | |||
18279 | |||
18280 | |||
18281 | # Extract the first word of "who", so it can be a program name with args. | ||
18282 | set dummy who; ac_word=$2 | ||
18283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18285 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
18286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18287 | else | ||
18288 | case $PROG_WHO in | ||
18289 | [\\/]* | ?:[\\/]*) | ||
18290 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
18291 | ;; | ||
18292 | *) | ||
18293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18294 | for as_dir in $PATH | ||
18295 | do | ||
18296 | IFS=$as_save_IFS | ||
18297 | test -z "$as_dir" && as_dir=. | ||
18298 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18300 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
18301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18302 | break 2 | ||
18303 | fi | ||
18304 | done | ||
18305 | done | ||
18306 | IFS=$as_save_IFS | ||
18307 | |||
18308 | ;; | ||
18309 | esac | ||
18310 | fi | ||
18311 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
18312 | if test -n "$PROG_WHO"; then | ||
18313 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
18314 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
18315 | else | ||
18316 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18317 | echo "${ECHO_T}no" >&6; } | ||
18318 | fi | ||
18319 | |||
18320 | |||
18321 | if test -z "$PROG_WHO" ; then | ||
18322 | PROG_WHO="undef" | ||
18323 | fi | ||
18324 | |||
18325 | |||
18326 | |||
18327 | # Extract the first word of "last", so it can be a program name with args. | ||
18328 | set dummy last; ac_word=$2 | ||
18329 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18331 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
18332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18333 | else | ||
18334 | case $PROG_LAST in | ||
18335 | [\\/]* | ?:[\\/]*) | ||
18336 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
18337 | ;; | ||
18338 | *) | ||
18339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18340 | for as_dir in $PATH | ||
18341 | do | ||
18342 | IFS=$as_save_IFS | ||
18343 | test -z "$as_dir" && as_dir=. | ||
18344 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18346 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
18347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18348 | break 2 | ||
18349 | fi | ||
18350 | done | ||
18351 | done | ||
18352 | IFS=$as_save_IFS | ||
18353 | |||
18354 | ;; | ||
18355 | esac | ||
18356 | fi | ||
18357 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
18358 | if test -n "$PROG_LAST"; then | ||
18359 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
18360 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
18361 | else | ||
18362 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18363 | echo "${ECHO_T}no" >&6; } | ||
18364 | fi | ||
18365 | |||
18366 | |||
18367 | if test -z "$PROG_LAST" ; then | ||
18368 | PROG_LAST="undef" | ||
18369 | fi | ||
18370 | |||
18371 | |||
18372 | |||
18373 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
18374 | set dummy lastlog; ac_word=$2 | ||
18375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18377 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
18378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18379 | else | ||
18380 | case $PROG_LASTLOG in | ||
18381 | [\\/]* | ?:[\\/]*) | ||
18382 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
18383 | ;; | ||
18384 | *) | ||
18385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18386 | for as_dir in $PATH | ||
18387 | do | ||
18388 | IFS=$as_save_IFS | ||
18389 | test -z "$as_dir" && as_dir=. | ||
18390 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18392 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
18393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18394 | break 2 | ||
18395 | fi | ||
18396 | done | ||
18397 | done | ||
18398 | IFS=$as_save_IFS | ||
18399 | |||
18400 | ;; | ||
18401 | esac | ||
18402 | fi | ||
18403 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
18404 | if test -n "$PROG_LASTLOG"; then | ||
18405 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
18406 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
18407 | else | ||
18408 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18409 | echo "${ECHO_T}no" >&6; } | ||
18410 | fi | ||
18411 | |||
18412 | |||
18413 | if test -z "$PROG_LASTLOG" ; then | ||
18414 | PROG_LASTLOG="undef" | ||
18415 | fi | ||
18416 | |||
18417 | |||
18418 | |||
18419 | # Extract the first word of "df", so it can be a program name with args. | ||
18420 | set dummy df; ac_word=$2 | ||
18421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18423 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
18424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18425 | else | ||
18426 | case $PROG_DF in | ||
18427 | [\\/]* | ?:[\\/]*) | ||
18428 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
18429 | ;; | ||
18430 | *) | ||
18431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18432 | for as_dir in $PATH | ||
18433 | do | ||
18434 | IFS=$as_save_IFS | ||
18435 | test -z "$as_dir" && as_dir=. | ||
18436 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18438 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
18439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18440 | break 2 | ||
18441 | fi | ||
18442 | done | ||
18443 | done | ||
18444 | IFS=$as_save_IFS | ||
18445 | |||
18446 | ;; | ||
18447 | esac | ||
18448 | fi | ||
18449 | PROG_DF=$ac_cv_path_PROG_DF | ||
18450 | if test -n "$PROG_DF"; then | ||
18451 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
18452 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
18453 | else | ||
18454 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18455 | echo "${ECHO_T}no" >&6; } | ||
18456 | fi | ||
18457 | |||
18458 | |||
18459 | if test -z "$PROG_DF" ; then | ||
18460 | PROG_DF="undef" | ||
18461 | fi | ||
18462 | |||
18463 | |||
18464 | |||
18465 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
18466 | set dummy vmstat; ac_word=$2 | ||
18467 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18469 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
18470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18471 | else | ||
18472 | case $PROG_VMSTAT in | ||
18473 | [\\/]* | ?:[\\/]*) | ||
18474 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
18475 | ;; | ||
18476 | *) | ||
18477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18478 | for as_dir in $PATH | ||
18479 | do | ||
18480 | IFS=$as_save_IFS | ||
18481 | test -z "$as_dir" && as_dir=. | ||
18482 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18484 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18486 | break 2 | ||
18487 | fi | ||
18488 | done | ||
18489 | done | ||
18490 | IFS=$as_save_IFS | ||
18491 | |||
18492 | ;; | ||
18493 | esac | ||
18494 | fi | ||
18495 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
18496 | if test -n "$PROG_VMSTAT"; then | ||
18497 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
18498 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
18499 | else | ||
18500 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18501 | echo "${ECHO_T}no" >&6; } | ||
18502 | fi | ||
18503 | |||
18504 | |||
18505 | if test -z "$PROG_VMSTAT" ; then | ||
18506 | PROG_VMSTAT="undef" | ||
18507 | fi | ||
18508 | |||
18509 | |||
18510 | |||
18511 | # Extract the first word of "uptime", so it can be a program name with args. | ||
18512 | set dummy uptime; ac_word=$2 | ||
18513 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18515 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
18516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18517 | else | ||
18518 | case $PROG_UPTIME in | ||
18519 | [\\/]* | ?:[\\/]*) | ||
18520 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
18521 | ;; | ||
18522 | *) | ||
18523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18524 | for as_dir in $PATH | ||
18525 | do | ||
18526 | IFS=$as_save_IFS | ||
18527 | test -z "$as_dir" && as_dir=. | ||
18528 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18530 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
18531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18532 | break 2 | ||
18533 | fi | ||
18534 | done | ||
18535 | done | ||
18536 | IFS=$as_save_IFS | ||
18537 | |||
18538 | ;; | ||
18539 | esac | ||
18540 | fi | ||
18541 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
18542 | if test -n "$PROG_UPTIME"; then | ||
18543 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
18544 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
18545 | else | ||
18546 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18547 | echo "${ECHO_T}no" >&6; } | ||
18548 | fi | ||
18549 | |||
18550 | |||
18551 | if test -z "$PROG_UPTIME" ; then | ||
18552 | PROG_UPTIME="undef" | ||
18553 | fi | ||
18554 | |||
18555 | |||
18556 | |||
18557 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
18558 | set dummy ipcs; ac_word=$2 | ||
18559 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18561 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
18562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18563 | else | ||
18564 | case $PROG_IPCS in | ||
18565 | [\\/]* | ?:[\\/]*) | ||
18566 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
18567 | ;; | ||
18568 | *) | ||
18569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18570 | for as_dir in $PATH | ||
18571 | do | ||
18572 | IFS=$as_save_IFS | ||
18573 | test -z "$as_dir" && as_dir=. | ||
18574 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18576 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
18577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18578 | break 2 | ||
18579 | fi | ||
18580 | done | ||
18581 | done | ||
18582 | IFS=$as_save_IFS | ||
18583 | |||
18584 | ;; | ||
18585 | esac | ||
18586 | fi | ||
18587 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
18588 | if test -n "$PROG_IPCS"; then | ||
18589 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
18590 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
18591 | else | ||
18592 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18593 | echo "${ECHO_T}no" >&6; } | ||
18594 | fi | ||
18595 | |||
18596 | |||
18597 | if test -z "$PROG_IPCS" ; then | ||
18598 | PROG_IPCS="undef" | ||
18599 | fi | ||
18600 | |||
18601 | |||
18602 | |||
18603 | # Extract the first word of "tail", so it can be a program name with args. | ||
18604 | set dummy tail; ac_word=$2 | ||
18605 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18607 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
18608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18609 | else | ||
18610 | case $PROG_TAIL in | ||
18611 | [\\/]* | ?:[\\/]*) | ||
18612 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
18613 | ;; | ||
18614 | *) | ||
18615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18616 | for as_dir in $PATH | ||
18617 | do | ||
18618 | IFS=$as_save_IFS | ||
18619 | test -z "$as_dir" && as_dir=. | ||
18620 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18622 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
18623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18624 | break 2 | ||
18625 | fi | ||
18626 | done | ||
18627 | done | ||
18628 | IFS=$as_save_IFS | ||
18629 | |||
18630 | ;; | ||
18631 | esac | ||
18632 | fi | ||
18633 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
18634 | if test -n "$PROG_TAIL"; then | ||
18635 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
18636 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
18637 | else | ||
18638 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18639 | echo "${ECHO_T}no" >&6; } | ||
18640 | fi | ||
18641 | |||
18642 | |||
18643 | if test -z "$PROG_TAIL" ; then | ||
18644 | PROG_TAIL="undef" | ||
18645 | fi | ||
18646 | |||
18647 | |||
18648 | # restore PATH | ||
18649 | PATH=$OPATH | ||
18650 | |||
18651 | # Where does ssh-rand-helper get its randomness from? | ||
18652 | INSTALL_SSH_PRNG_CMDS="" | ||
18653 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
18654 | if test ! -z "$PRNGD_PORT" ; then | ||
18655 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
18656 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
18657 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
18658 | else | ||
18659 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
18660 | RAND_HELPER_CMDHASH=yes | ||
18661 | INSTALL_SSH_PRNG_CMDS="yes" | ||
18662 | fi | ||
18663 | fi | ||
18664 | |||
18665 | |||
18666 | |||
18667 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
18668 | if test ! -z "$SONY" ; then | ||
18669 | LIBS="$LIBS -liberty"; | ||
18670 | fi | ||
18671 | |||
18672 | # Check for long long datatypes | ||
18673 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
18674 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
18675 | if test "${ac_cv_type_long_long+set}" = set; then | ||
18676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18677 | else | ||
18678 | cat >conftest.$ac_ext <<_ACEOF | ||
18679 | /* confdefs.h. */ | ||
18680 | _ACEOF | ||
18681 | cat confdefs.h >>conftest.$ac_ext | ||
18682 | cat >>conftest.$ac_ext <<_ACEOF | ||
18683 | /* end confdefs.h. */ | ||
18684 | $ac_includes_default | ||
18685 | typedef long long ac__type_new_; | ||
18686 | int | ||
18687 | main () | ||
18688 | { | ||
18689 | if ((ac__type_new_ *) 0) | ||
18690 | return 0; | ||
18691 | if (sizeof (ac__type_new_)) | ||
18692 | return 0; | ||
18693 | ; | ||
18694 | return 0; | ||
18695 | } | ||
18696 | _ACEOF | ||
18697 | rm -f conftest.$ac_objext | ||
18698 | if { (ac_try="$ac_compile" | ||
18699 | case "(($ac_try" in | ||
18700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18701 | *) ac_try_echo=$ac_try;; | ||
18702 | esac | ||
18703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18704 | (eval "$ac_compile") 2>conftest.er1 | ||
18705 | ac_status=$? | ||
18706 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18707 | rm -f conftest.er1 | ||
18708 | cat conftest.err >&5 | ||
18709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18710 | (exit $ac_status); } && { | ||
18711 | test -z "$ac_c_werror_flag" || | ||
18712 | test ! -s conftest.err | ||
18713 | } && test -s conftest.$ac_objext; then | ||
18714 | ac_cv_type_long_long=yes | ||
18715 | else | ||
18716 | echo "$as_me: failed program was:" >&5 | ||
18717 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18718 | |||
18719 | ac_cv_type_long_long=no | ||
18720 | fi | ||
18721 | |||
18722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18723 | fi | ||
18724 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
18725 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
18726 | if test $ac_cv_type_long_long = yes; then | ||
18727 | |||
18728 | cat >>confdefs.h <<_ACEOF | ||
18729 | #define HAVE_LONG_LONG 1 | ||
18730 | _ACEOF | ||
18731 | |||
18732 | |||
18733 | fi | ||
18734 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
18735 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
18736 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
18737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18738 | else | ||
18739 | cat >conftest.$ac_ext <<_ACEOF | ||
18740 | /* confdefs.h. */ | ||
18741 | _ACEOF | ||
18742 | cat confdefs.h >>conftest.$ac_ext | ||
18743 | cat >>conftest.$ac_ext <<_ACEOF | ||
18744 | /* end confdefs.h. */ | ||
18745 | $ac_includes_default | ||
18746 | typedef unsigned long long ac__type_new_; | ||
18747 | int | ||
18748 | main () | ||
18749 | { | ||
18750 | if ((ac__type_new_ *) 0) | ||
18751 | return 0; | ||
18752 | if (sizeof (ac__type_new_)) | ||
18753 | return 0; | ||
18754 | ; | ||
18755 | return 0; | ||
18756 | } | ||
18757 | _ACEOF | ||
18758 | rm -f conftest.$ac_objext | ||
18759 | if { (ac_try="$ac_compile" | ||
18760 | case "(($ac_try" in | ||
18761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18762 | *) ac_try_echo=$ac_try;; | ||
18763 | esac | ||
18764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18765 | (eval "$ac_compile") 2>conftest.er1 | ||
18766 | ac_status=$? | ||
18767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18768 | rm -f conftest.er1 | ||
18769 | cat conftest.err >&5 | ||
18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18771 | (exit $ac_status); } && { | ||
18772 | test -z "$ac_c_werror_flag" || | ||
18773 | test ! -s conftest.err | ||
18774 | } && test -s conftest.$ac_objext; then | ||
18775 | ac_cv_type_unsigned_long_long=yes | ||
18776 | else | ||
18777 | echo "$as_me: failed program was:" >&5 | ||
18778 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18779 | |||
18780 | ac_cv_type_unsigned_long_long=no | ||
18781 | fi | ||
18782 | |||
18783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18784 | fi | ||
18785 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
18786 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
18787 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
18788 | |||
18789 | cat >>confdefs.h <<_ACEOF | ||
18790 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
18791 | _ACEOF | ||
18792 | |||
18793 | |||
18794 | fi | ||
18795 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
18796 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
18797 | if test "${ac_cv_type_long_double+set}" = set; then | ||
18798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18799 | else | ||
18800 | cat >conftest.$ac_ext <<_ACEOF | ||
18801 | /* confdefs.h. */ | ||
18802 | _ACEOF | ||
18803 | cat confdefs.h >>conftest.$ac_ext | ||
18804 | cat >>conftest.$ac_ext <<_ACEOF | ||
18805 | /* end confdefs.h. */ | ||
18806 | $ac_includes_default | ||
18807 | typedef long double ac__type_new_; | ||
18808 | int | ||
18809 | main () | ||
18810 | { | ||
18811 | if ((ac__type_new_ *) 0) | ||
18812 | return 0; | ||
18813 | if (sizeof (ac__type_new_)) | ||
18814 | return 0; | ||
18815 | ; | ||
18816 | return 0; | ||
18817 | } | ||
18818 | _ACEOF | ||
18819 | rm -f conftest.$ac_objext | ||
18820 | if { (ac_try="$ac_compile" | ||
18821 | case "(($ac_try" in | ||
18822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18823 | *) ac_try_echo=$ac_try;; | ||
18824 | esac | ||
18825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18826 | (eval "$ac_compile") 2>conftest.er1 | ||
18827 | ac_status=$? | ||
18828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18829 | rm -f conftest.er1 | ||
18830 | cat conftest.err >&5 | ||
18831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18832 | (exit $ac_status); } && { | ||
18833 | test -z "$ac_c_werror_flag" || | ||
18834 | test ! -s conftest.err | ||
18835 | } && test -s conftest.$ac_objext; then | ||
18836 | ac_cv_type_long_double=yes | ||
18837 | else | ||
18838 | echo "$as_me: failed program was:" >&5 | ||
18839 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18840 | |||
18841 | ac_cv_type_long_double=no | ||
18842 | fi | ||
18843 | |||
18844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18845 | fi | ||
18846 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
18847 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
18848 | if test $ac_cv_type_long_double = yes; then | ||
18849 | |||
18850 | cat >>confdefs.h <<_ACEOF | ||
18851 | #define HAVE_LONG_DOUBLE 1 | ||
18852 | _ACEOF | ||
18853 | |||
18854 | |||
18855 | fi | ||
18856 | |||
18857 | |||
18858 | # Check datatype sizes | ||
18859 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
18860 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
18861 | if test "${ac_cv_type_char+set}" = set; then | ||
18862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18863 | else | ||
18864 | cat >conftest.$ac_ext <<_ACEOF | ||
18865 | /* confdefs.h. */ | ||
18866 | _ACEOF | ||
18867 | cat confdefs.h >>conftest.$ac_ext | ||
18868 | cat >>conftest.$ac_ext <<_ACEOF | ||
18869 | /* end confdefs.h. */ | ||
18870 | $ac_includes_default | ||
18871 | typedef char ac__type_new_; | ||
18872 | int | ||
18873 | main () | ||
18874 | { | ||
18875 | if ((ac__type_new_ *) 0) | ||
18876 | return 0; | ||
18877 | if (sizeof (ac__type_new_)) | ||
18878 | return 0; | ||
18879 | ; | ||
18880 | return 0; | ||
18881 | } | ||
18882 | _ACEOF | ||
18883 | rm -f conftest.$ac_objext | ||
18884 | if { (ac_try="$ac_compile" | ||
18885 | case "(($ac_try" in | ||
18886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18887 | *) ac_try_echo=$ac_try;; | ||
18888 | esac | ||
18889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18890 | (eval "$ac_compile") 2>conftest.er1 | ||
18891 | ac_status=$? | ||
18892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18893 | rm -f conftest.er1 | ||
18894 | cat conftest.err >&5 | ||
18895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18896 | (exit $ac_status); } && { | ||
18897 | test -z "$ac_c_werror_flag" || | ||
18898 | test ! -s conftest.err | ||
18899 | } && test -s conftest.$ac_objext; then | ||
18900 | ac_cv_type_char=yes | ||
18901 | else | ||
18902 | echo "$as_me: failed program was:" >&5 | ||
18903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18904 | |||
18905 | ac_cv_type_char=no | ||
18906 | fi | ||
18907 | |||
18908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18909 | fi | ||
18910 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
18911 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
18912 | |||
18913 | # The cast to long int works around a bug in the HP C Compiler | ||
18914 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18915 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18916 | # This bug is HP SR number 8606223364. | ||
18917 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
18918 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
18919 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
18920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18921 | else | ||
18922 | if test "$cross_compiling" = yes; then | ||
18923 | # Depending upon the size, compute the lo and hi bounds. | ||
18924 | cat >conftest.$ac_ext <<_ACEOF | ||
18925 | /* confdefs.h. */ | ||
18926 | _ACEOF | ||
18927 | cat confdefs.h >>conftest.$ac_ext | ||
18928 | cat >>conftest.$ac_ext <<_ACEOF | ||
18929 | /* end confdefs.h. */ | ||
18930 | $ac_includes_default | ||
18931 | typedef char ac__type_sizeof_; | ||
18932 | int | ||
18933 | main () | ||
18934 | { | ||
18935 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
18936 | test_array [0] = 0 | ||
18937 | |||
18938 | ; | ||
18939 | return 0; | ||
18940 | } | ||
18941 | _ACEOF | ||
18942 | rm -f conftest.$ac_objext | ||
18943 | if { (ac_try="$ac_compile" | ||
18944 | case "(($ac_try" in | ||
18945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18946 | *) ac_try_echo=$ac_try;; | ||
18947 | esac | ||
18948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18949 | (eval "$ac_compile") 2>conftest.er1 | ||
18950 | ac_status=$? | ||
18951 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18952 | rm -f conftest.er1 | ||
18953 | cat conftest.err >&5 | ||
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18955 | (exit $ac_status); } && { | ||
18956 | test -z "$ac_c_werror_flag" || | ||
18957 | test ! -s conftest.err | ||
18958 | } && test -s conftest.$ac_objext; then | ||
18959 | ac_lo=0 ac_mid=0 | ||
18960 | while :; do | ||
18961 | cat >conftest.$ac_ext <<_ACEOF | ||
18962 | /* confdefs.h. */ | ||
18963 | _ACEOF | ||
18964 | cat confdefs.h >>conftest.$ac_ext | ||
18965 | cat >>conftest.$ac_ext <<_ACEOF | ||
18966 | /* end confdefs.h. */ | ||
18967 | $ac_includes_default | ||
18968 | typedef char ac__type_sizeof_; | ||
18969 | int | ||
18970 | main () | ||
18971 | { | ||
18972 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18973 | test_array [0] = 0 | ||
18974 | |||
18975 | ; | ||
18976 | return 0; | ||
18977 | } | ||
18978 | _ACEOF | ||
18979 | rm -f conftest.$ac_objext | ||
18980 | if { (ac_try="$ac_compile" | ||
18981 | case "(($ac_try" in | ||
18982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18983 | *) ac_try_echo=$ac_try;; | ||
18984 | esac | ||
18985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18986 | (eval "$ac_compile") 2>conftest.er1 | ||
18987 | ac_status=$? | ||
18988 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18989 | rm -f conftest.er1 | ||
18990 | cat conftest.err >&5 | ||
18991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18992 | (exit $ac_status); } && { | ||
18993 | test -z "$ac_c_werror_flag" || | ||
18994 | test ! -s conftest.err | ||
18995 | } && test -s conftest.$ac_objext; then | ||
18996 | ac_hi=$ac_mid; break | ||
18997 | else | ||
18998 | echo "$as_me: failed program was:" >&5 | ||
18999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19000 | |||
19001 | ac_lo=`expr $ac_mid + 1` | ||
19002 | if test $ac_lo -le $ac_mid; then | ||
19003 | ac_lo= ac_hi= | ||
19004 | break | ||
19005 | fi | ||
19006 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19007 | fi | ||
19008 | |||
19009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19010 | done | ||
19011 | else | ||
19012 | echo "$as_me: failed program was:" >&5 | ||
19013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19014 | |||
19015 | cat >conftest.$ac_ext <<_ACEOF | ||
19016 | /* confdefs.h. */ | ||
19017 | _ACEOF | ||
19018 | cat confdefs.h >>conftest.$ac_ext | ||
19019 | cat >>conftest.$ac_ext <<_ACEOF | ||
19020 | /* end confdefs.h. */ | ||
19021 | $ac_includes_default | ||
19022 | typedef char ac__type_sizeof_; | ||
19023 | int | ||
19024 | main () | ||
19025 | { | ||
19026 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19027 | test_array [0] = 0 | ||
19028 | |||
19029 | ; | ||
19030 | return 0; | ||
19031 | } | ||
19032 | _ACEOF | ||
19033 | rm -f conftest.$ac_objext | ||
19034 | if { (ac_try="$ac_compile" | ||
19035 | case "(($ac_try" in | ||
19036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19037 | *) ac_try_echo=$ac_try;; | ||
19038 | esac | ||
19039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19040 | (eval "$ac_compile") 2>conftest.er1 | ||
19041 | ac_status=$? | ||
19042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19043 | rm -f conftest.er1 | ||
19044 | cat conftest.err >&5 | ||
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19046 | (exit $ac_status); } && { | ||
19047 | test -z "$ac_c_werror_flag" || | ||
19048 | test ! -s conftest.err | ||
19049 | } && test -s conftest.$ac_objext; then | ||
19050 | ac_hi=-1 ac_mid=-1 | ||
19051 | while :; do | ||
19052 | cat >conftest.$ac_ext <<_ACEOF | ||
19053 | /* confdefs.h. */ | ||
19054 | _ACEOF | ||
19055 | cat confdefs.h >>conftest.$ac_ext | ||
19056 | cat >>conftest.$ac_ext <<_ACEOF | ||
19057 | /* end confdefs.h. */ | ||
19058 | $ac_includes_default | ||
19059 | typedef char ac__type_sizeof_; | ||
19060 | int | ||
19061 | main () | ||
19062 | { | ||
19063 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19064 | test_array [0] = 0 | ||
19065 | |||
19066 | ; | ||
19067 | return 0; | ||
19068 | } | ||
19069 | _ACEOF | ||
19070 | rm -f conftest.$ac_objext | ||
19071 | if { (ac_try="$ac_compile" | ||
19072 | case "(($ac_try" in | ||
19073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19074 | *) ac_try_echo=$ac_try;; | ||
19075 | esac | ||
19076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19077 | (eval "$ac_compile") 2>conftest.er1 | ||
19078 | ac_status=$? | ||
19079 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19080 | rm -f conftest.er1 | ||
19081 | cat conftest.err >&5 | ||
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19083 | (exit $ac_status); } && { | ||
19084 | test -z "$ac_c_werror_flag" || | ||
19085 | test ! -s conftest.err | ||
19086 | } && test -s conftest.$ac_objext; then | ||
19087 | ac_lo=$ac_mid; break | ||
19088 | else | ||
19089 | echo "$as_me: failed program was:" >&5 | ||
19090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19091 | |||
19092 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19093 | if test $ac_mid -le $ac_hi; then | ||
19094 | ac_lo= ac_hi= | ||
19095 | break | ||
19096 | fi | ||
19097 | ac_mid=`expr 2 '*' $ac_mid` | ||
19098 | fi | ||
19099 | |||
19100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19101 | done | ||
19102 | else | ||
19103 | echo "$as_me: failed program was:" >&5 | ||
19104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19105 | |||
19106 | ac_lo= ac_hi= | ||
19107 | fi | ||
19108 | |||
19109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19110 | fi | ||
19111 | |||
19112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19113 | # Binary search between lo and hi bounds. | ||
19114 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19115 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19116 | cat >conftest.$ac_ext <<_ACEOF | ||
19117 | /* confdefs.h. */ | ||
19118 | _ACEOF | ||
19119 | cat confdefs.h >>conftest.$ac_ext | ||
19120 | cat >>conftest.$ac_ext <<_ACEOF | ||
19121 | /* end confdefs.h. */ | ||
19122 | $ac_includes_default | ||
19123 | typedef char ac__type_sizeof_; | ||
19124 | int | ||
19125 | main () | ||
19126 | { | ||
19127 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19128 | test_array [0] = 0 | ||
19129 | |||
19130 | ; | ||
19131 | return 0; | ||
19132 | } | ||
19133 | _ACEOF | ||
19134 | rm -f conftest.$ac_objext | ||
19135 | if { (ac_try="$ac_compile" | ||
19136 | case "(($ac_try" in | ||
19137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19138 | *) ac_try_echo=$ac_try;; | ||
19139 | esac | ||
19140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19141 | (eval "$ac_compile") 2>conftest.er1 | ||
19142 | ac_status=$? | ||
19143 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19144 | rm -f conftest.er1 | ||
19145 | cat conftest.err >&5 | ||
19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19147 | (exit $ac_status); } && { | ||
19148 | test -z "$ac_c_werror_flag" || | ||
19149 | test ! -s conftest.err | ||
19150 | } && test -s conftest.$ac_objext; then | ||
19151 | ac_hi=$ac_mid | ||
19152 | else | ||
19153 | echo "$as_me: failed program was:" >&5 | ||
19154 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19155 | |||
19156 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19157 | fi | ||
19158 | |||
19159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19160 | done | ||
19161 | case $ac_lo in | ||
19162 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
19163 | '') if test "$ac_cv_type_char" = yes; then | ||
19164 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19165 | See \`config.log' for more details." >&5 | ||
19166 | echo "$as_me: error: cannot compute sizeof (char) | ||
19167 | See \`config.log' for more details." >&2;} | ||
19168 | { (exit 77); exit 77; }; } | ||
19169 | else | ||
19170 | ac_cv_sizeof_char=0 | ||
19171 | fi ;; | ||
19172 | esac | ||
19173 | else | ||
19174 | cat >conftest.$ac_ext <<_ACEOF | ||
19175 | /* confdefs.h. */ | ||
19176 | _ACEOF | ||
19177 | cat confdefs.h >>conftest.$ac_ext | ||
19178 | cat >>conftest.$ac_ext <<_ACEOF | ||
19179 | /* end confdefs.h. */ | ||
19180 | $ac_includes_default | ||
19181 | typedef char ac__type_sizeof_; | ||
19182 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19183 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19184 | #include <stdio.h> | ||
19185 | #include <stdlib.h> | ||
19186 | int | ||
19187 | main () | ||
19188 | { | ||
19189 | |||
19190 | FILE *f = fopen ("conftest.val", "w"); | ||
19191 | if (! f) | ||
19192 | return 1; | ||
19193 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19194 | { | ||
19195 | long int i = longval (); | ||
19196 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19197 | return 1; | ||
19198 | fprintf (f, "%ld\n", i); | ||
19199 | } | ||
19200 | else | ||
19201 | { | ||
19202 | unsigned long int i = ulongval (); | ||
19203 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19204 | return 1; | ||
19205 | fprintf (f, "%lu\n", i); | ||
19206 | } | ||
19207 | return ferror (f) || fclose (f) != 0; | ||
19208 | |||
19209 | ; | ||
19210 | return 0; | ||
19211 | } | ||
19212 | _ACEOF | ||
19213 | rm -f conftest$ac_exeext | ||
19214 | if { (ac_try="$ac_link" | ||
19215 | case "(($ac_try" in | ||
19216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19217 | *) ac_try_echo=$ac_try;; | ||
19218 | esac | ||
19219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19220 | (eval "$ac_link") 2>&5 | ||
19221 | ac_status=$? | ||
19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19224 | { (case "(($ac_try" in | ||
19225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19226 | *) ac_try_echo=$ac_try;; | ||
19227 | esac | ||
19228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19229 | (eval "$ac_try") 2>&5 | ||
19230 | ac_status=$? | ||
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19232 | (exit $ac_status); }; }; then | ||
19233 | ac_cv_sizeof_char=`cat conftest.val` | ||
19234 | else | ||
19235 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19236 | echo "$as_me: failed program was:" >&5 | ||
19237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19238 | |||
19239 | ( exit $ac_status ) | ||
19240 | if test "$ac_cv_type_char" = yes; then | ||
19241 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19242 | See \`config.log' for more details." >&5 | ||
19243 | echo "$as_me: error: cannot compute sizeof (char) | ||
19244 | See \`config.log' for more details." >&2;} | ||
19245 | { (exit 77); exit 77; }; } | ||
19246 | else | ||
19247 | ac_cv_sizeof_char=0 | ||
19248 | fi | ||
19249 | fi | ||
19250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19251 | fi | ||
19252 | rm -f conftest.val | ||
19253 | fi | ||
19254 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
19255 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
19256 | |||
19257 | |||
19258 | |||
19259 | cat >>confdefs.h <<_ACEOF | ||
19260 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
19261 | _ACEOF | ||
19262 | |||
19263 | |||
19264 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
19265 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
19266 | if test "${ac_cv_type_short_int+set}" = set; then | ||
19267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19268 | else | ||
19269 | cat >conftest.$ac_ext <<_ACEOF | ||
19270 | /* confdefs.h. */ | ||
19271 | _ACEOF | ||
19272 | cat confdefs.h >>conftest.$ac_ext | ||
19273 | cat >>conftest.$ac_ext <<_ACEOF | ||
19274 | /* end confdefs.h. */ | ||
19275 | $ac_includes_default | ||
19276 | typedef short int ac__type_new_; | ||
19277 | int | ||
19278 | main () | ||
19279 | { | ||
19280 | if ((ac__type_new_ *) 0) | ||
19281 | return 0; | ||
19282 | if (sizeof (ac__type_new_)) | ||
19283 | return 0; | ||
19284 | ; | ||
19285 | return 0; | ||
19286 | } | ||
19287 | _ACEOF | ||
19288 | rm -f conftest.$ac_objext | ||
19289 | if { (ac_try="$ac_compile" | ||
19290 | case "(($ac_try" in | ||
19291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19292 | *) ac_try_echo=$ac_try;; | ||
19293 | esac | ||
19294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19295 | (eval "$ac_compile") 2>conftest.er1 | ||
19296 | ac_status=$? | ||
19297 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19298 | rm -f conftest.er1 | ||
19299 | cat conftest.err >&5 | ||
19300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19301 | (exit $ac_status); } && { | ||
19302 | test -z "$ac_c_werror_flag" || | ||
19303 | test ! -s conftest.err | ||
19304 | } && test -s conftest.$ac_objext; then | ||
19305 | ac_cv_type_short_int=yes | ||
19306 | else | ||
19307 | echo "$as_me: failed program was:" >&5 | ||
19308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19309 | |||
19310 | ac_cv_type_short_int=no | ||
19311 | fi | ||
19312 | |||
19313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19314 | fi | ||
19315 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
19316 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
19317 | |||
19318 | # The cast to long int works around a bug in the HP C Compiler | ||
19319 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19320 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19321 | # This bug is HP SR number 8606223364. | ||
19322 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
19323 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
19324 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
19325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19326 | else | ||
19327 | if test "$cross_compiling" = yes; then | ||
19328 | # Depending upon the size, compute the lo and hi bounds. | ||
19329 | cat >conftest.$ac_ext <<_ACEOF | ||
19330 | /* confdefs.h. */ | ||
19331 | _ACEOF | ||
19332 | cat confdefs.h >>conftest.$ac_ext | ||
19333 | cat >>conftest.$ac_ext <<_ACEOF | ||
19334 | /* end confdefs.h. */ | ||
19335 | $ac_includes_default | ||
19336 | typedef short int ac__type_sizeof_; | ||
19337 | int | ||
19338 | main () | ||
19339 | { | ||
19340 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19341 | test_array [0] = 0 | ||
19342 | |||
19343 | ; | ||
19344 | return 0; | ||
19345 | } | ||
19346 | _ACEOF | ||
19347 | rm -f conftest.$ac_objext | ||
19348 | if { (ac_try="$ac_compile" | ||
19349 | case "(($ac_try" in | ||
19350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19351 | *) ac_try_echo=$ac_try;; | ||
19352 | esac | ||
19353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19354 | (eval "$ac_compile") 2>conftest.er1 | ||
19355 | ac_status=$? | ||
19356 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19357 | rm -f conftest.er1 | ||
19358 | cat conftest.err >&5 | ||
19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19360 | (exit $ac_status); } && { | ||
19361 | test -z "$ac_c_werror_flag" || | ||
19362 | test ! -s conftest.err | ||
19363 | } && test -s conftest.$ac_objext; then | ||
19364 | ac_lo=0 ac_mid=0 | ||
19365 | while :; do | ||
19366 | cat >conftest.$ac_ext <<_ACEOF | ||
19367 | /* confdefs.h. */ | ||
19368 | _ACEOF | ||
19369 | cat confdefs.h >>conftest.$ac_ext | ||
19370 | cat >>conftest.$ac_ext <<_ACEOF | ||
19371 | /* end confdefs.h. */ | ||
19372 | $ac_includes_default | ||
19373 | typedef short int ac__type_sizeof_; | ||
19374 | int | ||
19375 | main () | ||
19376 | { | ||
19377 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19378 | test_array [0] = 0 | ||
19379 | |||
19380 | ; | ||
19381 | return 0; | ||
19382 | } | ||
19383 | _ACEOF | ||
19384 | rm -f conftest.$ac_objext | ||
19385 | if { (ac_try="$ac_compile" | ||
19386 | case "(($ac_try" in | ||
19387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19388 | *) ac_try_echo=$ac_try;; | ||
19389 | esac | ||
19390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19391 | (eval "$ac_compile") 2>conftest.er1 | ||
19392 | ac_status=$? | ||
19393 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19394 | rm -f conftest.er1 | ||
19395 | cat conftest.err >&5 | ||
19396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19397 | (exit $ac_status); } && { | ||
19398 | test -z "$ac_c_werror_flag" || | ||
19399 | test ! -s conftest.err | ||
19400 | } && test -s conftest.$ac_objext; then | ||
19401 | ac_hi=$ac_mid; break | ||
19402 | else | ||
19403 | echo "$as_me: failed program was:" >&5 | ||
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19405 | |||
19406 | ac_lo=`expr $ac_mid + 1` | ||
19407 | if test $ac_lo -le $ac_mid; then | ||
19408 | ac_lo= ac_hi= | ||
19409 | break | ||
19410 | fi | ||
19411 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19412 | fi | ||
19413 | |||
19414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19415 | done | ||
19416 | else | ||
19417 | echo "$as_me: failed program was:" >&5 | ||
19418 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19419 | |||
19420 | cat >conftest.$ac_ext <<_ACEOF | ||
19421 | /* confdefs.h. */ | ||
19422 | _ACEOF | ||
19423 | cat confdefs.h >>conftest.$ac_ext | ||
19424 | cat >>conftest.$ac_ext <<_ACEOF | ||
19425 | /* end confdefs.h. */ | ||
19426 | $ac_includes_default | ||
19427 | typedef short int ac__type_sizeof_; | ||
19428 | int | ||
19429 | main () | ||
19430 | { | ||
19431 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19432 | test_array [0] = 0 | ||
19433 | |||
19434 | ; | ||
19435 | return 0; | ||
19436 | } | ||
19437 | _ACEOF | ||
19438 | rm -f conftest.$ac_objext | ||
19439 | if { (ac_try="$ac_compile" | ||
19440 | case "(($ac_try" in | ||
19441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19442 | *) ac_try_echo=$ac_try;; | ||
19443 | esac | ||
19444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19445 | (eval "$ac_compile") 2>conftest.er1 | ||
19446 | ac_status=$? | ||
19447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19448 | rm -f conftest.er1 | ||
19449 | cat conftest.err >&5 | ||
19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19451 | (exit $ac_status); } && { | ||
19452 | test -z "$ac_c_werror_flag" || | ||
19453 | test ! -s conftest.err | ||
19454 | } && test -s conftest.$ac_objext; then | ||
19455 | ac_hi=-1 ac_mid=-1 | ||
19456 | while :; do | ||
19457 | cat >conftest.$ac_ext <<_ACEOF | ||
19458 | /* confdefs.h. */ | ||
19459 | _ACEOF | ||
19460 | cat confdefs.h >>conftest.$ac_ext | ||
19461 | cat >>conftest.$ac_ext <<_ACEOF | ||
19462 | /* end confdefs.h. */ | ||
19463 | $ac_includes_default | ||
19464 | typedef short int ac__type_sizeof_; | ||
19465 | int | ||
19466 | main () | ||
19467 | { | ||
19468 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19469 | test_array [0] = 0 | ||
19470 | |||
19471 | ; | ||
19472 | return 0; | ||
19473 | } | ||
19474 | _ACEOF | ||
19475 | rm -f conftest.$ac_objext | ||
19476 | if { (ac_try="$ac_compile" | ||
19477 | case "(($ac_try" in | ||
19478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19479 | *) ac_try_echo=$ac_try;; | ||
19480 | esac | ||
19481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19482 | (eval "$ac_compile") 2>conftest.er1 | ||
19483 | ac_status=$? | ||
19484 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19485 | rm -f conftest.er1 | ||
19486 | cat conftest.err >&5 | ||
19487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19488 | (exit $ac_status); } && { | ||
19489 | test -z "$ac_c_werror_flag" || | ||
19490 | test ! -s conftest.err | ||
19491 | } && test -s conftest.$ac_objext; then | ||
19492 | ac_lo=$ac_mid; break | ||
19493 | else | ||
19494 | echo "$as_me: failed program was:" >&5 | ||
19495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19496 | |||
19497 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19498 | if test $ac_mid -le $ac_hi; then | ||
19499 | ac_lo= ac_hi= | ||
19500 | break | ||
19501 | fi | ||
19502 | ac_mid=`expr 2 '*' $ac_mid` | ||
19503 | fi | ||
19504 | |||
19505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19506 | done | ||
19507 | else | ||
19508 | echo "$as_me: failed program was:" >&5 | ||
19509 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19510 | |||
19511 | ac_lo= ac_hi= | ||
19512 | fi | ||
19513 | |||
19514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19515 | fi | ||
19516 | |||
19517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19518 | # Binary search between lo and hi bounds. | ||
19519 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19520 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19521 | cat >conftest.$ac_ext <<_ACEOF | ||
19522 | /* confdefs.h. */ | ||
19523 | _ACEOF | ||
19524 | cat confdefs.h >>conftest.$ac_ext | ||
19525 | cat >>conftest.$ac_ext <<_ACEOF | ||
19526 | /* end confdefs.h. */ | ||
19527 | $ac_includes_default | ||
19528 | typedef short int ac__type_sizeof_; | ||
19529 | int | ||
19530 | main () | ||
19531 | { | ||
19532 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19533 | test_array [0] = 0 | ||
19534 | |||
19535 | ; | ||
19536 | return 0; | ||
19537 | } | ||
19538 | _ACEOF | ||
19539 | rm -f conftest.$ac_objext | ||
19540 | if { (ac_try="$ac_compile" | ||
19541 | case "(($ac_try" in | ||
19542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19543 | *) ac_try_echo=$ac_try;; | ||
19544 | esac | ||
19545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19546 | (eval "$ac_compile") 2>conftest.er1 | ||
19547 | ac_status=$? | ||
19548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19549 | rm -f conftest.er1 | ||
19550 | cat conftest.err >&5 | ||
19551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19552 | (exit $ac_status); } && { | ||
19553 | test -z "$ac_c_werror_flag" || | ||
19554 | test ! -s conftest.err | ||
19555 | } && test -s conftest.$ac_objext; then | ||
19556 | ac_hi=$ac_mid | ||
19557 | else | ||
19558 | echo "$as_me: failed program was:" >&5 | ||
19559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19560 | |||
19561 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19562 | fi | ||
19563 | |||
19564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19565 | done | ||
19566 | case $ac_lo in | ||
19567 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
19568 | '') if test "$ac_cv_type_short_int" = yes; then | ||
19569 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
19570 | See \`config.log' for more details." >&5 | ||
19571 | echo "$as_me: error: cannot compute sizeof (short int) | ||
19572 | See \`config.log' for more details." >&2;} | ||
19573 | { (exit 77); exit 77; }; } | ||
19574 | else | ||
19575 | ac_cv_sizeof_short_int=0 | ||
19576 | fi ;; | ||
19577 | esac | ||
19578 | else | ||
19579 | cat >conftest.$ac_ext <<_ACEOF | ||
19580 | /* confdefs.h. */ | ||
19581 | _ACEOF | ||
19582 | cat confdefs.h >>conftest.$ac_ext | ||
19583 | cat >>conftest.$ac_ext <<_ACEOF | ||
19584 | /* end confdefs.h. */ | ||
19585 | $ac_includes_default | ||
19586 | typedef short int ac__type_sizeof_; | ||
19587 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19588 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19589 | #include <stdio.h> | ||
19590 | #include <stdlib.h> | ||
19591 | int | ||
19592 | main () | ||
19593 | { | ||
19594 | |||
19595 | FILE *f = fopen ("conftest.val", "w"); | ||
19596 | if (! f) | ||
19597 | return 1; | ||
19598 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19599 | { | ||
19600 | long int i = longval (); | ||
19601 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19602 | return 1; | ||
19603 | fprintf (f, "%ld\n", i); | ||
19604 | } | ||
19605 | else | ||
19606 | { | ||
19607 | unsigned long int i = ulongval (); | ||
19608 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19609 | return 1; | ||
19610 | fprintf (f, "%lu\n", i); | ||
19611 | } | ||
19612 | return ferror (f) || fclose (f) != 0; | ||
19613 | |||
19614 | ; | ||
19615 | return 0; | ||
19616 | } | ||
19617 | _ACEOF | ||
19618 | rm -f conftest$ac_exeext | ||
19619 | if { (ac_try="$ac_link" | ||
19620 | case "(($ac_try" in | ||
19621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19622 | *) ac_try_echo=$ac_try;; | ||
19623 | esac | ||
19624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19625 | (eval "$ac_link") 2>&5 | ||
19626 | ac_status=$? | ||
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19629 | { (case "(($ac_try" in | ||
19630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19631 | *) ac_try_echo=$ac_try;; | ||
19632 | esac | ||
19633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19634 | (eval "$ac_try") 2>&5 | ||
19635 | ac_status=$? | ||
19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19637 | (exit $ac_status); }; }; then | ||
19638 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
19639 | else | ||
19640 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19641 | echo "$as_me: failed program was:" >&5 | ||
19642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19643 | |||
19644 | ( exit $ac_status ) | ||
19645 | if test "$ac_cv_type_short_int" = yes; then | ||
19646 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
19647 | See \`config.log' for more details." >&5 | ||
19648 | echo "$as_me: error: cannot compute sizeof (short int) | ||
19649 | See \`config.log' for more details." >&2;} | ||
19650 | { (exit 77); exit 77; }; } | ||
19651 | else | ||
19652 | ac_cv_sizeof_short_int=0 | ||
19653 | fi | ||
19654 | fi | ||
19655 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19656 | fi | ||
19657 | rm -f conftest.val | ||
19658 | fi | ||
19659 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
19660 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
19661 | |||
19662 | |||
19663 | |||
19664 | cat >>confdefs.h <<_ACEOF | ||
19665 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
19666 | _ACEOF | ||
19667 | |||
19668 | |||
19669 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
19670 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
19671 | if test "${ac_cv_type_int+set}" = set; then | ||
19672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19673 | else | ||
19674 | cat >conftest.$ac_ext <<_ACEOF | ||
19675 | /* confdefs.h. */ | ||
19676 | _ACEOF | ||
19677 | cat confdefs.h >>conftest.$ac_ext | ||
19678 | cat >>conftest.$ac_ext <<_ACEOF | ||
19679 | /* end confdefs.h. */ | ||
19680 | $ac_includes_default | ||
19681 | typedef int ac__type_new_; | ||
19682 | int | ||
19683 | main () | ||
19684 | { | ||
19685 | if ((ac__type_new_ *) 0) | ||
19686 | return 0; | ||
19687 | if (sizeof (ac__type_new_)) | ||
19688 | return 0; | ||
19689 | ; | ||
19690 | return 0; | ||
19691 | } | ||
19692 | _ACEOF | ||
19693 | rm -f conftest.$ac_objext | ||
19694 | if { (ac_try="$ac_compile" | ||
19695 | case "(($ac_try" in | ||
19696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19697 | *) ac_try_echo=$ac_try;; | ||
19698 | esac | ||
19699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19700 | (eval "$ac_compile") 2>conftest.er1 | ||
19701 | ac_status=$? | ||
19702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19703 | rm -f conftest.er1 | ||
19704 | cat conftest.err >&5 | ||
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19706 | (exit $ac_status); } && { | ||
19707 | test -z "$ac_c_werror_flag" || | ||
19708 | test ! -s conftest.err | ||
19709 | } && test -s conftest.$ac_objext; then | ||
19710 | ac_cv_type_int=yes | ||
19711 | else | ||
19712 | echo "$as_me: failed program was:" >&5 | ||
19713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19714 | |||
19715 | ac_cv_type_int=no | ||
19716 | fi | ||
19717 | |||
19718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19719 | fi | ||
19720 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
19721 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
19722 | |||
19723 | # The cast to long int works around a bug in the HP C Compiler | ||
19724 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19725 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19726 | # This bug is HP SR number 8606223364. | ||
19727 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
19728 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
19729 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
19730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19731 | else | ||
19732 | if test "$cross_compiling" = yes; then | ||
19733 | # Depending upon the size, compute the lo and hi bounds. | ||
19734 | cat >conftest.$ac_ext <<_ACEOF | ||
19735 | /* confdefs.h. */ | ||
19736 | _ACEOF | ||
19737 | cat confdefs.h >>conftest.$ac_ext | ||
19738 | cat >>conftest.$ac_ext <<_ACEOF | ||
19739 | /* end confdefs.h. */ | ||
19740 | $ac_includes_default | ||
19741 | typedef int ac__type_sizeof_; | ||
19742 | int | ||
19743 | main () | ||
19744 | { | ||
19745 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19746 | test_array [0] = 0 | ||
19747 | |||
19748 | ; | ||
19749 | return 0; | ||
19750 | } | ||
19751 | _ACEOF | ||
19752 | rm -f conftest.$ac_objext | ||
19753 | if { (ac_try="$ac_compile" | ||
19754 | case "(($ac_try" in | ||
19755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19756 | *) ac_try_echo=$ac_try;; | ||
19757 | esac | ||
19758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19759 | (eval "$ac_compile") 2>conftest.er1 | ||
19760 | ac_status=$? | ||
19761 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19762 | rm -f conftest.er1 | ||
19763 | cat conftest.err >&5 | ||
19764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19765 | (exit $ac_status); } && { | ||
19766 | test -z "$ac_c_werror_flag" || | ||
19767 | test ! -s conftest.err | ||
19768 | } && test -s conftest.$ac_objext; then | ||
19769 | ac_lo=0 ac_mid=0 | ||
19770 | while :; do | ||
19771 | cat >conftest.$ac_ext <<_ACEOF | ||
19772 | /* confdefs.h. */ | ||
19773 | _ACEOF | ||
19774 | cat confdefs.h >>conftest.$ac_ext | ||
19775 | cat >>conftest.$ac_ext <<_ACEOF | ||
19776 | /* end confdefs.h. */ | ||
19777 | $ac_includes_default | ||
19778 | typedef int ac__type_sizeof_; | ||
19779 | int | ||
19780 | main () | ||
19781 | { | ||
19782 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19783 | test_array [0] = 0 | ||
19784 | |||
19785 | ; | ||
19786 | return 0; | ||
19787 | } | ||
19788 | _ACEOF | ||
19789 | rm -f conftest.$ac_objext | ||
19790 | if { (ac_try="$ac_compile" | ||
19791 | case "(($ac_try" in | ||
19792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19793 | *) ac_try_echo=$ac_try;; | ||
19794 | esac | ||
19795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19796 | (eval "$ac_compile") 2>conftest.er1 | ||
19797 | ac_status=$? | ||
19798 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19799 | rm -f conftest.er1 | ||
19800 | cat conftest.err >&5 | ||
19801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19802 | (exit $ac_status); } && { | ||
19803 | test -z "$ac_c_werror_flag" || | ||
19804 | test ! -s conftest.err | ||
19805 | } && test -s conftest.$ac_objext; then | ||
19806 | ac_hi=$ac_mid; break | ||
19807 | else | ||
19808 | echo "$as_me: failed program was:" >&5 | ||
19809 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19810 | |||
19811 | ac_lo=`expr $ac_mid + 1` | ||
19812 | if test $ac_lo -le $ac_mid; then | ||
19813 | ac_lo= ac_hi= | ||
19814 | break | ||
19815 | fi | ||
19816 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19817 | fi | ||
19818 | |||
19819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19820 | done | ||
19821 | else | ||
19822 | echo "$as_me: failed program was:" >&5 | ||
19823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19824 | |||
19825 | cat >conftest.$ac_ext <<_ACEOF | ||
19826 | /* confdefs.h. */ | ||
19827 | _ACEOF | ||
19828 | cat confdefs.h >>conftest.$ac_ext | ||
19829 | cat >>conftest.$ac_ext <<_ACEOF | ||
19830 | /* end confdefs.h. */ | ||
19831 | $ac_includes_default | ||
19832 | typedef int ac__type_sizeof_; | ||
19833 | int | ||
19834 | main () | ||
19835 | { | ||
19836 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19837 | test_array [0] = 0 | ||
19838 | |||
19839 | ; | ||
19840 | return 0; | ||
19841 | } | ||
19842 | _ACEOF | ||
19843 | rm -f conftest.$ac_objext | ||
19844 | if { (ac_try="$ac_compile" | ||
19845 | case "(($ac_try" in | ||
19846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19847 | *) ac_try_echo=$ac_try;; | ||
19848 | esac | ||
19849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19850 | (eval "$ac_compile") 2>conftest.er1 | ||
19851 | ac_status=$? | ||
19852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19853 | rm -f conftest.er1 | ||
19854 | cat conftest.err >&5 | ||
19855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19856 | (exit $ac_status); } && { | ||
19857 | test -z "$ac_c_werror_flag" || | ||
19858 | test ! -s conftest.err | ||
19859 | } && test -s conftest.$ac_objext; then | ||
19860 | ac_hi=-1 ac_mid=-1 | ||
19861 | while :; do | ||
19862 | cat >conftest.$ac_ext <<_ACEOF | ||
19863 | /* confdefs.h. */ | ||
19864 | _ACEOF | ||
19865 | cat confdefs.h >>conftest.$ac_ext | ||
19866 | cat >>conftest.$ac_ext <<_ACEOF | ||
19867 | /* end confdefs.h. */ | ||
19868 | $ac_includes_default | ||
19869 | typedef int ac__type_sizeof_; | ||
19870 | int | ||
19871 | main () | ||
19872 | { | ||
19873 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19874 | test_array [0] = 0 | ||
19875 | |||
19876 | ; | ||
19877 | return 0; | ||
19878 | } | ||
19879 | _ACEOF | ||
19880 | rm -f conftest.$ac_objext | ||
19881 | if { (ac_try="$ac_compile" | ||
19882 | case "(($ac_try" in | ||
19883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19884 | *) ac_try_echo=$ac_try;; | ||
19885 | esac | ||
19886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19887 | (eval "$ac_compile") 2>conftest.er1 | ||
19888 | ac_status=$? | ||
19889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19890 | rm -f conftest.er1 | ||
19891 | cat conftest.err >&5 | ||
19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19893 | (exit $ac_status); } && { | ||
19894 | test -z "$ac_c_werror_flag" || | ||
19895 | test ! -s conftest.err | ||
19896 | } && test -s conftest.$ac_objext; then | ||
19897 | ac_lo=$ac_mid; break | ||
19898 | else | ||
19899 | echo "$as_me: failed program was:" >&5 | ||
19900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19901 | |||
19902 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19903 | if test $ac_mid -le $ac_hi; then | ||
19904 | ac_lo= ac_hi= | ||
19905 | break | ||
19906 | fi | ||
19907 | ac_mid=`expr 2 '*' $ac_mid` | ||
19908 | fi | ||
19909 | |||
19910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19911 | done | ||
19912 | else | ||
19913 | echo "$as_me: failed program was:" >&5 | ||
19914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19915 | |||
19916 | ac_lo= ac_hi= | ||
19917 | fi | ||
19918 | |||
19919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19920 | fi | ||
19921 | |||
19922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19923 | # Binary search between lo and hi bounds. | ||
19924 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19925 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19926 | cat >conftest.$ac_ext <<_ACEOF | ||
19927 | /* confdefs.h. */ | ||
19928 | _ACEOF | ||
19929 | cat confdefs.h >>conftest.$ac_ext | ||
19930 | cat >>conftest.$ac_ext <<_ACEOF | ||
19931 | /* end confdefs.h. */ | ||
19932 | $ac_includes_default | ||
19933 | typedef int ac__type_sizeof_; | ||
19934 | int | ||
19935 | main () | ||
19936 | { | ||
19937 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19938 | test_array [0] = 0 | ||
19939 | |||
19940 | ; | ||
19941 | return 0; | ||
19942 | } | ||
19943 | _ACEOF | ||
19944 | rm -f conftest.$ac_objext | ||
19945 | if { (ac_try="$ac_compile" | ||
19946 | case "(($ac_try" in | ||
19947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19948 | *) ac_try_echo=$ac_try;; | ||
19949 | esac | ||
19950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19951 | (eval "$ac_compile") 2>conftest.er1 | ||
19952 | ac_status=$? | ||
19953 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19954 | rm -f conftest.er1 | ||
19955 | cat conftest.err >&5 | ||
19956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19957 | (exit $ac_status); } && { | ||
19958 | test -z "$ac_c_werror_flag" || | ||
19959 | test ! -s conftest.err | ||
19960 | } && test -s conftest.$ac_objext; then | ||
19961 | ac_hi=$ac_mid | ||
19962 | else | ||
19963 | echo "$as_me: failed program was:" >&5 | ||
19964 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19965 | |||
19966 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19967 | fi | ||
19968 | |||
19969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19970 | done | ||
19971 | case $ac_lo in | ||
19972 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
19973 | '') if test "$ac_cv_type_int" = yes; then | ||
19974 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
19975 | See \`config.log' for more details." >&5 | ||
19976 | echo "$as_me: error: cannot compute sizeof (int) | ||
19977 | See \`config.log' for more details." >&2;} | ||
19978 | { (exit 77); exit 77; }; } | ||
19979 | else | ||
19980 | ac_cv_sizeof_int=0 | ||
19981 | fi ;; | ||
19982 | esac | ||
19983 | else | ||
19984 | cat >conftest.$ac_ext <<_ACEOF | ||
19985 | /* confdefs.h. */ | ||
19986 | _ACEOF | ||
19987 | cat confdefs.h >>conftest.$ac_ext | ||
19988 | cat >>conftest.$ac_ext <<_ACEOF | ||
19989 | /* end confdefs.h. */ | ||
19990 | $ac_includes_default | ||
19991 | typedef int ac__type_sizeof_; | ||
19992 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19993 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19994 | #include <stdio.h> | ||
19995 | #include <stdlib.h> | ||
19996 | int | ||
19997 | main () | ||
19998 | { | ||
19999 | |||
20000 | FILE *f = fopen ("conftest.val", "w"); | ||
20001 | if (! f) | ||
20002 | return 1; | ||
20003 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20004 | { | ||
20005 | long int i = longval (); | ||
20006 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20007 | return 1; | ||
20008 | fprintf (f, "%ld\n", i); | ||
20009 | } | ||
20010 | else | ||
20011 | { | ||
20012 | unsigned long int i = ulongval (); | ||
20013 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20014 | return 1; | ||
20015 | fprintf (f, "%lu\n", i); | ||
20016 | } | ||
20017 | return ferror (f) || fclose (f) != 0; | ||
20018 | |||
20019 | ; | ||
20020 | return 0; | ||
20021 | } | ||
20022 | _ACEOF | ||
20023 | rm -f conftest$ac_exeext | ||
20024 | if { (ac_try="$ac_link" | ||
20025 | case "(($ac_try" in | ||
20026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20027 | *) ac_try_echo=$ac_try;; | ||
20028 | esac | ||
20029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20030 | (eval "$ac_link") 2>&5 | ||
20031 | ac_status=$? | ||
20032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20034 | { (case "(($ac_try" in | ||
20035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20036 | *) ac_try_echo=$ac_try;; | ||
20037 | esac | ||
20038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20039 | (eval "$ac_try") 2>&5 | ||
20040 | ac_status=$? | ||
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20042 | (exit $ac_status); }; }; then | ||
20043 | ac_cv_sizeof_int=`cat conftest.val` | ||
20044 | else | ||
20045 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20046 | echo "$as_me: failed program was:" >&5 | ||
20047 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20048 | |||
20049 | ( exit $ac_status ) | ||
20050 | if test "$ac_cv_type_int" = yes; then | ||
20051 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
20052 | See \`config.log' for more details." >&5 | ||
20053 | echo "$as_me: error: cannot compute sizeof (int) | ||
20054 | See \`config.log' for more details." >&2;} | ||
20055 | { (exit 77); exit 77; }; } | ||
20056 | else | ||
20057 | ac_cv_sizeof_int=0 | ||
20058 | fi | ||
20059 | fi | ||
20060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20061 | fi | ||
20062 | rm -f conftest.val | ||
20063 | fi | ||
20064 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
20065 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
20066 | |||
20067 | |||
20068 | |||
20069 | cat >>confdefs.h <<_ACEOF | ||
20070 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
20071 | _ACEOF | ||
20072 | |||
20073 | |||
20074 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
20075 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
20076 | if test "${ac_cv_type_long_int+set}" = set; then | ||
20077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20078 | else | ||
20079 | cat >conftest.$ac_ext <<_ACEOF | ||
20080 | /* confdefs.h. */ | ||
20081 | _ACEOF | ||
20082 | cat confdefs.h >>conftest.$ac_ext | ||
20083 | cat >>conftest.$ac_ext <<_ACEOF | ||
20084 | /* end confdefs.h. */ | ||
20085 | $ac_includes_default | ||
20086 | typedef long int ac__type_new_; | ||
20087 | int | ||
20088 | main () | ||
20089 | { | ||
20090 | if ((ac__type_new_ *) 0) | ||
20091 | return 0; | ||
20092 | if (sizeof (ac__type_new_)) | ||
20093 | return 0; | ||
20094 | ; | ||
20095 | return 0; | ||
20096 | } | ||
20097 | _ACEOF | ||
20098 | rm -f conftest.$ac_objext | ||
20099 | if { (ac_try="$ac_compile" | ||
20100 | case "(($ac_try" in | ||
20101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20102 | *) ac_try_echo=$ac_try;; | ||
20103 | esac | ||
20104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20105 | (eval "$ac_compile") 2>conftest.er1 | ||
20106 | ac_status=$? | ||
20107 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20108 | rm -f conftest.er1 | ||
20109 | cat conftest.err >&5 | ||
20110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20111 | (exit $ac_status); } && { | ||
20112 | test -z "$ac_c_werror_flag" || | ||
20113 | test ! -s conftest.err | ||
20114 | } && test -s conftest.$ac_objext; then | ||
20115 | ac_cv_type_long_int=yes | ||
20116 | else | ||
20117 | echo "$as_me: failed program was:" >&5 | ||
20118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20119 | |||
20120 | ac_cv_type_long_int=no | ||
20121 | fi | ||
20122 | |||
20123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20124 | fi | ||
20125 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
20126 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
20127 | |||
20128 | # The cast to long int works around a bug in the HP C Compiler | ||
20129 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20130 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20131 | # This bug is HP SR number 8606223364. | ||
20132 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
20133 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
20134 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
20135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20136 | else | ||
20137 | if test "$cross_compiling" = yes; then | ||
20138 | # Depending upon the size, compute the lo and hi bounds. | ||
20139 | cat >conftest.$ac_ext <<_ACEOF | ||
20140 | /* confdefs.h. */ | ||
20141 | _ACEOF | ||
20142 | cat confdefs.h >>conftest.$ac_ext | ||
20143 | cat >>conftest.$ac_ext <<_ACEOF | ||
20144 | /* end confdefs.h. */ | ||
20145 | $ac_includes_default | ||
20146 | typedef long int ac__type_sizeof_; | ||
20147 | int | ||
20148 | main () | ||
20149 | { | ||
20150 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20151 | test_array [0] = 0 | ||
20152 | |||
20153 | ; | ||
20154 | return 0; | ||
20155 | } | ||
20156 | _ACEOF | ||
20157 | rm -f conftest.$ac_objext | ||
20158 | if { (ac_try="$ac_compile" | ||
20159 | case "(($ac_try" in | ||
20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20161 | *) ac_try_echo=$ac_try;; | ||
20162 | esac | ||
20163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20164 | (eval "$ac_compile") 2>conftest.er1 | ||
20165 | ac_status=$? | ||
20166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20167 | rm -f conftest.er1 | ||
20168 | cat conftest.err >&5 | ||
20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20170 | (exit $ac_status); } && { | ||
20171 | test -z "$ac_c_werror_flag" || | ||
20172 | test ! -s conftest.err | ||
20173 | } && test -s conftest.$ac_objext; then | ||
20174 | ac_lo=0 ac_mid=0 | ||
20175 | while :; do | ||
20176 | cat >conftest.$ac_ext <<_ACEOF | ||
20177 | /* confdefs.h. */ | ||
20178 | _ACEOF | ||
20179 | cat confdefs.h >>conftest.$ac_ext | ||
20180 | cat >>conftest.$ac_ext <<_ACEOF | ||
20181 | /* end confdefs.h. */ | ||
20182 | $ac_includes_default | ||
20183 | typedef long int ac__type_sizeof_; | ||
20184 | int | ||
20185 | main () | ||
20186 | { | ||
20187 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20188 | test_array [0] = 0 | ||
20189 | |||
20190 | ; | ||
20191 | return 0; | ||
20192 | } | ||
20193 | _ACEOF | ||
20194 | rm -f conftest.$ac_objext | ||
20195 | if { (ac_try="$ac_compile" | ||
20196 | case "(($ac_try" in | ||
20197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20198 | *) ac_try_echo=$ac_try;; | ||
20199 | esac | ||
20200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20201 | (eval "$ac_compile") 2>conftest.er1 | ||
20202 | ac_status=$? | ||
20203 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20204 | rm -f conftest.er1 | ||
20205 | cat conftest.err >&5 | ||
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20207 | (exit $ac_status); } && { | ||
20208 | test -z "$ac_c_werror_flag" || | ||
20209 | test ! -s conftest.err | ||
20210 | } && test -s conftest.$ac_objext; then | ||
20211 | ac_hi=$ac_mid; break | ||
20212 | else | ||
20213 | echo "$as_me: failed program was:" >&5 | ||
20214 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20215 | |||
20216 | ac_lo=`expr $ac_mid + 1` | ||
20217 | if test $ac_lo -le $ac_mid; then | ||
20218 | ac_lo= ac_hi= | ||
20219 | break | ||
20220 | fi | ||
20221 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20222 | fi | ||
20223 | |||
20224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20225 | done | ||
20226 | else | ||
20227 | echo "$as_me: failed program was:" >&5 | ||
20228 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20229 | |||
20230 | cat >conftest.$ac_ext <<_ACEOF | ||
20231 | /* confdefs.h. */ | ||
20232 | _ACEOF | ||
20233 | cat confdefs.h >>conftest.$ac_ext | ||
20234 | cat >>conftest.$ac_ext <<_ACEOF | ||
20235 | /* end confdefs.h. */ | ||
20236 | $ac_includes_default | ||
20237 | typedef long int ac__type_sizeof_; | ||
20238 | int | ||
20239 | main () | ||
20240 | { | ||
20241 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20242 | test_array [0] = 0 | ||
20243 | |||
20244 | ; | ||
20245 | return 0; | ||
20246 | } | ||
20247 | _ACEOF | ||
20248 | rm -f conftest.$ac_objext | ||
20249 | if { (ac_try="$ac_compile" | ||
20250 | case "(($ac_try" in | ||
20251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20252 | *) ac_try_echo=$ac_try;; | ||
20253 | esac | ||
20254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20255 | (eval "$ac_compile") 2>conftest.er1 | ||
20256 | ac_status=$? | ||
20257 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20258 | rm -f conftest.er1 | ||
20259 | cat conftest.err >&5 | ||
20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20261 | (exit $ac_status); } && { | ||
20262 | test -z "$ac_c_werror_flag" || | ||
20263 | test ! -s conftest.err | ||
20264 | } && test -s conftest.$ac_objext; then | ||
20265 | ac_hi=-1 ac_mid=-1 | ||
20266 | while :; do | ||
20267 | cat >conftest.$ac_ext <<_ACEOF | ||
20268 | /* confdefs.h. */ | ||
20269 | _ACEOF | ||
20270 | cat confdefs.h >>conftest.$ac_ext | ||
20271 | cat >>conftest.$ac_ext <<_ACEOF | ||
20272 | /* end confdefs.h. */ | ||
20273 | $ac_includes_default | ||
20274 | typedef long int ac__type_sizeof_; | ||
20275 | int | ||
20276 | main () | ||
20277 | { | ||
20278 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20279 | test_array [0] = 0 | ||
20280 | |||
20281 | ; | ||
20282 | return 0; | ||
20283 | } | ||
20284 | _ACEOF | ||
20285 | rm -f conftest.$ac_objext | ||
20286 | if { (ac_try="$ac_compile" | ||
20287 | case "(($ac_try" in | ||
20288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20289 | *) ac_try_echo=$ac_try;; | ||
20290 | esac | ||
20291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20292 | (eval "$ac_compile") 2>conftest.er1 | ||
20293 | ac_status=$? | ||
20294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20295 | rm -f conftest.er1 | ||
20296 | cat conftest.err >&5 | ||
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20298 | (exit $ac_status); } && { | ||
20299 | test -z "$ac_c_werror_flag" || | ||
20300 | test ! -s conftest.err | ||
20301 | } && test -s conftest.$ac_objext; then | ||
20302 | ac_lo=$ac_mid; break | ||
20303 | else | ||
20304 | echo "$as_me: failed program was:" >&5 | ||
20305 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20306 | |||
20307 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20308 | if test $ac_mid -le $ac_hi; then | ||
20309 | ac_lo= ac_hi= | ||
20310 | break | ||
20311 | fi | ||
20312 | ac_mid=`expr 2 '*' $ac_mid` | ||
20313 | fi | ||
20314 | |||
20315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20316 | done | ||
20317 | else | ||
20318 | echo "$as_me: failed program was:" >&5 | ||
20319 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20320 | |||
20321 | ac_lo= ac_hi= | ||
20322 | fi | ||
20323 | |||
20324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20325 | fi | ||
20326 | |||
20327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20328 | # Binary search between lo and hi bounds. | ||
20329 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20330 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20331 | cat >conftest.$ac_ext <<_ACEOF | ||
20332 | /* confdefs.h. */ | ||
20333 | _ACEOF | ||
20334 | cat confdefs.h >>conftest.$ac_ext | ||
20335 | cat >>conftest.$ac_ext <<_ACEOF | ||
20336 | /* end confdefs.h. */ | ||
20337 | $ac_includes_default | ||
20338 | typedef long int ac__type_sizeof_; | ||
20339 | int | ||
20340 | main () | ||
20341 | { | ||
20342 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20343 | test_array [0] = 0 | ||
20344 | |||
20345 | ; | ||
20346 | return 0; | ||
20347 | } | ||
20348 | _ACEOF | ||
20349 | rm -f conftest.$ac_objext | ||
20350 | if { (ac_try="$ac_compile" | ||
20351 | case "(($ac_try" in | ||
20352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20353 | *) ac_try_echo=$ac_try;; | ||
20354 | esac | ||
20355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20356 | (eval "$ac_compile") 2>conftest.er1 | ||
20357 | ac_status=$? | ||
20358 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20359 | rm -f conftest.er1 | ||
20360 | cat conftest.err >&5 | ||
20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20362 | (exit $ac_status); } && { | ||
20363 | test -z "$ac_c_werror_flag" || | ||
20364 | test ! -s conftest.err | ||
20365 | } && test -s conftest.$ac_objext; then | ||
20366 | ac_hi=$ac_mid | ||
20367 | else | ||
20368 | echo "$as_me: failed program was:" >&5 | ||
20369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20370 | |||
20371 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20372 | fi | ||
20373 | |||
20374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20375 | done | ||
20376 | case $ac_lo in | ||
20377 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
20378 | '') if test "$ac_cv_type_long_int" = yes; then | ||
20379 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20380 | See \`config.log' for more details." >&5 | ||
20381 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20382 | See \`config.log' for more details." >&2;} | ||
20383 | { (exit 77); exit 77; }; } | ||
20384 | else | ||
20385 | ac_cv_sizeof_long_int=0 | ||
20386 | fi ;; | ||
20387 | esac | ||
20388 | else | ||
20389 | cat >conftest.$ac_ext <<_ACEOF | ||
20390 | /* confdefs.h. */ | ||
20391 | _ACEOF | ||
20392 | cat confdefs.h >>conftest.$ac_ext | ||
20393 | cat >>conftest.$ac_ext <<_ACEOF | ||
20394 | /* end confdefs.h. */ | ||
20395 | $ac_includes_default | ||
20396 | typedef long int ac__type_sizeof_; | ||
20397 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20398 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20399 | #include <stdio.h> | ||
20400 | #include <stdlib.h> | ||
20401 | int | ||
20402 | main () | ||
20403 | { | ||
20404 | |||
20405 | FILE *f = fopen ("conftest.val", "w"); | ||
20406 | if (! f) | ||
20407 | return 1; | ||
20408 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20409 | { | ||
20410 | long int i = longval (); | ||
20411 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20412 | return 1; | ||
20413 | fprintf (f, "%ld\n", i); | ||
20414 | } | ||
20415 | else | ||
20416 | { | ||
20417 | unsigned long int i = ulongval (); | ||
20418 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20419 | return 1; | ||
20420 | fprintf (f, "%lu\n", i); | ||
20421 | } | ||
20422 | return ferror (f) || fclose (f) != 0; | ||
20423 | |||
20424 | ; | ||
20425 | return 0; | ||
20426 | } | ||
20427 | _ACEOF | ||
20428 | rm -f conftest$ac_exeext | ||
20429 | if { (ac_try="$ac_link" | ||
20430 | case "(($ac_try" in | ||
20431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20432 | *) ac_try_echo=$ac_try;; | ||
20433 | esac | ||
20434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20435 | (eval "$ac_link") 2>&5 | ||
20436 | ac_status=$? | ||
20437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20439 | { (case "(($ac_try" in | ||
20440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20441 | *) ac_try_echo=$ac_try;; | ||
20442 | esac | ||
20443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20444 | (eval "$ac_try") 2>&5 | ||
20445 | ac_status=$? | ||
20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20447 | (exit $ac_status); }; }; then | ||
20448 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
20449 | else | ||
20450 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20451 | echo "$as_me: failed program was:" >&5 | ||
20452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20453 | |||
20454 | ( exit $ac_status ) | ||
20455 | if test "$ac_cv_type_long_int" = yes; then | ||
20456 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20457 | See \`config.log' for more details." >&5 | ||
20458 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20459 | See \`config.log' for more details." >&2;} | ||
20460 | { (exit 77); exit 77; }; } | ||
20461 | else | ||
20462 | ac_cv_sizeof_long_int=0 | ||
20463 | fi | ||
20464 | fi | ||
20465 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20466 | fi | ||
20467 | rm -f conftest.val | ||
20468 | fi | ||
20469 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
20470 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
20471 | |||
20472 | |||
20473 | |||
20474 | cat >>confdefs.h <<_ACEOF | ||
20475 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
20476 | _ACEOF | ||
20477 | |||
20478 | |||
20479 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
20480 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
20481 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
20482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20483 | else | ||
20484 | cat >conftest.$ac_ext <<_ACEOF | ||
20485 | /* confdefs.h. */ | ||
20486 | _ACEOF | ||
20487 | cat confdefs.h >>conftest.$ac_ext | ||
20488 | cat >>conftest.$ac_ext <<_ACEOF | ||
20489 | /* end confdefs.h. */ | ||
20490 | $ac_includes_default | ||
20491 | typedef long long int ac__type_new_; | ||
20492 | int | ||
20493 | main () | ||
20494 | { | ||
20495 | if ((ac__type_new_ *) 0) | ||
20496 | return 0; | ||
20497 | if (sizeof (ac__type_new_)) | ||
20498 | return 0; | ||
20499 | ; | ||
20500 | return 0; | ||
20501 | } | ||
20502 | _ACEOF | ||
20503 | rm -f conftest.$ac_objext | ||
20504 | if { (ac_try="$ac_compile" | ||
20505 | case "(($ac_try" in | ||
20506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20507 | *) ac_try_echo=$ac_try;; | ||
20508 | esac | ||
20509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20510 | (eval "$ac_compile") 2>conftest.er1 | ||
20511 | ac_status=$? | ||
20512 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20513 | rm -f conftest.er1 | ||
20514 | cat conftest.err >&5 | ||
20515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20516 | (exit $ac_status); } && { | ||
20517 | test -z "$ac_c_werror_flag" || | ||
20518 | test ! -s conftest.err | ||
20519 | } && test -s conftest.$ac_objext; then | ||
20520 | ac_cv_type_long_long_int=yes | ||
20521 | else | ||
20522 | echo "$as_me: failed program was:" >&5 | ||
20523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20524 | |||
20525 | ac_cv_type_long_long_int=no | ||
20526 | fi | ||
20527 | |||
20528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20529 | fi | ||
20530 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
20531 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
20532 | |||
20533 | # The cast to long int works around a bug in the HP C Compiler | ||
20534 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20535 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20536 | # This bug is HP SR number 8606223364. | ||
20537 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
20538 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
20539 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
20540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20541 | else | ||
20542 | if test "$cross_compiling" = yes; then | ||
20543 | # Depending upon the size, compute the lo and hi bounds. | ||
20544 | cat >conftest.$ac_ext <<_ACEOF | ||
20545 | /* confdefs.h. */ | ||
20546 | _ACEOF | ||
20547 | cat confdefs.h >>conftest.$ac_ext | ||
20548 | cat >>conftest.$ac_ext <<_ACEOF | ||
20549 | /* end confdefs.h. */ | ||
20550 | $ac_includes_default | ||
20551 | typedef long long int ac__type_sizeof_; | ||
20552 | int | ||
20553 | main () | ||
20554 | { | ||
20555 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20556 | test_array [0] = 0 | ||
20557 | |||
20558 | ; | ||
20559 | return 0; | ||
20560 | } | ||
20561 | _ACEOF | ||
20562 | rm -f conftest.$ac_objext | ||
20563 | if { (ac_try="$ac_compile" | ||
20564 | case "(($ac_try" in | ||
20565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20566 | *) ac_try_echo=$ac_try;; | ||
20567 | esac | ||
20568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20569 | (eval "$ac_compile") 2>conftest.er1 | ||
20570 | ac_status=$? | ||
20571 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20572 | rm -f conftest.er1 | ||
20573 | cat conftest.err >&5 | ||
20574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20575 | (exit $ac_status); } && { | ||
20576 | test -z "$ac_c_werror_flag" || | ||
20577 | test ! -s conftest.err | ||
20578 | } && test -s conftest.$ac_objext; then | ||
20579 | ac_lo=0 ac_mid=0 | ||
20580 | while :; do | ||
20581 | cat >conftest.$ac_ext <<_ACEOF | ||
20582 | /* confdefs.h. */ | ||
20583 | _ACEOF | ||
20584 | cat confdefs.h >>conftest.$ac_ext | ||
20585 | cat >>conftest.$ac_ext <<_ACEOF | ||
20586 | /* end confdefs.h. */ | ||
20587 | $ac_includes_default | ||
20588 | typedef long long int ac__type_sizeof_; | ||
20589 | int | ||
20590 | main () | ||
20591 | { | ||
20592 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20593 | test_array [0] = 0 | ||
20594 | |||
20595 | ; | ||
20596 | return 0; | ||
20597 | } | ||
20598 | _ACEOF | ||
20599 | rm -f conftest.$ac_objext | ||
20600 | if { (ac_try="$ac_compile" | ||
20601 | case "(($ac_try" in | ||
20602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20603 | *) ac_try_echo=$ac_try;; | ||
20604 | esac | ||
20605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20606 | (eval "$ac_compile") 2>conftest.er1 | ||
20607 | ac_status=$? | ||
20608 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20609 | rm -f conftest.er1 | ||
20610 | cat conftest.err >&5 | ||
20611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20612 | (exit $ac_status); } && { | ||
20613 | test -z "$ac_c_werror_flag" || | ||
20614 | test ! -s conftest.err | ||
20615 | } && test -s conftest.$ac_objext; then | ||
20616 | ac_hi=$ac_mid; break | ||
20617 | else | ||
20618 | echo "$as_me: failed program was:" >&5 | ||
20619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20620 | |||
20621 | ac_lo=`expr $ac_mid + 1` | ||
20622 | if test $ac_lo -le $ac_mid; then | ||
20623 | ac_lo= ac_hi= | ||
20624 | break | ||
20625 | fi | ||
20626 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20627 | fi | ||
20628 | |||
20629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20630 | done | ||
20631 | else | ||
20632 | echo "$as_me: failed program was:" >&5 | ||
20633 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20634 | |||
20635 | cat >conftest.$ac_ext <<_ACEOF | ||
20636 | /* confdefs.h. */ | ||
20637 | _ACEOF | ||
20638 | cat confdefs.h >>conftest.$ac_ext | ||
20639 | cat >>conftest.$ac_ext <<_ACEOF | ||
20640 | /* end confdefs.h. */ | ||
20641 | $ac_includes_default | ||
20642 | typedef long long int ac__type_sizeof_; | ||
20643 | int | ||
20644 | main () | ||
20645 | { | ||
20646 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20647 | test_array [0] = 0 | ||
20648 | |||
20649 | ; | ||
20650 | return 0; | ||
20651 | } | ||
20652 | _ACEOF | ||
20653 | rm -f conftest.$ac_objext | ||
20654 | if { (ac_try="$ac_compile" | ||
20655 | case "(($ac_try" in | ||
20656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20657 | *) ac_try_echo=$ac_try;; | ||
20658 | esac | ||
20659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20660 | (eval "$ac_compile") 2>conftest.er1 | ||
20661 | ac_status=$? | ||
20662 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20663 | rm -f conftest.er1 | ||
20664 | cat conftest.err >&5 | ||
20665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20666 | (exit $ac_status); } && { | ||
20667 | test -z "$ac_c_werror_flag" || | ||
20668 | test ! -s conftest.err | ||
20669 | } && test -s conftest.$ac_objext; then | ||
20670 | ac_hi=-1 ac_mid=-1 | ||
20671 | while :; do | ||
20672 | cat >conftest.$ac_ext <<_ACEOF | ||
20673 | /* confdefs.h. */ | ||
20674 | _ACEOF | ||
20675 | cat confdefs.h >>conftest.$ac_ext | ||
20676 | cat >>conftest.$ac_ext <<_ACEOF | ||
20677 | /* end confdefs.h. */ | ||
20678 | $ac_includes_default | ||
20679 | typedef long long int ac__type_sizeof_; | ||
20680 | int | ||
20681 | main () | ||
20682 | { | ||
20683 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20684 | test_array [0] = 0 | ||
20685 | |||
20686 | ; | ||
20687 | return 0; | ||
20688 | } | ||
20689 | _ACEOF | ||
20690 | rm -f conftest.$ac_objext | ||
20691 | if { (ac_try="$ac_compile" | ||
20692 | case "(($ac_try" in | ||
20693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20694 | *) ac_try_echo=$ac_try;; | ||
20695 | esac | ||
20696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20697 | (eval "$ac_compile") 2>conftest.er1 | ||
20698 | ac_status=$? | ||
20699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20700 | rm -f conftest.er1 | ||
20701 | cat conftest.err >&5 | ||
20702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20703 | (exit $ac_status); } && { | ||
20704 | test -z "$ac_c_werror_flag" || | ||
20705 | test ! -s conftest.err | ||
20706 | } && test -s conftest.$ac_objext; then | ||
20707 | ac_lo=$ac_mid; break | ||
20708 | else | ||
20709 | echo "$as_me: failed program was:" >&5 | ||
20710 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20711 | |||
20712 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20713 | if test $ac_mid -le $ac_hi; then | ||
20714 | ac_lo= ac_hi= | ||
20715 | break | ||
20716 | fi | ||
20717 | ac_mid=`expr 2 '*' $ac_mid` | ||
20718 | fi | ||
20719 | |||
20720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20721 | done | ||
20722 | else | ||
20723 | echo "$as_me: failed program was:" >&5 | ||
20724 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20725 | |||
20726 | ac_lo= ac_hi= | ||
20727 | fi | ||
20728 | |||
20729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20730 | fi | ||
20731 | |||
20732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20733 | # Binary search between lo and hi bounds. | ||
20734 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20735 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20736 | cat >conftest.$ac_ext <<_ACEOF | ||
20737 | /* confdefs.h. */ | ||
20738 | _ACEOF | ||
20739 | cat confdefs.h >>conftest.$ac_ext | ||
20740 | cat >>conftest.$ac_ext <<_ACEOF | ||
20741 | /* end confdefs.h. */ | ||
20742 | $ac_includes_default | ||
20743 | typedef long long int ac__type_sizeof_; | ||
20744 | int | ||
20745 | main () | ||
20746 | { | ||
20747 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20748 | test_array [0] = 0 | ||
20749 | |||
20750 | ; | ||
20751 | return 0; | ||
20752 | } | ||
20753 | _ACEOF | ||
20754 | rm -f conftest.$ac_objext | ||
20755 | if { (ac_try="$ac_compile" | ||
20756 | case "(($ac_try" in | ||
20757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20758 | *) ac_try_echo=$ac_try;; | ||
20759 | esac | ||
20760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20761 | (eval "$ac_compile") 2>conftest.er1 | ||
20762 | ac_status=$? | ||
20763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20764 | rm -f conftest.er1 | ||
20765 | cat conftest.err >&5 | ||
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20767 | (exit $ac_status); } && { | ||
20768 | test -z "$ac_c_werror_flag" || | ||
20769 | test ! -s conftest.err | ||
20770 | } && test -s conftest.$ac_objext; then | ||
20771 | ac_hi=$ac_mid | ||
20772 | else | ||
20773 | echo "$as_me: failed program was:" >&5 | ||
20774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20775 | |||
20776 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20777 | fi | ||
20778 | |||
20779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20780 | done | ||
20781 | case $ac_lo in | ||
20782 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
20783 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
20784 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
20785 | See \`config.log' for more details." >&5 | ||
20786 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
20787 | See \`config.log' for more details." >&2;} | ||
20788 | { (exit 77); exit 77; }; } | ||
20789 | else | ||
20790 | ac_cv_sizeof_long_long_int=0 | ||
20791 | fi ;; | ||
20792 | esac | ||
20793 | else | ||
20794 | cat >conftest.$ac_ext <<_ACEOF | ||
20795 | /* confdefs.h. */ | ||
20796 | _ACEOF | ||
20797 | cat confdefs.h >>conftest.$ac_ext | ||
20798 | cat >>conftest.$ac_ext <<_ACEOF | ||
20799 | /* end confdefs.h. */ | ||
20800 | $ac_includes_default | ||
20801 | typedef long long int ac__type_sizeof_; | ||
20802 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20803 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20804 | #include <stdio.h> | ||
20805 | #include <stdlib.h> | ||
20806 | int | ||
20807 | main () | ||
20808 | { | ||
20809 | |||
20810 | FILE *f = fopen ("conftest.val", "w"); | ||
20811 | if (! f) | ||
20812 | return 1; | ||
20813 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20814 | { | ||
20815 | long int i = longval (); | ||
20816 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20817 | return 1; | ||
20818 | fprintf (f, "%ld\n", i); | ||
20819 | } | ||
20820 | else | ||
20821 | { | ||
20822 | unsigned long int i = ulongval (); | ||
20823 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20824 | return 1; | ||
20825 | fprintf (f, "%lu\n", i); | ||
20826 | } | ||
20827 | return ferror (f) || fclose (f) != 0; | ||
20828 | |||
20829 | ; | ||
20830 | return 0; | ||
20831 | } | ||
20832 | _ACEOF | ||
20833 | rm -f conftest$ac_exeext | ||
20834 | if { (ac_try="$ac_link" | ||
20835 | case "(($ac_try" in | ||
20836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20837 | *) ac_try_echo=$ac_try;; | ||
20838 | esac | ||
20839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20840 | (eval "$ac_link") 2>&5 | ||
20841 | ac_status=$? | ||
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20843 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20844 | { (case "(($ac_try" in | ||
20845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20846 | *) ac_try_echo=$ac_try;; | ||
20847 | esac | ||
20848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20849 | (eval "$ac_try") 2>&5 | ||
20850 | ac_status=$? | ||
20851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20852 | (exit $ac_status); }; }; then | ||
20853 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
20854 | else | ||
20855 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20856 | echo "$as_me: failed program was:" >&5 | ||
20857 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20858 | |||
20859 | ( exit $ac_status ) | ||
20860 | if test "$ac_cv_type_long_long_int" = yes; then | ||
20861 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
20862 | See \`config.log' for more details." >&5 | ||
20863 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
20864 | See \`config.log' for more details." >&2;} | ||
20865 | { (exit 77); exit 77; }; } | ||
20866 | else | ||
20867 | ac_cv_sizeof_long_long_int=0 | ||
20868 | fi | ||
20869 | fi | ||
20870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20871 | fi | ||
20872 | rm -f conftest.val | ||
20873 | fi | ||
20874 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
20875 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
20876 | |||
20877 | |||
20878 | |||
20879 | cat >>confdefs.h <<_ACEOF | ||
20880 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
20881 | _ACEOF | ||
20882 | |||
20883 | |||
20884 | |||
20885 | # Sanity check long long for some platforms (AIX) | ||
20886 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
20887 | ac_cv_sizeof_long_long_int=0 | ||
20888 | fi | ||
20889 | |||
20890 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
20891 | if test -z "$have_llong_max"; then | ||
20892 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
20893 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
20894 | if test "$cross_compiling" = yes; then | ||
20895 | |||
20896 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20897 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20898 | |||
20899 | |||
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 | |||
20908 | #include <stdio.h> | ||
20909 | /* Why is this so damn hard? */ | ||
20910 | #ifdef __GNUC__ | ||
20911 | # undef __GNUC__ | ||
20912 | #endif | ||
20913 | #define __USE_ISOC99 | ||
20914 | #include <limits.h> | ||
20915 | #define DATA "conftest.llminmax" | ||
20916 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
20917 | |||
20918 | /* | ||
20919 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
20920 | * we do this the hard way. | ||
20921 | */ | ||
20922 | static int | ||
20923 | fprint_ll(FILE *f, long long n) | ||
20924 | { | ||
20925 | unsigned int i; | ||
20926 | int l[sizeof(long long) * 8]; | ||
20927 | |||
20928 | if (n < 0) | ||
20929 | if (fprintf(f, "-") < 0) | ||
20930 | return -1; | ||
20931 | for (i = 0; n != 0; i++) { | ||
20932 | l[i] = my_abs(n % 10); | ||
20933 | n /= 10; | ||
20934 | } | ||
20935 | do { | ||
20936 | if (fprintf(f, "%d", l[--i]) < 0) | ||
20937 | return -1; | ||
20938 | } while (i != 0); | ||
20939 | if (fprintf(f, " ") < 0) | ||
20940 | return -1; | ||
20941 | return 0; | ||
20942 | } | ||
20943 | |||
20944 | int main(void) { | ||
20945 | FILE *f; | ||
20946 | long long i, llmin, llmax = 0; | ||
20947 | |||
20948 | if((f = fopen(DATA,"w")) == NULL) | ||
20949 | exit(1); | ||
20950 | |||
20951 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
20952 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
20953 | llmin = LLONG_MIN; | ||
20954 | llmax = LLONG_MAX; | ||
20955 | #else | ||
20956 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
20957 | /* This will work on one's complement and two's complement */ | ||
20958 | for (i = 1; i > llmax; i <<= 1, i++) | ||
20959 | llmax = i; | ||
20960 | llmin = llmax + 1LL; /* wrap */ | ||
20961 | #endif | ||
20962 | |||
20963 | /* Sanity check */ | ||
20964 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
20965 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
20966 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
20967 | fprintf(f, "unknown unknown\n"); | ||
20968 | exit(2); | ||
20969 | } | ||
20970 | |||
20971 | if (fprint_ll(f, llmin) < 0) | ||
20972 | exit(3); | ||
20973 | if (fprint_ll(f, llmax) < 0) | ||
20974 | exit(4); | ||
20975 | if (fclose(f) < 0) | ||
20976 | exit(5); | ||
20977 | exit(0); | ||
20978 | } | ||
20979 | |||
20980 | _ACEOF | ||
20981 | rm -f conftest$ac_exeext | ||
20982 | if { (ac_try="$ac_link" | ||
20983 | case "(($ac_try" in | ||
20984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20985 | *) ac_try_echo=$ac_try;; | ||
20986 | esac | ||
20987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20988 | (eval "$ac_link") 2>&5 | ||
20989 | ac_status=$? | ||
20990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20992 | { (case "(($ac_try" in | ||
20993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20994 | *) ac_try_echo=$ac_try;; | ||
20995 | esac | ||
20996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20997 | (eval "$ac_try") 2>&5 | ||
20998 | ac_status=$? | ||
20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21000 | (exit $ac_status); }; }; then | ||
21001 | |||
21002 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
21003 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
21004 | |||
21005 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
21006 | echo "${ECHO_T}$llong_max" >&6; } | ||
21007 | |||
21008 | cat >>confdefs.h <<_ACEOF | ||
21009 | #define LLONG_MAX ${llong_max}LL | ||
21010 | _ACEOF | ||
21011 | |||
21012 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
21013 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
21014 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
21015 | echo "${ECHO_T}$llong_min" >&6; } | ||
21016 | |||
21017 | cat >>confdefs.h <<_ACEOF | ||
21018 | #define LLONG_MIN ${llong_min}LL | ||
21019 | _ACEOF | ||
21020 | |||
21021 | |||
21022 | else | ||
21023 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21024 | echo "$as_me: failed program was:" >&5 | ||
21025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21026 | |||
21027 | ( exit $ac_status ) | ||
21028 | |||
21029 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21030 | echo "${ECHO_T}not found" >&6; } | ||
21031 | |||
21032 | fi | ||
21033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21034 | fi | ||
21035 | |||
21036 | |||
21037 | fi | ||
21038 | |||
21039 | |||
21040 | # More checks for data types | ||
21041 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
21042 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
21043 | if test "${ac_cv_have_u_int+set}" = set; then | ||
21044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21045 | else | ||
21046 | |||
21047 | cat >conftest.$ac_ext <<_ACEOF | ||
21048 | /* confdefs.h. */ | ||
21049 | _ACEOF | ||
21050 | cat confdefs.h >>conftest.$ac_ext | ||
21051 | cat >>conftest.$ac_ext <<_ACEOF | ||
21052 | /* end confdefs.h. */ | ||
21053 | #include <sys/types.h> | ||
21054 | int | ||
21055 | main () | ||
21056 | { | ||
21057 | u_int a; a = 1; | ||
21058 | ; | ||
21059 | return 0; | ||
21060 | } | ||
21061 | _ACEOF | ||
21062 | rm -f conftest.$ac_objext | ||
21063 | if { (ac_try="$ac_compile" | ||
21064 | case "(($ac_try" in | ||
21065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21066 | *) ac_try_echo=$ac_try;; | ||
21067 | esac | ||
21068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21069 | (eval "$ac_compile") 2>conftest.er1 | ||
21070 | ac_status=$? | ||
21071 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21072 | rm -f conftest.er1 | ||
21073 | cat conftest.err >&5 | ||
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21075 | (exit $ac_status); } && { | ||
21076 | test -z "$ac_c_werror_flag" || | ||
21077 | test ! -s conftest.err | ||
21078 | } && test -s conftest.$ac_objext; then | ||
21079 | ac_cv_have_u_int="yes" | ||
21080 | else | ||
21081 | echo "$as_me: failed program was:" >&5 | ||
21082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21083 | |||
21084 | ac_cv_have_u_int="no" | ||
21085 | |||
21086 | fi | ||
21087 | |||
21088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21089 | |||
21090 | fi | ||
21091 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
21092 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
21093 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
21094 | |||
21095 | cat >>confdefs.h <<\_ACEOF | ||
21096 | #define HAVE_U_INT 1 | ||
21097 | _ACEOF | ||
21098 | |||
21099 | have_u_int=1 | ||
21100 | fi | ||
21101 | |||
21102 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
21103 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
21104 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
21105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21106 | else | ||
21107 | |||
21108 | cat >conftest.$ac_ext <<_ACEOF | ||
21109 | /* confdefs.h. */ | ||
21110 | _ACEOF | ||
21111 | cat confdefs.h >>conftest.$ac_ext | ||
21112 | cat >>conftest.$ac_ext <<_ACEOF | ||
21113 | /* end confdefs.h. */ | ||
21114 | #include <sys/types.h> | ||
21115 | int | ||
21116 | main () | ||
21117 | { | ||
21118 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21119 | ; | ||
21120 | return 0; | ||
21121 | } | ||
21122 | _ACEOF | ||
21123 | rm -f conftest.$ac_objext | ||
21124 | if { (ac_try="$ac_compile" | ||
21125 | case "(($ac_try" in | ||
21126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21127 | *) ac_try_echo=$ac_try;; | ||
21128 | esac | ||
21129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21130 | (eval "$ac_compile") 2>conftest.er1 | ||
21131 | ac_status=$? | ||
21132 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21133 | rm -f conftest.er1 | ||
21134 | cat conftest.err >&5 | ||
21135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21136 | (exit $ac_status); } && { | ||
21137 | test -z "$ac_c_werror_flag" || | ||
21138 | test ! -s conftest.err | ||
21139 | } && test -s conftest.$ac_objext; then | ||
21140 | ac_cv_have_intxx_t="yes" | ||
21141 | else | ||
21142 | echo "$as_me: failed program was:" >&5 | ||
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21144 | |||
21145 | ac_cv_have_intxx_t="no" | ||
21146 | |||
21147 | fi | ||
21148 | |||
21149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21150 | |||
21151 | fi | ||
21152 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
21153 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
21154 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
21155 | |||
21156 | cat >>confdefs.h <<\_ACEOF | ||
21157 | #define HAVE_INTXX_T 1 | ||
21158 | _ACEOF | ||
21159 | |||
21160 | have_intxx_t=1 | ||
21161 | fi | ||
21162 | |||
21163 | if (test -z "$have_intxx_t" && \ | ||
21164 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
21165 | then | ||
21166 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
21167 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21168 | cat >conftest.$ac_ext <<_ACEOF | ||
21169 | /* confdefs.h. */ | ||
21170 | _ACEOF | ||
21171 | cat confdefs.h >>conftest.$ac_ext | ||
21172 | cat >>conftest.$ac_ext <<_ACEOF | ||
21173 | /* end confdefs.h. */ | ||
21174 | #include <stdint.h> | ||
21175 | int | ||
21176 | main () | ||
21177 | { | ||
21178 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21179 | ; | ||
21180 | return 0; | ||
21181 | } | ||
21182 | _ACEOF | ||
21183 | rm -f conftest.$ac_objext | ||
21184 | if { (ac_try="$ac_compile" | ||
21185 | case "(($ac_try" in | ||
21186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21187 | *) ac_try_echo=$ac_try;; | ||
21188 | esac | ||
21189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21190 | (eval "$ac_compile") 2>conftest.er1 | ||
21191 | ac_status=$? | ||
21192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21193 | rm -f conftest.er1 | ||
21194 | cat conftest.err >&5 | ||
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21196 | (exit $ac_status); } && { | ||
21197 | test -z "$ac_c_werror_flag" || | ||
21198 | test ! -s conftest.err | ||
21199 | } && test -s conftest.$ac_objext; then | ||
21200 | |||
21201 | cat >>confdefs.h <<\_ACEOF | ||
21202 | #define HAVE_INTXX_T 1 | ||
21203 | _ACEOF | ||
21204 | |||
21205 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21206 | echo "${ECHO_T}yes" >&6; } | ||
21207 | |||
21208 | else | ||
21209 | echo "$as_me: failed program was:" >&5 | ||
21210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21211 | |||
21212 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21213 | echo "${ECHO_T}no" >&6; } | ||
21214 | |||
21215 | fi | ||
21216 | |||
21217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21218 | fi | ||
21219 | |||
21220 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
21221 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
21222 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
21223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21224 | else | ||
21225 | |||
21226 | cat >conftest.$ac_ext <<_ACEOF | ||
21227 | /* confdefs.h. */ | ||
21228 | _ACEOF | ||
21229 | cat confdefs.h >>conftest.$ac_ext | ||
21230 | cat >>conftest.$ac_ext <<_ACEOF | ||
21231 | /* end confdefs.h. */ | ||
21232 | |||
21233 | #include <sys/types.h> | ||
21234 | #ifdef HAVE_STDINT_H | ||
21235 | # include <stdint.h> | ||
21236 | #endif | ||
21237 | #include <sys/socket.h> | ||
21238 | #ifdef HAVE_SYS_BITYPES_H | ||
21239 | # include <sys/bitypes.h> | ||
21240 | #endif | ||
21241 | |||
21242 | int | ||
21243 | main () | ||
21244 | { | ||
21245 | int64_t a; a = 1; | ||
21246 | ; | ||
21247 | return 0; | ||
21248 | } | ||
21249 | _ACEOF | ||
21250 | rm -f conftest.$ac_objext | ||
21251 | if { (ac_try="$ac_compile" | ||
21252 | case "(($ac_try" in | ||
21253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21254 | *) ac_try_echo=$ac_try;; | ||
21255 | esac | ||
21256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21257 | (eval "$ac_compile") 2>conftest.er1 | ||
21258 | ac_status=$? | ||
21259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21260 | rm -f conftest.er1 | ||
21261 | cat conftest.err >&5 | ||
21262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21263 | (exit $ac_status); } && { | ||
21264 | test -z "$ac_c_werror_flag" || | ||
21265 | test ! -s conftest.err | ||
21266 | } && test -s conftest.$ac_objext; then | ||
21267 | ac_cv_have_int64_t="yes" | ||
21268 | else | ||
21269 | echo "$as_me: failed program was:" >&5 | ||
21270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21271 | |||
21272 | ac_cv_have_int64_t="no" | ||
21273 | |||
21274 | fi | ||
21275 | |||
21276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21277 | |||
21278 | fi | ||
21279 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
21280 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
21281 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
21282 | |||
21283 | cat >>confdefs.h <<\_ACEOF | ||
21284 | #define HAVE_INT64_T 1 | ||
21285 | _ACEOF | ||
21286 | |||
21287 | fi | ||
21288 | |||
21289 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
21290 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
21291 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
21292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21293 | else | ||
21294 | |||
21295 | cat >conftest.$ac_ext <<_ACEOF | ||
21296 | /* confdefs.h. */ | ||
21297 | _ACEOF | ||
21298 | cat confdefs.h >>conftest.$ac_ext | ||
21299 | cat >>conftest.$ac_ext <<_ACEOF | ||
21300 | /* end confdefs.h. */ | ||
21301 | #include <sys/types.h> | ||
21302 | int | ||
21303 | main () | ||
21304 | { | ||
21305 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21306 | ; | ||
21307 | return 0; | ||
21308 | } | ||
21309 | _ACEOF | ||
21310 | rm -f conftest.$ac_objext | ||
21311 | if { (ac_try="$ac_compile" | ||
21312 | case "(($ac_try" in | ||
21313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21314 | *) ac_try_echo=$ac_try;; | ||
21315 | esac | ||
21316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21317 | (eval "$ac_compile") 2>conftest.er1 | ||
21318 | ac_status=$? | ||
21319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21320 | rm -f conftest.er1 | ||
21321 | cat conftest.err >&5 | ||
21322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21323 | (exit $ac_status); } && { | ||
21324 | test -z "$ac_c_werror_flag" || | ||
21325 | test ! -s conftest.err | ||
21326 | } && test -s conftest.$ac_objext; then | ||
21327 | ac_cv_have_u_intxx_t="yes" | ||
21328 | else | ||
21329 | echo "$as_me: failed program was:" >&5 | ||
21330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21331 | |||
21332 | ac_cv_have_u_intxx_t="no" | ||
21333 | |||
21334 | fi | ||
21335 | |||
21336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21337 | |||
21338 | fi | ||
21339 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
21340 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
21341 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
21342 | |||
21343 | cat >>confdefs.h <<\_ACEOF | ||
21344 | #define HAVE_U_INTXX_T 1 | ||
21345 | _ACEOF | ||
21346 | |||
21347 | have_u_intxx_t=1 | ||
21348 | fi | ||
21349 | |||
21350 | if test -z "$have_u_intxx_t" ; then | ||
21351 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
21352 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
21353 | cat >conftest.$ac_ext <<_ACEOF | ||
21354 | /* confdefs.h. */ | ||
21355 | _ACEOF | ||
21356 | cat confdefs.h >>conftest.$ac_ext | ||
21357 | cat >>conftest.$ac_ext <<_ACEOF | ||
21358 | /* end confdefs.h. */ | ||
21359 | #include <sys/socket.h> | ||
21360 | int | ||
21361 | main () | ||
21362 | { | ||
21363 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21364 | ; | ||
21365 | return 0; | ||
21366 | } | ||
21367 | _ACEOF | ||
21368 | rm -f conftest.$ac_objext | ||
21369 | if { (ac_try="$ac_compile" | ||
21370 | case "(($ac_try" in | ||
21371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21372 | *) ac_try_echo=$ac_try;; | ||
21373 | esac | ||
21374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21375 | (eval "$ac_compile") 2>conftest.er1 | ||
21376 | ac_status=$? | ||
21377 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21378 | rm -f conftest.er1 | ||
21379 | cat conftest.err >&5 | ||
21380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21381 | (exit $ac_status); } && { | ||
21382 | test -z "$ac_c_werror_flag" || | ||
21383 | test ! -s conftest.err | ||
21384 | } && test -s conftest.$ac_objext; then | ||
21385 | |||
21386 | cat >>confdefs.h <<\_ACEOF | ||
21387 | #define HAVE_U_INTXX_T 1 | ||
21388 | _ACEOF | ||
21389 | |||
21390 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21391 | echo "${ECHO_T}yes" >&6; } | ||
21392 | |||
21393 | else | ||
21394 | echo "$as_me: failed program was:" >&5 | ||
21395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21396 | |||
21397 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21398 | echo "${ECHO_T}no" >&6; } | ||
21399 | |||
21400 | fi | ||
21401 | |||
21402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21403 | fi | ||
21404 | |||
21405 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
21406 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
21407 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
21408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21409 | else | ||
21410 | |||
21411 | cat >conftest.$ac_ext <<_ACEOF | ||
21412 | /* confdefs.h. */ | ||
21413 | _ACEOF | ||
21414 | cat confdefs.h >>conftest.$ac_ext | ||
21415 | cat >>conftest.$ac_ext <<_ACEOF | ||
21416 | /* end confdefs.h. */ | ||
21417 | #include <sys/types.h> | ||
21418 | int | ||
21419 | main () | ||
21420 | { | ||
21421 | u_int64_t a; a = 1; | ||
21422 | ; | ||
21423 | return 0; | ||
21424 | } | ||
21425 | _ACEOF | ||
21426 | rm -f conftest.$ac_objext | ||
21427 | if { (ac_try="$ac_compile" | ||
21428 | case "(($ac_try" in | ||
21429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21430 | *) ac_try_echo=$ac_try;; | ||
21431 | esac | ||
21432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21433 | (eval "$ac_compile") 2>conftest.er1 | ||
21434 | ac_status=$? | ||
21435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21436 | rm -f conftest.er1 | ||
21437 | cat conftest.err >&5 | ||
21438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21439 | (exit $ac_status); } && { | ||
21440 | test -z "$ac_c_werror_flag" || | ||
21441 | test ! -s conftest.err | ||
21442 | } && test -s conftest.$ac_objext; then | ||
21443 | ac_cv_have_u_int64_t="yes" | ||
21444 | else | ||
21445 | echo "$as_me: failed program was:" >&5 | ||
21446 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21447 | |||
21448 | ac_cv_have_u_int64_t="no" | ||
21449 | |||
21450 | fi | ||
21451 | |||
21452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21453 | |||
21454 | fi | ||
21455 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
21456 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
21457 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
21458 | |||
21459 | cat >>confdefs.h <<\_ACEOF | ||
21460 | #define HAVE_U_INT64_T 1 | ||
21461 | _ACEOF | ||
21462 | |||
21463 | have_u_int64_t=1 | ||
21464 | fi | ||
21465 | |||
21466 | if test -z "$have_u_int64_t" ; then | ||
21467 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
21468 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
21469 | cat >conftest.$ac_ext <<_ACEOF | ||
21470 | /* confdefs.h. */ | ||
21471 | _ACEOF | ||
21472 | cat confdefs.h >>conftest.$ac_ext | ||
21473 | cat >>conftest.$ac_ext <<_ACEOF | ||
21474 | /* end confdefs.h. */ | ||
21475 | #include <sys/bitypes.h> | ||
21476 | int | ||
21477 | main () | ||
21478 | { | ||
21479 | u_int64_t a; a = 1 | ||
21480 | ; | ||
21481 | return 0; | ||
21482 | } | ||
21483 | _ACEOF | ||
21484 | rm -f conftest.$ac_objext | ||
21485 | if { (ac_try="$ac_compile" | ||
21486 | case "(($ac_try" in | ||
21487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21488 | *) ac_try_echo=$ac_try;; | ||
21489 | esac | ||
21490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21491 | (eval "$ac_compile") 2>conftest.er1 | ||
21492 | ac_status=$? | ||
21493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21494 | rm -f conftest.er1 | ||
21495 | cat conftest.err >&5 | ||
21496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21497 | (exit $ac_status); } && { | ||
21498 | test -z "$ac_c_werror_flag" || | ||
21499 | test ! -s conftest.err | ||
21500 | } && test -s conftest.$ac_objext; then | ||
21501 | |||
21502 | cat >>confdefs.h <<\_ACEOF | ||
21503 | #define HAVE_U_INT64_T 1 | ||
21504 | _ACEOF | ||
21505 | |||
21506 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21507 | echo "${ECHO_T}yes" >&6; } | ||
21508 | |||
21509 | else | ||
21510 | echo "$as_me: failed program was:" >&5 | ||
21511 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21512 | |||
21513 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21514 | echo "${ECHO_T}no" >&6; } | ||
21515 | |||
21516 | fi | ||
21517 | |||
21518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21519 | fi | ||
21520 | |||
21521 | if test -z "$have_u_intxx_t" ; then | ||
21522 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
21523 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
21524 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
21525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21526 | else | ||
21527 | |||
21528 | cat >conftest.$ac_ext <<_ACEOF | ||
21529 | /* confdefs.h. */ | ||
21530 | _ACEOF | ||
21531 | cat confdefs.h >>conftest.$ac_ext | ||
21532 | cat >>conftest.$ac_ext <<_ACEOF | ||
21533 | /* end confdefs.h. */ | ||
21534 | |||
21535 | #include <sys/types.h> | ||
21536 | |||
21537 | int | ||
21538 | main () | ||
21539 | { | ||
21540 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21541 | ; | ||
21542 | return 0; | ||
21543 | } | ||
21544 | _ACEOF | ||
21545 | rm -f conftest.$ac_objext | ||
21546 | if { (ac_try="$ac_compile" | ||
21547 | case "(($ac_try" in | ||
21548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21549 | *) ac_try_echo=$ac_try;; | ||
21550 | esac | ||
21551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21552 | (eval "$ac_compile") 2>conftest.er1 | ||
21553 | ac_status=$? | ||
21554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21555 | rm -f conftest.er1 | ||
21556 | cat conftest.err >&5 | ||
21557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21558 | (exit $ac_status); } && { | ||
21559 | test -z "$ac_c_werror_flag" || | ||
21560 | test ! -s conftest.err | ||
21561 | } && test -s conftest.$ac_objext; then | ||
21562 | ac_cv_have_uintxx_t="yes" | ||
21563 | else | ||
21564 | echo "$as_me: failed program was:" >&5 | ||
21565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21566 | |||
21567 | ac_cv_have_uintxx_t="no" | ||
21568 | |||
21569 | fi | ||
21570 | |||
21571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21572 | |||
21573 | fi | ||
21574 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
21575 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
21576 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
21577 | |||
21578 | cat >>confdefs.h <<\_ACEOF | ||
21579 | #define HAVE_UINTXX_T 1 | ||
21580 | _ACEOF | ||
21581 | |||
21582 | fi | ||
21583 | fi | ||
21584 | |||
21585 | if test -z "$have_uintxx_t" ; then | ||
21586 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
21587 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21588 | cat >conftest.$ac_ext <<_ACEOF | ||
21589 | /* confdefs.h. */ | ||
21590 | _ACEOF | ||
21591 | cat confdefs.h >>conftest.$ac_ext | ||
21592 | cat >>conftest.$ac_ext <<_ACEOF | ||
21593 | /* end confdefs.h. */ | ||
21594 | #include <stdint.h> | ||
21595 | int | ||
21596 | main () | ||
21597 | { | ||
21598 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21599 | ; | ||
21600 | return 0; | ||
21601 | } | ||
21602 | _ACEOF | ||
21603 | rm -f conftest.$ac_objext | ||
21604 | if { (ac_try="$ac_compile" | ||
21605 | case "(($ac_try" in | ||
21606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21607 | *) ac_try_echo=$ac_try;; | ||
21608 | esac | ||
21609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21610 | (eval "$ac_compile") 2>conftest.er1 | ||
21611 | ac_status=$? | ||
21612 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21613 | rm -f conftest.er1 | ||
21614 | cat conftest.err >&5 | ||
21615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21616 | (exit $ac_status); } && { | ||
21617 | test -z "$ac_c_werror_flag" || | ||
21618 | test ! -s conftest.err | ||
21619 | } && test -s conftest.$ac_objext; then | ||
21620 | |||
21621 | cat >>confdefs.h <<\_ACEOF | ||
21622 | #define HAVE_UINTXX_T 1 | ||
21623 | _ACEOF | ||
21624 | |||
21625 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21626 | echo "${ECHO_T}yes" >&6; } | ||
21627 | |||
21628 | else | ||
21629 | echo "$as_me: failed program was:" >&5 | ||
21630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21631 | |||
21632 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21633 | echo "${ECHO_T}no" >&6; } | ||
21634 | |||
21635 | fi | ||
21636 | |||
21637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21638 | fi | ||
21639 | |||
21640 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
21641 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
21642 | then | ||
21643 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
21644 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
21645 | cat >conftest.$ac_ext <<_ACEOF | ||
21646 | /* confdefs.h. */ | ||
21647 | _ACEOF | ||
21648 | cat confdefs.h >>conftest.$ac_ext | ||
21649 | cat >>conftest.$ac_ext <<_ACEOF | ||
21650 | /* end confdefs.h. */ | ||
21651 | |||
21652 | #include <sys/bitypes.h> | ||
21653 | |||
21654 | int | ||
21655 | main () | ||
21656 | { | ||
21657 | |||
21658 | int8_t a; int16_t b; int32_t c; | ||
21659 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
21660 | a = b = c = e = f = g = 1; | ||
21661 | |||
21662 | ; | ||
21663 | return 0; | ||
21664 | } | ||
21665 | _ACEOF | ||
21666 | rm -f conftest.$ac_objext | ||
21667 | if { (ac_try="$ac_compile" | ||
21668 | case "(($ac_try" in | ||
21669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21670 | *) ac_try_echo=$ac_try;; | ||
21671 | esac | ||
21672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21673 | (eval "$ac_compile") 2>conftest.er1 | ||
21674 | ac_status=$? | ||
21675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21676 | rm -f conftest.er1 | ||
21677 | cat conftest.err >&5 | ||
21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21679 | (exit $ac_status); } && { | ||
21680 | test -z "$ac_c_werror_flag" || | ||
21681 | test ! -s conftest.err | ||
21682 | } && test -s conftest.$ac_objext; then | ||
21683 | |||
21684 | cat >>confdefs.h <<\_ACEOF | ||
21685 | #define HAVE_U_INTXX_T 1 | ||
21686 | _ACEOF | ||
21687 | |||
21688 | cat >>confdefs.h <<\_ACEOF | ||
21689 | #define HAVE_INTXX_T 1 | ||
21690 | _ACEOF | ||
21691 | |||
21692 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21693 | echo "${ECHO_T}yes" >&6; } | ||
21694 | |||
21695 | else | ||
21696 | echo "$as_me: failed program was:" >&5 | ||
21697 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21698 | |||
21699 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21700 | echo "${ECHO_T}no" >&6; } | ||
21701 | |||
21702 | fi | ||
21703 | |||
21704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21705 | fi | ||
21706 | |||
21707 | |||
21708 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
21709 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
21710 | if test "${ac_cv_have_u_char+set}" = set; then | ||
21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21712 | else | ||
21713 | |||
21714 | cat >conftest.$ac_ext <<_ACEOF | ||
21715 | /* confdefs.h. */ | ||
21716 | _ACEOF | ||
21717 | cat confdefs.h >>conftest.$ac_ext | ||
21718 | cat >>conftest.$ac_ext <<_ACEOF | ||
21719 | /* end confdefs.h. */ | ||
21720 | |||
21721 | #include <sys/types.h> | ||
21722 | |||
21723 | int | ||
21724 | main () | ||
21725 | { | ||
21726 | u_char foo; foo = 125; | ||
21727 | ; | ||
21728 | return 0; | ||
21729 | } | ||
21730 | _ACEOF | ||
21731 | rm -f conftest.$ac_objext | ||
21732 | if { (ac_try="$ac_compile" | ||
21733 | case "(($ac_try" in | ||
21734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21735 | *) ac_try_echo=$ac_try;; | ||
21736 | esac | ||
21737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21738 | (eval "$ac_compile") 2>conftest.er1 | ||
21739 | ac_status=$? | ||
21740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21741 | rm -f conftest.er1 | ||
21742 | cat conftest.err >&5 | ||
21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21744 | (exit $ac_status); } && { | ||
21745 | test -z "$ac_c_werror_flag" || | ||
21746 | test ! -s conftest.err | ||
21747 | } && test -s conftest.$ac_objext; then | ||
21748 | ac_cv_have_u_char="yes" | ||
21749 | else | ||
21750 | echo "$as_me: failed program was:" >&5 | ||
21751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21752 | |||
21753 | ac_cv_have_u_char="no" | ||
21754 | |||
21755 | fi | ||
21756 | |||
21757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21758 | |||
21759 | fi | ||
21760 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
21761 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
21762 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
21763 | |||
21764 | cat >>confdefs.h <<\_ACEOF | ||
21765 | #define HAVE_U_CHAR 1 | ||
21766 | _ACEOF | ||
21767 | |||
21768 | fi | ||
21769 | |||
21770 | |||
21771 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
21772 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
21773 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
21774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21775 | else | ||
21776 | cat >conftest.$ac_ext <<_ACEOF | ||
21777 | /* confdefs.h. */ | ||
21778 | _ACEOF | ||
21779 | cat confdefs.h >>conftest.$ac_ext | ||
21780 | cat >>conftest.$ac_ext <<_ACEOF | ||
21781 | /* end confdefs.h. */ | ||
21782 | #include <sys/types.h> | ||
21783 | #include <sys/socket.h> | ||
21784 | |||
21785 | typedef socklen_t ac__type_new_; | ||
21786 | int | ||
21787 | main () | ||
21788 | { | ||
21789 | if ((ac__type_new_ *) 0) | ||
21790 | return 0; | ||
21791 | if (sizeof (ac__type_new_)) | ||
21792 | return 0; | ||
21793 | ; | ||
21794 | return 0; | ||
21795 | } | ||
21796 | _ACEOF | ||
21797 | rm -f conftest.$ac_objext | ||
21798 | if { (ac_try="$ac_compile" | ||
21799 | case "(($ac_try" in | ||
21800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21801 | *) ac_try_echo=$ac_try;; | ||
21802 | esac | ||
21803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21804 | (eval "$ac_compile") 2>conftest.er1 | ||
21805 | ac_status=$? | ||
21806 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21807 | rm -f conftest.er1 | ||
21808 | cat conftest.err >&5 | ||
21809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21810 | (exit $ac_status); } && { | ||
21811 | test -z "$ac_c_werror_flag" || | ||
21812 | test ! -s conftest.err | ||
21813 | } && test -s conftest.$ac_objext; then | ||
21814 | ac_cv_type_socklen_t=yes | ||
21815 | else | ||
21816 | echo "$as_me: failed program was:" >&5 | ||
21817 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21818 | |||
21819 | ac_cv_type_socklen_t=no | ||
21820 | fi | ||
21821 | |||
21822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21823 | fi | ||
21824 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
21825 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
21826 | if test $ac_cv_type_socklen_t = yes; then | ||
21827 | : | ||
21828 | else | ||
21829 | |||
21830 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
21831 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
21832 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
21833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21834 | else | ||
21835 | |||
21836 | # Systems have either "struct sockaddr *" or | ||
21837 | # "void *" as the second argument to getpeername | ||
21838 | curl_cv_socklen_t_equiv= | ||
21839 | for arg2 in "struct sockaddr" void; do | ||
21840 | for t in int size_t unsigned long "unsigned long"; do | ||
21841 | cat >conftest.$ac_ext <<_ACEOF | ||
21842 | /* confdefs.h. */ | ||
21843 | _ACEOF | ||
21844 | cat confdefs.h >>conftest.$ac_ext | ||
21845 | cat >>conftest.$ac_ext <<_ACEOF | ||
21846 | /* end confdefs.h. */ | ||
21847 | |||
21848 | #include <sys/types.h> | ||
21849 | #include <sys/socket.h> | ||
21850 | |||
21851 | int getpeername (int, $arg2 *, $t *); | ||
21852 | |||
21853 | int | ||
21854 | main () | ||
21855 | { | ||
21856 | |||
21857 | $t len; | ||
21858 | getpeername(0,0,&len); | ||
21859 | |||
21860 | ; | ||
21861 | return 0; | ||
21862 | } | ||
21863 | _ACEOF | ||
21864 | rm -f conftest.$ac_objext | ||
21865 | if { (ac_try="$ac_compile" | ||
21866 | case "(($ac_try" in | ||
21867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21868 | *) ac_try_echo=$ac_try;; | ||
21869 | esac | ||
21870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21871 | (eval "$ac_compile") 2>conftest.er1 | ||
21872 | ac_status=$? | ||
21873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21874 | rm -f conftest.er1 | ||
21875 | cat conftest.err >&5 | ||
21876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21877 | (exit $ac_status); } && { | ||
21878 | test -z "$ac_c_werror_flag" || | ||
21879 | test ! -s conftest.err | ||
21880 | } && test -s conftest.$ac_objext; then | ||
21881 | |||
21882 | curl_cv_socklen_t_equiv="$t" | ||
21883 | break | ||
21884 | |||
21885 | else | ||
21886 | echo "$as_me: failed program was:" >&5 | ||
21887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21888 | |||
21889 | |||
21890 | fi | ||
21891 | |||
21892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21893 | done | ||
21894 | done | ||
21895 | |||
21896 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
21897 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
21898 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
21899 | { (exit 1); exit 1; }; } | ||
21900 | fi | ||
21901 | |||
21902 | fi | ||
21903 | |||
21904 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
21905 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
21906 | |||
21907 | cat >>confdefs.h <<_ACEOF | ||
21908 | #define socklen_t $curl_cv_socklen_t_equiv | ||
21909 | _ACEOF | ||
21910 | |||
21911 | fi | ||
21912 | |||
21913 | |||
21914 | |||
21915 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
21916 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
21917 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
21918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21919 | else | ||
21920 | cat >conftest.$ac_ext <<_ACEOF | ||
21921 | /* confdefs.h. */ | ||
21922 | _ACEOF | ||
21923 | cat confdefs.h >>conftest.$ac_ext | ||
21924 | cat >>conftest.$ac_ext <<_ACEOF | ||
21925 | /* end confdefs.h. */ | ||
21926 | #include <signal.h> | ||
21927 | |||
21928 | typedef sig_atomic_t ac__type_new_; | ||
21929 | int | ||
21930 | main () | ||
21931 | { | ||
21932 | if ((ac__type_new_ *) 0) | ||
21933 | return 0; | ||
21934 | if (sizeof (ac__type_new_)) | ||
21935 | return 0; | ||
21936 | ; | ||
21937 | return 0; | ||
21938 | } | ||
21939 | _ACEOF | ||
21940 | rm -f conftest.$ac_objext | ||
21941 | if { (ac_try="$ac_compile" | ||
21942 | case "(($ac_try" in | ||
21943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21944 | *) ac_try_echo=$ac_try;; | ||
21945 | esac | ||
21946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21947 | (eval "$ac_compile") 2>conftest.er1 | ||
21948 | ac_status=$? | ||
21949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21950 | rm -f conftest.er1 | ||
21951 | cat conftest.err >&5 | ||
21952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21953 | (exit $ac_status); } && { | ||
21954 | test -z "$ac_c_werror_flag" || | ||
21955 | test ! -s conftest.err | ||
21956 | } && test -s conftest.$ac_objext; then | ||
21957 | ac_cv_type_sig_atomic_t=yes | ||
21958 | else | ||
21959 | echo "$as_me: failed program was:" >&5 | ||
21960 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21961 | |||
21962 | ac_cv_type_sig_atomic_t=no | ||
21963 | fi | ||
21964 | |||
21965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21966 | fi | ||
21967 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
21968 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
21969 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
21970 | |||
21971 | cat >>confdefs.h <<_ACEOF | ||
21972 | #define HAVE_SIG_ATOMIC_T 1 | ||
21973 | _ACEOF | ||
21974 | |||
21975 | |||
21976 | fi | ||
21977 | |||
21978 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
21979 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
21980 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
21981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21982 | else | ||
21983 | cat >conftest.$ac_ext <<_ACEOF | ||
21984 | /* confdefs.h. */ | ||
21985 | _ACEOF | ||
21986 | cat confdefs.h >>conftest.$ac_ext | ||
21987 | cat >>conftest.$ac_ext <<_ACEOF | ||
21988 | /* end confdefs.h. */ | ||
21989 | |||
21990 | #include <sys/types.h> | ||
21991 | #ifdef HAVE_SYS_BITYPES_H | ||
21992 | #include <sys/bitypes.h> | ||
21993 | #endif | ||
21994 | #ifdef HAVE_SYS_STATFS_H | ||
21995 | #include <sys/statfs.h> | ||
21996 | #endif | ||
21997 | #ifdef HAVE_SYS_STATVFS_H | ||
21998 | #include <sys/statvfs.h> | ||
21999 | #endif | ||
22000 | |||
22001 | |||
22002 | typedef fsblkcnt_t ac__type_new_; | ||
22003 | int | ||
22004 | main () | ||
22005 | { | ||
22006 | if ((ac__type_new_ *) 0) | ||
22007 | return 0; | ||
22008 | if (sizeof (ac__type_new_)) | ||
22009 | return 0; | ||
22010 | ; | ||
22011 | return 0; | ||
22012 | } | ||
22013 | _ACEOF | ||
22014 | rm -f conftest.$ac_objext | ||
22015 | if { (ac_try="$ac_compile" | ||
22016 | case "(($ac_try" in | ||
22017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22018 | *) ac_try_echo=$ac_try;; | ||
22019 | esac | ||
22020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22021 | (eval "$ac_compile") 2>conftest.er1 | ||
22022 | ac_status=$? | ||
22023 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22024 | rm -f conftest.er1 | ||
22025 | cat conftest.err >&5 | ||
22026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22027 | (exit $ac_status); } && { | ||
22028 | test -z "$ac_c_werror_flag" || | ||
22029 | test ! -s conftest.err | ||
22030 | } && test -s conftest.$ac_objext; then | ||
22031 | ac_cv_type_fsblkcnt_t=yes | ||
22032 | else | ||
22033 | echo "$as_me: failed program was:" >&5 | ||
22034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22035 | |||
22036 | ac_cv_type_fsblkcnt_t=no | ||
22037 | fi | ||
22038 | |||
22039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22040 | fi | ||
22041 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
22042 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
22043 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
22044 | |||
22045 | cat >>confdefs.h <<_ACEOF | ||
22046 | #define HAVE_FSBLKCNT_T 1 | ||
22047 | _ACEOF | ||
22048 | |||
22049 | |||
22050 | fi | ||
22051 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
22052 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
22053 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
22054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22055 | else | ||
22056 | cat >conftest.$ac_ext <<_ACEOF | ||
22057 | /* confdefs.h. */ | ||
22058 | _ACEOF | ||
22059 | cat confdefs.h >>conftest.$ac_ext | ||
22060 | cat >>conftest.$ac_ext <<_ACEOF | ||
22061 | /* end confdefs.h. */ | ||
22062 | |||
22063 | #include <sys/types.h> | ||
22064 | #ifdef HAVE_SYS_BITYPES_H | ||
22065 | #include <sys/bitypes.h> | ||
22066 | #endif | ||
22067 | #ifdef HAVE_SYS_STATFS_H | ||
22068 | #include <sys/statfs.h> | ||
22069 | #endif | ||
22070 | #ifdef HAVE_SYS_STATVFS_H | ||
22071 | #include <sys/statvfs.h> | ||
22072 | #endif | ||
22073 | |||
22074 | |||
22075 | typedef fsfilcnt_t ac__type_new_; | ||
22076 | int | ||
22077 | main () | ||
22078 | { | ||
22079 | if ((ac__type_new_ *) 0) | ||
22080 | return 0; | ||
22081 | if (sizeof (ac__type_new_)) | ||
22082 | return 0; | ||
22083 | ; | ||
22084 | return 0; | ||
22085 | } | ||
22086 | _ACEOF | ||
22087 | rm -f conftest.$ac_objext | ||
22088 | if { (ac_try="$ac_compile" | ||
22089 | case "(($ac_try" in | ||
22090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22091 | *) ac_try_echo=$ac_try;; | ||
22092 | esac | ||
22093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22094 | (eval "$ac_compile") 2>conftest.er1 | ||
22095 | ac_status=$? | ||
22096 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22097 | rm -f conftest.er1 | ||
22098 | cat conftest.err >&5 | ||
22099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22100 | (exit $ac_status); } && { | ||
22101 | test -z "$ac_c_werror_flag" || | ||
22102 | test ! -s conftest.err | ||
22103 | } && test -s conftest.$ac_objext; then | ||
22104 | ac_cv_type_fsfilcnt_t=yes | ||
22105 | else | ||
22106 | echo "$as_me: failed program was:" >&5 | ||
22107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22108 | |||
22109 | ac_cv_type_fsfilcnt_t=no | ||
22110 | fi | ||
22111 | |||
22112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22113 | fi | ||
22114 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
22115 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
22116 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
22117 | |||
22118 | cat >>confdefs.h <<_ACEOF | ||
22119 | #define HAVE_FSFILCNT_T 1 | ||
22120 | _ACEOF | ||
22121 | |||
22122 | |||
22123 | fi | ||
22124 | |||
22125 | |||
22126 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
22127 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
22128 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
22129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22130 | else | ||
22131 | cat >conftest.$ac_ext <<_ACEOF | ||
22132 | /* confdefs.h. */ | ||
22133 | _ACEOF | ||
22134 | cat confdefs.h >>conftest.$ac_ext | ||
22135 | cat >>conftest.$ac_ext <<_ACEOF | ||
22136 | /* end confdefs.h. */ | ||
22137 | #include <sys/types.h> | ||
22138 | #include <netinet/in.h> | ||
22139 | |||
22140 | typedef in_addr_t ac__type_new_; | ||
22141 | int | ||
22142 | main () | ||
22143 | { | ||
22144 | if ((ac__type_new_ *) 0) | ||
22145 | return 0; | ||
22146 | if (sizeof (ac__type_new_)) | ||
22147 | return 0; | ||
22148 | ; | ||
22149 | return 0; | ||
22150 | } | ||
22151 | _ACEOF | ||
22152 | rm -f conftest.$ac_objext | ||
22153 | if { (ac_try="$ac_compile" | ||
22154 | case "(($ac_try" in | ||
22155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22156 | *) ac_try_echo=$ac_try;; | ||
22157 | esac | ||
22158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22159 | (eval "$ac_compile") 2>conftest.er1 | ||
22160 | ac_status=$? | ||
22161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22162 | rm -f conftest.er1 | ||
22163 | cat conftest.err >&5 | ||
22164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22165 | (exit $ac_status); } && { | ||
22166 | test -z "$ac_c_werror_flag" || | ||
22167 | test ! -s conftest.err | ||
22168 | } && test -s conftest.$ac_objext; then | ||
22169 | ac_cv_type_in_addr_t=yes | ||
22170 | else | ||
22171 | echo "$as_me: failed program was:" >&5 | ||
22172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22173 | |||
22174 | ac_cv_type_in_addr_t=no | ||
22175 | fi | ||
22176 | |||
22177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22178 | fi | ||
22179 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
22180 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
22181 | if test $ac_cv_type_in_addr_t = yes; then | ||
22182 | |||
22183 | cat >>confdefs.h <<_ACEOF | ||
22184 | #define HAVE_IN_ADDR_T 1 | ||
22185 | _ACEOF | ||
22186 | |||
22187 | |||
22188 | fi | ||
22189 | |||
22190 | |||
22191 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
22192 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
22193 | if test "${ac_cv_have_size_t+set}" = set; then | ||
22194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22195 | else | ||
22196 | |||
22197 | cat >conftest.$ac_ext <<_ACEOF | ||
22198 | /* confdefs.h. */ | ||
22199 | _ACEOF | ||
22200 | cat confdefs.h >>conftest.$ac_ext | ||
22201 | cat >>conftest.$ac_ext <<_ACEOF | ||
22202 | /* end confdefs.h. */ | ||
22203 | |||
22204 | #include <sys/types.h> | ||
22205 | |||
22206 | int | ||
22207 | main () | ||
22208 | { | ||
22209 | size_t foo; foo = 1235; | ||
22210 | ; | ||
22211 | return 0; | ||
22212 | } | ||
22213 | _ACEOF | ||
22214 | rm -f conftest.$ac_objext | ||
22215 | if { (ac_try="$ac_compile" | ||
22216 | case "(($ac_try" in | ||
22217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22218 | *) ac_try_echo=$ac_try;; | ||
22219 | esac | ||
22220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22221 | (eval "$ac_compile") 2>conftest.er1 | ||
22222 | ac_status=$? | ||
22223 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22224 | rm -f conftest.er1 | ||
22225 | cat conftest.err >&5 | ||
22226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22227 | (exit $ac_status); } && { | ||
22228 | test -z "$ac_c_werror_flag" || | ||
22229 | test ! -s conftest.err | ||
22230 | } && test -s conftest.$ac_objext; then | ||
22231 | ac_cv_have_size_t="yes" | ||
22232 | else | ||
22233 | echo "$as_me: failed program was:" >&5 | ||
22234 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22235 | |||
22236 | ac_cv_have_size_t="no" | ||
22237 | |||
22238 | fi | ||
22239 | |||
22240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22241 | |||
22242 | fi | ||
22243 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
22244 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
22245 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
22246 | |||
22247 | cat >>confdefs.h <<\_ACEOF | ||
22248 | #define HAVE_SIZE_T 1 | ||
22249 | _ACEOF | ||
22250 | |||
22251 | fi | ||
22252 | |||
22253 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
22254 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
22255 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
22256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22257 | else | ||
22258 | |||
22259 | cat >conftest.$ac_ext <<_ACEOF | ||
22260 | /* confdefs.h. */ | ||
22261 | _ACEOF | ||
22262 | cat confdefs.h >>conftest.$ac_ext | ||
22263 | cat >>conftest.$ac_ext <<_ACEOF | ||
22264 | /* end confdefs.h. */ | ||
22265 | |||
22266 | #include <sys/types.h> | ||
22267 | |||
22268 | int | ||
22269 | main () | ||
22270 | { | ||
22271 | ssize_t foo; foo = 1235; | ||
22272 | ; | ||
22273 | return 0; | ||
22274 | } | ||
22275 | _ACEOF | ||
22276 | rm -f conftest.$ac_objext | ||
22277 | if { (ac_try="$ac_compile" | ||
22278 | case "(($ac_try" in | ||
22279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22280 | *) ac_try_echo=$ac_try;; | ||
22281 | esac | ||
22282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22283 | (eval "$ac_compile") 2>conftest.er1 | ||
22284 | ac_status=$? | ||
22285 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22286 | rm -f conftest.er1 | ||
22287 | cat conftest.err >&5 | ||
22288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22289 | (exit $ac_status); } && { | ||
22290 | test -z "$ac_c_werror_flag" || | ||
22291 | test ! -s conftest.err | ||
22292 | } && test -s conftest.$ac_objext; then | ||
22293 | ac_cv_have_ssize_t="yes" | ||
22294 | else | ||
22295 | echo "$as_me: failed program was:" >&5 | ||
22296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22297 | |||
22298 | ac_cv_have_ssize_t="no" | ||
22299 | |||
22300 | fi | ||
22301 | |||
22302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22303 | |||
22304 | fi | ||
22305 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
22306 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
22307 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
22308 | |||
22309 | cat >>confdefs.h <<\_ACEOF | ||
22310 | #define HAVE_SSIZE_T 1 | ||
22311 | _ACEOF | ||
22312 | |||
22313 | fi | ||
22314 | |||
22315 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
22316 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
22317 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
22318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22319 | else | ||
22320 | |||
22321 | cat >conftest.$ac_ext <<_ACEOF | ||
22322 | /* confdefs.h. */ | ||
22323 | _ACEOF | ||
22324 | cat confdefs.h >>conftest.$ac_ext | ||
22325 | cat >>conftest.$ac_ext <<_ACEOF | ||
22326 | /* end confdefs.h. */ | ||
22327 | |||
22328 | #include <time.h> | ||
22329 | |||
22330 | int | ||
22331 | main () | ||
22332 | { | ||
22333 | clock_t foo; foo = 1235; | ||
22334 | ; | ||
22335 | return 0; | ||
22336 | } | ||
22337 | _ACEOF | ||
22338 | rm -f conftest.$ac_objext | ||
22339 | if { (ac_try="$ac_compile" | ||
22340 | case "(($ac_try" in | ||
22341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22342 | *) ac_try_echo=$ac_try;; | ||
22343 | esac | ||
22344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22345 | (eval "$ac_compile") 2>conftest.er1 | ||
22346 | ac_status=$? | ||
22347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22348 | rm -f conftest.er1 | ||
22349 | cat conftest.err >&5 | ||
22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22351 | (exit $ac_status); } && { | ||
22352 | test -z "$ac_c_werror_flag" || | ||
22353 | test ! -s conftest.err | ||
22354 | } && test -s conftest.$ac_objext; then | ||
22355 | ac_cv_have_clock_t="yes" | ||
22356 | else | ||
22357 | echo "$as_me: failed program was:" >&5 | ||
22358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22359 | |||
22360 | ac_cv_have_clock_t="no" | ||
22361 | |||
22362 | fi | ||
22363 | |||
22364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22365 | |||
22366 | fi | ||
22367 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
22368 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
22369 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
22370 | |||
22371 | cat >>confdefs.h <<\_ACEOF | ||
22372 | #define HAVE_CLOCK_T 1 | ||
22373 | _ACEOF | ||
22374 | |||
22375 | fi | ||
22376 | |||
22377 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
22378 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
22379 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
22380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22381 | else | ||
22382 | |||
22383 | cat >conftest.$ac_ext <<_ACEOF | ||
22384 | /* confdefs.h. */ | ||
22385 | _ACEOF | ||
22386 | cat confdefs.h >>conftest.$ac_ext | ||
22387 | cat >>conftest.$ac_ext <<_ACEOF | ||
22388 | /* end confdefs.h. */ | ||
22389 | |||
22390 | #include <sys/types.h> | ||
22391 | #include <sys/socket.h> | ||
22392 | |||
22393 | int | ||
22394 | main () | ||
22395 | { | ||
22396 | sa_family_t foo; foo = 1235; | ||
22397 | ; | ||
22398 | return 0; | ||
22399 | } | ||
22400 | _ACEOF | ||
22401 | rm -f conftest.$ac_objext | ||
22402 | if { (ac_try="$ac_compile" | ||
22403 | case "(($ac_try" in | ||
22404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22405 | *) ac_try_echo=$ac_try;; | ||
22406 | esac | ||
22407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22408 | (eval "$ac_compile") 2>conftest.er1 | ||
22409 | ac_status=$? | ||
22410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22411 | rm -f conftest.er1 | ||
22412 | cat conftest.err >&5 | ||
22413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22414 | (exit $ac_status); } && { | ||
22415 | test -z "$ac_c_werror_flag" || | ||
22416 | test ! -s conftest.err | ||
22417 | } && test -s conftest.$ac_objext; then | ||
22418 | ac_cv_have_sa_family_t="yes" | ||
22419 | else | ||
22420 | echo "$as_me: failed program was:" >&5 | ||
22421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22422 | |||
22423 | cat >conftest.$ac_ext <<_ACEOF | ||
22424 | /* confdefs.h. */ | ||
22425 | _ACEOF | ||
22426 | cat confdefs.h >>conftest.$ac_ext | ||
22427 | cat >>conftest.$ac_ext <<_ACEOF | ||
22428 | /* end confdefs.h. */ | ||
22429 | |||
22430 | #include <sys/types.h> | ||
22431 | #include <sys/socket.h> | ||
22432 | #include <netinet/in.h> | ||
22433 | |||
22434 | int | ||
22435 | main () | ||
22436 | { | ||
22437 | sa_family_t foo; foo = 1235; | ||
22438 | ; | ||
22439 | return 0; | ||
22440 | } | ||
22441 | _ACEOF | ||
22442 | rm -f conftest.$ac_objext | ||
22443 | if { (ac_try="$ac_compile" | ||
22444 | case "(($ac_try" in | ||
22445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22446 | *) ac_try_echo=$ac_try;; | ||
22447 | esac | ||
22448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22449 | (eval "$ac_compile") 2>conftest.er1 | ||
22450 | ac_status=$? | ||
22451 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22452 | rm -f conftest.er1 | ||
22453 | cat conftest.err >&5 | ||
22454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22455 | (exit $ac_status); } && { | ||
22456 | test -z "$ac_c_werror_flag" || | ||
22457 | test ! -s conftest.err | ||
22458 | } && test -s conftest.$ac_objext; then | ||
22459 | ac_cv_have_sa_family_t="yes" | ||
22460 | else | ||
22461 | echo "$as_me: failed program was:" >&5 | ||
22462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22463 | |||
22464 | ac_cv_have_sa_family_t="no" | ||
22465 | |||
22466 | fi | ||
22467 | |||
22468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22469 | |||
22470 | fi | ||
22471 | |||
22472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22473 | |||
22474 | fi | ||
22475 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
22476 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
22477 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
22478 | |||
22479 | cat >>confdefs.h <<\_ACEOF | ||
22480 | #define HAVE_SA_FAMILY_T 1 | ||
22481 | _ACEOF | ||
22482 | |||
22483 | fi | ||
22484 | |||
22485 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
22486 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
22487 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
22488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22489 | else | ||
22490 | |||
22491 | cat >conftest.$ac_ext <<_ACEOF | ||
22492 | /* confdefs.h. */ | ||
22493 | _ACEOF | ||
22494 | cat confdefs.h >>conftest.$ac_ext | ||
22495 | cat >>conftest.$ac_ext <<_ACEOF | ||
22496 | /* end confdefs.h. */ | ||
22497 | |||
22498 | #include <sys/types.h> | ||
22499 | |||
22500 | int | ||
22501 | main () | ||
22502 | { | ||
22503 | pid_t foo; foo = 1235; | ||
22504 | ; | ||
22505 | return 0; | ||
22506 | } | ||
22507 | _ACEOF | ||
22508 | rm -f conftest.$ac_objext | ||
22509 | if { (ac_try="$ac_compile" | ||
22510 | case "(($ac_try" in | ||
22511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22512 | *) ac_try_echo=$ac_try;; | ||
22513 | esac | ||
22514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22515 | (eval "$ac_compile") 2>conftest.er1 | ||
22516 | ac_status=$? | ||
22517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22518 | rm -f conftest.er1 | ||
22519 | cat conftest.err >&5 | ||
22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22521 | (exit $ac_status); } && { | ||
22522 | test -z "$ac_c_werror_flag" || | ||
22523 | test ! -s conftest.err | ||
22524 | } && test -s conftest.$ac_objext; then | ||
22525 | ac_cv_have_pid_t="yes" | ||
22526 | else | ||
22527 | echo "$as_me: failed program was:" >&5 | ||
22528 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22529 | |||
22530 | ac_cv_have_pid_t="no" | ||
22531 | |||
22532 | fi | ||
22533 | |||
22534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22535 | |||
22536 | fi | ||
22537 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
22538 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
22539 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
22540 | |||
22541 | cat >>confdefs.h <<\_ACEOF | ||
22542 | #define HAVE_PID_T 1 | ||
22543 | _ACEOF | ||
22544 | |||
22545 | fi | ||
22546 | |||
22547 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
22548 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
22549 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
22550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22551 | else | ||
22552 | |||
22553 | cat >conftest.$ac_ext <<_ACEOF | ||
22554 | /* confdefs.h. */ | ||
22555 | _ACEOF | ||
22556 | cat confdefs.h >>conftest.$ac_ext | ||
22557 | cat >>conftest.$ac_ext <<_ACEOF | ||
22558 | /* end confdefs.h. */ | ||
22559 | |||
22560 | #include <sys/types.h> | ||
22561 | |||
22562 | int | ||
22563 | main () | ||
22564 | { | ||
22565 | mode_t foo; foo = 1235; | ||
22566 | ; | ||
22567 | return 0; | ||
22568 | } | ||
22569 | _ACEOF | ||
22570 | rm -f conftest.$ac_objext | ||
22571 | if { (ac_try="$ac_compile" | ||
22572 | case "(($ac_try" in | ||
22573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22574 | *) ac_try_echo=$ac_try;; | ||
22575 | esac | ||
22576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22577 | (eval "$ac_compile") 2>conftest.er1 | ||
22578 | ac_status=$? | ||
22579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22580 | rm -f conftest.er1 | ||
22581 | cat conftest.err >&5 | ||
22582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22583 | (exit $ac_status); } && { | ||
22584 | test -z "$ac_c_werror_flag" || | ||
22585 | test ! -s conftest.err | ||
22586 | } && test -s conftest.$ac_objext; then | ||
22587 | ac_cv_have_mode_t="yes" | ||
22588 | else | ||
22589 | echo "$as_me: failed program was:" >&5 | ||
22590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22591 | |||
22592 | ac_cv_have_mode_t="no" | ||
22593 | |||
22594 | fi | ||
22595 | |||
22596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22597 | |||
22598 | fi | ||
22599 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
22600 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
22601 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
22602 | |||
22603 | cat >>confdefs.h <<\_ACEOF | ||
22604 | #define HAVE_MODE_T 1 | ||
22605 | _ACEOF | ||
22606 | |||
22607 | fi | ||
22608 | |||
22609 | |||
22610 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
22611 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
22612 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
22613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22614 | else | ||
22615 | |||
22616 | cat >conftest.$ac_ext <<_ACEOF | ||
22617 | /* confdefs.h. */ | ||
22618 | _ACEOF | ||
22619 | cat confdefs.h >>conftest.$ac_ext | ||
22620 | cat >>conftest.$ac_ext <<_ACEOF | ||
22621 | /* end confdefs.h. */ | ||
22622 | |||
22623 | #include <sys/types.h> | ||
22624 | #include <sys/socket.h> | ||
22625 | |||
22626 | int | ||
22627 | main () | ||
22628 | { | ||
22629 | struct sockaddr_storage s; | ||
22630 | ; | ||
22631 | return 0; | ||
22632 | } | ||
22633 | _ACEOF | ||
22634 | rm -f conftest.$ac_objext | ||
22635 | if { (ac_try="$ac_compile" | ||
22636 | case "(($ac_try" in | ||
22637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22638 | *) ac_try_echo=$ac_try;; | ||
22639 | esac | ||
22640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22641 | (eval "$ac_compile") 2>conftest.er1 | ||
22642 | ac_status=$? | ||
22643 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22644 | rm -f conftest.er1 | ||
22645 | cat conftest.err >&5 | ||
22646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22647 | (exit $ac_status); } && { | ||
22648 | test -z "$ac_c_werror_flag" || | ||
22649 | test ! -s conftest.err | ||
22650 | } && test -s conftest.$ac_objext; then | ||
22651 | ac_cv_have_struct_sockaddr_storage="yes" | ||
22652 | else | ||
22653 | echo "$as_me: failed program was:" >&5 | ||
22654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22655 | |||
22656 | ac_cv_have_struct_sockaddr_storage="no" | ||
22657 | |||
22658 | fi | ||
22659 | |||
22660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22661 | |||
22662 | fi | ||
22663 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
22664 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
22665 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
22666 | |||
22667 | cat >>confdefs.h <<\_ACEOF | ||
22668 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
22669 | _ACEOF | ||
22670 | |||
22671 | fi | ||
22672 | |||
22673 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
22674 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
22675 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
22676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22677 | else | ||
22678 | |||
22679 | cat >conftest.$ac_ext <<_ACEOF | ||
22680 | /* confdefs.h. */ | ||
22681 | _ACEOF | ||
22682 | cat confdefs.h >>conftest.$ac_ext | ||
22683 | cat >>conftest.$ac_ext <<_ACEOF | ||
22684 | /* end confdefs.h. */ | ||
22685 | |||
22686 | #include <sys/types.h> | ||
22687 | #include <netinet/in.h> | ||
22688 | |||
22689 | int | ||
22690 | main () | ||
22691 | { | ||
22692 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
22693 | ; | ||
22694 | return 0; | ||
22695 | } | ||
22696 | _ACEOF | ||
22697 | rm -f conftest.$ac_objext | ||
22698 | if { (ac_try="$ac_compile" | ||
22699 | case "(($ac_try" in | ||
22700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22701 | *) ac_try_echo=$ac_try;; | ||
22702 | esac | ||
22703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22704 | (eval "$ac_compile") 2>conftest.er1 | ||
22705 | ac_status=$? | ||
22706 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22707 | rm -f conftest.er1 | ||
22708 | cat conftest.err >&5 | ||
22709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22710 | (exit $ac_status); } && { | ||
22711 | test -z "$ac_c_werror_flag" || | ||
22712 | test ! -s conftest.err | ||
22713 | } && test -s conftest.$ac_objext; then | ||
22714 | ac_cv_have_struct_sockaddr_in6="yes" | ||
22715 | else | ||
22716 | echo "$as_me: failed program was:" >&5 | ||
22717 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22718 | |||
22719 | ac_cv_have_struct_sockaddr_in6="no" | ||
22720 | |||
22721 | fi | ||
22722 | |||
22723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22724 | |||
22725 | fi | ||
22726 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
22727 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
22728 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
22729 | |||
22730 | cat >>confdefs.h <<\_ACEOF | ||
22731 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
22732 | _ACEOF | ||
22733 | |||
22734 | fi | ||
22735 | |||
22736 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
22737 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
22738 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
22739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22740 | else | ||
22741 | |||
22742 | cat >conftest.$ac_ext <<_ACEOF | ||
22743 | /* confdefs.h. */ | ||
22744 | _ACEOF | ||
22745 | cat confdefs.h >>conftest.$ac_ext | ||
22746 | cat >>conftest.$ac_ext <<_ACEOF | ||
22747 | /* end confdefs.h. */ | ||
22748 | |||
22749 | #include <sys/types.h> | ||
22750 | #include <netinet/in.h> | ||
22751 | |||
22752 | int | ||
22753 | main () | ||
22754 | { | ||
22755 | struct in6_addr s; s.s6_addr[0] = 0; | ||
22756 | ; | ||
22757 | return 0; | ||
22758 | } | ||
22759 | _ACEOF | ||
22760 | rm -f conftest.$ac_objext | ||
22761 | if { (ac_try="$ac_compile" | ||
22762 | case "(($ac_try" in | ||
22763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22764 | *) ac_try_echo=$ac_try;; | ||
22765 | esac | ||
22766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22767 | (eval "$ac_compile") 2>conftest.er1 | ||
22768 | ac_status=$? | ||
22769 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22770 | rm -f conftest.er1 | ||
22771 | cat conftest.err >&5 | ||
22772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22773 | (exit $ac_status); } && { | ||
22774 | test -z "$ac_c_werror_flag" || | ||
22775 | test ! -s conftest.err | ||
22776 | } && test -s conftest.$ac_objext; then | ||
22777 | ac_cv_have_struct_in6_addr="yes" | ||
22778 | else | ||
22779 | echo "$as_me: failed program was:" >&5 | ||
22780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22781 | |||
22782 | ac_cv_have_struct_in6_addr="no" | ||
22783 | |||
22784 | fi | ||
22785 | |||
22786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22787 | |||
22788 | fi | ||
22789 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
22790 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
22791 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
22792 | |||
22793 | cat >>confdefs.h <<\_ACEOF | ||
22794 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
22795 | _ACEOF | ||
22796 | |||
22797 | |||
22798 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
22799 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
22800 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
22801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22802 | else | ||
22803 | cat >conftest.$ac_ext <<_ACEOF | ||
22804 | /* confdefs.h. */ | ||
22805 | _ACEOF | ||
22806 | cat confdefs.h >>conftest.$ac_ext | ||
22807 | cat >>conftest.$ac_ext <<_ACEOF | ||
22808 | /* end confdefs.h. */ | ||
22809 | |||
22810 | #ifdef HAVE_SYS_TYPES_H | ||
22811 | #include <sys/types.h> | ||
22812 | #endif | ||
22813 | #include <netinet/in.h> | ||
22814 | |||
22815 | |||
22816 | int | ||
22817 | main () | ||
22818 | { | ||
22819 | static struct sockaddr_in6 ac_aggr; | ||
22820 | if (ac_aggr.sin6_scope_id) | ||
22821 | return 0; | ||
22822 | ; | ||
22823 | return 0; | ||
22824 | } | ||
22825 | _ACEOF | ||
22826 | rm -f conftest.$ac_objext | ||
22827 | if { (ac_try="$ac_compile" | ||
22828 | case "(($ac_try" in | ||
22829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22830 | *) ac_try_echo=$ac_try;; | ||
22831 | esac | ||
22832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22833 | (eval "$ac_compile") 2>conftest.er1 | ||
22834 | ac_status=$? | ||
22835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22836 | rm -f conftest.er1 | ||
22837 | cat conftest.err >&5 | ||
22838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22839 | (exit $ac_status); } && { | ||
22840 | test -z "$ac_c_werror_flag" || | ||
22841 | test ! -s conftest.err | ||
22842 | } && test -s conftest.$ac_objext; then | ||
22843 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
22844 | else | ||
22845 | echo "$as_me: failed program was:" >&5 | ||
22846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22847 | |||
22848 | cat >conftest.$ac_ext <<_ACEOF | ||
22849 | /* confdefs.h. */ | ||
22850 | _ACEOF | ||
22851 | cat confdefs.h >>conftest.$ac_ext | ||
22852 | cat >>conftest.$ac_ext <<_ACEOF | ||
22853 | /* end confdefs.h. */ | ||
22854 | |||
22855 | #ifdef HAVE_SYS_TYPES_H | ||
22856 | #include <sys/types.h> | ||
22857 | #endif | ||
22858 | #include <netinet/in.h> | ||
22859 | |||
22860 | |||
22861 | int | ||
22862 | main () | ||
22863 | { | ||
22864 | static struct sockaddr_in6 ac_aggr; | ||
22865 | if (sizeof ac_aggr.sin6_scope_id) | ||
22866 | return 0; | ||
22867 | ; | ||
22868 | return 0; | ||
22869 | } | ||
22870 | _ACEOF | ||
22871 | rm -f conftest.$ac_objext | ||
22872 | if { (ac_try="$ac_compile" | ||
22873 | case "(($ac_try" in | ||
22874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22875 | *) ac_try_echo=$ac_try;; | ||
22876 | esac | ||
22877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22878 | (eval "$ac_compile") 2>conftest.er1 | ||
22879 | ac_status=$? | ||
22880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22881 | rm -f conftest.er1 | ||
22882 | cat conftest.err >&5 | ||
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22884 | (exit $ac_status); } && { | ||
22885 | test -z "$ac_c_werror_flag" || | ||
22886 | test ! -s conftest.err | ||
22887 | } && test -s conftest.$ac_objext; then | ||
22888 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
22889 | else | ||
22890 | echo "$as_me: failed program was:" >&5 | ||
22891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22892 | |||
22893 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
22894 | fi | ||
22895 | |||
22896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22897 | fi | ||
22898 | |||
22899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22900 | fi | ||
22901 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
22902 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
22903 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
22904 | |||
22905 | cat >>confdefs.h <<_ACEOF | ||
22906 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
22907 | _ACEOF | ||
22908 | |||
22909 | |||
22910 | fi | ||
22911 | |||
22912 | fi | ||
22913 | |||
22914 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
22915 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
22916 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
22917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22918 | else | ||
22919 | |||
22920 | cat >conftest.$ac_ext <<_ACEOF | ||
22921 | /* confdefs.h. */ | ||
22922 | _ACEOF | ||
22923 | cat confdefs.h >>conftest.$ac_ext | ||
22924 | cat >>conftest.$ac_ext <<_ACEOF | ||
22925 | /* end confdefs.h. */ | ||
22926 | |||
22927 | #include <sys/types.h> | ||
22928 | #include <sys/socket.h> | ||
22929 | #include <netdb.h> | ||
22930 | |||
22931 | int | ||
22932 | main () | ||
22933 | { | ||
22934 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
22935 | ; | ||
22936 | return 0; | ||
22937 | } | ||
22938 | _ACEOF | ||
22939 | rm -f conftest.$ac_objext | ||
22940 | if { (ac_try="$ac_compile" | ||
22941 | case "(($ac_try" in | ||
22942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22943 | *) ac_try_echo=$ac_try;; | ||
22944 | esac | ||
22945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22946 | (eval "$ac_compile") 2>conftest.er1 | ||
22947 | ac_status=$? | ||
22948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22949 | rm -f conftest.er1 | ||
22950 | cat conftest.err >&5 | ||
22951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22952 | (exit $ac_status); } && { | ||
22953 | test -z "$ac_c_werror_flag" || | ||
22954 | test ! -s conftest.err | ||
22955 | } && test -s conftest.$ac_objext; then | ||
22956 | ac_cv_have_struct_addrinfo="yes" | ||
22957 | else | ||
22958 | echo "$as_me: failed program was:" >&5 | ||
22959 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22960 | |||
22961 | ac_cv_have_struct_addrinfo="no" | ||
22962 | |||
22963 | fi | ||
22964 | |||
22965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22966 | |||
22967 | fi | ||
22968 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
22969 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
22970 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
22971 | |||
22972 | cat >>confdefs.h <<\_ACEOF | ||
22973 | #define HAVE_STRUCT_ADDRINFO 1 | ||
22974 | _ACEOF | ||
22975 | |||
22976 | fi | ||
22977 | |||
22978 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
22979 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
22980 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
22981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22982 | else | ||
22983 | |||
22984 | cat >conftest.$ac_ext <<_ACEOF | ||
22985 | /* confdefs.h. */ | ||
22986 | _ACEOF | ||
22987 | cat confdefs.h >>conftest.$ac_ext | ||
22988 | cat >>conftest.$ac_ext <<_ACEOF | ||
22989 | /* end confdefs.h. */ | ||
22990 | #include <sys/time.h> | ||
22991 | int | ||
22992 | main () | ||
22993 | { | ||
22994 | struct timeval tv; tv.tv_sec = 1; | ||
22995 | ; | ||
22996 | return 0; | ||
22997 | } | ||
22998 | _ACEOF | ||
22999 | rm -f conftest.$ac_objext | ||
23000 | if { (ac_try="$ac_compile" | ||
23001 | case "(($ac_try" in | ||
23002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23003 | *) ac_try_echo=$ac_try;; | ||
23004 | esac | ||
23005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23006 | (eval "$ac_compile") 2>conftest.er1 | ||
23007 | ac_status=$? | ||
23008 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23009 | rm -f conftest.er1 | ||
23010 | cat conftest.err >&5 | ||
23011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23012 | (exit $ac_status); } && { | ||
23013 | test -z "$ac_c_werror_flag" || | ||
23014 | test ! -s conftest.err | ||
23015 | } && test -s conftest.$ac_objext; then | ||
23016 | ac_cv_have_struct_timeval="yes" | ||
23017 | else | ||
23018 | echo "$as_me: failed program was:" >&5 | ||
23019 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23020 | |||
23021 | ac_cv_have_struct_timeval="no" | ||
23022 | |||
23023 | fi | ||
23024 | |||
23025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23026 | |||
23027 | fi | ||
23028 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
23029 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
23030 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
23031 | |||
23032 | cat >>confdefs.h <<\_ACEOF | ||
23033 | #define HAVE_STRUCT_TIMEVAL 1 | ||
23034 | _ACEOF | ||
23035 | |||
23036 | have_struct_timeval=1 | ||
23037 | fi | ||
23038 | |||
23039 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
23040 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
23041 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
23042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23043 | else | ||
23044 | cat >conftest.$ac_ext <<_ACEOF | ||
23045 | /* confdefs.h. */ | ||
23046 | _ACEOF | ||
23047 | cat confdefs.h >>conftest.$ac_ext | ||
23048 | cat >>conftest.$ac_ext <<_ACEOF | ||
23049 | /* end confdefs.h. */ | ||
23050 | $ac_includes_default | ||
23051 | typedef struct timespec ac__type_new_; | ||
23052 | int | ||
23053 | main () | ||
23054 | { | ||
23055 | if ((ac__type_new_ *) 0) | ||
23056 | return 0; | ||
23057 | if (sizeof (ac__type_new_)) | ||
23058 | return 0; | ||
23059 | ; | ||
23060 | return 0; | ||
23061 | } | ||
23062 | _ACEOF | ||
23063 | rm -f conftest.$ac_objext | ||
23064 | if { (ac_try="$ac_compile" | ||
23065 | case "(($ac_try" in | ||
23066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23067 | *) ac_try_echo=$ac_try;; | ||
23068 | esac | ||
23069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23070 | (eval "$ac_compile") 2>conftest.er1 | ||
23071 | ac_status=$? | ||
23072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23073 | rm -f conftest.er1 | ||
23074 | cat conftest.err >&5 | ||
23075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23076 | (exit $ac_status); } && { | ||
23077 | test -z "$ac_c_werror_flag" || | ||
23078 | test ! -s conftest.err | ||
23079 | } && test -s conftest.$ac_objext; then | ||
23080 | ac_cv_type_struct_timespec=yes | ||
23081 | else | ||
23082 | echo "$as_me: failed program was:" >&5 | ||
23083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23084 | |||
23085 | ac_cv_type_struct_timespec=no | ||
23086 | fi | ||
23087 | |||
23088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23089 | fi | ||
23090 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
23091 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
23092 | if test $ac_cv_type_struct_timespec = yes; then | ||
23093 | |||
23094 | cat >>confdefs.h <<_ACEOF | ||
23095 | #define HAVE_STRUCT_TIMESPEC 1 | ||
23096 | _ACEOF | ||
23097 | |||
23098 | |||
23099 | fi | ||
23100 | |||
23101 | |||
23102 | # We need int64_t or else certian parts of the compile will fail. | ||
23103 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
23104 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
23105 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
23106 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
23107 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
23108 | echo "" | ||
23109 | exit 1; | ||
23110 | else | ||
23111 | if test "$cross_compiling" = yes; then | ||
23112 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
23113 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
23114 | |||
23115 | else | ||
23116 | cat >conftest.$ac_ext <<_ACEOF | ||
23117 | /* confdefs.h. */ | ||
23118 | _ACEOF | ||
23119 | cat confdefs.h >>conftest.$ac_ext | ||
23120 | cat >>conftest.$ac_ext <<_ACEOF | ||
23121 | /* end confdefs.h. */ | ||
23122 | |||
23123 | #include <stdio.h> | ||
23124 | #include <string.h> | ||
23125 | #ifdef HAVE_SNPRINTF | ||
23126 | main() | ||
23127 | { | ||
23128 | char buf[50]; | ||
23129 | char expected_out[50]; | ||
23130 | int mazsize = 50 ; | ||
23131 | #if (SIZEOF_LONG_INT == 8) | ||
23132 | long int num = 0x7fffffffffffffff; | ||
23133 | #else | ||
23134 | long long num = 0x7fffffffffffffffll; | ||
23135 | #endif | ||
23136 | strcpy(expected_out, "9223372036854775807"); | ||
23137 | snprintf(buf, mazsize, "%lld", num); | ||
23138 | if(strcmp(buf, expected_out) != 0) | ||
23139 | exit(1); | ||
23140 | exit(0); | ||
23141 | } | ||
23142 | #else | ||
23143 | main() { exit(0); } | ||
23144 | #endif | ||
23145 | |||
23146 | _ACEOF | ||
23147 | rm -f conftest$ac_exeext | ||
23148 | if { (ac_try="$ac_link" | ||
23149 | case "(($ac_try" in | ||
23150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23151 | *) ac_try_echo=$ac_try;; | ||
23152 | esac | ||
23153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23154 | (eval "$ac_link") 2>&5 | ||
23155 | ac_status=$? | ||
23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23158 | { (case "(($ac_try" in | ||
23159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23160 | *) ac_try_echo=$ac_try;; | ||
23161 | esac | ||
23162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23163 | (eval "$ac_try") 2>&5 | ||
23164 | ac_status=$? | ||
23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23166 | (exit $ac_status); }; }; then | ||
23167 | true | ||
23168 | else | ||
23169 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23170 | echo "$as_me: failed program was:" >&5 | ||
23171 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23172 | |||
23173 | ( exit $ac_status ) | ||
23174 | cat >>confdefs.h <<\_ACEOF | ||
23175 | #define BROKEN_SNPRINTF 1 | ||
23176 | _ACEOF | ||
23177 | |||
23178 | fi | ||
23179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23180 | fi | ||
23181 | |||
23182 | |||
23183 | fi | ||
23184 | |||
23185 | |||
23186 | # look for field 'ut_host' in header 'utmp.h' | ||
23187 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23188 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23189 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
23190 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
23191 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23193 | else | ||
23194 | |||
23195 | cat >conftest.$ac_ext <<_ACEOF | ||
23196 | /* confdefs.h. */ | ||
23197 | _ACEOF | ||
23198 | cat confdefs.h >>conftest.$ac_ext | ||
23199 | cat >>conftest.$ac_ext <<_ACEOF | ||
23200 | /* end confdefs.h. */ | ||
23201 | #include <utmp.h> | ||
23202 | |||
23203 | _ACEOF | ||
23204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23205 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23206 | eval "$ossh_varname=yes" | ||
23207 | else | ||
23208 | eval "$ossh_varname=no" | ||
23209 | fi | ||
23210 | rm -f conftest* | ||
23211 | |||
23212 | fi | ||
23213 | |||
23214 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23215 | if test -n "`echo $ossh_varname`"; then | ||
23216 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23217 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23218 | if test "x$ossh_result" = "xyes"; then | ||
23219 | |||
23220 | cat >>confdefs.h <<\_ACEOF | ||
23221 | #define HAVE_HOST_IN_UTMP 1 | ||
23222 | _ACEOF | ||
23223 | |||
23224 | fi | ||
23225 | else | ||
23226 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23227 | echo "${ECHO_T}no" >&6; } | ||
23228 | fi | ||
23229 | |||
23230 | |||
23231 | # look for field 'ut_host' in header 'utmpx.h' | ||
23232 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23233 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23234 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
23235 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
23236 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23238 | else | ||
23239 | |||
23240 | cat >conftest.$ac_ext <<_ACEOF | ||
23241 | /* confdefs.h. */ | ||
23242 | _ACEOF | ||
23243 | cat confdefs.h >>conftest.$ac_ext | ||
23244 | cat >>conftest.$ac_ext <<_ACEOF | ||
23245 | /* end confdefs.h. */ | ||
23246 | #include <utmpx.h> | ||
23247 | |||
23248 | _ACEOF | ||
23249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23250 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23251 | eval "$ossh_varname=yes" | ||
23252 | else | ||
23253 | eval "$ossh_varname=no" | ||
23254 | fi | ||
23255 | rm -f conftest* | ||
23256 | |||
23257 | fi | ||
23258 | |||
23259 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23260 | if test -n "`echo $ossh_varname`"; then | ||
23261 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23262 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23263 | if test "x$ossh_result" = "xyes"; then | ||
23264 | |||
23265 | cat >>confdefs.h <<\_ACEOF | ||
23266 | #define HAVE_HOST_IN_UTMPX 1 | ||
23267 | _ACEOF | ||
23268 | |||
23269 | fi | ||
23270 | else | ||
23271 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23272 | echo "${ECHO_T}no" >&6; } | ||
23273 | fi | ||
23274 | |||
23275 | |||
23276 | # look for field 'syslen' in header 'utmpx.h' | ||
23277 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23278 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
23279 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
23280 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
23281 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23283 | else | ||
23284 | |||
23285 | cat >conftest.$ac_ext <<_ACEOF | ||
23286 | /* confdefs.h. */ | ||
23287 | _ACEOF | ||
23288 | cat confdefs.h >>conftest.$ac_ext | ||
23289 | cat >>conftest.$ac_ext <<_ACEOF | ||
23290 | /* end confdefs.h. */ | ||
23291 | #include <utmpx.h> | ||
23292 | |||
23293 | _ACEOF | ||
23294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23295 | $EGREP "syslen" >/dev/null 2>&1; then | ||
23296 | eval "$ossh_varname=yes" | ||
23297 | else | ||
23298 | eval "$ossh_varname=no" | ||
23299 | fi | ||
23300 | rm -f conftest* | ||
23301 | |||
23302 | fi | ||
23303 | |||
23304 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23305 | if test -n "`echo $ossh_varname`"; then | ||
23306 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23307 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23308 | if test "x$ossh_result" = "xyes"; then | ||
23309 | |||
23310 | cat >>confdefs.h <<\_ACEOF | ||
23311 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
23312 | _ACEOF | ||
23313 | |||
23314 | fi | ||
23315 | else | ||
23316 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23317 | echo "${ECHO_T}no" >&6; } | ||
23318 | fi | ||
23319 | |||
23320 | |||
23321 | # look for field 'ut_pid' in header 'utmp.h' | ||
23322 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23323 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
23324 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
23325 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
23326 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23328 | else | ||
23329 | |||
23330 | cat >conftest.$ac_ext <<_ACEOF | ||
23331 | /* confdefs.h. */ | ||
23332 | _ACEOF | ||
23333 | cat confdefs.h >>conftest.$ac_ext | ||
23334 | cat >>conftest.$ac_ext <<_ACEOF | ||
23335 | /* end confdefs.h. */ | ||
23336 | #include <utmp.h> | ||
23337 | |||
23338 | _ACEOF | ||
23339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23340 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
23341 | eval "$ossh_varname=yes" | ||
23342 | else | ||
23343 | eval "$ossh_varname=no" | ||
23344 | fi | ||
23345 | rm -f conftest* | ||
23346 | |||
23347 | fi | ||
23348 | |||
23349 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23350 | if test -n "`echo $ossh_varname`"; then | ||
23351 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23352 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23353 | if test "x$ossh_result" = "xyes"; then | ||
23354 | |||
23355 | cat >>confdefs.h <<\_ACEOF | ||
23356 | #define HAVE_PID_IN_UTMP 1 | ||
23357 | _ACEOF | ||
23358 | |||
23359 | fi | ||
23360 | else | ||
23361 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23362 | echo "${ECHO_T}no" >&6; } | ||
23363 | fi | ||
23364 | |||
23365 | |||
23366 | # look for field 'ut_type' in header 'utmp.h' | ||
23367 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23368 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23369 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
23370 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
23371 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23373 | else | ||
23374 | |||
23375 | cat >conftest.$ac_ext <<_ACEOF | ||
23376 | /* confdefs.h. */ | ||
23377 | _ACEOF | ||
23378 | cat confdefs.h >>conftest.$ac_ext | ||
23379 | cat >>conftest.$ac_ext <<_ACEOF | ||
23380 | /* end confdefs.h. */ | ||
23381 | #include <utmp.h> | ||
23382 | |||
23383 | _ACEOF | ||
23384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23385 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23386 | eval "$ossh_varname=yes" | ||
23387 | else | ||
23388 | eval "$ossh_varname=no" | ||
23389 | fi | ||
23390 | rm -f conftest* | ||
23391 | |||
23392 | fi | ||
23393 | |||
23394 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23395 | if test -n "`echo $ossh_varname`"; then | ||
23396 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23397 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23398 | if test "x$ossh_result" = "xyes"; then | ||
23399 | |||
23400 | cat >>confdefs.h <<\_ACEOF | ||
23401 | #define HAVE_TYPE_IN_UTMP 1 | ||
23402 | _ACEOF | ||
23403 | |||
23404 | fi | ||
23405 | else | ||
23406 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23407 | echo "${ECHO_T}no" >&6; } | ||
23408 | fi | ||
23409 | |||
23410 | |||
23411 | # look for field 'ut_type' in header 'utmpx.h' | ||
23412 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23413 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23414 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
23415 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
23416 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23418 | else | ||
23419 | |||
23420 | cat >conftest.$ac_ext <<_ACEOF | ||
23421 | /* confdefs.h. */ | ||
23422 | _ACEOF | ||
23423 | cat confdefs.h >>conftest.$ac_ext | ||
23424 | cat >>conftest.$ac_ext <<_ACEOF | ||
23425 | /* end confdefs.h. */ | ||
23426 | #include <utmpx.h> | ||
23427 | |||
23428 | _ACEOF | ||
23429 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23430 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23431 | eval "$ossh_varname=yes" | ||
23432 | else | ||
23433 | eval "$ossh_varname=no" | ||
23434 | fi | ||
23435 | rm -f conftest* | ||
23436 | |||
23437 | fi | ||
23438 | |||
23439 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23440 | if test -n "`echo $ossh_varname`"; then | ||
23441 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23442 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23443 | if test "x$ossh_result" = "xyes"; then | ||
23444 | |||
23445 | cat >>confdefs.h <<\_ACEOF | ||
23446 | #define HAVE_TYPE_IN_UTMPX 1 | ||
23447 | _ACEOF | ||
23448 | |||
23449 | fi | ||
23450 | else | ||
23451 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23452 | echo "${ECHO_T}no" >&6; } | ||
23453 | fi | ||
23454 | |||
23455 | |||
23456 | # look for field 'ut_tv' in header 'utmp.h' | ||
23457 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23458 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
23459 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
23460 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
23461 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23463 | else | ||
23464 | |||
23465 | cat >conftest.$ac_ext <<_ACEOF | ||
23466 | /* confdefs.h. */ | ||
23467 | _ACEOF | ||
23468 | cat confdefs.h >>conftest.$ac_ext | ||
23469 | cat >>conftest.$ac_ext <<_ACEOF | ||
23470 | /* end confdefs.h. */ | ||
23471 | #include <utmp.h> | ||
23472 | |||
23473 | _ACEOF | ||
23474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23475 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
23476 | eval "$ossh_varname=yes" | ||
23477 | else | ||
23478 | eval "$ossh_varname=no" | ||
23479 | fi | ||
23480 | rm -f conftest* | ||
23481 | |||
23482 | fi | ||
23483 | |||
23484 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23485 | if test -n "`echo $ossh_varname`"; then | ||
23486 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23487 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23488 | if test "x$ossh_result" = "xyes"; then | ||
23489 | |||
23490 | cat >>confdefs.h <<\_ACEOF | ||
23491 | #define HAVE_TV_IN_UTMP 1 | ||
23492 | _ACEOF | ||
23493 | |||
23494 | fi | ||
23495 | else | ||
23496 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23497 | echo "${ECHO_T}no" >&6; } | ||
23498 | fi | ||
23499 | |||
23500 | |||
23501 | # look for field 'ut_id' in header 'utmp.h' | ||
23502 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23503 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23504 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
23505 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
23506 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23508 | else | ||
23509 | |||
23510 | cat >conftest.$ac_ext <<_ACEOF | ||
23511 | /* confdefs.h. */ | ||
23512 | _ACEOF | ||
23513 | cat confdefs.h >>conftest.$ac_ext | ||
23514 | cat >>conftest.$ac_ext <<_ACEOF | ||
23515 | /* end confdefs.h. */ | ||
23516 | #include <utmp.h> | ||
23517 | |||
23518 | _ACEOF | ||
23519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23520 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23521 | eval "$ossh_varname=yes" | ||
23522 | else | ||
23523 | eval "$ossh_varname=no" | ||
23524 | fi | ||
23525 | rm -f conftest* | ||
23526 | |||
23527 | fi | ||
23528 | |||
23529 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23530 | if test -n "`echo $ossh_varname`"; then | ||
23531 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23532 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23533 | if test "x$ossh_result" = "xyes"; then | ||
23534 | |||
23535 | cat >>confdefs.h <<\_ACEOF | ||
23536 | #define HAVE_ID_IN_UTMP 1 | ||
23537 | _ACEOF | ||
23538 | |||
23539 | fi | ||
23540 | else | ||
23541 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23542 | echo "${ECHO_T}no" >&6; } | ||
23543 | fi | ||
23544 | |||
23545 | |||
23546 | # look for field 'ut_id' in header 'utmpx.h' | ||
23547 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23548 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23549 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
23550 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
23551 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23553 | else | ||
23554 | |||
23555 | cat >conftest.$ac_ext <<_ACEOF | ||
23556 | /* confdefs.h. */ | ||
23557 | _ACEOF | ||
23558 | cat confdefs.h >>conftest.$ac_ext | ||
23559 | cat >>conftest.$ac_ext <<_ACEOF | ||
23560 | /* end confdefs.h. */ | ||
23561 | #include <utmpx.h> | ||
23562 | |||
23563 | _ACEOF | ||
23564 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23565 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23566 | eval "$ossh_varname=yes" | ||
23567 | else | ||
23568 | eval "$ossh_varname=no" | ||
23569 | fi | ||
23570 | rm -f conftest* | ||
23571 | |||
23572 | fi | ||
23573 | |||
23574 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23575 | if test -n "`echo $ossh_varname`"; then | ||
23576 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23577 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23578 | if test "x$ossh_result" = "xyes"; then | ||
23579 | |||
23580 | cat >>confdefs.h <<\_ACEOF | ||
23581 | #define HAVE_ID_IN_UTMPX 1 | ||
23582 | _ACEOF | ||
23583 | |||
23584 | fi | ||
23585 | else | ||
23586 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23587 | echo "${ECHO_T}no" >&6; } | ||
23588 | fi | ||
23589 | |||
23590 | |||
23591 | # look for field 'ut_addr' in header 'utmp.h' | ||
23592 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23593 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
23594 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
23595 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
23596 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23598 | else | ||
23599 | |||
23600 | cat >conftest.$ac_ext <<_ACEOF | ||
23601 | /* confdefs.h. */ | ||
23602 | _ACEOF | ||
23603 | cat confdefs.h >>conftest.$ac_ext | ||
23604 | cat >>conftest.$ac_ext <<_ACEOF | ||
23605 | /* end confdefs.h. */ | ||
23606 | #include <utmp.h> | ||
23607 | |||
23608 | _ACEOF | ||
23609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23610 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
23611 | eval "$ossh_varname=yes" | ||
23612 | else | ||
23613 | eval "$ossh_varname=no" | ||
23614 | fi | ||
23615 | rm -f conftest* | ||
23616 | |||
23617 | fi | ||
23618 | |||
23619 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23620 | if test -n "`echo $ossh_varname`"; then | ||
23621 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23622 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23623 | if test "x$ossh_result" = "xyes"; then | ||
23624 | |||
23625 | cat >>confdefs.h <<\_ACEOF | ||
23626 | #define HAVE_ADDR_IN_UTMP 1 | ||
23627 | _ACEOF | ||
23628 | |||
23629 | fi | ||
23630 | else | ||
23631 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23632 | echo "${ECHO_T}no" >&6; } | ||
23633 | fi | ||
23634 | |||
23635 | |||
23636 | # look for field 'ut_addr' in header 'utmpx.h' | ||
23637 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23638 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
23639 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
23640 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
23641 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23643 | else | ||
23644 | |||
23645 | cat >conftest.$ac_ext <<_ACEOF | ||
23646 | /* confdefs.h. */ | ||
23647 | _ACEOF | ||
23648 | cat confdefs.h >>conftest.$ac_ext | ||
23649 | cat >>conftest.$ac_ext <<_ACEOF | ||
23650 | /* end confdefs.h. */ | ||
23651 | #include <utmpx.h> | ||
23652 | |||
23653 | _ACEOF | ||
23654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23655 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
23656 | eval "$ossh_varname=yes" | ||
23657 | else | ||
23658 | eval "$ossh_varname=no" | ||
23659 | fi | ||
23660 | rm -f conftest* | ||
23661 | |||
23662 | fi | ||
23663 | |||
23664 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23665 | if test -n "`echo $ossh_varname`"; then | ||
23666 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23667 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23668 | if test "x$ossh_result" = "xyes"; then | ||
23669 | |||
23670 | cat >>confdefs.h <<\_ACEOF | ||
23671 | #define HAVE_ADDR_IN_UTMPX 1 | ||
23672 | _ACEOF | ||
23673 | |||
23674 | fi | ||
23675 | else | ||
23676 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23677 | echo "${ECHO_T}no" >&6; } | ||
23678 | fi | ||
23679 | |||
23680 | |||
23681 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
23682 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23683 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
23684 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
23685 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
23686 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23688 | else | ||
23689 | |||
23690 | cat >conftest.$ac_ext <<_ACEOF | ||
23691 | /* confdefs.h. */ | ||
23692 | _ACEOF | ||
23693 | cat confdefs.h >>conftest.$ac_ext | ||
23694 | cat >>conftest.$ac_ext <<_ACEOF | ||
23695 | /* end confdefs.h. */ | ||
23696 | #include <utmp.h> | ||
23697 | |||
23698 | _ACEOF | ||
23699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23700 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
23701 | eval "$ossh_varname=yes" | ||
23702 | else | ||
23703 | eval "$ossh_varname=no" | ||
23704 | fi | ||
23705 | rm -f conftest* | ||
23706 | |||
23707 | fi | ||
23708 | |||
23709 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23710 | if test -n "`echo $ossh_varname`"; then | ||
23711 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23712 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23713 | if test "x$ossh_result" = "xyes"; then | ||
23714 | |||
23715 | cat >>confdefs.h <<\_ACEOF | ||
23716 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
23717 | _ACEOF | ||
23718 | |||
23719 | fi | ||
23720 | else | ||
23721 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23722 | echo "${ECHO_T}no" >&6; } | ||
23723 | fi | ||
23724 | |||
23725 | |||
23726 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
23727 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23728 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
23729 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
23730 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
23731 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23733 | else | ||
23734 | |||
23735 | cat >conftest.$ac_ext <<_ACEOF | ||
23736 | /* confdefs.h. */ | ||
23737 | _ACEOF | ||
23738 | cat confdefs.h >>conftest.$ac_ext | ||
23739 | cat >>conftest.$ac_ext <<_ACEOF | ||
23740 | /* end confdefs.h. */ | ||
23741 | #include <utmpx.h> | ||
23742 | |||
23743 | _ACEOF | ||
23744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23745 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
23746 | eval "$ossh_varname=yes" | ||
23747 | else | ||
23748 | eval "$ossh_varname=no" | ||
23749 | fi | ||
23750 | rm -f conftest* | ||
23751 | |||
23752 | fi | ||
23753 | |||
23754 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23755 | if test -n "`echo $ossh_varname`"; then | ||
23756 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23757 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23758 | if test "x$ossh_result" = "xyes"; then | ||
23759 | |||
23760 | cat >>confdefs.h <<\_ACEOF | ||
23761 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
23762 | _ACEOF | ||
23763 | |||
23764 | fi | ||
23765 | else | ||
23766 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23767 | echo "${ECHO_T}no" >&6; } | ||
23768 | fi | ||
23769 | |||
23770 | |||
23771 | # look for field 'ut_exit' in header 'utmp.h' | ||
23772 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23773 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
23774 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
23775 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
23776 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23778 | else | ||
23779 | |||
23780 | cat >conftest.$ac_ext <<_ACEOF | ||
23781 | /* confdefs.h. */ | ||
23782 | _ACEOF | ||
23783 | cat confdefs.h >>conftest.$ac_ext | ||
23784 | cat >>conftest.$ac_ext <<_ACEOF | ||
23785 | /* end confdefs.h. */ | ||
23786 | #include <utmp.h> | ||
23787 | |||
23788 | _ACEOF | ||
23789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23790 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
23791 | eval "$ossh_varname=yes" | ||
23792 | else | ||
23793 | eval "$ossh_varname=no" | ||
23794 | fi | ||
23795 | rm -f conftest* | ||
23796 | |||
23797 | fi | ||
23798 | |||
23799 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23800 | if test -n "`echo $ossh_varname`"; then | ||
23801 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23802 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23803 | if test "x$ossh_result" = "xyes"; then | ||
23804 | |||
23805 | cat >>confdefs.h <<\_ACEOF | ||
23806 | #define HAVE_EXIT_IN_UTMP 1 | ||
23807 | _ACEOF | ||
23808 | |||
23809 | fi | ||
23810 | else | ||
23811 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23812 | echo "${ECHO_T}no" >&6; } | ||
23813 | fi | ||
23814 | |||
23815 | |||
23816 | # look for field 'ut_time' in header 'utmp.h' | ||
23817 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23818 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
23819 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
23820 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
23821 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23823 | else | ||
23824 | |||
23825 | cat >conftest.$ac_ext <<_ACEOF | ||
23826 | /* confdefs.h. */ | ||
23827 | _ACEOF | ||
23828 | cat confdefs.h >>conftest.$ac_ext | ||
23829 | cat >>conftest.$ac_ext <<_ACEOF | ||
23830 | /* end confdefs.h. */ | ||
23831 | #include <utmp.h> | ||
23832 | |||
23833 | _ACEOF | ||
23834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23835 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
23836 | eval "$ossh_varname=yes" | ||
23837 | else | ||
23838 | eval "$ossh_varname=no" | ||
23839 | fi | ||
23840 | rm -f conftest* | ||
23841 | |||
23842 | fi | ||
23843 | |||
23844 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23845 | if test -n "`echo $ossh_varname`"; then | ||
23846 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23847 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23848 | if test "x$ossh_result" = "xyes"; then | ||
23849 | |||
23850 | cat >>confdefs.h <<\_ACEOF | ||
23851 | #define HAVE_TIME_IN_UTMP 1 | ||
23852 | _ACEOF | ||
23853 | |||
23854 | fi | ||
23855 | else | ||
23856 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23857 | echo "${ECHO_T}no" >&6; } | ||
23858 | fi | ||
23859 | |||
23860 | |||
23861 | # look for field 'ut_time' in header 'utmpx.h' | ||
23862 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23863 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
23864 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
23865 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
23866 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23868 | else | ||
23869 | |||
23870 | cat >conftest.$ac_ext <<_ACEOF | ||
23871 | /* confdefs.h. */ | ||
23872 | _ACEOF | ||
23873 | cat confdefs.h >>conftest.$ac_ext | ||
23874 | cat >>conftest.$ac_ext <<_ACEOF | ||
23875 | /* end confdefs.h. */ | ||
23876 | #include <utmpx.h> | ||
23877 | |||
23878 | _ACEOF | ||
23879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23880 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
23881 | eval "$ossh_varname=yes" | ||
23882 | else | ||
23883 | eval "$ossh_varname=no" | ||
23884 | fi | ||
23885 | rm -f conftest* | ||
23886 | |||
23887 | fi | ||
23888 | |||
23889 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23890 | if test -n "`echo $ossh_varname`"; then | ||
23891 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23892 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23893 | if test "x$ossh_result" = "xyes"; then | ||
23894 | |||
23895 | cat >>confdefs.h <<\_ACEOF | ||
23896 | #define HAVE_TIME_IN_UTMPX 1 | ||
23897 | _ACEOF | ||
23898 | |||
23899 | fi | ||
23900 | else | ||
23901 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23902 | echo "${ECHO_T}no" >&6; } | ||
23903 | fi | ||
23904 | |||
23905 | |||
23906 | # look for field 'ut_tv' in header 'utmpx.h' | ||
23907 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23908 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
23909 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
23910 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
23911 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23913 | else | ||
23914 | |||
23915 | cat >conftest.$ac_ext <<_ACEOF | ||
23916 | /* confdefs.h. */ | ||
23917 | _ACEOF | ||
23918 | cat confdefs.h >>conftest.$ac_ext | ||
23919 | cat >>conftest.$ac_ext <<_ACEOF | ||
23920 | /* end confdefs.h. */ | ||
23921 | #include <utmpx.h> | ||
23922 | |||
23923 | _ACEOF | ||
23924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23925 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
23926 | eval "$ossh_varname=yes" | ||
23927 | else | ||
23928 | eval "$ossh_varname=no" | ||
23929 | fi | ||
23930 | rm -f conftest* | ||
23931 | |||
23932 | fi | ||
23933 | |||
23934 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23935 | if test -n "`echo $ossh_varname`"; then | ||
23936 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23937 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23938 | if test "x$ossh_result" = "xyes"; then | ||
23939 | |||
23940 | cat >>confdefs.h <<\_ACEOF | ||
23941 | #define HAVE_TV_IN_UTMPX 1 | ||
23942 | _ACEOF | ||
23943 | |||
23944 | fi | ||
23945 | else | ||
23946 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23947 | echo "${ECHO_T}no" >&6; } | ||
23948 | fi | ||
23949 | |||
23950 | |||
23951 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
23952 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
23953 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
23954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23955 | else | ||
23956 | cat >conftest.$ac_ext <<_ACEOF | ||
23957 | /* confdefs.h. */ | ||
23958 | _ACEOF | ||
23959 | cat confdefs.h >>conftest.$ac_ext | ||
23960 | cat >>conftest.$ac_ext <<_ACEOF | ||
23961 | /* end confdefs.h. */ | ||
23962 | $ac_includes_default | ||
23963 | int | ||
23964 | main () | ||
23965 | { | ||
23966 | static struct stat ac_aggr; | ||
23967 | if (ac_aggr.st_blksize) | ||
23968 | return 0; | ||
23969 | ; | ||
23970 | return 0; | ||
23971 | } | ||
23972 | _ACEOF | ||
23973 | rm -f conftest.$ac_objext | ||
23974 | if { (ac_try="$ac_compile" | ||
23975 | case "(($ac_try" in | ||
23976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23977 | *) ac_try_echo=$ac_try;; | ||
23978 | esac | ||
23979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23980 | (eval "$ac_compile") 2>conftest.er1 | ||
23981 | ac_status=$? | ||
23982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23983 | rm -f conftest.er1 | ||
23984 | cat conftest.err >&5 | ||
23985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23986 | (exit $ac_status); } && { | ||
23987 | test -z "$ac_c_werror_flag" || | ||
23988 | test ! -s conftest.err | ||
23989 | } && test -s conftest.$ac_objext; then | ||
23990 | ac_cv_member_struct_stat_st_blksize=yes | ||
23991 | else | ||
23992 | echo "$as_me: failed program was:" >&5 | ||
23993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
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 | $ac_includes_default | ||
24002 | int | ||
24003 | main () | ||
24004 | { | ||
24005 | static struct stat ac_aggr; | ||
24006 | if (sizeof ac_aggr.st_blksize) | ||
24007 | return 0; | ||
24008 | ; | ||
24009 | return 0; | ||
24010 | } | ||
24011 | _ACEOF | ||
24012 | rm -f conftest.$ac_objext | ||
24013 | if { (ac_try="$ac_compile" | ||
24014 | case "(($ac_try" in | ||
24015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24016 | *) ac_try_echo=$ac_try;; | ||
24017 | esac | ||
24018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24019 | (eval "$ac_compile") 2>conftest.er1 | ||
24020 | ac_status=$? | ||
24021 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24022 | rm -f conftest.er1 | ||
24023 | cat conftest.err >&5 | ||
24024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24025 | (exit $ac_status); } && { | ||
24026 | test -z "$ac_c_werror_flag" || | ||
24027 | test ! -s conftest.err | ||
24028 | } && test -s conftest.$ac_objext; then | ||
24029 | ac_cv_member_struct_stat_st_blksize=yes | ||
24030 | else | ||
24031 | echo "$as_me: failed program was:" >&5 | ||
24032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24033 | |||
24034 | ac_cv_member_struct_stat_st_blksize=no | ||
24035 | fi | ||
24036 | |||
24037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24038 | fi | ||
24039 | |||
24040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24041 | fi | ||
24042 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
24043 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
24044 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
24045 | |||
24046 | cat >>confdefs.h <<_ACEOF | ||
24047 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
24048 | _ACEOF | ||
24049 | |||
24050 | |||
24051 | fi | ||
24052 | |||
24053 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
24054 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
24055 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
24056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24057 | else | ||
24058 | cat >conftest.$ac_ext <<_ACEOF | ||
24059 | /* confdefs.h. */ | ||
24060 | _ACEOF | ||
24061 | cat confdefs.h >>conftest.$ac_ext | ||
24062 | cat >>conftest.$ac_ext <<_ACEOF | ||
24063 | /* end confdefs.h. */ | ||
24064 | |||
24065 | #include <stdio.h> | ||
24066 | #if HAVE_SYS_TYPES_H | ||
24067 | # include <sys/types.h> | ||
24068 | #endif | ||
24069 | #include <netinet/in.h> | ||
24070 | #include <arpa/nameser.h> | ||
24071 | #include <resolv.h> | ||
24072 | |||
24073 | |||
24074 | int | ||
24075 | main () | ||
24076 | { | ||
24077 | static struct __res_state ac_aggr; | ||
24078 | if (ac_aggr.retrans) | ||
24079 | return 0; | ||
24080 | ; | ||
24081 | return 0; | ||
24082 | } | ||
24083 | _ACEOF | ||
24084 | rm -f conftest.$ac_objext | ||
24085 | if { (ac_try="$ac_compile" | ||
24086 | case "(($ac_try" in | ||
24087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24088 | *) ac_try_echo=$ac_try;; | ||
24089 | esac | ||
24090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24091 | (eval "$ac_compile") 2>conftest.er1 | ||
24092 | ac_status=$? | ||
24093 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24094 | rm -f conftest.er1 | ||
24095 | cat conftest.err >&5 | ||
24096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24097 | (exit $ac_status); } && { | ||
24098 | test -z "$ac_c_werror_flag" || | ||
24099 | test ! -s conftest.err | ||
24100 | } && test -s conftest.$ac_objext; then | ||
24101 | ac_cv_member_struct___res_state_retrans=yes | ||
24102 | else | ||
24103 | echo "$as_me: failed program was:" >&5 | ||
24104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24105 | |||
24106 | cat >conftest.$ac_ext <<_ACEOF | ||
24107 | /* confdefs.h. */ | ||
24108 | _ACEOF | ||
24109 | cat confdefs.h >>conftest.$ac_ext | ||
24110 | cat >>conftest.$ac_ext <<_ACEOF | ||
24111 | /* end confdefs.h. */ | ||
24112 | |||
24113 | #include <stdio.h> | ||
24114 | #if HAVE_SYS_TYPES_H | ||
24115 | # include <sys/types.h> | ||
24116 | #endif | ||
24117 | #include <netinet/in.h> | ||
24118 | #include <arpa/nameser.h> | ||
24119 | #include <resolv.h> | ||
24120 | |||
24121 | |||
24122 | int | ||
24123 | main () | ||
24124 | { | ||
24125 | static struct __res_state ac_aggr; | ||
24126 | if (sizeof ac_aggr.retrans) | ||
24127 | return 0; | ||
24128 | ; | ||
24129 | return 0; | ||
24130 | } | ||
24131 | _ACEOF | ||
24132 | rm -f conftest.$ac_objext | ||
24133 | if { (ac_try="$ac_compile" | ||
24134 | case "(($ac_try" in | ||
24135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24136 | *) ac_try_echo=$ac_try;; | ||
24137 | esac | ||
24138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24139 | (eval "$ac_compile") 2>conftest.er1 | ||
24140 | ac_status=$? | ||
24141 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24142 | rm -f conftest.er1 | ||
24143 | cat conftest.err >&5 | ||
24144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24145 | (exit $ac_status); } && { | ||
24146 | test -z "$ac_c_werror_flag" || | ||
24147 | test ! -s conftest.err | ||
24148 | } && test -s conftest.$ac_objext; then | ||
24149 | ac_cv_member_struct___res_state_retrans=yes | ||
24150 | else | ||
24151 | echo "$as_me: failed program was:" >&5 | ||
24152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24153 | |||
24154 | ac_cv_member_struct___res_state_retrans=no | ||
24155 | fi | ||
24156 | |||
24157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24158 | fi | ||
24159 | |||
24160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24161 | fi | ||
24162 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
24163 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
24164 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
24165 | : | ||
24166 | else | ||
24167 | |||
24168 | cat >>confdefs.h <<\_ACEOF | ||
24169 | #define __res_state state | ||
24170 | _ACEOF | ||
24171 | |||
24172 | fi | ||
24173 | |||
24174 | |||
24175 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
24176 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24177 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
24178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24179 | else | ||
24180 | |||
24181 | cat >conftest.$ac_ext <<_ACEOF | ||
24182 | /* confdefs.h. */ | ||
24183 | _ACEOF | ||
24184 | cat confdefs.h >>conftest.$ac_ext | ||
24185 | cat >>conftest.$ac_ext <<_ACEOF | ||
24186 | /* end confdefs.h. */ | ||
24187 | |||
24188 | #include <sys/types.h> | ||
24189 | #include <sys/socket.h> | ||
24190 | |||
24191 | int | ||
24192 | main () | ||
24193 | { | ||
24194 | struct sockaddr_storage s; s.ss_family = 1; | ||
24195 | ; | ||
24196 | return 0; | ||
24197 | } | ||
24198 | _ACEOF | ||
24199 | rm -f conftest.$ac_objext | ||
24200 | if { (ac_try="$ac_compile" | ||
24201 | case "(($ac_try" in | ||
24202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24203 | *) ac_try_echo=$ac_try;; | ||
24204 | esac | ||
24205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24206 | (eval "$ac_compile") 2>conftest.er1 | ||
24207 | ac_status=$? | ||
24208 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24209 | rm -f conftest.er1 | ||
24210 | cat conftest.err >&5 | ||
24211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24212 | (exit $ac_status); } && { | ||
24213 | test -z "$ac_c_werror_flag" || | ||
24214 | test ! -s conftest.err | ||
24215 | } && test -s conftest.$ac_objext; then | ||
24216 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
24217 | else | ||
24218 | echo "$as_me: failed program was:" >&5 | ||
24219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24220 | |||
24221 | ac_cv_have_ss_family_in_struct_ss="no" | ||
24222 | fi | ||
24223 | |||
24224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24225 | |||
24226 | fi | ||
24227 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
24228 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
24229 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
24230 | |||
24231 | cat >>confdefs.h <<\_ACEOF | ||
24232 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
24233 | _ACEOF | ||
24234 | |||
24235 | fi | ||
24236 | |||
24237 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
24238 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24239 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
24240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24241 | else | ||
24242 | |||
24243 | cat >conftest.$ac_ext <<_ACEOF | ||
24244 | /* confdefs.h. */ | ||
24245 | _ACEOF | ||
24246 | cat confdefs.h >>conftest.$ac_ext | ||
24247 | cat >>conftest.$ac_ext <<_ACEOF | ||
24248 | /* end confdefs.h. */ | ||
24249 | |||
24250 | #include <sys/types.h> | ||
24251 | #include <sys/socket.h> | ||
24252 | |||
24253 | int | ||
24254 | main () | ||
24255 | { | ||
24256 | struct sockaddr_storage s; s.__ss_family = 1; | ||
24257 | ; | ||
24258 | return 0; | ||
24259 | } | ||
24260 | _ACEOF | ||
24261 | rm -f conftest.$ac_objext | ||
24262 | if { (ac_try="$ac_compile" | ||
24263 | case "(($ac_try" in | ||
24264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24265 | *) ac_try_echo=$ac_try;; | ||
24266 | esac | ||
24267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24268 | (eval "$ac_compile") 2>conftest.er1 | ||
24269 | ac_status=$? | ||
24270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24271 | rm -f conftest.er1 | ||
24272 | cat conftest.err >&5 | ||
24273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24274 | (exit $ac_status); } && { | ||
24275 | test -z "$ac_c_werror_flag" || | ||
24276 | test ! -s conftest.err | ||
24277 | } && test -s conftest.$ac_objext; then | ||
24278 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
24279 | else | ||
24280 | echo "$as_me: failed program was:" >&5 | ||
24281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24282 | |||
24283 | ac_cv_have___ss_family_in_struct_ss="no" | ||
24284 | |||
24285 | fi | ||
24286 | |||
24287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24288 | |||
24289 | fi | ||
24290 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
24291 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
24292 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
24293 | |||
24294 | cat >>confdefs.h <<\_ACEOF | ||
24295 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
24296 | _ACEOF | ||
24297 | |||
24298 | fi | ||
24299 | |||
24300 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
24301 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
24302 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
24303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24304 | else | ||
24305 | |||
24306 | cat >conftest.$ac_ext <<_ACEOF | ||
24307 | /* confdefs.h. */ | ||
24308 | _ACEOF | ||
24309 | cat confdefs.h >>conftest.$ac_ext | ||
24310 | cat >>conftest.$ac_ext <<_ACEOF | ||
24311 | /* end confdefs.h. */ | ||
24312 | |||
24313 | #include <pwd.h> | ||
24314 | |||
24315 | int | ||
24316 | main () | ||
24317 | { | ||
24318 | struct passwd p; p.pw_class = 0; | ||
24319 | ; | ||
24320 | return 0; | ||
24321 | } | ||
24322 | _ACEOF | ||
24323 | rm -f conftest.$ac_objext | ||
24324 | if { (ac_try="$ac_compile" | ||
24325 | case "(($ac_try" in | ||
24326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24327 | *) ac_try_echo=$ac_try;; | ||
24328 | esac | ||
24329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24330 | (eval "$ac_compile") 2>conftest.er1 | ||
24331 | ac_status=$? | ||
24332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24333 | rm -f conftest.er1 | ||
24334 | cat conftest.err >&5 | ||
24335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24336 | (exit $ac_status); } && { | ||
24337 | test -z "$ac_c_werror_flag" || | ||
24338 | test ! -s conftest.err | ||
24339 | } && test -s conftest.$ac_objext; then | ||
24340 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
24341 | else | ||
24342 | echo "$as_me: failed program was:" >&5 | ||
24343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24344 | |||
24345 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
24346 | |||
24347 | fi | ||
24348 | |||
24349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24350 | |||
24351 | fi | ||
24352 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
24353 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
24354 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
24355 | |||
24356 | cat >>confdefs.h <<\_ACEOF | ||
24357 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
24358 | _ACEOF | ||
24359 | |||
24360 | fi | ||
24361 | |||
24362 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
24363 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
24364 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
24365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24366 | else | ||
24367 | |||
24368 | cat >conftest.$ac_ext <<_ACEOF | ||
24369 | /* confdefs.h. */ | ||
24370 | _ACEOF | ||
24371 | cat confdefs.h >>conftest.$ac_ext | ||
24372 | cat >>conftest.$ac_ext <<_ACEOF | ||
24373 | /* end confdefs.h. */ | ||
24374 | |||
24375 | #include <pwd.h> | ||
24376 | |||
24377 | int | ||
24378 | main () | ||
24379 | { | ||
24380 | struct passwd p; p.pw_expire = 0; | ||
24381 | ; | ||
24382 | return 0; | ||
24383 | } | ||
24384 | _ACEOF | ||
24385 | rm -f conftest.$ac_objext | ||
24386 | if { (ac_try="$ac_compile" | ||
24387 | case "(($ac_try" in | ||
24388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24389 | *) ac_try_echo=$ac_try;; | ||
24390 | esac | ||
24391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24392 | (eval "$ac_compile") 2>conftest.er1 | ||
24393 | ac_status=$? | ||
24394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24395 | rm -f conftest.er1 | ||
24396 | cat conftest.err >&5 | ||
24397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24398 | (exit $ac_status); } && { | ||
24399 | test -z "$ac_c_werror_flag" || | ||
24400 | test ! -s conftest.err | ||
24401 | } && test -s conftest.$ac_objext; then | ||
24402 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
24403 | else | ||
24404 | echo "$as_me: failed program was:" >&5 | ||
24405 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24406 | |||
24407 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
24408 | |||
24409 | fi | ||
24410 | |||
24411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24412 | |||
24413 | fi | ||
24414 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
24415 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
24416 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
24417 | |||
24418 | cat >>confdefs.h <<\_ACEOF | ||
24419 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
24420 | _ACEOF | ||
24421 | |||
24422 | fi | ||
24423 | |||
24424 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
24425 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
24426 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
24427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24428 | else | ||
24429 | |||
24430 | cat >conftest.$ac_ext <<_ACEOF | ||
24431 | /* confdefs.h. */ | ||
24432 | _ACEOF | ||
24433 | cat confdefs.h >>conftest.$ac_ext | ||
24434 | cat >>conftest.$ac_ext <<_ACEOF | ||
24435 | /* end confdefs.h. */ | ||
24436 | |||
24437 | #include <pwd.h> | ||
24438 | |||
24439 | int | ||
24440 | main () | ||
24441 | { | ||
24442 | struct passwd p; p.pw_change = 0; | ||
24443 | ; | ||
24444 | return 0; | ||
24445 | } | ||
24446 | _ACEOF | ||
24447 | rm -f conftest.$ac_objext | ||
24448 | if { (ac_try="$ac_compile" | ||
24449 | case "(($ac_try" in | ||
24450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24451 | *) ac_try_echo=$ac_try;; | ||
24452 | esac | ||
24453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24454 | (eval "$ac_compile") 2>conftest.er1 | ||
24455 | ac_status=$? | ||
24456 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24457 | rm -f conftest.er1 | ||
24458 | cat conftest.err >&5 | ||
24459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24460 | (exit $ac_status); } && { | ||
24461 | test -z "$ac_c_werror_flag" || | ||
24462 | test ! -s conftest.err | ||
24463 | } && test -s conftest.$ac_objext; then | ||
24464 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
24465 | else | ||
24466 | echo "$as_me: failed program was:" >&5 | ||
24467 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24468 | |||
24469 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
24470 | |||
24471 | fi | ||
24472 | |||
24473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24474 | |||
24475 | fi | ||
24476 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
24477 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
24478 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
24479 | |||
24480 | cat >>confdefs.h <<\_ACEOF | ||
24481 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
24482 | _ACEOF | ||
24483 | |||
24484 | fi | ||
24485 | |||
24486 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
24487 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
24488 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
24489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24490 | else | ||
24491 | |||
24492 | cat >conftest.$ac_ext <<_ACEOF | ||
24493 | |||
24494 | #include <sys/types.h> | ||
24495 | #include <sys/socket.h> | ||
24496 | #include <sys/uio.h> | ||
24497 | int main() { | ||
24498 | #ifdef msg_accrights | ||
24499 | #error "msg_accrights is a macro" | ||
24500 | exit(1); | ||
24501 | #endif | ||
24502 | struct msghdr m; | ||
24503 | m.msg_accrights = 0; | ||
24504 | exit(0); | ||
24505 | } | ||
24506 | |||
24507 | _ACEOF | ||
24508 | rm -f conftest.$ac_objext | ||
24509 | if { (ac_try="$ac_compile" | ||
24510 | case "(($ac_try" in | ||
24511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24512 | *) ac_try_echo=$ac_try;; | ||
24513 | esac | ||
24514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24515 | (eval "$ac_compile") 2>conftest.er1 | ||
24516 | ac_status=$? | ||
24517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24518 | rm -f conftest.er1 | ||
24519 | cat conftest.err >&5 | ||
24520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24521 | (exit $ac_status); } && { | ||
24522 | test -z "$ac_c_werror_flag" || | ||
24523 | test ! -s conftest.err | ||
24524 | } && test -s conftest.$ac_objext; then | ||
24525 | ac_cv_have_accrights_in_msghdr="yes" | ||
24526 | else | ||
24527 | echo "$as_me: failed program was:" >&5 | ||
24528 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24529 | |||
24530 | ac_cv_have_accrights_in_msghdr="no" | ||
24531 | |||
24532 | fi | ||
24533 | |||
24534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24535 | |||
24536 | fi | ||
24537 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
24538 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
24539 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
24540 | |||
24541 | cat >>confdefs.h <<\_ACEOF | ||
24542 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
24543 | _ACEOF | ||
24544 | |||
24545 | fi | ||
24546 | |||
24547 | { echo "$as_me:$LINENO: checking if f_fsid has val members" >&5 | ||
24548 | echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; } | ||
24549 | cat >conftest.$ac_ext <<_ACEOF | ||
24550 | /* confdefs.h. */ | ||
24551 | _ACEOF | ||
24552 | cat confdefs.h >>conftest.$ac_ext | ||
24553 | cat >>conftest.$ac_ext <<_ACEOF | ||
24554 | /* end confdefs.h. */ | ||
24555 | |||
24556 | #include <sys/types.h> | ||
24557 | #include <sys/statvfs.h> | ||
24558 | int | ||
24559 | main () | ||
24560 | { | ||
24561 | struct fsid_t t; t.val[0] = 0; | ||
24562 | ; | ||
24563 | return 0; | ||
24564 | } | ||
24565 | _ACEOF | ||
24566 | rm -f conftest.$ac_objext | ||
24567 | if { (ac_try="$ac_compile" | ||
24568 | case "(($ac_try" in | ||
24569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24570 | *) ac_try_echo=$ac_try;; | ||
24571 | esac | ||
24572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24573 | (eval "$ac_compile") 2>conftest.er1 | ||
24574 | ac_status=$? | ||
24575 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24576 | rm -f conftest.er1 | ||
24577 | cat conftest.err >&5 | ||
24578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24579 | (exit $ac_status); } && { | ||
24580 | test -z "$ac_c_werror_flag" || | ||
24581 | test ! -s conftest.err | ||
24582 | } && test -s conftest.$ac_objext; then | ||
24583 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24584 | echo "${ECHO_T}yes" >&6; } | ||
24585 | |||
24586 | cat >>confdefs.h <<\_ACEOF | ||
24587 | #define FSID_HAS_VAL 1 | ||
24588 | _ACEOF | ||
24589 | |||
24590 | else | ||
24591 | echo "$as_me: failed program was:" >&5 | ||
24592 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24593 | |||
24594 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24595 | echo "${ECHO_T}no" >&6; } | ||
24596 | |||
24597 | fi | ||
24598 | |||
24599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24600 | |||
24601 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
24602 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
24603 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
24604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24605 | else | ||
24606 | |||
24607 | cat >conftest.$ac_ext <<_ACEOF | ||
24608 | |||
24609 | #include <sys/types.h> | ||
24610 | #include <sys/socket.h> | ||
24611 | #include <sys/uio.h> | ||
24612 | int main() { | ||
24613 | #ifdef msg_control | ||
24614 | #error "msg_control is a macro" | ||
24615 | exit(1); | ||
24616 | #endif | ||
24617 | struct msghdr m; | ||
24618 | m.msg_control = 0; | ||
24619 | exit(0); | ||
24620 | } | ||
24621 | |||
24622 | _ACEOF | ||
24623 | rm -f conftest.$ac_objext | ||
24624 | if { (ac_try="$ac_compile" | ||
24625 | case "(($ac_try" in | ||
24626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24627 | *) ac_try_echo=$ac_try;; | ||
24628 | esac | ||
24629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24630 | (eval "$ac_compile") 2>conftest.er1 | ||
24631 | ac_status=$? | ||
24632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24633 | rm -f conftest.er1 | ||
24634 | cat conftest.err >&5 | ||
24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24636 | (exit $ac_status); } && { | ||
24637 | test -z "$ac_c_werror_flag" || | ||
24638 | test ! -s conftest.err | ||
24639 | } && test -s conftest.$ac_objext; then | ||
24640 | ac_cv_have_control_in_msghdr="yes" | ||
24641 | else | ||
24642 | echo "$as_me: failed program was:" >&5 | ||
24643 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24644 | |||
24645 | ac_cv_have_control_in_msghdr="no" | ||
24646 | |||
24647 | fi | ||
24648 | |||
24649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24650 | |||
24651 | fi | ||
24652 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
24653 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
24654 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
24655 | |||
24656 | cat >>confdefs.h <<\_ACEOF | ||
24657 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
24658 | _ACEOF | ||
24659 | |||
24660 | fi | ||
24661 | |||
24662 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
24663 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
24664 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
24665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24666 | else | ||
24667 | |||
24668 | cat >conftest.$ac_ext <<_ACEOF | ||
24669 | /* confdefs.h. */ | ||
24670 | _ACEOF | ||
24671 | cat confdefs.h >>conftest.$ac_ext | ||
24672 | cat >>conftest.$ac_ext <<_ACEOF | ||
24673 | /* end confdefs.h. */ | ||
24674 | |||
24675 | int | ||
24676 | main () | ||
24677 | { | ||
24678 | extern char *__progname; printf("%s", __progname); | ||
24679 | ; | ||
24680 | return 0; | ||
24681 | } | ||
24682 | _ACEOF | ||
24683 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24684 | if { (ac_try="$ac_link" | ||
24685 | case "(($ac_try" in | ||
24686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24687 | *) ac_try_echo=$ac_try;; | ||
24688 | esac | ||
24689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24690 | (eval "$ac_link") 2>conftest.er1 | ||
24691 | ac_status=$? | ||
24692 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24693 | rm -f conftest.er1 | ||
24694 | cat conftest.err >&5 | ||
24695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24696 | (exit $ac_status); } && { | ||
24697 | test -z "$ac_c_werror_flag" || | ||
24698 | test ! -s conftest.err | ||
24699 | } && test -s conftest$ac_exeext && | ||
24700 | $as_test_x conftest$ac_exeext; then | ||
24701 | ac_cv_libc_defines___progname="yes" | ||
24702 | else | ||
24703 | echo "$as_me: failed program was:" >&5 | ||
24704 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24705 | |||
24706 | ac_cv_libc_defines___progname="no" | ||
24707 | |||
24708 | fi | ||
24709 | |||
24710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24711 | conftest$ac_exeext conftest.$ac_ext | ||
24712 | |||
24713 | fi | ||
24714 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
24715 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
24716 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
24717 | |||
24718 | cat >>confdefs.h <<\_ACEOF | ||
24719 | #define HAVE___PROGNAME 1 | ||
24720 | _ACEOF | ||
24721 | |||
24722 | fi | ||
24723 | |||
24724 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
24725 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
24726 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
24727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24728 | else | ||
24729 | |||
24730 | cat >conftest.$ac_ext <<_ACEOF | ||
24731 | /* confdefs.h. */ | ||
24732 | _ACEOF | ||
24733 | cat confdefs.h >>conftest.$ac_ext | ||
24734 | cat >>conftest.$ac_ext <<_ACEOF | ||
24735 | /* end confdefs.h. */ | ||
24736 | |||
24737 | #include <stdio.h> | ||
24738 | |||
24739 | int | ||
24740 | main () | ||
24741 | { | ||
24742 | printf("%s", __FUNCTION__); | ||
24743 | ; | ||
24744 | return 0; | ||
24745 | } | ||
24746 | _ACEOF | ||
24747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24748 | if { (ac_try="$ac_link" | ||
24749 | case "(($ac_try" in | ||
24750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24751 | *) ac_try_echo=$ac_try;; | ||
24752 | esac | ||
24753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24754 | (eval "$ac_link") 2>conftest.er1 | ||
24755 | ac_status=$? | ||
24756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24757 | rm -f conftest.er1 | ||
24758 | cat conftest.err >&5 | ||
24759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24760 | (exit $ac_status); } && { | ||
24761 | test -z "$ac_c_werror_flag" || | ||
24762 | test ! -s conftest.err | ||
24763 | } && test -s conftest$ac_exeext && | ||
24764 | $as_test_x conftest$ac_exeext; then | ||
24765 | ac_cv_cc_implements___FUNCTION__="yes" | ||
24766 | else | ||
24767 | echo "$as_me: failed program was:" >&5 | ||
24768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24769 | |||
24770 | ac_cv_cc_implements___FUNCTION__="no" | ||
24771 | |||
24772 | fi | ||
24773 | |||
24774 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24775 | conftest$ac_exeext conftest.$ac_ext | ||
24776 | |||
24777 | fi | ||
24778 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
24779 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
24780 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
24781 | |||
24782 | cat >>confdefs.h <<\_ACEOF | ||
24783 | #define HAVE___FUNCTION__ 1 | ||
24784 | _ACEOF | ||
24785 | |||
24786 | fi | ||
24787 | |||
24788 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
24789 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
24790 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
24791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24792 | else | ||
24793 | |||
24794 | cat >conftest.$ac_ext <<_ACEOF | ||
24795 | /* confdefs.h. */ | ||
24796 | _ACEOF | ||
24797 | cat confdefs.h >>conftest.$ac_ext | ||
24798 | cat >>conftest.$ac_ext <<_ACEOF | ||
24799 | /* end confdefs.h. */ | ||
24800 | |||
24801 | #include <stdio.h> | ||
24802 | |||
24803 | int | ||
24804 | main () | ||
24805 | { | ||
24806 | printf("%s", __func__); | ||
24807 | ; | ||
24808 | return 0; | ||
24809 | } | ||
24810 | _ACEOF | ||
24811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24812 | if { (ac_try="$ac_link" | ||
24813 | case "(($ac_try" in | ||
24814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24815 | *) ac_try_echo=$ac_try;; | ||
24816 | esac | ||
24817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24818 | (eval "$ac_link") 2>conftest.er1 | ||
24819 | ac_status=$? | ||
24820 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24821 | rm -f conftest.er1 | ||
24822 | cat conftest.err >&5 | ||
24823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24824 | (exit $ac_status); } && { | ||
24825 | test -z "$ac_c_werror_flag" || | ||
24826 | test ! -s conftest.err | ||
24827 | } && test -s conftest$ac_exeext && | ||
24828 | $as_test_x conftest$ac_exeext; then | ||
24829 | ac_cv_cc_implements___func__="yes" | ||
24830 | else | ||
24831 | echo "$as_me: failed program was:" >&5 | ||
24832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24833 | |||
24834 | ac_cv_cc_implements___func__="no" | ||
24835 | |||
24836 | fi | ||
24837 | |||
24838 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24839 | conftest$ac_exeext conftest.$ac_ext | ||
24840 | |||
24841 | fi | ||
24842 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
24843 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
24844 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
24845 | |||
24846 | cat >>confdefs.h <<\_ACEOF | ||
24847 | #define HAVE___func__ 1 | ||
24848 | _ACEOF | ||
24849 | |||
24850 | fi | ||
24851 | |||
24852 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
24853 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
24854 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
24855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24856 | else | ||
24857 | |||
24858 | cat >conftest.$ac_ext <<_ACEOF | ||
24859 | /* confdefs.h. */ | ||
24860 | _ACEOF | ||
24861 | cat confdefs.h >>conftest.$ac_ext | ||
24862 | cat >>conftest.$ac_ext <<_ACEOF | ||
24863 | /* end confdefs.h. */ | ||
24864 | #include <stdarg.h> | ||
24865 | va_list x,y; | ||
24866 | int | ||
24867 | main () | ||
24868 | { | ||
24869 | va_copy(x,y); | ||
24870 | ; | ||
24871 | return 0; | ||
24872 | } | ||
24873 | _ACEOF | ||
24874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24875 | if { (ac_try="$ac_link" | ||
24876 | case "(($ac_try" in | ||
24877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24878 | *) ac_try_echo=$ac_try;; | ||
24879 | esac | ||
24880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24881 | (eval "$ac_link") 2>conftest.er1 | ||
24882 | ac_status=$? | ||
24883 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24884 | rm -f conftest.er1 | ||
24885 | cat conftest.err >&5 | ||
24886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24887 | (exit $ac_status); } && { | ||
24888 | test -z "$ac_c_werror_flag" || | ||
24889 | test ! -s conftest.err | ||
24890 | } && test -s conftest$ac_exeext && | ||
24891 | $as_test_x conftest$ac_exeext; then | ||
24892 | ac_cv_have_va_copy="yes" | ||
24893 | else | ||
24894 | echo "$as_me: failed program was:" >&5 | ||
24895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24896 | |||
24897 | ac_cv_have_va_copy="no" | ||
24898 | |||
24899 | fi | ||
24900 | |||
24901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24902 | conftest$ac_exeext conftest.$ac_ext | ||
24903 | |||
24904 | fi | ||
24905 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
24906 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
24907 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
24908 | |||
24909 | cat >>confdefs.h <<\_ACEOF | ||
24910 | #define HAVE_VA_COPY 1 | ||
24911 | _ACEOF | ||
24912 | |||
24913 | fi | ||
24914 | |||
24915 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
24916 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
24917 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
24918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24919 | else | ||
24920 | |||
24921 | cat >conftest.$ac_ext <<_ACEOF | ||
24922 | /* confdefs.h. */ | ||
24923 | _ACEOF | ||
24924 | cat confdefs.h >>conftest.$ac_ext | ||
24925 | cat >>conftest.$ac_ext <<_ACEOF | ||
24926 | /* end confdefs.h. */ | ||
24927 | #include <stdarg.h> | ||
24928 | va_list x,y; | ||
24929 | int | ||
24930 | main () | ||
24931 | { | ||
24932 | __va_copy(x,y); | ||
24933 | ; | ||
24934 | return 0; | ||
24935 | } | ||
24936 | _ACEOF | ||
24937 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24938 | if { (ac_try="$ac_link" | ||
24939 | case "(($ac_try" in | ||
24940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24941 | *) ac_try_echo=$ac_try;; | ||
24942 | esac | ||
24943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24944 | (eval "$ac_link") 2>conftest.er1 | ||
24945 | ac_status=$? | ||
24946 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24947 | rm -f conftest.er1 | ||
24948 | cat conftest.err >&5 | ||
24949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24950 | (exit $ac_status); } && { | ||
24951 | test -z "$ac_c_werror_flag" || | ||
24952 | test ! -s conftest.err | ||
24953 | } && test -s conftest$ac_exeext && | ||
24954 | $as_test_x conftest$ac_exeext; then | ||
24955 | ac_cv_have___va_copy="yes" | ||
24956 | else | ||
24957 | echo "$as_me: failed program was:" >&5 | ||
24958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24959 | |||
24960 | ac_cv_have___va_copy="no" | ||
24961 | |||
24962 | fi | ||
24963 | |||
24964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24965 | conftest$ac_exeext conftest.$ac_ext | ||
24966 | |||
24967 | fi | ||
24968 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
24969 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
24970 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
24971 | |||
24972 | cat >>confdefs.h <<\_ACEOF | ||
24973 | #define HAVE___VA_COPY 1 | ||
24974 | _ACEOF | ||
24975 | |||
24976 | fi | ||
24977 | |||
24978 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
24979 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
24980 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
24981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24982 | else | ||
24983 | |||
24984 | cat >conftest.$ac_ext <<_ACEOF | ||
24985 | /* confdefs.h. */ | ||
24986 | _ACEOF | ||
24987 | cat confdefs.h >>conftest.$ac_ext | ||
24988 | cat >>conftest.$ac_ext <<_ACEOF | ||
24989 | /* end confdefs.h. */ | ||
24990 | |||
24991 | #include <getopt.h> | ||
24992 | |||
24993 | int | ||
24994 | main () | ||
24995 | { | ||
24996 | extern int optreset; optreset = 0; | ||
24997 | ; | ||
24998 | return 0; | ||
24999 | } | ||
25000 | _ACEOF | ||
25001 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25002 | if { (ac_try="$ac_link" | ||
25003 | case "(($ac_try" in | ||
25004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25005 | *) ac_try_echo=$ac_try;; | ||
25006 | esac | ||
25007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25008 | (eval "$ac_link") 2>conftest.er1 | ||
25009 | ac_status=$? | ||
25010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25011 | rm -f conftest.er1 | ||
25012 | cat conftest.err >&5 | ||
25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25014 | (exit $ac_status); } && { | ||
25015 | test -z "$ac_c_werror_flag" || | ||
25016 | test ! -s conftest.err | ||
25017 | } && test -s conftest$ac_exeext && | ||
25018 | $as_test_x conftest$ac_exeext; then | ||
25019 | ac_cv_have_getopt_optreset="yes" | ||
25020 | else | ||
25021 | echo "$as_me: failed program was:" >&5 | ||
25022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25023 | |||
25024 | ac_cv_have_getopt_optreset="no" | ||
25025 | |||
25026 | fi | ||
25027 | |||
25028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25029 | conftest$ac_exeext conftest.$ac_ext | ||
25030 | |||
25031 | fi | ||
25032 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
25033 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
25034 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
25035 | |||
25036 | cat >>confdefs.h <<\_ACEOF | ||
25037 | #define HAVE_GETOPT_OPTRESET 1 | ||
25038 | _ACEOF | ||
25039 | |||
25040 | fi | ||
25041 | |||
25042 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
25043 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
25044 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
25045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25046 | else | ||
25047 | |||
25048 | cat >conftest.$ac_ext <<_ACEOF | ||
25049 | /* confdefs.h. */ | ||
25050 | _ACEOF | ||
25051 | cat confdefs.h >>conftest.$ac_ext | ||
25052 | cat >>conftest.$ac_ext <<_ACEOF | ||
25053 | /* end confdefs.h. */ | ||
25054 | |||
25055 | int | ||
25056 | main () | ||
25057 | { | ||
25058 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
25059 | ; | ||
25060 | return 0; | ||
25061 | } | ||
25062 | _ACEOF | ||
25063 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25064 | if { (ac_try="$ac_link" | ||
25065 | case "(($ac_try" in | ||
25066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25067 | *) ac_try_echo=$ac_try;; | ||
25068 | esac | ||
25069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25070 | (eval "$ac_link") 2>conftest.er1 | ||
25071 | ac_status=$? | ||
25072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25073 | rm -f conftest.er1 | ||
25074 | cat conftest.err >&5 | ||
25075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25076 | (exit $ac_status); } && { | ||
25077 | test -z "$ac_c_werror_flag" || | ||
25078 | test ! -s conftest.err | ||
25079 | } && test -s conftest$ac_exeext && | ||
25080 | $as_test_x conftest$ac_exeext; then | ||
25081 | ac_cv_libc_defines_sys_errlist="yes" | ||
25082 | else | ||
25083 | echo "$as_me: failed program was:" >&5 | ||
25084 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25085 | |||
25086 | ac_cv_libc_defines_sys_errlist="no" | ||
25087 | |||
25088 | fi | ||
25089 | |||
25090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25091 | conftest$ac_exeext conftest.$ac_ext | ||
25092 | |||
25093 | fi | ||
25094 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
25095 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
25096 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
25097 | |||
25098 | cat >>confdefs.h <<\_ACEOF | ||
25099 | #define HAVE_SYS_ERRLIST 1 | ||
25100 | _ACEOF | ||
25101 | |||
25102 | fi | ||
25103 | |||
25104 | |||
25105 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
25106 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
25107 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
25108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25109 | else | ||
25110 | |||
25111 | cat >conftest.$ac_ext <<_ACEOF | ||
25112 | /* confdefs.h. */ | ||
25113 | _ACEOF | ||
25114 | cat confdefs.h >>conftest.$ac_ext | ||
25115 | cat >>conftest.$ac_ext <<_ACEOF | ||
25116 | /* end confdefs.h. */ | ||
25117 | |||
25118 | int | ||
25119 | main () | ||
25120 | { | ||
25121 | extern int sys_nerr; printf("%i", sys_nerr); | ||
25122 | ; | ||
25123 | return 0; | ||
25124 | } | ||
25125 | _ACEOF | ||
25126 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25127 | if { (ac_try="$ac_link" | ||
25128 | case "(($ac_try" in | ||
25129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25130 | *) ac_try_echo=$ac_try;; | ||
25131 | esac | ||
25132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25133 | (eval "$ac_link") 2>conftest.er1 | ||
25134 | ac_status=$? | ||
25135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25136 | rm -f conftest.er1 | ||
25137 | cat conftest.err >&5 | ||
25138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25139 | (exit $ac_status); } && { | ||
25140 | test -z "$ac_c_werror_flag" || | ||
25141 | test ! -s conftest.err | ||
25142 | } && test -s conftest$ac_exeext && | ||
25143 | $as_test_x conftest$ac_exeext; then | ||
25144 | ac_cv_libc_defines_sys_nerr="yes" | ||
25145 | else | ||
25146 | echo "$as_me: failed program was:" >&5 | ||
25147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25148 | |||
25149 | ac_cv_libc_defines_sys_nerr="no" | ||
25150 | |||
25151 | fi | ||
25152 | |||
25153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25154 | conftest$ac_exeext conftest.$ac_ext | ||
25155 | |||
25156 | fi | ||
25157 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
25158 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
25159 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
25160 | |||
25161 | cat >>confdefs.h <<\_ACEOF | ||
25162 | #define HAVE_SYS_NERR 1 | ||
25163 | _ACEOF | ||
25164 | |||
25165 | fi | ||
25166 | |||
25167 | SCARD_MSG="no" | ||
25168 | # Check whether user wants sectok support | ||
25169 | |||
25170 | # Check whether --with-sectok was given. | ||
25171 | if test "${with_sectok+set}" = set; then | ||
25172 | withval=$with_sectok; | ||
25173 | if test "x$withval" != "xno" ; then | ||
25174 | if test "x$withval" != "xyes" ; then | ||
25175 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
25176 | LDFLAGS="$LDFLAGS -L${withval}" | ||
25177 | if test ! -z "$need_dash_r" ; then | ||
25178 | LDFLAGS="$LDFLAGS -R${withval}" | ||
25179 | fi | ||
25180 | if test ! -z "$blibpath" ; then | ||
25181 | blibpath="$blibpath:${withval}" | ||
25182 | fi | ||
25183 | fi | ||
25184 | |||
25185 | for ac_header in sectok.h | ||
25186 | do | ||
25187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25189 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
25191 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25193 | fi | ||
25194 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
25195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25196 | echo "${ECHO_T}$ac_res" >&6; } | ||
25197 | else | ||
25198 | # Is the header compilable? | ||
25199 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
25200 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
25201 | cat >conftest.$ac_ext <<_ACEOF | ||
25202 | /* confdefs.h. */ | ||
25203 | _ACEOF | ||
25204 | cat confdefs.h >>conftest.$ac_ext | ||
25205 | cat >>conftest.$ac_ext <<_ACEOF | ||
25206 | /* end confdefs.h. */ | ||
25207 | $ac_includes_default | ||
25208 | #include <$ac_header> | ||
25209 | _ACEOF | ||
25210 | rm -f conftest.$ac_objext | ||
25211 | if { (ac_try="$ac_compile" | ||
25212 | case "(($ac_try" in | ||
25213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25214 | *) ac_try_echo=$ac_try;; | ||
25215 | esac | ||
25216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25217 | (eval "$ac_compile") 2>conftest.er1 | ||
25218 | ac_status=$? | ||
25219 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25220 | rm -f conftest.er1 | ||
25221 | cat conftest.err >&5 | ||
25222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25223 | (exit $ac_status); } && { | ||
25224 | test -z "$ac_c_werror_flag" || | ||
25225 | test ! -s conftest.err | ||
25226 | } && test -s conftest.$ac_objext; then | ||
25227 | ac_header_compiler=yes | ||
25228 | else | ||
25229 | echo "$as_me: failed program was:" >&5 | ||
25230 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25231 | |||
25232 | ac_header_compiler=no | ||
25233 | fi | ||
25234 | |||
25235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25236 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25237 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
25238 | |||
25239 | # Is the header present? | ||
25240 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
25241 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
25242 | cat >conftest.$ac_ext <<_ACEOF | ||
25243 | /* confdefs.h. */ | ||
25244 | _ACEOF | ||
25245 | cat confdefs.h >>conftest.$ac_ext | ||
25246 | cat >>conftest.$ac_ext <<_ACEOF | ||
25247 | /* end confdefs.h. */ | ||
25248 | #include <$ac_header> | ||
25249 | _ACEOF | ||
25250 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
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_cpp conftest.$ac_ext") 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); } >/dev/null && { | ||
25263 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
25264 | test ! -s conftest.err | ||
25265 | }; then | ||
25266 | ac_header_preproc=yes | ||
25267 | else | ||
25268 | echo "$as_me: failed program was:" >&5 | ||
25269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25270 | |||
25271 | ac_header_preproc=no | ||
25272 | fi | ||
25273 | |||
25274 | rm -f conftest.err conftest.$ac_ext | ||
25275 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25276 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
25277 | |||
25278 | # So? What about this header? | ||
25279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25280 | yes:no: ) | ||
25281 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25282 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
25284 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
25285 | ac_header_preproc=yes | ||
25286 | ;; | ||
25287 | no:yes:* ) | ||
25288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
25289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
25290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
25291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
25292 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
25293 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
25294 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
25295 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
25297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
25298 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
25299 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
25300 | ( cat <<\_ASBOX | ||
25301 | ## ------------------------------------------- ## | ||
25302 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25303 | ## ------------------------------------------- ## | ||
25304 | _ASBOX | ||
25305 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
25306 | ;; | ||
25307 | esac | ||
25308 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
25310 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25312 | else | ||
25313 | eval "$as_ac_Header=\$ac_header_preproc" | ||
25314 | fi | ||
25315 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
25316 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25317 | echo "${ECHO_T}$ac_res" >&6; } | ||
25318 | |||
25319 | fi | ||
25320 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
25321 | cat >>confdefs.h <<_ACEOF | ||
25322 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25323 | _ACEOF | ||
25324 | |||
25325 | fi | ||
25326 | |||
25327 | done | ||
25328 | |||
25329 | if test "$ac_cv_header_sectok_h" != yes; then | ||
25330 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
25331 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
25332 | { (exit 1); exit 1; }; } | ||
25333 | fi | ||
25334 | |||
25335 | { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
25336 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; } | ||
25337 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
25338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25339 | else | ||
25340 | ac_check_lib_save_LIBS=$LIBS | ||
25341 | LIBS="-lsectok $LIBS" | ||
25342 | cat >conftest.$ac_ext <<_ACEOF | ||
25343 | /* confdefs.h. */ | ||
25344 | _ACEOF | ||
25345 | cat confdefs.h >>conftest.$ac_ext | ||
25346 | cat >>conftest.$ac_ext <<_ACEOF | ||
25347 | /* end confdefs.h. */ | ||
25348 | |||
25349 | /* Override any GCC internal prototype to avoid an error. | ||
25350 | Use char because int might match the return type of a GCC | ||
25351 | builtin and then its argument prototype would still apply. */ | ||
25352 | #ifdef __cplusplus | ||
25353 | extern "C" | ||
25354 | #endif | ||
25355 | char sectok_open (); | ||
25356 | int | ||
25357 | main () | ||
25358 | { | ||
25359 | return sectok_open (); | ||
25360 | ; | ||
25361 | return 0; | ||
25362 | } | ||
25363 | _ACEOF | ||
25364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25365 | if { (ac_try="$ac_link" | ||
25366 | case "(($ac_try" in | ||
25367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25368 | *) ac_try_echo=$ac_try;; | ||
25369 | esac | ||
25370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25371 | (eval "$ac_link") 2>conftest.er1 | ||
25372 | ac_status=$? | ||
25373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25374 | rm -f conftest.er1 | ||
25375 | cat conftest.err >&5 | ||
25376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25377 | (exit $ac_status); } && { | ||
25378 | test -z "$ac_c_werror_flag" || | ||
25379 | test ! -s conftest.err | ||
25380 | } && test -s conftest$ac_exeext && | ||
25381 | $as_test_x conftest$ac_exeext; then | ||
25382 | ac_cv_lib_sectok_sectok_open=yes | ||
25383 | else | ||
25384 | echo "$as_me: failed program was:" >&5 | ||
25385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25386 | |||
25387 | ac_cv_lib_sectok_sectok_open=no | ||
25388 | fi | ||
25389 | |||
25390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25391 | conftest$ac_exeext conftest.$ac_ext | ||
25392 | LIBS=$ac_check_lib_save_LIBS | ||
25393 | fi | ||
25394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
25395 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; } | ||
25396 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
25397 | cat >>confdefs.h <<_ACEOF | ||
25398 | #define HAVE_LIBSECTOK 1 | ||
25399 | _ACEOF | ||
25400 | |||
25401 | LIBS="-lsectok $LIBS" | ||
25402 | |||
25403 | fi | ||
25404 | |||
25405 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
25406 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
25407 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
25408 | { (exit 1); exit 1; }; } | ||
25409 | fi | ||
25410 | |||
25411 | cat >>confdefs.h <<\_ACEOF | ||
25412 | #define SMARTCARD 1 | ||
25413 | _ACEOF | ||
25414 | |||
25415 | |||
25416 | cat >>confdefs.h <<\_ACEOF | ||
25417 | #define USE_SECTOK 1 | ||
25418 | _ACEOF | ||
25419 | |||
25420 | SCARD_MSG="yes, using sectok" | ||
25421 | fi | ||
25422 | |||
25423 | |||
25424 | fi | ||
25425 | |||
25426 | |||
25427 | # Check whether user wants OpenSC support | ||
25428 | OPENSC_CONFIG="no" | ||
25429 | |||
25430 | # Check whether --with-opensc was given. | ||
25431 | if test "${with_opensc+set}" = set; then | ||
25432 | withval=$with_opensc; | ||
25433 | if test "x$withval" != "xno" ; then | ||
25434 | if test "x$withval" != "xyes" ; then | ||
25435 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
25436 | else | ||
25437 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
25438 | set dummy opensc-config; ac_word=$2 | ||
25439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
25440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
25441 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
25442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25443 | else | ||
25444 | case $OPENSC_CONFIG in | ||
25445 | [\\/]* | ?:[\\/]*) | ||
25446 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
25447 | ;; | ||
25448 | *) | ||
25449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25450 | for as_dir in $PATH | ||
25451 | do | ||
25452 | IFS=$as_save_IFS | ||
25453 | test -z "$as_dir" && as_dir=. | ||
25454 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
25455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25456 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
25457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25458 | break 2 | ||
25459 | fi | ||
25460 | done | ||
25461 | done | ||
25462 | IFS=$as_save_IFS | ||
25463 | |||
25464 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
25465 | ;; | ||
25466 | esac | ||
25467 | fi | ||
25468 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
25469 | if test -n "$OPENSC_CONFIG"; then | ||
25470 | { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
25471 | echo "${ECHO_T}$OPENSC_CONFIG" >&6; } | ||
25472 | else | ||
25473 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25474 | echo "${ECHO_T}no" >&6; } | ||
25475 | fi | ||
25476 | |||
25477 | |||
25478 | fi | ||
25479 | if test "$OPENSC_CONFIG" != "no"; then | ||
25480 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
25481 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
25482 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
25483 | LIBS="$LIBS $LIBOPENSC_LIBS" | ||
25484 | cat >>confdefs.h <<\_ACEOF | ||
25485 | #define SMARTCARD 1 | ||
25486 | _ACEOF | ||
25487 | |||
25488 | |||
25489 | cat >>confdefs.h <<\_ACEOF | ||
25490 | #define USE_OPENSC 1 | ||
25491 | _ACEOF | ||
25492 | |||
25493 | SCARD_MSG="yes, using OpenSC" | ||
25494 | fi | ||
25495 | fi | ||
25496 | |||
25497 | |||
25498 | fi | ||
25499 | |||
25500 | |||
25501 | # Check libraries needed by DNS fingerprint support | ||
25502 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
25503 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
25504 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25506 | else | ||
25507 | ac_func_search_save_LIBS=$LIBS | ||
25508 | cat >conftest.$ac_ext <<_ACEOF | ||
25509 | /* confdefs.h. */ | ||
25510 | _ACEOF | ||
25511 | cat confdefs.h >>conftest.$ac_ext | ||
25512 | cat >>conftest.$ac_ext <<_ACEOF | ||
25513 | /* end confdefs.h. */ | ||
25514 | |||
25515 | /* Override any GCC internal prototype to avoid an error. | ||
25516 | Use char because int might match the return type of a GCC | ||
25517 | builtin and then its argument prototype would still apply. */ | ||
25518 | #ifdef __cplusplus | ||
25519 | extern "C" | ||
25520 | #endif | ||
25521 | char getrrsetbyname (); | ||
25522 | int | ||
25523 | main () | ||
25524 | { | ||
25525 | return getrrsetbyname (); | ||
25526 | ; | ||
25527 | return 0; | ||
25528 | } | ||
25529 | _ACEOF | ||
25530 | for ac_lib in '' resolv; do | ||
25531 | if test -z "$ac_lib"; then | ||
25532 | ac_res="none required" | ||
25533 | else | ||
25534 | ac_res=-l$ac_lib | ||
25535 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25536 | fi | ||
25537 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25538 | if { (ac_try="$ac_link" | ||
25539 | case "(($ac_try" in | ||
25540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25541 | *) ac_try_echo=$ac_try;; | ||
25542 | esac | ||
25543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25544 | (eval "$ac_link") 2>conftest.er1 | ||
25545 | ac_status=$? | ||
25546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25547 | rm -f conftest.er1 | ||
25548 | cat conftest.err >&5 | ||
25549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25550 | (exit $ac_status); } && { | ||
25551 | test -z "$ac_c_werror_flag" || | ||
25552 | test ! -s conftest.err | ||
25553 | } && test -s conftest$ac_exeext && | ||
25554 | $as_test_x conftest$ac_exeext; then | ||
25555 | ac_cv_search_getrrsetbyname=$ac_res | ||
25556 | else | ||
25557 | echo "$as_me: failed program was:" >&5 | ||
25558 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25559 | |||
25560 | |||
25561 | fi | ||
25562 | |||
25563 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25564 | conftest$ac_exeext | ||
25565 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25566 | break | ||
25567 | fi | ||
25568 | done | ||
25569 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25570 | : | ||
25571 | else | ||
25572 | ac_cv_search_getrrsetbyname=no | ||
25573 | fi | ||
25574 | rm conftest.$ac_ext | ||
25575 | LIBS=$ac_func_search_save_LIBS | ||
25576 | fi | ||
25577 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
25578 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
25579 | ac_res=$ac_cv_search_getrrsetbyname | ||
25580 | if test "$ac_res" != no; then | ||
25581 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25582 | |||
25583 | cat >>confdefs.h <<\_ACEOF | ||
25584 | #define HAVE_GETRRSETBYNAME 1 | ||
25585 | _ACEOF | ||
25586 | |||
25587 | else | ||
25588 | |||
25589 | # Needed by our getrrsetbyname() | ||
25590 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
25591 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
25592 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25594 | else | ||
25595 | ac_func_search_save_LIBS=$LIBS | ||
25596 | cat >conftest.$ac_ext <<_ACEOF | ||
25597 | /* confdefs.h. */ | ||
25598 | _ACEOF | ||
25599 | cat confdefs.h >>conftest.$ac_ext | ||
25600 | cat >>conftest.$ac_ext <<_ACEOF | ||
25601 | /* end confdefs.h. */ | ||
25602 | |||
25603 | /* Override any GCC internal prototype to avoid an error. | ||
25604 | Use char because int might match the return type of a GCC | ||
25605 | builtin and then its argument prototype would still apply. */ | ||
25606 | #ifdef __cplusplus | ||
25607 | extern "C" | ||
25608 | #endif | ||
25609 | char res_query (); | ||
25610 | int | ||
25611 | main () | ||
25612 | { | ||
25613 | return res_query (); | ||
25614 | ; | ||
25615 | return 0; | ||
25616 | } | ||
25617 | _ACEOF | ||
25618 | for ac_lib in '' resolv; do | ||
25619 | if test -z "$ac_lib"; then | ||
25620 | ac_res="none required" | ||
25621 | else | ||
25622 | ac_res=-l$ac_lib | ||
25623 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25624 | fi | ||
25625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25626 | if { (ac_try="$ac_link" | ||
25627 | case "(($ac_try" in | ||
25628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25629 | *) ac_try_echo=$ac_try;; | ||
25630 | esac | ||
25631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25632 | (eval "$ac_link") 2>conftest.er1 | ||
25633 | ac_status=$? | ||
25634 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25635 | rm -f conftest.er1 | ||
25636 | cat conftest.err >&5 | ||
25637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25638 | (exit $ac_status); } && { | ||
25639 | test -z "$ac_c_werror_flag" || | ||
25640 | test ! -s conftest.err | ||
25641 | } && test -s conftest$ac_exeext && | ||
25642 | $as_test_x conftest$ac_exeext; then | ||
25643 | ac_cv_search_res_query=$ac_res | ||
25644 | else | ||
25645 | echo "$as_me: failed program was:" >&5 | ||
25646 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25647 | |||
25648 | |||
25649 | fi | ||
25650 | |||
25651 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25652 | conftest$ac_exeext | ||
25653 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25654 | break | ||
25655 | fi | ||
25656 | done | ||
25657 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25658 | : | ||
25659 | else | ||
25660 | ac_cv_search_res_query=no | ||
25661 | fi | ||
25662 | rm conftest.$ac_ext | ||
25663 | LIBS=$ac_func_search_save_LIBS | ||
25664 | fi | ||
25665 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
25666 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
25667 | ac_res=$ac_cv_search_res_query | ||
25668 | if test "$ac_res" != no; then | ||
25669 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25670 | |||
25671 | fi | ||
25672 | |||
25673 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
25674 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
25675 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25677 | else | ||
25678 | ac_func_search_save_LIBS=$LIBS | ||
25679 | cat >conftest.$ac_ext <<_ACEOF | ||
25680 | /* confdefs.h. */ | ||
25681 | _ACEOF | ||
25682 | cat confdefs.h >>conftest.$ac_ext | ||
25683 | cat >>conftest.$ac_ext <<_ACEOF | ||
25684 | /* end confdefs.h. */ | ||
25685 | |||
25686 | /* Override any GCC internal prototype to avoid an error. | ||
25687 | Use char because int might match the return type of a GCC | ||
25688 | builtin and then its argument prototype would still apply. */ | ||
25689 | #ifdef __cplusplus | ||
25690 | extern "C" | ||
25691 | #endif | ||
25692 | char dn_expand (); | ||
25693 | int | ||
25694 | main () | ||
25695 | { | ||
25696 | return dn_expand (); | ||
25697 | ; | ||
25698 | return 0; | ||
25699 | } | ||
25700 | _ACEOF | ||
25701 | for ac_lib in '' resolv; do | ||
25702 | if test -z "$ac_lib"; then | ||
25703 | ac_res="none required" | ||
25704 | else | ||
25705 | ac_res=-l$ac_lib | ||
25706 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25707 | fi | ||
25708 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25709 | if { (ac_try="$ac_link" | ||
25710 | case "(($ac_try" in | ||
25711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25712 | *) ac_try_echo=$ac_try;; | ||
25713 | esac | ||
25714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25715 | (eval "$ac_link") 2>conftest.er1 | ||
25716 | ac_status=$? | ||
25717 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25718 | rm -f conftest.er1 | ||
25719 | cat conftest.err >&5 | ||
25720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25721 | (exit $ac_status); } && { | ||
25722 | test -z "$ac_c_werror_flag" || | ||
25723 | test ! -s conftest.err | ||
25724 | } && test -s conftest$ac_exeext && | ||
25725 | $as_test_x conftest$ac_exeext; then | ||
25726 | ac_cv_search_dn_expand=$ac_res | ||
25727 | else | ||
25728 | echo "$as_me: failed program was:" >&5 | ||
25729 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25730 | |||
25731 | |||
25732 | fi | ||
25733 | |||
25734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25735 | conftest$ac_exeext | ||
25736 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25737 | break | ||
25738 | fi | ||
25739 | done | ||
25740 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25741 | : | ||
25742 | else | ||
25743 | ac_cv_search_dn_expand=no | ||
25744 | fi | ||
25745 | rm conftest.$ac_ext | ||
25746 | LIBS=$ac_func_search_save_LIBS | ||
25747 | fi | ||
25748 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
25749 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
25750 | ac_res=$ac_cv_search_dn_expand | ||
25751 | if test "$ac_res" != no; then | ||
25752 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25753 | |||
25754 | fi | ||
25755 | |||
25756 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
25757 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
25758 | cat >conftest.$ac_ext <<_ACEOF | ||
25759 | /* confdefs.h. */ | ||
25760 | _ACEOF | ||
25761 | cat confdefs.h >>conftest.$ac_ext | ||
25762 | cat >>conftest.$ac_ext <<_ACEOF | ||
25763 | /* end confdefs.h. */ | ||
25764 | |||
25765 | /* Override any GCC internal prototype to avoid an error. | ||
25766 | Use char because int might match the return type of a GCC | ||
25767 | builtin and then its argument prototype would still apply. */ | ||
25768 | #ifdef __cplusplus | ||
25769 | extern "C" | ||
25770 | #endif | ||
25771 | char res_query (); | ||
25772 | int | ||
25773 | main () | ||
25774 | { | ||
25775 | return res_query (); | ||
25776 | ; | ||
25777 | return 0; | ||
25778 | } | ||
25779 | _ACEOF | ||
25780 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25781 | if { (ac_try="$ac_link" | ||
25782 | case "(($ac_try" in | ||
25783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25784 | *) ac_try_echo=$ac_try;; | ||
25785 | esac | ||
25786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25787 | (eval "$ac_link") 2>conftest.er1 | ||
25788 | ac_status=$? | ||
25789 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25790 | rm -f conftest.er1 | ||
25791 | cat conftest.err >&5 | ||
25792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25793 | (exit $ac_status); } && { | ||
25794 | test -z "$ac_c_werror_flag" || | ||
25795 | test ! -s conftest.err | ||
25796 | } && test -s conftest$ac_exeext && | ||
25797 | $as_test_x conftest$ac_exeext; then | ||
25798 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25799 | echo "${ECHO_T}yes" >&6; } | ||
25800 | else | ||
25801 | echo "$as_me: failed program was:" >&5 | ||
25802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25803 | |||
25804 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25805 | echo "${ECHO_T}no" >&6; } | ||
25806 | saved_LIBS="$LIBS" | ||
25807 | LIBS="$LIBS -lresolv" | ||
25808 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
25809 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
25810 | cat >conftest.$ac_ext <<_ACEOF | ||
25811 | |||
25812 | #include <resolv.h> | ||
25813 | int main() | ||
25814 | { | ||
25815 | res_query (0, 0, 0, 0, 0); | ||
25816 | return 0; | ||
25817 | } | ||
25818 | |||
25819 | _ACEOF | ||
25820 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25821 | if { (ac_try="$ac_link" | ||
25822 | case "(($ac_try" in | ||
25823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25824 | *) ac_try_echo=$ac_try;; | ||
25825 | esac | ||
25826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25827 | (eval "$ac_link") 2>conftest.er1 | ||
25828 | ac_status=$? | ||
25829 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25830 | rm -f conftest.er1 | ||
25831 | cat conftest.err >&5 | ||
25832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25833 | (exit $ac_status); } && { | ||
25834 | test -z "$ac_c_werror_flag" || | ||
25835 | test ! -s conftest.err | ||
25836 | } && test -s conftest$ac_exeext && | ||
25837 | $as_test_x conftest$ac_exeext; then | ||
25838 | LIBS="$LIBS -lresolv" | ||
25839 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25840 | echo "${ECHO_T}yes" >&6; } | ||
25841 | else | ||
25842 | echo "$as_me: failed program was:" >&5 | ||
25843 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25844 | |||
25845 | LIBS="$saved_LIBS" | ||
25846 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25847 | echo "${ECHO_T}no" >&6; } | ||
25848 | fi | ||
25849 | |||
25850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25851 | conftest$ac_exeext conftest.$ac_ext | ||
25852 | |||
25853 | fi | ||
25854 | |||
25855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25856 | conftest$ac_exeext conftest.$ac_ext | ||
25857 | |||
25858 | |||
25859 | for ac_func in _getshort _getlong | ||
25860 | do | ||
25861 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
25862 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
25863 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
25864 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25866 | else | ||
25867 | cat >conftest.$ac_ext <<_ACEOF | ||
25868 | /* confdefs.h. */ | ||
25869 | _ACEOF | ||
25870 | cat confdefs.h >>conftest.$ac_ext | ||
25871 | cat >>conftest.$ac_ext <<_ACEOF | ||
25872 | /* end confdefs.h. */ | ||
25873 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
25874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
25875 | #define $ac_func innocuous_$ac_func | ||
25876 | |||
25877 | /* System header to define __stub macros and hopefully few prototypes, | ||
25878 | which can conflict with char $ac_func (); below. | ||
25879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
25880 | <limits.h> exists even on freestanding compilers. */ | ||
25881 | |||
25882 | #ifdef __STDC__ | ||
25883 | # include <limits.h> | ||
25884 | #else | ||
25885 | # include <assert.h> | ||
25886 | #endif | ||
25887 | |||
25888 | #undef $ac_func | ||
25889 | |||
25890 | /* Override any GCC internal prototype to avoid an error. | ||
25891 | Use char because int might match the return type of a GCC | ||
25892 | builtin and then its argument prototype would still apply. */ | ||
25893 | #ifdef __cplusplus | ||
25894 | extern "C" | ||
25895 | #endif | ||
25896 | char $ac_func (); | ||
25897 | /* The GNU C library defines this for functions which it implements | ||
25898 | to always fail with ENOSYS. Some functions are actually named | ||
25899 | something starting with __ and the normal name is an alias. */ | ||
25900 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
25901 | choke me | ||
25902 | #endif | ||
25903 | |||
25904 | int | ||
25905 | main () | ||
25906 | { | ||
25907 | return $ac_func (); | ||
25908 | ; | ||
25909 | return 0; | ||
25910 | } | ||
25911 | _ACEOF | ||
25912 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25913 | if { (ac_try="$ac_link" | ||
25914 | case "(($ac_try" in | ||
25915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25916 | *) ac_try_echo=$ac_try;; | ||
25917 | esac | ||
25918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25919 | (eval "$ac_link") 2>conftest.er1 | ||
25920 | ac_status=$? | ||
25921 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25922 | rm -f conftest.er1 | ||
25923 | cat conftest.err >&5 | ||
25924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25925 | (exit $ac_status); } && { | ||
25926 | test -z "$ac_c_werror_flag" || | ||
25927 | test ! -s conftest.err | ||
25928 | } && test -s conftest$ac_exeext && | ||
25929 | $as_test_x conftest$ac_exeext; then | ||
25930 | eval "$as_ac_var=yes" | ||
25931 | else | ||
25932 | echo "$as_me: failed program was:" >&5 | ||
25933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25934 | |||
25935 | eval "$as_ac_var=no" | ||
25936 | fi | ||
25937 | |||
25938 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25939 | conftest$ac_exeext conftest.$ac_ext | ||
25940 | fi | ||
25941 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
25942 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25943 | echo "${ECHO_T}$ac_res" >&6; } | ||
25944 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
25945 | cat >>confdefs.h <<_ACEOF | ||
25946 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
25947 | _ACEOF | ||
25948 | |||
25949 | fi | ||
25950 | done | ||
25951 | |||
25952 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
25953 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
25954 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
25955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25956 | else | ||
25957 | cat >conftest.$ac_ext <<_ACEOF | ||
25958 | /* confdefs.h. */ | ||
25959 | _ACEOF | ||
25960 | cat confdefs.h >>conftest.$ac_ext | ||
25961 | cat >>conftest.$ac_ext <<_ACEOF | ||
25962 | /* end confdefs.h. */ | ||
25963 | #include <sys/types.h> | ||
25964 | #include <arpa/nameser.h> | ||
25965 | |||
25966 | int | ||
25967 | main () | ||
25968 | { | ||
25969 | #ifndef _getshort | ||
25970 | (void) _getshort; | ||
25971 | #endif | ||
25972 | |||
25973 | ; | ||
25974 | return 0; | ||
25975 | } | ||
25976 | _ACEOF | ||
25977 | rm -f conftest.$ac_objext | ||
25978 | if { (ac_try="$ac_compile" | ||
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_compile") 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_objext; then | ||
25994 | ac_cv_have_decl__getshort=yes | ||
25995 | else | ||
25996 | echo "$as_me: failed program was:" >&5 | ||
25997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25998 | |||
25999 | ac_cv_have_decl__getshort=no | ||
26000 | fi | ||
26001 | |||
26002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26003 | fi | ||
26004 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
26005 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
26006 | if test $ac_cv_have_decl__getshort = yes; then | ||
26007 | |||
26008 | cat >>confdefs.h <<_ACEOF | ||
26009 | #define HAVE_DECL__GETSHORT 1 | ||
26010 | _ACEOF | ||
26011 | |||
26012 | |||
26013 | else | ||
26014 | cat >>confdefs.h <<_ACEOF | ||
26015 | #define HAVE_DECL__GETSHORT 0 | ||
26016 | _ACEOF | ||
26017 | |||
26018 | |||
26019 | fi | ||
26020 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
26021 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
26022 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
26023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26024 | else | ||
26025 | cat >conftest.$ac_ext <<_ACEOF | ||
26026 | /* confdefs.h. */ | ||
26027 | _ACEOF | ||
26028 | cat confdefs.h >>conftest.$ac_ext | ||
26029 | cat >>conftest.$ac_ext <<_ACEOF | ||
26030 | /* end confdefs.h. */ | ||
26031 | #include <sys/types.h> | ||
26032 | #include <arpa/nameser.h> | ||
26033 | |||
26034 | int | ||
26035 | main () | ||
26036 | { | ||
26037 | #ifndef _getlong | ||
26038 | (void) _getlong; | ||
26039 | #endif | ||
26040 | |||
26041 | ; | ||
26042 | return 0; | ||
26043 | } | ||
26044 | _ACEOF | ||
26045 | rm -f conftest.$ac_objext | ||
26046 | if { (ac_try="$ac_compile" | ||
26047 | case "(($ac_try" in | ||
26048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26049 | *) ac_try_echo=$ac_try;; | ||
26050 | esac | ||
26051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26052 | (eval "$ac_compile") 2>conftest.er1 | ||
26053 | ac_status=$? | ||
26054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26055 | rm -f conftest.er1 | ||
26056 | cat conftest.err >&5 | ||
26057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26058 | (exit $ac_status); } && { | ||
26059 | test -z "$ac_c_werror_flag" || | ||
26060 | test ! -s conftest.err | ||
26061 | } && test -s conftest.$ac_objext; then | ||
26062 | ac_cv_have_decl__getlong=yes | ||
26063 | else | ||
26064 | echo "$as_me: failed program was:" >&5 | ||
26065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26066 | |||
26067 | ac_cv_have_decl__getlong=no | ||
26068 | fi | ||
26069 | |||
26070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26071 | fi | ||
26072 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
26073 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
26074 | if test $ac_cv_have_decl__getlong = yes; then | ||
26075 | |||
26076 | cat >>confdefs.h <<_ACEOF | ||
26077 | #define HAVE_DECL__GETLONG 1 | ||
26078 | _ACEOF | ||
26079 | |||
26080 | |||
26081 | else | ||
26082 | cat >>confdefs.h <<_ACEOF | ||
26083 | #define HAVE_DECL__GETLONG 0 | ||
26084 | _ACEOF | ||
26085 | |||
26086 | |||
26087 | fi | ||
26088 | |||
26089 | |||
26090 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
26091 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
26092 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
26093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26094 | else | ||
26095 | cat >conftest.$ac_ext <<_ACEOF | ||
26096 | /* confdefs.h. */ | ||
26097 | _ACEOF | ||
26098 | cat confdefs.h >>conftest.$ac_ext | ||
26099 | cat >>conftest.$ac_ext <<_ACEOF | ||
26100 | /* end confdefs.h. */ | ||
26101 | #include <arpa/nameser.h> | ||
26102 | |||
26103 | int | ||
26104 | main () | ||
26105 | { | ||
26106 | static HEADER ac_aggr; | ||
26107 | if (ac_aggr.ad) | ||
26108 | return 0; | ||
26109 | ; | ||
26110 | return 0; | ||
26111 | } | ||
26112 | _ACEOF | ||
26113 | rm -f conftest.$ac_objext | ||
26114 | if { (ac_try="$ac_compile" | ||
26115 | case "(($ac_try" in | ||
26116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26117 | *) ac_try_echo=$ac_try;; | ||
26118 | esac | ||
26119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26120 | (eval "$ac_compile") 2>conftest.er1 | ||
26121 | ac_status=$? | ||
26122 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26123 | rm -f conftest.er1 | ||
26124 | cat conftest.err >&5 | ||
26125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26126 | (exit $ac_status); } && { | ||
26127 | test -z "$ac_c_werror_flag" || | ||
26128 | test ! -s conftest.err | ||
26129 | } && test -s conftest.$ac_objext; then | ||
26130 | ac_cv_member_HEADER_ad=yes | ||
26131 | else | ||
26132 | echo "$as_me: failed program was:" >&5 | ||
26133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26134 | |||
26135 | cat >conftest.$ac_ext <<_ACEOF | ||
26136 | /* confdefs.h. */ | ||
26137 | _ACEOF | ||
26138 | cat confdefs.h >>conftest.$ac_ext | ||
26139 | cat >>conftest.$ac_ext <<_ACEOF | ||
26140 | /* end confdefs.h. */ | ||
26141 | #include <arpa/nameser.h> | ||
26142 | |||
26143 | int | ||
26144 | main () | ||
26145 | { | ||
26146 | static HEADER ac_aggr; | ||
26147 | if (sizeof ac_aggr.ad) | ||
26148 | return 0; | ||
26149 | ; | ||
26150 | return 0; | ||
26151 | } | ||
26152 | _ACEOF | ||
26153 | rm -f conftest.$ac_objext | ||
26154 | if { (ac_try="$ac_compile" | ||
26155 | case "(($ac_try" in | ||
26156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26157 | *) ac_try_echo=$ac_try;; | ||
26158 | esac | ||
26159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26160 | (eval "$ac_compile") 2>conftest.er1 | ||
26161 | ac_status=$? | ||
26162 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26163 | rm -f conftest.er1 | ||
26164 | cat conftest.err >&5 | ||
26165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26166 | (exit $ac_status); } && { | ||
26167 | test -z "$ac_c_werror_flag" || | ||
26168 | test ! -s conftest.err | ||
26169 | } && test -s conftest.$ac_objext; then | ||
26170 | ac_cv_member_HEADER_ad=yes | ||
26171 | else | ||
26172 | echo "$as_me: failed program was:" >&5 | ||
26173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26174 | |||
26175 | ac_cv_member_HEADER_ad=no | ||
26176 | fi | ||
26177 | |||
26178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26179 | fi | ||
26180 | |||
26181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26182 | fi | ||
26183 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
26184 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
26185 | if test $ac_cv_member_HEADER_ad = yes; then | ||
26186 | |||
26187 | cat >>confdefs.h <<\_ACEOF | ||
26188 | #define HAVE_HEADER_AD 1 | ||
26189 | _ACEOF | ||
26190 | |||
26191 | fi | ||
26192 | |||
26193 | |||
26194 | fi | ||
26195 | |||
26196 | |||
26197 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
26198 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
26199 | cat >conftest.$ac_ext <<_ACEOF | ||
26200 | |||
26201 | #include <stdio.h> | ||
26202 | #if HAVE_SYS_TYPES_H | ||
26203 | # include <sys/types.h> | ||
26204 | #endif | ||
26205 | #include <netinet/in.h> | ||
26206 | #include <arpa/nameser.h> | ||
26207 | #include <resolv.h> | ||
26208 | extern struct __res_state _res; | ||
26209 | int main() { return 0; } | ||
26210 | |||
26211 | _ACEOF | ||
26212 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26213 | if { (ac_try="$ac_link" | ||
26214 | case "(($ac_try" in | ||
26215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26216 | *) ac_try_echo=$ac_try;; | ||
26217 | esac | ||
26218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26219 | (eval "$ac_link") 2>conftest.er1 | ||
26220 | ac_status=$? | ||
26221 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26222 | rm -f conftest.er1 | ||
26223 | cat conftest.err >&5 | ||
26224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26225 | (exit $ac_status); } && { | ||
26226 | test -z "$ac_c_werror_flag" || | ||
26227 | test ! -s conftest.err | ||
26228 | } && test -s conftest$ac_exeext && | ||
26229 | $as_test_x conftest$ac_exeext; then | ||
26230 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26231 | echo "${ECHO_T}yes" >&6; } | ||
26232 | |||
26233 | cat >>confdefs.h <<\_ACEOF | ||
26234 | #define HAVE__RES_EXTERN 1 | ||
26235 | _ACEOF | ||
26236 | |||
26237 | |||
26238 | else | ||
26239 | echo "$as_me: failed program was:" >&5 | ||
26240 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26241 | |||
26242 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26243 | echo "${ECHO_T}no" >&6; } | ||
26244 | |||
26245 | fi | ||
26246 | |||
26247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26248 | conftest$ac_exeext conftest.$ac_ext | ||
26249 | |||
26250 | # Check whether user wants SELinux support | ||
26251 | SELINUX_MSG="no" | ||
26252 | LIBSELINUX="" | ||
26253 | |||
26254 | # Check whether --with-selinux was given. | ||
26255 | if test "${with_selinux+set}" = set; then | ||
26256 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
26257 | save_LIBS="$LIBS" | ||
26258 | |||
26259 | cat >>confdefs.h <<\_ACEOF | ||
26260 | #define WITH_SELINUX 1 | ||
26261 | _ACEOF | ||
26262 | |||
26263 | SELINUX_MSG="yes" | ||
26264 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26265 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26266 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26267 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26269 | fi | ||
26270 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26271 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26272 | else | ||
26273 | # Is the header compilable? | ||
26274 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
26275 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
26276 | cat >conftest.$ac_ext <<_ACEOF | ||
26277 | /* confdefs.h. */ | ||
26278 | _ACEOF | ||
26279 | cat confdefs.h >>conftest.$ac_ext | ||
26280 | cat >>conftest.$ac_ext <<_ACEOF | ||
26281 | /* end confdefs.h. */ | ||
26282 | $ac_includes_default | ||
26283 | #include <selinux/selinux.h> | ||
26284 | _ACEOF | ||
26285 | rm -f conftest.$ac_objext | ||
26286 | if { (ac_try="$ac_compile" | ||
26287 | case "(($ac_try" in | ||
26288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26289 | *) ac_try_echo=$ac_try;; | ||
26290 | esac | ||
26291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26292 | (eval "$ac_compile") 2>conftest.er1 | ||
26293 | ac_status=$? | ||
26294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26295 | rm -f conftest.er1 | ||
26296 | cat conftest.err >&5 | ||
26297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26298 | (exit $ac_status); } && { | ||
26299 | test -z "$ac_c_werror_flag" || | ||
26300 | test ! -s conftest.err | ||
26301 | } && test -s conftest.$ac_objext; then | ||
26302 | ac_header_compiler=yes | ||
26303 | else | ||
26304 | echo "$as_me: failed program was:" >&5 | ||
26305 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26306 | |||
26307 | ac_header_compiler=no | ||
26308 | fi | ||
26309 | |||
26310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26311 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26312 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26313 | |||
26314 | # Is the header present? | ||
26315 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
26316 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
26317 | cat >conftest.$ac_ext <<_ACEOF | ||
26318 | /* confdefs.h. */ | ||
26319 | _ACEOF | ||
26320 | cat confdefs.h >>conftest.$ac_ext | ||
26321 | cat >>conftest.$ac_ext <<_ACEOF | ||
26322 | /* end confdefs.h. */ | ||
26323 | #include <selinux/selinux.h> | ||
26324 | _ACEOF | ||
26325 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26326 | case "(($ac_try" in | ||
26327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26328 | *) ac_try_echo=$ac_try;; | ||
26329 | esac | ||
26330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26331 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26332 | ac_status=$? | ||
26333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26334 | rm -f conftest.er1 | ||
26335 | cat conftest.err >&5 | ||
26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26337 | (exit $ac_status); } >/dev/null && { | ||
26338 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26339 | test ! -s conftest.err | ||
26340 | }; then | ||
26341 | ac_header_preproc=yes | ||
26342 | else | ||
26343 | echo "$as_me: failed program was:" >&5 | ||
26344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26345 | |||
26346 | ac_header_preproc=no | ||
26347 | fi | ||
26348 | |||
26349 | rm -f conftest.err conftest.$ac_ext | ||
26350 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26351 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26352 | |||
26353 | # So? What about this header? | ||
26354 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26355 | yes:no: ) | ||
26356 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26357 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26358 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
26359 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
26360 | ac_header_preproc=yes | ||
26361 | ;; | ||
26362 | no:yes:* ) | ||
26363 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
26364 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
26365 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
26366 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
26367 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
26368 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
26369 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
26370 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26371 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
26372 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
26373 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
26374 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
26375 | ( cat <<\_ASBOX | ||
26376 | ## ------------------------------------------- ## | ||
26377 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26378 | ## ------------------------------------------- ## | ||
26379 | _ASBOX | ||
26380 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26381 | ;; | ||
26382 | esac | ||
26383 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26384 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26385 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26387 | else | ||
26388 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
26389 | fi | ||
26390 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26391 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26392 | |||
26393 | fi | ||
26394 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
26395 | : | ||
26396 | else | ||
26397 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
26398 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
26399 | { (exit 1); exit 1; }; } | ||
26400 | fi | ||
26401 | |||
26402 | |||
26403 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
26404 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
26405 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
26406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26407 | else | ||
26408 | ac_check_lib_save_LIBS=$LIBS | ||
26409 | LIBS="-lselinux $LIBS" | ||
26410 | cat >conftest.$ac_ext <<_ACEOF | ||
26411 | /* confdefs.h. */ | ||
26412 | _ACEOF | ||
26413 | cat confdefs.h >>conftest.$ac_ext | ||
26414 | cat >>conftest.$ac_ext <<_ACEOF | ||
26415 | /* end confdefs.h. */ | ||
26416 | |||
26417 | /* Override any GCC internal prototype to avoid an error. | ||
26418 | Use char because int might match the return type of a GCC | ||
26419 | builtin and then its argument prototype would still apply. */ | ||
26420 | #ifdef __cplusplus | ||
26421 | extern "C" | ||
26422 | #endif | ||
26423 | char setexeccon (); | ||
26424 | int | ||
26425 | main () | ||
26426 | { | ||
26427 | return setexeccon (); | ||
26428 | ; | ||
26429 | return 0; | ||
26430 | } | ||
26431 | _ACEOF | ||
26432 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26433 | if { (ac_try="$ac_link" | ||
26434 | case "(($ac_try" in | ||
26435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26436 | *) ac_try_echo=$ac_try;; | ||
26437 | esac | ||
26438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26439 | (eval "$ac_link") 2>conftest.er1 | ||
26440 | ac_status=$? | ||
26441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26442 | rm -f conftest.er1 | ||
26443 | cat conftest.err >&5 | ||
26444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26445 | (exit $ac_status); } && { | ||
26446 | test -z "$ac_c_werror_flag" || | ||
26447 | test ! -s conftest.err | ||
26448 | } && test -s conftest$ac_exeext && | ||
26449 | $as_test_x conftest$ac_exeext; then | ||
26450 | ac_cv_lib_selinux_setexeccon=yes | ||
26451 | else | ||
26452 | echo "$as_me: failed program was:" >&5 | ||
26453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26454 | |||
26455 | ac_cv_lib_selinux_setexeccon=no | ||
26456 | fi | ||
26457 | |||
26458 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26459 | conftest$ac_exeext conftest.$ac_ext | ||
26460 | LIBS=$ac_check_lib_save_LIBS | ||
26461 | fi | ||
26462 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
26463 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
26464 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
26465 | LIBSELINUX="-lselinux" | ||
26466 | else | ||
26467 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
26468 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
26469 | { (exit 1); exit 1; }; } | ||
26470 | fi | ||
26471 | |||
26472 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
26473 | |||
26474 | |||
26475 | for ac_func in getseuserbyname get_default_context_with_level | ||
26476 | do | ||
26477 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26478 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26479 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26480 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26482 | else | ||
26483 | cat >conftest.$ac_ext <<_ACEOF | ||
26484 | /* confdefs.h. */ | ||
26485 | _ACEOF | ||
26486 | cat confdefs.h >>conftest.$ac_ext | ||
26487 | cat >>conftest.$ac_ext <<_ACEOF | ||
26488 | /* end confdefs.h. */ | ||
26489 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26491 | #define $ac_func innocuous_$ac_func | ||
26492 | |||
26493 | /* System header to define __stub macros and hopefully few prototypes, | ||
26494 | which can conflict with char $ac_func (); below. | ||
26495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26496 | <limits.h> exists even on freestanding compilers. */ | ||
26497 | |||
26498 | #ifdef __STDC__ | ||
26499 | # include <limits.h> | ||
26500 | #else | ||
26501 | # include <assert.h> | ||
26502 | #endif | ||
26503 | |||
26504 | #undef $ac_func | ||
26505 | |||
26506 | /* Override any GCC internal prototype to avoid an error. | ||
26507 | Use char because int might match the return type of a GCC | ||
26508 | builtin and then its argument prototype would still apply. */ | ||
26509 | #ifdef __cplusplus | ||
26510 | extern "C" | ||
26511 | #endif | ||
26512 | char $ac_func (); | ||
26513 | /* The GNU C library defines this for functions which it implements | ||
26514 | to always fail with ENOSYS. Some functions are actually named | ||
26515 | something starting with __ and the normal name is an alias. */ | ||
26516 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26517 | choke me | ||
26518 | #endif | ||
26519 | |||
26520 | int | ||
26521 | main () | ||
26522 | { | ||
26523 | return $ac_func (); | ||
26524 | ; | ||
26525 | return 0; | ||
26526 | } | ||
26527 | _ACEOF | ||
26528 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26529 | if { (ac_try="$ac_link" | ||
26530 | case "(($ac_try" in | ||
26531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26532 | *) ac_try_echo=$ac_try;; | ||
26533 | esac | ||
26534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26535 | (eval "$ac_link") 2>conftest.er1 | ||
26536 | ac_status=$? | ||
26537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26538 | rm -f conftest.er1 | ||
26539 | cat conftest.err >&5 | ||
26540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26541 | (exit $ac_status); } && { | ||
26542 | test -z "$ac_c_werror_flag" || | ||
26543 | test ! -s conftest.err | ||
26544 | } && test -s conftest$ac_exeext && | ||
26545 | $as_test_x conftest$ac_exeext; then | ||
26546 | eval "$as_ac_var=yes" | ||
26547 | else | ||
26548 | echo "$as_me: failed program was:" >&5 | ||
26549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26550 | |||
26551 | eval "$as_ac_var=no" | ||
26552 | fi | ||
26553 | |||
26554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26555 | conftest$ac_exeext conftest.$ac_ext | ||
26556 | fi | ||
26557 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26559 | echo "${ECHO_T}$ac_res" >&6; } | ||
26560 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26561 | cat >>confdefs.h <<_ACEOF | ||
26562 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26563 | _ACEOF | ||
26564 | |||
26565 | fi | ||
26566 | done | ||
26567 | |||
26568 | LIBS="$save_LIBS" | ||
26569 | fi | ||
26570 | |||
26571 | fi | ||
26572 | |||
26573 | |||
26574 | # Check whether user wants Kerberos 5 support | ||
26575 | KRB5_MSG="no" | ||
26576 | |||
26577 | # Check whether --with-kerberos5 was given. | ||
26578 | if test "${with_kerberos5+set}" = set; then | ||
26579 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
26580 | if test "x$withval" = "xyes" ; then | ||
26581 | KRB5ROOT="/usr/local" | ||
26582 | else | ||
26583 | KRB5ROOT=${withval} | ||
26584 | fi | ||
26585 | |||
26586 | |||
26587 | cat >>confdefs.h <<\_ACEOF | ||
26588 | #define KRB5 1 | ||
26589 | _ACEOF | ||
26590 | |||
26591 | KRB5_MSG="yes" | ||
26592 | |||
26593 | { echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
26594 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; } | ||
26595 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
26596 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
26597 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
26598 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
26599 | |||
26600 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
26601 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
26602 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
26603 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26604 | echo "${ECHO_T}yes" >&6; } | ||
26605 | |||
26606 | cat >>confdefs.h <<\_ACEOF | ||
26607 | #define GSSAPI 1 | ||
26608 | _ACEOF | ||
26609 | |||
26610 | k5confopts=gssapi | ||
26611 | else | ||
26612 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26613 | echo "${ECHO_T}no" >&6; } | ||
26614 | k5confopts="" | ||
26615 | fi | ||
26616 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
26617 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
26618 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
26619 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26620 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26621 | cat >conftest.$ac_ext <<_ACEOF | ||
26622 | /* confdefs.h. */ | ||
26623 | _ACEOF | ||
26624 | cat confdefs.h >>conftest.$ac_ext | ||
26625 | cat >>conftest.$ac_ext <<_ACEOF | ||
26626 | /* end confdefs.h. */ | ||
26627 | #include <krb5.h> | ||
26628 | int | ||
26629 | main () | ||
26630 | { | ||
26631 | char *tmp = heimdal_version; | ||
26632 | ; | ||
26633 | return 0; | ||
26634 | } | ||
26635 | _ACEOF | ||
26636 | rm -f conftest.$ac_objext | ||
26637 | if { (ac_try="$ac_compile" | ||
26638 | case "(($ac_try" in | ||
26639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26640 | *) ac_try_echo=$ac_try;; | ||
26641 | esac | ||
26642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26643 | (eval "$ac_compile") 2>conftest.er1 | ||
26644 | ac_status=$? | ||
26645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26646 | rm -f conftest.er1 | ||
26647 | cat conftest.err >&5 | ||
26648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26649 | (exit $ac_status); } && { | ||
26650 | test -z "$ac_c_werror_flag" || | ||
26651 | test ! -s conftest.err | ||
26652 | } && test -s conftest.$ac_objext; then | ||
26653 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26654 | echo "${ECHO_T}yes" >&6; } | ||
26655 | |||
26656 | cat >>confdefs.h <<\_ACEOF | ||
26657 | #define HEIMDAL 1 | ||
26658 | _ACEOF | ||
26659 | |||
26660 | else | ||
26661 | echo "$as_me: failed program was:" >&5 | ||
26662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26663 | |||
26664 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26665 | echo "${ECHO_T}no" >&6; } | ||
26666 | |||
26667 | fi | ||
26668 | |||
26669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26670 | else | ||
26671 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26672 | echo "${ECHO_T}no" >&6; } | ||
26673 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
26674 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
26675 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26676 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26677 | cat >conftest.$ac_ext <<_ACEOF | ||
26678 | /* confdefs.h. */ | ||
26679 | _ACEOF | ||
26680 | cat confdefs.h >>conftest.$ac_ext | ||
26681 | cat >>conftest.$ac_ext <<_ACEOF | ||
26682 | /* end confdefs.h. */ | ||
26683 | #include <krb5.h> | ||
26684 | int | ||
26685 | main () | ||
26686 | { | ||
26687 | char *tmp = heimdal_version; | ||
26688 | ; | ||
26689 | return 0; | ||
26690 | } | ||
26691 | _ACEOF | ||
26692 | rm -f conftest.$ac_objext | ||
26693 | if { (ac_try="$ac_compile" | ||
26694 | case "(($ac_try" in | ||
26695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26696 | *) ac_try_echo=$ac_try;; | ||
26697 | esac | ||
26698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26699 | (eval "$ac_compile") 2>conftest.er1 | ||
26700 | ac_status=$? | ||
26701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26702 | rm -f conftest.er1 | ||
26703 | cat conftest.err >&5 | ||
26704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26705 | (exit $ac_status); } && { | ||
26706 | test -z "$ac_c_werror_flag" || | ||
26707 | test ! -s conftest.err | ||
26708 | } && test -s conftest.$ac_objext; then | ||
26709 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26710 | echo "${ECHO_T}yes" >&6; } | ||
26711 | cat >>confdefs.h <<\_ACEOF | ||
26712 | #define HEIMDAL 1 | ||
26713 | _ACEOF | ||
26714 | |||
26715 | K5LIBS="-lkrb5 -ldes" | ||
26716 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
26717 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
26718 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
26719 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
26720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26721 | else | ||
26722 | ac_check_lib_save_LIBS=$LIBS | ||
26723 | LIBS="-lroken $LIBS" | ||
26724 | cat >conftest.$ac_ext <<_ACEOF | ||
26725 | /* confdefs.h. */ | ||
26726 | _ACEOF | ||
26727 | cat confdefs.h >>conftest.$ac_ext | ||
26728 | cat >>conftest.$ac_ext <<_ACEOF | ||
26729 | /* end confdefs.h. */ | ||
26730 | |||
26731 | /* Override any GCC internal prototype to avoid an error. | ||
26732 | Use char because int might match the return type of a GCC | ||
26733 | builtin and then its argument prototype would still apply. */ | ||
26734 | #ifdef __cplusplus | ||
26735 | extern "C" | ||
26736 | #endif | ||
26737 | char net_write (); | ||
26738 | int | ||
26739 | main () | ||
26740 | { | ||
26741 | return net_write (); | ||
26742 | ; | ||
26743 | return 0; | ||
26744 | } | ||
26745 | _ACEOF | ||
26746 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26747 | if { (ac_try="$ac_link" | ||
26748 | case "(($ac_try" in | ||
26749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26750 | *) ac_try_echo=$ac_try;; | ||
26751 | esac | ||
26752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26753 | (eval "$ac_link") 2>conftest.er1 | ||
26754 | ac_status=$? | ||
26755 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26756 | rm -f conftest.er1 | ||
26757 | cat conftest.err >&5 | ||
26758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26759 | (exit $ac_status); } && { | ||
26760 | test -z "$ac_c_werror_flag" || | ||
26761 | test ! -s conftest.err | ||
26762 | } && test -s conftest$ac_exeext && | ||
26763 | $as_test_x conftest$ac_exeext; then | ||
26764 | ac_cv_lib_roken_net_write=yes | ||
26765 | else | ||
26766 | echo "$as_me: failed program was:" >&5 | ||
26767 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26768 | |||
26769 | ac_cv_lib_roken_net_write=no | ||
26770 | fi | ||
26771 | |||
26772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26773 | conftest$ac_exeext conftest.$ac_ext | ||
26774 | LIBS=$ac_check_lib_save_LIBS | ||
26775 | fi | ||
26776 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
26777 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
26778 | if test $ac_cv_lib_roken_net_write = yes; then | ||
26779 | K5LIBS="$K5LIBS -lroken" | ||
26780 | fi | ||
26781 | |||
26782 | |||
26783 | else | ||
26784 | echo "$as_me: failed program was:" >&5 | ||
26785 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26786 | |||
26787 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26788 | echo "${ECHO_T}no" >&6; } | ||
26789 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
26790 | |||
26791 | |||
26792 | fi | ||
26793 | |||
26794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26795 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
26796 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
26797 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26799 | else | ||
26800 | ac_func_search_save_LIBS=$LIBS | ||
26801 | cat >conftest.$ac_ext <<_ACEOF | ||
26802 | /* confdefs.h. */ | ||
26803 | _ACEOF | ||
26804 | cat confdefs.h >>conftest.$ac_ext | ||
26805 | cat >>conftest.$ac_ext <<_ACEOF | ||
26806 | /* end confdefs.h. */ | ||
26807 | |||
26808 | /* Override any GCC internal prototype to avoid an error. | ||
26809 | Use char because int might match the return type of a GCC | ||
26810 | builtin and then its argument prototype would still apply. */ | ||
26811 | #ifdef __cplusplus | ||
26812 | extern "C" | ||
26813 | #endif | ||
26814 | char dn_expand (); | ||
26815 | int | ||
26816 | main () | ||
26817 | { | ||
26818 | return dn_expand (); | ||
26819 | ; | ||
26820 | return 0; | ||
26821 | } | ||
26822 | _ACEOF | ||
26823 | for ac_lib in '' resolv; do | ||
26824 | if test -z "$ac_lib"; then | ||
26825 | ac_res="none required" | ||
26826 | else | ||
26827 | ac_res=-l$ac_lib | ||
26828 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26829 | fi | ||
26830 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26831 | if { (ac_try="$ac_link" | ||
26832 | case "(($ac_try" in | ||
26833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26834 | *) ac_try_echo=$ac_try;; | ||
26835 | esac | ||
26836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26837 | (eval "$ac_link") 2>conftest.er1 | ||
26838 | ac_status=$? | ||
26839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26840 | rm -f conftest.er1 | ||
26841 | cat conftest.err >&5 | ||
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26843 | (exit $ac_status); } && { | ||
26844 | test -z "$ac_c_werror_flag" || | ||
26845 | test ! -s conftest.err | ||
26846 | } && test -s conftest$ac_exeext && | ||
26847 | $as_test_x conftest$ac_exeext; then | ||
26848 | ac_cv_search_dn_expand=$ac_res | ||
26849 | else | ||
26850 | echo "$as_me: failed program was:" >&5 | ||
26851 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26852 | |||
26853 | |||
26854 | fi | ||
26855 | |||
26856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26857 | conftest$ac_exeext | ||
26858 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26859 | break | ||
26860 | fi | ||
26861 | done | ||
26862 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26863 | : | ||
26864 | else | ||
26865 | ac_cv_search_dn_expand=no | ||
26866 | fi | ||
26867 | rm conftest.$ac_ext | ||
26868 | LIBS=$ac_func_search_save_LIBS | ||
26869 | fi | ||
26870 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
26871 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
26872 | ac_res=$ac_cv_search_dn_expand | ||
26873 | if test "$ac_res" != no; then | ||
26874 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26875 | |||
26876 | fi | ||
26877 | |||
26878 | |||
26879 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
26880 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
26881 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
26882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26883 | else | ||
26884 | ac_check_lib_save_LIBS=$LIBS | ||
26885 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
26886 | cat >conftest.$ac_ext <<_ACEOF | ||
26887 | /* confdefs.h. */ | ||
26888 | _ACEOF | ||
26889 | cat confdefs.h >>conftest.$ac_ext | ||
26890 | cat >>conftest.$ac_ext <<_ACEOF | ||
26891 | /* end confdefs.h. */ | ||
26892 | |||
26893 | /* Override any GCC internal prototype to avoid an error. | ||
26894 | Use char because int might match the return type of a GCC | ||
26895 | builtin and then its argument prototype would still apply. */ | ||
26896 | #ifdef __cplusplus | ||
26897 | extern "C" | ||
26898 | #endif | ||
26899 | char gss_init_sec_context (); | ||
26900 | int | ||
26901 | main () | ||
26902 | { | ||
26903 | return gss_init_sec_context (); | ||
26904 | ; | ||
26905 | return 0; | ||
26906 | } | ||
26907 | _ACEOF | ||
26908 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26909 | if { (ac_try="$ac_link" | ||
26910 | case "(($ac_try" in | ||
26911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26912 | *) ac_try_echo=$ac_try;; | ||
26913 | esac | ||
26914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26915 | (eval "$ac_link") 2>conftest.er1 | ||
26916 | ac_status=$? | ||
26917 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26918 | rm -f conftest.er1 | ||
26919 | cat conftest.err >&5 | ||
26920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26921 | (exit $ac_status); } && { | ||
26922 | test -z "$ac_c_werror_flag" || | ||
26923 | test ! -s conftest.err | ||
26924 | } && test -s conftest$ac_exeext && | ||
26925 | $as_test_x conftest$ac_exeext; then | ||
26926 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
26927 | else | ||
26928 | echo "$as_me: failed program was:" >&5 | ||
26929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26930 | |||
26931 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
26932 | fi | ||
26933 | |||
26934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26935 | conftest$ac_exeext conftest.$ac_ext | ||
26936 | LIBS=$ac_check_lib_save_LIBS | ||
26937 | fi | ||
26938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
26939 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
26940 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
26941 | cat >>confdefs.h <<\_ACEOF | ||
26942 | #define GSSAPI 1 | ||
26943 | _ACEOF | ||
26944 | |||
26945 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
26946 | else | ||
26947 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
26948 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
26949 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
26950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26951 | else | ||
26952 | ac_check_lib_save_LIBS=$LIBS | ||
26953 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
26954 | cat >conftest.$ac_ext <<_ACEOF | ||
26955 | /* confdefs.h. */ | ||
26956 | _ACEOF | ||
26957 | cat confdefs.h >>conftest.$ac_ext | ||
26958 | cat >>conftest.$ac_ext <<_ACEOF | ||
26959 | /* end confdefs.h. */ | ||
26960 | |||
26961 | /* Override any GCC internal prototype to avoid an error. | ||
26962 | Use char because int might match the return type of a GCC | ||
26963 | builtin and then its argument prototype would still apply. */ | ||
26964 | #ifdef __cplusplus | ||
26965 | extern "C" | ||
26966 | #endif | ||
26967 | char gss_init_sec_context (); | ||
26968 | int | ||
26969 | main () | ||
26970 | { | ||
26971 | return gss_init_sec_context (); | ||
26972 | ; | ||
26973 | return 0; | ||
26974 | } | ||
26975 | _ACEOF | ||
26976 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26977 | if { (ac_try="$ac_link" | ||
26978 | case "(($ac_try" in | ||
26979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26980 | *) ac_try_echo=$ac_try;; | ||
26981 | esac | ||
26982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26983 | (eval "$ac_link") 2>conftest.er1 | ||
26984 | ac_status=$? | ||
26985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26986 | rm -f conftest.er1 | ||
26987 | cat conftest.err >&5 | ||
26988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26989 | (exit $ac_status); } && { | ||
26990 | test -z "$ac_c_werror_flag" || | ||
26991 | test ! -s conftest.err | ||
26992 | } && test -s conftest$ac_exeext && | ||
26993 | $as_test_x conftest$ac_exeext; then | ||
26994 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
26995 | else | ||
26996 | echo "$as_me: failed program was:" >&5 | ||
26997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26998 | |||
26999 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
27000 | fi | ||
27001 | |||
27002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27003 | conftest$ac_exeext conftest.$ac_ext | ||
27004 | LIBS=$ac_check_lib_save_LIBS | ||
27005 | fi | ||
27006 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
27007 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
27008 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
27009 | cat >>confdefs.h <<\_ACEOF | ||
27010 | #define GSSAPI 1 | ||
27011 | _ACEOF | ||
27012 | |||
27013 | K5LIBS="-lgssapi $K5LIBS" | ||
27014 | else | ||
27015 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
27016 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
27017 | fi | ||
27018 | |||
27019 | |||
27020 | fi | ||
27021 | |||
27022 | |||
27023 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27024 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27025 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27026 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27028 | fi | ||
27029 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27030 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27031 | else | ||
27032 | # Is the header compilable? | ||
27033 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
27034 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
27035 | cat >conftest.$ac_ext <<_ACEOF | ||
27036 | /* confdefs.h. */ | ||
27037 | _ACEOF | ||
27038 | cat confdefs.h >>conftest.$ac_ext | ||
27039 | cat >>conftest.$ac_ext <<_ACEOF | ||
27040 | /* end confdefs.h. */ | ||
27041 | $ac_includes_default | ||
27042 | #include <gssapi.h> | ||
27043 | _ACEOF | ||
27044 | rm -f conftest.$ac_objext | ||
27045 | if { (ac_try="$ac_compile" | ||
27046 | case "(($ac_try" in | ||
27047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27048 | *) ac_try_echo=$ac_try;; | ||
27049 | esac | ||
27050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27051 | (eval "$ac_compile") 2>conftest.er1 | ||
27052 | ac_status=$? | ||
27053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27054 | rm -f conftest.er1 | ||
27055 | cat conftest.err >&5 | ||
27056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27057 | (exit $ac_status); } && { | ||
27058 | test -z "$ac_c_werror_flag" || | ||
27059 | test ! -s conftest.err | ||
27060 | } && test -s conftest.$ac_objext; then | ||
27061 | ac_header_compiler=yes | ||
27062 | else | ||
27063 | echo "$as_me: failed program was:" >&5 | ||
27064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27065 | |||
27066 | ac_header_compiler=no | ||
27067 | fi | ||
27068 | |||
27069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27070 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27071 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27072 | |||
27073 | # Is the header present? | ||
27074 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
27075 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
27076 | cat >conftest.$ac_ext <<_ACEOF | ||
27077 | /* confdefs.h. */ | ||
27078 | _ACEOF | ||
27079 | cat confdefs.h >>conftest.$ac_ext | ||
27080 | cat >>conftest.$ac_ext <<_ACEOF | ||
27081 | /* end confdefs.h. */ | ||
27082 | #include <gssapi.h> | ||
27083 | _ACEOF | ||
27084 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27085 | case "(($ac_try" in | ||
27086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27087 | *) ac_try_echo=$ac_try;; | ||
27088 | esac | ||
27089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27091 | ac_status=$? | ||
27092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27093 | rm -f conftest.er1 | ||
27094 | cat conftest.err >&5 | ||
27095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27096 | (exit $ac_status); } >/dev/null && { | ||
27097 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27098 | test ! -s conftest.err | ||
27099 | }; then | ||
27100 | ac_header_preproc=yes | ||
27101 | else | ||
27102 | echo "$as_me: failed program was:" >&5 | ||
27103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27104 | |||
27105 | ac_header_preproc=no | ||
27106 | fi | ||
27107 | |||
27108 | rm -f conftest.err conftest.$ac_ext | ||
27109 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27110 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27111 | |||
27112 | # So? What about this header? | ||
27113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27114 | yes:no: ) | ||
27115 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27116 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27117 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
27118 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
27119 | ac_header_preproc=yes | ||
27120 | ;; | ||
27121 | no:yes:* ) | ||
27122 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
27123 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
27124 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
27125 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
27126 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
27127 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
27128 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27129 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27130 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
27131 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
27132 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
27133 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
27134 | ( cat <<\_ASBOX | ||
27135 | ## ------------------------------------------- ## | ||
27136 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27137 | ## ------------------------------------------- ## | ||
27138 | _ASBOX | ||
27139 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27140 | ;; | ||
27141 | esac | ||
27142 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27143 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27144 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27146 | else | ||
27147 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
27148 | fi | ||
27149 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27150 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27151 | |||
27152 | fi | ||
27153 | if test $ac_cv_header_gssapi_h = yes; then | ||
27154 | : | ||
27155 | else | ||
27156 | unset ac_cv_header_gssapi_h | ||
27157 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27158 | |||
27159 | for ac_header in gssapi.h | ||
27160 | do | ||
27161 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27163 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27164 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27167 | fi | ||
27168 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27169 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27170 | echo "${ECHO_T}$ac_res" >&6; } | ||
27171 | else | ||
27172 | # Is the header compilable? | ||
27173 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27175 | cat >conftest.$ac_ext <<_ACEOF | ||
27176 | /* confdefs.h. */ | ||
27177 | _ACEOF | ||
27178 | cat confdefs.h >>conftest.$ac_ext | ||
27179 | cat >>conftest.$ac_ext <<_ACEOF | ||
27180 | /* end confdefs.h. */ | ||
27181 | $ac_includes_default | ||
27182 | #include <$ac_header> | ||
27183 | _ACEOF | ||
27184 | rm -f conftest.$ac_objext | ||
27185 | if { (ac_try="$ac_compile" | ||
27186 | case "(($ac_try" in | ||
27187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27188 | *) ac_try_echo=$ac_try;; | ||
27189 | esac | ||
27190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27191 | (eval "$ac_compile") 2>conftest.er1 | ||
27192 | ac_status=$? | ||
27193 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27194 | rm -f conftest.er1 | ||
27195 | cat conftest.err >&5 | ||
27196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27197 | (exit $ac_status); } && { | ||
27198 | test -z "$ac_c_werror_flag" || | ||
27199 | test ! -s conftest.err | ||
27200 | } && test -s conftest.$ac_objext; then | ||
27201 | ac_header_compiler=yes | ||
27202 | else | ||
27203 | echo "$as_me: failed program was:" >&5 | ||
27204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27205 | |||
27206 | ac_header_compiler=no | ||
27207 | fi | ||
27208 | |||
27209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27210 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27211 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27212 | |||
27213 | # Is the header present? | ||
27214 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27215 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27216 | cat >conftest.$ac_ext <<_ACEOF | ||
27217 | /* confdefs.h. */ | ||
27218 | _ACEOF | ||
27219 | cat confdefs.h >>conftest.$ac_ext | ||
27220 | cat >>conftest.$ac_ext <<_ACEOF | ||
27221 | /* end confdefs.h. */ | ||
27222 | #include <$ac_header> | ||
27223 | _ACEOF | ||
27224 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27225 | case "(($ac_try" in | ||
27226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27227 | *) ac_try_echo=$ac_try;; | ||
27228 | esac | ||
27229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27230 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27231 | ac_status=$? | ||
27232 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27233 | rm -f conftest.er1 | ||
27234 | cat conftest.err >&5 | ||
27235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27236 | (exit $ac_status); } >/dev/null && { | ||
27237 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27238 | test ! -s conftest.err | ||
27239 | }; then | ||
27240 | ac_header_preproc=yes | ||
27241 | else | ||
27242 | echo "$as_me: failed program was:" >&5 | ||
27243 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27244 | |||
27245 | ac_header_preproc=no | ||
27246 | fi | ||
27247 | |||
27248 | rm -f conftest.err conftest.$ac_ext | ||
27249 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27250 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27251 | |||
27252 | # So? What about this header? | ||
27253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27254 | yes:no: ) | ||
27255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27258 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27259 | ac_header_preproc=yes | ||
27260 | ;; | ||
27261 | no:yes:* ) | ||
27262 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27263 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27264 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27265 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27266 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27267 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27268 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27269 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27272 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27273 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27274 | ( cat <<\_ASBOX | ||
27275 | ## ------------------------------------------- ## | ||
27276 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27277 | ## ------------------------------------------- ## | ||
27278 | _ASBOX | ||
27279 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27280 | ;; | ||
27281 | esac | ||
27282 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27286 | else | ||
27287 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27288 | fi | ||
27289 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27290 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27291 | echo "${ECHO_T}$ac_res" >&6; } | ||
27292 | |||
27293 | fi | ||
27294 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27295 | cat >>confdefs.h <<_ACEOF | ||
27296 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27297 | _ACEOF | ||
27298 | |||
27299 | else | ||
27300 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
27301 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
27302 | |||
27303 | fi | ||
27304 | |||
27305 | done | ||
27306 | |||
27307 | |||
27308 | |||
27309 | fi | ||
27310 | |||
27311 | |||
27312 | |||
27313 | oldCPP="$CPPFLAGS" | ||
27314 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27315 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27316 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27317 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27318 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27320 | fi | ||
27321 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27322 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27323 | else | ||
27324 | # Is the header compilable? | ||
27325 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
27326 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
27327 | cat >conftest.$ac_ext <<_ACEOF | ||
27328 | /* confdefs.h. */ | ||
27329 | _ACEOF | ||
27330 | cat confdefs.h >>conftest.$ac_ext | ||
27331 | cat >>conftest.$ac_ext <<_ACEOF | ||
27332 | /* end confdefs.h. */ | ||
27333 | $ac_includes_default | ||
27334 | #include <gssapi_krb5.h> | ||
27335 | _ACEOF | ||
27336 | rm -f conftest.$ac_objext | ||
27337 | if { (ac_try="$ac_compile" | ||
27338 | case "(($ac_try" in | ||
27339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27340 | *) ac_try_echo=$ac_try;; | ||
27341 | esac | ||
27342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27343 | (eval "$ac_compile") 2>conftest.er1 | ||
27344 | ac_status=$? | ||
27345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27346 | rm -f conftest.er1 | ||
27347 | cat conftest.err >&5 | ||
27348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27349 | (exit $ac_status); } && { | ||
27350 | test -z "$ac_c_werror_flag" || | ||
27351 | test ! -s conftest.err | ||
27352 | } && test -s conftest.$ac_objext; then | ||
27353 | ac_header_compiler=yes | ||
27354 | else | ||
27355 | echo "$as_me: failed program was:" >&5 | ||
27356 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27357 | |||
27358 | ac_header_compiler=no | ||
27359 | fi | ||
27360 | |||
27361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27362 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27363 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27364 | |||
27365 | # Is the header present? | ||
27366 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
27367 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
27368 | cat >conftest.$ac_ext <<_ACEOF | ||
27369 | /* confdefs.h. */ | ||
27370 | _ACEOF | ||
27371 | cat confdefs.h >>conftest.$ac_ext | ||
27372 | cat >>conftest.$ac_ext <<_ACEOF | ||
27373 | /* end confdefs.h. */ | ||
27374 | #include <gssapi_krb5.h> | ||
27375 | _ACEOF | ||
27376 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27377 | case "(($ac_try" in | ||
27378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27379 | *) ac_try_echo=$ac_try;; | ||
27380 | esac | ||
27381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27383 | ac_status=$? | ||
27384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27385 | rm -f conftest.er1 | ||
27386 | cat conftest.err >&5 | ||
27387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27388 | (exit $ac_status); } >/dev/null && { | ||
27389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27390 | test ! -s conftest.err | ||
27391 | }; then | ||
27392 | ac_header_preproc=yes | ||
27393 | else | ||
27394 | echo "$as_me: failed program was:" >&5 | ||
27395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27396 | |||
27397 | ac_header_preproc=no | ||
27398 | fi | ||
27399 | |||
27400 | rm -f conftest.err conftest.$ac_ext | ||
27401 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27402 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27403 | |||
27404 | # So? What about this header? | ||
27405 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27406 | yes:no: ) | ||
27407 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27408 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27409 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
27410 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
27411 | ac_header_preproc=yes | ||
27412 | ;; | ||
27413 | no:yes:* ) | ||
27414 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
27415 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
27416 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
27417 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
27418 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
27419 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
27420 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27421 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27422 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
27423 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
27424 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
27425 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
27426 | ( cat <<\_ASBOX | ||
27427 | ## ------------------------------------------- ## | ||
27428 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27429 | ## ------------------------------------------- ## | ||
27430 | _ASBOX | ||
27431 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27432 | ;; | ||
27433 | esac | ||
27434 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27435 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27436 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27438 | else | ||
27439 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
27440 | fi | ||
27441 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27442 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27443 | |||
27444 | fi | ||
27445 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
27446 | : | ||
27447 | else | ||
27448 | CPPFLAGS="$oldCPP" | ||
27449 | fi | ||
27450 | |||
27451 | |||
27452 | |||
27453 | fi | ||
27454 | if test ! -z "$need_dash_r" ; then | ||
27455 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
27456 | fi | ||
27457 | if test ! -z "$blibpath" ; then | ||
27458 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
27459 | fi | ||
27460 | |||
27461 | |||
27462 | |||
27463 | for ac_header in gssapi.h gssapi/gssapi.h | ||
27464 | do | ||
27465 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27467 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27469 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27471 | fi | ||
27472 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27474 | echo "${ECHO_T}$ac_res" >&6; } | ||
27475 | else | ||
27476 | # Is the header compilable? | ||
27477 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27478 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27479 | cat >conftest.$ac_ext <<_ACEOF | ||
27480 | /* confdefs.h. */ | ||
27481 | _ACEOF | ||
27482 | cat confdefs.h >>conftest.$ac_ext | ||
27483 | cat >>conftest.$ac_ext <<_ACEOF | ||
27484 | /* end confdefs.h. */ | ||
27485 | $ac_includes_default | ||
27486 | #include <$ac_header> | ||
27487 | _ACEOF | ||
27488 | rm -f conftest.$ac_objext | ||
27489 | if { (ac_try="$ac_compile" | ||
27490 | case "(($ac_try" in | ||
27491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27492 | *) ac_try_echo=$ac_try;; | ||
27493 | esac | ||
27494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27495 | (eval "$ac_compile") 2>conftest.er1 | ||
27496 | ac_status=$? | ||
27497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27498 | rm -f conftest.er1 | ||
27499 | cat conftest.err >&5 | ||
27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27501 | (exit $ac_status); } && { | ||
27502 | test -z "$ac_c_werror_flag" || | ||
27503 | test ! -s conftest.err | ||
27504 | } && test -s conftest.$ac_objext; then | ||
27505 | ac_header_compiler=yes | ||
27506 | else | ||
27507 | echo "$as_me: failed program was:" >&5 | ||
27508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27509 | |||
27510 | ac_header_compiler=no | ||
27511 | fi | ||
27512 | |||
27513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27514 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27515 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27516 | |||
27517 | # Is the header present? | ||
27518 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27519 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27520 | cat >conftest.$ac_ext <<_ACEOF | ||
27521 | /* confdefs.h. */ | ||
27522 | _ACEOF | ||
27523 | cat confdefs.h >>conftest.$ac_ext | ||
27524 | cat >>conftest.$ac_ext <<_ACEOF | ||
27525 | /* end confdefs.h. */ | ||
27526 | #include <$ac_header> | ||
27527 | _ACEOF | ||
27528 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27529 | case "(($ac_try" in | ||
27530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27531 | *) ac_try_echo=$ac_try;; | ||
27532 | esac | ||
27533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27534 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27535 | ac_status=$? | ||
27536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27537 | rm -f conftest.er1 | ||
27538 | cat conftest.err >&5 | ||
27539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27540 | (exit $ac_status); } >/dev/null && { | ||
27541 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27542 | test ! -s conftest.err | ||
27543 | }; then | ||
27544 | ac_header_preproc=yes | ||
27545 | else | ||
27546 | echo "$as_me: failed program was:" >&5 | ||
27547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27548 | |||
27549 | ac_header_preproc=no | ||
27550 | fi | ||
27551 | |||
27552 | rm -f conftest.err conftest.$ac_ext | ||
27553 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27554 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27555 | |||
27556 | # So? What about this header? | ||
27557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27558 | yes:no: ) | ||
27559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27563 | ac_header_preproc=yes | ||
27564 | ;; | ||
27565 | no:yes:* ) | ||
27566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27578 | ( cat <<\_ASBOX | ||
27579 | ## ------------------------------------------- ## | ||
27580 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27581 | ## ------------------------------------------- ## | ||
27582 | _ASBOX | ||
27583 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27584 | ;; | ||
27585 | esac | ||
27586 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27590 | else | ||
27591 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27592 | fi | ||
27593 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27595 | echo "${ECHO_T}$ac_res" >&6; } | ||
27596 | |||
27597 | fi | ||
27598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27599 | cat >>confdefs.h <<_ACEOF | ||
27600 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27601 | _ACEOF | ||
27602 | |||
27603 | fi | ||
27604 | |||
27605 | done | ||
27606 | |||
27607 | |||
27608 | |||
27609 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
27610 | do | ||
27611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27613 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27615 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27617 | fi | ||
27618 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27619 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27620 | echo "${ECHO_T}$ac_res" >&6; } | ||
27621 | else | ||
27622 | # Is the header compilable? | ||
27623 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27624 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27625 | cat >conftest.$ac_ext <<_ACEOF | ||
27626 | /* confdefs.h. */ | ||
27627 | _ACEOF | ||
27628 | cat confdefs.h >>conftest.$ac_ext | ||
27629 | cat >>conftest.$ac_ext <<_ACEOF | ||
27630 | /* end confdefs.h. */ | ||
27631 | $ac_includes_default | ||
27632 | #include <$ac_header> | ||
27633 | _ACEOF | ||
27634 | rm -f conftest.$ac_objext | ||
27635 | if { (ac_try="$ac_compile" | ||
27636 | case "(($ac_try" in | ||
27637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27638 | *) ac_try_echo=$ac_try;; | ||
27639 | esac | ||
27640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27641 | (eval "$ac_compile") 2>conftest.er1 | ||
27642 | ac_status=$? | ||
27643 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27644 | rm -f conftest.er1 | ||
27645 | cat conftest.err >&5 | ||
27646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27647 | (exit $ac_status); } && { | ||
27648 | test -z "$ac_c_werror_flag" || | ||
27649 | test ! -s conftest.err | ||
27650 | } && test -s conftest.$ac_objext; then | ||
27651 | ac_header_compiler=yes | ||
27652 | else | ||
27653 | echo "$as_me: failed program was:" >&5 | ||
27654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27655 | |||
27656 | ac_header_compiler=no | ||
27657 | fi | ||
27658 | |||
27659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27661 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27662 | |||
27663 | # Is the header present? | ||
27664 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27666 | cat >conftest.$ac_ext <<_ACEOF | ||
27667 | /* confdefs.h. */ | ||
27668 | _ACEOF | ||
27669 | cat confdefs.h >>conftest.$ac_ext | ||
27670 | cat >>conftest.$ac_ext <<_ACEOF | ||
27671 | /* end confdefs.h. */ | ||
27672 | #include <$ac_header> | ||
27673 | _ACEOF | ||
27674 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27675 | case "(($ac_try" in | ||
27676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27677 | *) ac_try_echo=$ac_try;; | ||
27678 | esac | ||
27679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27681 | ac_status=$? | ||
27682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27683 | rm -f conftest.er1 | ||
27684 | cat conftest.err >&5 | ||
27685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27686 | (exit $ac_status); } >/dev/null && { | ||
27687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27688 | test ! -s conftest.err | ||
27689 | }; then | ||
27690 | ac_header_preproc=yes | ||
27691 | else | ||
27692 | echo "$as_me: failed program was:" >&5 | ||
27693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27694 | |||
27695 | ac_header_preproc=no | ||
27696 | fi | ||
27697 | |||
27698 | rm -f conftest.err conftest.$ac_ext | ||
27699 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27700 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27701 | |||
27702 | # So? What about this header? | ||
27703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27704 | yes:no: ) | ||
27705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27709 | ac_header_preproc=yes | ||
27710 | ;; | ||
27711 | no:yes:* ) | ||
27712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27724 | ( cat <<\_ASBOX | ||
27725 | ## ------------------------------------------- ## | ||
27726 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27727 | ## ------------------------------------------- ## | ||
27728 | _ASBOX | ||
27729 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27730 | ;; | ||
27731 | esac | ||
27732 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27736 | else | ||
27737 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27738 | fi | ||
27739 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27740 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27741 | echo "${ECHO_T}$ac_res" >&6; } | ||
27742 | |||
27743 | fi | ||
27744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27745 | cat >>confdefs.h <<_ACEOF | ||
27746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27747 | _ACEOF | ||
27748 | |||
27749 | fi | ||
27750 | |||
27751 | done | ||
27752 | |||
27753 | |||
27754 | |||
27755 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
27756 | do | ||
27757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27763 | fi | ||
27764 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27766 | echo "${ECHO_T}$ac_res" >&6; } | ||
27767 | else | ||
27768 | # Is the header compilable? | ||
27769 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27771 | cat >conftest.$ac_ext <<_ACEOF | ||
27772 | /* confdefs.h. */ | ||
27773 | _ACEOF | ||
27774 | cat confdefs.h >>conftest.$ac_ext | ||
27775 | cat >>conftest.$ac_ext <<_ACEOF | ||
27776 | /* end confdefs.h. */ | ||
27777 | $ac_includes_default | ||
27778 | #include <$ac_header> | ||
27779 | _ACEOF | ||
27780 | rm -f conftest.$ac_objext | ||
27781 | if { (ac_try="$ac_compile" | ||
27782 | case "(($ac_try" in | ||
27783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27784 | *) ac_try_echo=$ac_try;; | ||
27785 | esac | ||
27786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27787 | (eval "$ac_compile") 2>conftest.er1 | ||
27788 | ac_status=$? | ||
27789 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27790 | rm -f conftest.er1 | ||
27791 | cat conftest.err >&5 | ||
27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27793 | (exit $ac_status); } && { | ||
27794 | test -z "$ac_c_werror_flag" || | ||
27795 | test ! -s conftest.err | ||
27796 | } && test -s conftest.$ac_objext; then | ||
27797 | ac_header_compiler=yes | ||
27798 | else | ||
27799 | echo "$as_me: failed program was:" >&5 | ||
27800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27801 | |||
27802 | ac_header_compiler=no | ||
27803 | fi | ||
27804 | |||
27805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27806 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27807 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27808 | |||
27809 | # Is the header present? | ||
27810 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27811 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27812 | cat >conftest.$ac_ext <<_ACEOF | ||
27813 | /* confdefs.h. */ | ||
27814 | _ACEOF | ||
27815 | cat confdefs.h >>conftest.$ac_ext | ||
27816 | cat >>conftest.$ac_ext <<_ACEOF | ||
27817 | /* end confdefs.h. */ | ||
27818 | #include <$ac_header> | ||
27819 | _ACEOF | ||
27820 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27821 | case "(($ac_try" in | ||
27822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27823 | *) ac_try_echo=$ac_try;; | ||
27824 | esac | ||
27825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27827 | ac_status=$? | ||
27828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27829 | rm -f conftest.er1 | ||
27830 | cat conftest.err >&5 | ||
27831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27832 | (exit $ac_status); } >/dev/null && { | ||
27833 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27834 | test ! -s conftest.err | ||
27835 | }; then | ||
27836 | ac_header_preproc=yes | ||
27837 | else | ||
27838 | echo "$as_me: failed program was:" >&5 | ||
27839 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27840 | |||
27841 | ac_header_preproc=no | ||
27842 | fi | ||
27843 | |||
27844 | rm -f conftest.err conftest.$ac_ext | ||
27845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27846 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27847 | |||
27848 | # So? What about this header? | ||
27849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27850 | yes:no: ) | ||
27851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27855 | ac_header_preproc=yes | ||
27856 | ;; | ||
27857 | no:yes:* ) | ||
27858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27869 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27870 | ( cat <<\_ASBOX | ||
27871 | ## ------------------------------------------- ## | ||
27872 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27873 | ## ------------------------------------------- ## | ||
27874 | _ASBOX | ||
27875 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27876 | ;; | ||
27877 | esac | ||
27878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27882 | else | ||
27883 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27884 | fi | ||
27885 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27887 | echo "${ECHO_T}$ac_res" >&6; } | ||
27888 | |||
27889 | fi | ||
27890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27891 | cat >>confdefs.h <<_ACEOF | ||
27892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27893 | _ACEOF | ||
27894 | |||
27895 | fi | ||
27896 | |||
27897 | done | ||
27898 | |||
27899 | |||
27900 | LIBS="$LIBS $K5LIBS" | ||
27901 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
27902 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
27903 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27905 | else | ||
27906 | ac_func_search_save_LIBS=$LIBS | ||
27907 | cat >conftest.$ac_ext <<_ACEOF | ||
27908 | /* confdefs.h. */ | ||
27909 | _ACEOF | ||
27910 | cat confdefs.h >>conftest.$ac_ext | ||
27911 | cat >>conftest.$ac_ext <<_ACEOF | ||
27912 | /* end confdefs.h. */ | ||
27913 | |||
27914 | /* Override any GCC internal prototype to avoid an error. | ||
27915 | Use char because int might match the return type of a GCC | ||
27916 | builtin and then its argument prototype would still apply. */ | ||
27917 | #ifdef __cplusplus | ||
27918 | extern "C" | ||
27919 | #endif | ||
27920 | char k_hasafs (); | ||
27921 | int | ||
27922 | main () | ||
27923 | { | ||
27924 | return k_hasafs (); | ||
27925 | ; | ||
27926 | return 0; | ||
27927 | } | ||
27928 | _ACEOF | ||
27929 | for ac_lib in '' kafs; do | ||
27930 | if test -z "$ac_lib"; then | ||
27931 | ac_res="none required" | ||
27932 | else | ||
27933 | ac_res=-l$ac_lib | ||
27934 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27935 | fi | ||
27936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27937 | if { (ac_try="$ac_link" | ||
27938 | case "(($ac_try" in | ||
27939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27940 | *) ac_try_echo=$ac_try;; | ||
27941 | esac | ||
27942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27943 | (eval "$ac_link") 2>conftest.er1 | ||
27944 | ac_status=$? | ||
27945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27946 | rm -f conftest.er1 | ||
27947 | cat conftest.err >&5 | ||
27948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27949 | (exit $ac_status); } && { | ||
27950 | test -z "$ac_c_werror_flag" || | ||
27951 | test ! -s conftest.err | ||
27952 | } && test -s conftest$ac_exeext && | ||
27953 | $as_test_x conftest$ac_exeext; then | ||
27954 | ac_cv_search_k_hasafs=$ac_res | ||
27955 | else | ||
27956 | echo "$as_me: failed program was:" >&5 | ||
27957 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27958 | |||
27959 | |||
27960 | fi | ||
27961 | |||
27962 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27963 | conftest$ac_exeext | ||
27964 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27965 | break | ||
27966 | fi | ||
27967 | done | ||
27968 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27969 | : | ||
27970 | else | ||
27971 | ac_cv_search_k_hasafs=no | ||
27972 | fi | ||
27973 | rm conftest.$ac_ext | ||
27974 | LIBS=$ac_func_search_save_LIBS | ||
27975 | fi | ||
27976 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
27977 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
27978 | ac_res=$ac_cv_search_k_hasafs | ||
27979 | if test "$ac_res" != no; then | ||
27980 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27981 | |||
27982 | cat >>confdefs.h <<\_ACEOF | ||
27983 | #define USE_AFS 1 | ||
27984 | _ACEOF | ||
27985 | |||
27986 | fi | ||
27987 | |||
27988 | fi | ||
27989 | |||
27990 | |||
27991 | fi | ||
27992 | |||
27993 | |||
27994 | # Looking for programs, paths and files | ||
27995 | |||
27996 | PRIVSEP_PATH=/var/empty | ||
27997 | |||
27998 | # Check whether --with-privsep-path was given. | ||
27999 | if test "${with_privsep_path+set}" = set; then | ||
28000 | withval=$with_privsep_path; | ||
28001 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28002 | test "x${withval}" != "xyes"; then | ||
28003 | PRIVSEP_PATH=$withval | ||
28004 | fi | ||
28005 | |||
28006 | |||
28007 | fi | ||
28008 | |||
28009 | |||
28010 | |||
28011 | |||
28012 | # Check whether --with-xauth was given. | ||
28013 | if test "${with_xauth+set}" = set; then | ||
28014 | withval=$with_xauth; | ||
28015 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28016 | test "x${withval}" != "xyes"; then | ||
28017 | xauth_path=$withval | ||
28018 | fi | ||
28019 | |||
28020 | else | ||
28021 | |||
28022 | TestPath="$PATH" | ||
28023 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
28024 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
28025 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
28026 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
28027 | # Extract the first word of "xauth", so it can be a program name with args. | ||
28028 | set dummy xauth; ac_word=$2 | ||
28029 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28031 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
28032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28033 | else | ||
28034 | case $xauth_path in | ||
28035 | [\\/]* | ?:[\\/]*) | ||
28036 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
28037 | ;; | ||
28038 | *) | ||
28039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28040 | for as_dir in $TestPath | ||
28041 | do | ||
28042 | IFS=$as_save_IFS | ||
28043 | test -z "$as_dir" && as_dir=. | ||
28044 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28046 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
28047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28048 | break 2 | ||
28049 | fi | ||
28050 | done | ||
28051 | done | ||
28052 | IFS=$as_save_IFS | ||
28053 | |||
28054 | ;; | ||
28055 | esac | ||
28056 | fi | ||
28057 | xauth_path=$ac_cv_path_xauth_path | ||
28058 | if test -n "$xauth_path"; then | ||
28059 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
28060 | echo "${ECHO_T}$xauth_path" >&6; } | ||
28061 | else | ||
28062 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28063 | echo "${ECHO_T}no" >&6; } | ||
28064 | fi | ||
28065 | |||
28066 | |||
28067 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
28068 | xauth_path="/usr/openwin/bin/xauth" | ||
28069 | fi | ||
28070 | |||
28071 | |||
28072 | fi | ||
28073 | |||
28074 | |||
28075 | STRIP_OPT=-s | ||
28076 | # Check whether --enable-strip was given. | ||
28077 | if test "${enable_strip+set}" = set; then | ||
28078 | enableval=$enable_strip; | ||
28079 | if test "x$enableval" = "xno" ; then | ||
28080 | STRIP_OPT= | ||
28081 | fi | ||
28082 | |||
28083 | |||
28084 | fi | ||
28085 | |||
28086 | |||
28087 | |||
28088 | if test -z "$xauth_path" ; then | ||
28089 | XAUTH_PATH="undefined" | ||
28090 | |||
28091 | else | ||
28092 | |||
28093 | cat >>confdefs.h <<_ACEOF | ||
28094 | #define XAUTH_PATH "$xauth_path" | ||
28095 | _ACEOF | ||
28096 | |||
28097 | XAUTH_PATH=$xauth_path | ||
28098 | |||
28099 | fi | ||
28100 | |||
28101 | # Check for mail directory (last resort if we cannot get it from headers) | ||
28102 | if test ! -z "$MAIL" ; then | ||
28103 | maildir=`dirname $MAIL` | ||
28104 | |||
28105 | cat >>confdefs.h <<_ACEOF | ||
28106 | #define MAIL_DIRECTORY "$maildir" | ||
28107 | _ACEOF | ||
28108 | |||
28109 | fi | ||
28110 | |||
28111 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
28112 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
28113 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
28114 | disable_ptmx_check=yes | ||
28115 | fi | ||
28116 | if test -z "$no_dev_ptmx" ; then | ||
28117 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
28118 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
28119 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
28120 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
28121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28122 | else | ||
28123 | test "$cross_compiling" = yes && | ||
28124 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28125 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28126 | { (exit 1); exit 1; }; } | ||
28127 | if test -r ""/dev/ptmx""; then | ||
28128 | ac_cv_file___dev_ptmx_=yes | ||
28129 | else | ||
28130 | ac_cv_file___dev_ptmx_=no | ||
28131 | fi | ||
28132 | fi | ||
28133 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
28134 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
28135 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
28136 | |||
28137 | |||
28138 | cat >>confdefs.h <<_ACEOF | ||
28139 | #define HAVE_DEV_PTMX 1 | ||
28140 | _ACEOF | ||
28141 | |||
28142 | have_dev_ptmx=1 | ||
28143 | |||
28144 | |||
28145 | fi | ||
28146 | |||
28147 | fi | ||
28148 | fi | ||
28149 | |||
28150 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
28151 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
28152 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
28153 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
28154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28155 | else | ||
28156 | test "$cross_compiling" = yes && | ||
28157 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28158 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28159 | { (exit 1); exit 1; }; } | ||
28160 | if test -r ""/dev/ptc""; then | ||
28161 | ac_cv_file___dev_ptc_=yes | ||
28162 | else | ||
28163 | ac_cv_file___dev_ptc_=no | ||
28164 | fi | ||
28165 | fi | ||
28166 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
28167 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
28168 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
28169 | |||
28170 | |||
28171 | cat >>confdefs.h <<_ACEOF | ||
28172 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
28173 | _ACEOF | ||
28174 | |||
28175 | have_dev_ptc=1 | ||
28176 | |||
28177 | |||
28178 | fi | ||
28179 | |||
28180 | else | ||
28181 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
28182 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
28183 | fi | ||
28184 | |||
28185 | # Options from here on. Some of these are preset by platform above | ||
28186 | |||
28187 | # Check whether --with-mantype was given. | ||
28188 | if test "${with_mantype+set}" = set; then | ||
28189 | withval=$with_mantype; | ||
28190 | case "$withval" in | ||
28191 | man|cat|doc) | ||
28192 | MANTYPE=$withval | ||
28193 | ;; | ||
28194 | *) | ||
28195 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
28196 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
28197 | { (exit 1); exit 1; }; } | ||
28198 | ;; | ||
28199 | esac | ||
28200 | |||
28201 | |||
28202 | fi | ||
28203 | |||
28204 | if test -z "$MANTYPE"; then | ||
28205 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
28206 | for ac_prog in nroff awf | ||
28207 | do | ||
28208 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
28209 | set dummy $ac_prog; ac_word=$2 | ||
28210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28212 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
28213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28214 | else | ||
28215 | case $NROFF in | ||
28216 | [\\/]* | ?:[\\/]*) | ||
28217 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
28218 | ;; | ||
28219 | *) | ||
28220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28221 | for as_dir in $TestPath | ||
28222 | do | ||
28223 | IFS=$as_save_IFS | ||
28224 | test -z "$as_dir" && as_dir=. | ||
28225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28227 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
28228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28229 | break 2 | ||
28230 | fi | ||
28231 | done | ||
28232 | done | ||
28233 | IFS=$as_save_IFS | ||
28234 | |||
28235 | ;; | ||
28236 | esac | ||
28237 | fi | ||
28238 | NROFF=$ac_cv_path_NROFF | ||
28239 | if test -n "$NROFF"; then | ||
28240 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
28241 | echo "${ECHO_T}$NROFF" >&6; } | ||
28242 | else | ||
28243 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28244 | echo "${ECHO_T}no" >&6; } | ||
28245 | fi | ||
28246 | |||
28247 | |||
28248 | test -n "$NROFF" && break | ||
28249 | done | ||
28250 | test -n "$NROFF" || NROFF="/bin/false" | ||
28251 | |||
28252 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28253 | MANTYPE=doc | ||
28254 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28255 | MANTYPE=man | ||
28256 | else | ||
28257 | MANTYPE=cat | ||
28258 | fi | ||
28259 | fi | ||
28260 | |||
28261 | if test "$MANTYPE" = "doc"; then | ||
28262 | mansubdir=man; | ||
28263 | else | ||
28264 | mansubdir=$MANTYPE; | ||
28265 | fi | ||
28266 | |||
28267 | |||
28268 | # Check whether to enable MD5 passwords | ||
28269 | MD5_MSG="no" | ||
28270 | |||
28271 | # Check whether --with-md5-passwords was given. | ||
28272 | if test "${with_md5_passwords+set}" = set; then | ||
28273 | withval=$with_md5_passwords; | ||
28274 | if test "x$withval" != "xno" ; then | ||
28275 | |||
28276 | cat >>confdefs.h <<\_ACEOF | ||
28277 | #define HAVE_MD5_PASSWORDS 1 | ||
28278 | _ACEOF | ||
28279 | |||
28280 | MD5_MSG="yes" | ||
28281 | fi | ||
28282 | |||
28283 | |||
28284 | fi | ||
28285 | |||
28286 | |||
28287 | # Whether to disable shadow password support | ||
28288 | |||
28289 | # Check whether --with-shadow was given. | ||
28290 | if test "${with_shadow+set}" = set; then | ||
28291 | withval=$with_shadow; | ||
28292 | if test "x$withval" = "xno" ; then | ||
28293 | cat >>confdefs.h <<\_ACEOF | ||
28294 | #define DISABLE_SHADOW 1 | ||
28295 | _ACEOF | ||
28296 | |||
28297 | disable_shadow=yes | ||
28298 | fi | ||
28299 | |||
28300 | |||
28301 | fi | ||
28302 | |||
28303 | |||
28304 | if test -z "$disable_shadow" ; then | ||
28305 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
28306 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
28307 | cat >conftest.$ac_ext <<_ACEOF | ||
28308 | /* confdefs.h. */ | ||
28309 | _ACEOF | ||
28310 | cat confdefs.h >>conftest.$ac_ext | ||
28311 | cat >>conftest.$ac_ext <<_ACEOF | ||
28312 | /* end confdefs.h. */ | ||
28313 | |||
28314 | #include <sys/types.h> | ||
28315 | #include <shadow.h> | ||
28316 | struct spwd sp; | ||
28317 | |||
28318 | int | ||
28319 | main () | ||
28320 | { | ||
28321 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
28322 | ; | ||
28323 | return 0; | ||
28324 | } | ||
28325 | _ACEOF | ||
28326 | rm -f conftest.$ac_objext | ||
28327 | if { (ac_try="$ac_compile" | ||
28328 | case "(($ac_try" in | ||
28329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28330 | *) ac_try_echo=$ac_try;; | ||
28331 | esac | ||
28332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28333 | (eval "$ac_compile") 2>conftest.er1 | ||
28334 | ac_status=$? | ||
28335 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28336 | rm -f conftest.er1 | ||
28337 | cat conftest.err >&5 | ||
28338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28339 | (exit $ac_status); } && { | ||
28340 | test -z "$ac_c_werror_flag" || | ||
28341 | test ! -s conftest.err | ||
28342 | } && test -s conftest.$ac_objext; then | ||
28343 | sp_expire_available=yes | ||
28344 | else | ||
28345 | echo "$as_me: failed program was:" >&5 | ||
28346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28347 | |||
28348 | |||
28349 | |||
28350 | fi | ||
28351 | |||
28352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28353 | |||
28354 | if test "x$sp_expire_available" = "xyes" ; then | ||
28355 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28356 | echo "${ECHO_T}yes" >&6; } | ||
28357 | |||
28358 | cat >>confdefs.h <<\_ACEOF | ||
28359 | #define HAS_SHADOW_EXPIRE 1 | ||
28360 | _ACEOF | ||
28361 | |||
28362 | else | ||
28363 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28364 | echo "${ECHO_T}no" >&6; } | ||
28365 | fi | ||
28366 | fi | ||
28367 | |||
28368 | # Use ip address instead of hostname in $DISPLAY | ||
28369 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
28370 | DISPLAY_HACK_MSG="yes" | ||
28371 | |||
28372 | cat >>confdefs.h <<\_ACEOF | ||
28373 | #define IPADDR_IN_DISPLAY 1 | ||
28374 | _ACEOF | ||
28375 | |||
28376 | else | ||
28377 | DISPLAY_HACK_MSG="no" | ||
28378 | |||
28379 | # Check whether --with-ipaddr-display was given. | ||
28380 | if test "${with_ipaddr_display+set}" = set; then | ||
28381 | withval=$with_ipaddr_display; | ||
28382 | if test "x$withval" != "xno" ; then | ||
28383 | cat >>confdefs.h <<\_ACEOF | ||
28384 | #define IPADDR_IN_DISPLAY 1 | ||
28385 | _ACEOF | ||
28386 | |||
28387 | DISPLAY_HACK_MSG="yes" | ||
28388 | fi | ||
28389 | |||
28390 | |||
28391 | fi | ||
28392 | |||
28393 | fi | ||
28394 | |||
28395 | # check for /etc/default/login and use it if present. | ||
28396 | # Check whether --enable-etc-default-login was given. | ||
28397 | if test "${enable_etc_default_login+set}" = set; then | ||
28398 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
28399 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
28400 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
28401 | etc_default_login=no | ||
28402 | else | ||
28403 | etc_default_login=yes | ||
28404 | fi | ||
28405 | else | ||
28406 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
28407 | then | ||
28408 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
28409 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
28410 | etc_default_login=no | ||
28411 | else | ||
28412 | etc_default_login=yes | ||
28413 | fi | ||
28414 | |||
28415 | fi | ||
28416 | |||
28417 | |||
28418 | if test "x$etc_default_login" != "xno"; then | ||
28419 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
28420 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
28421 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
28422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28423 | else | ||
28424 | test "$cross_compiling" = yes && | ||
28425 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28426 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28427 | { (exit 1); exit 1; }; } | ||
28428 | if test -r ""/etc/default/login""; then | ||
28429 | ac_cv_file___etc_default_login_=yes | ||
28430 | else | ||
28431 | ac_cv_file___etc_default_login_=no | ||
28432 | fi | ||
28433 | fi | ||
28434 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
28435 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
28436 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
28437 | external_path_file=/etc/default/login | ||
28438 | fi | ||
28439 | |||
28440 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
28441 | |||
28442 | cat >>confdefs.h <<\_ACEOF | ||
28443 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
28444 | _ACEOF | ||
28445 | |||
28446 | fi | ||
28447 | fi | ||
28448 | |||
28449 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
28450 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
28451 | external_path_file=/etc/login.conf | ||
28452 | fi | ||
28453 | |||
28454 | # Whether to mess with the default path | ||
28455 | SERVER_PATH_MSG="(default)" | ||
28456 | |||
28457 | # Check whether --with-default-path was given. | ||
28458 | if test "${with_default_path+set}" = set; then | ||
28459 | withval=$with_default_path; | ||
28460 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28461 | { echo "$as_me:$LINENO: WARNING: | ||
28462 | --with-default-path=PATH has no effect on this system. | ||
28463 | Edit /etc/login.conf instead." >&5 | ||
28464 | echo "$as_me: WARNING: | ||
28465 | --with-default-path=PATH has no effect on this system. | ||
28466 | Edit /etc/login.conf instead." >&2;} | ||
28467 | elif test "x$withval" != "xno" ; then | ||
28468 | if test ! -z "$external_path_file" ; then | ||
28469 | { echo "$as_me:$LINENO: WARNING: | ||
28470 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28471 | $external_path_file ." >&5 | ||
28472 | echo "$as_me: WARNING: | ||
28473 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28474 | $external_path_file ." >&2;} | ||
28475 | fi | ||
28476 | user_path="$withval" | ||
28477 | SERVER_PATH_MSG="$withval" | ||
28478 | fi | ||
28479 | |||
28480 | else | ||
28481 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28482 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
28483 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
28484 | else | ||
28485 | if test ! -z "$external_path_file" ; then | ||
28486 | { echo "$as_me:$LINENO: WARNING: | ||
28487 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28488 | otherwise scp will not work." >&5 | ||
28489 | echo "$as_me: WARNING: | ||
28490 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28491 | otherwise scp will not work." >&2;} | ||
28492 | fi | ||
28493 | if test "$cross_compiling" = yes; then | ||
28494 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28495 | |||
28496 | else | ||
28497 | cat >conftest.$ac_ext <<_ACEOF | ||
28498 | /* confdefs.h. */ | ||
28499 | _ACEOF | ||
28500 | cat confdefs.h >>conftest.$ac_ext | ||
28501 | cat >>conftest.$ac_ext <<_ACEOF | ||
28502 | /* end confdefs.h. */ | ||
28503 | |||
28504 | /* find out what STDPATH is */ | ||
28505 | #include <stdio.h> | ||
28506 | #ifdef HAVE_PATHS_H | ||
28507 | # include <paths.h> | ||
28508 | #endif | ||
28509 | #ifndef _PATH_STDPATH | ||
28510 | # ifdef _PATH_USERPATH /* Irix */ | ||
28511 | # define _PATH_STDPATH _PATH_USERPATH | ||
28512 | # else | ||
28513 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
28514 | # endif | ||
28515 | #endif | ||
28516 | #include <sys/types.h> | ||
28517 | #include <sys/stat.h> | ||
28518 | #include <fcntl.h> | ||
28519 | #define DATA "conftest.stdpath" | ||
28520 | |||
28521 | main() | ||
28522 | { | ||
28523 | FILE *fd; | ||
28524 | int rc; | ||
28525 | |||
28526 | fd = fopen(DATA,"w"); | ||
28527 | if(fd == NULL) | ||
28528 | exit(1); | ||
28529 | |||
28530 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
28531 | exit(1); | ||
28532 | |||
28533 | exit(0); | ||
28534 | } | ||
28535 | |||
28536 | _ACEOF | ||
28537 | rm -f conftest$ac_exeext | ||
28538 | if { (ac_try="$ac_link" | ||
28539 | case "(($ac_try" in | ||
28540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28541 | *) ac_try_echo=$ac_try;; | ||
28542 | esac | ||
28543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28544 | (eval "$ac_link") 2>&5 | ||
28545 | ac_status=$? | ||
28546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28548 | { (case "(($ac_try" in | ||
28549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28550 | *) ac_try_echo=$ac_try;; | ||
28551 | esac | ||
28552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28553 | (eval "$ac_try") 2>&5 | ||
28554 | ac_status=$? | ||
28555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28556 | (exit $ac_status); }; }; then | ||
28557 | user_path=`cat conftest.stdpath` | ||
28558 | else | ||
28559 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28560 | echo "$as_me: failed program was:" >&5 | ||
28561 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28562 | |||
28563 | ( exit $ac_status ) | ||
28564 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28565 | fi | ||
28566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28567 | fi | ||
28568 | |||
28569 | |||
28570 | # make sure $bindir is in USER_PATH so scp will work | ||
28571 | t_bindir=`eval echo ${bindir}` | ||
28572 | case $t_bindir in | ||
28573 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
28574 | esac | ||
28575 | case $t_bindir in | ||
28576 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28577 | esac | ||
28578 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
28579 | if test $? -ne 0 ; then | ||
28580 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
28581 | if test $? -ne 0 ; then | ||
28582 | user_path=$user_path:$t_bindir | ||
28583 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
28584 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
28585 | fi | ||
28586 | fi | ||
28587 | fi | ||
28588 | |||
28589 | fi | ||
28590 | |||
28591 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
28592 | |||
28593 | cat >>confdefs.h <<_ACEOF | ||
28594 | #define USER_PATH "$user_path" | ||
28595 | _ACEOF | ||
28596 | |||
28597 | |||
28598 | fi | ||
28599 | |||
28600 | # Set superuser path separately to user path | ||
28601 | |||
28602 | # Check whether --with-superuser-path was given. | ||
28603 | if test "${with_superuser_path+set}" = set; then | ||
28604 | withval=$with_superuser_path; | ||
28605 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28606 | test "x${withval}" != "xyes"; then | ||
28607 | |||
28608 | cat >>confdefs.h <<_ACEOF | ||
28609 | #define SUPERUSER_PATH "$withval" | ||
28610 | _ACEOF | ||
28611 | |||
28612 | superuser_path=$withval | ||
28613 | fi | ||
28614 | |||
28615 | |||
28616 | fi | ||
28617 | |||
28618 | |||
28619 | |||
28620 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
28621 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
28622 | IPV4_IN6_HACK_MSG="no" | ||
28623 | |||
28624 | # Check whether --with-4in6 was given. | ||
28625 | if test "${with_4in6+set}" = set; then | ||
28626 | withval=$with_4in6; | ||
28627 | if test "x$withval" != "xno" ; then | ||
28628 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28629 | echo "${ECHO_T}yes" >&6; } | ||
28630 | |||
28631 | cat >>confdefs.h <<\_ACEOF | ||
28632 | #define IPV4_IN_IPV6 1 | ||
28633 | _ACEOF | ||
28634 | |||
28635 | IPV4_IN6_HACK_MSG="yes" | ||
28636 | else | ||
28637 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28638 | echo "${ECHO_T}no" >&6; } | ||
28639 | fi | ||
28640 | |||
28641 | else | ||
28642 | |||
28643 | if test "x$inet6_default_4in6" = "xyes"; then | ||
28644 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
28645 | echo "${ECHO_T}yes (default)" >&6; } | ||
28646 | cat >>confdefs.h <<\_ACEOF | ||
28647 | #define IPV4_IN_IPV6 1 | ||
28648 | _ACEOF | ||
28649 | |||
28650 | IPV4_IN6_HACK_MSG="yes" | ||
28651 | else | ||
28652 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
28653 | echo "${ECHO_T}no (default)" >&6; } | ||
28654 | fi | ||
28655 | |||
28656 | |||
28657 | fi | ||
28658 | |||
28659 | |||
28660 | # Whether to enable BSD auth support | ||
28661 | BSD_AUTH_MSG=no | ||
28662 | |||
28663 | # Check whether --with-bsd-auth was given. | ||
28664 | if test "${with_bsd_auth+set}" = set; then | ||
28665 | withval=$with_bsd_auth; | ||
28666 | if test "x$withval" != "xno" ; then | ||
28667 | |||
28668 | cat >>confdefs.h <<\_ACEOF | ||
28669 | #define BSD_AUTH 1 | ||
28670 | _ACEOF | ||
28671 | |||
28672 | BSD_AUTH_MSG=yes | ||
28673 | fi | ||
28674 | |||
28675 | |||
28676 | fi | ||
28677 | |||
28678 | |||
28679 | # Where to place sshd.pid | ||
28680 | piddir=/var/run | ||
28681 | # make sure the directory exists | ||
28682 | if test ! -d $piddir ; then | ||
28683 | piddir=`eval echo ${sysconfdir}` | ||
28684 | case $piddir in | ||
28685 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28686 | esac | ||
28687 | fi | ||
28688 | |||
28689 | |||
28690 | # Check whether --with-pid-dir was given. | ||
28691 | if test "${with_pid_dir+set}" = set; then | ||
28692 | withval=$with_pid_dir; | ||
28693 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28694 | test "x${withval}" != "xyes"; then | ||
28695 | piddir=$withval | ||
28696 | if test ! -d $piddir ; then | ||
28697 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
28698 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
28699 | fi | ||
28700 | fi | ||
28701 | |||
28702 | |||
28703 | fi | ||
28704 | |||
28705 | |||
28706 | |||
28707 | cat >>confdefs.h <<_ACEOF | ||
28708 | #define _PATH_SSH_PIDDIR "$piddir" | ||
28709 | _ACEOF | ||
28710 | |||
28711 | |||
28712 | |||
28713 | # Check whether --enable-lastlog was given. | ||
28714 | if test "${enable_lastlog+set}" = set; then | ||
28715 | enableval=$enable_lastlog; | ||
28716 | if test "x$enableval" = "xno" ; then | ||
28717 | cat >>confdefs.h <<\_ACEOF | ||
28718 | #define DISABLE_LASTLOG 1 | ||
28719 | _ACEOF | ||
28720 | |||
28721 | fi | ||
28722 | |||
28723 | |||
28724 | fi | ||
28725 | |||
28726 | # Check whether --enable-utmp was given. | ||
28727 | if test "${enable_utmp+set}" = set; then | ||
28728 | enableval=$enable_utmp; | ||
28729 | if test "x$enableval" = "xno" ; then | ||
28730 | cat >>confdefs.h <<\_ACEOF | ||
28731 | #define DISABLE_UTMP 1 | ||
28732 | _ACEOF | ||
28733 | |||
28734 | fi | ||
28735 | |||
28736 | |||
28737 | fi | ||
28738 | |||
28739 | # Check whether --enable-utmpx was given. | ||
28740 | if test "${enable_utmpx+set}" = set; then | ||
28741 | enableval=$enable_utmpx; | ||
28742 | if test "x$enableval" = "xno" ; then | ||
28743 | |||
28744 | cat >>confdefs.h <<\_ACEOF | ||
28745 | #define DISABLE_UTMPX 1 | ||
28746 | _ACEOF | ||
28747 | |||
28748 | fi | ||
28749 | |||
28750 | |||
28751 | fi | ||
28752 | |||
28753 | # Check whether --enable-wtmp was given. | ||
28754 | if test "${enable_wtmp+set}" = set; then | ||
28755 | enableval=$enable_wtmp; | ||
28756 | if test "x$enableval" = "xno" ; then | ||
28757 | cat >>confdefs.h <<\_ACEOF | ||
28758 | #define DISABLE_WTMP 1 | ||
28759 | _ACEOF | ||
28760 | |||
28761 | fi | ||
28762 | |||
28763 | |||
28764 | fi | ||
28765 | |||
28766 | # Check whether --enable-wtmpx was given. | ||
28767 | if test "${enable_wtmpx+set}" = set; then | ||
28768 | enableval=$enable_wtmpx; | ||
28769 | if test "x$enableval" = "xno" ; then | ||
28770 | |||
28771 | cat >>confdefs.h <<\_ACEOF | ||
28772 | #define DISABLE_WTMPX 1 | ||
28773 | _ACEOF | ||
28774 | |||
28775 | fi | ||
28776 | |||
28777 | |||
28778 | fi | ||
28779 | |||
28780 | # Check whether --enable-libutil was given. | ||
28781 | if test "${enable_libutil+set}" = set; then | ||
28782 | enableval=$enable_libutil; | ||
28783 | if test "x$enableval" = "xno" ; then | ||
28784 | cat >>confdefs.h <<\_ACEOF | ||
28785 | #define DISABLE_LOGIN 1 | ||
28786 | _ACEOF | ||
28787 | |||
28788 | fi | ||
28789 | |||
28790 | |||
28791 | fi | ||
28792 | |||
28793 | # Check whether --enable-pututline was given. | ||
28794 | if test "${enable_pututline+set}" = set; then | ||
28795 | enableval=$enable_pututline; | ||
28796 | if test "x$enableval" = "xno" ; then | ||
28797 | |||
28798 | cat >>confdefs.h <<\_ACEOF | ||
28799 | #define DISABLE_PUTUTLINE 1 | ||
28800 | _ACEOF | ||
28801 | |||
28802 | fi | ||
28803 | |||
28804 | |||
28805 | fi | ||
28806 | |||
28807 | # Check whether --enable-pututxline was given. | ||
28808 | if test "${enable_pututxline+set}" = set; then | ||
28809 | enableval=$enable_pututxline; | ||
28810 | if test "x$enableval" = "xno" ; then | ||
28811 | |||
28812 | cat >>confdefs.h <<\_ACEOF | ||
28813 | #define DISABLE_PUTUTXLINE 1 | ||
28814 | _ACEOF | ||
28815 | |||
28816 | fi | ||
28817 | |||
28818 | |||
28819 | fi | ||
28820 | |||
28821 | |||
28822 | # Check whether --with-lastlog was given. | ||
28823 | if test "${with_lastlog+set}" = set; then | ||
28824 | withval=$with_lastlog; | ||
28825 | if test "x$withval" = "xno" ; then | ||
28826 | cat >>confdefs.h <<\_ACEOF | ||
28827 | #define DISABLE_LASTLOG 1 | ||
28828 | _ACEOF | ||
28829 | |||
28830 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
28831 | conf_lastlog_location=$withval | ||
28832 | fi | ||
28833 | |||
28834 | |||
28835 | fi | ||
28836 | |||
28837 | |||
28838 | |||
28839 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
28840 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
28841 | cat >conftest.$ac_ext <<_ACEOF | ||
28842 | /* confdefs.h. */ | ||
28843 | _ACEOF | ||
28844 | cat confdefs.h >>conftest.$ac_ext | ||
28845 | cat >>conftest.$ac_ext <<_ACEOF | ||
28846 | /* end confdefs.h. */ | ||
28847 | |||
28848 | #include <sys/types.h> | ||
28849 | #include <utmp.h> | ||
28850 | #ifdef HAVE_LASTLOG_H | ||
28851 | # include <lastlog.h> | ||
28852 | #endif | ||
28853 | #ifdef HAVE_PATHS_H | ||
28854 | # include <paths.h> | ||
28855 | #endif | ||
28856 | #ifdef HAVE_LOGIN_H | ||
28857 | # include <login.h> | ||
28858 | #endif | ||
28859 | |||
28860 | int | ||
28861 | main () | ||
28862 | { | ||
28863 | char *lastlog = LASTLOG_FILE; | ||
28864 | ; | ||
28865 | return 0; | ||
28866 | } | ||
28867 | _ACEOF | ||
28868 | rm -f conftest.$ac_objext | ||
28869 | if { (ac_try="$ac_compile" | ||
28870 | case "(($ac_try" in | ||
28871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28872 | *) ac_try_echo=$ac_try;; | ||
28873 | esac | ||
28874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28875 | (eval "$ac_compile") 2>conftest.er1 | ||
28876 | ac_status=$? | ||
28877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28878 | rm -f conftest.er1 | ||
28879 | cat conftest.err >&5 | ||
28880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28881 | (exit $ac_status); } && { | ||
28882 | test -z "$ac_c_werror_flag" || | ||
28883 | test ! -s conftest.err | ||
28884 | } && test -s conftest.$ac_objext; then | ||
28885 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28886 | echo "${ECHO_T}yes" >&6; } | ||
28887 | else | ||
28888 | echo "$as_me: failed program was:" >&5 | ||
28889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28890 | |||
28891 | |||
28892 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28893 | echo "${ECHO_T}no" >&6; } | ||
28894 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
28895 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
28896 | cat >conftest.$ac_ext <<_ACEOF | ||
28897 | /* confdefs.h. */ | ||
28898 | _ACEOF | ||
28899 | cat confdefs.h >>conftest.$ac_ext | ||
28900 | cat >>conftest.$ac_ext <<_ACEOF | ||
28901 | /* end confdefs.h. */ | ||
28902 | |||
28903 | #include <sys/types.h> | ||
28904 | #include <utmp.h> | ||
28905 | #ifdef HAVE_LASTLOG_H | ||
28906 | # include <lastlog.h> | ||
28907 | #endif | ||
28908 | #ifdef HAVE_PATHS_H | ||
28909 | # include <paths.h> | ||
28910 | #endif | ||
28911 | |||
28912 | int | ||
28913 | main () | ||
28914 | { | ||
28915 | char *lastlog = _PATH_LASTLOG; | ||
28916 | ; | ||
28917 | return 0; | ||
28918 | } | ||
28919 | _ACEOF | ||
28920 | rm -f conftest.$ac_objext | ||
28921 | if { (ac_try="$ac_compile" | ||
28922 | case "(($ac_try" in | ||
28923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28924 | *) ac_try_echo=$ac_try;; | ||
28925 | esac | ||
28926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28927 | (eval "$ac_compile") 2>conftest.er1 | ||
28928 | ac_status=$? | ||
28929 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28930 | rm -f conftest.er1 | ||
28931 | cat conftest.err >&5 | ||
28932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28933 | (exit $ac_status); } && { | ||
28934 | test -z "$ac_c_werror_flag" || | ||
28935 | test ! -s conftest.err | ||
28936 | } && test -s conftest.$ac_objext; then | ||
28937 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28938 | echo "${ECHO_T}yes" >&6; } | ||
28939 | else | ||
28940 | echo "$as_me: failed program was:" >&5 | ||
28941 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28942 | |||
28943 | |||
28944 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28945 | echo "${ECHO_T}no" >&6; } | ||
28946 | system_lastlog_path=no | ||
28947 | |||
28948 | fi | ||
28949 | |||
28950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28951 | |||
28952 | |||
28953 | fi | ||
28954 | |||
28955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28956 | |||
28957 | if test -z "$conf_lastlog_location"; then | ||
28958 | if test x"$system_lastlog_path" = x"no" ; then | ||
28959 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
28960 | if (test -d "$f" || test -f "$f") ; then | ||
28961 | conf_lastlog_location=$f | ||
28962 | fi | ||
28963 | done | ||
28964 | if test -z "$conf_lastlog_location"; then | ||
28965 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
28966 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
28967 | fi | ||
28968 | fi | ||
28969 | fi | ||
28970 | |||
28971 | if test -n "$conf_lastlog_location"; then | ||
28972 | |||
28973 | cat >>confdefs.h <<_ACEOF | ||
28974 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
28975 | _ACEOF | ||
28976 | |||
28977 | fi | ||
28978 | |||
28979 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
28980 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
28981 | cat >conftest.$ac_ext <<_ACEOF | ||
28982 | /* confdefs.h. */ | ||
28983 | _ACEOF | ||
28984 | cat confdefs.h >>conftest.$ac_ext | ||
28985 | cat >>conftest.$ac_ext <<_ACEOF | ||
28986 | /* end confdefs.h. */ | ||
28987 | |||
28988 | #include <sys/types.h> | ||
28989 | #include <utmp.h> | ||
28990 | #ifdef HAVE_PATHS_H | ||
28991 | # include <paths.h> | ||
28992 | #endif | ||
28993 | |||
28994 | int | ||
28995 | main () | ||
28996 | { | ||
28997 | char *utmp = UTMP_FILE; | ||
28998 | ; | ||
28999 | return 0; | ||
29000 | } | ||
29001 | _ACEOF | ||
29002 | rm -f conftest.$ac_objext | ||
29003 | if { (ac_try="$ac_compile" | ||
29004 | case "(($ac_try" in | ||
29005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29006 | *) ac_try_echo=$ac_try;; | ||
29007 | esac | ||
29008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29009 | (eval "$ac_compile") 2>conftest.er1 | ||
29010 | ac_status=$? | ||
29011 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29012 | rm -f conftest.er1 | ||
29013 | cat conftest.err >&5 | ||
29014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29015 | (exit $ac_status); } && { | ||
29016 | test -z "$ac_c_werror_flag" || | ||
29017 | test ! -s conftest.err | ||
29018 | } && test -s conftest.$ac_objext; then | ||
29019 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29020 | echo "${ECHO_T}yes" >&6; } | ||
29021 | else | ||
29022 | echo "$as_me: failed program was:" >&5 | ||
29023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29024 | |||
29025 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29026 | echo "${ECHO_T}no" >&6; } | ||
29027 | system_utmp_path=no | ||
29028 | |||
29029 | fi | ||
29030 | |||
29031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29032 | if test -z "$conf_utmp_location"; then | ||
29033 | if test x"$system_utmp_path" = x"no" ; then | ||
29034 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
29035 | if test -f $f ; then | ||
29036 | conf_utmp_location=$f | ||
29037 | fi | ||
29038 | done | ||
29039 | if test -z "$conf_utmp_location"; then | ||
29040 | cat >>confdefs.h <<\_ACEOF | ||
29041 | #define DISABLE_UTMP 1 | ||
29042 | _ACEOF | ||
29043 | |||
29044 | fi | ||
29045 | fi | ||
29046 | fi | ||
29047 | if test -n "$conf_utmp_location"; then | ||
29048 | |||
29049 | cat >>confdefs.h <<_ACEOF | ||
29050 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
29051 | _ACEOF | ||
29052 | |||
29053 | fi | ||
29054 | |||
29055 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
29056 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
29057 | cat >conftest.$ac_ext <<_ACEOF | ||
29058 | /* confdefs.h. */ | ||
29059 | _ACEOF | ||
29060 | cat confdefs.h >>conftest.$ac_ext | ||
29061 | cat >>conftest.$ac_ext <<_ACEOF | ||
29062 | /* end confdefs.h. */ | ||
29063 | |||
29064 | #include <sys/types.h> | ||
29065 | #include <utmp.h> | ||
29066 | #ifdef HAVE_PATHS_H | ||
29067 | # include <paths.h> | ||
29068 | #endif | ||
29069 | |||
29070 | int | ||
29071 | main () | ||
29072 | { | ||
29073 | char *wtmp = WTMP_FILE; | ||
29074 | ; | ||
29075 | return 0; | ||
29076 | } | ||
29077 | _ACEOF | ||
29078 | rm -f conftest.$ac_objext | ||
29079 | if { (ac_try="$ac_compile" | ||
29080 | case "(($ac_try" in | ||
29081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29082 | *) ac_try_echo=$ac_try;; | ||
29083 | esac | ||
29084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29085 | (eval "$ac_compile") 2>conftest.er1 | ||
29086 | ac_status=$? | ||
29087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29088 | rm -f conftest.er1 | ||
29089 | cat conftest.err >&5 | ||
29090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29091 | (exit $ac_status); } && { | ||
29092 | test -z "$ac_c_werror_flag" || | ||
29093 | test ! -s conftest.err | ||
29094 | } && test -s conftest.$ac_objext; then | ||
29095 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29096 | echo "${ECHO_T}yes" >&6; } | ||
29097 | else | ||
29098 | echo "$as_me: failed program was:" >&5 | ||
29099 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29100 | |||
29101 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29102 | echo "${ECHO_T}no" >&6; } | ||
29103 | system_wtmp_path=no | ||
29104 | |||
29105 | fi | ||
29106 | |||
29107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29108 | if test -z "$conf_wtmp_location"; then | ||
29109 | if test x"$system_wtmp_path" = x"no" ; then | ||
29110 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
29111 | if test -f $f ; then | ||
29112 | conf_wtmp_location=$f | ||
29113 | fi | ||
29114 | done | ||
29115 | if test -z "$conf_wtmp_location"; then | ||
29116 | cat >>confdefs.h <<\_ACEOF | ||
29117 | #define DISABLE_WTMP 1 | ||
29118 | _ACEOF | ||
29119 | |||
29120 | fi | ||
29121 | fi | ||
29122 | fi | ||
29123 | if test -n "$conf_wtmp_location"; then | ||
29124 | |||
29125 | cat >>confdefs.h <<_ACEOF | ||
29126 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
29127 | _ACEOF | ||
29128 | |||
29129 | fi | ||
29130 | |||
29131 | |||
29132 | { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
29133 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } | ||
29134 | cat >conftest.$ac_ext <<_ACEOF | ||
29135 | /* confdefs.h. */ | ||
29136 | _ACEOF | ||
29137 | cat confdefs.h >>conftest.$ac_ext | ||
29138 | cat >>conftest.$ac_ext <<_ACEOF | ||
29139 | /* end confdefs.h. */ | ||
29140 | |||
29141 | #include <sys/types.h> | ||
29142 | #include <utmp.h> | ||
29143 | #ifdef HAVE_UTMPX_H | ||
29144 | #include <utmpx.h> | ||
29145 | #endif | ||
29146 | #ifdef HAVE_PATHS_H | ||
29147 | # include <paths.h> | ||
29148 | #endif | ||
29149 | |||
29150 | int | ||
29151 | main () | ||
29152 | { | ||
29153 | char *utmpx = UTMPX_FILE; | ||
29154 | ; | ||
29155 | return 0; | ||
29156 | } | ||
29157 | _ACEOF | ||
29158 | rm -f conftest.$ac_objext | ||
29159 | if { (ac_try="$ac_compile" | ||
29160 | case "(($ac_try" in | ||
29161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29162 | *) ac_try_echo=$ac_try;; | ||
29163 | esac | ||
29164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29165 | (eval "$ac_compile") 2>conftest.er1 | ||
29166 | ac_status=$? | ||
29167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29168 | rm -f conftest.er1 | ||
29169 | cat conftest.err >&5 | ||
29170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29171 | (exit $ac_status); } && { | ||
29172 | test -z "$ac_c_werror_flag" || | ||
29173 | test ! -s conftest.err | ||
29174 | } && test -s conftest.$ac_objext; then | ||
29175 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29176 | echo "${ECHO_T}yes" >&6; } | ||
29177 | else | ||
29178 | echo "$as_me: failed program was:" >&5 | ||
29179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29180 | |||
29181 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29182 | echo "${ECHO_T}no" >&6; } | ||
29183 | system_utmpx_path=no | ||
29184 | |||
29185 | fi | ||
29186 | |||
29187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29188 | if test -z "$conf_utmpx_location"; then | ||
29189 | if test x"$system_utmpx_path" = x"no" ; then | ||
29190 | cat >>confdefs.h <<\_ACEOF | ||
29191 | #define DISABLE_UTMPX 1 | ||
29192 | _ACEOF | ||
29193 | |||
29194 | fi | ||
29195 | else | ||
29196 | |||
29197 | cat >>confdefs.h <<_ACEOF | ||
29198 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
29199 | _ACEOF | ||
29200 | |||
29201 | fi | ||
29202 | |||
29203 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
29204 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
29205 | cat >conftest.$ac_ext <<_ACEOF | ||
29206 | /* confdefs.h. */ | ||
29207 | _ACEOF | ||
29208 | cat confdefs.h >>conftest.$ac_ext | ||
29209 | cat >>conftest.$ac_ext <<_ACEOF | ||
29210 | /* end confdefs.h. */ | ||
29211 | |||
29212 | #include <sys/types.h> | ||
29213 | #include <utmp.h> | ||
29214 | #ifdef HAVE_UTMPX_H | ||
29215 | #include <utmpx.h> | ||
29216 | #endif | ||
29217 | #ifdef HAVE_PATHS_H | ||
29218 | # include <paths.h> | ||
29219 | #endif | ||
29220 | |||
29221 | int | ||
29222 | main () | ||
29223 | { | ||
29224 | char *wtmpx = WTMPX_FILE; | ||
29225 | ; | ||
29226 | return 0; | ||
29227 | } | ||
29228 | _ACEOF | ||
29229 | rm -f conftest.$ac_objext | ||
29230 | if { (ac_try="$ac_compile" | ||
29231 | case "(($ac_try" in | ||
29232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29233 | *) ac_try_echo=$ac_try;; | ||
29234 | esac | ||
29235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29236 | (eval "$ac_compile") 2>conftest.er1 | ||
29237 | ac_status=$? | ||
29238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29239 | rm -f conftest.er1 | ||
29240 | cat conftest.err >&5 | ||
29241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29242 | (exit $ac_status); } && { | ||
29243 | test -z "$ac_c_werror_flag" || | ||
29244 | test ! -s conftest.err | ||
29245 | } && test -s conftest.$ac_objext; then | ||
29246 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29247 | echo "${ECHO_T}yes" >&6; } | ||
29248 | else | ||
29249 | echo "$as_me: failed program was:" >&5 | ||
29250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29251 | |||
29252 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29253 | echo "${ECHO_T}no" >&6; } | ||
29254 | system_wtmpx_path=no | ||
29255 | |||
29256 | fi | ||
29257 | |||
29258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29259 | if test -z "$conf_wtmpx_location"; then | ||
29260 | if test x"$system_wtmpx_path" = x"no" ; then | ||
29261 | cat >>confdefs.h <<\_ACEOF | ||
29262 | #define DISABLE_WTMPX 1 | ||
29263 | _ACEOF | ||
29264 | |||
29265 | fi | ||
29266 | else | ||
29267 | |||
29268 | cat >>confdefs.h <<_ACEOF | ||
29269 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
29270 | _ACEOF | ||
29271 | |||
29272 | fi | ||
29273 | |||
29274 | |||
29275 | if test ! -z "$blibpath" ; then | ||
29276 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
29277 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
29278 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
29279 | fi | ||
29280 | |||
29281 | CFLAGS="$CFLAGS $werror_flags" | ||
29282 | |||
29283 | if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \ | ||
29284 | test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
29285 | TEST_SSH_IPV6=no | ||
29286 | |||
29287 | else | ||
29288 | TEST_SSH_IPV6=yes | ||
29289 | |||
29290 | fi | ||
29291 | |||
29292 | |||
29293 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
29294 | |||
29295 | cat >confcache <<\_ACEOF | ||
29296 | # This file is a shell script that caches the results of configure | ||
29297 | # tests run on this system so they can be shared between configure | ||
29298 | # scripts and configure runs, see configure's option --config-cache. | ||
29299 | # It is not useful on other systems. If it contains results you don't | ||
29300 | # want to keep, you may remove or edit it. | ||
29301 | # | ||
29302 | # config.status only pays attention to the cache file if you give it | ||
29303 | # the --recheck option to rerun configure. | ||
29304 | # | ||
29305 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
29306 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
29307 | # following values. | ||
29308 | |||
29309 | _ACEOF | ||
29310 | |||
29311 | # The following way of writing the cache mishandles newlines in values, | ||
29312 | # but we know of no workaround that is simple, portable, and efficient. | ||
29313 | # So, we kill variables containing newlines. | ||
29314 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
29315 | # and sets the high bit in the cache file unless we assign to the vars. | ||
29316 | ( | ||
29317 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
29318 | eval ac_val=\$$ac_var | ||
29319 | case $ac_val in #( | ||
29320 | *${as_nl}*) | ||
29321 | case $ac_var in #( | ||
29322 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
29323 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
29324 | esac | ||
29325 | case $ac_var in #( | ||
29326 | _ | IFS | as_nl) ;; #( | ||
29327 | *) $as_unset $ac_var ;; | ||
29328 | esac ;; | ||
29329 | esac | ||
29330 | done | ||
29331 | |||
29332 | (set) 2>&1 | | ||
29333 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
29334 | *${as_nl}ac_space=\ *) | ||
29335 | # `set' does not quote correctly, so add quotes (double-quote | ||
29336 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
29337 | sed -n \ | ||
29338 | "s/'/'\\\\''/g; | ||
29339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
29340 | ;; #( | ||
29341 | *) | ||
29342 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
29343 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
29344 | ;; | ||
29345 | esac | | ||
29346 | sort | ||
29347 | ) | | ||
29348 | sed ' | ||
29349 | /^ac_cv_env_/b end | ||
29350 | t clear | ||
29351 | :clear | ||
29352 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
29353 | t end | ||
29354 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
29355 | :end' >>confcache | ||
29356 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
29357 | if test -w "$cache_file"; then | ||
29358 | test "x$cache_file" != "x/dev/null" && | ||
29359 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
29360 | echo "$as_me: updating cache $cache_file" >&6;} | ||
29361 | cat confcache >$cache_file | ||
29362 | else | ||
29363 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
29364 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
29365 | fi | ||
29366 | fi | ||
29367 | rm -f confcache | ||
29368 | |||
29369 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
29370 | # Let make expand exec_prefix. | ||
29371 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
29372 | |||
29373 | DEFS=-DHAVE_CONFIG_H | ||
29374 | |||
29375 | ac_libobjs= | ||
29376 | ac_ltlibobjs= | ||
29377 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
29378 | # 1. Remove the extension, and $U if already installed. | ||
29379 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
29380 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
29381 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
29382 | # will be set to the directory where LIBOBJS objects are built. | ||
29383 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
29384 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
29385 | done | ||
29386 | LIBOBJS=$ac_libobjs | ||
29387 | |||
29388 | LTLIBOBJS=$ac_ltlibobjs | ||
29389 | |||
29390 | |||
29391 | |||
29392 | : ${CONFIG_STATUS=./config.status} | ||
29393 | ac_clean_files_save=$ac_clean_files | ||
29394 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
29395 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
29396 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
29397 | cat >$CONFIG_STATUS <<_ACEOF | ||
29398 | #! $SHELL | ||
29399 | # Generated by $as_me. | ||
29400 | # Run this file to recreate the current configuration. | ||
29401 | # Compiler output produced by configure, useful for debugging | ||
29402 | # configure, is in config.log if it exists. | ||
29403 | |||
29404 | debug=false | ||
29405 | ac_cs_recheck=false | ||
29406 | ac_cs_silent=false | ||
29407 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
29408 | _ACEOF | ||
29409 | |||
29410 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29411 | ## --------------------- ## | ||
29412 | ## M4sh Initialization. ## | ||
29413 | ## --------------------- ## | ||
29414 | |||
29415 | # Be more Bourne compatible | ||
29416 | DUALCASE=1; export DUALCASE # for MKS sh | ||
29417 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
29418 | emulate sh | ||
29419 | NULLCMD=: | ||
29420 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
29421 | # is contrary to our usage. Disable this feature. | ||
29422 | alias -g '${1+"$@"}'='"$@"' | ||
29423 | setopt NO_GLOB_SUBST | ||
29424 | else | ||
29425 | case `(set -o) 2>/dev/null` in | ||
29426 | *posix*) set -o posix ;; | ||
29427 | esac | ||
29428 | |||
29429 | fi | ||
29430 | |||
29431 | |||
29432 | |||
29433 | |||
29434 | # PATH needs CR | ||
29435 | # Avoid depending upon Character Ranges. | ||
29436 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
29437 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
29438 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
29439 | as_cr_digits='0123456789' | ||
29440 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
29441 | |||
29442 | # The user is always right. | ||
29443 | if test "${PATH_SEPARATOR+set}" != set; then | ||
29444 | echo "#! /bin/sh" >conf$$.sh | ||
29445 | echo "exit 0" >>conf$$.sh | ||
29446 | chmod +x conf$$.sh | ||
29447 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
29448 | PATH_SEPARATOR=';' | ||
29449 | else | ||
29450 | PATH_SEPARATOR=: | ||
29451 | fi | ||
29452 | rm -f conf$$.sh | ||
29453 | fi | ||
29454 | |||
29455 | # Support unset when possible. | ||
29456 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
29457 | as_unset=unset | ||
29458 | else | ||
29459 | as_unset=false | ||
29460 | fi | ||
29461 | |||
29462 | |||
29463 | # IFS | ||
29464 | # We need space, tab and new line, in precisely that order. Quoting is | ||
29465 | # there to prevent editors from complaining about space-tab. | ||
29466 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
29467 | # splitting by setting IFS to empty value.) | ||
29468 | as_nl=' | ||
29469 | ' | ||
29470 | IFS=" "" $as_nl" | ||
29471 | |||
29472 | # Find who we are. Look in the path if we contain no directory separator. | ||
29473 | case $0 in | ||
29474 | *[\\/]* ) as_myself=$0 ;; | ||
29475 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29476 | for as_dir in $PATH | ||
29477 | do | ||
29478 | IFS=$as_save_IFS | ||
29479 | test -z "$as_dir" && as_dir=. | ||
29480 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
29481 | done | ||
29482 | IFS=$as_save_IFS | ||
29483 | |||
29484 | ;; | ||
29485 | esac | ||
29486 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
29487 | # in which case we are not to be found in the path. | ||
29488 | if test "x$as_myself" = x; then | ||
29489 | as_myself=$0 | ||
29490 | fi | ||
29491 | if test ! -f "$as_myself"; then | ||
29492 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
29493 | { (exit 1); exit 1; } | ||
29494 | fi | ||
29495 | |||
29496 | # Work around bugs in pre-3.0 UWIN ksh. | ||
29497 | for as_var in ENV MAIL MAILPATH | ||
29498 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29499 | done | ||
29500 | PS1='$ ' | ||
29501 | PS2='> ' | ||
29502 | PS4='+ ' | ||
29503 | |||
29504 | # NLS nuisances. | ||
29505 | for as_var in \ | ||
29506 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
29507 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
29508 | LC_TELEPHONE LC_TIME | ||
29509 | do | ||
29510 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
29511 | eval $as_var=C; export $as_var | ||
29512 | else | ||
29513 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29514 | fi | ||
29515 | done | ||
29516 | |||
29517 | # Required to use basename. | ||
29518 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29519 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29520 | as_expr=expr | ||
29521 | else | ||
29522 | as_expr=false | ||
29523 | fi | ||
29524 | |||
29525 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
29526 | as_basename=basename | ||
29527 | else | ||
29528 | as_basename=false | ||
29529 | fi | ||
29530 | |||
29531 | |||
29532 | # Name of the executable. | ||
29533 | as_me=`$as_basename -- "$0" || | ||
29534 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
29535 | X"$0" : 'X\(//\)$' \| \ | ||
29536 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
29537 | echo X/"$0" | | ||
29538 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
29539 | s//\1/ | ||
29540 | q | ||
29541 | } | ||
29542 | /^X\/\(\/\/\)$/{ | ||
29543 | s//\1/ | ||
29544 | q | ||
29545 | } | ||
29546 | /^X\/\(\/\).*/{ | ||
29547 | s//\1/ | ||
29548 | q | ||
29549 | } | ||
29550 | s/.*/./; q'` | ||
29551 | |||
29552 | # CDPATH. | ||
29553 | $as_unset CDPATH | ||
29554 | |||
29555 | |||
29556 | |||
29557 | as_lineno_1=$LINENO | ||
29558 | as_lineno_2=$LINENO | ||
29559 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
29560 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
29561 | |||
29562 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
29563 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
29564 | # line-number line after each line using $LINENO; the second 'sed' | ||
29565 | # does the real work. The second script uses 'N' to pair each | ||
29566 | # line-number line with the line containing $LINENO, and appends | ||
29567 | # trailing '-' during substitution so that $LINENO is not a special | ||
29568 | # case at line end. | ||
29569 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
29570 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
29571 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
29572 | sed -n ' | ||
29573 | p | ||
29574 | /[$]LINENO/= | ||
29575 | ' <$as_myself | | ||
29576 | sed ' | ||
29577 | s/[$]LINENO.*/&-/ | ||
29578 | t lineno | ||
29579 | b | ||
29580 | :lineno | ||
29581 | N | ||
29582 | :loop | ||
29583 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
29584 | t loop | ||
29585 | s/-\n.*// | ||
29586 | ' >$as_me.lineno && | ||
29587 | chmod +x "$as_me.lineno" || | ||
29588 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
29589 | { (exit 1); exit 1; }; } | ||
29590 | |||
29591 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
29592 | # (the dirname of $[0] is not the place where we might find the | ||
29593 | # original and so on. Autoconf is especially sensitive to this). | ||
29594 | . "./$as_me.lineno" | ||
29595 | # Exit status is that of the last command. | ||
29596 | exit | ||
29597 | } | ||
29598 | |||
29599 | |||
29600 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
29601 | as_dirname=dirname | ||
29602 | else | ||
29603 | as_dirname=false | ||
29604 | fi | ||
29605 | |||
29606 | ECHO_C= ECHO_N= ECHO_T= | ||
29607 | case `echo -n x` in | ||
29608 | -n*) | ||
29609 | case `echo 'x\c'` in | ||
29610 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
29611 | *) ECHO_C='\c';; | ||
29612 | esac;; | ||
29613 | *) | ||
29614 | ECHO_N='-n';; | ||
29615 | esac | ||
29616 | |||
29617 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29618 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29619 | as_expr=expr | ||
29620 | else | ||
29621 | as_expr=false | ||
29622 | fi | ||
29623 | |||
29624 | rm -f conf$$ conf$$.exe conf$$.file | ||
29625 | if test -d conf$$.dir; then | ||
29626 | rm -f conf$$.dir/conf$$.file | ||
29627 | else | ||
29628 | rm -f conf$$.dir | ||
29629 | mkdir conf$$.dir | ||
29630 | fi | ||
29631 | echo >conf$$.file | ||
29632 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
29633 | as_ln_s='ln -s' | ||
29634 | # ... but there are two gotchas: | ||
29635 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
29636 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
29637 | # In both cases, we have to default to `cp -p'. | ||
29638 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
29639 | as_ln_s='cp -p' | ||
29640 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
29641 | as_ln_s=ln | ||
29642 | else | ||
29643 | as_ln_s='cp -p' | ||
29644 | fi | ||
29645 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
29646 | rmdir conf$$.dir 2>/dev/null | ||
29647 | |||
29648 | if mkdir -p . 2>/dev/null; then | ||
29649 | as_mkdir_p=: | ||
29650 | else | ||
29651 | test -d ./-p && rmdir ./-p | ||
29652 | as_mkdir_p=false | ||
29653 | fi | ||
29654 | |||
29655 | if test -x / >/dev/null 2>&1; then | ||
29656 | as_test_x='test -x' | ||
29657 | else | ||
29658 | if ls -dL / >/dev/null 2>&1; then | ||
29659 | as_ls_L_option=L | ||
29660 | else | ||
29661 | as_ls_L_option= | ||
29662 | fi | ||
29663 | as_test_x=' | ||
29664 | eval sh -c '\'' | ||
29665 | if test -d "$1"; then | ||
29666 | test -d "$1/."; | ||
29667 | else | ||
29668 | case $1 in | ||
29669 | -*)set "./$1";; | ||
29670 | esac; | ||
29671 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
29672 | ???[sx]*):;;*)false;;esac;fi | ||
29673 | '\'' sh | ||
29674 | ' | ||
29675 | fi | ||
29676 | as_executable_p=$as_test_x | ||
29677 | |||
29678 | # Sed expression to map a string onto a valid CPP name. | ||
29679 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
29680 | |||
29681 | # Sed expression to map a string onto a valid variable name. | ||
29682 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
29683 | |||
29684 | |||
29685 | exec 6>&1 | ||
29686 | |||
29687 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
29688 | # report actual input values of CONFIG_FILES etc. instead of their | ||
29689 | # values after options handling. | ||
29690 | ac_log=" | ||
29691 | This file was extended by OpenSSH $as_me Portable, which was | ||
29692 | generated by GNU Autoconf 2.61. Invocation command line was | ||
29693 | |||
29694 | CONFIG_FILES = $CONFIG_FILES | ||
29695 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
29696 | CONFIG_LINKS = $CONFIG_LINKS | ||
29697 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
29698 | $ $0 $@ | ||
29699 | |||
29700 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
29701 | " | ||
29702 | |||
29703 | _ACEOF | ||
29704 | |||
29705 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29706 | # Files that config.status was made for. | ||
29707 | config_files="$ac_config_files" | ||
29708 | config_headers="$ac_config_headers" | ||
29709 | |||
29710 | _ACEOF | ||
29711 | |||
29712 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29713 | ac_cs_usage="\ | ||
29714 | \`$as_me' instantiates files from templates according to the | ||
29715 | current configuration. | ||
29716 | |||
29717 | Usage: $0 [OPTIONS] [FILE]... | ||
29718 | |||
29719 | -h, --help print this help, then exit | ||
29720 | -V, --version print version number and configuration settings, then exit | ||
29721 | -q, --quiet do not print progress messages | ||
29722 | -d, --debug don't remove temporary files | ||
29723 | --recheck update $as_me by reconfiguring in the same conditions | ||
29724 | --file=FILE[:TEMPLATE] | ||
29725 | instantiate the configuration file FILE | ||
29726 | --header=FILE[:TEMPLATE] | ||
29727 | instantiate the configuration header FILE | ||
29728 | |||
29729 | Configuration files: | ||
29730 | $config_files | ||
29731 | |||
29732 | Configuration headers: | ||
29733 | $config_headers | ||
29734 | |||
29735 | Report bugs to <bug-autoconf@gnu.org>." | ||
29736 | |||
29737 | _ACEOF | ||
29738 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29739 | ac_cs_version="\\ | ||
29740 | OpenSSH config.status Portable | ||
29741 | configured by $0, generated by GNU Autoconf 2.61, | ||
29742 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
29743 | |||
29744 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
29745 | This config.status script is free software; the Free Software Foundation | ||
29746 | gives unlimited permission to copy, distribute and modify it." | ||
29747 | |||
29748 | ac_pwd='$ac_pwd' | ||
29749 | srcdir='$srcdir' | ||
29750 | INSTALL='$INSTALL' | ||
29751 | _ACEOF | ||
29752 | |||
29753 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29754 | # If no file are specified by the user, then we need to provide default | ||
29755 | # value. By we need to know if files were specified by the user. | ||
29756 | ac_need_defaults=: | ||
29757 | while test $# != 0 | ||
29758 | do | ||
29759 | case $1 in | ||
29760 | --*=*) | ||
29761 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
29762 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
29763 | ac_shift=: | ||
29764 | ;; | ||
29765 | *) | ||
29766 | ac_option=$1 | ||
29767 | ac_optarg=$2 | ||
29768 | ac_shift=shift | ||
29769 | ;; | ||
29770 | esac | ||
29771 | |||
29772 | case $ac_option in | ||
29773 | # Handling of the options. | ||
29774 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
29775 | ac_cs_recheck=: ;; | ||
29776 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
29777 | echo "$ac_cs_version"; exit ;; | ||
29778 | --debug | --debu | --deb | --de | --d | -d ) | ||
29779 | debug=: ;; | ||
29780 | --file | --fil | --fi | --f ) | ||
29781 | $ac_shift | ||
29782 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
29783 | ac_need_defaults=false;; | ||
29784 | --header | --heade | --head | --hea ) | ||
29785 | $ac_shift | ||
29786 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
29787 | ac_need_defaults=false;; | ||
29788 | --he | --h) | ||
29789 | # Conflict between --help and --header | ||
29790 | { echo "$as_me: error: ambiguous option: $1 | ||
29791 | Try \`$0 --help' for more information." >&2 | ||
29792 | { (exit 1); exit 1; }; };; | ||
29793 | --help | --hel | -h ) | ||
29794 | echo "$ac_cs_usage"; exit ;; | ||
29795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
29796 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
29797 | ac_cs_silent=: ;; | ||
29798 | |||
29799 | # This is an error. | ||
29800 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
29801 | Try \`$0 --help' for more information." >&2 | ||
29802 | { (exit 1); exit 1; }; } ;; | ||
29803 | |||
29804 | *) ac_config_targets="$ac_config_targets $1" | ||
29805 | ac_need_defaults=false ;; | ||
29806 | |||
29807 | esac | ||
29808 | shift | ||
29809 | done | ||
29810 | |||
29811 | ac_configure_extra_args= | ||
29812 | |||
29813 | if $ac_cs_silent; then | ||
29814 | exec 6>/dev/null | ||
29815 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
29816 | fi | ||
29817 | |||
29818 | _ACEOF | ||
29819 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29820 | if \$ac_cs_recheck; then | ||
29821 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
29822 | CONFIG_SHELL=$SHELL | ||
29823 | export CONFIG_SHELL | ||
29824 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
29825 | fi | ||
29826 | |||
29827 | _ACEOF | ||
29828 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29829 | exec 5>>config.log | ||
29830 | { | ||
29831 | echo | ||
29832 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
29833 | ## Running $as_me. ## | ||
29834 | _ASBOX | ||
29835 | echo "$ac_log" | ||
29836 | } >&5 | ||
29837 | |||
29838 | _ACEOF | ||
29839 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29840 | _ACEOF | ||
29841 | |||
29842 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29843 | |||
29844 | # Handling of arguments. | ||
29845 | for ac_config_target in $ac_config_targets | ||
29846 | do | ||
29847 | case $ac_config_target in | ||
29848 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
29849 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
29850 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
29851 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
29852 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
29853 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
29854 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
29855 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
29856 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
29857 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
29858 | |||
29859 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
29860 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
29861 | { (exit 1); exit 1; }; };; | ||
29862 | esac | ||
29863 | done | ||
29864 | |||
29865 | |||
29866 | # If the user did not use the arguments to specify the items to instantiate, | ||
29867 | # then the envvar interface is used. Set only those that are not. | ||
29868 | # We use the long form for the default assignment because of an extremely | ||
29869 | # bizarre bug on SunOS 4.1.3. | ||
29870 | if $ac_need_defaults; then | ||
29871 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
29872 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
29873 | fi | ||
29874 | |||
29875 | # Have a temporary directory for convenience. Make it in the build tree | ||
29876 | # simply because there is no reason against having it here, and in addition, | ||
29877 | # creating and moving files from /tmp can sometimes cause problems. | ||
29878 | # Hook for its removal unless debugging. | ||
29879 | # Note that there is a small window in which the directory will not be cleaned: | ||
29880 | # after its creation but before its name has been assigned to `$tmp'. | ||
29881 | $debug || | ||
29882 | { | ||
29883 | tmp= | ||
29884 | trap 'exit_status=$? | ||
29885 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
29886 | ' 0 | ||
29887 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
29888 | } | ||
29889 | # Create a (secure) tmp directory for tmp files. | ||
29890 | |||
29891 | { | ||
29892 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
29893 | test -n "$tmp" && test -d "$tmp" | ||
29894 | } || | ||
29895 | { | ||
29896 | tmp=./conf$$-$RANDOM | ||
29897 | (umask 077 && mkdir "$tmp") | ||
29898 | } || | ||
29899 | { | ||
29900 | echo "$me: cannot create a temporary directory in ." >&2 | ||
29901 | { (exit 1); exit 1; } | ||
29902 | } | ||
29903 | |||
29904 | # | ||
29905 | # Set up the sed scripts for CONFIG_FILES section. | ||
29906 | # | ||
29907 | |||
29908 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
29909 | # This happens for instance when ./config.status config.h | ||
29910 | if test -n "$CONFIG_FILES"; then | ||
29911 | |||
29912 | _ACEOF | ||
29913 | |||
29914 | |||
29915 | |||
29916 | ac_delim='%!_!# ' | ||
29917 | for ac_last_try in false false false false false :; do | ||
29918 | cat >conf$$subs.sed <<_ACEOF | ||
29919 | SHELL!$SHELL$ac_delim | ||
29920 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
29921 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
29922 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
29923 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
29924 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
29925 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
29926 | exec_prefix!$exec_prefix$ac_delim | ||
29927 | prefix!$prefix$ac_delim | ||
29928 | program_transform_name!$program_transform_name$ac_delim | ||
29929 | bindir!$bindir$ac_delim | ||
29930 | sbindir!$sbindir$ac_delim | ||
29931 | libexecdir!$libexecdir$ac_delim | ||
29932 | datarootdir!$datarootdir$ac_delim | ||
29933 | datadir!$datadir$ac_delim | ||
29934 | sysconfdir!$sysconfdir$ac_delim | ||
29935 | sharedstatedir!$sharedstatedir$ac_delim | ||
29936 | localstatedir!$localstatedir$ac_delim | ||
29937 | includedir!$includedir$ac_delim | ||
29938 | oldincludedir!$oldincludedir$ac_delim | ||
29939 | docdir!$docdir$ac_delim | ||
29940 | infodir!$infodir$ac_delim | ||
29941 | htmldir!$htmldir$ac_delim | ||
29942 | dvidir!$dvidir$ac_delim | ||
29943 | pdfdir!$pdfdir$ac_delim | ||
29944 | psdir!$psdir$ac_delim | ||
29945 | libdir!$libdir$ac_delim | ||
29946 | localedir!$localedir$ac_delim | ||
29947 | mandir!$mandir$ac_delim | ||
29948 | DEFS!$DEFS$ac_delim | ||
29949 | ECHO_C!$ECHO_C$ac_delim | ||
29950 | ECHO_N!$ECHO_N$ac_delim | ||
29951 | ECHO_T!$ECHO_T$ac_delim | ||
29952 | LIBS!$LIBS$ac_delim | ||
29953 | build_alias!$build_alias$ac_delim | ||
29954 | host_alias!$host_alias$ac_delim | ||
29955 | target_alias!$target_alias$ac_delim | ||
29956 | CC!$CC$ac_delim | ||
29957 | CFLAGS!$CFLAGS$ac_delim | ||
29958 | LDFLAGS!$LDFLAGS$ac_delim | ||
29959 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
29960 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
29961 | EXEEXT!$EXEEXT$ac_delim | ||
29962 | OBJEXT!$OBJEXT$ac_delim | ||
29963 | build!$build$ac_delim | ||
29964 | build_cpu!$build_cpu$ac_delim | ||
29965 | build_vendor!$build_vendor$ac_delim | ||
29966 | build_os!$build_os$ac_delim | ||
29967 | host!$host$ac_delim | ||
29968 | host_cpu!$host_cpu$ac_delim | ||
29969 | host_vendor!$host_vendor$ac_delim | ||
29970 | host_os!$host_os$ac_delim | ||
29971 | CPP!$CPP$ac_delim | ||
29972 | GREP!$GREP$ac_delim | ||
29973 | EGREP!$EGREP$ac_delim | ||
29974 | AWK!$AWK$ac_delim | ||
29975 | RANLIB!$RANLIB$ac_delim | ||
29976 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
29977 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
29978 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
29979 | AR!$AR$ac_delim | ||
29980 | CAT!$CAT$ac_delim | ||
29981 | KILL!$KILL$ac_delim | ||
29982 | PERL!$PERL$ac_delim | ||
29983 | SED!$SED$ac_delim | ||
29984 | ENT!$ENT$ac_delim | ||
29985 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
29986 | SH!$SH$ac_delim | ||
29987 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
29988 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
29989 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
29990 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
29991 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
29992 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
29993 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
29994 | LD!$LD$ac_delim | ||
29995 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
29996 | LIBEDIT!$LIBEDIT$ac_delim | ||
29997 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
29998 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
29999 | PROG_LS!$PROG_LS$ac_delim | ||
30000 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
30001 | PROG_ARP!$PROG_ARP$ac_delim | ||
30002 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
30003 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
30004 | PROG_PS!$PROG_PS$ac_delim | ||
30005 | PROG_SAR!$PROG_SAR$ac_delim | ||
30006 | PROG_W!$PROG_W$ac_delim | ||
30007 | PROG_WHO!$PROG_WHO$ac_delim | ||
30008 | PROG_LAST!$PROG_LAST$ac_delim | ||
30009 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
30010 | PROG_DF!$PROG_DF$ac_delim | ||
30011 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
30012 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
30013 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
30014 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
30015 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
30016 | _ACEOF | ||
30017 | |||
30018 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
30019 | break | ||
30020 | elif $ac_last_try; then | ||
30021 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30022 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30023 | { (exit 1); exit 1; }; } | ||
30024 | else | ||
30025 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30026 | fi | ||
30027 | done | ||
30028 | |||
30029 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30030 | if test -n "$ac_eof"; then | ||
30031 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30032 | ac_eof=`expr $ac_eof + 1` | ||
30033 | fi | ||
30034 | |||
30035 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30036 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
30037 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30038 | _ACEOF | ||
30039 | sed ' | ||
30040 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30041 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30042 | :n | ||
30043 | t n | ||
30044 | s/'"$ac_delim"'$/,g/; t | ||
30045 | s/$/\\/; p | ||
30046 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30047 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30048 | rm -f conf$$subs.sed | ||
30049 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30050 | CEOF$ac_eof | ||
30051 | _ACEOF | ||
30052 | |||
30053 | |||
30054 | ac_delim='%!_!# ' | ||
30055 | for ac_last_try in false false false false false :; do | ||
30056 | cat >conf$$subs.sed <<_ACEOF | ||
30057 | OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim | ||
30058 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
30059 | xauth_path!$xauth_path$ac_delim | ||
30060 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
30061 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
30062 | NROFF!$NROFF$ac_delim | ||
30063 | MANTYPE!$MANTYPE$ac_delim | ||
30064 | mansubdir!$mansubdir$ac_delim | ||
30065 | user_path!$user_path$ac_delim | ||
30066 | piddir!$piddir$ac_delim | ||
30067 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
30068 | LIBOBJS!$LIBOBJS$ac_delim | ||
30069 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
30070 | _ACEOF | ||
30071 | |||
30072 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then | ||
30073 | break | ||
30074 | elif $ac_last_try; then | ||
30075 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30076 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30077 | { (exit 1); exit 1; }; } | ||
30078 | else | ||
30079 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30080 | fi | ||
30081 | done | ||
30082 | |||
30083 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30084 | if test -n "$ac_eof"; then | ||
30085 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30086 | ac_eof=`expr $ac_eof + 1` | ||
30087 | fi | ||
30088 | |||
30089 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30090 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
30091 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
30092 | _ACEOF | ||
30093 | sed ' | ||
30094 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30095 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30096 | :n | ||
30097 | t n | ||
30098 | s/'"$ac_delim"'$/,g/; t | ||
30099 | s/$/\\/; p | ||
30100 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30101 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30102 | rm -f conf$$subs.sed | ||
30103 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30104 | :end | ||
30105 | s/|#_!!_#|//g | ||
30106 | CEOF$ac_eof | ||
30107 | _ACEOF | ||
30108 | |||
30109 | |||
30110 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
30111 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
30112 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
30113 | # (actually we leave an empty line to preserve line numbers). | ||
30114 | if test "x$srcdir" = x.; then | ||
30115 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
30116 | s/:*\$(srcdir):*/:/ | ||
30117 | s/:*\${srcdir}:*/:/ | ||
30118 | s/:*@srcdir@:*/:/ | ||
30119 | s/^\([^=]*=[ ]*\):*/\1/ | ||
30120 | s/:*$// | ||
30121 | s/^[^=]*=[ ]*$// | ||
30122 | }' | ||
30123 | fi | ||
30124 | |||
30125 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30126 | fi # test -n "$CONFIG_FILES" | ||
30127 | |||
30128 | |||
30129 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
30130 | do | ||
30131 | case $ac_tag in | ||
30132 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
30133 | esac | ||
30134 | case $ac_mode$ac_tag in | ||
30135 | :[FHL]*:*);; | ||
30136 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
30137 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
30138 | { (exit 1); exit 1; }; };; | ||
30139 | :[FH]-) ac_tag=-:-;; | ||
30140 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
30141 | esac | ||
30142 | ac_save_IFS=$IFS | ||
30143 | IFS=: | ||
30144 | set x $ac_tag | ||
30145 | IFS=$ac_save_IFS | ||
30146 | shift | ||
30147 | ac_file=$1 | ||
30148 | shift | ||
30149 | |||
30150 | case $ac_mode in | ||
30151 | :L) ac_source=$1;; | ||
30152 | :[FH]) | ||
30153 | ac_file_inputs= | ||
30154 | for ac_f | ||
30155 | do | ||
30156 | case $ac_f in | ||
30157 | -) ac_f="$tmp/stdin";; | ||
30158 | *) # Look for the file first in the build tree, then in the source tree | ||
30159 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
30160 | # because $ac_f cannot contain `:'. | ||
30161 | test -f "$ac_f" || | ||
30162 | case $ac_f in | ||
30163 | [\\/$]*) false;; | ||
30164 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
30165 | esac || | ||
30166 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
30167 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
30168 | { (exit 1); exit 1; }; };; | ||
30169 | esac | ||
30170 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
30171 | done | ||
30172 | |||
30173 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
30174 | # use $as_me), people would be surprised to read: | ||
30175 | # /* config.h. Generated by config.status. */ | ||
30176 | configure_input="Generated from "`IFS=: | ||
30177 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
30178 | if test x"$ac_file" != x-; then | ||
30179 | configure_input="$ac_file. $configure_input" | ||
30180 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
30181 | echo "$as_me: creating $ac_file" >&6;} | ||
30182 | fi | ||
30183 | |||
30184 | case $ac_tag in | ||
30185 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
30186 | esac | ||
30187 | ;; | ||
30188 | esac | ||
30189 | |||
30190 | ac_dir=`$as_dirname -- "$ac_file" || | ||
30191 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30192 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
30193 | X"$ac_file" : 'X\(//\)$' \| \ | ||
30194 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
30195 | echo X"$ac_file" | | ||
30196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30197 | s//\1/ | ||
30198 | q | ||
30199 | } | ||
30200 | /^X\(\/\/\)[^/].*/{ | ||
30201 | s//\1/ | ||
30202 | q | ||
30203 | } | ||
30204 | /^X\(\/\/\)$/{ | ||
30205 | s//\1/ | ||
30206 | q | ||
30207 | } | ||
30208 | /^X\(\/\).*/{ | ||
30209 | s//\1/ | ||
30210 | q | ||
30211 | } | ||
30212 | s/.*/./; q'` | ||
30213 | { as_dir="$ac_dir" | ||
30214 | case $as_dir in #( | ||
30215 | -*) as_dir=./$as_dir;; | ||
30216 | esac | ||
30217 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
30218 | as_dirs= | ||
30219 | while :; do | ||
30220 | case $as_dir in #( | ||
30221 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
30222 | *) as_qdir=$as_dir;; | ||
30223 | esac | ||
30224 | as_dirs="'$as_qdir' $as_dirs" | ||
30225 | as_dir=`$as_dirname -- "$as_dir" || | ||
30226 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30227 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
30228 | X"$as_dir" : 'X\(//\)$' \| \ | ||
30229 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
30230 | echo X"$as_dir" | | ||
30231 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30232 | s//\1/ | ||
30233 | q | ||
30234 | } | ||
30235 | /^X\(\/\/\)[^/].*/{ | ||
30236 | s//\1/ | ||
30237 | q | ||
30238 | } | ||
30239 | /^X\(\/\/\)$/{ | ||
30240 | s//\1/ | ||
30241 | q | ||
30242 | } | ||
30243 | /^X\(\/\).*/{ | ||
30244 | s//\1/ | ||
30245 | q | ||
30246 | } | ||
30247 | s/.*/./; q'` | ||
30248 | test -d "$as_dir" && break | ||
30249 | done | ||
30250 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
30251 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
30252 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
30253 | { (exit 1); exit 1; }; }; } | ||
30254 | ac_builddir=. | ||
30255 | |||
30256 | case "$ac_dir" in | ||
30257 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30258 | *) | ||
30259 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
30260 | # A ".." for each directory in $ac_dir_suffix. | ||
30261 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
30262 | case $ac_top_builddir_sub in | ||
30263 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30264 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
30265 | esac ;; | ||
30266 | esac | ||
30267 | ac_abs_top_builddir=$ac_pwd | ||
30268 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
30269 | # for backward compatibility: | ||
30270 | ac_top_builddir=$ac_top_build_prefix | ||
30271 | |||
30272 | case $srcdir in | ||
30273 | .) # We are building in place. | ||
30274 | ac_srcdir=. | ||
30275 | ac_top_srcdir=$ac_top_builddir_sub | ||
30276 | ac_abs_top_srcdir=$ac_pwd ;; | ||
30277 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
30278 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
30279 | ac_top_srcdir=$srcdir | ||
30280 | ac_abs_top_srcdir=$srcdir ;; | ||
30281 | *) # Relative name. | ||
30282 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
30283 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
30284 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
30285 | esac | ||
30286 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
30287 | |||
30288 | |||
30289 | case $ac_mode in | ||
30290 | :F) | ||
30291 | # | ||
30292 | # CONFIG_FILE | ||
30293 | # | ||
30294 | |||
30295 | case $INSTALL in | ||
30296 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
30297 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
30298 | esac | ||
30299 | _ACEOF | ||
30300 | |||
30301 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30302 | # If the template does not know about datarootdir, expand it. | ||
30303 | # FIXME: This hack should be removed a few years after 2.60. | ||
30304 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
30305 | |||
30306 | case `sed -n '/datarootdir/ { | ||
30307 | p | ||
30308 | q | ||
30309 | } | ||
30310 | /@datadir@/p | ||
30311 | /@docdir@/p | ||
30312 | /@infodir@/p | ||
30313 | /@localedir@/p | ||
30314 | /@mandir@/p | ||
30315 | ' $ac_file_inputs` in | ||
30316 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
30317 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
30318 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
30319 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
30320 | _ACEOF | ||
30321 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30322 | ac_datarootdir_hack=' | ||
30323 | s&@datadir@&$datadir&g | ||
30324 | s&@docdir@&$docdir&g | ||
30325 | s&@infodir@&$infodir&g | ||
30326 | s&@localedir@&$localedir&g | ||
30327 | s&@mandir@&$mandir&g | ||
30328 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
30329 | esac | ||
30330 | _ACEOF | ||
30331 | |||
30332 | # Neutralize VPATH when `$srcdir' = `.'. | ||
30333 | # Shell code in configure.ac might set extrasub. | ||
30334 | # FIXME: do we really want to maintain this feature? | ||
30335 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30336 | sed "$ac_vpsub | ||
30337 | $extrasub | ||
30338 | _ACEOF | ||
30339 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30340 | :t | ||
30341 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30342 | s&@configure_input@&$configure_input&;t t | ||
30343 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
30344 | s&@srcdir@&$ac_srcdir&;t t | ||
30345 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
30346 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
30347 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
30348 | s&@builddir@&$ac_builddir&;t t | ||
30349 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
30350 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
30351 | s&@INSTALL@&$ac_INSTALL&;t t | ||
30352 | $ac_datarootdir_hack | ||
30353 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
30354 | |||
30355 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
30356 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
30357 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
30358 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30359 | which seems to be undefined. Please make sure it is defined." >&5 | ||
30360 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30361 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
30362 | |||
30363 | rm -f "$tmp/stdin" | ||
30364 | case $ac_file in | ||
30365 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
30366 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
30367 | esac | ||
30368 | ;; | ||
30369 | :H) | ||
30370 | # | ||
30371 | # CONFIG_HEADER | ||
30372 | # | ||
30373 | _ACEOF | ||
30374 | |||
30375 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
30376 | # substitutes the proper values into config.h.in to produce config.h. | ||
30377 | rm -f conftest.defines conftest.tail | ||
30378 | # First, append a space to every undef/define line, to ease matching. | ||
30379 | echo 's/$/ /' >conftest.defines | ||
30380 | # Then, protect against being on the right side of a sed subst, or in | ||
30381 | # an unquoted here document, in config.status. If some macros were | ||
30382 | # called several times there might be several #defines for the same | ||
30383 | # symbol, which is useless. But do not sort them, since the last | ||
30384 | # AC_DEFINE must be honored. | ||
30385 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
30386 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
30387 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
30388 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
30389 | # just an empty string. | ||
30390 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
30391 | ac_dB='\\)[ (].*,\\1define\\2' | ||
30392 | ac_dC=' ' | ||
30393 | ac_dD=' ,' | ||
30394 | |||
30395 | uniq confdefs.h | | ||
30396 | sed -n ' | ||
30397 | t rset | ||
30398 | :rset | ||
30399 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
30400 | t ok | ||
30401 | d | ||
30402 | :ok | ||
30403 | s/[\\&,]/\\&/g | ||
30404 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
30405 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
30406 | ' >>conftest.defines | ||
30407 | |||
30408 | # Remove the space that was appended to ease matching. | ||
30409 | # Then replace #undef with comments. This is necessary, for | ||
30410 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
30411 | # on some systems where configure will not decide to define it. | ||
30412 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
30413 | echo 's/ $// | ||
30414 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
30415 | |||
30416 | # Break up conftest.defines: | ||
30417 | ac_max_sed_lines=50 | ||
30418 | |||
30419 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
30420 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
30421 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
30422 | # et cetera. | ||
30423 | ac_in='$ac_file_inputs' | ||
30424 | ac_out='"$tmp/out1"' | ||
30425 | ac_nxt='"$tmp/out2"' | ||
30426 | |||
30427 | while : | ||
30428 | do | ||
30429 | # Write a here document: | ||
30430 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30431 | # First, check the format of the line: | ||
30432 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
30433 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
30434 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
30435 | b | ||
30436 | :def | ||
30437 | _ACEOF | ||
30438 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
30439 | echo 'CEOF | ||
30440 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
30441 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
30442 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
30443 | grep . conftest.tail >/dev/null || break | ||
30444 | rm -f conftest.defines | ||
30445 | mv conftest.tail conftest.defines | ||
30446 | done | ||
30447 | rm -f conftest.defines conftest.tail | ||
30448 | |||
30449 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
30450 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30451 | if test x"$ac_file" != x-; then | ||
30452 | echo "/* $configure_input */" >"$tmp/config.h" | ||
30453 | cat "$ac_result" >>"$tmp/config.h" | ||
30454 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
30455 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
30456 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
30457 | else | ||
30458 | rm -f $ac_file | ||
30459 | mv "$tmp/config.h" $ac_file | ||
30460 | fi | ||
30461 | else | ||
30462 | echo "/* $configure_input */" | ||
30463 | cat "$ac_result" | ||
30464 | fi | ||
30465 | rm -f "$tmp/out12" | ||
30466 | ;; | ||
30467 | |||
30468 | |||
30469 | esac | ||
30470 | |||
30471 | done # for ac_tag | ||
30472 | |||
30473 | |||
30474 | { (exit 0); exit 0; } | ||
30475 | _ACEOF | ||
30476 | chmod +x $CONFIG_STATUS | ||
30477 | ac_clean_files=$ac_clean_files_save | ||
30478 | |||
30479 | |||
30480 | # configure is writing to config.log, and then calls config.status. | ||
30481 | # config.status does its own redirection, appending to config.log. | ||
30482 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
30483 | # by configure, so config.status won't be able to write to it; its | ||
30484 | # output is simply discarded. So we exec the FD to /dev/null, | ||
30485 | # effectively closing config.log, so it can be properly (re)opened and | ||
30486 | # appended to by config.status. When coming back to configure, we | ||
30487 | # need to make the FD available again. | ||
30488 | if test "$no_create" != yes; then | ||
30489 | ac_cs_success=: | ||
30490 | ac_config_status_args= | ||
30491 | test "$silent" = yes && | ||
30492 | ac_config_status_args="$ac_config_status_args --quiet" | ||
30493 | exec 5>/dev/null | ||
30494 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
30495 | exec 5>>config.log | ||
30496 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
30497 | # would make configure fail if this is the last instruction. | ||
30498 | $ac_cs_success || { (exit 1); exit 1; } | ||
30499 | fi | ||
30500 | |||
30501 | |||
30502 | # Print summary of options | ||
30503 | |||
30504 | # Someone please show me a better way :) | ||
30505 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
30506 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
30507 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
30508 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
30509 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
30510 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
30511 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
30512 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
30513 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
30514 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
30515 | |||
30516 | echo "" | ||
30517 | echo "OpenSSH has been configured with the following options:" | ||
30518 | echo " User binaries: $B" | ||
30519 | echo " System binaries: $C" | ||
30520 | echo " Configuration files: $D" | ||
30521 | echo " Askpass program: $E" | ||
30522 | echo " Manual pages: $F" | ||
30523 | echo " PID file: $G" | ||
30524 | echo " Privilege separation chroot path: $H" | ||
30525 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30526 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
30527 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
30528 | else | ||
30529 | echo " sshd default user PATH: $I" | ||
30530 | if test ! -z "$external_path_file"; then | ||
30531 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
30532 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
30533 | fi | ||
30534 | fi | ||
30535 | if test ! -z "$superuser_path" ; then | ||
30536 | echo " sshd superuser user PATH: $J" | ||
30537 | fi | ||
30538 | echo " Manpage format: $MANTYPE" | ||
30539 | echo " PAM support: $PAM_MSG" | ||
30540 | echo " OSF SIA support: $SIA_MSG" | ||
30541 | echo " KerberosV support: $KRB5_MSG" | ||
30542 | echo " SELinux support: $SELINUX_MSG" | ||
30543 | echo " Smartcard support: $SCARD_MSG" | ||
30544 | echo " S/KEY support: $SKEY_MSG" | ||
30545 | echo " TCP Wrappers support: $TCPW_MSG" | ||
30546 | echo " MD5 password support: $MD5_MSG" | ||
30547 | echo " libedit support: $LIBEDIT_MSG" | ||
30548 | echo " Solaris process contract support: $SPC_MSG" | ||
30549 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
30550 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
30551 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
30552 | echo " Random number source: $RAND_MSG" | ||
30553 | if test ! -z "$USE_RAND_HELPER" ; then | ||
30554 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
30555 | fi | ||
30556 | |||
30557 | echo "" | ||
30558 | |||
30559 | echo " Host: ${host}" | ||
30560 | echo " Compiler: ${CC}" | ||
30561 | echo " Compiler flags: ${CFLAGS}" | ||
30562 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
30563 | echo " Linker flags: ${LDFLAGS}" | ||
30564 | echo " Libraries: ${LIBS}" | ||
30565 | if test ! -z "${SSHDLIBS}"; then | ||
30566 | echo " +for sshd: ${SSHDLIBS}" | ||
30567 | fi | ||
30568 | |||
30569 | echo "" | ||
30570 | |||
30571 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
30572 | echo "SVR4 style packages are supported with \"make package\"" | ||
30573 | echo "" | ||
30574 | fi | ||
30575 | |||
30576 | if test "x$PAM_MSG" = "xyes" ; then | ||
30577 | echo "PAM is enabled. You may need to install a PAM control file " | ||
30578 | echo "for sshd, otherwise password authentication may fail. " | ||
30579 | echo "Example PAM control files can be found in the contrib/ " | ||
30580 | echo "subdirectory" | ||
30581 | echo "" | ||
30582 | fi | ||
30583 | |||
30584 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
30585 | echo "WARNING: you are using the builtin random number collection " | ||
30586 | echo "service. Please read WARNING.RNG and request that your OS " | ||
30587 | echo "vendor includes kernel-based random number collection in " | ||
30588 | echo "future versions of your OS." | ||
30589 | echo "" | ||
30590 | fi | ||
30591 | |||
30592 | if test ! -z "$NO_PEERCHECK" ; then | ||
30593 | echo "WARNING: the operating system that you are using does not" | ||
30594 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
30595 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
30596 | echo "enforce security checks to prevent unauthorised connections to" | ||
30597 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
30598 | echo "user can connect to your agent." | ||
30599 | echo "" | ||
30600 | fi | ||
30601 | |||
30602 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
30603 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
30604 | echo "See the Solaris section in README.platform for details." | ||
30605 | 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..d4c0d4e67 --- /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.5 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 | ||
diff --git a/scard/Ssh.bin b/scard/Ssh.bin new file mode 100644 index 000000000..edbadc618 --- /dev/null +++ b/scard/Ssh.bin | |||
Binary files differ | |||
@@ -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 | Port | ||
93 | PreferredAuthentications | ||
94 | Protocol | ||
95 | ProxyCommand | ||
96 | PubkeyAuthentication | ||
97 | RekeyLimit | ||
98 | RhostsRSAAuthentication | ||
99 | RSAAuthentication | ||
100 | SendEnv | ||
101 | ServerAliveInterval | ||
102 | ServerAliveCountMax | ||
103 | SmartcardDevice | ||
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.5 July 12, 2008 3 | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..510ceb64b --- /dev/null +++ b/sftp-server.0 | |||
@@ -0,0 +1,50 @@ | |||
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 [-f log_facility] [-l log_level] | ||
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 | -f log_facility | ||
21 | Specifies the facility code that is used when logging messages | ||
22 | from sftp-server. The possible values are: DAEMON, USER, AUTH, | ||
23 | LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. | ||
24 | The default is AUTH. | ||
25 | |||
26 | -l log_level | ||
27 | Specifies which messages will be logged by sftp-server. The pos- | ||
28 | sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DE- | ||
29 | BUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that | ||
30 | sftp-server performs on behalf of the client. DEBUG and DEBUG1 | ||
31 | are equivalent. DEBUG2 and DEBUG3 each specify higher levels of | ||
32 | debugging output. The default is ERROR. | ||
33 | |||
34 | For logging to work, sftp-server must be able to access /dev/log. Use of | ||
35 | sftp-server in a chroot configuation therefore requires that syslogd(8) | ||
36 | establish a logging socket inside the chroot directory. | ||
37 | |||
38 | SEE ALSO | ||
39 | sftp(1), ssh(1), sshd_config(5), sshd(8) | ||
40 | |||
41 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
42 | filexfer-00.txt, January 2001, work in progress material. | ||
43 | |||
44 | HISTORY | ||
45 | sftp-server first appeared in OpenBSD 2.8. | ||
46 | |||
47 | AUTHORS | ||
48 | Markus Friedl <markus@openbsd.org> | ||
49 | |||
50 | OpenBSD 4.5 July 18, 2008 1 | ||
@@ -0,0 +1,274 @@ | |||
1 | SFTP(1) OpenBSD Reference Manual SFTP(1) | ||
2 | |||
3 | NAME | ||
4 | sftp - secure file transfer program | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config] | ||
8 | [-o ssh_option] [-P sftp_server_path] [-R num_requests] [-S program] | ||
9 | [-s subsystem | sftp_server] host | ||
10 | sftp [user@]host[:file ...] | ||
11 | sftp [user@]host[:dir[/]] | ||
12 | sftp -b batchfile [user@]host | ||
13 | |||
14 | DESCRIPTION | ||
15 | sftp is an interactive file transfer program, similar to ftp(1), which | ||
16 | performs all operations over an encrypted ssh(1) transport. It may also | ||
17 | use many features of ssh, such as public key authentication and compres- | ||
18 | sion. sftp connects and logs into the specified host, then enters an in- | ||
19 | teractive command mode. | ||
20 | |||
21 | The second usage format will retrieve files automatically if a non-inter- | ||
22 | active authentication method is used; otherwise it will do so after suc- | ||
23 | cessful interactive authentication. | ||
24 | |||
25 | The third usage format allows sftp to start in a remote directory. | ||
26 | |||
27 | The final usage format allows for automated sessions using the -b option. | ||
28 | In such cases, it is necessary to configure non-interactive authentica- | ||
29 | tion to obviate the need to enter a password at connection time (see | ||
30 | sshd(8) and ssh-keygen(1) for details). The options are as follows: | ||
31 | |||
32 | -1 Specify the use of protocol version 1. | ||
33 | |||
34 | -B buffer_size | ||
35 | Specify the size of the buffer that sftp uses when transferring | ||
36 | files. Larger buffers require fewer round trips at the cost of | ||
37 | higher memory consumption. The default is 32768 bytes. | ||
38 | |||
39 | -b batchfile | ||
40 | Batch mode reads a series of commands from an input batchfile in- | ||
41 | stead of stdin. Since it lacks user interaction it should be | ||
42 | used in conjunction with non-interactive authentication. A | ||
43 | batchfile of `-' may be used to indicate standard input. sftp | ||
44 | will abort if any of the following commands fail: get, put, | ||
45 | rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp, | ||
46 | lpwd, df, and lmkdir. Termination on error can be suppressed on | ||
47 | a command by command basis by prefixing the command with a `-' | ||
48 | character (for example, -rm /tmp/blah*). | ||
49 | |||
50 | -C Enables compression (via ssh's -C flag). | ||
51 | |||
52 | -F ssh_config | ||
53 | Specifies an alternative per-user configuration file for ssh(1). | ||
54 | This option is directly passed to ssh(1). | ||
55 | |||
56 | -o ssh_option | ||
57 | Can be used to pass options to ssh in the format used in | ||
58 | ssh_config(5). This is useful for specifying options for which | ||
59 | there is no separate sftp command-line flag. For example, to | ||
60 | specify an alternate port use: sftp -oPort=24. For full details | ||
61 | of the options listed below, and their possible values, see | ||
62 | ssh_config(5). | ||
63 | |||
64 | AddressFamily | ||
65 | BatchMode | ||
66 | BindAddress | ||
67 | ChallengeResponseAuthentication | ||
68 | CheckHostIP | ||
69 | Cipher | ||
70 | Ciphers | ||
71 | Compression | ||
72 | CompressionLevel | ||
73 | ConnectionAttempts | ||
74 | ConnectTimeout | ||
75 | ControlMaster | ||
76 | ControlPath | ||
77 | GlobalKnownHostsFile | ||
78 | GSSAPIAuthentication | ||
79 | GSSAPIDelegateCredentials | ||
80 | HashKnownHosts | ||
81 | Host | ||
82 | HostbasedAuthentication | ||
83 | HostKeyAlgorithms | ||
84 | HostKeyAlias | ||
85 | HostName | ||
86 | IdentityFile | ||
87 | IdentitiesOnly | ||
88 | KbdInteractiveDevices | ||
89 | LogLevel | ||
90 | MACs | ||
91 | NoHostAuthenticationForLocalhost | ||
92 | NumberOfPasswordPrompts | ||
93 | PasswordAuthentication | ||
94 | Port | ||
95 | PreferredAuthentications | ||
96 | Protocol | ||
97 | ProxyCommand | ||
98 | PubkeyAuthentication | ||
99 | RekeyLimit | ||
100 | RhostsRSAAuthentication | ||
101 | RSAAuthentication | ||
102 | SendEnv | ||
103 | ServerAliveInterval | ||
104 | ServerAliveCountMax | ||
105 | SmartcardDevice | ||
106 | StrictHostKeyChecking | ||
107 | TCPKeepAlive | ||
108 | UsePrivilegedPort | ||
109 | User | ||
110 | UserKnownHostsFile | ||
111 | VerifyHostKeyDNS | ||
112 | |||
113 | -P sftp_server_path | ||
114 | Connect directly to a local sftp server (rather than via ssh(1)). | ||
115 | This option may be useful in debugging the client and server. | ||
116 | |||
117 | -R num_requests | ||
118 | Specify how many requests may be outstanding at any one time. | ||
119 | Increasing this may slightly improve file transfer speed but will | ||
120 | increase memory usage. The default is 64 outstanding requests. | ||
121 | |||
122 | -S program | ||
123 | Name of the program to use for the encrypted connection. The | ||
124 | program must understand ssh(1) options. | ||
125 | |||
126 | -s subsystem | sftp_server | ||
127 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
128 | the remote host. A path is useful for using sftp over protocol | ||
129 | version 1, or when the remote sshd(8) does not have an sftp sub- | ||
130 | system configured. | ||
131 | |||
132 | -v Raise logging level. This option is also passed to ssh. | ||
133 | |||
134 | INTERACTIVE COMMANDS | ||
135 | Once in interactive mode, sftp understands a set of commands similar to | ||
136 | those of ftp(1). Commands are case insensitive. Pathnames that contain | ||
137 | spaces must be enclosed in quotes. Any special characters contained | ||
138 | within pathnames that are recognized by glob(3) must be escaped with | ||
139 | backslashes (`\'). | ||
140 | |||
141 | bye Quit sftp. | ||
142 | |||
143 | cd path | ||
144 | Change remote directory to path. | ||
145 | |||
146 | chgrp grp path | ||
147 | Change group of file path to grp. path may contain glob(3) char- | ||
148 | acters and may match multiple files. grp must be a numeric GID. | ||
149 | |||
150 | chmod mode path | ||
151 | Change permissions of file path to mode. path may contain | ||
152 | glob(3) characters and may match multiple files. | ||
153 | |||
154 | chown own path | ||
155 | Change owner of file path to own. path may contain glob(3) char- | ||
156 | acters and may match multiple files. own must be a numeric UID. | ||
157 | |||
158 | df [-hi] [path] | ||
159 | Display usage information for the filesystem holding the current | ||
160 | directory (or path if specified). If the -h flag is specified, | ||
161 | the capacity information will be displayed using "human-readable" | ||
162 | suffixes. The -i flag requests display of inode information in | ||
163 | addition to capacity information. This command is only supported | ||
164 | on servers that implement the ``statvfs@openssh.com'' extension. | ||
165 | |||
166 | exit Quit sftp. | ||
167 | |||
168 | get [-P] remote-path [local-path] | ||
169 | Retrieve the remote-path and store it on the local machine. If | ||
170 | the local path name is not specified, it is given the same name | ||
171 | it has on the remote machine. remote-path may contain glob(3) | ||
172 | characters and may match multiple files. If it does and local- | ||
173 | path is specified, then local-path must specify a directory. If | ||
174 | the -P flag is specified, then full file permissions and access | ||
175 | times are copied too. | ||
176 | |||
177 | help Display help text. | ||
178 | |||
179 | lcd path | ||
180 | Change local directory to path. | ||
181 | |||
182 | lls [ls-options [path]] | ||
183 | Display local directory listing of either path or current direc- | ||
184 | tory if path is not specified. ls-options may contain any flags | ||
185 | supported by the local system's ls(1) command. path may contain | ||
186 | glob(3) characters and may match multiple files. | ||
187 | |||
188 | lmkdir path | ||
189 | Create local directory specified by path. | ||
190 | |||
191 | ln oldpath newpath | ||
192 | Create a symbolic link from oldpath to newpath. | ||
193 | |||
194 | lpwd Print local working directory. | ||
195 | |||
196 | ls [-1aflnrSt] [path] | ||
197 | Display a remote directory listing of either path or the current | ||
198 | directory if path is not specified. path may contain glob(3) | ||
199 | characters and may match multiple files. | ||
200 | |||
201 | The following flags are recognized and alter the behaviour of ls | ||
202 | accordingly: | ||
203 | |||
204 | -1 Produce single columnar output. | ||
205 | |||
206 | -a List files beginning with a dot (`.'). | ||
207 | |||
208 | -f Do not sort the listing. The default sort order is lexi- | ||
209 | cographical. | ||
210 | |||
211 | -l Display additional details including permissions and own- | ||
212 | ership information. | ||
213 | |||
214 | -n Produce a long listing with user and group information | ||
215 | presented numerically. | ||
216 | |||
217 | -r Reverse the sort order of the listing. | ||
218 | |||
219 | -S Sort the listing by file size. | ||
220 | |||
221 | -t Sort the listing by last modification time. | ||
222 | |||
223 | lumask umask | ||
224 | Set local umask to umask. | ||
225 | |||
226 | mkdir path | ||
227 | Create remote directory specified by path. | ||
228 | |||
229 | progress | ||
230 | Toggle display of progress meter. | ||
231 | |||
232 | put [-P] local-path [remote-path] | ||
233 | Upload local-path and store it on the remote machine. If the re- | ||
234 | mote path name is not specified, it is given the same name it has | ||
235 | on the local machine. local-path may contain glob(3) characters | ||
236 | and may match multiple files. If it does and remote-path is | ||
237 | specified, then remote-path must specify a directory. If the -P | ||
238 | flag is specified, then the file's full permission and access | ||
239 | time are copied too. | ||
240 | |||
241 | pwd Display remote working directory. | ||
242 | |||
243 | quit Quit sftp. | ||
244 | |||
245 | rename oldpath newpath | ||
246 | Rename remote file from oldpath to newpath. | ||
247 | |||
248 | rm path | ||
249 | Delete remote file specified by path. | ||
250 | |||
251 | rmdir path | ||
252 | Remove remote directory specified by path. | ||
253 | |||
254 | symlink oldpath newpath | ||
255 | Create a symbolic link from oldpath to newpath. | ||
256 | |||
257 | version | ||
258 | Display the sftp protocol version. | ||
259 | |||
260 | !command | ||
261 | Execute command in local shell. | ||
262 | |||
263 | ! Escape to local shell. | ||
264 | |||
265 | ? Synonym for help. | ||
266 | |||
267 | SEE ALSO | ||
268 | ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3), | ||
269 | ssh_config(5), sftp-server(8), sshd(8) | ||
270 | |||
271 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
272 | filexfer-00.txt, January 2001, work in progress material. | ||
273 | |||
274 | OpenBSD 4.5 December 9, 2008 5 | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..2ef77d339 --- /dev/null +++ b/ssh-add.0 | |||
@@ -0,0 +1,106 @@ | |||
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 reader | ||
9 | ssh-add -e reader | ||
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. Alternative file names | ||
15 | can be given on the command line. If any file requires a passphrase, | ||
16 | ssh-add asks for the passphrase from the user. The passphrase is read | ||
17 | from the user's tty. ssh-add retries the last passphrase if multiple | ||
18 | identity files are given. | ||
19 | |||
20 | The authentication agent must be running and the SSH_AUTH_SOCK environ- | ||
21 | ment variable must contain the name of its socket for ssh-add to work. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -c Indicates that added identities should be subject to confirmation | ||
26 | before being used for authentication. Confirmation is performed | ||
27 | by the SSH_ASKPASS program mentioned below. Successful confirma- | ||
28 | tion is signaled by a zero exit status from the SSH_ASKPASS pro- | ||
29 | gram, rather than text entered into the requester. | ||
30 | |||
31 | -D Deletes all identities from the agent. | ||
32 | |||
33 | -d Instead of adding identities, removes identities from the agent. | ||
34 | If ssh-add has been run without arguments, the keys for the de- | ||
35 | fault identities will be removed. Otherwise, the argument list | ||
36 | will be interpreted as a list of paths to public key files and | ||
37 | matching keys will be removed from the agent. If no public key | ||
38 | is found at a given path, ssh-add will append .pub and retry. | ||
39 | |||
40 | -e reader | ||
41 | Remove key in smartcard reader. | ||
42 | |||
43 | -L Lists public key parameters of all identities currently repre- | ||
44 | sented by the agent. | ||
45 | |||
46 | -l Lists fingerprints of all identities currently represented by the | ||
47 | agent. | ||
48 | |||
49 | -s reader | ||
50 | Add key in smartcard reader. | ||
51 | |||
52 | -t life | ||
53 | Set a maximum lifetime when adding identities to an agent. The | ||
54 | lifetime may be specified in seconds or in a time format speci- | ||
55 | fied in sshd_config(5). | ||
56 | |||
57 | -X Unlock the agent. | ||
58 | |||
59 | -x Lock the agent with a password. | ||
60 | |||
61 | ENVIRONMENT | ||
62 | DISPLAY and SSH_ASKPASS | ||
63 | If ssh-add needs a passphrase, it will read the passphrase from | ||
64 | the current terminal if it was run from a terminal. If ssh-add | ||
65 | does not have a terminal associated with it but DISPLAY and | ||
66 | SSH_ASKPASS are set, it will execute the program specified by | ||
67 | SSH_ASKPASS and open an X11 window to read the passphrase. This | ||
68 | is particularly useful when calling ssh-add from a .xsession or | ||
69 | related script. (Note that on some machines it may be necessary | ||
70 | to redirect the input from /dev/null to make this work.) | ||
71 | |||
72 | SSH_AUTH_SOCK | ||
73 | Identifies the path of a unix-domain socket used to communicate | ||
74 | with the agent. | ||
75 | |||
76 | FILES | ||
77 | ~/.ssh/identity | ||
78 | Contains the protocol version 1 RSA authentication identity of | ||
79 | the user. | ||
80 | |||
81 | ~/.ssh/id_dsa | ||
82 | Contains the protocol version 2 DSA authentication identity of | ||
83 | the user. | ||
84 | |||
85 | ~/.ssh/id_rsa | ||
86 | Contains the protocol version 2 RSA authentication identity of | ||
87 | the user. | ||
88 | |||
89 | Identity files should not be readable by anyone but the user. Note that | ||
90 | ssh-add ignores identity files if they are accessible by others. | ||
91 | |||
92 | DIAGNOSTICS | ||
93 | Exit status is 0 on success, 1 if the specified command fails, and 2 if | ||
94 | ssh-add is unable to contact the authentication agent. | ||
95 | |||
96 | SEE ALSO | ||
97 | ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8) | ||
98 | |||
99 | AUTHORS | ||
100 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
101 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
102 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
103 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
104 | versions 1.5 and 2.0. | ||
105 | |||
106 | OpenBSD 4.5 June 12, 2007 2 | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..c21943212 --- /dev/null +++ b/ssh-agent.0 | |||
@@ -0,0 +1,117 @@ | |||
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 (using a small X11 appli- | ||
50 | cation if running under X11, or from the terminal if running without X). | ||
51 | It then sends the identity to the agent. Several identities can be | ||
52 | stored in the agent; the agent can automatically use any of these identi- | ||
53 | ties. ssh-add -l displays the identities currently held by the agent. | ||
54 | |||
55 | The idea is that the agent is run in the user's local PC, laptop, or ter- | ||
56 | minal. Authentication data need not be stored on any other machine, and | ||
57 | authentication passphrases never go over the network. However, the con- | ||
58 | nection to the agent is forwarded over SSH remote logins, and the user | ||
59 | can thus use the privileges given by the identities anywhere in the net- | ||
60 | work in a secure way. | ||
61 | |||
62 | There are two main ways to get an agent set up: The first is that the | ||
63 | agent starts a new subcommand into which some environment variables are | ||
64 | exported, eg ssh-agent xterm &. The second is that the agent prints the | ||
65 | needed shell commands (either sh(1) or csh(1) syntax can be generated) | ||
66 | which can be evalled in the calling shell, eg eval `ssh-agent -s` for | ||
67 | Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for | ||
68 | csh(1) and derivatives. | ||
69 | |||
70 | Later ssh(1) looks at these variables and uses them to establish a con- | ||
71 | nection to the agent. | ||
72 | |||
73 | The agent will never send a private key over its request channel. In- | ||
74 | stead, operations that require a private key will be performed by the | ||
75 | agent, and the result will be returned to the requester. This way, pri- | ||
76 | vate keys are not exposed to clients using the agent. | ||
77 | |||
78 | A unix-domain socket is created and the name of this socket is stored in | ||
79 | the SSH_AUTH_SOCK environment variable. The socket is made accessible | ||
80 | only to the current user. This method is easily abused by root or anoth- | ||
81 | er instance of the same user. | ||
82 | |||
83 | The SSH_AGENT_PID environment variable holds the agent's process ID. | ||
84 | |||
85 | The agent exits automatically when the command given on the command line | ||
86 | terminates. | ||
87 | |||
88 | FILES | ||
89 | ~/.ssh/identity | ||
90 | Contains the protocol version 1 RSA authentication identity of | ||
91 | the user. | ||
92 | |||
93 | ~/.ssh/id_dsa | ||
94 | Contains the protocol version 2 DSA authentication identity of | ||
95 | the user. | ||
96 | |||
97 | ~/.ssh/id_rsa | ||
98 | Contains the protocol version 2 RSA authentication identity of | ||
99 | the user. | ||
100 | |||
101 | /tmp/ssh-XXXXXXXXXX/agent.<ppid> | ||
102 | Unix-domain sockets used to contain the connection to the authen- | ||
103 | tication agent. These sockets should only be readable by the | ||
104 | owner. The sockets should get automatically removed when the | ||
105 | agent exits. | ||
106 | |||
107 | SEE ALSO | ||
108 | ssh(1), ssh-add(1), ssh-keygen(1), sshd(8) | ||
109 | |||
110 | AUTHORS | ||
111 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
112 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
113 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
114 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
115 | versions 1.5 and 2.0. | ||
116 | |||
117 | OpenBSD 4.5 June 5, 2007 2 | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..b08d43b6d --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,289 @@ | |||
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 reader | ||
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 -U reader [-f input_keyfile] | ||
21 | ssh-keygen -r hostname [-f input_keyfile] [-g] | ||
22 | ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] | ||
23 | ssh-keygen -T output_file -f input_file [-v] [-a num_trials] [-W | ||
24 | generator] | ||
25 | |||
26 | DESCRIPTION | ||
27 | ssh-keygen generates, manages and converts authentication keys for | ||
28 | ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1 | ||
29 | and RSA or DSA keys for use by SSH protocol version 2. The type of key | ||
30 | to be generated is specified with the -t option. If invoked without any | ||
31 | arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2 | ||
32 | connections. | ||
33 | |||
34 | ssh-keygen is also used to generate groups for use in Diffie-Hellman | ||
35 | group exchange (DH-GEX). See the MODULI GENERATION section for details. | ||
36 | |||
37 | Normally each user wishing to use SSH with RSA or DSA authentication runs | ||
38 | this once to create the authentication key in ~/.ssh/identity, | ||
39 | ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator | ||
40 | may use this to generate host keys, as seen in /etc/rc. | ||
41 | |||
42 | Normally this program generates the key and asks for a file in which to | ||
43 | store the private key. The public key is stored in a file with the same | ||
44 | name but ``.pub'' appended. The program also asks for a passphrase. The | ||
45 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
46 | empty passphrase), or it may be a string of arbitrary length. A | ||
47 | passphrase is similar to a password, except it can be a phrase with a se- | ||
48 | ries of words, punctuation, numbers, whitespace, or any string of charac- | ||
49 | ters you want. Good passphrases are 10-30 characters long, are not sim- | ||
50 | ple sentences or otherwise easily guessable (English prose has only 1-2 | ||
51 | bits of entropy per character, and provides very bad passphrases), and | ||
52 | contain a mix of upper and lowercase letters, numbers, and non-alphanu- | ||
53 | meric characters. The passphrase can be changed later by using the -p | ||
54 | option. | ||
55 | |||
56 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
57 | or forgotten, a new key must be generated and copied to the corresponding | ||
58 | public key to other machines. | ||
59 | |||
60 | For RSA1 keys, there is also a comment field in the key file that is only | ||
61 | for convenience to the user to help identify the key. The comment can | ||
62 | tell what the key is for, or whatever is useful. The comment is initial- | ||
63 | ized to ``user@host'' when the key is created, but can be changed using | ||
64 | the -c option. | ||
65 | |||
66 | After a key is generated, instructions below detail where the keys should | ||
67 | be placed to be activated. | ||
68 | |||
69 | The options are as follows: | ||
70 | |||
71 | -a trials | ||
72 | Specifies the number of primality tests to perform when screening | ||
73 | DH-GEX candidates using the -T command. | ||
74 | |||
75 | -B Show the bubblebabble digest of specified private or public key | ||
76 | file. | ||
77 | |||
78 | -b bits | ||
79 | Specifies the number of bits in the key to create. For RSA keys, | ||
80 | the minimum size is 768 bits and the default is 2048 bits. Gen- | ||
81 | erally, 2048 bits is considered sufficient. DSA keys must be ex- | ||
82 | actly 1024 bits as specified by FIPS 186-2. | ||
83 | |||
84 | -C comment | ||
85 | Provides a new comment. | ||
86 | |||
87 | -c Requests changing the comment in the private and public key | ||
88 | files. This operation is only supported for RSA1 keys. The pro- | ||
89 | gram will prompt for the file containing the private keys, for | ||
90 | the passphrase if the key has one, and for the new comment. | ||
91 | |||
92 | -D reader | ||
93 | Download the RSA public key stored in the smartcard in reader. | ||
94 | |||
95 | -e This option will read a private or public OpenSSH key file and | ||
96 | print the key in RFC 4716 SSH Public Key File Format to stdout. | ||
97 | This option allows exporting keys for use by several commercial | ||
98 | SSH implementations. | ||
99 | |||
100 | -F hostname | ||
101 | Search for the specified hostname in a known_hosts file, listing | ||
102 | any occurrences found. This option is useful to find hashed host | ||
103 | names or addresses and may also be used in conjunction with the | ||
104 | -H option to print found keys in a hashed format. | ||
105 | |||
106 | -f filename | ||
107 | Specifies the filename of the key file. | ||
108 | |||
109 | -G output_file | ||
110 | Generate candidate primes for DH-GEX. These primes must be | ||
111 | screened for safety (using the -T option) before use. | ||
112 | |||
113 | -g Use generic DNS format when printing fingerprint resource records | ||
114 | using the -r command. | ||
115 | |||
116 | -H Hash a known_hosts file. This replaces all hostnames and ad- | ||
117 | dresses with hashed representations within the specified file; | ||
118 | the original content is moved to a file with a .old suffix. | ||
119 | These hashes may be used normally by ssh and sshd, but they do | ||
120 | not reveal identifying information should the file's contents be | ||
121 | disclosed. This option will not modify existing hashed hostnames | ||
122 | and is therefore safe to use on files that mix hashed and non- | ||
123 | hashed names. | ||
124 | |||
125 | -i This option will read an unencrypted private (or public) key file | ||
126 | in SSH2-compatible format and print an OpenSSH compatible private | ||
127 | (or public) key to stdout. ssh-keygen also reads the RFC 4716 | ||
128 | SSH Public Key File Format. This option allows importing keys | ||
129 | from several commercial SSH implementations. | ||
130 | |||
131 | -l Show fingerprint of specified public key file. Private RSA1 keys | ||
132 | are also supported. For RSA and DSA keys ssh-keygen tries to | ||
133 | find the matching public key file and prints its fingerprint. If | ||
134 | combined with -v, an ASCII art representation of the key is sup- | ||
135 | plied with the fingerprint. | ||
136 | |||
137 | -M memory | ||
138 | Specify the amount of memory to use (in megabytes) when generat- | ||
139 | ing candidate moduli for DH-GEX. | ||
140 | |||
141 | -N new_passphrase | ||
142 | Provides the new passphrase. | ||
143 | |||
144 | -P passphrase | ||
145 | Provides the (old) passphrase. | ||
146 | |||
147 | -p Requests changing the passphrase of a private key file instead of | ||
148 | creating a new private key. The program will prompt for the file | ||
149 | containing the private key, for the old passphrase, and twice for | ||
150 | the new passphrase. | ||
151 | |||
152 | -q Silence ssh-keygen. Used by /etc/rc when creating a new key. | ||
153 | |||
154 | -R hostname | ||
155 | Removes all keys belonging to hostname from a known_hosts file. | ||
156 | This option is useful to delete hashed hosts (see the -H option | ||
157 | above). | ||
158 | |||
159 | -r hostname | ||
160 | Print the SSHFP fingerprint resource record named hostname for | ||
161 | the specified public key file. | ||
162 | |||
163 | -S start | ||
164 | Specify start point (in hex) when generating candidate moduli for | ||
165 | DH-GEX. | ||
166 | |||
167 | -T output_file | ||
168 | Test DH group exchange candidate primes (generated using the -G | ||
169 | option) for safety. | ||
170 | |||
171 | -t type | ||
172 | Specifies the type of key to create. The possible values are | ||
173 | ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto- | ||
174 | col version 2. | ||
175 | |||
176 | -U reader | ||
177 | Upload an existing RSA private key into the smartcard in reader. | ||
178 | |||
179 | -v Verbose mode. Causes ssh-keygen to print debugging messages | ||
180 | about its progress. This is helpful for debugging moduli genera- | ||
181 | tion. Multiple -v options increase the verbosity. The maximum | ||
182 | is 3. | ||
183 | |||
184 | -W generator | ||
185 | Specify desired generator when testing candidate moduli for DH- | ||
186 | GEX. | ||
187 | |||
188 | -y This option will read a private OpenSSH format file and print an | ||
189 | OpenSSH public key to stdout. | ||
190 | |||
191 | MODULI GENERATION | ||
192 | ssh-keygen may be used to generate groups for the Diffie-Hellman Group | ||
193 | Exchange (DH-GEX) protocol. Generating these groups is a two-step pro- | ||
194 | cess: first, candidate primes are generated using a fast, but memory in- | ||
195 | tensive process. These candidate primes are then tested for suitability | ||
196 | (a CPU-intensive process). | ||
197 | |||
198 | Generation of primes is performed using the -G option. The desired | ||
199 | length of the primes may be specified by the -b option. For example: | ||
200 | |||
201 | # ssh-keygen -G moduli-2048.candidates -b 2048 | ||
202 | |||
203 | By default, the search for primes begins at a random point in the desired | ||
204 | length range. This may be overridden using the -S option, which speci- | ||
205 | fies a different start point (in hex). | ||
206 | |||
207 | Once a set of candidates have been generated, they must be tested for | ||
208 | suitability. This may be performed using the -T option. In this mode | ||
209 | ssh-keygen will read candidates from standard input (or a file specified | ||
210 | using the -f option). For example: | ||
211 | |||
212 | # ssh-keygen -T moduli-2048 -f moduli-2048.candidates | ||
213 | |||
214 | By default, each candidate will be subjected to 100 primality tests. | ||
215 | This may be overridden using the -a option. The DH generator value will | ||
216 | be chosen automatically for the prime under consideration. If a specific | ||
217 | generator is desired, it may be requested using the -W option. Valid | ||
218 | generator values are 2, 3, and 5. | ||
219 | |||
220 | Screened DH groups may be installed in /etc/moduli. It is important that | ||
221 | this file contains moduli of a range of bit lengths and that both ends of | ||
222 | a connection share common moduli. | ||
223 | |||
224 | FILES | ||
225 | ~/.ssh/identity | ||
226 | Contains the protocol version 1 RSA authentication identity of | ||
227 | the user. This file should not be readable by anyone but the us- | ||
228 | er. It is possible to specify a passphrase when generating the | ||
229 | key; that passphrase will be used to encrypt the private part of | ||
230 | this file using 3DES. This file is not automatically accessed by | ||
231 | ssh-keygen but it is offered as the default file for the private | ||
232 | key. ssh(1) will read this file when a login attempt is made. | ||
233 | |||
234 | ~/.ssh/identity.pub | ||
235 | Contains the protocol version 1 RSA public key for authentica- | ||
236 | tion. The contents of this file should be added to | ||
237 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
238 | log in using RSA authentication. There is no need to keep the | ||
239 | contents of this file secret. | ||
240 | |||
241 | ~/.ssh/id_dsa | ||
242 | Contains the protocol version 2 DSA authentication identity of | ||
243 | the user. This file should not be readable by anyone but the us- | ||
244 | er. It is possible to specify a passphrase when generating the | ||
245 | key; that passphrase will be used to encrypt the private part of | ||
246 | this file using 3DES. This file is not automatically accessed by | ||
247 | ssh-keygen but it is offered as the default file for the private | ||
248 | key. ssh(1) will read this file when a login attempt is made. | ||
249 | |||
250 | ~/.ssh/id_dsa.pub | ||
251 | Contains the protocol version 2 DSA public key for authentica- | ||
252 | tion. The contents of this file should be added to | ||
253 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
254 | log in using public key authentication. There is no need to keep | ||
255 | the contents of this file secret. | ||
256 | |||
257 | ~/.ssh/id_rsa | ||
258 | Contains the protocol version 2 RSA authentication identity of | ||
259 | the user. This file should not be readable by anyone but the us- | ||
260 | er. It is possible to specify a passphrase when generating the | ||
261 | key; that passphrase will be used to encrypt the private part of | ||
262 | this file using 3DES. This file is not automatically accessed by | ||
263 | ssh-keygen but it is offered as the default file for the private | ||
264 | key. ssh(1) will read this file when a login attempt is made. | ||
265 | |||
266 | ~/.ssh/id_rsa.pub | ||
267 | Contains the protocol version 2 RSA public key for authentica- | ||
268 | tion. The contents of this file should be added to | ||
269 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
270 | log in using public key authentication. There is no need to keep | ||
271 | the contents of this file secret. | ||
272 | |||
273 | /etc/moduli | ||
274 | Contains Diffie-Hellman groups used for DH-GEX. The file format | ||
275 | is described in moduli(5). | ||
276 | |||
277 | SEE ALSO | ||
278 | ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) | ||
279 | |||
280 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
281 | |||
282 | AUTHORS | ||
283 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
284 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
285 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
286 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
287 | versions 1.5 and 2.0. | ||
288 | |||
289 | OpenBSD 4.5 July 24, 2008 5 | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..dadfd4b63 --- /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.5 December 29, 2008 2 | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..5da5e5388 --- /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.5 May 31, 2007 1 | ||
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0 new file mode 100644 index 000000000..690e14159 --- /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.5 April 14, 2002 1 | ||
@@ -0,0 +1,873 @@ | |||
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] | ||
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] | ||
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. The supported ciphers | ||
82 | are: 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, | ||
83 | aes192-ctr, aes256-ctr, arcfour128, arcfour256, arcfour, blow- | ||
84 | fish-cbc, and cast128-cbc. The default is: | ||
85 | |||
86 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128, | ||
87 | arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr, | ||
88 | aes192-ctr,aes256-ctr | ||
89 | |||
90 | -D [bind_address:]port | ||
91 | Specifies a local ``dynamic'' application-level port forwarding. | ||
92 | This works by allocating a socket to listen to port on the local | ||
93 | side, optionally bound to the specified bind_address. Whenever a | ||
94 | connection is made to this port, the connection is forwarded over | ||
95 | the secure channel, and the application protocol is then used to | ||
96 | determine where to connect to from the remote machine. Currently | ||
97 | the SOCKS4 and SOCKS5 protocols are supported, and ssh will act | ||
98 | as a SOCKS server. Only root can forward privileged ports. Dy- | ||
99 | namic port forwardings can also be specified in the configuration | ||
100 | file. | ||
101 | |||
102 | IPv6 addresses can be specified with an alternative syntax: | ||
103 | [bind_address/]port or by enclosing the address in square brack- | ||
104 | ets. Only the superuser can forward privileged ports. By de- | ||
105 | fault, the local port is bound in accordance with the | ||
106 | GatewayPorts setting. However, an explicit bind_address may be | ||
107 | used to bind the connection to a specific address. The | ||
108 | bind_address of ``localhost'' indicates that the listening port | ||
109 | be bound for local use only, while an empty address or `*' indi- | ||
110 | cates that the port should be available from all interfaces. | ||
111 | |||
112 | -e escape_char | ||
113 | Sets the escape character for sessions with a pty (default: `~'). | ||
114 | The escape character is only recognized at the beginning of a | ||
115 | line. The escape character followed by a dot (`.') closes the | ||
116 | connection; followed by control-Z suspends the connection; and | ||
117 | followed by itself sends the escape character once. Setting the | ||
118 | character to ``none'' disables any escapes and makes the session | ||
119 | fully transparent. | ||
120 | |||
121 | -F configfile | ||
122 | Specifies an alternative per-user configuration file. If a con- | ||
123 | figuration file is given on the command line, the system-wide | ||
124 | configuration file (/etc/ssh/ssh_config) will be ignored. The | ||
125 | default for the per-user configuration file is ~/.ssh/config. | ||
126 | |||
127 | -f Requests ssh to go to background just before command execution. | ||
128 | This is useful if ssh is going to ask for passwords or passphras- | ||
129 | es, but the user wants it in the background. This implies -n. | ||
130 | The recommended way to start X11 programs at a remote site is | ||
131 | with something like ssh -f host xterm. | ||
132 | |||
133 | If the ExitOnForwardFailure configuration option is set to | ||
134 | ``yes'', then a client started with -f will wait for all remote | ||
135 | port forwards to be successfully established before placing it- | ||
136 | self in the background. | ||
137 | |||
138 | -g Allows remote hosts to connect to local forwarded ports. | ||
139 | |||
140 | -I smartcard_device | ||
141 | Specify the device ssh should use to communicate with a smartcard | ||
142 | used for storing the user's private RSA key. This option is only | ||
143 | available if support for smartcard devices is compiled in (de- | ||
144 | fault is no support). | ||
145 | |||
146 | -i identity_file | ||
147 | Selects a file from which the identity (private key) for RSA or | ||
148 | DSA authentication is read. The default is ~/.ssh/identity for | ||
149 | protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro- | ||
150 | tocol version 2. Identity files may also be specified on a per- | ||
151 | host basis in the configuration file. It is possible to have | ||
152 | multiple -i options (and multiple identities specified in config- | ||
153 | uration files). | ||
154 | |||
155 | -K Enables GSSAPI-based authentication and forwarding (delegation) | ||
156 | of GSSAPI credentials to the server. | ||
157 | |||
158 | -k Disables forwarding (delegation) of GSSAPI credentials to the | ||
159 | server. | ||
160 | |||
161 | -L [bind_address:]port:host:hostport | ||
162 | Specifies that the given port on the local (client) host is to be | ||
163 | forwarded to the given host and port on the remote side. This | ||
164 | works by allocating a socket to listen to port on the local side, | ||
165 | optionally bound to the specified bind_address. Whenever a con- | ||
166 | nection is made to this port, the connection is forwarded over | ||
167 | the secure channel, and a connection is made to host port | ||
168 | hostport from the remote machine. Port forwardings can also be | ||
169 | specified in the configuration file. IPv6 addresses can be spec- | ||
170 | ified with an alternative syntax: [bind_address/]port/host/host- | ||
171 | port or by enclosing the address in square brackets. Only the | ||
172 | superuser can forward privileged ports. By default, the local | ||
173 | port is bound in accordance with the GatewayPorts setting. How- | ||
174 | ever, an explicit bind_address may be used to bind the connection | ||
175 | to a specific address. The bind_address of ``localhost'' indi- | ||
176 | cates that the listening port be bound for local use only, while | ||
177 | an empty address or `*' indicates that the port should be avail- | ||
178 | able from all interfaces. | ||
179 | |||
180 | -l login_name | ||
181 | Specifies the user to log in as on the remote machine. This also | ||
182 | may be specified on a per-host basis in the configuration file. | ||
183 | |||
184 | -M Places the ssh client into ``master'' mode for connection shar- | ||
185 | ing. Multiple -M options places ssh into ``master'' mode with | ||
186 | confirmation required before slave connections are accepted. Re- | ||
187 | fer to the description of ControlMaster in ssh_config(5) for de- | ||
188 | tails. | ||
189 | |||
190 | -m mac_spec | ||
191 | Additionally, for protocol version 2 a comma-separated list of | ||
192 | MAC (message authentication code) algorithms can be specified in | ||
193 | order of preference. See the MACs keyword for more information. | ||
194 | |||
195 | -N Do not execute a remote command. This is useful for just for- | ||
196 | warding ports (protocol version 2 only). | ||
197 | |||
198 | -n Redirects stdin from /dev/null (actually, prevents reading from | ||
199 | stdin). This must be used when ssh is run in the background. A | ||
200 | common trick is to use this to run X11 programs on a remote ma- | ||
201 | chine. For example, ssh -n shadows.cs.hut.fi emacs & will start | ||
202 | an emacs on shadows.cs.hut.fi, and the X11 connection will be au- | ||
203 | tomatically forwarded over an encrypted channel. The ssh program | ||
204 | will be put in the background. (This does not work if ssh needs | ||
205 | to ask for a password or passphrase; see also the -f option.) | ||
206 | |||
207 | -O ctl_cmd | ||
208 | Control an active connection multiplexing master process. When | ||
209 | the -O option is specified, the ctl_cmd argument is interpreted | ||
210 | and passed to the master process. Valid commands are: ``check'' | ||
211 | (check that the master process is running) and ``exit'' (request | ||
212 | the master to exit). | ||
213 | |||
214 | -o option | ||
215 | Can be used to give options in the format used in the configura- | ||
216 | tion file. This is useful for specifying options for which there | ||
217 | is no separate command-line flag. For full details of the op- | ||
218 | tions listed below, and their possible values, see ssh_config(5). | ||
219 | |||
220 | AddressFamily | ||
221 | BatchMode | ||
222 | BindAddress | ||
223 | ChallengeResponseAuthentication | ||
224 | CheckHostIP | ||
225 | Cipher | ||
226 | Ciphers | ||
227 | ClearAllForwardings | ||
228 | Compression | ||
229 | CompressionLevel | ||
230 | ConnectionAttempts | ||
231 | ConnectTimeout | ||
232 | ControlMaster | ||
233 | ControlPath | ||
234 | DynamicForward | ||
235 | EscapeChar | ||
236 | ExitOnForwardFailure | ||
237 | ForwardAgent | ||
238 | ForwardX11 | ||
239 | ForwardX11Trusted | ||
240 | GatewayPorts | ||
241 | GlobalKnownHostsFile | ||
242 | GSSAPIAuthentication | ||
243 | GSSAPIDelegateCredentials | ||
244 | HashKnownHosts | ||
245 | Host | ||
246 | HostbasedAuthentication | ||
247 | HostKeyAlgorithms | ||
248 | HostKeyAlias | ||
249 | HostName | ||
250 | IdentityFile | ||
251 | IdentitiesOnly | ||
252 | KbdInteractiveDevices | ||
253 | LocalCommand | ||
254 | LocalForward | ||
255 | LogLevel | ||
256 | MACs | ||
257 | NoHostAuthenticationForLocalhost | ||
258 | NumberOfPasswordPrompts | ||
259 | PasswordAuthentication | ||
260 | PermitLocalCommand | ||
261 | Port | ||
262 | PreferredAuthentications | ||
263 | Protocol | ||
264 | ProxyCommand | ||
265 | PubkeyAuthentication | ||
266 | RekeyLimit | ||
267 | RemoteForward | ||
268 | RhostsRSAAuthentication | ||
269 | RSAAuthentication | ||
270 | SendEnv | ||
271 | ServerAliveInterval | ||
272 | ServerAliveCountMax | ||
273 | SmartcardDevice | ||
274 | StrictHostKeyChecking | ||
275 | TCPKeepAlive | ||
276 | Tunnel | ||
277 | TunnelDevice | ||
278 | UsePrivilegedPort | ||
279 | User | ||
280 | UserKnownHostsFile | ||
281 | VerifyHostKeyDNS | ||
282 | VisualHostKey | ||
283 | XAuthLocation | ||
284 | |||
285 | -p port | ||
286 | Port to connect to on the remote host. This can be specified on | ||
287 | a per-host basis in the configuration file. | ||
288 | |||
289 | -q Quiet mode. Causes most warning and diagnostic messages to be | ||
290 | suppressed. | ||
291 | |||
292 | -R [bind_address:]port:host:hostport | ||
293 | Specifies that the given port on the remote (server) host is to | ||
294 | be forwarded to the given host and port on the local side. This | ||
295 | works by allocating a socket to listen to port on the remote | ||
296 | side, and whenever a connection is made to this port, the connec- | ||
297 | tion is forwarded over the secure channel, and a connection is | ||
298 | made to host port hostport from the local machine. | ||
299 | |||
300 | Port forwardings can also be specified in the configuration file. | ||
301 | Privileged ports can be forwarded only when logging in as root on | ||
302 | the remote machine. IPv6 addresses can be specified by enclosing | ||
303 | the address in square braces or using an alternative syntax: | ||
304 | [bind_address/]host/port/hostport. | ||
305 | |||
306 | By default, the listening socket on the server will be bound to | ||
307 | the loopback interface only. This may be overridden by specify- | ||
308 | ing a bind_address. An empty bind_address, or the address `*', | ||
309 | indicates that the remote socket should listen on all interfaces. | ||
310 | Specifying a remote bind_address will only succeed if the serv- | ||
311 | er's GatewayPorts option is enabled (see sshd_config(5)). | ||
312 | |||
313 | If the port argument is `0', the listen port will be dynamically | ||
314 | allocated on the server and reported to the client at run time. | ||
315 | |||
316 | -S ctl_path | ||
317 | Specifies the location of a control socket for connection shar- | ||
318 | ing. Refer to the description of ControlPath and ControlMaster | ||
319 | in ssh_config(5) for details. | ||
320 | |||
321 | -s May be used to request invocation of a subsystem on the remote | ||
322 | system. Subsystems are a feature of the SSH2 protocol which fa- | ||
323 | cilitate the use of SSH as a secure transport for other applica- | ||
324 | tions (eg. sftp(1)). The subsystem is specified as the remote | ||
325 | command. | ||
326 | |||
327 | -T Disable pseudo-tty allocation. | ||
328 | |||
329 | -t Force pseudo-tty allocation. This can be used to execute arbi- | ||
330 | trary screen-based programs on a remote machine, which can be | ||
331 | very useful, e.g. when implementing menu services. Multiple -t | ||
332 | options force tty allocation, even if ssh has no local tty. | ||
333 | |||
334 | -V Display the version number and exit. | ||
335 | |||
336 | -v Verbose mode. Causes ssh to print debugging messages about its | ||
337 | progress. This is helpful in debugging connection, authentica- | ||
338 | tion, and configuration problems. Multiple -v options increase | ||
339 | the verbosity. The maximum is 3. | ||
340 | |||
341 | -w local_tun[:remote_tun] | ||
342 | Requests tunnel device forwarding with the specified tun(4) de- | ||
343 | vices between the client (local_tun) and the server (remote_tun). | ||
344 | |||
345 | The devices may be specified by numerical ID or the keyword | ||
346 | ``any'', which uses the next available tunnel device. If | ||
347 | remote_tun is not specified, it defaults to ``any''. See also | ||
348 | the Tunnel and TunnelDevice directives in ssh_config(5). If the | ||
349 | Tunnel directive is unset, it is set to the default tunnel mode, | ||
350 | which is ``point-to-point''. | ||
351 | |||
352 | -X Enables X11 forwarding. This can also be specified on a per-host | ||
353 | basis in a configuration file. | ||
354 | |||
355 | X11 forwarding should be enabled with caution. Users with the | ||
356 | ability to bypass file permissions on the remote host (for the | ||
357 | user's X authorization database) can access the local X11 display | ||
358 | through the forwarded connection. An attacker may then be able | ||
359 | to perform activities such as keystroke monitoring. | ||
360 | |||
361 | For this reason, X11 forwarding is subjected to X11 SECURITY ex- | ||
362 | tension restrictions by default. Please refer to the ssh -Y op- | ||
363 | tion and the ForwardX11Trusted directive in ssh_config(5) for | ||
364 | more information. | ||
365 | |||
366 | -x Disables X11 forwarding. | ||
367 | |||
368 | -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not | ||
369 | subjected to the X11 SECURITY extension controls. | ||
370 | |||
371 | -y Send log information using the syslog(3) system module. By de- | ||
372 | fault this information is sent to stderr. | ||
373 | |||
374 | ssh may additionally obtain configuration data from a per-user configura- | ||
375 | tion file and a system-wide configuration file. The file format and con- | ||
376 | figuration options are described in ssh_config(5). | ||
377 | |||
378 | ssh exits with the exit status of the remote command or with 255 if an | ||
379 | error occurred. | ||
380 | |||
381 | AUTHENTICATION | ||
382 | The OpenSSH SSH client supports SSH protocols 1 and 2. Protocol 2 is the | ||
383 | default, with ssh falling back to protocol 1 if it detects protocol 2 is | ||
384 | unsupported. These settings may be altered using the Protocol option in | ||
385 | ssh_config(5), or enforced using the -1 and -2 options (see above). Both | ||
386 | protocols support similar authentication methods, but protocol 2 is pre- | ||
387 | ferred since it provides additional mechanisms for confidentiality (the | ||
388 | traffic is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and | ||
389 | integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1 | ||
390 | lacks a 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 | The most convenient way to use public key authentication may be with an | ||
441 | authentication agent. See ssh-agent(1) for more information. | ||
442 | |||
443 | Challenge-response authentication works as follows: The server sends an | ||
444 | arbitrary "challenge" text, and prompts for a response. Protocol 2 al- | ||
445 | lows multiple challenges and responses; protocol 1 is restricted to just | ||
446 | one challenge/response. Examples of challenge-response authentication | ||
447 | include BSD Authentication (see login.conf(5)) and PAM (some non-OpenBSD | ||
448 | systems). | ||
449 | |||
450 | Finally, if other authentication methods fail, ssh prompts the user for a | ||
451 | password. The password is sent to the remote host for checking; however, | ||
452 | since all communications are encrypted, the password cannot be seen by | ||
453 | someone listening on the network. | ||
454 | |||
455 | ssh automatically maintains and checks a database containing identifica- | ||
456 | tion for all hosts it has ever been used with. Host keys are stored in | ||
457 | ~/.ssh/known_hosts in the user's home directory. Additionally, the file | ||
458 | /etc/ssh/ssh_known_hosts is automatically checked for known hosts. Any | ||
459 | new hosts are automatically added to the user's file. If a host's iden- | ||
460 | tification ever changes, ssh warns about this and disables password au- | ||
461 | thentication to prevent server spoofing or man-in-the-middle attacks, | ||
462 | which could otherwise be used to circumvent the encryption. The | ||
463 | StrictHostKeyChecking option can be used to control logins to machines | ||
464 | whose host key is not known or has changed. | ||
465 | |||
466 | When the user's identity has been accepted by the server, the server ei- | ||
467 | ther executes the given command, or logs into the machine and gives the | ||
468 | user a normal shell on the remote machine. All communication with the | ||
469 | remote command or shell will be automatically encrypted. | ||
470 | |||
471 | If a pseudo-terminal has been allocated (normal login session), the user | ||
472 | may use the escape characters noted below. | ||
473 | |||
474 | If no pseudo-tty has been allocated, the session is transparent and can | ||
475 | be used to reliably transfer binary data. On most systems, setting the | ||
476 | escape character to ``none'' will also make the session transparent even | ||
477 | if a tty is used. | ||
478 | |||
479 | The session terminates when the command or shell on the remote machine | ||
480 | exits and all X11 and TCP connections have been closed. | ||
481 | |||
482 | ESCAPE CHARACTERS | ||
483 | When a pseudo-terminal has been requested, ssh supports a number of func- | ||
484 | tions through the use of an escape character. | ||
485 | |||
486 | A single tilde character can be sent as ~~ or by following the tilde by a | ||
487 | character other than those described below. The escape character must | ||
488 | always follow a newline to be interpreted as special. The escape charac- | ||
489 | ter can be changed in configuration files using the EscapeChar configura- | ||
490 | tion directive or on the command line by the -e option. | ||
491 | |||
492 | The supported escapes (assuming the default `~') are: | ||
493 | |||
494 | ~. Disconnect. | ||
495 | |||
496 | ~^Z Background ssh. | ||
497 | |||
498 | ~# List forwarded connections. | ||
499 | |||
500 | ~& Background ssh at logout when waiting for forwarded connection / | ||
501 | X11 sessions to terminate. | ||
502 | |||
503 | ~? Display a list of escape characters. | ||
504 | |||
505 | ~B Send a BREAK to the remote system (only useful for SSH protocol | ||
506 | version 2 and if the peer supports it). | ||
507 | |||
508 | ~C Open command line. Currently this allows the addition of port | ||
509 | forwardings using the -L, -R and -D options (see above). It also | ||
510 | allows the cancellation of existing remote port-forwardings using | ||
511 | -KR[bind_address:]port. !command allows the user to execute a | ||
512 | local command if the PermitLocalCommand option is enabled in | ||
513 | ssh_config(5). Basic help is available, using the -h option. | ||
514 | |||
515 | ~R Request rekeying of the connection (only useful for SSH protocol | ||
516 | version 2 and if the peer supports it). | ||
517 | |||
518 | TCP FORWARDING | ||
519 | Forwarding of arbitrary TCP connections over the secure channel can be | ||
520 | specified either on the command line or in a configuration file. One | ||
521 | possible application of TCP forwarding is a secure connection to a mail | ||
522 | server; another is going through firewalls. | ||
523 | |||
524 | In the example below, we look at encrypting communication between an IRC | ||
525 | client and server, even though the IRC server does not directly support | ||
526 | encrypted communications. This works as follows: the user connects to | ||
527 | the remote host using ssh, specifying a port to be used to forward con- | ||
528 | nections to the remote server. After that it is possible to start the | ||
529 | service which is to be encrypted on the client machine, connecting to the | ||
530 | same local port, and ssh will encrypt and forward the connection. | ||
531 | |||
532 | The following example tunnels an IRC session from client machine | ||
533 | ``127.0.0.1'' (localhost) to remote server ``server.example.com'': | ||
534 | |||
535 | $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10 | ||
536 | $ irc -c '#users' -p 1234 pinky 127.0.0.1 | ||
537 | |||
538 | This tunnels a connection to IRC server ``server.example.com'', joining | ||
539 | channel ``#users'', nickname ``pinky'', using port 1234. It doesn't mat- | ||
540 | ter which port is used, as long as it's greater than 1023 (remember, only | ||
541 | root can open sockets on privileged ports) and doesn't conflict with any | ||
542 | ports already in use. The connection is forwarded to port 6667 on the | ||
543 | remote server, since that's the standard port for IRC services. | ||
544 | |||
545 | The -f option backgrounds ssh and the remote command ``sleep 10'' is | ||
546 | specified to allow an amount of time (10 seconds, in the example) to | ||
547 | start the service which is to be tunnelled. If no connections are made | ||
548 | within the time specified, ssh will exit. | ||
549 | |||
550 | X11 FORWARDING | ||
551 | If the ForwardX11 variable is set to ``yes'' (or see the description of | ||
552 | the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY | ||
553 | environment variable is set), the connection to the X11 display is auto- | ||
554 | matically forwarded to the remote side in such a way that any X11 pro- | ||
555 | grams started from the shell (or command) will go through the encrypted | ||
556 | channel, and the connection to the real X server will be made from the | ||
557 | local machine. The user should not manually set DISPLAY. Forwarding of | ||
558 | X11 connections can be configured on the command line or in configuration | ||
559 | files. | ||
560 | |||
561 | The DISPLAY value set by ssh will point to the server machine, but with a | ||
562 | display number greater than zero. This is normal, and happens because | ||
563 | ssh creates a ``proxy'' X server on the server machine for forwarding the | ||
564 | connections over the encrypted channel. | ||
565 | |||
566 | ssh will also automatically set up Xauthority data on the server machine. | ||
567 | For this purpose, it will generate a random authorization cookie, store | ||
568 | it in Xauthority on the server, and verify that any forwarded connections | ||
569 | carry this cookie and replace it by the real cookie when the connection | ||
570 | is opened. The real authentication cookie is never sent to the server | ||
571 | machine (and no cookies are sent in the plain). | ||
572 | |||
573 | If the ForwardAgent variable is set to ``yes'' (or see the description of | ||
574 | the -A and -a options above) and the user is using an authentication | ||
575 | agent, the connection to the agent is automatically forwarded to the re- | ||
576 | mote side. | ||
577 | |||
578 | VERIFYING HOST KEYS | ||
579 | When connecting to a server for the first time, a fingerprint of the | ||
580 | server's public key is presented to the user (unless the option | ||
581 | StrictHostKeyChecking has been disabled). Fingerprints can be determined | ||
582 | using ssh-keygen(1): | ||
583 | |||
584 | $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
585 | |||
586 | If the fingerprint is already known, it can be matched and the key can be | ||
587 | accepted or rejected. Because of the difficulty of comparing host keys | ||
588 | just by looking at hex strings, there is also support to compare host | ||
589 | keys visually, using random art. By setting the VisualHostKey option to | ||
590 | ``yes'', a small ASCII graphic gets displayed on every login to a server, | ||
591 | no matter if the session itself is interactive or not. By learning the | ||
592 | pattern a known server produces, a user can easily find out that the host | ||
593 | key has changed when a completely different pattern is displayed. Be- | ||
594 | cause these patterns are not unambiguous however, a pattern that looks | ||
595 | similar to the pattern remembered only gives a good probability that the | ||
596 | host key is the same, not guaranteed proof. | ||
597 | |||
598 | To get a listing of the fingerprints along with their random art for all | ||
599 | known hosts, the following command line can be used: | ||
600 | |||
601 | $ ssh-keygen -lv -f ~/.ssh/known_hosts | ||
602 | |||
603 | If the fingerprint is unknown, an alternative method of verification is | ||
604 | available: SSH fingerprints verified by DNS. An additional resource | ||
605 | record (RR), SSHFP, is added to a zonefile and the connecting client is | ||
606 | able to match the fingerprint with that of the key presented. | ||
607 | |||
608 | In this example, we are connecting a client to a server, | ||
609 | ``host.example.com''. The SSHFP resource records should first be added | ||
610 | to the zonefile for host.example.com: | ||
611 | |||
612 | $ ssh-keygen -r host.example.com. | ||
613 | |||
614 | The output lines will have to be added to the zonefile. To check that | ||
615 | the zone is answering fingerprint queries: | ||
616 | |||
617 | $ dig -t SSHFP host.example.com | ||
618 | |||
619 | Finally the client connects: | ||
620 | |||
621 | $ ssh -o "VerifyHostKeyDNS ask" host.example.com | ||
622 | [...] | ||
623 | Matching host key fingerprint found in DNS. | ||
624 | Are you sure you want to continue connecting (yes/no)? | ||
625 | |||
626 | See the VerifyHostKeyDNS option in ssh_config(5) for more information. | ||
627 | |||
628 | SSH-BASED VIRTUAL PRIVATE NETWORKS | ||
629 | ssh contains support for Virtual Private Network (VPN) tunnelling using | ||
630 | the tun(4) network pseudo-device, allowing two networks to be joined se- | ||
631 | curely. The sshd_config(5) configuration option PermitTunnel controls | ||
632 | whether the server supports this, and at what level (layer 2 or 3 traf- | ||
633 | fic). | ||
634 | |||
635 | The following example would connect client network 10.0.50.0/24 with re- | ||
636 | mote network 10.0.99.0/24 using a point-to-point connection from 10.1.1.1 | ||
637 | to 10.1.1.2, provided that the SSH server running on the gateway to the | ||
638 | remote network, at 192.168.1.15, allows it. | ||
639 | |||
640 | On the client: | ||
641 | |||
642 | # ssh -f -w 0:1 192.168.1.15 true | ||
643 | # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252 | ||
644 | # route add 10.0.99.0/24 10.1.1.2 | ||
645 | |||
646 | On the server: | ||
647 | |||
648 | # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252 | ||
649 | # route add 10.0.50.0/24 10.1.1.1 | ||
650 | |||
651 | Client access may be more finely tuned via the /root/.ssh/authorized_keys | ||
652 | file (see below) and the PermitRootLogin server option. The following | ||
653 | entry would permit connections on tun(4) device 1 from user ``jane'' and | ||
654 | on tun device 2 from user ``john'', if PermitRootLogin is set to | ||
655 | ``forced-commands-only'': | ||
656 | |||
657 | tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane | ||
658 | tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john | ||
659 | |||
660 | Since an SSH-based setup entails a fair amount of overhead, it may be | ||
661 | more suited to temporary setups, such as for wireless VPNs. More perma- | ||
662 | nent VPNs are better provided by tools such as ipsecctl(8) and | ||
663 | isakmpd(8). | ||
664 | |||
665 | ENVIRONMENT | ||
666 | ssh will normally set the following environment variables: | ||
667 | |||
668 | DISPLAY The DISPLAY variable indicates the location of the | ||
669 | X11 server. It is automatically set by ssh to | ||
670 | point to a value of the form ``hostname:n'', where | ||
671 | ``hostname'' indicates the host where the shell | ||
672 | runs, and `n' is an integer >= 1. ssh uses this | ||
673 | special value to forward X11 connections over the | ||
674 | secure channel. The user should normally not set | ||
675 | DISPLAY explicitly, as that will render the X11 | ||
676 | connection insecure (and will require the user to | ||
677 | manually copy any required authorization cookies). | ||
678 | |||
679 | HOME Set to the path of the user's home directory. | ||
680 | |||
681 | LOGNAME Synonym for USER; set for compatibility with sys- | ||
682 | tems that use this variable. | ||
683 | |||
684 | MAIL Set to the path of the user's mailbox. | ||
685 | |||
686 | PATH Set to the default PATH, as specified when compil- | ||
687 | ing ssh. | ||
688 | |||
689 | SSH_ASKPASS If ssh needs a passphrase, it will read the | ||
690 | passphrase from the current terminal if it was run | ||
691 | from a terminal. If ssh does not have a terminal | ||
692 | associated with it but DISPLAY and SSH_ASKPASS are | ||
693 | set, it will execute the program specified by | ||
694 | SSH_ASKPASS and open an X11 window to read the | ||
695 | passphrase. This is particularly useful when call- | ||
696 | ing ssh from a .xsession or related script. (Note | ||
697 | that on some machines it may be necessary to redi- | ||
698 | rect the input from /dev/null to make this work.) | ||
699 | |||
700 | SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to | ||
701 | communicate with the agent. | ||
702 | |||
703 | SSH_CONNECTION Identifies the client and server ends of the con- | ||
704 | nection. The variable contains four space-separat- | ||
705 | ed values: client IP address, client port number, | ||
706 | server IP address, and server port number. | ||
707 | |||
708 | SSH_ORIGINAL_COMMAND This variable contains the original command line if | ||
709 | a forced command is executed. It can be used to | ||
710 | extract the original arguments. | ||
711 | |||
712 | SSH_TTY This is set to the name of the tty (path to the de- | ||
713 | vice) associated with the current shell or command. | ||
714 | If the current session has no tty, this variable is | ||
715 | not set. | ||
716 | |||
717 | TZ This variable is set to indicate the present time | ||
718 | zone if it was set when the daemon was started | ||
719 | (i.e. the daemon passes the value on to new connec- | ||
720 | tions). | ||
721 | |||
722 | USER Set to the name of the user logging in. | ||
723 | |||
724 | Additionally, ssh reads ~/.ssh/environment, and adds lines of the format | ||
725 | ``VARNAME=value'' to the environment if the file exists and users are al- | ||
726 | lowed to change their environment. For more information, see the | ||
727 | PermitUserEnvironment option in sshd_config(5). | ||
728 | |||
729 | FILES | ||
730 | ~/.rhosts | ||
731 | This file is used for host-based authentication (see above). On | ||
732 | some machines this file may need to be world-readable if the us- | ||
733 | er's home directory is on an NFS partition, because sshd(8) reads | ||
734 | it as root. Additionally, this file must be owned by the user, | ||
735 | and must not have write permissions for anyone else. The recom- | ||
736 | mended permission for most machines is read/write for the user, | ||
737 | and not accessible by others. | ||
738 | |||
739 | ~/.shosts | ||
740 | This file is used in exactly the same way as .rhosts, but allows | ||
741 | host-based authentication without permitting login with | ||
742 | rlogin/rsh. | ||
743 | |||
744 | ~/.ssh/ | ||
745 | This directory is the default location for all user-specific con- | ||
746 | figuration and authentication information. There is no general | ||
747 | requirement to keep the entire contents of this directory secret, | ||
748 | but the recommended permissions are read/write/execute for the | ||
749 | user, and not accessible by others. | ||
750 | |||
751 | ~/.ssh/authorized_keys | ||
752 | Lists the public keys (RSA/DSA) that can be used for logging in | ||
753 | as this user. The format of this file is described in the | ||
754 | sshd(8) manual page. This file is not highly sensitive, but the | ||
755 | recommended permissions are read/write for the user, and not ac- | ||
756 | cessible by others. | ||
757 | |||
758 | ~/.ssh/config | ||
759 | This is the per-user configuration file. The file format and | ||
760 | configuration options are described in ssh_config(5). Because of | ||
761 | the potential for abuse, this file must have strict permissions: | ||
762 | read/write for the user, and not accessible by others. | ||
763 | |||
764 | ~/.ssh/environment | ||
765 | Contains additional definitions for environment variables; see | ||
766 | ENVIRONMENT, above. | ||
767 | |||
768 | ~/.ssh/identity | ||
769 | ~/.ssh/id_dsa | ||
770 | ~/.ssh/id_rsa | ||
771 | Contains the private key for authentication. These files contain | ||
772 | sensitive data and should be readable by the user but not acces- | ||
773 | sible by others (read/write/execute). ssh will simply ignore a | ||
774 | private key file if it is accessible by others. It is possible | ||
775 | to specify a passphrase when generating the key which will be | ||
776 | used to encrypt the sensitive part of this file using 3DES. | ||
777 | |||
778 | ~/.ssh/identity.pub | ||
779 | ~/.ssh/id_dsa.pub | ||
780 | ~/.ssh/id_rsa.pub | ||
781 | Contains the public key for authentication. These files are not | ||
782 | sensitive and can (but need not) be readable by anyone. | ||
783 | |||
784 | ~/.ssh/known_hosts | ||
785 | Contains a list of host keys for all hosts the user has logged | ||
786 | into that are not already in the systemwide list of known host | ||
787 | keys. See sshd(8) for further details of the format of this | ||
788 | file. | ||
789 | |||
790 | ~/.ssh/rc | ||
791 | Commands in this file are executed by ssh when the user logs in, | ||
792 | just before the user's shell (or command) is started. See the | ||
793 | sshd(8) manual page for more information. | ||
794 | |||
795 | /etc/hosts.equiv | ||
796 | This file is for host-based authentication (see above). It | ||
797 | should only be writable by root. | ||
798 | |||
799 | /etc/shosts.equiv | ||
800 | This file is used in exactly the same way as hosts.equiv, but al- | ||
801 | lows host-based authentication without permitting login with | ||
802 | rlogin/rsh. | ||
803 | |||
804 | /etc/ssh/ssh_config | ||
805 | Systemwide configuration file. The file format and configuration | ||
806 | options are described in ssh_config(5). | ||
807 | |||
808 | /etc/ssh/ssh_host_key | ||
809 | /etc/ssh/ssh_host_dsa_key | ||
810 | /etc/ssh/ssh_host_rsa_key | ||
811 | These three files contain the private parts of the host keys and | ||
812 | are used for host-based authentication. If protocol version 1 is | ||
813 | used, ssh must be setuid root, since the host key is readable on- | ||
814 | ly by root. For protocol version 2, ssh uses ssh-keysign(8) to | ||
815 | access the host keys, eliminating the requirement that ssh be se- | ||
816 | tuid root when host-based authentication is used. By default ssh | ||
817 | is not setuid root. | ||
818 | |||
819 | /etc/ssh/ssh_known_hosts | ||
820 | Systemwide list of known host keys. This file should be prepared | ||
821 | by the system administrator to contain the public host keys of | ||
822 | all machines in the organization. It should be world-readable. | ||
823 | See sshd(8) for further details of the format of this file. | ||
824 | |||
825 | /etc/ssh/sshrc | ||
826 | Commands in this file are executed by ssh when the user logs in, | ||
827 | just before the user's shell (or command) is started. See the | ||
828 | sshd(8) manual page for more information. | ||
829 | |||
830 | SEE ALSO | ||
831 | scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1), | ||
832 | tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8) | ||
833 | |||
834 | The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006. | ||
835 | |||
836 | The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006. | ||
837 | |||
838 | The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006. | ||
839 | |||
840 | The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006. | ||
841 | |||
842 | The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006. | ||
843 | |||
844 | Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC | ||
845 | 4255, 2006. | ||
846 | |||
847 | Generic Message Exchange Authentication for the Secure Shell Protocol | ||
848 | (SSH), RFC 4256, 2006. | ||
849 | |||
850 | The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006. | ||
851 | |||
852 | The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006. | ||
853 | |||
854 | Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer | ||
855 | Protocol, RFC 4345, 2006. | ||
856 | |||
857 | Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer | ||
858 | Protocol, RFC 4419, 2006. | ||
859 | |||
860 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
861 | |||
862 | A. Perrig and D. Song, Hash Visualization: a New Technique to improve | ||
863 | Real-World Security, 1999, International Workshop on Cryptographic | ||
864 | Techniques and E-Commerce (CrypTEC '99). | ||
865 | |||
866 | AUTHORS | ||
867 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
868 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
869 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
870 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
871 | versions 1.5 and 2.0. | ||
872 | |||
873 | OpenBSD 4.5 February 12, 2009 14 | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..e5ded8e31 --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,670 @@ | |||
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. | ||
320 | |||
321 | The file name may use the tilde syntax to refer to a user's home | ||
322 | directory or one of the following escape characters: `%d' (local | ||
323 | user's home directory), `%u' (local user name), `%l' (local host | ||
324 | name), `%h' (remote host name) or `%r' (remote user name). | ||
325 | |||
326 | It is possible to have multiple identity files specified in con- | ||
327 | figuration files; all these identities will be tried in sequence. | ||
328 | |||
329 | KbdInteractiveAuthentication | ||
330 | Specifies whether to use keyboard-interactive authentication. | ||
331 | The argument to this keyword must be ``yes'' or ``no''. The de- | ||
332 | fault is ``yes''. | ||
333 | |||
334 | KbdInteractiveDevices | ||
335 | Specifies the list of methods to use in keyboard-interactive au- | ||
336 | thentication. Multiple method names must be comma-separated. | ||
337 | The default is to use the server specified list. The methods | ||
338 | available vary depending on what the server supports. For an | ||
339 | OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'', | ||
340 | and ``skey''. | ||
341 | |||
342 | LocalCommand | ||
343 | Specifies a command to execute on the local machine after suc- | ||
344 | cessfully connecting to the server. The command string extends | ||
345 | to the end of the line, and is executed with the user's shell. | ||
346 | The following escape character substitutions will be performed: | ||
347 | `%d' (local user's home directory), `%h' (remote host name), `%l' | ||
348 | (local host name), `%n' (host name as provided on the command | ||
349 | line), `%p' (remote port), `%r' (remote user name) or `%u' (local | ||
350 | user name). This directive is ignored unless PermitLocalCommand | ||
351 | has been enabled. | ||
352 | |||
353 | LocalForward | ||
354 | Specifies that a TCP port on the local machine be forwarded over | ||
355 | the secure channel to the specified host and port from the remote | ||
356 | machine. The first argument must be [bind_address:]port and the | ||
357 | second argument must be host:hostport. IPv6 addresses can be | ||
358 | specified by enclosing addresses in square brackets or by using | ||
359 | an alternative syntax: [bind_address/]port and host/hostport. | ||
360 | Multiple forwardings may be specified, and additional forwardings | ||
361 | can be given on the command line. Only the superuser can forward | ||
362 | privileged ports. By default, the local port is bound in accor- | ||
363 | dance with the GatewayPorts setting. However, an explicit | ||
364 | bind_address may be used to bind the connection to a specific ad- | ||
365 | dress. The bind_address of ``localhost'' indicates that the lis- | ||
366 | tening port be bound for local use only, while an empty address | ||
367 | or `*' indicates that the port should be available from all in- | ||
368 | terfaces. | ||
369 | |||
370 | LogLevel | ||
371 | Gives the verbosity level that is used when logging messages from | ||
372 | ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, VER- | ||
373 | BOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
374 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
375 | higher levels of verbose output. | ||
376 | |||
377 | MACs Specifies the MAC (message authentication code) algorithms in or- | ||
378 | der of preference. The MAC algorithm is used in protocol version | ||
379 | 2 for data integrity protection. Multiple algorithms must be | ||
380 | comma-separated. The default is: | ||
381 | |||
382 | hmac-md5,hmac-sha1,umac-64@openssh.com, | ||
383 | hmac-ripemd160,hmac-sha1-96,hmac-md5-96 | ||
384 | |||
385 | NoHostAuthenticationForLocalhost | ||
386 | This option can be used if the home directory is shared across | ||
387 | machines. In this case localhost will refer to a different ma- | ||
388 | chine on each of the machines and the user will get many warnings | ||
389 | about changed host keys. However, this option disables host au- | ||
390 | thentication for localhost. The argument to this keyword must be | ||
391 | ``yes'' or ``no''. The default is to check the host key for lo- | ||
392 | calhost. | ||
393 | |||
394 | NumberOfPasswordPrompts | ||
395 | Specifies the number of password prompts before giving up. The | ||
396 | argument to this keyword must be an integer. The default is 3. | ||
397 | |||
398 | PasswordAuthentication | ||
399 | Specifies whether to use password authentication. The argument | ||
400 | to this keyword must be ``yes'' or ``no''. The default is | ||
401 | ``yes''. | ||
402 | |||
403 | PermitLocalCommand | ||
404 | Allow local command execution via the LocalCommand option or us- | ||
405 | ing the !command escape sequence in ssh(1). The argument must be | ||
406 | ``yes'' or ``no''. The default is ``no''. | ||
407 | |||
408 | Port Specifies the port number to connect on the remote host. The de- | ||
409 | fault is 22. | ||
410 | |||
411 | PreferredAuthentications | ||
412 | Specifies the order in which the client should try protocol 2 au- | ||
413 | thentication methods. This allows a client to prefer one method | ||
414 | (e.g. keyboard-interactive) over another method (e.g. password) | ||
415 | The default for this option is: ``gssapi-with-mic,hostbased, | ||
416 | publickey, keyboard-interactive, password''. | ||
417 | |||
418 | Protocol | ||
419 | Specifies the protocol versions ssh(1) should support in order of | ||
420 | preference. The possible values are `1' and `2'. Multiple ver- | ||
421 | sions must be comma-separated. The default is ``2,1''. This | ||
422 | means that ssh tries version 2 and falls back to version 1 if | ||
423 | version 2 is not available. | ||
424 | |||
425 | ProxyCommand | ||
426 | Specifies the command to use to connect to the server. The com- | ||
427 | mand string extends to the end of the line, and is executed with | ||
428 | the user's shell. In the command string, `%h' will be substitut- | ||
429 | ed by the host name to connect and `%p' by the port. The command | ||
430 | can be basically anything, and should read from its standard in- | ||
431 | put and write to its standard output. It should eventually con- | ||
432 | nect an sshd(8) server running on some machine, or execute sshd | ||
433 | -i somewhere. Host key management will be done using the Host- | ||
434 | Name of the host being connected (defaulting to the name typed by | ||
435 | the user). Setting the command to ``none'' disables this option | ||
436 | entirely. Note that CheckHostIP is not available for connects | ||
437 | with a proxy command. | ||
438 | |||
439 | This directive is useful in conjunction with nc(1) and its proxy | ||
440 | support. For example, the following directive would connect via | ||
441 | an HTTP proxy at 192.0.2.0: | ||
442 | |||
443 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | ||
444 | |||
445 | PubkeyAuthentication | ||
446 | Specifies whether to try public key authentication. The argument | ||
447 | to this keyword must be ``yes'' or ``no''. The default is | ||
448 | ``yes''. This option applies to protocol version 2 only. | ||
449 | |||
450 | RekeyLimit | ||
451 | Specifies the maximum amount of data that may be transmitted be- | ||
452 | fore the session key is renegotiated. The argument is the number | ||
453 | of bytes, with an optional suffix of `K', `M', or `G' to indicate | ||
454 | Kilobytes, Megabytes, or Gigabytes, respectively. The default is | ||
455 | between `1G' and `4G', depending on the cipher. This option ap- | ||
456 | plies to protocol version 2 only. | ||
457 | |||
458 | RemoteForward | ||
459 | Specifies that a TCP port on the remote machine be forwarded over | ||
460 | the secure channel to the specified host and port from the local | ||
461 | machine. The first argument must be [bind_address:]port and the | ||
462 | second argument must be host:hostport. IPv6 addresses can be | ||
463 | specified by enclosing addresses in square brackets or by using | ||
464 | an alternative syntax: [bind_address/]port and host/hostport. | ||
465 | Multiple forwardings may be specified, and additional forwardings | ||
466 | can be given on the command line. Privileged ports can be for- | ||
467 | warded only when logging in as root on the remote machine. | ||
468 | |||
469 | If the port argument is `0', the listen port will be dynamically | ||
470 | allocated on the server and reported to the client at run time. | ||
471 | |||
472 | If the bind_address is not specified, the default is to only bind | ||
473 | to loopback addresses. If the bind_address is `*' or an empty | ||
474 | string, then the forwarding is requested to listen on all inter- | ||
475 | faces. Specifying a remote bind_address will only succeed if the | ||
476 | server's GatewayPorts option is enabled (see sshd_config(5)). | ||
477 | |||
478 | RhostsRSAAuthentication | ||
479 | Specifies whether to try rhosts based authentication with RSA | ||
480 | host authentication. The argument must be ``yes'' or ``no''. | ||
481 | The default is ``no''. This option applies to protocol version 1 | ||
482 | only and requires ssh(1) to be setuid root. | ||
483 | |||
484 | RSAAuthentication | ||
485 | Specifies whether to try RSA authentication. The argument to | ||
486 | this keyword must be ``yes'' or ``no''. RSA authentication will | ||
487 | only be attempted if the identity file exists, or an authentica- | ||
488 | tion agent is running. The default is ``yes''. Note that this | ||
489 | option applies to protocol version 1 only. | ||
490 | |||
491 | SendEnv | ||
492 | Specifies what variables from the local environ(7) should be sent | ||
493 | to the server. Note that environment passing is only supported | ||
494 | for protocol 2. The server must also support it, and the server | ||
495 | must be configured to accept these environment variables. Refer | ||
496 | to AcceptEnv in sshd_config(5) for how to configure the server. | ||
497 | Variables are specified by name, which may contain wildcard char- | ||
498 | acters. Multiple environment variables may be separated by | ||
499 | whitespace or spread across multiple SendEnv directives. The de- | ||
500 | fault is not to send any environment variables. | ||
501 | |||
502 | See PATTERNS for more information on patterns. | ||
503 | |||
504 | ServerAliveCountMax | ||
505 | Sets the number of server alive messages (see below) which may be | ||
506 | sent without ssh(1) receiving any messages back from the server. | ||
507 | If this threshold is reached while server alive messages are be- | ||
508 | ing sent, ssh will disconnect from the server, terminating the | ||
509 | session. It is important to note that the use of server alive | ||
510 | messages is very different from TCPKeepAlive (below). The server | ||
511 | alive messages are sent through the encrypted channel and there- | ||
512 | fore will not be spoofable. The TCP keepalive option enabled by | ||
513 | TCPKeepAlive is spoofable. The server alive mechanism is valu- | ||
514 | able when the client or server depend on knowing when a connec- | ||
515 | tion has become inactive. | ||
516 | |||
517 | The default value is 3. If, for example, ServerAliveInterval | ||
518 | (see below) is set to 15 and ServerAliveCountMax is left at the | ||
519 | default, if the server becomes unresponsive, ssh will disconnect | ||
520 | after approximately 45 seconds. This option applies to protocol | ||
521 | version 2 only. | ||
522 | |||
523 | ServerAliveInterval | ||
524 | Sets a timeout interval in seconds after which if no data has | ||
525 | been received from the server, ssh(1) will send a message through | ||
526 | the encrypted channel to request a response from the server. The | ||
527 | default is 0, indicating that these messages will not be sent to | ||
528 | the server. This option applies to protocol version 2 only. | ||
529 | |||
530 | SmartcardDevice | ||
531 | Specifies which smartcard device to use. The argument to this | ||
532 | keyword is the device ssh(1) should use to communicate with a | ||
533 | smartcard used for storing the user's private RSA key. By de- | ||
534 | fault, no device is specified and smartcard support is not acti- | ||
535 | vated. | ||
536 | |||
537 | StrictHostKeyChecking | ||
538 | If this flag is set to ``yes'', ssh(1) will never automatically | ||
539 | add host keys to the ~/.ssh/known_hosts file, and refuses to con- | ||
540 | nect to hosts whose host key has changed. This provides maximum | ||
541 | protection against trojan horse attacks, though it can be annoy- | ||
542 | ing when the /etc/ssh/ssh_known_hosts file is poorly maintained | ||
543 | or when connections to new hosts are frequently made. This op- | ||
544 | tion forces the user to manually add all new hosts. If this flag | ||
545 | is set to ``no'', ssh will automatically add new host keys to the | ||
546 | user known hosts files. If this flag is set to ``ask'', new host | ||
547 | keys will be added to the user known host files only after the | ||
548 | user has confirmed that is what they really want to do, and ssh | ||
549 | will refuse to connect to hosts whose host key has changed. The | ||
550 | host keys of known hosts will be verified automatically in all | ||
551 | cases. The argument must be ``yes'', ``no'', or ``ask''. The | ||
552 | default is ``ask''. | ||
553 | |||
554 | TCPKeepAlive | ||
555 | Specifies whether the system should send TCP keepalive messages | ||
556 | to the other side. If they are sent, death of the connection or | ||
557 | crash of one of the machines will be properly noticed. However, | ||
558 | this means that connections will die if the route is down tem- | ||
559 | porarily, and some people find it annoying. | ||
560 | |||
561 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
562 | client will notice if the network goes down or the remote host | ||
563 | dies. This is important in scripts, and many users want it too. | ||
564 | |||
565 | To disable TCP keepalive messages, the value should be set to | ||
566 | ``no''. | ||
567 | |||
568 | Tunnel Request tun(4) device forwarding between the client and the serv- | ||
569 | er. The argument must be ``yes'', ``point-to-point'' (layer 3), | ||
570 | ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' requests | ||
571 | the default tunnel mode, which is ``point-to-point''. The de- | ||
572 | fault is ``no''. | ||
573 | |||
574 | TunnelDevice | ||
575 | Specifies the tun(4) devices to open on the client (local_tun) | ||
576 | and the server (remote_tun). | ||
577 | |||
578 | The argument must be local_tun[:remote_tun]. The devices may be | ||
579 | specified by numerical ID or the keyword ``any'', which uses the | ||
580 | next available tunnel device. If remote_tun is not specified, it | ||
581 | defaults to ``any''. The default is ``any:any''. | ||
582 | |||
583 | UsePrivilegedPort | ||
584 | Specifies whether to use a privileged port for outgoing connec- | ||
585 | tions. The argument must be ``yes'' or ``no''. The default is | ||
586 | ``no''. If set to ``yes'', ssh(1) must be setuid root. Note | ||
587 | that this option must be set to ``yes'' for | ||
588 | RhostsRSAAuthentication with older servers. | ||
589 | |||
590 | User Specifies the user to log in as. This can be useful when a dif- | ||
591 | ferent user name is used on different machines. This saves the | ||
592 | trouble of having to remember to give the user name on the com- | ||
593 | mand line. | ||
594 | |||
595 | UserKnownHostsFile | ||
596 | Specifies a file to use for the user host key database instead of | ||
597 | ~/.ssh/known_hosts. | ||
598 | |||
599 | VerifyHostKeyDNS | ||
600 | Specifies whether to verify the remote key using DNS and SSHFP | ||
601 | resource records. If this option is set to ``yes'', the client | ||
602 | will implicitly trust keys that match a secure fingerprint from | ||
603 | DNS. Insecure fingerprints will be handled as if this option was | ||
604 | set to ``ask''. If this option is set to ``ask'', information on | ||
605 | fingerprint match will be displayed, but the user will still need | ||
606 | to confirm new host keys according to the StrictHostKeyChecking | ||
607 | option. The argument must be ``yes'', ``no'', or ``ask''. The | ||
608 | default is ``no''. Note that this option applies to protocol | ||
609 | version 2 only. | ||
610 | |||
611 | See also VERIFYING HOST KEYS in ssh(1). | ||
612 | |||
613 | VisualHostKey | ||
614 | If this flag is set to ``yes'', an ASCII art representation of | ||
615 | the remote host key fingerprint is printed in addition to the hex | ||
616 | fingerprint string at login and for unknown host keys. If this | ||
617 | flag is set to ``no'', no fingerprint strings are printed at lo- | ||
618 | gin and only the hex fingerprint string will be printed for un- | ||
619 | known host keys. The default is ``no''. | ||
620 | |||
621 | XAuthLocation | ||
622 | Specifies the full pathname of the xauth(1) program. The default | ||
623 | is /usr/X11R6/bin/xauth. | ||
624 | |||
625 | PATTERNS | ||
626 | A pattern consists of zero or more non-whitespace characters, `*' (a | ||
627 | wildcard that matches zero or more characters), or `?' (a wildcard that | ||
628 | matches exactly one character). For example, to specify a set of decla- | ||
629 | rations for any host in the ``.co.uk'' set of domains, the following pat- | ||
630 | tern could be used: | ||
631 | |||
632 | Host *.co.uk | ||
633 | |||
634 | The following pattern would match any host in the 192.168.0.[0-9] network | ||
635 | range: | ||
636 | |||
637 | Host 192.168.0.? | ||
638 | |||
639 | A pattern-list is a comma-separated list of patterns. Patterns within | ||
640 | pattern-lists may be negated by preceding them with an exclamation mark | ||
641 | (`!'). For example, to allow a key to be used from anywhere within an | ||
642 | organisation except from the ``dialup'' pool, the following entry (in au- | ||
643 | thorized_keys) could be used: | ||
644 | |||
645 | from="!*.dialup.example.com,*.example.com" | ||
646 | |||
647 | FILES | ||
648 | ~/.ssh/config | ||
649 | This is the per-user configuration file. The format of this file | ||
650 | is described above. This file is used by the SSH client. Be- | ||
651 | cause of the potential for abuse, this file must have strict per- | ||
652 | missions: read/write for the user, and not accessible by others. | ||
653 | |||
654 | /etc/ssh/ssh_config | ||
655 | Systemwide configuration file. This file provides defaults for | ||
656 | those values that are not specified in the user's configuration | ||
657 | file, and for those users who do not have a configuration file. | ||
658 | This file must be world-readable. | ||
659 | |||
660 | SEE ALSO | ||
661 | ssh(1) | ||
662 | |||
663 | AUTHORS | ||
664 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
665 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
666 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
667 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
668 | versions 1.5 and 2.0. | ||
669 | |||
670 | OpenBSD 4.5 February 22, 2009 11 | ||
@@ -0,0 +1,574 @@ | |||
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] [-f config_file] | ||
8 | [-g login_grace_time] [-h host_key_file] [-k key_gen_time] | ||
9 | [-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 | -D When this option is specified, sshd will not detach and does not | ||
48 | become a daemon. This allows easy monitoring of sshd. | ||
49 | |||
50 | -d Debug mode. The server sends verbose debug output to the system | ||
51 | log, and does not put itself in the background. The server also | ||
52 | will not fork and will only process one connection. This option | ||
53 | is only intended for debugging for the server. Multiple -d op- | ||
54 | tions increase the debugging level. Maximum is 3. | ||
55 | |||
56 | -e When this option is specified, sshd will send the output to the | ||
57 | standard error instead of the system log. | ||
58 | |||
59 | -f config_file | ||
60 | Specifies the name of the configuration file. The default is | ||
61 | /etc/ssh/sshd_config. sshd refuses to start if there is no con- | ||
62 | figuration file. | ||
63 | |||
64 | -g login_grace_time | ||
65 | Gives the grace time for clients to authenticate themselves (de- | ||
66 | fault 120 seconds). If the client fails to authenticate the user | ||
67 | within this many seconds, the server disconnects and exits. A | ||
68 | value of zero indicates no limit. | ||
69 | |||
70 | -h host_key_file | ||
71 | Specifies a file from which a host key is read. This option must | ||
72 | be given if sshd is not run as root (as the normal host key files | ||
73 | are normally not readable by anyone but root). The default is | ||
74 | /etc/ssh/ssh_host_key for protocol version 1, and | ||
75 | /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro- | ||
76 | tocol version 2. It is possible to have multiple host key files | ||
77 | for the different protocol versions and host key algorithms. | ||
78 | |||
79 | -i Specifies that sshd is being run from inetd(8). sshd is normally | ||
80 | not run from inetd because it needs to generate the server key | ||
81 | before it can respond to the client, and this may take tens of | ||
82 | seconds. Clients would have to wait too long if the key was re- | ||
83 | generated every time. However, with small key sizes (e.g. 512) | ||
84 | using sshd from inetd may be feasible. | ||
85 | |||
86 | -k key_gen_time | ||
87 | Specifies how often the ephemeral protocol version 1 server key | ||
88 | is regenerated (default 3600 seconds, or one hour). The motiva- | ||
89 | tion for regenerating the key fairly often is that the key is not | ||
90 | stored anywhere, and after about an hour it becomes impossible to | ||
91 | recover the key for decrypting intercepted communications even if | ||
92 | the machine is cracked into or physically seized. A value of ze- | ||
93 | ro indicates that the key will never be regenerated. | ||
94 | |||
95 | -o option | ||
96 | Can be used to give options in the format used in the configura- | ||
97 | tion file. This is useful for specifying options for which there | ||
98 | is no separate command-line flag. For full details of the op- | ||
99 | tions, and their values, see sshd_config(5). | ||
100 | |||
101 | -p port | ||
102 | Specifies the port on which the server listens for connections | ||
103 | (default 22). Multiple port options are permitted. Ports speci- | ||
104 | fied in the configuration file with the Port option are ignored | ||
105 | when a command-line port is specified. Ports specified using the | ||
106 | ListenAddress option override command-line ports. | ||
107 | |||
108 | -q Quiet mode. Nothing is sent to the system log. Normally the be- | ||
109 | ginning, authentication, and termination of each connection is | ||
110 | logged. | ||
111 | |||
112 | -T Extended test mode. Check the validity of the configuration | ||
113 | file, output the effective configuration to stdout and then exit. | ||
114 | Optionally, Match rules may be applied by specifying the connec- | ||
115 | tion parameters using one or more -C options. | ||
116 | |||
117 | -t Test mode. Only check the validity of the configuration file and | ||
118 | sanity of the keys. This is useful for updating sshd reliably as | ||
119 | configuration options may change. | ||
120 | |||
121 | -u len This option is used to specify the size of the field in the utmp | ||
122 | structure that holds the remote host name. If the resolved host | ||
123 | name is longer than len, the dotted decimal value will be used | ||
124 | instead. This allows hosts with very long host names that over- | ||
125 | flow this field to still be uniquely identified. Specifying -u0 | ||
126 | indicates that only dotted decimal addresses should be put into | ||
127 | the utmp file. -u0 may also be used to prevent sshd from making | ||
128 | DNS requests unless the authentication mechanism or configuration | ||
129 | requires it. Authentication mechanisms that may require DNS in- | ||
130 | clude RhostsRSAAuthentication, HostbasedAuthentication, and using | ||
131 | a from="pattern-list" option in a key file. Configuration op- | ||
132 | tions that require DNS include using a USER@HOST pattern in | ||
133 | AllowUsers or DenyUsers. | ||
134 | |||
135 | AUTHENTICATION | ||
136 | The OpenSSH SSH daemon supports SSH protocols 1 and 2. Both protocols | ||
137 | are supported by default, though this can be changed via the Protocol op- | ||
138 | tion in sshd_config(5). Protocol 2 supports both RSA and DSA keys; pro- | ||
139 | tocol 1 only supports RSA keys. For both protocols, each host has a | ||
140 | host-specific key, normally 2048 bits, used to identify the host. | ||
141 | |||
142 | Forward security for protocol 1 is provided through an additional server | ||
143 | key, normally 768 bits, generated when the server starts. This key is | ||
144 | normally regenerated every hour if it has been used, and is never stored | ||
145 | on disk. Whenever a client connects, the daemon responds with its public | ||
146 | host and server keys. The client compares the RSA host key against its | ||
147 | own database to verify that it has not changed. The client then gener- | ||
148 | ates a 256-bit random number. It encrypts this random number using both | ||
149 | the host key and the server key, and sends the encrypted number to the | ||
150 | server. Both sides then use this random number as a session key which is | ||
151 | used to encrypt all further communications in the session. The rest of | ||
152 | the session is encrypted using a conventional cipher, currently Blowfish | ||
153 | or 3DES, with 3DES being used by default. The client selects the encryp- | ||
154 | tion algorithm to use from those offered by the server. | ||
155 | |||
156 | For protocol 2, forward security is provided through a Diffie-Hellman key | ||
157 | agreement. This key agreement results in a shared session key. The rest | ||
158 | of the session is encrypted using a symmetric cipher, currently 128-bit | ||
159 | AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The | ||
160 | client selects the encryption algorithm to use from those offered by the | ||
161 | server. Additionally, session integrity is provided through a crypto- | ||
162 | graphic message authentication code (hmac-md5, hmac-sha1, umac-64 or | ||
163 | hmac-ripemd160). | ||
164 | |||
165 | Finally, the server and the client enter an authentication dialog. The | ||
166 | client tries to authenticate itself using host-based authentication, pub- | ||
167 | lic key authentication, challenge-response authentication, or password | ||
168 | authentication. | ||
169 | |||
170 | Regardless of the authentication type, the account is checked to ensure | ||
171 | that it is accessible. An account is not accessible if it is locked, | ||
172 | listed in DenyUsers or its group is listed in DenyGroups . The defini- | ||
173 | tion of a locked account is system dependant. Some platforms have their | ||
174 | own account database (eg AIX) and some modify the passwd field ( `*LK*' | ||
175 | on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on Tru64, a | ||
176 | leading `*LOCKED*' on FreeBSD and a leading `!' on most Linuxes). If | ||
177 | there is a requirement to disable password authentication for the account | ||
178 | while allowing still public-key, then the passwd field should be set to | ||
179 | something other than these values (eg `NP' or `*NP*' ). | ||
180 | |||
181 | If the client successfully authenticates itself, a dialog for preparing | ||
182 | the session is entered. At this time the client may request things like | ||
183 | allocating a pseudo-tty, forwarding X11 connections, forwarding TCP con- | ||
184 | nections, or forwarding the authentication agent connection over the se- | ||
185 | cure channel. | ||
186 | |||
187 | After this, the client either requests a shell or execution of a command. | ||
188 | The sides then enter session mode. In this mode, either side may send | ||
189 | data at any time, and such data is forwarded to/from the shell or command | ||
190 | on the server side, and the user terminal in the client side. | ||
191 | |||
192 | When the user program terminates and all forwarded X11 and other connec- | ||
193 | tions have been closed, the server sends command exit status to the | ||
194 | client, and both sides exit. | ||
195 | |||
196 | LOGIN PROCESS | ||
197 | When a user successfully logs in, sshd does the following: | ||
198 | |||
199 | 1. If the login is on a tty, and no command has been specified, | ||
200 | prints last login time and /etc/motd (unless prevented in the | ||
201 | configuration file or by ~/.hushlogin; see the FILES section). | ||
202 | |||
203 | 2. If the login is on a tty, records login time. | ||
204 | |||
205 | 3. Checks /etc/nologin; if it exists, prints contents and quits | ||
206 | (unless root). | ||
207 | |||
208 | 4. Changes to run with normal user privileges. | ||
209 | |||
210 | 5. Sets up basic environment. | ||
211 | |||
212 | 6. Reads the file ~/.ssh/environment, if it exists, and users are | ||
213 | allowed to change their environment. See the | ||
214 | PermitUserEnvironment option in sshd_config(5). | ||
215 | |||
216 | 7. Changes to user's home directory. | ||
217 | |||
218 | 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists, | ||
219 | runs it; otherwise runs xauth. The ``rc'' files are given the | ||
220 | X11 authentication protocol and cookie in standard input. See | ||
221 | SSHRC, below. | ||
222 | |||
223 | 9. Runs user's shell or command. | ||
224 | |||
225 | SSHRC | ||
226 | If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment | ||
227 | files but before starting the user's shell or command. It must not pro- | ||
228 | duce any output on stdout; stderr must be used instead. If X11 forward- | ||
229 | ing is in use, it will receive the "proto cookie" pair in its standard | ||
230 | input (and DISPLAY in its environment). The script must call xauth(1) | ||
231 | because sshd will not run xauth automatically to add X11 cookies. | ||
232 | |||
233 | The primary purpose of this file is to run any initialization routines | ||
234 | which may be needed before the user's home directory becomes accessible; | ||
235 | AFS is a particular example of such an environment. | ||
236 | |||
237 | This file will probably contain some initialization code followed by | ||
238 | something similar to: | ||
239 | |||
240 | if read proto cookie && [ -n "$DISPLAY" ]; then | ||
241 | if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then | ||
242 | # X11UseLocalhost=yes | ||
243 | echo add unix:`echo $DISPLAY | | ||
244 | cut -c11-` $proto $cookie | ||
245 | else | ||
246 | # X11UseLocalhost=no | ||
247 | echo add $DISPLAY $proto $cookie | ||
248 | fi | xauth -q - | ||
249 | fi | ||
250 | |||
251 | If this file does not exist, /etc/ssh/sshrc is run, and if that does not | ||
252 | exist either, xauth is used to add the cookie. | ||
253 | |||
254 | AUTHORIZED_KEYS FILE FORMAT | ||
255 | AuthorizedKeysFile specifies the file containing public keys for public | ||
256 | key authentication; if none is specified, the default is | ||
257 | ~/.ssh/authorized_keys. Each line of the file contains one key (empty | ||
258 | lines and lines starting with a `#' are ignored as comments). Protocol 1 | ||
259 | public keys consist of the following space-separated fields: options, | ||
260 | bits, exponent, modulus, comment. Protocol 2 public key consist of: op- | ||
261 | tions, keytype, base64-encoded key, comment. The options field is op- | ||
262 | tional; its presence is determined by whether the line starts with a num- | ||
263 | ber or not (the options field never starts with a number). The bits, ex- | ||
264 | ponent, modulus, and comment fields give the RSA key for protocol version | ||
265 | 1; the comment field is not used for anything (but may be convenient for | ||
266 | the user to identify the key). For protocol version 2 the keytype is | ||
267 | ``ssh-dss'' or ``ssh-rsa''. | ||
268 | |||
269 | Note that lines in this file are usually several hundred bytes long (be- | ||
270 | cause of the size of the public key encoding) up to a limit of 8 kilo- | ||
271 | bytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16 | ||
272 | kilobits. You don't want to type them in; instead, copy the | ||
273 | identity.pub, id_dsa.pub, or the id_rsa.pub file and edit it. | ||
274 | |||
275 | sshd enforces a minimum RSA key modulus size for protocol 1 and protocol | ||
276 | 2 keys of 768 bits. | ||
277 | |||
278 | The options (if present) consist of comma-separated option specifica- | ||
279 | tions. No spaces are permitted, except within double quotes. The fol- | ||
280 | lowing option specifications are supported (note that option keywords are | ||
281 | case-insensitive): | ||
282 | |||
283 | command="command" | ||
284 | Specifies that the command is executed whenever this key is used | ||
285 | for authentication. The command supplied by the user (if any) is | ||
286 | ignored. The command is run on a pty if the client requests a | ||
287 | pty; otherwise it is run without a tty. If an 8-bit clean chan- | ||
288 | nel is required, one must not request a pty or should specify no- | ||
289 | pty. A quote may be included in the command by quoting it with a | ||
290 | backslash. This option might be useful to restrict certain pub- | ||
291 | lic keys to perform just a specific operation. An example might | ||
292 | be a key that permits remote backups but nothing else. Note that | ||
293 | the client may specify TCP and/or X11 forwarding unless they are | ||
294 | explicitly prohibited. The command originally supplied by the | ||
295 | client is available in the SSH_ORIGINAL_COMMAND environment vari- | ||
296 | able. Note that this option applies to shell, command or subsys- | ||
297 | tem execution. | ||
298 | |||
299 | environment="NAME=value" | ||
300 | Specifies that the string is to be added to the environment when | ||
301 | logging in using this key. Environment variables set this way | ||
302 | override other default environment values. Multiple options of | ||
303 | this type are permitted. Environment processing is disabled by | ||
304 | default and is controlled via the PermitUserEnvironment option. | ||
305 | This option is automatically disabled if UseLogin is enabled. | ||
306 | |||
307 | from="pattern-list" | ||
308 | Specifies that in addition to public key authentication, either | ||
309 | the canonical name of the remote host or its IP address must be | ||
310 | present in the comma-separated list of patterns. See PATTERNS in | ||
311 | ssh_config(5) for more information on patterns. | ||
312 | |||
313 | In addition to the wildcard matching that may be applied to host- | ||
314 | names or addresses, a from stanza may match IP addressess using | ||
315 | CIDR address/masklen notation. | ||
316 | |||
317 | The purpose of this option is to optionally increase security: | ||
318 | public key authentication by itself does not trust the network or | ||
319 | name servers or anything (but the key); however, if somebody | ||
320 | somehow steals the key, the key permits an intruder to log in | ||
321 | from anywhere in the world. This additional option makes using a | ||
322 | stolen key more difficult (name servers and/or routers would have | ||
323 | to be compromised in addition to just the key). | ||
324 | |||
325 | no-agent-forwarding | ||
326 | Forbids authentication agent forwarding when this key is used for | ||
327 | authentication. | ||
328 | |||
329 | no-port-forwarding | ||
330 | Forbids TCP forwarding when this key is used for authentication. | ||
331 | Any port forward requests by the client will return an error. | ||
332 | This might be used, e.g. in connection with the command option. | ||
333 | |||
334 | no-pty Prevents tty allocation (a request to allocate a pty will fail). | ||
335 | |||
336 | no-user-rc | ||
337 | Disables execution of ~/.ssh/rc. | ||
338 | |||
339 | no-X11-forwarding | ||
340 | Forbids X11 forwarding when this key is used for authentication. | ||
341 | Any X11 forward requests by the client will return an error. | ||
342 | |||
343 | permitopen="host:port" | ||
344 | Limit local ``ssh -L'' port forwarding such that it may only con- | ||
345 | nect to the specified host and port. IPv6 addresses can be spec- | ||
346 | ified with an alternative syntax: host/port. Multiple permitopen | ||
347 | options may be applied separated by commas. No pattern matching | ||
348 | is performed on the specified hostnames, they must be literal do- | ||
349 | mains or addresses. | ||
350 | |||
351 | tunnel="n" | ||
352 | Force a tun(4) device on the server. Without this option, the | ||
353 | next available device will be used if the client requests a tun- | ||
354 | nel. | ||
355 | |||
356 | An example authorized_keys file: | ||
357 | |||
358 | # Comments allowed at start of line | ||
359 | ssh-rsa AAAAB3Nza...LiPk== user@example.net | ||
360 | from="*.sales.example.net,!pc.sales.example.net" ssh-rsa | ||
361 | AAAAB2...19Q== john@example.net | ||
362 | command="dump /home",no-pty,no-port-forwarding ssh-dss | ||
363 | AAAAC3...51R== example.net | ||
364 | permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss | ||
365 | AAAAB5...21S== | ||
366 | tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...== | ||
367 | jane@example.net | ||
368 | |||
369 | SSH_KNOWN_HOSTS FILE FORMAT | ||
370 | The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host | ||
371 | public keys for all known hosts. The global file should be prepared by | ||
372 | the administrator (optional), and the per-user file is maintained auto- | ||
373 | matically: whenever the user connects from an unknown host, its key is | ||
374 | added to the per-user file. | ||
375 | |||
376 | Each line in these files contains the following fields: hostnames, bits, | ||
377 | exponent, modulus, comment. The fields are separated by spaces. | ||
378 | |||
379 | Hostnames is a comma-separated list of patterns (`*' and `?' act as wild- | ||
380 | cards); each pattern in turn is matched against the canonical host name | ||
381 | (when authenticating a client) or against the user-supplied name (when | ||
382 | authenticating a server). A pattern may also be preceded by `!' to indi- | ||
383 | cate negation: if the host name matches a negated pattern, it is not ac- | ||
384 | cepted (by that line) even if it matched another pattern on the line. A | ||
385 | hostname or address may optionally be enclosed within `[' and `]' brack- | ||
386 | ets then followed by `:' and a non-standard port number. | ||
387 | |||
388 | Alternately, hostnames may be stored in a hashed form which hides host | ||
389 | names and addresses should the file's contents be disclosed. Hashed | ||
390 | hostnames start with a `|' character. Only one hashed hostname may ap- | ||
391 | pear on a single line and none of the above negation or wildcard opera- | ||
392 | tors may be applied. | ||
393 | |||
394 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
395 | they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The | ||
396 | optional comment field continues to the end of the line, and is not used. | ||
397 | |||
398 | Lines starting with `#' and empty lines are ignored as comments. | ||
399 | |||
400 | When performing host authentication, authentication is accepted if any | ||
401 | matching line has the proper key. It is thus permissible (but not recom- | ||
402 | mended) to have several lines or different host keys for the same names. | ||
403 | This will inevitably happen when short forms of host names from different | ||
404 | domains are put in the file. It is possible that the files contain con- | ||
405 | flicting information; authentication is accepted if valid information can | ||
406 | be found from either file. | ||
407 | |||
408 | Note that the lines in these files are typically hundreds of characters | ||
409 | long, and you definitely don't want to type in the host keys by hand. | ||
410 | Rather, generate them by a script or by taking /etc/ssh/ssh_host_key.pub | ||
411 | and adding the host names at the front. | ||
412 | |||
413 | An example ssh_known_hosts file: | ||
414 | |||
415 | # Comments allowed at start of line | ||
416 | closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net | ||
417 | cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | ||
418 | # A hashed hostname | ||
419 | |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa | ||
420 | AAAA1234.....= | ||
421 | |||
422 | FILES | ||
423 | ~/.hushlogin | ||
424 | This file is used to suppress printing the last login time and | ||
425 | /etc/motd, if PrintLastLog and PrintMotd, respectively, are en- | ||
426 | abled. It does not suppress printing of the banner specified by | ||
427 | Banner. | ||
428 | |||
429 | ~/.rhosts | ||
430 | This file is used for host-based authentication (see ssh(1) for | ||
431 | more information). On some machines this file may need to be | ||
432 | world-readable if the user's home directory is on an NFS parti- | ||
433 | tion, because sshd reads it as root. Additionally, this file | ||
434 | must be owned by the user, and must not have write permissions | ||
435 | for anyone else. The recommended permission for most machines is | ||
436 | read/write for the user, and not accessible by others. | ||
437 | |||
438 | ~/.shosts | ||
439 | This file is used in exactly the same way as .rhosts, but allows | ||
440 | host-based authentication without permitting login with | ||
441 | rlogin/rsh. | ||
442 | |||
443 | ~/.ssh/ | ||
444 | This directory is the default location for all user-specific con- | ||
445 | figuration and authentication information. There is no general | ||
446 | requirement to keep the entire contents of this directory secret, | ||
447 | but the recommended permissions are read/write/execute for the | ||
448 | user, and not accessible by others. | ||
449 | |||
450 | ~/.ssh/authorized_keys | ||
451 | Lists the public keys (RSA/DSA) that can be used for logging in | ||
452 | as this user. The format of this file is described above. The | ||
453 | content of the file is not highly sensitive, but the recommended | ||
454 | permissions are read/write for the user, and not accessible by | ||
455 | others. | ||
456 | |||
457 | If this file, the ~/.ssh directory, or the user's home directory | ||
458 | are writable by other users, then the file could be modified or | ||
459 | replaced by unauthorized users. In this case, sshd will not al- | ||
460 | low it to be used unless the StrictModes option has been set to | ||
461 | ``no''. | ||
462 | |||
463 | ~/.ssh/environment | ||
464 | This file is read into the environment at login (if it exists). | ||
465 | It can only contain empty lines, comment lines (that start with | ||
466 | `#'), and assignment lines of the form name=value. The file | ||
467 | should be writable only by the user; it need not be readable by | ||
468 | anyone else. Environment processing is disabled by default and | ||
469 | is controlled via the PermitUserEnvironment option. | ||
470 | |||
471 | ~/.ssh/known_hosts | ||
472 | Contains a list of host keys for all hosts the user has logged | ||
473 | into that are not already in the systemwide list of known host | ||
474 | keys. The format of this file is described above. This file | ||
475 | should be writable only by root/the owner and can, but need not | ||
476 | be, world-readable. | ||
477 | |||
478 | ~/.ssh/rc | ||
479 | Contains initialization routines to be run before the user's home | ||
480 | directory becomes accessible. This file should be writable only | ||
481 | by the user, and need not be readable by anyone else. | ||
482 | |||
483 | /etc/hosts.allow | ||
484 | /etc/hosts.deny | ||
485 | Access controls that should be enforced by tcp-wrappers are de- | ||
486 | fined here. Further details are described in hosts_access(5). | ||
487 | |||
488 | /etc/hosts.equiv | ||
489 | This file is for host-based authentication (see ssh(1)). It | ||
490 | should only be writable by root. | ||
491 | |||
492 | /etc/moduli | ||
493 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group | ||
494 | Exchange". The file format is described in moduli(5). | ||
495 | |||
496 | /etc/motd | ||
497 | See motd(5). | ||
498 | |||
499 | /etc/nologin | ||
500 | If this file exists, sshd refuses to let anyone except root log | ||
501 | in. The contents of the file are displayed to anyone trying to | ||
502 | log in, and non-root connections are refused. The file should be | ||
503 | world-readable. | ||
504 | |||
505 | /etc/shosts.equiv | ||
506 | This file is used in exactly the same way as hosts.equiv, but al- | ||
507 | lows host-based authentication without permitting login with | ||
508 | rlogin/rsh. | ||
509 | |||
510 | /etc/ssh/ssh_host_key | ||
511 | /etc/ssh/ssh_host_dsa_key | ||
512 | /etc/ssh/ssh_host_rsa_key | ||
513 | These three files contain the private parts of the host keys. | ||
514 | These files should only be owned by root, readable only by root, | ||
515 | and not accessible to others. Note that sshd does not start if | ||
516 | these files are group/world-accessible. | ||
517 | |||
518 | /etc/ssh/ssh_host_key.pub | ||
519 | /etc/ssh/ssh_host_dsa_key.pub | ||
520 | /etc/ssh/ssh_host_rsa_key.pub | ||
521 | These three files contain the public parts of the host keys. | ||
522 | These files should be world-readable but writable only by root. | ||
523 | Their contents should match the respective private parts. These | ||
524 | files are not really used for anything; they are provided for the | ||
525 | convenience of the user so their contents can be copied to known | ||
526 | hosts files. These files are created using ssh-keygen(1). | ||
527 | |||
528 | /etc/ssh/ssh_known_hosts | ||
529 | Systemwide list of known host keys. This file should be prepared | ||
530 | by the system administrator to contain the public host keys of | ||
531 | all machines in the organization. The format of this file is de- | ||
532 | scribed above. This file should be writable only by root/the | ||
533 | owner and should be world-readable. | ||
534 | |||
535 | /etc/ssh/sshd_config | ||
536 | Contains configuration data for sshd. The file format and con- | ||
537 | figuration options are described in sshd_config(5). | ||
538 | |||
539 | /etc/ssh/sshrc | ||
540 | Similar to ~/.ssh/rc, it can be used to specify machine-specific | ||
541 | login-time initializations globally. This file should be | ||
542 | writable only by root, and should be world-readable. | ||
543 | |||
544 | /var/empty | ||
545 | chroot(2) directory used by sshd during privilege separation in | ||
546 | the pre-authentication phase. The directory should not contain | ||
547 | any files and must be owned by root and not group or world- | ||
548 | writable. | ||
549 | |||
550 | /var/run/sshd.pid | ||
551 | Contains the process ID of the sshd listening for connections (if | ||
552 | there are several daemons running concurrently for different | ||
553 | ports, this contains the process ID of the one started last). | ||
554 | The content of this file is not sensitive; it can be world-read- | ||
555 | able. | ||
556 | |||
557 | SEE ALSO | ||
558 | scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
559 | ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5), | ||
560 | sshd_config(5), inetd(8), sftp-server(8) | ||
561 | |||
562 | AUTHORS | ||
563 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
564 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
565 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
566 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
567 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
568 | for privilege separation. | ||
569 | |||
570 | CAVEATS | ||
571 | System security is not improved unless rshd, rlogind, and rexecd are dis- | ||
572 | abled (thus completely disabling rlogin and rsh into the machine). | ||
573 | |||
574 | OpenBSD 4.5 October 3, 2008 9 | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..067f757de --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,631 @@ | |||
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 | All authentication styles from login.conf(5) are supported. The | ||
93 | default is ``yes''. | ||
94 | |||
95 | ChrootDirectory | ||
96 | Specifies a path to chroot(2) to after authentication. This | ||
97 | path, and all its components, must be root-owned directories that | ||
98 | are not writable by any other user or group. | ||
99 | |||
100 | The path may contain the following tokens that are expanded at | ||
101 | runtime once the connecting user has been authenticated: %% is | ||
102 | replaced by a literal '%', %h is replaced by the home directory | ||
103 | of the user being authenticated, and %u is replaced by the user- | ||
104 | name of that user. | ||
105 | |||
106 | The ChrootDirectory must contain the necessary files and directo- | ||
107 | ries to support the users' session. For an interactive session | ||
108 | this requires at least a shell, typically sh(1), and basic /dev | ||
109 | nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4), | ||
110 | arandom(4) and tty(4) devices. For file transfer sessions using | ||
111 | ``sftp'', no additional configuration of the environment is nec- | ||
112 | essary if the in-process sftp server is used (see Subsystem for | ||
113 | details). | ||
114 | |||
115 | The default is not to chroot(2). | ||
116 | |||
117 | Ciphers | ||
118 | Specifies the ciphers allowed for protocol version 2. Multiple | ||
119 | ciphers must be comma-separated. The supported ciphers are | ||
120 | ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'', | ||
121 | ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'', | ||
122 | ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and | ||
123 | ``cast128-cbc''. The default is: | ||
124 | |||
125 | aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, | ||
126 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, | ||
127 | aes256-cbc,arcfour | ||
128 | |||
129 | ClientAliveCountMax | ||
130 | Sets the number of client alive messages (see below) which may be | ||
131 | sent without sshd(8) receiving any messages back from the client. | ||
132 | If this threshold is reached while client alive messages are be- | ||
133 | ing sent, sshd will disconnect the client, terminating the ses- | ||
134 | sion. It is important to note that the use of client alive mes- | ||
135 | sages is very different from TCPKeepAlive (below). The client | ||
136 | alive messages are sent through the encrypted channel and there- | ||
137 | fore will not be spoofable. The TCP keepalive option enabled by | ||
138 | TCPKeepAlive is spoofable. The client alive mechanism is valu- | ||
139 | able when the client or server depend on knowing when a connec- | ||
140 | tion has become inactive. | ||
141 | |||
142 | The default value is 3. If ClientAliveInterval (see below) is | ||
143 | set to 15, and ClientAliveCountMax is left at the default, unre- | ||
144 | sponsive SSH clients will be disconnected after approximately 45 | ||
145 | seconds. This option applies to protocol version 2 only. | ||
146 | |||
147 | ClientAliveInterval | ||
148 | Sets a timeout interval in seconds after which if no data has | ||
149 | been received from the client, sshd(8) will send a message | ||
150 | through the encrypted channel to request a response from the | ||
151 | client. The default is 0, indicating that these messages will | ||
152 | not be sent to the client. This option applies to protocol ver- | ||
153 | sion 2 only. | ||
154 | |||
155 | Compression | ||
156 | Specifies whether compression is allowed, or delayed until the | ||
157 | user has authenticated successfully. The argument must be | ||
158 | ``yes'', ``delayed'', or ``no''. The default is ``delayed''. | ||
159 | |||
160 | DenyGroups | ||
161 | This keyword can be followed by a list of group name patterns, | ||
162 | separated by spaces. Login is disallowed for users whose primary | ||
163 | group or supplementary group list matches one of the patterns. | ||
164 | Only group names are valid; a numerical group ID is not recog- | ||
165 | nized. By default, login is allowed for all groups. The al- | ||
166 | low/deny directives are processed in the following order: | ||
167 | DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. | ||
168 | |||
169 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
170 | |||
171 | DenyUsers | ||
172 | This keyword can be followed by a list of user name patterns, | ||
173 | separated by spaces. Login is disallowed for user names that | ||
174 | match one of the patterns. Only user names are valid; a numeri- | ||
175 | cal user ID is not recognized. By default, login is allowed for | ||
176 | all users. If the pattern takes the form USER@HOST then USER and | ||
177 | HOST are separately checked, restricting logins to particular | ||
178 | users from particular hosts. The allow/deny directives are pro- | ||
179 | cessed in the following order: DenyUsers, AllowUsers, DenyGroups, | ||
180 | and finally AllowGroups. | ||
181 | |||
182 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
183 | |||
184 | ForceCommand | ||
185 | Forces the execution of the command specified by ForceCommand, | ||
186 | ignoring any command supplied by the client and ~/.ssh/rc if pre- | ||
187 | sent. The command is invoked by using the user's login shell | ||
188 | with the -c option. This applies to shell, command, or subsystem | ||
189 | execution. It is most useful inside a Match block. The command | ||
190 | originally supplied by the client is available in the | ||
191 | SSH_ORIGINAL_COMMAND environment variable. Specifying a command | ||
192 | of ``internal-sftp'' will force the use of an in-process sftp | ||
193 | server that requires no support files when used with | ||
194 | ChrootDirectory. | ||
195 | |||
196 | GatewayPorts | ||
197 | Specifies whether remote hosts are allowed to connect to ports | ||
198 | forwarded for the client. By default, sshd(8) binds remote port | ||
199 | forwardings to the loopback address. This prevents other remote | ||
200 | hosts from connecting to forwarded ports. GatewayPorts can be | ||
201 | used to specify that sshd should allow remote port forwardings to | ||
202 | bind to non-loopback addresses, thus allowing other hosts to con- | ||
203 | nect. The argument may be ``no'' to force remote port forward- | ||
204 | ings to be available to the local host only, ``yes'' to force re- | ||
205 | mote port forwardings to bind to the wildcard address, or | ||
206 | ``clientspecified'' to allow the client to select the address to | ||
207 | which the forwarding is bound. The default is ``no''. | ||
208 | |||
209 | GSSAPIAuthentication | ||
210 | Specifies whether user authentication based on GSSAPI is allowed. | ||
211 | The default is ``no''. Note that this option applies to protocol | ||
212 | version 2 only. | ||
213 | |||
214 | GSSAPICleanupCredentials | ||
215 | Specifies whether to automatically destroy the user's credentials | ||
216 | cache on logout. The default is ``yes''. Note that this option | ||
217 | applies to protocol version 2 only. | ||
218 | |||
219 | HostbasedAuthentication | ||
220 | Specifies whether rhosts or /etc/hosts.equiv authentication to- | ||
221 | gether with successful public key client host authentication is | ||
222 | allowed (host-based authentication). This option is similar to | ||
223 | RhostsRSAAuthentication and applies to protocol version 2 only. | ||
224 | The default is ``no''. | ||
225 | |||
226 | HostbasedUsesNameFromPacketOnly | ||
227 | Specifies whether or not the server will attempt to perform a re- | ||
228 | verse name lookup when matching the name in the ~/.shosts, | ||
229 | ~/.rhosts, and /etc/hosts.equiv files during | ||
230 | HostbasedAuthentication. A setting of ``yes'' means that sshd(8) | ||
231 | uses the name supplied by the client rather than attempting to | ||
232 | resolve the name from the TCP connection itself. The default is | ||
233 | ``no''. | ||
234 | |||
235 | HostKey | ||
236 | Specifies a file containing a private host key used by SSH. The | ||
237 | default is /etc/ssh/ssh_host_key for protocol version 1, and | ||
238 | /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro- | ||
239 | tocol version 2. Note that sshd(8) will refuse to use a file if | ||
240 | it is group/world-accessible. It is possible to have multiple | ||
241 | host key files. ``rsa1'' keys are used for version 1 and ``dsa'' | ||
242 | or ``rsa'' are used for version 2 of the SSH protocol. | ||
243 | |||
244 | IgnoreRhosts | ||
245 | Specifies that .rhosts and .shosts files will not be used in | ||
246 | RhostsRSAAuthentication or HostbasedAuthentication. | ||
247 | |||
248 | /etc/hosts.equiv and /etc/shosts.equiv are still used. The de- | ||
249 | fault is ``yes''. | ||
250 | |||
251 | IgnoreUserKnownHosts | ||
252 | Specifies whether sshd(8) should ignore the user's | ||
253 | ~/.ssh/known_hosts during RhostsRSAAuthentication or | ||
254 | HostbasedAuthentication. The default is ``no''. | ||
255 | |||
256 | KerberosAuthentication | ||
257 | Specifies whether the password provided by the user for | ||
258 | PasswordAuthentication will be validated through the Kerberos | ||
259 | KDC. To use this option, the server needs a Kerberos servtab | ||
260 | which allows the verification of the KDC's identity. The default | ||
261 | is ``no''. | ||
262 | |||
263 | KerberosGetAFSToken | ||
264 | If AFS is active and the user has a Kerberos 5 TGT, attempt to | ||
265 | acquire an AFS token before accessing the user's home directory. | ||
266 | The default is ``no''. | ||
267 | |||
268 | KerberosOrLocalPasswd | ||
269 | If password authentication through Kerberos fails then the pass- | ||
270 | word will be validated via any additional local mechanism such as | ||
271 | /etc/passwd. The default is ``yes''. | ||
272 | |||
273 | KerberosTicketCleanup | ||
274 | Specifies whether to automatically destroy the user's ticket | ||
275 | cache file on logout. The default is ``yes''. | ||
276 | |||
277 | KeyRegenerationInterval | ||
278 | In protocol version 1, the ephemeral server key is automatically | ||
279 | regenerated after this many seconds (if it has been used). The | ||
280 | purpose of regeneration is to prevent decrypting captured ses- | ||
281 | sions by later breaking into the machine and stealing the keys. | ||
282 | The key is never stored anywhere. If the value is 0, the key is | ||
283 | never regenerated. The default is 3600 (seconds). | ||
284 | |||
285 | ListenAddress | ||
286 | Specifies the local addresses sshd(8) should listen on. The fol- | ||
287 | lowing forms may be used: | ||
288 | |||
289 | ListenAddress host|IPv4_addr|IPv6_addr | ||
290 | ListenAddress host|IPv4_addr:port | ||
291 | ListenAddress [host|IPv6_addr]:port | ||
292 | |||
293 | If port is not specified, sshd will listen on the address and all | ||
294 | prior Port options specified. The default is to listen on all | ||
295 | local addresses. Multiple ListenAddress options are permitted. | ||
296 | Additionally, any Port options must precede this option for non- | ||
297 | port qualified addresses. | ||
298 | |||
299 | LoginGraceTime | ||
300 | The server disconnects after this time if the user has not suc- | ||
301 | cessfully logged in. If the value is 0, there is no time limit. | ||
302 | The default is 120 seconds. | ||
303 | |||
304 | LogLevel | ||
305 | Gives the verbosity level that is used when logging messages from | ||
306 | sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
307 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
308 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
309 | higher levels of debugging output. Logging with a DEBUG level | ||
310 | violates the privacy of users and is not recommended. | ||
311 | |||
312 | MACs Specifies the available MAC (message authentication code) algo- | ||
313 | rithms. The MAC algorithm is used in protocol version 2 for data | ||
314 | integrity protection. Multiple algorithms must be comma-separat- | ||
315 | ed. The default is: | ||
316 | |||
317 | hmac-md5,hmac-sha1,umac-64@openssh.com, | ||
318 | hmac-ripemd160,hmac-sha1-96,hmac-md5-96 | ||
319 | |||
320 | Match Introduces a conditional block. If all of the criteria on the | ||
321 | Match line are satisfied, the keywords on the following lines | ||
322 | override those set in the global section of the config file, un- | ||
323 | til either another Match line or the end of the file. | ||
324 | |||
325 | The arguments to Match are one or more criteria-pattern pairs. | ||
326 | The available criteria are User, Group, Host, and Address. The | ||
327 | match patterns may consist of single entries or comma-separated | ||
328 | lists and may use the wildcard and negation operators described | ||
329 | in the PATTERNS section of ssh_config(5). | ||
330 | |||
331 | The patterns in an Address criteria may additionally contain ad- | ||
332 | dresses to match in CIDR address/masklen format, e.g. | ||
333 | ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask | ||
334 | length provided must be consistent with the address - it is an | ||
335 | error to specify a mask length that is too long for the address | ||
336 | or one with bits set in this host portion of the address. For | ||
337 | example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively. | ||
338 | |||
339 | Only a subset of keywords may be used on the lines following a | ||
340 | Match keyword. Available keywords are AllowAgentForwarding, | ||
341 | AllowTcpForwarding, Banner, ChrootDirectory, ForceCommand, | ||
342 | GatewayPorts, GSSAPIAuthentication, HostbasedAuthentication, | ||
343 | KbdInteractiveAuthentication, KerberosAuthentication, | ||
344 | MaxAuthTries, MaxSessions, PasswordAuthentication, | ||
345 | PermitEmptyPasswords, PermitOpen, PermitRootLogin, | ||
346 | RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset, | ||
347 | X11Forwarding and X11UseLocalHost. | ||
348 | |||
349 | MaxAuthTries | ||
350 | Specifies the maximum number of authentication attempts permitted | ||
351 | per connection. Once the number of failures reaches half this | ||
352 | value, additional failures are logged. The default is 6. | ||
353 | |||
354 | MaxSessions | ||
355 | Specifies the maximum number of open sessions permitted per net- | ||
356 | work connection. The default is 10. | ||
357 | |||
358 | MaxStartups | ||
359 | Specifies the maximum number of concurrent unauthenticated con- | ||
360 | nections to the SSH daemon. Additional connections will be | ||
361 | dropped until authentication succeeds or the LoginGraceTime ex- | ||
362 | pires for a connection. The default is 10. | ||
363 | |||
364 | Alternatively, random early drop can be enabled by specifying the | ||
365 | three colon separated values ``start:rate:full'' (e.g. | ||
366 | "10:30:60"). sshd(8) will refuse connection attempts with a | ||
367 | probability of ``rate/100'' (30%) if there are currently | ||
368 | ``start'' (10) unauthenticated connections. The probability in- | ||
369 | creases linearly and all connection attempts are refused if the | ||
370 | number of unauthenticated connections reaches ``full'' (60). | ||
371 | |||
372 | PasswordAuthentication | ||
373 | Specifies whether password authentication is allowed. The de- | ||
374 | fault is ``yes''. | ||
375 | |||
376 | PermitEmptyPasswords | ||
377 | When password authentication is allowed, it specifies whether the | ||
378 | server allows login to accounts with empty password strings. The | ||
379 | default is ``no''. | ||
380 | |||
381 | PermitOpen | ||
382 | Specifies the destinations to which TCP port forwarding is per- | ||
383 | mitted. The forwarding specification must be one of the follow- | ||
384 | ing forms: | ||
385 | |||
386 | PermitOpen host:port | ||
387 | PermitOpen IPv4_addr:port | ||
388 | PermitOpen [IPv6_addr]:port | ||
389 | |||
390 | Multiple forwards may be specified by separating them with | ||
391 | whitespace. An argument of ``any'' can be used to remove all re- | ||
392 | strictions and permit any forwarding requests. By default all | ||
393 | port forwarding requests are permitted. | ||
394 | |||
395 | PermitRootLogin | ||
396 | Specifies whether root can log in using ssh(1). The argument | ||
397 | must be ``yes'', ``without-password'', ``forced-commands-only'', | ||
398 | or ``no''. The default is ``yes''. | ||
399 | |||
400 | If this option is set to ``without-password'', password authenti- | ||
401 | cation is disabled for root. | ||
402 | |||
403 | If this option is set to ``forced-commands-only'', root login | ||
404 | with public key authentication will be allowed, but only if the | ||
405 | command option has been specified (which may be useful for taking | ||
406 | remote backups even if root login is normally not allowed). All | ||
407 | other authentication methods are disabled for root. | ||
408 | |||
409 | If this option is set to ``no'', root is not allowed to log in. | ||
410 | |||
411 | PermitTunnel | ||
412 | Specifies whether tun(4) device forwarding is allowed. The argu- | ||
413 | ment must be ``yes'', ``point-to-point'' (layer 3), ``ethernet'' | ||
414 | (layer 2), or ``no''. Specifying ``yes'' permits both ``point- | ||
415 | to-point'' and ``ethernet''. The default is ``no''. | ||
416 | |||
417 | PermitUserEnvironment | ||
418 | Specifies whether ~/.ssh/environment and environment= options in | ||
419 | ~/.ssh/authorized_keys are processed by sshd(8). The default is | ||
420 | ``no''. Enabling environment processing may enable users to by- | ||
421 | pass access restrictions in some configurations using mechanisms | ||
422 | such as LD_PRELOAD. | ||
423 | |||
424 | PidFile | ||
425 | Specifies the file that contains the process ID of the SSH dae- | ||
426 | mon. The default is /var/run/sshd.pid. | ||
427 | |||
428 | Port Specifies the port number that sshd(8) listens on. The default | ||
429 | is 22. Multiple options of this type are permitted. See also | ||
430 | ListenAddress. | ||
431 | |||
432 | PrintLastLog | ||
433 | Specifies whether sshd(8) should print the date and time of the | ||
434 | last user login when a user logs in interactively. The default | ||
435 | is ``yes''. | ||
436 | |||
437 | PrintMotd | ||
438 | Specifies whether sshd(8) should print /etc/motd when a user logs | ||
439 | in interactively. (On some systems it is also printed by the | ||
440 | shell, /etc/profile, or equivalent.) The default is ``yes''. | ||
441 | |||
442 | Protocol | ||
443 | Specifies the protocol versions sshd(8) supports. The possible | ||
444 | values are `1' and `2'. Multiple versions must be comma-separat- | ||
445 | ed. The default is ``2,1''. Note that the order of the protocol | ||
446 | list does not indicate preference, because the client selects | ||
447 | among multiple protocol versions offered by the server. Specify- | ||
448 | ing ``2,1'' is identical to ``1,2''. | ||
449 | |||
450 | PubkeyAuthentication | ||
451 | Specifies whether public key authentication is allowed. The de- | ||
452 | fault is ``yes''. Note that this option applies to protocol ver- | ||
453 | sion 2 only. | ||
454 | |||
455 | RhostsRSAAuthentication | ||
456 | Specifies whether rhosts or /etc/hosts.equiv authentication to- | ||
457 | gether with successful RSA host authentication is allowed. The | ||
458 | default is ``no''. This option applies to protocol version 1 on- | ||
459 | ly. | ||
460 | |||
461 | RSAAuthentication | ||
462 | Specifies whether pure RSA authentication is allowed. The de- | ||
463 | fault is ``yes''. This option applies to protocol version 1 on- | ||
464 | ly. | ||
465 | |||
466 | ServerKeyBits | ||
467 | Defines the number of bits in the ephemeral protocol version 1 | ||
468 | server key. The minimum value is 512, and the default is 1024. | ||
469 | |||
470 | StrictModes | ||
471 | Specifies whether sshd(8) should check file modes and ownership | ||
472 | of the user's files and home directory before accepting login. | ||
473 | This is normally desirable because novices sometimes accidentally | ||
474 | leave their directory or files world-writable. The default is | ||
475 | ``yes''. | ||
476 | |||
477 | Subsystem | ||
478 | Configures an external subsystem (e.g. file transfer daemon). | ||
479 | Arguments should be a subsystem name and a command (with optional | ||
480 | arguments) to execute upon subsystem request. | ||
481 | |||
482 | The command sftp-server(8) implements the ``sftp'' file transfer | ||
483 | subsystem. | ||
484 | |||
485 | Alternately the name ``internal-sftp'' implements an in-process | ||
486 | ``sftp'' server. This may simplify configurations using | ||
487 | ChrootDirectory to force a different filesystem root on clients. | ||
488 | |||
489 | By default no subsystems are defined. Note that this option ap- | ||
490 | plies to protocol version 2 only. | ||
491 | |||
492 | SyslogFacility | ||
493 | Gives the facility code that is used when logging messages from | ||
494 | sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
495 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The de- | ||
496 | fault is AUTH. | ||
497 | |||
498 | TCPKeepAlive | ||
499 | Specifies whether the system should send TCP keepalive messages | ||
500 | to the other side. If they are sent, death of the connection or | ||
501 | crash of one of the machines will be properly noticed. However, | ||
502 | this means that connections will die if the route is down tem- | ||
503 | porarily, and some people find it annoying. On the other hand, | ||
504 | if TCP keepalives are not sent, sessions may hang indefinitely on | ||
505 | the server, leaving ``ghost'' users and consuming server re- | ||
506 | sources. | ||
507 | |||
508 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
509 | server will notice if the network goes down or the client host | ||
510 | crashes. This avoids infinitely hanging sessions. | ||
511 | |||
512 | To disable TCP keepalive messages, the value should be set to | ||
513 | ``no''. | ||
514 | |||
515 | UseDNS Specifies whether sshd(8) should look up the remote host name and | ||
516 | check that the resolved host name for the remote IP address maps | ||
517 | back to the very same IP address. The default is ``yes''. | ||
518 | |||
519 | UseLogin | ||
520 | Specifies whether login(1) is used for interactive login ses- | ||
521 | sions. The default is ``no''. Note that login(1) is never used | ||
522 | for remote command execution. Note also, that if this is en- | ||
523 | abled, X11Forwarding will be disabled because login(1) does not | ||
524 | know how to handle xauth(1) cookies. If UsePrivilegeSeparation | ||
525 | is specified, it will be disabled after authentication. | ||
526 | |||
527 | UsePAM Enables the Pluggable Authentication Module interface. If set to | ||
528 | ``yes'' this will enable PAM authentication using | ||
529 | ChallengeResponseAuthentication and PasswordAuthentication in ad- | ||
530 | dition to PAM account and session module processing for all au- | ||
531 | thentication types. | ||
532 | |||
533 | Because PAM challenge-response authentication usually serves an | ||
534 | equivalent role to password authentication, you should disable | ||
535 | either PasswordAuthentication or ChallengeResponseAuthentication. | ||
536 | |||
537 | If UsePAM is enabled, you will not be able to run sshd(8) as a | ||
538 | non-root user. The default is ``no''. | ||
539 | |||
540 | UsePrivilegeSeparation | ||
541 | Specifies whether sshd(8) separates privileges by creating an un- | ||
542 | privileged child process to deal with incoming network traffic. | ||
543 | After successful authentication, another process will be created | ||
544 | that has the privilege of the authenticated user. The goal of | ||
545 | privilege separation is to prevent privilege escalation by con- | ||
546 | taining any corruption within the unprivileged processes. The | ||
547 | default is ``yes''. | ||
548 | |||
549 | X11DisplayOffset | ||
550 | Specifies the first display number available for sshd(8)'s X11 | ||
551 | forwarding. This prevents sshd from interfering with real X11 | ||
552 | servers. The default is 10. | ||
553 | |||
554 | X11Forwarding | ||
555 | Specifies whether X11 forwarding is permitted. The argument must | ||
556 | be ``yes'' or ``no''. The default is ``no''. | ||
557 | |||
558 | When X11 forwarding is enabled, there may be additional exposure | ||
559 | to the server and to client displays if the sshd(8) proxy display | ||
560 | is configured to listen on the wildcard address (see | ||
561 | X11UseLocalhost below), though this is not the default. Addi- | ||
562 | tionally, the authentication spoofing and authentication data | ||
563 | verification and substitution occur on the client side. The se- | ||
564 | curity risk of using X11 forwarding is that the client's X11 dis- | ||
565 | play server may be exposed to attack when the SSH client requests | ||
566 | forwarding (see the warnings for ForwardX11 in ssh_config(5)). A | ||
567 | system administrator may have a stance in which they want to pro- | ||
568 | tect clients that may expose themselves to attack by unwittingly | ||
569 | requesting X11 forwarding, which can warrant a ``no'' setting. | ||
570 | |||
571 | Note that disabling X11 forwarding does not prevent users from | ||
572 | forwarding X11 traffic, as users can always install their own | ||
573 | forwarders. X11 forwarding is automatically disabled if UseLogin | ||
574 | is enabled. | ||
575 | |||
576 | X11UseLocalhost | ||
577 | Specifies whether sshd(8) should bind the X11 forwarding server | ||
578 | to the loopback address or to the wildcard address. By default, | ||
579 | sshd binds the forwarding server to the loopback address and sets | ||
580 | the hostname part of the DISPLAY environment variable to | ||
581 | ``localhost''. This prevents remote hosts from connecting to the | ||
582 | proxy display. However, some older X11 clients may not function | ||
583 | with this configuration. X11UseLocalhost may be set to ``no'' to | ||
584 | specify that the forwarding server should be bound to the wild- | ||
585 | card address. The argument must be ``yes'' or ``no''. The de- | ||
586 | fault is ``yes''. | ||
587 | |||
588 | XAuthLocation | ||
589 | Specifies the full pathname of the xauth(1) program. The default | ||
590 | is /usr/X11R6/bin/xauth. | ||
591 | |||
592 | TIME FORMATS | ||
593 | sshd(8) command-line arguments and configuration file options that speci- | ||
594 | fy time may be expressed using a sequence of the form: time[qualifier], | ||
595 | where time is a positive integer value and qualifier is one of the fol- | ||
596 | lowing: | ||
597 | |||
598 | <none> seconds | ||
599 | s | S seconds | ||
600 | m | M minutes | ||
601 | h | H hours | ||
602 | d | D days | ||
603 | w | W weeks | ||
604 | |||
605 | Each member of the sequence is added together to calculate the total time | ||
606 | value. | ||
607 | |||
608 | Time format examples: | ||
609 | |||
610 | 600 600 seconds (10 minutes) | ||
611 | 10m 10 minutes | ||
612 | 1h30m 1 hour 30 minutes (90 minutes) | ||
613 | |||
614 | FILES | ||
615 | /etc/ssh/sshd_config | ||
616 | Contains configuration data for sshd(8). This file should be | ||
617 | writable by root only, but it is recommended (though not neces- | ||
618 | sary) that it be world-readable. | ||
619 | |||
620 | SEE ALSO | ||
621 | sshd(8) | ||
622 | |||
623 | AUTHORS | ||
624 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
625 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
626 | de Raadt and Dug Song removed many bugs, re-added newer features and cre- | ||
627 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
628 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
629 | for privilege separation. | ||
630 | |||
631 | OpenBSD 4.5 February 22, 2009 10 | ||