summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8935
-rw-r--r--config.h.in1707
-rwxr-xr-xconfigure36697
-rw-r--r--moduli.074
-rw-r--r--scp.0164
-rw-r--r--sftp-server.096
-rw-r--r--sftp.0383
-rw-r--r--ssh-add.0129
-rw-r--r--ssh-agent.0112
-rw-r--r--ssh-keygen.0566
-rw-r--r--ssh-keyscan.0109
-rw-r--r--ssh-keysign.053
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh.0960
-rw-r--r--ssh_config.0985
-rw-r--r--sshd.0636
-rw-r--r--sshd_config.0995
17 files changed, 52626 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 000000000..c63681f16
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,8935 @@
1commit 7de4b03a6e4071d454b72927ffaf52949fa34545
2Author: djm@openbsd.org <djm@openbsd.org>
3Date: Wed Jul 1 02:32:17 2015 +0000
4
5 upstream commit
6
7 twiddle; (this commit marks the openssh-6.9 release)
8
9 Upstream-ID: 78500582819f61dd8adee36ec5cc9b9ac9351234
10
11commit 1bf477d3cdf1a864646d59820878783d42357a1d
12Author: djm@openbsd.org <djm@openbsd.org>
13Date: Wed Jul 1 02:26:31 2015 +0000
14
15 upstream commit
16
17 better refuse ForwardX11Trusted=no connections attempted
18 after ForwardX11Timeout expires; reported by Jann Horn
19
20 Upstream-ID: bf0fddadc1b46a0334e26c080038313b4b6dea21
21
22commit 47aa7a0f8551b471fcae0447c1d78464f6dba869
23Author: djm@openbsd.org <djm@openbsd.org>
24Date: Wed Jul 1 01:56:13 2015 +0000
25
26 upstream commit
27
28 put back default PermitRootLogin=no
29
30 Upstream-ID: 7bdedd5cead99c57ed5571f3b6b7840922d5f728
31
32commit 984b064fe2a23733733262f88d2e1b2a1a501662
33Author: djm@openbsd.org <djm@openbsd.org>
34Date: Wed Jul 1 01:55:13 2015 +0000
35
36 upstream commit
37
38 openssh-6.9
39
40 Upstream-ID: 6cfe8e1904812531080e6ab6e752d7001b5b2d45
41
42commit d921082ed670f516652eeba50705e1e9f6325346
43Author: djm@openbsd.org <djm@openbsd.org>
44Date: Wed Jul 1 01:55:00 2015 +0000
45
46 upstream commit
47
48 reset default PermitRootLogin to 'yes' (momentarily, for
49 release)
50
51 Upstream-ID: cad8513527066e65dd7a1c16363d6903e8cefa24
52
53commit 66295e0e1ba860e527f191b6325d2d77dec4dbce
54Author: Damien Miller <djm@mindrot.org>
55Date: Wed Jul 1 11:49:12 2015 +1000
56
57 crank version numbers for release
58
59commit 37035c07d4f26bb1fbe000d2acf78efdb008681d
60Author: Damien Miller <djm@mindrot.org>
61Date: Wed Jul 1 10:49:37 2015 +1000
62
63 s/--with-ssh1/--without-ssh1/
64
65commit 629df770dbadc2accfbe1c81b3f31f876d0acd84
66Author: djm@openbsd.org <djm@openbsd.org>
67Date: Tue Jun 30 05:25:07 2015 +0000
68
69 upstream commit
70
71 fatal() when a remote window update causes the window
72 value to overflow. Reported by Georg Wicherski, ok markus@
73
74 Upstream-ID: ead397a9aceb3bf74ebfa5fcaf259d72e569f351
75
76commit f715afebe735d61df3fd30ad72d9ac1c8bd3b5f2
77Author: djm@openbsd.org <djm@openbsd.org>
78Date: Tue Jun 30 05:23:25 2015 +0000
79
80 upstream commit
81
82 Fix math error in remote window calculations that causes
83 eventual stalls for datagram channels. Reported by Georg Wicherski, ok
84 markus@
85
86 Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab
87
88commit 52fb6b9b034fcfd24bf88cc7be313e9c31de9889
89Author: Damien Miller <djm@mindrot.org>
90Date: Tue Jun 30 16:05:40 2015 +1000
91
92 skip IPv6-related portions on hosts without IPv6
93
94 with Tim Rice
95
96commit 512caddf590857af6aa12218461b5c0441028cf5
97Author: djm@openbsd.org <djm@openbsd.org>
98Date: Mon Jun 29 22:35:12 2015 +0000
99
100 upstream commit
101
102 add getpid to sandbox, reachable by grace_alarm_handler
103
104 reported by Jakub Jelen; bz#2419
105
106 Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8
107
108commit 78c2a4f883ea9aba866358e2acd9793a7f42ca93
109Author: djm@openbsd.org <djm@openbsd.org>
110Date: Fri Jun 26 05:13:20 2015 +0000
111
112 upstream commit
113
114 Fix \-escaping bug that caused forward path parsing to skip
115 two characters and skip past the end of the string.
116
117 Based on patch by Salvador Fandino; ok dtucker@
118
119 Upstream-ID: 7b879dc446335677cbe4cb549495636a0535f3bd
120
121commit bc20205c91c9920361d12b15d253d4997dba494a
122Author: Damien Miller <djm@mindrot.org>
123Date: Thu Jun 25 09:51:39 2015 +1000
124
125 add missing pselect6
126
127 patch from Jakub Jelen
128
129commit 9d27fb73b4a4e5e99cb880af790d5b1ce44f720a
130Author: djm@openbsd.org <djm@openbsd.org>
131Date: Wed Jun 24 23:47:23 2015 +0000
132
133 upstream commit
134
135 correct test to sshkey_sign(); spotted by Albert S.
136
137 Upstream-ID: 5f7347f40f0ca6abdaca2edb3bd62f4776518933
138
139commit 7ed01a96a1911d8b4a9ef4f3d064e1923bfad7e3
140Author: dtucker@openbsd.org <dtucker@openbsd.org>
141Date: Wed Jun 24 01:49:19 2015 +0000
142
143 upstream commit
144
145 Revert previous commit. We still want to call setgroups
146 in the case where there are zero groups to remove any that we might otherwise
147 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
148 to setgroups is always a static global it's always valid to dereference in
149 this case. ok deraadt@ djm@
150
151 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
152
153commit 882f8bf94f79528caa65b0ba71c185d705bb7195
154Author: dtucker@openbsd.org <dtucker@openbsd.org>
155Date: Wed Jun 24 01:49:19 2015 +0000
156
157 upstream commit
158
159 Revert previous commit. We still want to call setgroups in
160 the case where there are zero groups to remove any that we might otherwise
161 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
162 to setgroups is always a static global it's always valid to dereference in
163 this case. ok deraadt@ djm@
164
165 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
166
167commit 9488538a726951e82b3a4374f3c558d72c80a89b
168Author: djm@openbsd.org <djm@openbsd.org>
169Date: Mon Jun 22 23:42:16 2015 +0000
170
171 upstream commit
172
173 Don't count successful partial authentication as failures
174 in monitor; this may have caused the monitor to refuse multiple
175 authentications that would otherwise have successfully completed; ok markus@
176
177 Upstream-ID: eb74b8e506714d0f649bd5c300f762a527af04a3
178
179commit 63b78d003bd8ca111a736e6cea6333da50f5f09b
180Author: dtucker@openbsd.org <dtucker@openbsd.org>
181Date: Mon Jun 22 12:29:57 2015 +0000
182
183 upstream commit
184
185 Don't call setgroups if we have zero groups; there's no
186 guarantee that it won't try to deref the pointer. Based on a patch from mail
187 at quitesimple.org, ok djm deraadt
188
189 Upstream-ID: 2fff85e11d7a9a387ef7fddf41fbfaf566708ab1
190
191commit 5c15e22c691c79a47747bcf5490126656f97cecd
192Author: Damien Miller <djm@mindrot.org>
193Date: Thu Jun 18 15:07:56 2015 +1000
194
195 fix syntax error
196
197commit 596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403
198Author: jsing@openbsd.org <jsing@openbsd.org>
199Date: Mon Jun 15 18:44:22 2015 +0000
200
201 upstream commit
202
203 If AuthorizedPrincipalsCommand is specified, however
204 AuthorizedPrincipalsFile is not (or is set to "none"), authentication will
205 potentially fail due to key_cert_check_authority() failing to locate a
206 principal that matches the username, even though an authorized principal has
207 already been matched in the output of the subprocess. Fix this by using the
208 same logic to determine if pw->pw_name should be passed, as is used to
209 determine if a authorized principal must be matched earlier on.
210
211 ok djm@
212
213 Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d
214
215commit aff3e94c0d75d0d0fa84ea392b50ab04f8c57905
216Author: jsing@openbsd.org <jsing@openbsd.org>
217Date: Mon Jun 15 18:42:19 2015 +0000
218
219 upstream commit
220
221 Make the arguments to match_principals_command() similar
222 to match_principals_file(), by changing the last argument a struct
223 sshkey_cert * and dereferencing key->cert in the caller.
224
225 No functional change.
226
227 ok djm@
228
229 Upstream-ID: 533f99b844b21b47342b32b62e198dfffcf8651c
230
231commit 97e2e1596c202a4693468378b16b2353fd2d6c5e
232Author: Damien Miller <djm@mindrot.org>
233Date: Wed Jun 17 14:36:54 2015 +1000
234
235 trivial optimisation for seccomp-bpf
236
237 When doing arg inspection and the syscall doesn't match, skip
238 past the instruction that reloads the syscall into the accumulator,
239 since the accumulator hasn't been modified at this point.
240
241commit 99f33d7304893bd9fa04d227cb6e870171cded19
242Author: Damien Miller <djm@mindrot.org>
243Date: Wed Jun 17 10:50:51 2015 +1000
244
245 aarch64 support for seccomp-bpf sandbox
246
247 Also resort and tidy syscall list. Based on patches by Jakub Jelen
248 bz#2361; ok dtucker@
249
250commit 4ef702e1244633c1025ec7cfe044b9ab267097bf
251Author: djm@openbsd.org <djm@openbsd.org>
252Date: Mon Jun 15 01:32:50 2015 +0000
253
254 upstream commit
255
256 return failure on RSA signature error; reported by Albert S
257
258 Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa
259
260commit a170f22baf18af0b1acf2788b8b715605f41a1f9
261Author: Tim Rice <tim@multitalents.net>
262Date: Tue Jun 9 22:41:13 2015 -0700
263
264 Fix t12 rules for out of tree builds.
265
266commit ec04dc4a5515c913121bc04ed261857e68fa5c18
267Author: millert@openbsd.org <millert@openbsd.org>
268Date: Fri Jun 5 15:13:13 2015 +0000
269
270 upstream commit
271
272 For "ssh -L 12345:/tmp/sock" don't fail with "No forward host
273 name." (we have a path, not a host name). Based on a diff from Jared
274 Yanovich. OK djm@
275
276 Upstream-ID: 2846b0a8c7de037e33657f95afbd282837fc213f
277
278commit 732d61f417a6aea0aa5308b59cb0f563bcd6edd6
279Author: djm@openbsd.org <djm@openbsd.org>
280Date: Fri Jun 5 03:44:14 2015 +0000
281
282 upstream commit
283
284 typo: accidental repetition; bz#2386
285
286 Upstream-ID: 45e620d99f6bc301e5949d34a54027374991c88b
287
288commit adfb24c69d1b6f5e758db200866c711e25a2ba73
289Author: Darren Tucker <dtucker@zip.com.au>
290Date: Fri Jun 5 14:51:40 2015 +1000
291
292 Add Linux powerpc64le and powerpcle entries.
293
294 Stopgap to resolve bz#2409 because we are so close to release and will
295 update config.guess and friends shortly after the release. ok djm@
296
297commit a1195a0fdc9eddddb04d3e9e44c4775431cb77da
298Merge: 6397eed d2480bc
299Author: Tim Rice <tim@multitalents.net>
300Date: Wed Jun 3 21:43:13 2015 -0700
301
302 Merge branch 'master' of git.mindrot.org:/var/git/openssh
303
304commit 6397eedf953b2b973d2d7cbb504ab501a07f8ddc
305Author: Tim Rice <tim@multitalents.net>
306Date: Wed Jun 3 21:41:11 2015 -0700
307
308 Remove unneeded backslashes. Patch from Ángel González
309
310commit d2480bcac1caf31b03068de877a47d6e1027bf6d
311Author: Darren Tucker <dtucker@zip.com.au>
312Date: Thu Jun 4 14:10:55 2015 +1000
313
314 Remove redundant include of stdarg.h. bz#2410
315
316commit 5e67859a623826ccdf2df284cbb37e2d8e2787eb
317Author: djm@openbsd.org <djm@openbsd.org>
318Date: Tue Jun 2 09:10:40 2015 +0000
319
320 upstream commit
321
322 mention CheckHostIP adding addresses to known_hosts;
323 bz#1993; ok dtucker@
324
325 Upstream-ID: fd44b68440fd0dc29abf9f2d3f703d74a2396cb7
326
327commit d7a58bbac6583e33fd5eca8e2c2cc70c57617818
328Author: Darren Tucker <dtucker@zip.com.au>
329Date: Tue Jun 2 20:15:26 2015 +1000
330
331 Replace strcpy with strlcpy.
332
333 ok djm, sanity check by Corinna Vinschen.
334
335commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143
336Author: Damien Miller <djm@mindrot.org>
337Date: Fri May 29 18:27:21 2015 +1000
338
339 skip, rather than fatal when run without SUDO set
340
341commit 599f01142a376645b15cbc9349d7e8975e1cf245
342Author: Damien Miller <djm@mindrot.org>
343Date: Fri May 29 18:03:15 2015 +1000
344
345 fix merge botch that left ",," in KEX algs
346
347commit 0c2a81dfc21822f2423edd30751e5ec53467b347
348Author: Damien Miller <djm@mindrot.org>
349Date: Fri May 29 17:08:28 2015 +1000
350
351 re-enable SSH protocol 1 at compile time
352
353commit db438f9285d64282d3ac9e8c0944f59f037c0151
354Author: djm@openbsd.org <djm@openbsd.org>
355Date: Fri May 29 03:05:13 2015 +0000
356
357 upstream commit
358
359 make this work without SUDO set; ok dtucker@
360
361 Upstream-Regress-ID: bca88217b70bce2fe52b23b8e06bdeb82d98c715
362
363commit 1d9a2e2849c9864fe75daabf433436341c968e14
364Author: djm@openbsd.org <djm@openbsd.org>
365Date: Thu May 28 07:37:31 2015 +0000
366
367 upstream commit
368
369 wrap all moduli-related code in #ifdef WITH_OPENSSL.
370 based on patch from Reuben Hawkins; bz#2388 feedback and ok dtucker@
371
372 Upstream-ID: d80cfc8be3e6ec65b3fac9e87c4466533b31b7cf
373
374commit 496aeb25bc2d6c434171292e4714771b594bd00e
375Author: dtucker@openbsd.org <dtucker@openbsd.org>
376Date: Thu May 28 05:41:29 2015 +0000
377
378 upstream commit
379
380 Increase the allowed length of the known host file name
381 in the log message to be consistent with other cases. Part of bz#1993, ok
382 deraadt.
383
384 Upstream-ID: a9e97567be49f25daf286721450968251ff78397
385
386commit dd2cfeb586c646ff8d70eb93567b2e559ace5b14
387Author: dtucker@openbsd.org <dtucker@openbsd.org>
388Date: Thu May 28 05:09:45 2015 +0000
389
390 upstream commit
391
392 Fix typo (keywork->keyword)
393
394 Upstream-ID: 8aacd0f4089c0a244cf43417f4f9045dfaeab534
395
396commit 9cc6842493fbf23025ccc1edab064869640d3bec
397Author: djm@openbsd.org <djm@openbsd.org>
398Date: Thu May 28 04:50:53 2015 +0000
399
400 upstream commit
401
402 add error message on ftruncate failure; bz#2176
403
404 Upstream-ID: cbcc606e0b748520c74a210d8f3cc9718d3148cf
405
406commit d1958793a0072c22be26d136dbda5ae263e717a0
407Author: djm@openbsd.org <djm@openbsd.org>
408Date: Thu May 28 04:40:13 2015 +0000
409
410 upstream commit
411
412 make ssh-keygen default to ed25519 keys when compiled
413 without OpenSSL; bz#2388, ok dtucker@
414
415 Upstream-ID: 85a471fa6d3fa57a7b8e882d22cfbfc1d84cdc71
416
417commit 3ecde664c9fc5fb3667aedf9e6671462600f6496
418Author: dtucker@openbsd.org <dtucker@openbsd.org>
419Date: Wed May 27 23:51:10 2015 +0000
420
421 upstream commit
422
423 Reorder client proposal to prefer
424 diffie-hellman-group-exchange-sha1 over diffie-hellman-group14-sha1. ok djm@
425
426 Upstream-ID: 552c08d47347c3ee1a9a57d88441ab50abe17058
427
428commit 40f64292b907afd0a674fdbf3e4c2356d17a7d68
429Author: dtucker@openbsd.org <dtucker@openbsd.org>
430Date: Wed May 27 23:39:18 2015 +0000
431
432 upstream commit
433
434 Add a stronger (4k bit) fallback group that sshd can use
435 when the moduli file is missing or broken, sourced from RFC3526. bz#2302, ok
436 markus@ (earlier version), djm@
437
438 Upstream-ID: b635215746a25a829d117673d5e5a76d4baee7f4
439
440commit 5ab7d5fa03ad55bc438fab45dfb3aeb30a3c237a
441Author: Darren Tucker <dtucker@zip.com.au>
442Date: Thu May 28 10:03:40 2015 +1000
443
444 New moduli file from OpenBSD, removing 1k groups.
445
446 Remove 1k bit groups. ok deraadt@, markus@
447
448commit a71ba58adf34e599f30cdda6e9b93ae6e3937eea
449Author: djm@openbsd.org <djm@openbsd.org>
450Date: Wed May 27 05:15:02 2015 +0000
451
452 upstream commit
453
454 support PKCS#11 devices with external PIN entry devices
455 bz#2240, based on patch from Dirk-Willem van Gulik; feedback and ok dtucker@
456
457 Upstream-ID: 504568992b55a8fc984375242b1bd505ced61b0d
458
459commit b282fec1aa05246ed3482270eb70fc3ec5f39a00
460Author: dtucker@openbsd.org <dtucker@openbsd.org>
461Date: Tue May 26 23:23:40 2015 +0000
462
463 upstream commit
464
465 Cap DH-GEX group size at 4kbits for Cisco implementations.
466 Some of them will choke when asked for preferred sizes >4k instead of
467 returning the 4k group that they do have. bz#2209, ok djm@
468
469 Upstream-ID: 54b863a19713446b7431f9d06ad0532b4fcfef8d
470
471commit 3e91b4e8b0dc2b4b7e7d42cf6e8994a32e4cb55e
472Author: djm@openbsd.org <djm@openbsd.org>
473Date: Sun May 24 23:39:16 2015 +0000
474
475 upstream commit
476
477 add missing 'c' option to getopt(), case statement was
478 already there; from Felix Bolte
479
480 Upstream-ID: 9b19b4e2e0b54d6fefa0dfac707c51cf4bae3081
481
482commit 64a89ec07660abba4d0da7c0095b7371c98bab62
483Author: jsg@openbsd.org <jsg@openbsd.org>
484Date: Sat May 23 14:28:37 2015 +0000
485
486 upstream commit
487
488 fix a memory leak in an error path ok markus@ dtucker@
489
490 Upstream-ID: bc1da0f205494944918533d8780fde65dff6c598
491
492commit f948737449257d2cb83ffcfe7275eb79b677fd4a
493Author: djm@openbsd.org <djm@openbsd.org>
494Date: Fri May 22 05:28:45 2015 +0000
495
496 upstream commit
497
498 mention ssh-keygen -E for comparing legacy MD5
499 fingerprints; bz#2332
500
501 Upstream-ID: 079a3669549041dbf10dbc072d9563f0dc3b2859
502
503commit 0882332616e4f0272c31cc47bf2018f9cb258a4e
504Author: djm@openbsd.org <djm@openbsd.org>
505Date: Fri May 22 04:45:52 2015 +0000
506
507 upstream commit
508
509 Reorder EscapeChar option parsing to avoid a single-byte
510 out- of-bounds read. bz#2396 from Jaak Ristioja; ok dtucker@
511
512 Upstream-ID: 1dc6b5b63d1c8d9a88619da0b27ade461d79b060
513
514commit d7c31da4d42c115843edee2074d7d501f8804420
515Author: djm@openbsd.org <djm@openbsd.org>
516Date: Fri May 22 03:50:02 2015 +0000
517
518 upstream commit
519
520 add knob to relax GSSAPI host credential check for
521 multihomed hosts bz#928, patch by Simon Wilkinson; ok dtucker
522 (kerberos/GSSAPI is not compiled by default on OpenBSD)
523
524 Upstream-ID: 15ddf1c6f7fd9d98eea9962f480079ae3637285d
525
526commit aa72196a00be6e0b666215edcffbc10af234cb0e
527Author: Darren Tucker <dtucker@zip.com.au>
528Date: Fri May 22 17:49:46 2015 +1000
529
530 Include signal.h for sig_atomic_t, used by kex.h.
531
532 bz#2402, from tomas.kuthan at oracle com.
533
534commit 8b02481143d75e91c49d1bfae0876ac1fbf9511a
535Author: Darren Tucker <dtucker@zip.com.au>
536Date: Fri May 22 12:47:24 2015 +1000
537
538 Import updated moduli file from OpenBSD.
539
540commit 4739e8d5e1c0be49624082bd9f6b077e9e758db9
541Author: djm@openbsd.org <djm@openbsd.org>
542Date: Thu May 21 12:01:19 2015 +0000
543
544 upstream commit
545
546 Support "ssh-keygen -lF hostname" to find search known_hosts
547 and print key hashes. Already advertised by ssh-keygen(1), but not delivered
548 by code; ok dtucker@
549
550 Upstream-ID: 459e0e2bf39825e41b0811c336db2d56a1c23387
551
552commit e97201feca10b5196da35819ae516d0b87cf3a50
553Author: Damien Miller <djm@mindrot.org>
554Date: Thu May 21 17:55:15 2015 +1000
555
556 conditionalise util.h inclusion
557
558commit 13640798c7dd011ece0a7d02841fe48e94cfa0e0
559Author: djm@openbsd.org <djm@openbsd.org>
560Date: Thu May 21 06:44:25 2015 +0000
561
562 upstream commit
563
564 regress test for AuthorizedPrincipalsCommand
565
566 Upstream-Regress-ID: c658fbf1ab6b6011dc83b73402322e396f1e1219
567
568commit 84452c5d03c21f9bfb28c234e0dc1dc67dd817b1
569Author: djm@openbsd.org <djm@openbsd.org>
570Date: Thu May 21 06:40:02 2015 +0000
571
572 upstream commit
573
574 regress test for AuthorizedKeysCommand arguments
575
576 Upstream-Regress-ID: bbd65c13c6b3be9a442ec115800bff9625898f12
577
578commit bcc50d816187fa9a03907ac1f3a52f04a52e10d1
579Author: djm@openbsd.org <djm@openbsd.org>
580Date: Thu May 21 06:43:30 2015 +0000
581
582 upstream commit
583
584 add AuthorizedPrincipalsCommand that allows getting
585 authorized_principals from a subprocess rather than a file, which is quite
586 useful in deployments with large userbases
587
588 feedback and ok markus@
589
590 Upstream-ID: aa1bdac7b16fc6d2fa3524ef08f04c7258d247f6
591
592commit 24232a3e5ab467678a86aa67968bbb915caffed4
593Author: djm@openbsd.org <djm@openbsd.org>
594Date: Thu May 21 06:38:35 2015 +0000
595
596 upstream commit
597
598 support arguments to AuthorizedKeysCommand
599
600 bz#2081 loosely based on patch by Sami Hartikainen
601 feedback and ok markus@
602
603 Upstream-ID: b080387a14aa67dddd8ece67c00f268d626541f7
604
605commit d80fbe41a57c72420c87a628444da16d09d66ca7
606Author: djm@openbsd.org <djm@openbsd.org>
607Date: Thu May 21 04:55:51 2015 +0000
608
609 upstream commit
610
611 refactor: split base64 encoding of pubkey into its own
612 sshkey_to_base64() function and out of sshkey_write(); ok markus@
613
614 Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a
615
616commit 7cc44ef74133a473734bbcbd3484f24d6a7328c5
617Author: deraadt@openbsd.org <deraadt@openbsd.org>
618Date: Mon May 18 15:06:05 2015 +0000
619
620 upstream commit
621
622 getentropy() and sendsyslog() have been around long
623 enough. openssh-portable may want the #ifdef's but not base. discussed with
624 djm few weeks back
625
626 Upstream-ID: 0506a4334de108e3fb6c66f8d6e0f9c112866926
627
628commit 9173d0fbe44de7ebcad8a15618e13a8b8d78902e
629Author: dtucker@openbsd.org <dtucker@openbsd.org>
630Date: Fri May 15 05:44:21 2015 +0000
631
632 upstream commit
633
634 Use a salted hash of the lock passphrase instead of plain
635 text and do constant-time comparisons of it. Should prevent leaking any
636 information about it via timing, pointed out by Ryan Castellucci. Add a 0.1s
637 incrementing delay for each failed unlock attempt up to 10s. ok markus@
638 (earlier version), djm@
639
640 Upstream-ID: c599fcc325aa1cc65496b25220b622d22208c85f
641
642commit d028d5d3a697c71b21e4066d8672cacab3caa0a8
643Author: Damien Miller <djm@mindrot.org>
644Date: Tue May 5 19:10:58 2015 +1000
645
646 upstream commit
647
648 - tedu@cvs.openbsd.org 2015/01/12 03:20:04
649 [bcrypt_pbkdf.c]
650 rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,
651 nor are they the same size.
652
653commit f6391d4e59b058984163ab28f4e317e7a72478f1
654Author: Damien Miller <djm@mindrot.org>
655Date: Tue May 5 19:10:23 2015 +1000
656
657 upstream commit
658
659 - deraadt@cvs.openbsd.org 2015/01/08 00:30:07
660 [bcrypt_pbkdf.c]
661 declare a local version of MIN(), call it MINIMUM()
662
663commit 8ac6b13cc9113eb47cd9e86c97d7b26b4b71b77f
664Author: Damien Miller <djm@mindrot.org>
665Date: Tue May 5 19:09:46 2015 +1000
666
667 upstream commit
668
669 - djm@cvs.openbsd.org 2014/12/30 01:41:43
670 [bcrypt_pbkdf.c]
671 typo in comment: ouput => output
672
673commit 1f792489d5cf86a4f4e3003e6e9177654033f0f2
674Author: djm@openbsd.org <djm@openbsd.org>
675Date: Mon May 4 06:10:48 2015 +0000
676
677 upstream commit
678
679 Remove pattern length argument from match_pattern_list(), we
680 only ever use it for strlen(pattern).
681
682 Prompted by hanno AT hboeck.de pointing an out-of-bound read
683 error caused by an incorrect pattern length found using AFL
684 and his own tools.
685
686 ok markus@
687
688commit 639d6bc57b1942393ed12fb48f00bc05d4e093e4
689Author: djm@openbsd.org <djm@openbsd.org>
690Date: Fri May 1 07:10:01 2015 +0000
691
692 upstream commit
693
694 refactor ssh_dispatch_run_fatal() to use sshpkt_fatal()
695 to better report error conditions. Teach sshpkt_fatal() about ECONNRESET.
696
697 Improves error messages on TCP connection resets. bz#2257
698
699 ok dtucker@
700
701commit 9559d7de34c572d4d3fd990ca211f8ec99f62c4d
702Author: djm@openbsd.org <djm@openbsd.org>
703Date: Fri May 1 07:08:08 2015 +0000
704
705 upstream commit
706
707 a couple of parse targets were missing activep checks,
708 causing them to be misapplied in match context; bz#2272 diagnosis and
709 original patch from Sami Hartikainen ok dtucker@
710
711commit 7e8528cad04b2775c3b7db08abf8fb42e47e6b2a
712Author: djm@openbsd.org <djm@openbsd.org>
713Date: Fri May 1 04:17:51 2015 +0000
714
715 upstream commit
716
717 make handling of AuthorizedPrincipalsFile=none more
718 consistent with other =none options; bz#2288 from Jakub Jelen; ok dtucker@
719
720commit ca430d4d9cc0f62eca3b1fb1e2928395b7ce80f7
721Author: djm@openbsd.org <djm@openbsd.org>
722Date: Fri May 1 04:03:20 2015 +0000
723
724 upstream commit
725
726 remove failed remote forwards established by muliplexing
727 from the list of active forwards; bz#2363, patch mostly by Yoann Ricordel; ok
728 dtucker@
729
730commit 8312cfb8ad88657517b3e23ac8c56c8e38eb9792
731Author: djm@openbsd.org <djm@openbsd.org>
732Date: Fri May 1 04:01:58 2015 +0000
733
734 upstream commit
735
736 reduce stderr spam when using ssh -S /path/mux -O forward
737 -R 0:... ok dtucker@
738
739commit 179be0f5e62f1f492462571944e45a3da660d82b
740Author: djm@openbsd.org <djm@openbsd.org>
741Date: Fri May 1 03:23:51 2015 +0000
742
743 upstream commit
744
745 prevent authorized_keys options picked up on public key
746 tests without a corresponding private key authentication being applied to
747 other authentication methods. Reported by halex@, ok markus@
748
749commit a42d67be65b719a430b7fcaba2a4e4118382723a
750Author: djm@openbsd.org <djm@openbsd.org>
751Date: Fri May 1 03:20:54 2015 +0000
752
753 upstream commit
754
755 Don't make parsing of authorized_keys' environment=
756 option conditional on PermitUserEnv - always parse it, but only use the
757 result if the option is enabled. This prevents the syntax of authorized_keys
758 changing depending on which sshd_config options were enabled.
759
760 bz#2329; based on patch from coladict AT gmail.com, ok dtucker@
761
762commit e661a86353e11592c7ed6a847e19a83609f49e77
763Author: djm@openbsd.org <djm@openbsd.org>
764Date: Mon May 4 06:10:48 2015 +0000
765
766 upstream commit
767
768 Remove pattern length argument from match_pattern_list(), we
769 only ever use it for strlen(pattern).
770
771 Prompted by hanno AT hboeck.de pointing an out-of-bound read
772 error caused by an incorrect pattern length found using AFL
773 and his own tools.
774
775 ok markus@
776
777commit 0ef1de742be2ee4b10381193fe90730925b7f027
778Author: dtucker@openbsd.org <dtucker@openbsd.org>
779Date: Thu Apr 23 05:01:19 2015 +0000
780
781 upstream commit
782
783 Add a simple regression test for sshd's configuration
784 parser. Right now, all it does is run the output of sshd -T back through
785 itself and ensure the output is valid and invariant.
786
787commit 368f83c793275faa2c52f60eaa9bdac155c4254b
788Author: djm@openbsd.org <djm@openbsd.org>
789Date: Wed Apr 22 01:38:36 2015 +0000
790
791 upstream commit
792
793 use correct key for nested certificate test
794
795commit 8d4d1bfddbbd7d21f545dc6997081d1ea1fbc99a
796Author: djm@openbsd.org <djm@openbsd.org>
797Date: Fri May 1 07:11:47 2015 +0000
798
799 upstream commit
800
801 mention that the user's shell from /etc/passwd is used
802 for commands too; bz#1459 ok dtucker@
803
804commit 5ab283d0016bbc9d4d71e8e5284d011bc5a930cf
805Author: djm@openbsd.org <djm@openbsd.org>
806Date: Fri May 8 07:29:00 2015 +0000
807
808 upstream commit
809
810 whitespace
811
812 Upstream-Regress-ID: 6b708a3e709d5b7fd37890f874bafdff1f597519
813
814commit 8377d5008ad260048192e1e56ad7d15a56d103dd
815Author: djm@openbsd.org <djm@openbsd.org>
816Date: Fri May 8 07:26:13 2015 +0000
817
818 upstream commit
819
820 whitespace at EOL
821
822 Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554
823
824commit c28a3436fa8737709ea88e4437f8f23a6ab50359
825Author: djm@openbsd.org <djm@openbsd.org>
826Date: Fri May 8 06:45:13 2015 +0000
827
828 upstream commit
829
830 moar whitespace at eol
831
832 Upstream-ID: 64eaf872a3ba52ed41e494287e80d40aaba4b515
833
834commit 2b64c490468fd4ca35ac8d5cc31c0520dc1508bb
835Author: djm@openbsd.org <djm@openbsd.org>
836Date: Fri May 8 06:41:56 2015 +0000
837
838 upstream commit
839
840 whitespace at EOL
841
842 Upstream-ID: 57bcf67d666c6fc1ad798aee448fdc3f70f7ec2c
843
844commit 4e636cf201ce6e7e3b9088568218f9d4e2c51712
845Author: djm@openbsd.org <djm@openbsd.org>
846Date: Fri May 8 03:56:51 2015 +0000
847
848 upstream commit
849
850 whitespace at EOL
851
852commit 38b8272f823dc1dd4e29dbcee83943ed48bb12fa
853Author: dtucker@openbsd.org <dtucker@openbsd.org>
854Date: Mon May 4 01:47:53 2015 +0000
855
856 upstream commit
857
858 Use diff w/out -u for better portability
859
860commit 297060f42d5189a4065ea1b6f0afdf6371fb0507
861Author: dtucker@openbsd.org <dtucker@openbsd.org>
862Date: Fri May 8 03:25:07 2015 +0000
863
864 upstream commit
865
866 Use xcalloc for permitted_adm_opens instead of xmalloc to
867 ensure it's zeroed. Fixes post-auth crash with permitopen=none. bz#2355, ok
868 djm@
869
870commit 63ebf019be863b2d90492a85e248cf55a6e87403
871Author: djm@openbsd.org <djm@openbsd.org>
872Date: Fri May 8 03:17:49 2015 +0000
873
874 upstream commit
875
876 don't choke on new-format private keys encrypted with an
877 AEAD cipher; bz#2366, patch from Ron Frederick; ok markus@
878
879commit f8484dac678ab3098ae522a5f03bb2530f822987
880Author: dtucker@openbsd.org <dtucker@openbsd.org>
881Date: Wed May 6 05:45:17 2015 +0000
882
883 upstream commit
884
885 Clarify pseudo-terminal request behaviour and use
886 "pseudo-terminal" consistently. bz#1716, ok jmc@ "I like it" deraadt@.
887
888commit ea139507bef8bad26e86ed99a42c7233ad115c38
889Author: dtucker@openbsd.org <dtucker@openbsd.org>
890Date: Wed May 6 04:07:18 2015 +0000
891
892 upstream commit
893
894 Blacklist DH-GEX for specific PuTTY versions known to
895 send non-RFC4419 DH-GEX messages rather than all versions of PuTTY.
896 According to Simon Tatham, 0.65 and newer versions will send RFC4419 DH-GEX
897 messages. ok djm@
898
899commit b58234f00ee3872eb84f6e9e572a9a34e902e36e
900Author: dtucker@openbsd.org <dtucker@openbsd.org>
901Date: Tue May 5 10:17:49 2015 +0000
902
903 upstream commit
904
905 WinSCP doesn't implement RFC4419 DH-GEX so flag it so we
906 don't offer that KEX method. ok markus@
907
908commit d5b1507a207253b39e810e91e68f9598691b7a29
909Author: jsg@openbsd.org <jsg@openbsd.org>
910Date: Tue May 5 02:48:17 2015 +0000
911
912 upstream commit
913
914 use the sizeof the struct not the sizeof a pointer to the
915 struct in ssh_digest_start()
916
917 This file is only used if ssh is built with OPENSSL=no
918
919 ok markus@
920
921commit a647b9b8e616c231594b2710c925d31b1b8afea3
922Author: Darren Tucker <dtucker@zip.com.au>
923Date: Fri May 8 11:07:27 2015 +1000
924
925 Put brackets around mblen() compat constant.
926
927 This might help with the reported problem cross compiling for Android
928 ("error: expected identifier or '(' before numeric constant") but
929 shouldn't hurt in any case.
930
931commit d1680d36e17244d9af3843aeb5025cb8e40d6c07
932Author: Darren Tucker <dtucker@zip.com.au>
933Date: Thu Apr 30 09:18:11 2015 +1000
934
935 xrealloc -> xreallocarray in portable code too.
936
937commit 531a57a3893f9fcd4aaaba8c312b612bbbcc021e
938Author: dtucker@openbsd.org <dtucker@openbsd.org>
939Date: Wed Apr 29 03:48:56 2015 +0000
940
941 upstream commit
942
943 Allow ListenAddress, Port and AddressFamily in any
944 order. bz#68, ok djm@, jmc@ (for the man page bit).
945
946commit c1d5bcf1aaf1209af02f79e48ba1cbc76a87b56f
947Author: jmc@openbsd.org <jmc@openbsd.org>
948Date: Tue Apr 28 13:47:38 2015 +0000
949
950 upstream commit
951
952 enviroment -> environment: apologies to darren for not
953 spotting that first time round...
954
955commit 43beea053db191cac47c2cd8d3dc1930158aff1a
956Author: dtucker@openbsd.org <dtucker@openbsd.org>
957Date: Tue Apr 28 10:25:15 2015 +0000
958
959 upstream commit
960
961 Fix typo in previous
962
963commit 85b96ef41374f3ddc9139581f87da09b2cd9199e
964Author: dtucker@openbsd.org <dtucker@openbsd.org>
965Date: Tue Apr 28 10:17:58 2015 +0000
966
967 upstream commit
968
969 Document that the TERM environment variable is not
970 subject to SendEnv and AcceptEnv. bz#2386, based loosely on a patch from
971 jjelen at redhat, help and ok jmc@
972
973commit 88a7c598a94ff53f76df228eeaae238d2d467565
974Author: djm@openbsd.org <djm@openbsd.org>
975Date: Mon Apr 27 21:42:48 2015 +0000
976
977 upstream commit
978
979 Make sshd default to PermitRootLogin=no; ok deraadt@
980 rpe@
981
982commit 734226b4480a6c736096c729fcf6f391400599c7
983Author: djm@openbsd.org <djm@openbsd.org>
984Date: Mon Apr 27 01:52:30 2015 +0000
985
986 upstream commit
987
988 fix compilation with OPENSSL=no; ok dtucker@
989
990commit a4b9d2ce1eb7703eaf0809b0c8a82ded8aa4f1c6
991Author: dtucker@openbsd.org <dtucker@openbsd.org>
992Date: Mon Apr 27 00:37:53 2015 +0000
993
994 upstream commit
995
996 Include stdio.h for FILE (used in sshkey.h) so it
997 compiles with OPENSSL=no.
998
999commit dbcc652f4ca11fe04e5930c7ef18a219318c6cda
1000Author: djm@openbsd.org <djm@openbsd.org>
1001Date: Mon Apr 27 00:21:21 2015 +0000
1002
1003 upstream commit
1004
1005 allow "sshd -f none" to skip reading the config file,
1006 much like "ssh -F none" does. ok dtucker
1007
1008commit b7ca276fca316c952f0b90f5adb1448c8481eedc
1009Author: jmc@openbsd.org <jmc@openbsd.org>
1010Date: Fri Apr 24 06:26:49 2015 +0000
1011
1012 upstream commit
1013
1014 combine -Dd onto one line and update usage();
1015
1016commit 2ea974630d7017e4c7666d14d9dc939707613e96
1017Author: djm@openbsd.org <djm@openbsd.org>
1018Date: Fri Apr 24 05:26:44 2015 +0000
1019
1020 upstream commit
1021
1022 add ssh-agent -D to leave ssh-agent in foreground
1023 without enabling debug mode; bz#2381 ok dtucker@
1024
1025commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7
1026Author: deraadt@openbsd.org <deraadt@openbsd.org>
1027Date: Fri Apr 24 01:36:24 2015 +0000
1028
1029 upstream commit
1030
1031 2*len -> use xreallocarray() ok djm
1032
1033commit 657a5fbc0d0aff309079ff8fb386f17e964963c2
1034Author: deraadt@openbsd.org <deraadt@openbsd.org>
1035Date: Fri Apr 24 01:36:00 2015 +0000
1036
1037 upstream commit
1038
1039 rename xrealloc() to xreallocarray() since it follows
1040 that form. ok djm
1041
1042commit 1108ae242fdd2c304307b68ddf46aebe43ebffaa
1043Author: dtucker@openbsd.org <dtucker@openbsd.org>
1044Date: Thu Apr 23 04:59:10 2015 +0000
1045
1046 upstream commit
1047
1048 Two small fixes for sshd -T: ListenAddress'es are added
1049 to a list head so reverse the order when printing them to ensure the
1050 behaviour remains the same, and print StreamLocalBindMask as octal with
1051 leading zero. ok deraadt@
1052
1053commit bd902b8473e1168f19378d5d0ae68d0c203525df
1054Author: dtucker@openbsd.org <dtucker@openbsd.org>
1055Date: Thu Apr 23 04:53:53 2015 +0000
1056
1057 upstream commit
1058
1059 Check for and reject missing arguments for
1060 VersionAddendum and ForceCommand. bz#2281, patch from plautrba at redhat com,
1061 ok djm@
1062
1063commit ca42c1758575e592239de1d5755140e054b91a0d
1064Author: djm@openbsd.org <djm@openbsd.org>
1065Date: Wed Apr 22 01:24:01 2015 +0000
1066
1067 upstream commit
1068
1069 unknown certificate extensions are non-fatal, so don't
1070 fatal when they are encountered; bz#2387 reported by Bob Van Zant; ok
1071 dtucker@
1072
1073commit 39bfbf7caad231cc4bda6909fb1af0705bca04d8
1074Author: jsg@openbsd.org <jsg@openbsd.org>
1075Date: Tue Apr 21 07:01:00 2015 +0000
1076
1077 upstream commit
1078
1079 Add back a backslash removed in rev 1.42 so
1080 KEX_SERVER_ENCRYPT will include aes again.
1081
1082 ok deraadt@
1083
1084commit 6b0d576bb87eca3efd2b309fcfe4edfefc289f9c
1085Author: djm@openbsd.org <djm@openbsd.org>
1086Date: Fri Apr 17 13:32:09 2015 +0000
1087
1088 upstream commit
1089
1090 s/recommended/required/ that private keys be og-r this
1091 wording change was made a while ago but got accidentally reverted
1092
1093commit 44a8e7ce6f3ab4c2eb1ae49115c210b98e53c4df
1094Author: djm@openbsd.org <djm@openbsd.org>
1095Date: Fri Apr 17 13:25:52 2015 +0000
1096
1097 upstream commit
1098
1099 don't try to cleanup NULL KEX proposals in
1100 kex_prop_free(); found by Jukka Taimisto and Markus Hietava
1101
1102commit 3038a191872d2882052306098c1810d14835e704
1103Author: djm@openbsd.org <djm@openbsd.org>
1104Date: Fri Apr 17 13:19:22 2015 +0000
1105
1106 upstream commit
1107
1108 use error/logit/fatal instead of fprintf(stderr, ...)
1109 and exit(0), fix a few errors that were being printed to stdout instead of
1110 stderr and a few non-errors that were going to stderr instead of stdout
1111 bz#2325; ok dtucker
1112
1113commit a58be33cb6cd24441fa7e634db0e5babdd56f07f
1114Author: djm@openbsd.org <djm@openbsd.org>
1115Date: Fri Apr 17 13:16:48 2015 +0000
1116
1117 upstream commit
1118
1119 debug log missing DISPLAY environment when X11
1120 forwarding requested; bz#1682 ok dtucker@
1121
1122commit 17d4d9d9fbc8fb80e322f94d95eecc604588a474
1123Author: djm@openbsd.org <djm@openbsd.org>
1124Date: Fri Apr 17 04:32:31 2015 +0000
1125
1126 upstream commit
1127
1128 don't call record_login() in monitor when UseLogin is
1129 enabled; bz#278 reported by drk AT sgi.com; ok dtucker
1130
1131commit 40132ff87b6cbc3dc05fb5df2e9d8e3afa06aafd
1132Author: dtucker@openbsd.org <dtucker@openbsd.org>
1133Date: Fri Apr 17 04:12:35 2015 +0000
1134
1135 upstream commit
1136
1137 Add some missing options to sshd -T and fix the output
1138 of VersionAddendum HostCertificate. bz#2346, patch from jjelen at redhat
1139 com, ok djm.
1140
1141commit 6cc7cfa936afde2d829e56ee6528c7ea47a42441
1142Author: dtucker@openbsd.org <dtucker@openbsd.org>
1143Date: Thu Apr 16 23:25:50 2015 +0000
1144
1145 upstream commit
1146
1147 Document "none" for PidFile XAuthLocation
1148 TrustedUserCAKeys and RevokedKeys. bz#2382, feedback from jmc@, ok djm@
1149
1150commit 15fdfc9b1c6808b26bc54d4d61a38b54541763ed
1151Author: dtucker@openbsd.org <dtucker@openbsd.org>
1152Date: Wed Apr 15 23:23:25 2015 +0000
1153
1154 upstream commit
1155
1156 Plug leak of address passed to logging. bz#2373, patch
1157 from jjelen at redhat, ok markus@
1158
1159commit bb2289e2a47d465eaaaeff3dee2a6b7777b4c291
1160Author: dtucker@openbsd.org <dtucker@openbsd.org>
1161Date: Tue Apr 14 04:17:03 2015 +0000
1162
1163 upstream commit
1164
1165 Output remote username in debug output since with Host
1166 and Match it's not always obvious what it will be. bz#2368, ok djm@
1167
1168commit 70860b6d07461906730632f9758ff1b7c98c695a
1169Author: Darren Tucker <dtucker@zip.com.au>
1170Date: Fri Apr 17 10:56:13 2015 +1000
1171
1172 Format UsePAM setting when using sshd -T.
1173
1174 Part of bz#2346, patch from jjelen at redhat com.
1175
1176commit ee15d9c9f0720f5a8b0b34e4b10ecf21f9824814
1177Author: Darren Tucker <dtucker@zip.com.au>
1178Date: Fri Apr 17 10:40:23 2015 +1000
1179
1180 Wrap endian.h include inside ifdef (bz#2370).
1181
1182commit 408f4c2ad4a4c41baa7b9b2b7423d875abbfa70b
1183Author: Darren Tucker <dtucker@zip.com.au>
1184Date: Fri Apr 17 09:39:58 2015 +1000
1185
1186 Look for '${host}-ar' before 'ar'.
1187
1188 This changes configure.ac to look for '${host}-ar' as set by
1189 AC_CANONICAL_HOST before looking for the unprefixed 'ar'.
1190 Useful when cross-compiling when all your binutils are prefixed.
1191
1192 Patch from moben at exherbo org via astrand at lysator liu se and
1193 bz#2352.
1194
1195commit 673a1c16ad078d41558247ce739fe812c960acc8
1196Author: Damien Miller <djm@google.com>
1197Date: Thu Apr 16 11:40:20 2015 +1000
1198
1199 remove dependency on arpa/telnet.h
1200
1201commit 202d443eeda1829d336595a3cfc07827e49f45ed
1202Author: Darren Tucker <dtucker@zip.com.au>
1203Date: Wed Apr 15 15:59:49 2015 +1000
1204
1205 Remove duplicate include of pwd.h. bz#2337, patch from Mordy Ovits.
1206
1207commit 597986493412c499f2bc2209420cb195f97b3668
1208Author: Damien Miller <djm@google.com>
1209Date: Thu Apr 9 10:14:48 2015 +1000
1210
1211 platform's with openpty don't need pty_release
1212
1213commit 318be28cda1fd9108f2e6f2f86b0b7589ba2aed0
1214Author: djm@openbsd.org <djm@openbsd.org>
1215Date: Mon Apr 13 02:04:08 2015 +0000
1216
1217 upstream commit
1218
1219 deprecate ancient, pre-RFC4419 and undocumented
1220 SSH2_MSG_KEX_DH_GEX_REQUEST_OLD message; ok markus@ deraadt@ "seems
1221 reasonable" dtucker@
1222
1223commit d8f391caef62378463a0e6b36f940170dadfe605
1224Author: dtucker@openbsd.org <dtucker@openbsd.org>
1225Date: Fri Apr 10 05:16:50 2015 +0000
1226
1227 upstream commit
1228
1229 Don't send hostkey advertisments
1230 (hostkeys-00@openssh.com) to current versions of Tera Term as they can't
1231 handle them. Newer versions should be OK. Patch from Bryan Drewery and
1232 IWAMOTO Kouichi, ok djm@
1233
1234commit 2c2cfe1a1c97eb9a08cc9817fd0678209680c636
1235Author: djm@openbsd.org <djm@openbsd.org>
1236Date: Fri Apr 10 00:08:55 2015 +0000
1237
1238 upstream commit
1239
1240 include port number if a non-default one has been
1241 specified; based on patch from Michael Handler
1242
1243commit 4492a4f222da4cf1e8eab12689196322e27b08c4
1244Author: djm@openbsd.org <djm@openbsd.org>
1245Date: Tue Apr 7 23:00:42 2015 +0000
1246
1247 upstream commit
1248
1249 treat Protocol=1,2|2,1 as Protocol=2 when compiled
1250 without SSH1 support; ok dtucker@ millert@
1251
1252commit c265e2e6e932efc6d86f6cc885dea33637a67564
1253Author: miod@openbsd.org <miod@openbsd.org>
1254Date: Sun Apr 5 15:43:43 2015 +0000
1255
1256 upstream commit
1257
1258 Do not use int for sig_atomic_t; spotted by
1259 christos@netbsd; ok markus@
1260
1261commit e7bf3a5eda6a1b02bef6096fed78527ee11e54cc
1262Author: Darren Tucker <dtucker@zip.com.au>
1263Date: Tue Apr 7 10:48:04 2015 +1000
1264
1265 Use do{}while(0) for no-op functions.
1266
1267 From FreeBSD.
1268
1269commit bb99844abae2b6447272f79e7fa84134802eb4df
1270Author: Darren Tucker <dtucker@zip.com.au>
1271Date: Tue Apr 7 10:47:15 2015 +1000
1272
1273 Wrap blf.h include in ifdef. From FreeBSD.
1274
1275commit d9b9b43656091cf0ad55c122f08fadb07dad0abd
1276Author: Darren Tucker <dtucker@zip.com.au>
1277Date: Tue Apr 7 09:10:00 2015 +1000
1278
1279 Fix misspellings of regress CONFOPTS env variables.
1280
1281 Patch from Bryan Drewery.
1282
1283commit 3f4ea3c9ab1d32d43c9222c4351f58ca11144156
1284Author: djm@openbsd.org <djm@openbsd.org>
1285Date: Fri Apr 3 22:17:27 2015 +0000
1286
1287 upstream commit
1288
1289 correct return value in pubkey parsing, spotted by Ben Hawkes
1290 ok markus@
1291
1292commit 7da2be0cb9601ed25460c83aa4d44052b967ba0f
1293Author: djm@openbsd.org <djm@openbsd.org>
1294Date: Tue Mar 31 22:59:01 2015 +0000
1295
1296 upstream commit
1297
1298 adapt to recent hostfile.c change: when parsing
1299 known_hosts without fully parsing the keys therein, hostkeys_foreach() will
1300 now correctly identify KEY_RSA1 keys; ok markus@ miod@
1301
1302commit 9e1777a0d1c706714b055811c12ab8cc21033e4a
1303Author: markus@openbsd.org <markus@openbsd.org>
1304Date: Tue Mar 24 20:19:15 2015 +0000
1305
1306 upstream commit
1307
1308 use ${SSH} for -Q instead of installed ssh
1309
1310commit ce1b358ea414a2cc88e4430cd5a2ea7fecd9de57
1311Author: djm@openbsd.org <djm@openbsd.org>
1312Date: Mon Mar 16 22:46:14 2015 +0000
1313
1314 upstream commit
1315
1316 make CLEANFILES clean up more of the tests' droppings
1317
1318commit 398f9ef192d820b67beba01ec234d66faca65775
1319Author: djm@openbsd.org <djm@openbsd.org>
1320Date: Tue Mar 31 22:57:06 2015 +0000
1321
1322 upstream commit
1323
1324 downgrade error() for known_hosts parse errors to debug()
1325 to quiet warnings from ssh1 keys present when compiled !ssh1.
1326
1327 also identify ssh1 keys when scanning, even when compiled !ssh1
1328
1329 ok markus@ miod@
1330
1331commit 9a47ab80030a31f2d122b8fd95bd48c408b9fcd9
1332Author: djm@openbsd.org <djm@openbsd.org>
1333Date: Tue Mar 31 22:55:50 2015 +0000
1334
1335 upstream commit
1336
1337 fd leak for !ssh1 case; found by unittests; ok markus@
1338
1339commit c9a0805a6280681901c270755a7cd630d7c5280e
1340Author: djm@openbsd.org <djm@openbsd.org>
1341Date: Tue Mar 31 22:55:24 2015 +0000
1342
1343 upstream commit
1344
1345 don't fatal when a !ssh1 sshd is reexeced from a w/ssh1
1346 listener; reported by miod@; ok miod@ markus@
1347
1348commit 704d8c88988cae38fb755a6243b119731d223222
1349Author: tobias@openbsd.org <tobias@openbsd.org>
1350Date: Tue Mar 31 11:06:49 2015 +0000
1351
1352 upstream commit
1353
1354 Comments are only supported for RSA1 keys. If a user
1355 tried to add one and entered his passphrase, explicitly clear it before exit.
1356 This is done in all other error paths, too.
1357
1358 ok djm
1359
1360commit 78de1673c05ea2c33e0d4a4b64ecb5186b6ea2e9
1361Author: jmc@openbsd.org <jmc@openbsd.org>
1362Date: Mon Mar 30 18:28:37 2015 +0000
1363
1364 upstream commit
1365
1366 ssh-askpass(1) is the default, overridden by SSH_ASKPASS;
1367 diff originally from jiri b;
1368
1369commit 26e0bcf766fadb4a44fb6199386fb1dcab65ad00
1370Author: djm@openbsd.org <djm@openbsd.org>
1371Date: Mon Mar 30 00:00:29 2015 +0000
1372
1373 upstream commit
1374
1375 fix uninitialised memory read when parsing a config file
1376 consisting of a single nul byte. Found by hanno AT hboeck.de using AFL; ok
1377 dtucker
1378
1379commit fecede00a76fbb33a349f5121c0b2f9fbc04a777
1380Author: markus@openbsd.org <markus@openbsd.org>
1381Date: Thu Mar 26 19:32:19 2015 +0000
1382
1383 upstream commit
1384
1385 sigp and lenp are not optional in ssh_agent_sign(); ok
1386 djm@
1387
1388commit 1b0ef3813244c78669e6d4d54c624f600945327d
1389Author: naddy@openbsd.org <naddy@openbsd.org>
1390Date: Thu Mar 26 12:32:38 2015 +0000
1391
1392 upstream commit
1393
1394 don't try to load .ssh/identity by default if SSH1 is
1395 disabled; ok markus@
1396
1397commit f9b78852379b74a2d14e6fc94fe52af30b7e9c31
1398Author: djm@openbsd.org <djm@openbsd.org>
1399Date: Thu Mar 26 07:00:04 2015 +0000
1400
1401 upstream commit
1402
1403 ban all-zero curve25519 keys as recommended by latest
1404 CFRG curves draft; ok markus
1405
1406commit b8afbe2c1aaf573565e4da775261dfafc8b1ba9c
1407Author: djm@openbsd.org <djm@openbsd.org>
1408Date: Thu Mar 26 06:59:28 2015 +0000
1409
1410 upstream commit
1411
1412 relax bits needed check to allow
1413 diffie-hellman-group1-sha1 key exchange to complete for chacha20-poly1305 was
1414 selected as symmetric cipher; ok markus
1415
1416commit 47842f71e31da130555353c1d57a1e5a8937f1c0
1417Author: markus@openbsd.org <markus@openbsd.org>
1418Date: Wed Mar 25 19:29:58 2015 +0000
1419
1420 upstream commit
1421
1422 ignore v1 errors on ssh-add -D; only try v2 keys on
1423 -l/-L (unless WITH_SSH1) ok djm@
1424
1425commit 5f57e77f91bf2230c09eca96eb5ecec39e5f2da6
1426Author: markus@openbsd.org <markus@openbsd.org>
1427Date: Wed Mar 25 19:21:48 2015 +0000
1428
1429 upstream commit
1430
1431 unbreak ssh_agent_sign (lenp vs *lenp)
1432
1433commit 4daeb67181054f2a377677fac919ee8f9ed3490e
1434Author: markus@openbsd.org <markus@openbsd.org>
1435Date: Tue Mar 24 20:10:08 2015 +0000
1436
1437 upstream commit
1438
1439 don't leak 'setp' on error; noted by Nicholas Lemonias;
1440 ok djm@
1441
1442commit 7d4f96f9de2a18af0d9fa75ea89a4990de0344f5
1443Author: markus@openbsd.org <markus@openbsd.org>
1444Date: Tue Mar 24 20:09:11 2015 +0000
1445
1446 upstream commit
1447
1448 consistent check for NULL as noted by Nicholas
1449 Lemonias; ok djm@
1450
1451commit df100be51354e447d9345cf1ec22e6013c0eed50
1452Author: markus@openbsd.org <markus@openbsd.org>
1453Date: Tue Mar 24 20:03:44 2015 +0000
1454
1455 upstream commit
1456
1457 correct fmt-string for size_t as noted by Nicholas
1458 Lemonias; ok djm@
1459
1460commit a22b9ef21285e81775732436f7c84a27bd3f71e0
1461Author: djm@openbsd.org <djm@openbsd.org>
1462Date: Tue Mar 24 09:17:21 2015 +0000
1463
1464 upstream commit
1465
1466 promote chacha20-poly1305@openssh.com to be the default
1467 cipher; ok markus
1468
1469commit 2aa9da1a3b360cf7b13e96fe1521534b91501fb5
1470Author: djm@openbsd.org <djm@openbsd.org>
1471Date: Tue Mar 24 01:29:19 2015 +0000
1472
1473 upstream commit
1474
1475 Compile-time disable SSH protocol 1. You can turn it
1476 back on using the Makefile.inc knob if you need it to talk to ancient
1477 devices.
1478
1479commit 53097b2022154edf96b4e8526af5666f979503f7
1480Author: djm@openbsd.org <djm@openbsd.org>
1481Date: Tue Mar 24 01:11:12 2015 +0000
1482
1483 upstream commit
1484
1485 fix double-negative error message "ssh1 is not
1486 unsupported"
1487
1488commit 5c27e3b6ec2db711dfcd40e6359c0bcdd0b62ea9
1489Author: djm@openbsd.org <djm@openbsd.org>
1490Date: Mon Mar 23 06:06:38 2015 +0000
1491
1492 upstream commit
1493
1494 for ssh-keygen -A, don't try (and fail) to generate ssh
1495 v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled
1496 without OpenSSL based on patch by Mike Frysinger; bz#2369
1497
1498commit 725fd22a8c41db7de73a638539a5157b7e4424ae
1499Author: djm@openbsd.org <djm@openbsd.org>
1500Date: Wed Mar 18 01:44:21 2015 +0000
1501
1502 upstream commit
1503
1504 KRL support doesn't need OpenSSL anymore, remove #ifdefs
1505 from around call
1506
1507commit b07011c18e0b2e172c5fd09d21fb159a0bf5fcc7
1508Author: djm@openbsd.org <djm@openbsd.org>
1509Date: Mon Mar 16 11:09:52 2015 +0000
1510
1511 upstream commit
1512
1513 #if 0 some more arrays used only for decrypting (we don't
1514 use since we only need encrypt for AES-CTR)
1515
1516commit 1cb3016635898d287e9d58b50c430995652d5358
1517Author: jsg@openbsd.org <jsg@openbsd.org>
1518Date: Wed Mar 11 00:48:39 2015 +0000
1519
1520 upstream commit
1521
1522 add back the changes from rev 1.206, djm reverted this by
1523 mistake in rev 1.207
1524
1525commit 4d24b3b6a4a6383e05e7da26d183b79fa8663697
1526Author: Damien Miller <djm@mindrot.org>
1527Date: Fri Mar 20 09:11:59 2015 +1100
1528
1529 remove error() accidentally inserted for debugging
1530
1531 pointed out by Christian Hesse
1532
1533commit 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb
1534Author: Tim Rice <tim@multitalents.net>
1535Date: Mon Mar 16 22:49:20 2015 -0700
1536
1537 portability fix: Solaris systems may not have a grep that understands -q
1538
1539commit 8ef691f7d9ef500257a549d0906d78187490668f
1540Author: Damien Miller <djm@google.com>
1541Date: Wed Mar 11 10:35:26 2015 +1100
1542
1543 fix compile with clang
1544
1545commit 4df590cf8dc799e8986268d62019b487a8ed63ad
1546Author: Damien Miller <djm@google.com>
1547Date: Wed Mar 11 10:02:39 2015 +1100
1548
1549 make unit tests work for !OPENSSH_HAS_ECC
1550
1551commit 307bb40277ca2c32e97e61d70d1ed74b571fd6ba
1552Author: djm@openbsd.org <djm@openbsd.org>
1553Date: Sat Mar 7 04:41:48 2015 +0000
1554
1555 upstream commit
1556
1557 unbreak for w/SSH1 (default) case; ok markus@ deraadt@
1558
1559commit b44ee0c998fb4c5f3c3281f2398af5ce42840b6f
1560Author: Damien Miller <djm@mindrot.org>
1561Date: Thu Mar 5 18:39:20 2015 -0800
1562
1563 unbreak hostkeys test for w/ SSH1 case
1564
1565commit 55e5bdeb519cb60cc18b7ba0545be581fb8598b4
1566Author: djm@openbsd.org <djm@openbsd.org>
1567Date: Fri Mar 6 01:40:56 2015 +0000
1568
1569 upstream commit
1570
1571 fix sshkey_certify() return value for unsupported key types;
1572 ok markus@ deraadt@
1573
1574commit be8f658e550a434eac04256bfbc4289457a24e99
1575Author: Damien Miller <djm@mindrot.org>
1576Date: Wed Mar 4 15:38:03 2015 -0800
1577
1578 update version numbers to match version.h
1579
1580commit ac5e8acefa253eb5e5ba186e34236c0e8007afdc
1581Author: djm@openbsd.org <djm@openbsd.org>
1582Date: Wed Mar 4 23:22:35 2015 +0000
1583
1584 upstream commit
1585
1586 make these work with !SSH1; ok markus@ deraadt@
1587
1588commit 2f04af92f036b0c87a23efb259c37da98cd81fe6
1589Author: djm@openbsd.org <djm@openbsd.org>
1590Date: Wed Mar 4 21:12:59 2015 +0000
1591
1592 upstream commit
1593
1594 make ssh-add -D work with !SSH1 agent
1595
1596commit a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b
1597Author: Damien Miller <djm@mindrot.org>
1598Date: Wed Mar 4 00:55:48 2015 -0800
1599
1600 netcat needs poll.h portability goop
1601
1602commit dad2b1892b4c1b7e58df483a8c5b983c4454e099
1603Author: markus@openbsd.org <markus@openbsd.org>
1604Date: Tue Mar 3 22:35:19 2015 +0000
1605
1606 upstream commit
1607
1608 make it possible to run tests w/o ssh1 support; ok djm@
1609
1610commit d48a22601bdd3eec054794c535f4ae8d8ae4c6e2
1611Author: djm@openbsd.org <djm@openbsd.org>
1612Date: Wed Mar 4 18:53:53 2015 +0000
1613
1614 upstream commit
1615
1616 crank; ok markus, deraadt
1617
1618commit bbffb23daa0b002dd9f296e396a9ab8a5866b339
1619Author: Damien Miller <djm@mindrot.org>
1620Date: Tue Mar 3 13:50:27 2015 -0800
1621
1622 more --without-ssh1 fixes
1623
1624commit 6c2039286f503e2012a58a1d109e389016e7a99b
1625Author: Damien Miller <djm@mindrot.org>
1626Date: Tue Mar 3 13:48:48 2015 -0800
1627
1628 fix merge both that broke --without-ssh1 compile
1629
1630commit 111dfb225478a76f89ecbcd31e96eaf1311b59d3
1631Author: djm@openbsd.org <djm@openbsd.org>
1632Date: Tue Mar 3 21:21:13 2015 +0000
1633
1634 upstream commit
1635
1636 add SSH1 Makefile knob to make it easier to build without
1637 SSH1 support; ok markus@
1638
1639commit 3f7f5e6c5d2aa3f6710289c1a30119e534e56c5c
1640Author: djm@openbsd.org <djm@openbsd.org>
1641Date: Tue Mar 3 20:42:49 2015 +0000
1642
1643 upstream commit
1644
1645 expand __unused to full __attribute__ for better portability
1646
1647commit 2fab9b0f8720baf990c931e3f68babb0bf9949c6
1648Author: Damien Miller <djm@mindrot.org>
1649Date: Wed Mar 4 07:41:27 2015 +1100
1650
1651 avoid warning
1652
1653commit d1bc844322461f882b4fd2277ba9a8d4966573d2
1654Author: Damien Miller <djm@mindrot.org>
1655Date: Wed Mar 4 06:31:45 2015 +1100
1656
1657 Revert "define __unused to nothing if not already defined"
1658
1659 This reverts commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908.
1660
1661 Some system headers have objects named __unused
1662
1663commit 00797e86b2d98334d1bb808f65fa1fd47f328ff1
1664Author: Damien Miller <djm@mindrot.org>
1665Date: Wed Mar 4 05:02:45 2015 +1100
1666
1667 check for crypt and DES_crypt in openssl block
1668
1669 fixes builds on systems that use DES_crypt; based on patch
1670 from Roumen Petrov
1671
1672commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908
1673Author: Damien Miller <djm@mindrot.org>
1674Date: Wed Mar 4 04:59:13 2015 +1100
1675
1676 define __unused to nothing if not already defined
1677
1678 fixes builds on BSD/OS
1679
1680commit d608a51daad4f14ad6ab43d7cf74ef4801cc3fe9
1681Author: djm@openbsd.org <djm@openbsd.org>
1682Date: Tue Mar 3 17:53:40 2015 +0000
1683
1684 upstream commit
1685
1686 reorder logic for better portability; patch from Roumen
1687 Petrov
1688
1689commit 68d2dfc464fbcdf8d6387884260f9801f4352393
1690Author: djm@openbsd.org <djm@openbsd.org>
1691Date: Tue Mar 3 06:48:58 2015 +0000
1692
1693 upstream commit
1694
1695 Allow "ssh -Q protocol-version" to list supported SSH
1696 protocol versions. Useful for detecting builds without SSH v.1 support; idea
1697 and ok markus@
1698
1699commit 39e2f1229562e1195169905607bc12290d21f021
1700Author: millert@openbsd.org <millert@openbsd.org>
1701Date: Sun Mar 1 15:44:40 2015 +0000
1702
1703 upstream commit
1704
1705 Make sure we only call getnameinfo() for AF_INET or AF_INET6
1706 sockets. getpeername() of a Unix domain socket may return without error on
1707 some systems without actually setting ss_family so getnameinfo() was getting
1708 called with ss_family set to AF_UNSPEC. OK djm@
1709
1710commit e47536ba9692d271b8ad89078abdecf0a1c11707
1711Author: Damien Miller <djm@mindrot.org>
1712Date: Sat Feb 28 08:20:11 2015 -0800
1713
1714 portability fixes for regress/netcat.c
1715
1716 Mostly avoiding "err(1, NULL)"
1717
1718commit 02973ad5f6f49d8420e50a392331432b0396c100
1719Author: Damien Miller <djm@mindrot.org>
1720Date: Sat Feb 28 08:05:27 2015 -0800
1721
1722 twiddle another test for portability
1723
1724 from Tom G. Christensen
1725
1726commit f7f3116abf2a6e2f309ab096b08c58d19613e5d0
1727Author: Damien Miller <djm@mindrot.org>
1728Date: Fri Feb 27 15:52:49 2015 -0800
1729
1730 twiddle test for portability
1731
1732commit 1ad3a77cc9d5568f5437ff99d377aa7a41859b83
1733Author: Damien Miller <djm@mindrot.org>
1734Date: Thu Feb 26 20:33:22 2015 -0800
1735
1736 make regress/netcat.c fd passing (more) portable
1737
1738commit 9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea
1739Author: Damien Miller <djm@mindrot.org>
1740Date: Thu Feb 26 20:32:58 2015 -0800
1741
1742 create OBJ/valgrind-out before running unittests
1743
1744commit bd58853102cee739f0e115e6d4b5334332ab1442
1745Author: Damien Miller <djm@mindrot.org>
1746Date: Wed Feb 25 16:58:22 2015 -0800
1747
1748 valgrind support
1749
1750commit f43d17269194761eded9e89f17456332f4c83824
1751Author: djm@openbsd.org <djm@openbsd.org>
1752Date: Thu Feb 26 20:45:47 2015 +0000
1753
1754 upstream commit
1755
1756 don't printf NULL key comments; reported by Tom Christensen
1757
1758commit 6e6458b476ec854db33e3e68ebf4f489d0ab3df8
1759Author: djm@openbsd.org <djm@openbsd.org>
1760Date: Wed Feb 25 23:05:47 2015 +0000
1761
1762 upstream commit
1763
1764 zero cmsgbuf before use; we initialise the bits we use
1765 but valgrind still spams warning on it
1766
1767commit a63cfa26864b93ab6afefad0b630e5358ed8edfa
1768Author: djm@openbsd.org <djm@openbsd.org>
1769Date: Wed Feb 25 19:54:02 2015 +0000
1770
1771 upstream commit
1772
1773 fix small memory leak when UpdateHostkeys=no
1774
1775commit e6b950341dd75baa8526f1862bca39e52f5b879b
1776Author: Tim Rice <tim@multitalents.net>
1777Date: Wed Feb 25 09:56:48 2015 -0800
1778
1779 Revert "Work around finicky USL linker so netcat will build."
1780
1781 This reverts commit d1db656021d0cd8c001a6692f772f1de29b67c8b.
1782
1783 No longer needed with commit 678e473e2af2e4802f24dd913985864d9ead7fb3
1784
1785commit 6f621603f9cff2a5d6016a404c96cb2f8ac2dec0
1786Author: djm@openbsd.org <djm@openbsd.org>
1787Date: Wed Feb 25 17:29:38 2015 +0000
1788
1789 upstream commit
1790
1791 don't leak validity of user in "too many authentication
1792 failures" disconnect message; reported by Sebastian Reitenbach
1793
1794commit 6288e3a935494df12519164f52ca5c8c65fc3ca5
1795Author: naddy@openbsd.org <naddy@openbsd.org>
1796Date: Tue Feb 24 15:24:05 2015 +0000
1797
1798 upstream commit
1799
1800 add -v (show ASCII art) to -l's synopsis; ok djm@
1801
1802commit 678e473e2af2e4802f24dd913985864d9ead7fb3
1803Author: Darren Tucker <dtucker@zip.com.au>
1804Date: Thu Feb 26 04:12:58 2015 +1100
1805
1806 Remove dependency on xmalloc.
1807
1808 Remove ssh_get_progname's dependency on xmalloc, which should reduce
1809 link order problems. ok djm@
1810
1811commit 5d5ec165c5b614b03678afdad881f10e25832e46
1812Author: Darren Tucker <dtucker@zip.com.au>
1813Date: Wed Feb 25 15:32:49 2015 +1100
1814
1815 Restrict ECDSA and ECDH tests.
1816
1817 ifdef out some more ECDSA and ECDH tests when built against an OpenSSL
1818 that does not have eliptic curve functionality.
1819
1820commit 1734e276d99b17e92d4233fac7aef3a3180aaca7
1821Author: Darren Tucker <dtucker@zip.com.au>
1822Date: Wed Feb 25 13:40:45 2015 +1100
1823
1824 Move definition of _NSIG.
1825
1826 _NSIG is only unsed in one file, so move it there prevent redefinition
1827 warnings reported by Kevin Brott.
1828
1829commit a47ead7c95cfbeb72721066c4da2312e5b1b9f3d
1830Author: Darren Tucker <dtucker@zip.com.au>
1831Date: Wed Feb 25 13:17:40 2015 +1100
1832
1833 Add includes.h for compatibility stuff.
1834
1835commit 38806bda6d2e48ad32812b461eebe17672ada771
1836Author: Damien Miller <djm@mindrot.org>
1837Date: Tue Feb 24 16:50:06 2015 -0800
1838
1839 include netdb.h to look for MAXHOSTNAMELEN; ok tim
1840
1841commit d1db656021d0cd8c001a6692f772f1de29b67c8b
1842Author: Tim Rice <tim@multitalents.net>
1843Date: Tue Feb 24 10:42:08 2015 -0800
1844
1845 Work around finicky USL linker so netcat will build.
1846
1847commit cb030ce25f555737e8ba97bdd7883ac43f3ff2a3
1848Author: Damien Miller <djm@mindrot.org>
1849Date: Tue Feb 24 09:23:04 2015 -0800
1850
1851 include includes.h to avoid build failure on AIX
1852
1853commit 13af342458f5064144abbb07e5ac9bbd4eb42567
1854Author: Tim Rice <tim@multitalents.net>
1855Date: Tue Feb 24 07:56:47 2015 -0800
1856
1857 Original portability patch from djm@ for platforms missing err.h.
1858 Fix name space clash on Solaris 10. Still more to do for Solaris 10
1859 to deal with msghdr structure differences. ok djm@
1860
1861commit 910209203d0cd60c5083901cbcc0b7b44d9f48d2
1862Author: Tim Rice <tim@multitalents.net>
1863Date: Mon Feb 23 22:06:56 2015 -0800
1864
1865 cleaner way fix dispatch.h portion of commit
1866 a88dd1da119052870bb2654c1a32c51971eade16
1867 (some systems have sig_atomic_t in signal.h, some in sys/signal.h)
1868 Sounds good to me djm@
1869
1870commit 676c38d7cbe65b76bbfff796861bb6615cc6a596
1871Author: Tim Rice <tim@multitalents.net>
1872Date: Mon Feb 23 21:51:33 2015 -0800
1873
1874 portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
1875
1876commit 1221b22023dce38cbc90ba77eae4c5d78c77a5e6
1877Author: Tim Rice <tim@multitalents.net>
1878Date: Mon Feb 23 21:50:34 2015 -0800
1879
1880 portablity fix: s/__inline__/inline/
1881
1882commit 4c356308a88d309c796325bb75dce90ca16591d5
1883Author: Darren Tucker <dtucker@zip.com.au>
1884Date: Tue Feb 24 13:49:31 2015 +1100
1885
1886 Wrap stdint.h includes in HAVE_STDINT_H.
1887
1888commit c9c88355c6a27a908e7d1e5003a2b35ea99c1614
1889Author: Darren Tucker <dtucker@zip.com.au>
1890Date: Tue Feb 24 13:43:57 2015 +1100
1891
1892 Add AI_NUMERICSERV to fake-rfc2553.
1893
1894 Our getaddrinfo implementation always returns numeric values already.
1895
1896commit ef342ab1ce6fb9a4b30186c89c309d0ae9d0eeb4
1897Author: Darren Tucker <dtucker@zip.com.au>
1898Date: Tue Feb 24 13:39:57 2015 +1100
1899
1900 Include OpenSSL's objects.h before bn.h.
1901
1902 Prevents compile errors on some platforms (at least old GCCs and AIX's
1903 XLC compilers).
1904
1905commit dcc8997d116f615195aa7c9ec019fb36c28c6228
1906Author: Darren Tucker <dtucker@zip.com.au>
1907Date: Tue Feb 24 12:30:59 2015 +1100
1908
1909 Convert two macros into functions.
1910
1911 Convert packet_send_debug and packet_disconnect from macros to
1912 functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with
1913 variadic macros with only one argument so we convert these two into
1914 functions. ok djm@
1915
1916commit 2285c30d51b7e2052c6526445abe7e7cc7e170a1
1917Author: djm@openbsd.org <djm@openbsd.org>
1918Date: Mon Feb 23 22:21:21 2015 +0000
1919
1920 upstream commit
1921
1922 further silence spurious error message even when -v is
1923 specified (e.g. to get visual host keys); reported by naddy@
1924
1925commit 9af21979c00652029e160295e988dea40758ece2
1926Author: Damien Miller <djm@mindrot.org>
1927Date: Tue Feb 24 09:04:32 2015 +1100
1928
1929 don't include stdint.h unless HAVE_STDINT_H set
1930
1931commit 62f678dd51660d6f8aee1da33d3222c5de10a89e
1932Author: Damien Miller <djm@mindrot.org>
1933Date: Tue Feb 24 09:02:54 2015 +1100
1934
1935 nother sys/queue.h -> sys-queue.h fix
1936
1937 spotted by Tom Christensen
1938
1939commit b3c19151cba2c0ed01b27f55de0d723ad07ca98f
1940Author: djm@openbsd.org <djm@openbsd.org>
1941Date: Mon Feb 23 20:32:15 2015 +0000
1942
1943 upstream commit
1944
1945 fix a race condition by using a mux socket rather than an
1946 ineffectual wait statement
1947
1948commit a88dd1da119052870bb2654c1a32c51971eade16
1949Author: Damien Miller <djm@mindrot.org>
1950Date: Tue Feb 24 06:30:29 2015 +1100
1951
1952 various include fixes for portable
1953
1954commit 5248429b5ec524d0a65507cff0cdd6e0cb99effd
1955Author: djm@openbsd.org <djm@openbsd.org>
1956Date: Mon Feb 23 16:55:51 2015 +0000
1957
1958 upstream commit
1959
1960 add an XXX to remind me to improve sshkey_load_public
1961
1962commit e94e4b07ef2eaead38b085a60535df9981cdbcdb
1963Author: djm@openbsd.org <djm@openbsd.org>
1964Date: Mon Feb 23 16:55:31 2015 +0000
1965
1966 upstream commit
1967
1968 silence a spurious error message when listing
1969 fingerprints for known_hosts; bz#2342
1970
1971commit f2293a65392b54ac721f66bc0b44462e8d1d81f8
1972Author: djm@openbsd.org <djm@openbsd.org>
1973Date: Mon Feb 23 16:33:25 2015 +0000
1974
1975 upstream commit
1976
1977 fix setting/clearing of TTY raw mode around
1978 UpdateHostKeys=ask confirmation question; reported by Herb Goldman
1979
1980commit f2004cd1adf34492eae0a44b1ef84e0e31b06088
1981Author: Darren Tucker <dtucker@zip.com.au>
1982Date: Mon Feb 23 05:04:21 2015 +1100
1983
1984 Repair for non-ECC OpenSSL.
1985
1986 Ifdef out the ECC parts when building with an OpenSSL that doesn't have
1987 it.
1988
1989commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f
1990Author: Darren Tucker <dtucker@zip.com.au>
1991Date: Mon Feb 23 03:07:24 2015 +1100
1992
1993 Wrap stdint.h includes in ifdefs.
1994
1995commit f81f1bbc5b892c8614ea740b1f92735652eb43f0
1996Author: Tim Rice <tim@multitalents.net>
1997Date: Sat Feb 21 18:12:10 2015 -0800
1998
1999 out of tree build fix
2000
2001commit 2e13a1e4d22f3b503c3bfc878562cc7386a1d1ae
2002Author: Tim Rice <tim@multitalents.net>
2003Date: Sat Feb 21 18:08:51 2015 -0800
2004
2005 mkdir kex unit test directory so testing out of tree builds works
2006
2007commit 1797f49b1ba31e8700231cd6b1d512d80bb50d2c
2008Author: halex@openbsd.org <halex@openbsd.org>
2009Date: Sat Feb 21 21:46:57 2015 +0000
2010
2011 upstream commit
2012
2013 make "ssh-add -d" properly remove a corresponding
2014 certificate, and also not whine and fail if there is none
2015
2016 ok djm@
2017
2018commit 7faaa32da83a609059d95dbfcb0649fdb04caaf6
2019Author: Damien Miller <djm@mindrot.org>
2020Date: Sun Feb 22 07:57:27 2015 +1100
2021
2022 mkdir hostkey and bitmap unit test directories
2023
2024commit bd49da2ef197efac5e38f5399263a8b47990c538
2025Author: djm@openbsd.org <djm@openbsd.org>
2026Date: Fri Feb 20 23:46:01 2015 +0000
2027
2028 upstream commit
2029
2030 sort options useable under Match case-insensitively; prodded
2031 jmc@
2032
2033commit 1a779a0dd6cd8b4a1a40ea33b5415ab8408128ac
2034Author: djm@openbsd.org <djm@openbsd.org>
2035Date: Sat Feb 21 20:51:02 2015 +0000
2036
2037 upstream commit
2038
2039 correct paths to configuration files being written/updated;
2040 they live in $OBJ not cwd; some by Roumen Petrov
2041
2042commit 28ba006c1acddff992ae946d0bc0b500b531ba6b
2043Author: Darren Tucker <dtucker@zip.com.au>
2044Date: Sat Feb 21 15:41:07 2015 +1100
2045
2046 More correct checking of HAVE_DECL_AI_NUMERICSERV.
2047
2048commit e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54
2049Author: Darren Tucker <dtucker@zip.com.au>
2050Date: Sat Feb 21 15:10:33 2015 +1100
2051
2052 Add null declaration of AI_NUMERICINFO.
2053
2054 Some platforms (older FreeBSD and DragonFly versions) do have
2055 getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
2056 in those cases.
2057
2058commit 18a208d6a460d707a45916db63a571e805f5db46
2059Author: djm@openbsd.org <djm@openbsd.org>
2060Date: Fri Feb 20 22:40:32 2015 +0000
2061
2062 upstream commit
2063
2064 more options that are available under Match; bz#2353 reported
2065 by calestyo AT scientia.net
2066
2067commit 44732de06884238049f285f1455b2181baa7dc82
2068Author: djm@openbsd.org <djm@openbsd.org>
2069Date: Fri Feb 20 22:17:21 2015 +0000
2070
2071 upstream commit
2072
2073 UpdateHostKeys fixes:
2074
2075 I accidentally changed the format of the hostkeys@openssh.com messages
2076 last week without changing the extension name, and this has been causing
2077 connection failures for people who are running -current. First reported
2078 by sthen@
2079
2080 s/hostkeys@openssh.com/hostkeys-00@openssh.com/
2081 Change the name of the proof message too, and reorder it a little.
2082
2083 Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
2084 available to read the response) so disable UpdateHostKeys if it is in
2085 ask mode and ControlPersist is active (and document this)
2086
2087commit 13a39414d25646f93e6d355521d832a03aaaffe2
2088Author: djm@openbsd.org <djm@openbsd.org>
2089Date: Tue Feb 17 00:14:05 2015 +0000
2090
2091 upstream commit
2092
2093 Regression: I broke logging of public key fingerprints in
2094 1.46. Pointed out by Pontus Lundkvist
2095
2096commit 773dda25e828c4c9a52f7bdce6e1e5924157beab
2097Author: Damien Miller <djm@mindrot.org>
2098Date: Fri Jan 30 23:10:17 2015 +1100
2099
2100 repair --without-openssl; broken in refactor
2101
2102commit e89c780886b23600de1e1c8d74aabd1ff61f43f0
2103Author: Damien Miller <djm@google.com>
2104Date: Tue Feb 17 10:04:55 2015 +1100
2105
2106 hook up hostkeys unittest to portable Makefiles
2107
2108commit 0abf41f99aa16ff09b263bead242d6cb2dbbcf99
2109Author: djm@openbsd.org <djm@openbsd.org>
2110Date: Mon Feb 16 22:21:03 2015 +0000
2111
2112 upstream commit
2113
2114 enable hostkeys unit tests
2115
2116commit 68a5d647ccf0fb6782b2f749433a1eee5bc9044b
2117Author: djm@openbsd.org <djm@openbsd.org>
2118Date: Mon Feb 16 22:20:50 2015 +0000
2119
2120 upstream commit
2121
2122 check string/memory compare arguments aren't NULL
2123
2124commit ef575ef20d09f20722e26b45dab80b3620469687
2125Author: djm@openbsd.org <djm@openbsd.org>
2126Date: Mon Feb 16 22:18:34 2015 +0000
2127
2128 upstream commit
2129
2130 unit tests for hostfile.c code, just hostkeys_foreach so
2131 far
2132
2133commit 8ea3365e6aa2759ccf5c76eaea62cbc8a280b0e7
2134Author: markus@openbsd.org <markus@openbsd.org>
2135Date: Sat Feb 14 12:43:16 2015 +0000
2136
2137 upstream commit
2138
2139 test server rekey limit
2140
2141commit ce63c4b063c39b2b22d4ada449c9e3fbde788cb3
2142Author: djm@openbsd.org <djm@openbsd.org>
2143Date: Mon Feb 16 22:30:03 2015 +0000
2144
2145 upstream commit
2146
2147 partial backout of:
2148
2149 revision 1.441
2150 date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid
2151 : x8klYPZMJSrVlt3O;
2152 Let sshd load public host keys even when private keys are missing.
2153 Allows sshd to advertise additional keys for future key rotation.
2154 Also log fingerprint of hostkeys loaded; ok markus@
2155
2156 hostkey updates now require access to the private key, so we can't
2157 load public keys only. The improved log messages (fingerprints of keys
2158 loaded) are kept.
2159
2160commit 523463a3a2a9bfc6cfc5afa01bae9147f76a37cc
2161Author: djm@openbsd.org <djm@openbsd.org>
2162Date: Mon Feb 16 22:13:32 2015 +0000
2163
2164 upstream commit
2165
2166 Revise hostkeys@openssh.com hostkey learning extension.
2167
2168 The client will not ask the server to prove ownership of the private
2169 halves of any hitherto-unseen hostkeys it offers to the client.
2170
2171 Allow UpdateHostKeys option to take an 'ask' argument to let the
2172 user manually review keys offered.
2173
2174 ok markus@
2175
2176commit 6c5c949782d86a6e7d58006599c7685bfcd01685
2177Author: djm@openbsd.org <djm@openbsd.org>
2178Date: Mon Feb 16 22:08:57 2015 +0000
2179
2180 upstream commit
2181
2182 Refactor hostkeys_foreach() and dependent code Deal with
2183 IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing
2184 changed ok markus@ as part of larger commit
2185
2186commit 51b082ccbe633dc970df1d1f4c9c0497115fe721
2187Author: miod@openbsd.org <miod@openbsd.org>
2188Date: Mon Feb 16 18:26:26 2015 +0000
2189
2190 upstream commit
2191
2192 Declare ge25519_base as extern, to prevent it from
2193 becoming a common. Gets us rid of ``lignment 4 of symbol
2194 `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in
2195 mod_ed25519.o'' warnings at link time.
2196
2197commit 02db468bf7e3281a8e3c058ced571b38b6407c34
2198Author: markus@openbsd.org <markus@openbsd.org>
2199Date: Fri Feb 13 18:57:00 2015 +0000
2200
2201 upstream commit
2202
2203 make rekey_limit for sshd w/privsep work; ok djm@
2204 dtucker@
2205
2206commit 8ec67d505bd23c8bf9e17b7a364b563a07a58ec8
2207Author: dtucker@openbsd.org <dtucker@openbsd.org>
2208Date: Thu Feb 12 20:34:19 2015 +0000
2209
2210 upstream commit
2211
2212 Prevent sshd spamming syslog with
2213 "ssh_dispatch_run_fatal: disconnected". ok markus@
2214
2215commit d4c0295d1afc342057ba358237acad6be8af480b
2216Author: djm@openbsd.org <djm@openbsd.org>
2217Date: Wed Feb 11 01:20:38 2015 +0000
2218
2219 upstream commit
2220
2221 Some packet error messages show the address of the peer,
2222 but might be generated after the socket to the peer has suffered a TCP reset.
2223 In these cases, getpeername() won't work so cache the address earlier.
2224
2225 spotted in the wild via deraadt@ and tedu@
2226
2227commit 4af1709cf774475ce5d1bc3ddcc165f6c222897d
2228Author: jsg@openbsd.org <jsg@openbsd.org>
2229Date: Mon Feb 9 23:22:37 2015 +0000
2230
2231 upstream commit
2232
2233 fix some leaks in error paths ok markus@
2234
2235commit fd36834871d06a03e1ff8d69e41992efa1bbf85f
2236Author: millert@openbsd.org <millert@openbsd.org>
2237Date: Fri Feb 6 23:21:59 2015 +0000
2238
2239 upstream commit
2240
2241 SIZE_MAX is standard, we should be using it in preference to
2242 the obsolete SIZE_T_MAX. OK miod@ beck@
2243
2244commit 1910a286d7771eab84c0b047f31c0a17505236fa
2245Author: millert@openbsd.org <millert@openbsd.org>
2246Date: Thu Feb 5 12:59:57 2015 +0000
2247
2248 upstream commit
2249
2250 Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
2251
2252commit ce4f59b2405845584f45e0b3214760eb0008c06c
2253Author: deraadt@openbsd.org <deraadt@openbsd.org>
2254Date: Tue Feb 3 08:07:20 2015 +0000
2255
2256 upstream commit
2257
2258 missing ; djm and mlarkin really having great
2259 interactions recently
2260
2261commit 5d34aa94938abb12b877a25be51862757f25d54b
2262Author: halex@openbsd.org <halex@openbsd.org>
2263Date: Tue Feb 3 00:34:14 2015 +0000
2264
2265 upstream commit
2266
2267 slightly extend the passphrase prompt if running with -c
2268 in order to give the user a chance to notice if unintentionally running
2269 without it
2270
2271 wording tweak and ok djm@
2272
2273commit cb3bde373e80902c7d5d0db429f85068d19b2918
2274Author: djm@openbsd.org <djm@openbsd.org>
2275Date: Mon Feb 2 22:48:53 2015 +0000
2276
2277 upstream commit
2278
2279 handle PKCS#11 C_Login returning
2280 CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@
2281
2282commit 15ad750e5ec3cc69765b7eba1ce90060e7083399
2283Author: djm@openbsd.org <djm@openbsd.org>
2284Date: Mon Feb 2 07:41:40 2015 +0000
2285
2286 upstream commit
2287
2288 turn UpdateHostkeys off by default until I figure out
2289 mlarkin@'s warning message; requested by deraadt@
2290
2291commit 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9
2292Author: deraadt@openbsd.org <deraadt@openbsd.org>
2293Date: Mon Feb 2 01:57:44 2015 +0000
2294
2295 upstream commit
2296
2297 increasing encounters with difficult DNS setups in
2298 darknets has convinced me UseDNS off by default is better ok djm
2299
2300commit 6049a548a8a68ff0bbe581ab1748ea6a59ecdc38
2301Author: djm@openbsd.org <djm@openbsd.org>
2302Date: Sat Jan 31 20:30:05 2015 +0000
2303
2304 upstream commit
2305
2306 Let sshd load public host keys even when private keys are
2307 missing. Allows sshd to advertise additional keys for future key rotation.
2308 Also log fingerprint of hostkeys loaded; ok markus@
2309
2310commit 46347ed5968f582661e8a70a45f448e0179ca0ab
2311Author: djm@openbsd.org <djm@openbsd.org>
2312Date: Fri Jan 30 11:43:14 2015 +0000
2313
2314 upstream commit
2315
2316 Add a ssh_config HostbasedKeyType option to control which
2317 host public key types are tried during hostbased authentication.
2318
2319 This may be used to prevent too many keys being sent to the server,
2320 and blowing past its MaxAuthTries limit.
2321
2322 bz#2211 based on patch by Iain Morgan; ok markus@
2323
2324commit 802660cb70453fa4d230cb0233bc1bbdf8328de1
2325Author: djm@openbsd.org <djm@openbsd.org>
2326Date: Fri Jan 30 10:44:49 2015 +0000
2327
2328 upstream commit
2329
2330 set a timeout to prevent hangs when talking to busted
2331 servers; ok markus@
2332
2333commit 86936ec245a15c7abe71a0722610998b0a28b194
2334Author: djm@openbsd.org <djm@openbsd.org>
2335Date: Fri Jan 30 01:11:39 2015 +0000
2336
2337 upstream commit
2338
2339 regression test for 'wildcard CA' serial/key ID revocations
2340
2341commit 4509b5d4a4fa645a022635bfa7e86d09b285001f
2342Author: djm@openbsd.org <djm@openbsd.org>
2343Date: Fri Jan 30 01:13:33 2015 +0000
2344
2345 upstream commit
2346
2347 avoid more fatal/exit in the packet.c paths that
2348 ssh-keyscan uses; feedback and "looks good" markus@
2349
2350commit 669aee994348468af8b4b2ebd29b602cf2860b22
2351Author: djm@openbsd.org <djm@openbsd.org>
2352Date: Fri Jan 30 01:10:33 2015 +0000
2353
2354 upstream commit
2355
2356 permit KRLs that revoke certificates by serial number or
2357 key ID without scoping to a particular CA; ok markus@
2358
2359commit 7a2c368477e26575d0866247d3313da4256cb2b5
2360Author: djm@openbsd.org <djm@openbsd.org>
2361Date: Fri Jan 30 00:59:19 2015 +0000
2362
2363 upstream commit
2364
2365 missing parentheses after if in do_convert_from() broke
2366 private key conversion from other formats some time in 2010; bz#2345 reported
2367 by jjelen AT redhat.com
2368
2369commit 25f5f78d8bf5c22d9cea8b49de24ebeee648a355
2370Author: djm@openbsd.org <djm@openbsd.org>
2371Date: Fri Jan 30 00:22:25 2015 +0000
2372
2373 upstream commit
2374
2375 fix ssh protocol 1, spotted by miod@
2376
2377commit 9ce86c926dfa6e0635161b035e3944e611cbccf0
2378Author: djm@openbsd.org <djm@openbsd.org>
2379Date: Wed Jan 28 22:36:00 2015 +0000
2380
2381 upstream commit
2382
2383 update to new API (key_fingerprint => sshkey_fingerprint)
2384 check sshkey_fingerprint return values; ok markus
2385
2386commit 9125525c37bf73ad3ee4025520889d2ce9d10f29
2387Author: djm@openbsd.org <djm@openbsd.org>
2388Date: Wed Jan 28 22:05:31 2015 +0000
2389
2390 upstream commit
2391
2392 avoid fatal() calls in packet code makes ssh-keyscan more
2393 reliable against server failures ok dtucker@ markus@
2394
2395commit fae7bbe544cba7a9e5e4ab47ff6faa3d978646eb
2396Author: djm@openbsd.org <djm@openbsd.org>
2397Date: Wed Jan 28 21:15:47 2015 +0000
2398
2399 upstream commit
2400
2401 avoid fatal() calls in packet code makes ssh-keyscan more
2402 reliable against server failures ok dtucker@ markus@
2403
2404commit 1a3d14f6b44a494037c7deab485abe6496bf2c60
2405Author: djm@openbsd.org <djm@openbsd.org>
2406Date: Wed Jan 28 11:07:25 2015 +0000
2407
2408 upstream commit
2409
2410 remove obsolete comment
2411
2412commit 80c25b7bc0a71d75c43a4575d9a1336f589eb639
2413Author: okan@openbsd.org <okan@openbsd.org>
2414Date: Tue Jan 27 12:54:06 2015 +0000
2415
2416 upstream commit
2417
2418 Since r1.2 removed the use of PRI* macros, inttypes.h is
2419 no longer required.
2420
2421 ok djm@
2422
2423commit 69ff64f69615c2a21c97cb5878a0996c21423257
2424Author: Damien Miller <djm@mindrot.org>
2425Date: Tue Jan 27 23:07:43 2015 +1100
2426
2427 compile on systems without TCP_MD5SIG (e.g. OSX)
2428
2429commit 358964f3082fb90b2ae15bcab07b6105cfad5a43
2430Author: Damien Miller <djm@mindrot.org>
2431Date: Tue Jan 27 23:07:25 2015 +1100
2432
2433 use ssh-keygen under test rather than system's
2434
2435commit a2c95c1bf33ea53038324d1fdd774bc953f98236
2436Author: Damien Miller <djm@mindrot.org>
2437Date: Tue Jan 27 23:06:59 2015 +1100
2438
2439 OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
2440
2441commit ade31d7b6f608a19b85bee29a7a00b1e636a2919
2442Author: Damien Miller <djm@mindrot.org>
2443Date: Tue Jan 27 23:06:23 2015 +1100
2444
2445 these need active_state defined to link on OSX
2446
2447 temporary measure until active_state goes away entirely
2448
2449commit e56aa87502f22c5844918c10190e8b4f785f067b
2450Author: djm@openbsd.org <djm@openbsd.org>
2451Date: Tue Jan 27 12:01:36 2015 +0000
2452
2453 upstream commit
2454
2455 use printf instead of echo -n to reduce diff against
2456 -portable
2457
2458commit 9f7637f56eddfaf62ce3c0af89c25480f2cf1068
2459Author: jmc@openbsd.org <jmc@openbsd.org>
2460Date: Mon Jan 26 13:55:29 2015 +0000
2461
2462 upstream commit
2463
2464 sort previous;
2465
2466commit 3076ee7d530d5b16842fac7a6229706c7e5acd26
2467Author: djm@openbsd.org <djm@openbsd.org>
2468Date: Mon Jan 26 13:36:53 2015 +0000
2469
2470 upstream commit
2471
2472 properly restore umask
2473
2474commit d411d395556b73ba1b9e451516a0bd6697c4b03d
2475Author: djm@openbsd.org <djm@openbsd.org>
2476Date: Mon Jan 26 06:12:18 2015 +0000
2477
2478 upstream commit
2479
2480 regression test for host key rotation
2481
2482commit fe8a3a51699afbc6407a8fae59b73349d01e49f8
2483Author: djm@openbsd.org <djm@openbsd.org>
2484Date: Mon Jan 26 06:11:28 2015 +0000
2485
2486 upstream commit
2487
2488 adapt to sshkey API tweaks
2489
2490commit 7dd355fb1f0038a3d5cdca57ebab4356c7a5b434
2491Author: miod@openbsd.org <miod@openbsd.org>
2492Date: Sat Jan 24 10:39:21 2015 +0000
2493
2494 upstream commit
2495
2496 Move -lz late in the linker commandline for things to
2497 build on static arches.
2498
2499commit 0dad3b806fddb93c475b30853b9be1a25d673a33
2500Author: miod@openbsd.org <miod@openbsd.org>
2501Date: Fri Jan 23 21:21:23 2015 +0000
2502
2503 upstream commit
2504
2505 -Wpointer-sign is supported by gcc 4 only.
2506
2507commit 2b3b1c1e4bd9577b6e780c255c278542ea66c098
2508Author: djm@openbsd.org <djm@openbsd.org>
2509Date: Tue Jan 20 22:58:57 2015 +0000
2510
2511 upstream commit
2512
2513 use SUBDIR to recuse into unit tests; makes "make obj"
2514 actually work
2515
2516commit 1d1092bff8db27080155541212b420703f8b9c92
2517Author: djm@openbsd.org <djm@openbsd.org>
2518Date: Mon Jan 26 12:16:36 2015 +0000
2519
2520 upstream commit
2521
2522 correct description of UpdateHostKeys in ssh_config.5 and
2523 add it to -o lists for ssh, scp and sftp; pointed out by jmc@
2524
2525commit 5104db7cbd6cdd9c5971f4358e74414862fc1022
2526Author: djm@openbsd.org <djm@openbsd.org>
2527Date: Mon Jan 26 06:10:03 2015 +0000
2528
2529 upstream commit
2530
2531 correctly match ECDSA subtype (== curve) for
2532 offered/recevied host keys. Fixes connection-killing host key mismatches when
2533 a server offers multiple ECDSA keys with different curve type (an extremely
2534 unlikely configuration).
2535
2536 ok markus, "looks mechanical" deraadt@
2537
2538commit 8d4f87258f31cb6def9b3b55b6a7321d84728ff2
2539Author: djm@openbsd.org <djm@openbsd.org>
2540Date: Mon Jan 26 03:04:45 2015 +0000
2541
2542 upstream commit
2543
2544 Host key rotation support.
2545
2546 Add a hostkeys@openssh.com protocol extension (global request) for
2547 a server to inform a client of all its available host key after
2548 authentication has completed. The client may record the keys in
2549 known_hosts, allowing it to upgrade to better host key algorithms
2550 and a server to gracefully rotate its keys.
2551
2552 The client side of this is controlled by a UpdateHostkeys config
2553 option (default on).
2554
2555 ok markus@
2556
2557commit 60b1825262b1f1e24fc72050b907189c92daf18e
2558Author: djm@openbsd.org <djm@openbsd.org>
2559Date: Mon Jan 26 02:59:11 2015 +0000
2560
2561 upstream commit
2562
2563 small refactor and add some convenience functions; ok
2564 markus
2565
2566commit a5a3e3328ddce91e76f71ff479022d53e35c60c9
2567Author: jmc@openbsd.org <jmc@openbsd.org>
2568Date: Thu Jan 22 21:00:42 2015 +0000
2569
2570 upstream commit
2571
2572 heirarchy -> hierarchy;
2573
2574commit dcff5810a11195c57e1b3343c0d6b6f2b9974c11
2575Author: deraadt@openbsd.org <deraadt@openbsd.org>
2576Date: Thu Jan 22 20:24:41 2015 +0000
2577
2578 upstream commit
2579
2580 Provide a warning about chroot misuses (which sadly, seem
2581 to have become quite popular because shiny). sshd cannot detect/manage/do
2582 anything about these cases, best we can do is warn in the right spot in the
2583 man page. ok markus
2584
2585commit 087266ec33c76fc8d54ac5a19efacf2f4a4ca076
2586Author: deraadt@openbsd.org <deraadt@openbsd.org>
2587Date: Tue Jan 20 23:14:00 2015 +0000
2588
2589 upstream commit
2590
2591 Reduce use of <sys/param.h> and transition to <limits.h>
2592 throughout. ok djm markus
2593
2594commit 57e783c8ba2c0797f93977e83b2a8644a03065d8
2595Author: markus@openbsd.org <markus@openbsd.org>
2596Date: Tue Jan 20 20:16:21 2015 +0000
2597
2598 upstream commit
2599
2600 kex_setup errors are fatal()
2601
2602commit 1d6424a6ff94633c221297ae8f42d54e12a20912
2603Author: djm@openbsd.org <djm@openbsd.org>
2604Date: Tue Jan 20 08:02:33 2015 +0000
2605
2606 upstream commit
2607
2608 this test would accidentally delete agent.sh if run without
2609 obj/
2610
2611commit 12b5f50777203e12575f1b08568281e447249ed3
2612Author: djm@openbsd.org <djm@openbsd.org>
2613Date: Tue Jan 20 07:56:44 2015 +0000
2614
2615 upstream commit
2616
2617 make this compile with KERBEROS5 enabled
2618
2619commit e2cc6bef08941256817d44d146115b3478586ad4
2620Author: djm@openbsd.org <djm@openbsd.org>
2621Date: Tue Jan 20 07:55:33 2015 +0000
2622
2623 upstream commit
2624
2625 fix hostkeys in agent; ok markus@
2626
2627commit 1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1
2628Author: Damien Miller <djm@mindrot.org>
2629Date: Tue Jan 20 10:11:31 2015 +1100
2630
2631 fix kex test
2632
2633commit c78a578107c7e6dcf5d30a2f34cb6581bef14029
2634Author: markus@openbsd.org <markus@openbsd.org>
2635Date: Mon Jan 19 20:45:25 2015 +0000
2636
2637 upstream commit
2638
2639 finally enable the KEX tests I wrote some years ago...
2640
2641commit 31821d7217e686667d04935aeec99e1fc4a46e7e
2642Author: markus@openbsd.org <markus@openbsd.org>
2643Date: Mon Jan 19 20:42:31 2015 +0000
2644
2645 upstream commit
2646
2647 adapt to new error message (SSH_ERR_MAC_INVALID)
2648
2649commit d3716ca19e510e95d956ae14d5b367e364bff7f1
2650Author: djm@openbsd.org <djm@openbsd.org>
2651Date: Mon Jan 19 17:31:13 2015 +0000
2652
2653 upstream commit
2654
2655 this test was broken in at least two ways, such that it
2656 wasn't checking that a KRL was not excluding valid keys
2657
2658commit 3f797653748e7c2b037dacb57574c01d9ef3b4d3
2659Author: markus@openbsd.org <markus@openbsd.org>
2660Date: Mon Jan 19 20:32:39 2015 +0000
2661
2662 upstream commit
2663
2664 switch ssh-keyscan from setjmp to multiple ssh transport
2665 layer instances ok djm@
2666
2667commit f582f0e917bb0017b00944783cd5f408bf4b0b5e
2668Author: markus@openbsd.org <markus@openbsd.org>
2669Date: Mon Jan 19 20:30:23 2015 +0000
2670
2671 upstream commit
2672
2673 add experimental api for packet layer; ok djm@
2674
2675commit 48b3b2ba75181f11fca7f327058a591f4426cade
2676Author: markus@openbsd.org <markus@openbsd.org>
2677Date: Mon Jan 19 20:20:20 2015 +0000
2678
2679 upstream commit
2680
2681 store compat flags in struct ssh; ok djm@
2682
2683commit 57d10cbe861a235dd269c74fb2fe248469ecee9d
2684Author: markus@openbsd.org <markus@openbsd.org>
2685Date: Mon Jan 19 20:16:15 2015 +0000
2686
2687 upstream commit
2688
2689 adapt kex to sshbuf and struct ssh; ok djm@
2690
2691commit 3fdc88a0def4f86aa88a5846ac079dc964c0546a
2692Author: markus@openbsd.org <markus@openbsd.org>
2693Date: Mon Jan 19 20:07:45 2015 +0000
2694
2695 upstream commit
2696
2697 move dispatch to struct ssh; ok djm@
2698
2699commit 091c302829210c41e7f57c3f094c7b9c054306f0
2700Author: markus@openbsd.org <markus@openbsd.org>
2701Date: Mon Jan 19 19:52:16 2015 +0000
2702
2703 upstream commit
2704
2705 update packet.c & isolate, introduce struct ssh a) switch
2706 packet.c to buffer api and isolate per-connection info into struct ssh b)
2707 (de)serialization of the state is moved from monitor to packet.c c) the old
2708 packet.c API is implemented in opacket.[ch] d) compress.c/h is removed and
2709 integrated into packet.c with and ok djm@
2710
2711commit 4e62cc68ce4ba20245d208b252e74e91d3785b74
2712Author: djm@openbsd.org <djm@openbsd.org>
2713Date: Mon Jan 19 17:35:48 2015 +0000
2714
2715 upstream commit
2716
2717 fix format strings in (disabled) debugging
2718
2719commit d85e06245907d49a2cd0cfa0abf59150ad616f42
2720Author: djm@openbsd.org <djm@openbsd.org>
2721Date: Mon Jan 19 06:01:32 2015 +0000
2722
2723 upstream commit
2724
2725 be a bit more careful in these tests to ensure that
2726 known_hosts is clean
2727
2728commit 7947810eab5fe0ad311f32a48f4d4eb1f71be6cf
2729Author: djm@openbsd.org <djm@openbsd.org>
2730Date: Sun Jan 18 22:00:18 2015 +0000
2731
2732 upstream commit
2733
2734 regression test for known_host file editing using
2735 ssh-keygen (-H / -R / -F) after hostkeys_foreach() change; feedback and ok
2736 markus@
2737
2738commit 3a2b09d147a565d8a47edf37491e149a02c0d3a3
2739Author: djm@openbsd.org <djm@openbsd.org>
2740Date: Sun Jan 18 19:54:46 2015 +0000
2741
2742 upstream commit
2743
2744 more and better key tests
2745
2746 test signatures and verification
2747 test certificate generation
2748 flesh out nested cert test
2749
2750 removes most of the XXX todo markers
2751
2752commit 589e69fd82724cfc9738f128e4771da2e6405d0d
2753Author: djm@openbsd.org <djm@openbsd.org>
2754Date: Sun Jan 18 19:53:58 2015 +0000
2755
2756 upstream commit
2757
2758 make the signature fuzzing test much more rigorous:
2759 ensure that the fuzzed input cases do not match the original (using new
2760 fuzz_matches_original() function) and check that the verification fails in
2761 each case
2762
2763commit 80603c0daa2538c349c1c152405580b164d5475f
2764Author: djm@openbsd.org <djm@openbsd.org>
2765Date: Sun Jan 18 19:52:44 2015 +0000
2766
2767 upstream commit
2768
2769 add a fuzz_matches_original() function to the fuzzer to
2770 detect fuzz cases that are identical to the original data. Hacky
2771 implementation, but very useful when you need the fuzz to be different, e.g.
2772 when verifying signature
2773
2774commit 87d5495bd337e358ad69c524fcb9495208c0750b
2775Author: djm@openbsd.org <djm@openbsd.org>
2776Date: Sun Jan 18 19:50:55 2015 +0000
2777
2778 upstream commit
2779
2780 better dumps from the fuzzer (shown on errors) -
2781 include the original data as well as the fuzzed copy.
2782
2783commit d59ec478c453a3fff05badbbfd96aa856364f2c2
2784Author: djm@openbsd.org <djm@openbsd.org>
2785Date: Sun Jan 18 19:47:55 2015 +0000
2786
2787 upstream commit
2788
2789 enable hostkey-agent.sh test
2790
2791commit 26b3425170bf840e4b095e1c10bf25a0a3e3a105
2792Author: djm@openbsd.org <djm@openbsd.org>
2793Date: Sat Jan 17 18:54:30 2015 +0000
2794
2795 upstream commit
2796
2797 unit test for hostkeys in ssh-agent
2798
2799commit 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2
2800Author: markus@openbsd.org <markus@openbsd.org>
2801Date: Thu Jan 15 23:41:29 2015 +0000
2802
2803 upstream commit
2804
2805 add kex unit tests
2806
2807commit d2099dec6da21ae627f6289aedae6bc1d41a22ce
2808Author: deraadt@openbsd.org <deraadt@openbsd.org>
2809Date: Mon Jan 19 00:32:54 2015 +0000
2810
2811 upstream commit
2812
2813 djm, your /usr/include tree is old
2814
2815commit 2b3c3c76c30dc5076fe09d590f5b26880f148a54
2816Author: djm@openbsd.org <djm@openbsd.org>
2817Date: Sun Jan 18 21:51:19 2015 +0000
2818
2819 upstream commit
2820
2821 some feedback from markus@: comment hostkeys_foreach()
2822 context and avoid a member in it.
2823
2824commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f
2825Author: djm@openbsd.org <djm@openbsd.org>
2826Date: Sun Jan 18 21:49:42 2015 +0000
2827
2828 upstream commit
2829
2830 make ssh-keygen use hostkeys_foreach(). Removes some
2831 horrendous code; ok markus@
2832
2833commit ec3d065df3a9557ea96b02d061fd821a18c1a0b9
2834Author: djm@openbsd.org <djm@openbsd.org>
2835Date: Sun Jan 18 21:48:09 2015 +0000
2836
2837 upstream commit
2838
2839 convert load_hostkeys() (hostkey ordering and
2840 known_host matching) to use the new hostkey_foreach() iterator; ok markus
2841
2842commit c29811cc480a260e42fd88849fc86a80c1e91038
2843Author: djm@openbsd.org <djm@openbsd.org>
2844Date: Sun Jan 18 21:40:23 2015 +0000
2845
2846 upstream commit
2847
2848 introduce hostkeys_foreach() to allow iteration over a
2849 known_hosts file or controlled subset thereof. This will allow us to pull out
2850 some ugly and duplicated code, and will be used to implement hostkey rotation
2851 later.
2852
2853 feedback and ok markus
2854
2855commit f101d8291da01bbbfd6fb8c569cfd0cc61c0d346
2856Author: deraadt@openbsd.org <deraadt@openbsd.org>
2857Date: Sun Jan 18 14:01:00 2015 +0000
2858
2859 upstream commit
2860
2861 string truncation due to sizeof(size) ok djm markus
2862
2863commit 35d6022b55b7969fc10c261cb6aa78cc4a5fcc41
2864Author: djm@openbsd.org <djm@openbsd.org>
2865Date: Sun Jan 18 13:33:34 2015 +0000
2866
2867 upstream commit
2868
2869 avoid trailing ',' in host key algorithms
2870
2871commit 7efb455789a0cb76bdcdee91c6060a3dc8f5c007
2872Author: djm@openbsd.org <djm@openbsd.org>
2873Date: Sun Jan 18 13:22:28 2015 +0000
2874
2875 upstream commit
2876
2877 infer key length correctly when user specified a fully-
2878 qualified key name instead of using the -b bits option; ok markus@
2879
2880commit 83f8ffa6a55ccd0ce9d8a205e3e7439ec18fedf5
2881Author: djm@openbsd.org <djm@openbsd.org>
2882Date: Sat Jan 17 18:53:34 2015 +0000
2883
2884 upstream commit
2885
2886 fix hostkeys on ssh agent; found by unit test I'm about
2887 to commit
2888
2889commit 369d61f17657b814124268f99c033e4dc6e436c1
2890Author: schwarze@openbsd.org <schwarze@openbsd.org>
2891Date: Fri Jan 16 16:20:23 2015 +0000
2892
2893 upstream commit
2894
2895 garbage collect empty .No macros mandoc warns about
2896
2897commit bb8b442d32dbdb8521d610e10d8b248d938bd747
2898Author: djm@openbsd.org <djm@openbsd.org>
2899Date: Fri Jan 16 15:55:07 2015 +0000
2900
2901 upstream commit
2902
2903 regression: incorrect error message on
2904 otherwise-successful ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@
2905
2906commit 9010902954a40b59d0bf3df3ccbc3140a653e2bc
2907Author: djm@openbsd.org <djm@openbsd.org>
2908Date: Fri Jan 16 07:19:48 2015 +0000
2909
2910 upstream commit
2911
2912 when hostname canonicalisation is enabled, try to parse
2913 hostnames as addresses before looking them up for canonicalisation. fixes
2914 bz#2074 and avoids needless DNS lookups in some cases; ok markus
2915
2916commit 2ae4f337b2a5fb2841b6b0053b49496fef844d1c
2917Author: deraadt@openbsd.org <deraadt@openbsd.org>
2918Date: Fri Jan 16 06:40:12 2015 +0000
2919
2920 upstream commit
2921
2922 Replace <sys/param.h> with <limits.h> and other less
2923 dirty headers where possible. Annotate <sys/param.h> lines with their
2924 current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1,
2925 LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of
2926 MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution.
2927 These are the files confirmed through binary verification. ok guenther,
2928 millert, doug (helped with the verification protocol)
2929
2930commit 3c4726f4c24118e8f1bb80bf75f1456c76df072c
2931Author: markus@openbsd.org <markus@openbsd.org>
2932Date: Thu Jan 15 21:38:50 2015 +0000
2933
2934 upstream commit
2935
2936 remove xmalloc, switch to sshbuf
2937
2938commit e17ac01f8b763e4b83976b9e521e90a280acc097
2939Author: markus@openbsd.org <markus@openbsd.org>
2940Date: Thu Jan 15 21:37:14 2015 +0000
2941
2942 upstream commit
2943
2944 switch to sshbuf
2945
2946commit ddef9995a1fa6c7a8ff3b38bfe6cf724bebf13d0
2947Author: naddy@openbsd.org <naddy@openbsd.org>
2948Date: Thu Jan 15 18:32:54 2015 +0000
2949
2950 upstream commit
2951
2952 handle UMAC128 initialization like UMAC; ok djm@ markus@
2953
2954commit f14564c1f7792446bca143580aef0e7ac25dcdae
2955Author: djm@openbsd.org <djm@openbsd.org>
2956Date: Thu Jan 15 11:04:36 2015 +0000
2957
2958 upstream commit
2959
2960 fix regression reported by brad@ for passworded keys without
2961 agent present
2962
2963commit 45c0fd70bb2a88061319dfff20cb12ef7b1bc47e
2964Author: Damien Miller <djm@mindrot.org>
2965Date: Thu Jan 15 22:08:23 2015 +1100
2966
2967 make bitmap test compile
2968
2969commit d333f89abf7179021e5c3f28673f469abe032062
2970Author: djm@openbsd.org <djm@openbsd.org>
2971Date: Thu Jan 15 07:36:28 2015 +0000
2972
2973 upstream commit
2974
2975 unit tests for KRL bitmap
2976
2977commit 7613f828f49c55ff356007ae9645038ab6682556
2978Author: markus@openbsd.org <markus@openbsd.org>
2979Date: Wed Jan 14 09:58:21 2015 +0000
2980
2981 upstream commit
2982
2983 re-add comment about full path
2984
2985commit 6c43b48b307c41cd656b415621a644074579a578
2986Author: markus@openbsd.org <markus@openbsd.org>
2987Date: Wed Jan 14 09:54:38 2015 +0000
2988
2989 upstream commit
2990
2991 don't reset to the installed sshd; connect before
2992 reconfigure, too
2993
2994commit 771bb47a1df8b69061f09462e78aa0b66cd594bf
2995Author: djm@openbsd.org <djm@openbsd.org>
2996Date: Tue Jan 13 14:51:51 2015 +0000
2997
2998 upstream commit
2999
3000 implement a SIGINFO handler so we can discern a stuck
3001 fuzz test from a merely glacial one; prompted by and ok markus
3002
3003commit cfaa57962f8536f3cf0fd7daf4d6a55d6f6de45f
3004Author: djm@openbsd.org <djm@openbsd.org>
3005Date: Tue Jan 13 08:23:26 2015 +0000
3006
3007 upstream commit
3008
3009 use $SSH instead of installed ssh to allow override;
3010 spotted by markus@
3011
3012commit 0920553d0aee117a596b03ed5b49b280d34a32c5
3013Author: djm@openbsd.org <djm@openbsd.org>
3014Date: Tue Jan 13 07:49:49 2015 +0000
3015
3016 upstream commit
3017
3018 regress test for PubkeyAcceptedKeyTypes; ok markus@
3019
3020commit 27ca1a5c0095eda151934bca39a77e391f875d17
3021Author: markus@openbsd.org <markus@openbsd.org>
3022Date: Mon Jan 12 20:13:27 2015 +0000
3023
3024 upstream commit
3025
3026 unbreak parsing of pubkey comments; with gerhard; ok
3027 djm/deraadt
3028
3029commit 55358f0b4e0b83bc0df81c5f854c91b11e0bb4dc
3030Author: djm@openbsd.org <djm@openbsd.org>
3031Date: Mon Jan 12 11:46:32 2015 +0000
3032
3033 upstream commit
3034
3035 fatal if soft-PKCS11 library is missing rather (rather
3036 than continue and fail with a more cryptic error)
3037
3038commit c3554cdd2a1a62434b8161017aa76fa09718a003
3039Author: djm@openbsd.org <djm@openbsd.org>
3040Date: Mon Jan 12 11:12:38 2015 +0000
3041
3042 upstream commit
3043
3044 let this test all supporte key types; pointed out/ok
3045 markus@
3046
3047commit 1129dcfc5a3e508635004bcc05a3574cb7687167
3048Author: djm@openbsd.org <djm@openbsd.org>
3049Date: Thu Jan 15 09:40:00 2015 +0000
3050
3051 upstream commit
3052
3053 sync ssh-keysign, ssh-keygen and some dependencies to the
3054 new buffer/key API; mostly mechanical, ok markus@
3055
3056commit e4ebf5586452bf512da662ac277aaf6ecf0efe7c
3057Author: djm@openbsd.org <djm@openbsd.org>
3058Date: Thu Jan 15 07:57:08 2015 +0000
3059
3060 upstream commit
3061
3062 remove commented-out test code now that it has moved to a
3063 proper unit test
3064
3065commit e81cba066c1e9eb70aba0f6e7c0ff220611b370f
3066Author: djm@openbsd.org <djm@openbsd.org>
3067Date: Wed Jan 14 20:54:29 2015 +0000
3068
3069 upstream commit
3070
3071 whitespace
3072
3073commit 141efe49542f7156cdbc2e4cd0a041d8b1aab622
3074Author: djm@openbsd.org <djm@openbsd.org>
3075Date: Wed Jan 14 20:05:27 2015 +0000
3076
3077 upstream commit
3078
3079 move authfd.c and its tentacles to the new buffer/key
3080 API; ok markus@
3081
3082commit 0088c57af302cda278bd26d8c3ae81d5b6f7c289
3083Author: djm@openbsd.org <djm@openbsd.org>
3084Date: Wed Jan 14 19:33:41 2015 +0000
3085
3086 upstream commit
3087
3088 fix small regression: ssh-agent would return a success
3089 message but an empty signature if asked to sign using an unknown key; ok
3090 markus@
3091
3092commit b03ebe2c22b8166e4f64c37737f4278676e3488d
3093Author: Damien Miller <djm@mindrot.org>
3094Date: Thu Jan 15 03:08:58 2015 +1100
3095
3096 more --without-openssl
3097
3098 fix some regressions caused by upstream merges
3099
3100 enable KRLs now that they no longer require BIGNUMs
3101
3102commit bc42cc6fe784f36df225c44c93b74830027cb5a2
3103Author: Damien Miller <djm@mindrot.org>
3104Date: Thu Jan 15 03:08:29 2015 +1100
3105
3106 kludge around tun API mismatch betterer
3107
3108commit c332110291089b624fa0951fbf2d1ee6de525b9f
3109Author: Damien Miller <djm@mindrot.org>
3110Date: Thu Jan 15 02:59:51 2015 +1100
3111
3112 some systems lack SO_REUSEPORT
3113
3114commit 83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae
3115Author: Damien Miller <djm@mindrot.org>
3116Date: Thu Jan 15 02:35:50 2015 +1100
3117
3118 fix merge botch
3119
3120commit 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b
3121Author: Damien Miller <djm@mindrot.org>
3122Date: Thu Jan 15 02:35:33 2015 +1100
3123
3124 unbreak across API change
3125
3126commit 6e2549ac2b5e7f96cbc2d83a6e0784b120444b47
3127Author: Damien Miller <djm@mindrot.org>
3128Date: Thu Jan 15 02:30:18 2015 +1100
3129
3130 need includes.h for portable OpenSSH
3131
3132commit 72ef7c148c42db7d5632a29f137f8b87b579f2d9
3133Author: Damien Miller <djm@mindrot.org>
3134Date: Thu Jan 15 02:21:31 2015 +1100
3135
3136 support --without-openssl at configure time
3137
3138 Disables and removes dependency on OpenSSL. Many features don't
3139 work and the set of crypto options is greatly restricted. This
3140 will only work on system with native arc4random or /dev/urandom.
3141
3142 Considered highly experimental for now.
3143
3144commit 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9
3145Author: Damien Miller <djm@mindrot.org>
3146Date: Thu Jan 15 02:28:00 2015 +1100
3147
3148 add files missed in last commit
3149
3150commit a165bab605f7be55940bb8fae977398e8c96a46d
3151Author: djm@openbsd.org <djm@openbsd.org>
3152Date: Wed Jan 14 15:02:39 2015 +0000
3153
3154 upstream commit
3155
3156 avoid BIGNUM in KRL code by using a simple bitmap;
3157 feedback and ok markus
3158
3159commit 7d845f4a0b7ec97887be204c3760e44de8bf1f32
3160Author: djm@openbsd.org <djm@openbsd.org>
3161Date: Wed Jan 14 13:54:13 2015 +0000
3162
3163 upstream commit
3164
3165 update sftp client and server to new buffer API. pretty
3166 much just mechanical changes; with & ok markus
3167
3168commit 139ca81866ec1b219c717d17061e5e7ad1059e2a
3169Author: markus@openbsd.org <markus@openbsd.org>
3170Date: Wed Jan 14 13:09:09 2015 +0000
3171
3172 upstream commit
3173
3174 switch to sshbuf/sshkey; with & ok djm@
3175
3176commit 81bfbd0bd35683de5d7f2238b985e5f8150a9180
3177Author: Damien Miller <djm@mindrot.org>
3178Date: Wed Jan 14 21:48:18 2015 +1100
3179
3180 support --without-openssl at configure time
3181
3182 Disables and removes dependency on OpenSSL. Many features don't
3183 work and the set of crypto options is greatly restricted. This
3184 will only work on system with native arc4random or /dev/urandom.
3185
3186 Considered highly experimental for now.
3187
3188commit 54924b53af15ccdcbb9f89984512b5efef641a31
3189Author: djm@openbsd.org <djm@openbsd.org>
3190Date: Wed Jan 14 10:46:28 2015 +0000
3191
3192 upstream commit
3193
3194 avoid an warning for the !OPENSSL case
3195
3196commit ae8b463217f7c9b66655bfc3945c050ffdaeb861
3197Author: markus@openbsd.org <markus@openbsd.org>
3198Date: Wed Jan 14 10:30:34 2015 +0000
3199
3200 upstream commit
3201
3202 swith auth-options to new sshbuf/sshkey; ok djm@
3203
3204commit 540e891191b98b89ee90aacf5b14a4a68635e763
3205Author: djm@openbsd.org <djm@openbsd.org>
3206Date: Wed Jan 14 10:29:45 2015 +0000
3207
3208 upstream commit
3209
3210 make non-OpenSSL aes-ctr work on sshd w/ privsep; ok
3211 markus@
3212
3213commit 60c2c4ea5e1ad0ddfe8b2877b78ed5143be79c53
3214Author: markus@openbsd.org <markus@openbsd.org>
3215Date: Wed Jan 14 10:24:42 2015 +0000
3216
3217 upstream commit
3218
3219 remove unneeded includes, sync my copyright across files
3220 & whitespace; ok djm@
3221
3222commit 128343bcdb0b60fc826f2733df8cf979ec1627b4
3223Author: markus@openbsd.org <markus@openbsd.org>
3224Date: Tue Jan 13 19:31:40 2015 +0000
3225
3226 upstream commit
3227
3228 adapt mac.c to ssherr.h return codes (de-fatal) and
3229 simplify dependencies ok djm@
3230
3231commit e7fd952f4ea01f09ceb068721a5431ac2fd416ed
3232Author: djm@openbsd.org <djm@openbsd.org>
3233Date: Tue Jan 13 19:04:35 2015 +0000
3234
3235 upstream commit
3236
3237 sync changes from libopenssh; prepared by markus@ mostly
3238 debug output tweaks, a couple of error return value changes and some other
3239 minor stuff
3240
3241commit 76c0480a85675f03a1376167cb686abed01a3583
3242Author: Damien Miller <djm@mindrot.org>
3243Date: Tue Jan 13 19:38:18 2015 +1100
3244
3245 add --without-ssh1 option to configure
3246
3247 Allows disabling support for SSH protocol 1.
3248
3249commit 1f729f0614d1376c3332fa1edb6a5e5cec7e9e03
3250Author: djm@openbsd.org <djm@openbsd.org>
3251Date: Tue Jan 13 07:39:19 2015 +0000
3252
3253 upstream commit
3254
3255 add sshd_config HostbasedAcceptedKeyTypes and
3256 PubkeyAcceptedKeyTypes options to allow sshd to control what public key types
3257 will be accepted. Currently defaults to all. Feedback & ok markus@
3258
3259commit 816d1538c24209a93ba0560b27c4fda57c3fff65
3260Author: markus@openbsd.org <markus@openbsd.org>
3261Date: Mon Jan 12 20:13:27 2015 +0000
3262
3263 upstream commit
3264
3265 unbreak parsing of pubkey comments; with gerhard; ok
3266 djm/deraadt
3267
3268commit 0097565f849851812df610b7b6b3c4bd414f6c62
3269Author: markus@openbsd.org <markus@openbsd.org>
3270Date: Mon Jan 12 19:22:46 2015 +0000
3271
3272 upstream commit
3273
3274 missing error assigment on sshbuf_put_string()
3275
3276commit a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5
3277Author: djm@openbsd.org <djm@openbsd.org>
3278Date: Mon Jan 12 15:18:07 2015 +0000
3279
3280 upstream commit
3281
3282 apparently memcpy(x, NULL, 0) is undefined behaviour
3283 according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls
3284 when length==0; ok markus@
3285
3286commit 905fe30fca82f38213763616d0d26eb6790bde33
3287Author: markus@openbsd.org <markus@openbsd.org>
3288Date: Mon Jan 12 14:05:19 2015 +0000
3289
3290 upstream commit
3291
3292 free->sshkey_free; ok djm@
3293
3294commit f067cca2bc20c86b110174c3fef04086a7f57b13
3295Author: markus@openbsd.org <markus@openbsd.org>
3296Date: Mon Jan 12 13:29:27 2015 +0000
3297
3298 upstream commit
3299
3300 allow WITH_OPENSSL w/o WITH_SSH1; ok djm@
3301
3302commit c4bfafcc2a9300d9cfb3c15e75572d3a7d74670d
3303Author: djm@openbsd.org <djm@openbsd.org>
3304Date: Thu Jan 8 13:10:58 2015 +0000
3305
3306 upstream commit
3307
3308 adjust for sshkey_load_file() API change
3309
3310commit e752c6d547036c602b89e9e704851463bd160e32
3311Author: djm@openbsd.org <djm@openbsd.org>
3312Date: Thu Jan 8 13:44:36 2015 +0000
3313
3314 upstream commit
3315
3316 fix ssh_config FingerprintHash evaluation order; from Petr
3317 Lautrbach
3318
3319commit ab24ab847b0fc94c8d5e419feecff0bcb6d6d1bf
3320Author: djm@openbsd.org <djm@openbsd.org>
3321Date: Thu Jan 8 10:15:45 2015 +0000
3322
3323 upstream commit
3324
3325 reorder hostbased key attempts to better match the
3326 default hostkey algorithms order in myproposal.h; ok markus@
3327
3328commit 1195f4cb07ef4b0405c839293c38600b3e9bdb46
3329Author: djm@openbsd.org <djm@openbsd.org>
3330Date: Thu Jan 8 10:14:08 2015 +0000
3331
3332 upstream commit
3333
3334 deprecate key_load_private_pem() and
3335 sshkey_load_private_pem() interfaces. Refactor the generic key loading API to
3336 not require pathnames to be specified (they weren't really used).
3337
3338 Fixes a few other things en passant:
3339
3340 Makes ed25519 keys work for hostbased authentication (ssh-keysign
3341 previously used the PEM-only routines).
3342
3343 Fixes key comment regression bz#2306: key pathnames were being lost as
3344 comment fields.
3345
3346 ok markus@
3347
3348commit febbe09e4e9aff579b0c5cc1623f756862e4757d
3349Author: tedu@openbsd.org <tedu@openbsd.org>
3350Date: Wed Jan 7 18:15:07 2015 +0000
3351
3352 upstream commit
3353
3354 workaround for the Meyer, et al, Bleichenbacher Side
3355 Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm
3356 markus
3357
3358commit 5191df927db282d3123ca2f34a04d8d96153911a
3359Author: djm@openbsd.org <djm@openbsd.org>
3360Date: Tue Dec 23 22:42:48 2014 +0000
3361
3362 upstream commit
3363
3364 KNF and add a little more debug()
3365
3366commit 8abd80315d3419b20e6938f74d37e2e2b547f0b7
3367Author: jmc@openbsd.org <jmc@openbsd.org>
3368Date: Mon Dec 22 09:26:31 2014 +0000
3369
3370 upstream commit
3371
3372 add fingerprinthash to the options list;
3373
3374commit 296ef0560f60980da01d83b9f0e1a5257826536f
3375Author: jmc@openbsd.org <jmc@openbsd.org>
3376Date: Mon Dec 22 09:24:59 2014 +0000
3377
3378 upstream commit
3379
3380 tweak previous;
3381
3382commit 462082eacbd37778a173afb6b84c6f4d898a18b5
3383Author: Damien Miller <djm@google.com>
3384Date: Tue Dec 30 08:16:11 2014 +1100
3385
3386 avoid uninitialised free of ldns_res
3387
3388 If an invalid rdclass was passed to getrrsetbyname() then
3389 this would execute a free on an uninitialised pointer.
3390 OpenSSH only ever calls this with a fixed and valid rdclass.
3391
3392 Reported by Joshua Rogers
3393
3394commit 01b63498801053f131a0740eb9d13faf35d636c8
3395Author: Damien Miller <djm@google.com>
3396Date: Mon Dec 29 18:10:18 2014 +1100
3397
3398 pull updated OpenBSD BCrypt PBKDF implementation
3399
3400 Includes fix for 1 byte output overflow for large key length
3401 requests (not reachable in OpenSSH).
3402
3403 Pointed out by Joshua Rogers
3404
3405commit c528c1b4af2f06712177b3de9b30705752f7cbcb
3406Author: Damien Miller <djm@google.com>
3407Date: Tue Dec 23 15:26:13 2014 +1100
3408
3409 fix variable name for IPv6 case in construct_utmpx
3410
3411 patch from writeonce AT midipix.org via bz#2296
3412
3413commit 293cac52dcda123244b2e594d15592e5e481c55e
3414Author: Damien Miller <djm@google.com>
3415Date: Mon Dec 22 16:30:42 2014 +1100
3416
3417 include and use OpenBSD netcat in regress/
3418
3419commit 8f6784f0cb56dc4fd00af3e81a10050a5785228d
3420Author: djm@openbsd.org <djm@openbsd.org>
3421Date: Mon Dec 22 09:05:17 2014 +0000
3422
3423 upstream commit
3424
3425 mention ssh -Q feature to list supported { MAC, cipher,
3426 KEX, key } algorithms in more places and include the query string used to
3427 list the relevant information; bz#2288
3428
3429commit 449e11b4d7847079bd0a2daa6e3e7ea03d8ef700
3430Author: jmc@openbsd.org <jmc@openbsd.org>
3431Date: Mon Dec 22 08:24:17 2014 +0000
3432
3433 upstream commit
3434
3435 tweak previous;
3436
3437commit 4bea0ab3290c0b9dd2aa199e932de8e7e18062d6
3438Author: djm@openbsd.org <djm@openbsd.org>
3439Date: Mon Dec 22 08:06:03 2014 +0000
3440
3441 upstream commit
3442
3443 regression test for multiple required pubkey authentication;
3444 ok markus@
3445
3446commit f1c4d8ec52158b6f57834b8cd839605b0a33e7f2
3447Author: djm@openbsd.org <djm@openbsd.org>
3448Date: Mon Dec 22 08:04:23 2014 +0000
3449
3450 upstream commit
3451
3452 correct description of what will happen when a
3453 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd
3454 will refuse to start)
3455
3456commit 161cf419f412446635013ac49e8c660cadc36080
3457Author: djm@openbsd.org <djm@openbsd.org>
3458Date: Mon Dec 22 07:55:51 2014 +0000
3459
3460 upstream commit
3461
3462 make internal handling of filename arguments of "none"
3463 more consistent with ssh. "none" arguments are now replaced with NULL when
3464 the configuration is finalised.
3465
3466 Simplifies checking later on (just need to test not-NULL rather than
3467 that + strcmp) and cleans up some inconsistencies. ok markus@
3468
3469commit f69b69b8625be447b8826b21d87713874dac25a6
3470Author: djm@openbsd.org <djm@openbsd.org>
3471Date: Mon Dec 22 07:51:30 2014 +0000
3472
3473 upstream commit
3474
3475 remember which public keys have been used for
3476 authentication and refuse to accept previously-used keys.
3477
3478 This allows AuthenticationMethods=publickey,publickey to require
3479 that users authenticate using two _different_ pubkeys.
3480
3481 ok markus@
3482
3483commit 46ac2ed4677968224c4ca825bc98fc68dae183f0
3484Author: djm@openbsd.org <djm@openbsd.org>
3485Date: Mon Dec 22 07:24:11 2014 +0000
3486
3487 upstream commit
3488
3489 fix passing of wildcard forward bind addresses when
3490 connection multiplexing is in use; patch from Sami Hartikainen via bz#2324;
3491 ok dtucker@
3492
3493commit 0d1b241a262e4d0a6bbfdd595489ab1b853c43a1
3494Author: djm@openbsd.org <djm@openbsd.org>
3495Date: Mon Dec 22 06:14:29 2014 +0000
3496
3497 upstream commit
3498
3499 make this slightly easier to diff against portable
3500
3501commit 0715bcdddbf68953964058f17255bf54734b8737
3502Author: Damien Miller <djm@mindrot.org>
3503Date: Mon Dec 22 13:47:07 2014 +1100
3504
3505 add missing regress output file
3506
3507commit 1e30483c8ad2c2f39445d4a4b6ab20c241e40593
3508Author: djm@openbsd.org <djm@openbsd.org>
3509Date: Mon Dec 22 02:15:52 2014 +0000
3510
3511 upstream commit
3512
3513 adjust for new SHA256 key fingerprints and
3514 slightly-different MD5 hex fingerprint format
3515
3516commit 6b40567ed722df98593ad8e6a2d2448fc2b4b151
3517Author: djm@openbsd.org <djm@openbsd.org>
3518Date: Mon Dec 22 01:14:49 2014 +0000
3519
3520 upstream commit
3521
3522 poll changes to netcat (usr.bin/netcat.c r1.125) broke
3523 this test; fix it by ensuring more stdio fds are sent to devnull
3524
3525commit a5375ccb970f49dddf7d0ef63c9b713ede9e7260
3526Author: jmc@openbsd.org <jmc@openbsd.org>
3527Date: Sun Dec 21 23:35:14 2014 +0000
3528
3529 upstream commit
3530
3531 tweak previous;
3532
3533commit b79efde5c3badf5ce4312fe608d8307eade533c5
3534Author: djm@openbsd.org <djm@openbsd.org>
3535Date: Sun Dec 21 23:12:42 2014 +0000
3536
3537 upstream commit
3538
3539 document FingerprintHash here too
3540
3541commit d16bdd8027dd116afa01324bb071a4016cdc1a75
3542Author: Damien Miller <djm@mindrot.org>
3543Date: Mon Dec 22 10:18:09 2014 +1100
3544
3545 missing include for base64 encoding
3546
3547commit 56d1c83cdd1ac76f1c6bd41e01e80dad834f3994
3548Author: djm@openbsd.org <djm@openbsd.org>
3549Date: Sun Dec 21 22:27:55 2014 +0000
3550
3551 upstream commit
3552
3553 Add FingerprintHash option to control algorithm used for
3554 key fingerprints. Default changes from MD5 to SHA256 and format from hex to
3555 base64.
3556
3557 Feedback and ok naddy@ markus@
3558
3559commit 058f839fe15c51be8b3a844a76ab9a8db550be4f
3560Author: djm@openbsd.org <djm@openbsd.org>
3561Date: Thu Dec 18 23:58:04 2014 +0000
3562
3563 upstream commit
3564
3565 don't count partial authentication success as a failure
3566 against MaxAuthTries; ok deraadt@
3567
3568commit c7219f4f54d64d6dde66dbcf7a2699daa782d2a1
3569Author: djm@openbsd.org <djm@openbsd.org>
3570Date: Fri Dec 12 00:02:17 2014 +0000
3571
3572 upstream commit
3573
3574 revert chunk I didn't mean to commit yet; via jmc@
3575
3576commit 7de5991aa3997e2981440f39c1ea01273a0a2c7b
3577Author: Damien Miller <djm@mindrot.org>
3578Date: Thu Dec 18 11:44:06 2014 +1100
3579
3580 upstream libc change
3581
3582 revision 1.2
3583 date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV;
3584 avoid left shift overflow in reallocarray.
3585
3586 Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting
3587 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with
3588 (size_t)1 so that we get the correct constant size for the platform.
3589
3590 discussed with tedu@ & deraadt@
3591
3592commit 2048f85a5e6da8bc6e0532efe02ecfd4e63c978c
3593Author: Damien Miller <djm@mindrot.org>
3594Date: Thu Dec 18 10:15:49 2014 +1100
3595
3596 include CFLAGS in gnome askpass targets
3597
3598 from Fedora
3599
3600commit 48b68ce19ca42fa488960028048dec023f7899bb
3601Author: djm@openbsd.org <djm@openbsd.org>
3602Date: Thu Dec 11 08:20:09 2014 +0000
3603
3604 upstream commit
3605
3606 explicitly include sys/param.h in files that use the
3607 howmany() macro; from portable
3608
3609commit d663bea30a294d440fef4398e5cd816317bd4518
3610Author: djm@openbsd.org <djm@openbsd.org>
3611Date: Thu Dec 11 05:25:06 2014 +0000
3612
3613 upstream commit
3614
3615 mention AuthorizedKeysCommandUser must be set for
3616 AuthorizedKeysCommand to be run; bz#2287
3617
3618commit 17bf3d81e00f2abb414a4fd271118cf4913f049f
3619Author: djm@openbsd.org <djm@openbsd.org>
3620Date: Thu Dec 11 05:13:28 2014 +0000
3621
3622 upstream commit
3623
3624 show in debug output which hostkeys are being tried when
3625 attempting hostbased auth; patch from Iain Morgan
3626
3627commit da0277e3717eadf5b15e03379fc29db133487e94
3628Author: djm@openbsd.org <djm@openbsd.org>
3629Date: Thu Dec 11 04:16:14 2014 +0000
3630
3631 upstream commit
3632
3633 Make manual reflect reality: sftp-server's -d option
3634 accepts a "%d" option, not a "%h" one.
3635
3636 bz#2316; reported by Kirk Wolf
3637
3638commit 4cf87f4b81fa9380bce5fcff7b0f8382ae3ad996
3639Author: djm@openbsd.org <djm@openbsd.org>
3640Date: Wed Dec 10 01:24:09 2014 +0000
3641
3642 upstream commit
3643
3644 better error value for invalid signature length
3645
3646commit 4bfad14ca56f8ae04f418997816b4ba84e2cfc3c
3647Author: Darren Tucker <dtucker@zip.com.au>
3648Date: Wed Dec 10 02:12:51 2014 +1100
3649
3650 Resync more with OpenBSD's rijndael.c, in particular "#if 0"-ing out some
3651 unused code. Should fix compile error reported by plautrba at redhat.
3652
3653commit 642652d280499691c8212ec6b79724b50008ce09
3654Author: Darren Tucker <dtucker@zip.com.au>
3655Date: Wed Dec 10 01:32:23 2014 +1100
3656
3657 Add reallocarray to compat library
3658
3659commit 3dfd8d93dfcc69261f5af99df56f3ff598581979
3660Author: djm@openbsd.org <djm@openbsd.org>
3661Date: Thu Dec 4 22:31:50 2014 +0000
3662
3663 upstream commit
3664
3665 add tests for new client RevokedHostKeys option; refactor
3666 to make it a bit more readable
3667
3668commit a31046cad1aed16a0b55171192faa6d02665ccec
3669Author: krw@openbsd.org <krw@openbsd.org>
3670Date: Wed Nov 19 13:35:37 2014 +0000
3671
3672 upstream commit
3673
3674 Nuke yet more obvious #include duplications.
3675
3676 ok deraadt@
3677
3678commit a7c762e5b2c1093542c0bc1df25ccec0b4cf479f
3679Author: djm@openbsd.org <djm@openbsd.org>
3680Date: Thu Dec 4 20:47:36 2014 +0000
3681
3682 upstream commit
3683
3684 key_in_file() wrapper is no longer used
3685
3686commit 5e39a49930d885aac9c76af3129332b6e772cd75
3687Author: djm@openbsd.org <djm@openbsd.org>
3688Date: Thu Dec 4 02:24:32 2014 +0000
3689
3690 upstream commit
3691
3692 add RevokedHostKeys option for the client
3693
3694 Allow textfile or KRL-based revocation of hostkeys.
3695
3696commit 74de254bb92c684cf53461da97f52d5ba34ded80
3697Author: djm@openbsd.org <djm@openbsd.org>
3698Date: Thu Dec 4 01:49:59 2014 +0000
3699
3700 upstream commit
3701
3702 convert KRL code to new buffer API
3703
3704 ok markus@
3705
3706commit db995f2eed5fc432598626fa3e30654503bf7151
3707Author: millert@openbsd.org <millert@openbsd.org>
3708Date: Wed Nov 26 18:34:51 2014 +0000
3709
3710 upstream commit
3711
3712 Prefer setvbuf() to setlinebuf() for portability; ok
3713 deraadt@
3714
3715commit 72bba3d179ced8b425272efe6956a309202a91f3
3716Author: jsg@openbsd.org <jsg@openbsd.org>
3717Date: Mon Nov 24 03:39:22 2014 +0000
3718
3719 upstream commit
3720
3721 Fix crashes in the handling of the sshd config file found
3722 with the afl fuzzer.
3723
3724 ok deraadt@ djm@
3725
3726commit 867f49c666adcfe92bf539d9c37c1accdea08bf6
3727Author: Damien Miller <djm@mindrot.org>
3728Date: Wed Nov 26 13:22:41 2014 +1100
3729
3730 Avoid Cygwin ssh-host-config reading /etc/group
3731
3732 Patch from Corinna Vinschen
3733
3734commit 8b66f36291a721b1ba7c44f24a07fdf39235593e
3735Author: Damien Miller <djm@mindrot.org>
3736Date: Wed Nov 26 13:20:35 2014 +1100
3737
3738 allow custom service name for sshd on Cygwin
3739
3740 Permits the use of multiple sshd running with different service names.
3741
3742 Patch by Florian Friesdorf via Corinna Vinschen
3743
3744commit 08c0eebf55d70a9ae1964399e609288ae3186a0c
3745Author: jmc@openbsd.org <jmc@openbsd.org>
3746Date: Sat Nov 22 19:21:03 2014 +0000
3747
3748 upstream commit
3749
3750 restore word zapped in previous, and remove some useless
3751 "No" macros;
3752
3753commit a1418a0033fba43f061513e992e1cbcc3343e563
3754Author: deraadt@openbsd.org <deraadt@openbsd.org>
3755Date: Sat Nov 22 18:15:41 2014 +0000
3756
3757 upstream commit
3758
3759 /dev/random has created the same effect as /dev/arandom
3760 (and /dev/urandom) for quite some time. Mop up the last few, by using
3761 /dev/random where we actually want it, or not even mentioning arandom where
3762 it is irrelevant.
3763
3764commit b6de5ac9ed421362f479d1ad4fa433d2e25dad5b
3765Author: djm@openbsd.org <djm@openbsd.org>
3766Date: Fri Nov 21 01:00:38 2014 +0000
3767
3768 upstream commit
3769
3770 fix NULL pointer dereference crash on invalid timestamp
3771
3772 found using Michal Zalewski's afl fuzzer
3773
3774commit a1f8110cd5ed818d59b3a2964fab7de76e92c18e
3775Author: mikeb@openbsd.org <mikeb@openbsd.org>
3776Date: Tue Nov 18 22:38:48 2014 +0000
3777
3778 upstream commit
3779
3780 Sync AES code to the one shipped in OpenSSL/LibreSSL.
3781
3782 This includes a commit made by Andy Polyakov <appro at openssl ! org>
3783 to the OpenSSL source tree on Wed, 28 Jun 2006 with the following
3784 message: "Mitigate cache-collision timing attack on last round."
3785
3786 OK naddy, miod, djm
3787
3788commit 335c83d5f35d8620e16b8aa26592d4f836e09ad2
3789Author: krw@openbsd.org <krw@openbsd.org>
3790Date: Tue Nov 18 20:54:28 2014 +0000
3791
3792 upstream commit
3793
3794 Nuke more obvious #include duplications.
3795
3796 ok deraadt@ millert@ tedu@
3797
3798commit 51b64e44121194ae4bf153dee391228dada2abcb
3799Author: djm@openbsd.org <djm@openbsd.org>
3800Date: Mon Nov 17 00:21:40 2014 +0000
3801
3802 upstream commit
3803
3804 fix KRL generation when multiple CAs are in use
3805
3806 We would generate an invalid KRL when revoking certs by serial
3807 number for multiple CA keys due to a section being written out
3808 twice.
3809
3810 Also extend the regress test to catch this case by having it
3811 produce a multi-CA KRL.
3812
3813 Reported by peter AT pean.org
3814
3815commit d2d51003a623e21fb2b25567c4878d915e90aa2a
3816Author: djm@openbsd.org <djm@openbsd.org>
3817Date: Tue Nov 18 01:02:25 2014 +0000
3818
3819 upstream commit
3820
3821 fix NULL pointer dereference crash in key loading
3822
3823 found by Michal Zalewski's AFL fuzzer
3824
3825commit 9f9fad0191028edc43d100d0ded39419b6895fdf
3826Author: djm@openbsd.org <djm@openbsd.org>
3827Date: Mon Nov 17 00:21:40 2014 +0000
3828
3829 upstream commit
3830
3831 fix KRL generation when multiple CAs are in use
3832
3833 We would generate an invalid KRL when revoking certs by serial
3834 number for multiple CA keys due to a section being written out
3835 twice.
3836
3837 Also extend the regress test to catch this case by having it
3838 produce a multi-CA KRL.
3839
3840 Reported by peter AT pean.org
3841
3842commit da8af83d3f7ec00099963e455010e0ed1d7d0140
3843Author: bentley@openbsd.org <bentley@openbsd.org>
3844Date: Sat Nov 15 14:41:03 2014 +0000
3845
3846 upstream commit
3847
3848 Reduce instances of `` '' in manuals.
3849
3850 troff displays these as typographic quotes, but nroff implementations
3851 almost always print them literally, which rarely has the intended effect
3852 with modern fonts, even in stock xterm.
3853
3854 These uses of `` '' can be replaced either with more semantic alternatives
3855 or with Dq, which prints typographic quotes in a UTF-8 locale (but will
3856 automatically fall back to `` '' in an ASCII locale).
3857
3858 improvements and ok schwarze@
3859
3860commit fc302561369483bb755b17f671f70fb894aec01d
3861Author: djm@openbsd.org <djm@openbsd.org>
3862Date: Mon Nov 10 22:25:49 2014 +0000
3863
3864 upstream commit
3865
3866 mux-related manual tweaks
3867
3868 mention ControlPersist=0 is the same as ControlPersist=yes
3869
3870 recommend that ControlPath sockets be placed in a og-w directory
3871
3872commit 0e4cff5f35ed11102fe3783779960ef07e0cd381
3873Author: Damien Miller <djm@google.com>
3874Date: Wed Nov 5 11:01:31 2014 +1100
3875
3876 Prepare scripts for next Cygwin release
3877
3878 Makes the Cygwin-specific ssh-user-config script independent of the
3879 existence of /etc/passwd. The next Cygwin release will allow to
3880 generate passwd and group entries from the Windows account DBs, so the
3881 scripts have to adapt.
3882
3883 from Corinna Vinschen
3884
3885commit 7d0ba5336651731949762eb8877ce9e3b52df436
3886Author: Damien Miller <djm@mindrot.org>
3887Date: Thu Oct 30 10:45:41 2014 +1100
3888
3889 include version number in OpenSSL-too-old error
3890
3891commit 3bcb92e04d9207e9f78d82f7918c6d3422054ce9
3892Author: lteo@openbsd.org <lteo@openbsd.org>
3893Date: Fri Oct 24 02:01:20 2014 +0000
3894
3895 upstream commit
3896
3897 Remove unnecessary include: netinet/in_systm.h is not needed
3898 by these programs.
3899
3900 NB. skipped for portable
3901
3902 ok deraadt@ millert@
3903
3904commit 6fdcaeb99532e28a69f1a1599fbd540bb15b70a0
3905Author: djm@openbsd.org <djm@openbsd.org>
3906Date: Mon Oct 20 03:43:01 2014 +0000
3907
3908 upstream commit
3909
3910 whitespace
3911
3912commit 165bc8786299e261706ed60342985f9de93a7461
3913Author: daniel@openbsd.org <daniel@openbsd.org>
3914Date: Tue Oct 14 03:09:59 2014 +0000
3915
3916 upstream commit
3917
3918 plug a memory leak; from Maxime Villard.
3919
3920 ok djm@
3921
3922commit b1ba15f3885947c245c2dbfaad0a04ba050abea0
3923Author: jmc@openbsd.org <jmc@openbsd.org>
3924Date: Thu Oct 9 06:21:31 2014 +0000
3925
3926 upstream commit
3927
3928 tweak previous;
3929
3930commit 259a02ebdf74ad90b41d116ecf70aa823fa4c6e7
3931Author: djm@openbsd.org <djm@openbsd.org>
3932Date: Mon Oct 13 00:38:35 2014 +0000
3933
3934 upstream commit
3935
3936 whitespace
3937
3938commit 957fbceb0f3166e41b76fdb54075ab3b9cc84cba
3939Author: djm@openbsd.org <djm@openbsd.org>
3940Date: Wed Oct 8 22:20:25 2014 +0000
3941
3942 upstream commit
3943
3944 Tweak config reparsing with host canonicalisation
3945
3946 Make the second pass through the config files always run when
3947 hostname canonicalisation is enabled.
3948
3949 Add a "Match canonical" criteria that allows ssh_config Match
3950 blocks to trigger only in the second config pass.
3951
3952 Add a -G option to ssh that causes it to parse its configuration
3953 and dump the result to stdout, similar to "sshd -T"
3954
3955 Allow ssh_config Port options set in the second config parse
3956 phase to be applied (they were being ignored).
3957
3958 bz#2267 bz#2286; ok markus
3959
3960commit 5c0dafd38bf66feeeb45fa0741a5baf5ad8039ba
3961Author: djm@openbsd.org <djm@openbsd.org>
3962Date: Wed Oct 8 22:15:27 2014 +0000
3963
3964 upstream commit
3965
3966 another -Wpointer-sign from clang
3967
3968commit bb005dc815ebda9af3ae4b39ca101c4da918f835
3969Author: djm@openbsd.org <djm@openbsd.org>
3970Date: Wed Oct 8 22:15:06 2014 +0000
3971
3972 upstream commit
3973
3974 fix a few -Wpointer-sign warnings from clang
3975
3976commit 3cc1fbb4fb0e804bfb873fd363cea91b27fc8188
3977Author: djm@openbsd.org <djm@openbsd.org>
3978Date: Wed Oct 8 21:45:48 2014 +0000
3979
3980 upstream commit
3981
3982 parse cert sections using nested buffers to reduce
3983 copies; ok markus
3984
3985commit 4a45922aebf99164e2fc83d34fe55b11ae1866ef
3986Author: djm@openbsd.org <djm@openbsd.org>
3987Date: Mon Oct 6 00:47:15 2014 +0000
3988
3989 upstream commit
3990
3991 correct options in usage(); from mancha1 AT zoho.com
3992
3993commit 48dffd5bebae6fed0556dc5c36cece0370690618
3994Author: djm@openbsd.org <djm@openbsd.org>
3995Date: Tue Sep 9 09:45:36 2014 +0000
3996
3997 upstream commit
3998
3999 mention permissions on tun(4) devices in PermitTunnel
4000 documentation; bz#2273
4001
4002commit a5883d4eccb94b16c355987f58f86a7dee17a0c2
4003Author: djm@openbsd.org <djm@openbsd.org>
4004Date: Wed Sep 3 18:55:07 2014 +0000
4005
4006 upstream commit
4007
4008 tighten permissions on pty when the "tty" group does
4009 not exist; pointed out by Corinna Vinschen; ok markus
4010
4011commit 180bcb406b58bf30723c01a6b010e48ee626dda8
4012Author: sobrado@openbsd.org <sobrado@openbsd.org>
4013Date: Sat Aug 30 16:32:25 2014 +0000
4014
4015 upstream commit
4016
4017 typo.
4018
4019commit f70b22bcdd52f6bf127047b3584371e6e5d45627
4020Author: sobrado@openbsd.org <sobrado@openbsd.org>
4021Date: Sat Aug 30 15:33:50 2014 +0000
4022
4023 upstream commit
4024
4025 improve capitalization for the Ed25519 public-key
4026 signature system.
4027
4028 ok djm@
4029
4030commit 7df8818409c752cf3f0c3f8044fe9aebed8647bd
4031Author: doug@openbsd.org <doug@openbsd.org>
4032Date: Thu Aug 21 01:08:52 2014 +0000
4033
4034 upstream commit
4035
4036 Free resources on error in mkstemp and fdopen
4037
4038 ok djm@
4039
4040commit 40ba4c9733aaed08304714faeb61529f18da144b
4041Author: deraadt@openbsd.org <deraadt@openbsd.org>
4042Date: Wed Aug 20 01:28:55 2014 +0000
4043
4044 upstream commit
4045
4046 djm how did you make a typo like that...
4047
4048commit 57d378ec9278ba417a726f615daad67d157de666
4049Author: djm@openbsd.org <djm@openbsd.org>
4050Date: Tue Aug 19 23:58:28 2014 +0000
4051
4052 upstream commit
4053
4054 When dumping the server configuration (sshd -T), print
4055 correct KEX, MAC and cipher defaults. Spotted by Iain Morgan
4056
4057commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240
4058Author: djm@openbsd.org <djm@openbsd.org>
4059Date: Tue Aug 19 23:57:18 2014 +0000
4060
4061 upstream commit
4062
4063 ~-expand lcd paths
4064
4065commit 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59
4066Author: Damien Miller <djm@mindrot.org>
4067Date: Sun Oct 12 12:35:48 2014 +1100
4068
4069 remove duplicated KEX_DH1 entry
4070
4071commit c9b8426a616138d0d762176c94f51aff3faad5ff
4072Author: Damien Miller <djm@mindrot.org>
4073Date: Thu Oct 9 10:34:06 2014 +1100
4074
4075 remove ChangeLog file
4076
4077 Commit logs will be generated from git at release time.
4078
4079commit 81d18ff7c93a04affbf3903e0963859763219aed
4080Author: Damien Miller <djm@google.com>
4081Date: Tue Oct 7 21:24:25 2014 +1100
4082
4083 delete contrib/caldera directory
4084
4085commit 0ec9e87d3638206456968202f05bb5123670607a
4086Author: Damien Miller <djm@google.com>
4087Date: Tue Oct 7 19:57:27 2014 +1100
4088
4089 test commit
4090
4091commit 8fb65a44568701b779f3d77326bceae63412d28d
4092Author: Damien Miller <djm@mindrot.org>
4093Date: Tue Oct 7 09:21:49 2014 +1100
4094
4095 - (djm) Release OpenSSH-6.7
4096
4097commit e8c9f2602c46f6781df5e52e6cd8413dab4602a3
4098Author: Damien Miller <djm@mindrot.org>
4099Date: Fri Oct 3 09:24:56 2014 +1000
4100
4101 - (djm) [sshd_config.5] typo; from Iain Morgan
4102
4103commit 703b98a26706f5083801d11059486d77491342ae
4104Author: Damien Miller <djm@mindrot.org>
4105Date: Wed Oct 1 09:43:07 2014 +1000
4106
4107 - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c]
4108 [openbsd-compat/openbsd-compat.h] Kludge around bad glibc
4109 _FORTIFY_SOURCE check that doesn't grok heap-allocated fd_sets;
4110 ok dtucker@
4111
4112commit 0fa0ed061bbfedb0daa705e220748154a84c3413
4113Author: Damien Miller <djm@mindrot.org>
4114Date: Wed Sep 10 08:15:34 2014 +1000
4115
4116 - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc;
4117 patch from Felix von Leitner; ok dtucker
4118
4119commit ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95
4120Author: Darren Tucker <dtucker@zip.com.au>
4121Date: Tue Sep 9 12:23:10 2014 +1000
4122
4123 20140908
4124 - (dtucker) [INSTALL] Update info about egd. ok djm@
4125
4126commit 2a8699f37cc2515e3bc60e0c677ba060f4d48191
4127Author: Damien Miller <djm@mindrot.org>
4128Date: Thu Sep 4 03:46:05 2014 +1000
4129
4130 - (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
4131
4132commit 44988defb1f5e3afe576d86000365e1f07a1b494
4133Author: Damien Miller <djm@mindrot.org>
4134Date: Wed Sep 3 05:35:32 2014 +1000
4135
4136 - (djm) [contrib/cygwin/ssh-host-config] Fix old code leading to
4137 permissions/ACLs; from Corinna Vinschen
4138
4139commit 23f269562b7537b2f6f5014e50a25e5dcc55a837
4140Author: Damien Miller <djm@mindrot.org>
4141Date: Wed Sep 3 05:33:25 2014 +1000
4142
4143 - (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
4144 conditionalise to avoid duplicate definition.
4145
4146commit 41c8de2c0031cf59e7cf0c06b5bcfbf4852c1fda
4147Author: Damien Miller <djm@mindrot.org>
4148Date: Sat Aug 30 16:23:06 2014 +1000
4149
4150 - (djm) [Makefile.in] Make TEST_SHELL a variable; "good idea" tim@
4151
4152commit d7c81e216a7bd9eed6e239c970d9261bb1651947
4153Author: Damien Miller <djm@mindrot.org>
4154Date: Sat Aug 30 04:18:28 2014 +1000
4155
4156 - (djm) [openbsd-compat/openssl-compat.h] add include guard
4157
4158commit 4687802dda57365b984b897fc3c8e2867ea09b22
4159Author: Damien Miller <djm@mindrot.org>
4160Date: Sat Aug 30 03:29:19 2014 +1000
4161
4162 - (djm) [misc.c] Missing newline between functions
4163
4164commit 51c77e29220dee87c53be2dc47092934acab26fe
4165Author: Damien Miller <djm@mindrot.org>
4166Date: Sat Aug 30 02:30:30 2014 +1000
4167
4168 - (djm) [openbsd-compat/openssl-compat.h] add
4169 OPENSSL_[RD]SA_MAX_MODULUS_BITS defines for OpenSSL that lacks them
4170
4171commit 3d673d103bad35afaec6e7ef73e5277216ce33a3
4172Author: Damien Miller <djm@mindrot.org>
4173Date: Wed Aug 27 06:32:01 2014 +1000
4174
4175 - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero()
4176 using memset_s() where possible; improve fallback to indirect bzero
4177 via a volatile pointer to give it more of a chance to avoid being
4178 optimised away.
4179
4180commit 146218ac11a1eb0dcade6f793d7acdef163b5ddc
4181Author: Damien Miller <djm@mindrot.org>
4182Date: Wed Aug 27 04:11:55 2014 +1000
4183
4184 - (djm) [monitor.c sshd.c] SIGXFSZ needs to be ignored in postauth
4185 monitor, not preauth; bz#2263
4186
4187commit 1b215c098b3b37e38aa4e4c91bb908eee41183b1
4188Author: Damien Miller <djm@mindrot.org>
4189Date: Wed Aug 27 04:04:40 2014 +1000
4190
4191 - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
4192 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
4193 [regress/unittests/sshkey/common.c]
4194 [regress/unittests/sshkey/test_file.c]
4195 [regress/unittests/sshkey/test_fuzz.c]
4196 [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h
4197 on !ECC OpenSSL systems
4198
4199commit ad013944af0a19e3f612089d0099bb397cf6502d
4200Author: Damien Miller <djm@mindrot.org>
4201Date: Tue Aug 26 09:27:28 2014 +1000
4202
4203 - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL,
4204 update OpenSSL version requirement.
4205
4206commit ed126de8ee04c66640a0ea2697c4aaf36801f100
4207Author: Damien Miller <djm@mindrot.org>
4208Date: Tue Aug 26 08:37:47 2014 +1000
4209
4210 - (djm) [bufec.c] Skip this file on !ECC OpenSSL
4211
4212commit 9c1dede005746864a4fdb36a7cdf6c51296ca909
4213Author: Damien Miller <djm@mindrot.org>
4214Date: Sun Aug 24 03:01:06 2014 +1000
4215
4216 - (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not
4217 PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen
4218
4219commit d244a5816fd1312a33404b436e4dd83594f1119e
4220Author: Damien Miller <djm@mindrot.org>
4221Date: Sat Aug 23 17:06:49 2014 +1000
4222
4223 - (djm) [configure.ac] We now require a working vsnprintf everywhere (not
4224 just for systems that lack asprintf); check for it always and extend
4225 test to catch more brokenness. Fixes builds on Solaris <= 9
4226
4227commit 4cec036362a358e398e6a2e6d19d8e5780558634
4228Author: Damien Miller <djm@mindrot.org>
4229Date: Sat Aug 23 03:11:09 2014 +1000
4230
4231 - (djm) [sshd.c] Ignore SIGXFSZ in preauth monitor child; can explode on
4232 lastlog writing on platforms with high UIDs; bz#2263
4233
4234commit 394a60f2598d28b670d934b93942a3370b779b39
4235Author: Damien Miller <djm@mindrot.org>
4236Date: Fri Aug 22 18:06:20 2014 +1000
4237
4238 - (djm) [configure.ac] double braces to appease autoconf
4239
4240commit 4d69aeabd6e60afcdc7cca177ca751708ab79a9d
4241Author: Damien Miller <djm@mindrot.org>
4242Date: Fri Aug 22 17:48:27 2014 +1000
4243
4244 - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/
4245 definition mismatch) and warning for broken/missing snprintf case.
4246
4247commit 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e
4248Author: Damien Miller <djm@mindrot.org>
4249Date: Fri Aug 22 17:36:56 2014 +1000
4250
4251 - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC
4252
4253commit 6d62784b8973340b251fea6b04890f471adf28db
4254Author: Damien Miller <djm@mindrot.org>
4255Date: Fri Aug 22 17:36:19 2014 +1000
4256
4257 - (djm) [configure.ac] include leading zero characters in OpenSSL version
4258 number; fixes test for unsupported versions
4259
4260commit 4f1ff1ed782117f5d5204d4e91156ed5da07cbb7
4261Author: Damien Miller <djm@mindrot.org>
4262Date: Thu Aug 21 15:54:50 2014 +1000
4263
4264 - (djm) [regress/unittests/test_helper/test_helper.c] Fix for systems that
4265 don't set __progname. Diagnosed by Tom Christensen.
4266
4267commit 005a64da0f457410045ef0bfa93c863c2450447d
4268Author: Damien Miller <djm@mindrot.org>
4269Date: Thu Aug 21 10:48:41 2014 +1000
4270
4271 - (djm) [key.h] Fix ifdefs for no-ECC OpenSSL
4272
4273commit aa6598ebb3343c7380e918388e10e8ca5852b613
4274Author: Damien Miller <djm@mindrot.org>
4275Date: Thu Aug 21 10:47:54 2014 +1000
4276
4277 - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too.
4278
4279commit 54703e3cf63f0c80d4157e5ad7dbc2b363ee2c56
4280Author: Damien Miller <djm@mindrot.org>
4281Date: Wed Aug 20 11:10:51 2014 +1000
4282
4283 - (djm) [contrib/cygwin/README] Correct build instructions; from Corinna
4284
4285commit f0935698f0461f24d8d1f1107b476ee5fd4db1cb
4286Author: Damien Miller <djm@mindrot.org>
4287Date: Wed Aug 20 11:06:50 2014 +1000
4288
4289 - (djm) [sshkey.h] Fix compilation when OpenSSL lacks ECC
4290
4291commit c5089ecaec3b2c02f014f4e67518390702a4ba14
4292Author: Damien Miller <djm@mindrot.org>
4293Date: Wed Aug 20 11:06:20 2014 +1000
4294
4295 - (djm) [Makefile.in] refer to libtest_helper.a by explicit path rather than
4296 -L/-l; fixes linking problems on some platforms
4297
4298commit 2195847e503a382f83ee969b0a8bd3dfe0e55c18
4299Author: Damien Miller <djm@mindrot.org>
4300Date: Wed Aug 20 11:05:03 2014 +1000
4301
4302 - (djm) [configure.ac] Check OpenSSL version is supported at configure time;
4303 suggested by Kevin Brott
4304
4305commit a75aca1bbc989aa9f8b1b08489d37855f3d24d1a
4306Author: Damien Miller <djm@mindrot.org>
4307Date: Tue Aug 19 11:36:07 2014 +1000
4308
4309 - (djm) [INSTALL contrib/caldera/openssh.spec contrib/cygwin/README]
4310 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Remove mentions
4311 of TCP wrappers.
4312
4313commit 3f022b5a9477abceeb1bbeab04b055f3cc7ca8f6
4314Author: Damien Miller <djm@mindrot.org>
4315Date: Tue Aug 19 11:32:34 2014 +1000
4316
4317 - (djm) [ssh-dss.c] Include openssl/dsa.h for DSA_SIG
4318
4319commit 88137902632aceb923990e98cf5dc923bb3ef2f5
4320Author: Damien Miller <djm@mindrot.org>
4321Date: Tue Aug 19 11:28:11 2014 +1000
4322
4323 - (djm) [sshbuf.h] Fix compilation on systems without OPENSSL_HAS_ECC.
4324
4325commit 2f3d1e7fb2eabd3cfbfd8d0f7bdd2f9a1888690b
4326Author: Damien Miller <djm@mindrot.org>
4327Date: Tue Aug 19 11:14:36 2014 +1000
4328
4329 - (djm) [myproposal.h] Make curve25519 KEX dependent on
4330 HAVE_EVP_SHA256 instead of OPENSSL_HAS_ECC.
4331
4332commit d4e7d59d01a6c7f59e8c1f94a83c086e9a33d8aa
4333Author: Damien Miller <djm@mindrot.org>
4334Date: Tue Aug 19 11:14:17 2014 +1000
4335
4336 - (djm) [serverloop.c] Fix syntax error on Cygwin; from Corinna Vinschen
4337
4338commit 9eaeea2cf2b6af5f166cfa9ad3c7a90711a147a9
4339Author: Damien Miller <djm@mindrot.org>
4340Date: Sun Aug 10 11:35:05 2014 +1000
4341
4342 - (djm) [README contrib/caldera/openssh.spec]
4343 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Update versions
4344
4345commit f8988fbef0c9801d19fa2f8f4f041690412bec37
4346Author: Damien Miller <djm@mindrot.org>
4347Date: Fri Aug 1 13:31:52 2014 +1000
4348
4349 - (djm) [regress/multiplex.sh] Use -d (detach stdin) flag to disassociate
4350 nc from stdin, it's more portable
4351
4352commit 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0
4353Author: Damien Miller <djm@mindrot.org>
4354Date: Fri Aug 1 12:28:31 2014 +1000
4355
4356 - (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin
4357 is closed; avoid regress failures when stdin is /dev/null
4358
4359commit a9c46746d266f8a1b092a72b2150682d1af8ebfc
4360Author: Damien Miller <djm@mindrot.org>
4361Date: Fri Aug 1 12:26:49 2014 +1000
4362
4363 - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need
4364 a better solution, but this will have to do for now.
4365
4366commit 426117b2e965e43f47015942b5be8dd88fe74b88
4367Author: Damien Miller <djm@mindrot.org>
4368Date: Wed Jul 30 12:33:20 2014 +1000
4369
4370 - schwarze@cvs.openbsd.org 2014/07/28 15:40:08
4371 [sftp-server.8 sshd_config.5]
4372 some systems no longer need /dev/log;
4373 issue noticed by jirib;
4374 ok deraadt
4375
4376commit f497794b6962eaf802ab4ac2a7b22ae591cca1d5
4377Author: Damien Miller <djm@mindrot.org>
4378Date: Wed Jul 30 12:32:46 2014 +1000
4379
4380 - dtucker@cvs.openbsd.org 2014/07/25 21:22:03
4381 [ssh-agent.c]
4382 Clear buffer used for handling messages. This prevents keys being
4383 left in memory after they have been expired or deleted in some cases
4384 (but note that ssh-agent is setgid so you would still need root to
4385 access them). Pointed out by Kevin Burns, ok deraadt
4386
4387commit a8a0f65c57c8ecba94d65948e9090da54014dfef
4388Author: Damien Miller <djm@mindrot.org>
4389Date: Wed Jul 30 12:32:28 2014 +1000
4390
4391 - OpenBSD CVS Sync
4392 - millert@cvs.openbsd.org 2014/07/24 22:57:10
4393 [ssh.1]
4394 Mention UNIX-domain socket forwarding too. OK jmc@ deraadt@
4395
4396commit 56b840f2b81e14a2f95c203403633a72566736f8
4397Author: Damien Miller <djm@mindrot.org>
4398Date: Fri Jul 25 08:11:30 2014 +1000
4399
4400 - (djm) [regress/multiplex.sh] restore incorrectly deleted line;
4401 pointed out by Christian Hesse
4402
4403commit dd417b60d5ca220565d1014e92b7f8f43dc081eb
4404Author: Darren Tucker <dtucker@zip.com.au>
4405Date: Wed Jul 23 10:41:21 2014 +1000
4406
4407 - dtucker@cvs.openbsd.org 2014/07/22 23:35:38
4408 [regress/unittests/sshkey/testdata/*]
4409 Regenerate test keys with certs signed with ed25519 instead of ecdsa.
4410 These can be used in -portable on platforms that don't support ECDSA.
4411
4412commit 40e50211896369dba8f64f3b5e5fd58b76f5ac3f
4413Author: Darren Tucker <dtucker@zip.com.au>
4414Date: Wed Jul 23 10:35:45 2014 +1000
4415
4416 - dtucker@cvs.openbsd.org 2014/07/22 23:57:40
4417 [regress/unittests/sshkey/mktestdata.sh]
4418 Add $OpenBSD tag to make syncs easier
4419
4420commit 07e644251e809b1d4c062cf85bd1146a7e3f5a8a
4421Author: Darren Tucker <dtucker@zip.com.au>
4422Date: Wed Jul 23 10:34:26 2014 +1000
4423
4424 - dtucker@cvs.openbsd.org 2014/07/22 23:23:22
4425 [regress/unittests/sshkey/mktestdata.sh]
4426 Sign test certs with ed25519 instead of ecdsa so that they'll work in
4427 -portable on platforms that don't have ECDSA in their OpenSSL. ok djm
4428
4429commit cea099a7c4eaecb01b001e5453bb4e5c25006c22
4430Author: Darren Tucker <dtucker@zip.com.au>
4431Date: Wed Jul 23 10:04:02 2014 +1000
4432
4433 - djm@cvs.openbsd.org 2014/07/22 01:32:12
4434 [regress/multiplex.sh]
4435 change the test for still-open Unix domain sockets to be robust against
4436 nc implementations that produce error messages. from -portable
4437 (Id sync only)
4438
4439commit 31eb78078d349b32ea41952ecc944b3ad6cb0d45
4440Author: Darren Tucker <dtucker@zip.com.au>
4441Date: Wed Jul 23 09:43:42 2014 +1000
4442
4443 - guenther@cvs.openbsd.org 2014/07/22 07:13:42
4444 [umac.c]
4445 Convert from <sys/endian.h> to the shiney new <endian.h>
4446 ok dtucker@, who also confirmed that -portable handles this already
4447 (ID sync only, includes.h pulls in endian.h if available.)
4448
4449commit 820763efef2d19d965602533036c2b4badc9d465
4450Author: Darren Tucker <dtucker@zip.com.au>
4451Date: Wed Jul 23 09:40:46 2014 +1000
4452
4453 - dtucker@cvs.openbsd.org 2014/07/22 01:18:50
4454 [key.c]
4455 Prevent spam from key_load_private_pem during hostbased auth. ok djm@
4456
4457commit c4ee219a66f3190fa96cbd45b4d11015685c6306
4458Author: Darren Tucker <dtucker@zip.com.au>
4459Date: Wed Jul 23 04:27:50 2014 +1000
4460
4461 - (dtucker) [regress/unittests/sshkey/test_{file,fuzz,sshkey}.c] Wrap ecdsa-
4462 specific tests inside OPENSSL_HAS_ECC.
4463
4464commit 04f4824940ea3edd60835416ececbae16438968a
4465Author: Damien Miller <djm@mindrot.org>
4466Date: Tue Jul 22 11:31:47 2014 +1000
4467
4468 - (djm) [regress/multiplex.sh] change the test for still-open Unix
4469 domain sockets to be robust against nc implementations that produce
4470 error messages.
4471
4472commit 5ea4fe00d55453aaa44007330bb4c3181bd9b796
4473Author: Damien Miller <djm@mindrot.org>
4474Date: Tue Jul 22 09:39:19 2014 +1000
4475
4476 - (djm) [regress/multiplex.sh] ssh mux master lost -N somehow;
4477 put it back
4478
4479commit 948a1774a79a85f9deba6d74db95f402dee32c69
4480Author: Darren Tucker <dtucker@zip.com.au>
4481Date: Tue Jul 22 01:07:11 2014 +1000
4482
4483 - (dtucker) [sshkey.c] ifdef out unused variable when compiling without
4484 OPENSSL_HAS_ECC.
4485
4486commit c8f610f6cc57ae129758052439d9baf13699097b
4487Author: Damien Miller <djm@mindrot.org>
4488Date: Mon Jul 21 10:23:27 2014 +1000
4489
4490 - (djm) [regress/multiplex.sh] Not all netcat accept the -N option.
4491
4492commit 0e4e95566cd95c887f69272499b8f3880b3ec0f5
4493Author: Damien Miller <djm@mindrot.org>
4494Date: Mon Jul 21 09:52:54 2014 +1000
4495
4496 - millert@cvs.openbsd.org 2014/07/15 15:54:15
4497 [forwarding.sh multiplex.sh]
4498 Add support for Unix domain socket forwarding. A remote TCP port
4499 may be forwarded to a local Unix domain socket and vice versa or
4500 both ends may be a Unix domain socket. This is a reimplementation
4501 of the streamlocal patches by William Ahern from:
4502 http://www.25thandclement.com/~william/projects/streamlocal.html
4503 OK djm@ markus@
4504
4505commit 93a87ab27ecdc709169fb24411133998f81e2761
4506Author: Darren Tucker <dtucker@zip.com.au>
4507Date: Mon Jul 21 06:30:25 2014 +1000
4508
4509 - (dtucker) [regress/unittests/sshkey/
4510 {common,test_file,test_fuzz,test_sshkey}.c] Wrap stdint.h includes in
4511 ifdefs.
4512
4513commit 5573171352ea23df2dc6d2fe0324d023b7ba697c
4514Author: Darren Tucker <dtucker@zip.com.au>
4515Date: Mon Jul 21 02:24:59 2014 +1000
4516
4517 - (dtucker) [cipher.c openbsd-compat/openssl-compat.h] Restore the bits
4518 needed to build AES CTR mode against OpenSSL 0.9.8f and above. ok djm
4519
4520commit 74e28682711d005026c7c8f15f96aea9d3c8b5a3
4521Author: Tim Rice <tim@multitalents.net>
4522Date: Fri Jul 18 20:00:11 2014 -0700
4523
4524 - (tim) [openbsd-compat/port-uw.c] Include misc.h for fwd_opts, used
4525 in servconf.h.
4526
4527commit d1a0421f8e5e933fee6fb58ee6b9a22c63c8a613
4528Author: Darren Tucker <dtucker@zip.com.au>
4529Date: Sat Jul 19 07:23:55 2014 +1000
4530
4531 - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
4532
4533commit f0fe9ea1be62227c130b317769de3d1e736b6dc1
4534Author: Darren Tucker <dtucker@zip.com.au>
4535Date: Sat Jul 19 06:33:12 2014 +1000
4536
4537 - (dtucker) [Makefile.in] Add a t-exec target to run just the executable
4538 tests.
4539
4540commit 450bc1180d4b061434a4b733c5c8814fa30b022b
4541Author: Darren Tucker <dtucker@zip.com.au>
4542Date: Sat Jul 19 06:23:18 2014 +1000
4543
4544 - (dtucker) [auth2-gss.c gss-serv-krb5.c] Include misc.h for fwd_opts, used
4545 in servconf.h.
4546
4547commit ab2ec586baad122ed169285c31927ccf58bc7b28
4548Author: Damien Miller <djm@mindrot.org>
4549Date: Fri Jul 18 15:04:47 2014 +1000
4550
4551 - djm@cvs.openbsd.org 2014/07/18 02:46:01
4552 [ssh-agent.c]
4553 restore umask around listener socket creation (dropped in streamlocal patch
4554 merge)
4555
4556commit 357610d15946381ae90c271837dcdd0cdce7145f
4557Author: Damien Miller <djm@mindrot.org>
4558Date: Fri Jul 18 15:04:10 2014 +1000
4559
4560 - djm@cvs.openbsd.org 2014/07/17 07:22:19
4561 [mux.c ssh.c]
4562 reflect stdio-forward ("ssh -W host:port ...") failures in exit status.
4563 previously we were always returning 0. bz#2255 reported by Brendan
4564 Germain; ok dtucker
4565
4566commit dad9a4a0b7c2b5d78605f8df28718f116524134e
4567Author: Damien Miller <djm@mindrot.org>
4568Date: Fri Jul 18 15:03:49 2014 +1000
4569
4570 - djm@cvs.openbsd.org 2014/07/17 00:12:03
4571 [key.c]
4572 silence "incorrect passphrase" error spam; reported and ok dtucker@
4573
4574commit f42f7684ecbeec6ce50e0310f80b3d6da2aaf533
4575Author: Damien Miller <djm@mindrot.org>
4576Date: Fri Jul 18 15:03:27 2014 +1000
4577
4578 - djm@cvs.openbsd.org 2014/07/17 00:10:18
4579 [mux.c]
4580 preserve errno across syscall
4581
4582commit 1b83320628cb0733e3688b85bfe4d388a7c51909
4583Author: Damien Miller <djm@mindrot.org>
4584Date: Fri Jul 18 15:03:02 2014 +1000
4585
4586 - djm@cvs.openbsd.org 2014/07/17 00:10:56
4587 [sandbox-systrace.c]
4588 ifdef SYS_sendsyslog so this will compile without patching on -stable
4589
4590commit 6d57656331bcd754d912950e4a18ad259d596e61
4591Author: Damien Miller <djm@mindrot.org>
4592Date: Fri Jul 18 15:02:06 2014 +1000
4593
4594 - jmc@cvs.openbsd.org 2014/07/16 14:48:57
4595 [ssh.1]
4596 add the streamlocal* options to ssh's -o list; millert says they're
4597 irrelevant for scp/sftp;
4598
4599 ok markus millert
4600
4601commit 7acefbbcbeab725420ea07397ae35992f505f702
4602Author: Damien Miller <djm@mindrot.org>
4603Date: Fri Jul 18 14:11:24 2014 +1000
4604
4605 - millert@cvs.openbsd.org 2014/07/15 15:54:14
4606 [PROTOCOL auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c]
4607 [auth-rsa.c auth.c auth1.c auth2-hostbased.c auth2-kbdint.c auth2-none.c]
4608 [auth2-passwd.c auth2-pubkey.c auth2.c canohost.c channels.c channels.h]
4609 [clientloop.c misc.c misc.h monitor.c mux.c packet.c readconf.c]
4610 [readconf.h servconf.c servconf.h serverloop.c session.c ssh-agent.c]
4611 [ssh.c ssh_config.5 sshconnect.c sshconnect1.c sshconnect2.c sshd.c]
4612 [sshd_config.5 sshlogin.c]
4613 Add support for Unix domain socket forwarding. A remote TCP port
4614 may be forwarded to a local Unix domain socket and vice versa or
4615 both ends may be a Unix domain socket. This is a reimplementation
4616 of the streamlocal patches by William Ahern from:
4617 http://www.25thandclement.com/~william/projects/streamlocal.html
4618 OK djm@ markus@
4619
4620commit 6262d760e00714523633bd989d62e273a3dca99a
4621Author: Damien Miller <djm@mindrot.org>
4622Date: Thu Jul 17 09:52:07 2014 +1000
4623
4624 - tedu@cvs.openbsd.org 2014/07/11 13:54:34
4625 [myproposal.h]
4626 by popular demand, add back hamc-sha1 to server proposal for better compat
4627 with many clients still in use. ok deraadt
4628
4629commit 9d69d937b46ecba17f16d923e538ceda7b705c7a
4630Author: Damien Miller <djm@mindrot.org>
4631Date: Thu Jul 17 09:49:37 2014 +1000
4632
4633 - deraadt@cvs.openbsd.org 2014/07/11 08:09:54
4634 [sandbox-systrace.c]
4635 Permit use of SYS_sendsyslog from inside the sandbox. Clock is ticking,
4636 update your kernels and sshd soon.. libc will start using sendsyslog()
4637 in about 4 days.
4638
4639commit f6293a0b4129826fc2e37e4062f96825df43c326
4640Author: Damien Miller <djm@mindrot.org>
4641Date: Thu Jul 17 09:01:25 2014 +1000
4642
4643 - (djm) [digest-openssl.c] Preserve array order when disabling digests.
4644 Reported by Petr Lautrbach.
4645
4646commit 00f9cd230709c04399ef5ff80492d70a55230694
4647Author: Damien Miller <djm@mindrot.org>
4648Date: Tue Jul 15 10:41:38 2014 +1000
4649
4650 - (djm) [configure.ac] Delay checks for arc4random* until after libcrypto
4651 has been located; fixes builds agains libressl-portable
4652
4653commit 1d0df3249c87019556b83306c28d4769375c2edc
4654Author: Damien Miller <djm@mindrot.org>
4655Date: Fri Jul 11 09:19:04 2014 +1000
4656
4657 - OpenBSD CVS Sync
4658 - benno@cvs.openbsd.org 2014/07/09 14:15:56
4659 [ssh-add.c]
4660 fix ssh-add crash while loading more than one key
4661 ok markus@
4662
4663commit 7a57eb3d105aa4ced15fb47001092c58811e6d9d
4664Author: Damien Miller <djm@mindrot.org>
4665Date: Wed Jul 9 13:22:31 2014 +1000
4666
4667 - djm@cvs.openbsd.org 2014/07/07 08:15:26
4668 [multiplex.sh]
4669 remove forced-fatal that I stuck in there to test the new cleanup
4670 logic and forgot to remove...
4671
4672commit 612f965239a30fe536b11ece1834d9f470aeb029
4673Author: Damien Miller <djm@mindrot.org>
4674Date: Wed Jul 9 13:22:03 2014 +1000
4675
4676 - djm@cvs.openbsd.org 2014/07/06 07:42:03
4677 [multiplex.sh test-exec.sh]
4678 add a hook to the cleanup() function to kill $SSH_PID if it is set
4679
4680 use it to kill the mux master started in multiplex.sh (it was being left
4681 around on fatal failures)
4682
4683commit d0bb950485ba121e43a77caf434115ed6417b46f
4684Author: Damien Miller <djm@mindrot.org>
4685Date: Wed Jul 9 13:07:28 2014 +1000
4686
4687 - djm@cvs.openbsd.org 2014/07/09 03:02:15
4688 [key.c]
4689 downgrade more error() to debug() to better match what old authfile.c
4690 did; suppresses spurious errors with hostbased authentication enabled
4691
4692commit 0070776a038655c57f57e70cd05e4c38a5de9d84
4693Author: Damien Miller <djm@mindrot.org>
4694Date: Wed Jul 9 13:07:06 2014 +1000
4695
4696 - djm@cvs.openbsd.org 2014/07/09 01:45:10
4697 [sftp.c]
4698 more useful error message when GLOB_NOSPACE occurs;
4699 bz#2254, patch from Orion Poplawski
4700
4701commit 079bac2a43c74ef7cf56850afbab3b1932534c50
4702Author: Damien Miller <djm@mindrot.org>
4703Date: Wed Jul 9 13:06:25 2014 +1000
4704
4705 - djm@cvs.openbsd.org 2014/07/07 08:19:12
4706 [ssh_config.5]
4707 mention that ProxyCommand is executed using shell "exec" to avoid
4708 a lingering process; bz#1977
4709
4710commit 3a48cc090096cf99b9de592deb5f90e444edebfb
4711Author: Damien Miller <djm@mindrot.org>
4712Date: Sun Jul 6 09:32:49 2014 +1000
4713
4714 - djm@cvs.openbsd.org 2014/07/05 23:11:48
4715 [channels.c]
4716 fix remote-forward cancel regression; ok markus@
4717
4718commit 48bae3a38cb578713e676708164f6e7151cc64fa
4719Author: Damien Miller <djm@mindrot.org>
4720Date: Sun Jul 6 09:27:06 2014 +1000
4721
4722 - djm@cvs.openbsd.org 2014/07/03 23:18:35
4723 [authfile.h]
4724 remove leakmalloc droppings
4725
4726commit 72e6b5c9ed5e72ca3a6ccc3177941b7c487a0826
4727Author: Damien Miller <djm@mindrot.org>
4728Date: Fri Jul 4 09:00:04 2014 +1000
4729
4730 - djm@cvs.openbsd.org 2014/07/03 22:40:43
4731 [servconf.c servconf.h session.c sshd.8 sshd_config.5]
4732 Add a sshd_config PermitUserRC option to control whether ~/.ssh/rc is
4733 executed, mirroring the no-user-rc authorized_keys option;
4734 bz#2160; ok markus@
4735
4736commit 602943d1179a08dfa70af94f62296ea5e3d6ebb8
4737Author: Damien Miller <djm@mindrot.org>
4738Date: Fri Jul 4 08:59:41 2014 +1000
4739
4740 - djm@cvs.openbsd.org 2014/07/03 22:33:41
4741 [channels.c]
4742 allow explicit ::1 and 127.0.0.1 forwarding bind addresses when
4743 GatewayPorts=no; allows client to choose address family;
4744 bz#2222 ok markus@
4745
4746commit 6b37fbb7921d156b31e2c8f39d9e1b6746c34983
4747Author: Damien Miller <djm@mindrot.org>
4748Date: Fri Jul 4 08:59:24 2014 +1000
4749
4750 - djm@cvs.openbsd.org 2014/07/03 22:23:46
4751 [sshconnect.c]
4752 when rekeying, skip file/DNS lookup if it is the same as the key sent
4753 during initial key exchange. bz#2154 patch from Iain Morgan; ok markus@
4754
4755commit d2c3cd5f2e47ee24cf7093ce8e948c2e79dfc3fd
4756Author: Damien Miller <djm@mindrot.org>
4757Date: Fri Jul 4 08:59:01 2014 +1000
4758
4759 - jsing@cvs.openbsd.org 2014/07/03 12:42:16
4760 [cipher-chachapoly.c]
4761 Call chacha_ivsetup() immediately before chacha_encrypt_bytes() - this
4762 makes it easier to verify that chacha_encrypt_bytes() is only called once
4763 per chacha_ivsetup() call.
4764 ok djm@
4765
4766commit 686feb560ec43a06ba04da82b50f3c183c947309
4767Author: Damien Miller <djm@mindrot.org>
4768Date: Thu Jul 3 21:29:38 2014 +1000
4769
4770 - djm@cvs.openbsd.org 2014/07/03 11:16:55
4771 [auth.c auth.h auth1.c auth2.c]
4772 make the "Too many authentication failures" message include the
4773 user, source address, port and protocol in a format similar to the
4774 authentication success / failure messages; bz#2199, ok dtucker
4775
4776commit 0f12341402e18fd9996ec23189b9418d2722453f
4777Author: Damien Miller <djm@mindrot.org>
4778Date: Thu Jul 3 21:28:09 2014 +1000
4779
4780 - jmc@cvs.openbsd.org 2014/07/03 07:45:27
4781 [ssh_config.5]
4782 escape %C since groff thinks it part of an Rs/Re block;
4783
4784commit 9c38643c5cd47a19db2cc28279dcc28abadc22b3
4785Author: Damien Miller <djm@mindrot.org>
4786Date: Thu Jul 3 21:27:46 2014 +1000
4787
4788 - djm@cvs.openbsd.org 2014/07/03 06:39:19
4789 [ssh.c ssh_config.5]
4790 Add a %C escape sequence for LocalCommand and ControlPath that expands
4791 to a unique identifer based on a has of the tuple of (local host,
4792 remote user, hostname, port).
4793
4794 Helps avoid exceeding sockaddr_un's miserly pathname limits for mux
4795 control paths.
4796
4797 bz#2220, based on patch from mancha1 AT zoho.com; ok markus@
4798
4799commit 49d9bfe2b2f3e90cc158a215dffa7675e57e7830
4800Author: Damien Miller <djm@mindrot.org>
4801Date: Thu Jul 3 21:26:42 2014 +1000
4802
4803 - djm@cvs.openbsd.org 2014/07/03 05:38:17
4804 [ssh.1]
4805 document that -g will only work in the multiplexed case if applied to
4806 the mux master
4807
4808commit ef9f13ba4c58057b2166d1f2e790535da402fbe5
4809Author: Damien Miller <djm@mindrot.org>
4810Date: Thu Jul 3 21:26:21 2014 +1000
4811
4812 - djm@cvs.openbsd.org 2014/07/03 05:32:36
4813 [ssh_config.5]
4814 mention '%%' escape sequence in HostName directives and how it may
4815 be used to specify IPv6 link-local addresses
4816
4817commit e6a407789e5432dd2e53336fb73476cc69048c54
4818Author: Damien Miller <djm@mindrot.org>
4819Date: Thu Jul 3 21:25:03 2014 +1000
4820
4821 - djm@cvs.openbsd.org 2014/07/03 04:36:45
4822 [digest.h]
4823 forward-declare struct sshbuf so consumers don't need to include sshbuf.h
4824
4825commit 4a1d3d50f02d0a8a4ef95ea4749293cbfb89f919
4826Author: Damien Miller <djm@mindrot.org>
4827Date: Thu Jul 3 21:24:40 2014 +1000
4828
4829 - djm@cvs.openbsd.org 2014/07/03 03:47:27
4830 [ssh-keygen.c]
4831 When hashing or removing hosts using ssh-keygen, don't choke on
4832 @revoked markers and don't remove @cert-authority markers;
4833 bz#2241, reported by mlindgren AT runelind.net
4834
4835commit e5c0d52ceb575c3db8c313e0b1aa3845943d7ba8
4836Author: Damien Miller <djm@mindrot.org>
4837Date: Thu Jul 3 21:24:19 2014 +1000
4838
4839 - djm@cvs.openbsd.org 2014/07/03 03:34:09
4840 [gss-serv.c session.c ssh-keygen.c]
4841 standardise on NI_MAXHOST for gethostname() string lengths; about
4842 1/2 the cases were using it already. Fixes bz#2239 en passant
4843
4844commit c174a3b7c14e0d178c61219de2aa1110e209950c
4845Author: Damien Miller <djm@mindrot.org>
4846Date: Thu Jul 3 21:23:24 2014 +1000
4847
4848 - djm@cvs.openbsd.org 2014/07/03 03:26:43
4849 [digest-openssl.c]
4850 use EVP_Digest() for one-shot hash instead of creating, updating,
4851 finalising and destroying a context.
4852 bz#2231, based on patch from Timo Teras
4853
4854commit d7ca2cd31ecc4d63a055e2dcc4bf35c13f2db4c5
4855Author: Damien Miller <djm@mindrot.org>
4856Date: Thu Jul 3 21:23:01 2014 +1000
4857
4858 - djm@cvs.openbsd.org 2014/07/03 03:15:01
4859 [ssh-add.c]
4860 make stdout line-buffered; saves partial output getting lost when
4861 ssh-add fatal()s part-way through (e.g. when listing keys from an
4862 agent that supports key types that ssh-add doesn't);
4863 bz#2234, reported by Phil Pennock
4864
4865commit b1e967c8d7c7578dd0c172d85b3046cf54ea42ba
4866Author: Damien Miller <djm@mindrot.org>
4867Date: Thu Jul 3 21:22:40 2014 +1000
4868
4869 - djm@cvs.openbsd.org 2014/07/03 03:11:03
4870 [ssh-agent.c]
4871 Only cleanup agent socket in the main agent process and not in any
4872 subprocesses it may have started (e.g. forked askpass). Fixes
4873 agent sockets being zapped when askpass processes fatal();
4874 bz#2236 patch from Dmitry V. Levin
4875
4876commit 61e28e55c3438d796b02ef878bcd28620d452670
4877Author: Damien Miller <djm@mindrot.org>
4878Date: Thu Jul 3 21:22:22 2014 +1000
4879
4880 - djm@cvs.openbsd.org 2014/07/03 01:45:38
4881 [sshkey.c]
4882 make Ed25519 keys' title fit properly in the randomart border; bz#2247
4883 based on patch from Christian Hesse
4884
4885commit 9eb4cd9a32c32d40d36450b68ed93badc6a94c68
4886Author: Damien Miller <djm@mindrot.org>
4887Date: Thu Jul 3 13:29:50 2014 +1000
4888
4889 - (djm) [monitor_fdpass.c] Use sys/poll.h if poll.h doesn't exist;
4890 bz#2237
4891
4892commit 8da0fa24934501909408327298097b1629b89eaa
4893Author: Damien Miller <djm@mindrot.org>
4894Date: Thu Jul 3 11:54:19 2014 +1000
4895
4896 - (djm) [digest-openssl.c configure.ac] Disable RIPEMD160 if libcrypto
4897 doesn't support it.
4898
4899commit 81309c857dd0dbc0a1245a16d621c490ad48cfbb
4900Author: Damien Miller <djm@mindrot.org>
4901Date: Wed Jul 2 17:45:55 2014 +1000
4902
4903 - (djm) [regress/Makefile] fix execution of sshkey unit/fuzz test
4904
4905commit 82b2482ce68654815ee049b9bf021bb362a35ff2
4906Author: Damien Miller <djm@mindrot.org>
4907Date: Wed Jul 2 17:43:41 2014 +1000
4908
4909 - (djm) [sshkey.c] Conditionalise inclusion of util.h
4910
4911commit dd8b1dd7933eb6f5652641b0cdced34a387f2e80
4912Author: Damien Miller <djm@mindrot.org>
4913Date: Wed Jul 2 17:38:31 2014 +1000
4914
4915 - djm@cvs.openbsd.org 2014/06/24 01:14:17
4916 [Makefile.in regress/Makefile regress/unittests/Makefile]
4917 [regress/unittests/sshkey/Makefile]
4918 [regress/unittests/sshkey/common.c]
4919 [regress/unittests/sshkey/common.h]
4920 [regress/unittests/sshkey/mktestdata.sh]
4921 [regress/unittests/sshkey/test_file.c]
4922 [regress/unittests/sshkey/test_fuzz.c]
4923 [regress/unittests/sshkey/test_sshkey.c]
4924 [regress/unittests/sshkey/tests.c]
4925 [regress/unittests/sshkey/testdata/dsa_1]
4926 [regress/unittests/sshkey/testdata/dsa_1-cert.fp]
4927 [regress/unittests/sshkey/testdata/dsa_1-cert.pub]
4928 [regress/unittests/sshkey/testdata/dsa_1.fp]
4929 [regress/unittests/sshkey/testdata/dsa_1.fp.bb]
4930 [regress/unittests/sshkey/testdata/dsa_1.param.g]
4931 [regress/unittests/sshkey/testdata/dsa_1.param.priv]
4932 [regress/unittests/sshkey/testdata/dsa_1.param.pub]
4933 [regress/unittests/sshkey/testdata/dsa_1.pub]
4934 [regress/unittests/sshkey/testdata/dsa_1_pw]
4935 [regress/unittests/sshkey/testdata/dsa_2]
4936 [regress/unittests/sshkey/testdata/dsa_2.fp]
4937 [regress/unittests/sshkey/testdata/dsa_2.fp.bb]
4938 [regress/unittests/sshkey/testdata/dsa_2.pub]
4939 [regress/unittests/sshkey/testdata/dsa_n]
4940 [regress/unittests/sshkey/testdata/dsa_n_pw]
4941 [regress/unittests/sshkey/testdata/ecdsa_1]
4942 [regress/unittests/sshkey/testdata/ecdsa_1-cert.fp]
4943 [regress/unittests/sshkey/testdata/ecdsa_1-cert.pub]
4944 [regress/unittests/sshkey/testdata/ecdsa_1.fp]
4945 [regress/unittests/sshkey/testdata/ecdsa_1.fp.bb]
4946 [regress/unittests/sshkey/testdata/ecdsa_1.param.curve]
4947 [regress/unittests/sshkey/testdata/ecdsa_1.param.priv]
4948 [regress/unittests/sshkey/testdata/ecdsa_1.param.pub]
4949 [regress/unittests/sshkey/testdata/ecdsa_1.pub]
4950 [regress/unittests/sshkey/testdata/ecdsa_1_pw]
4951 [regress/unittests/sshkey/testdata/ecdsa_2]
4952 [regress/unittests/sshkey/testdata/ecdsa_2.fp]
4953 [regress/unittests/sshkey/testdata/ecdsa_2.fp.bb]
4954 [regress/unittests/sshkey/testdata/ecdsa_2.param.curve]
4955 [regress/unittests/sshkey/testdata/ecdsa_2.param.priv]
4956 [regress/unittests/sshkey/testdata/ecdsa_2.param.pub]
4957 [regress/unittests/sshkey/testdata/ecdsa_2.pub]
4958 [regress/unittests/sshkey/testdata/ecdsa_n]
4959 [regress/unittests/sshkey/testdata/ecdsa_n_pw]
4960 [regress/unittests/sshkey/testdata/ed25519_1]
4961 [regress/unittests/sshkey/testdata/ed25519_1-cert.fp]
4962 [regress/unittests/sshkey/testdata/ed25519_1-cert.pub]
4963 [regress/unittests/sshkey/testdata/ed25519_1.fp]
4964 [regress/unittests/sshkey/testdata/ed25519_1.fp.bb]
4965 [regress/unittests/sshkey/testdata/ed25519_1.pub]
4966 [regress/unittests/sshkey/testdata/ed25519_1_pw]
4967 [regress/unittests/sshkey/testdata/ed25519_2]
4968 [regress/unittests/sshkey/testdata/ed25519_2.fp]
4969 [regress/unittests/sshkey/testdata/ed25519_2.fp.bb]
4970 [regress/unittests/sshkey/testdata/ed25519_2.pub]
4971 [regress/unittests/sshkey/testdata/pw]
4972 [regress/unittests/sshkey/testdata/rsa1_1]
4973 [regress/unittests/sshkey/testdata/rsa1_1.fp]
4974 [regress/unittests/sshkey/testdata/rsa1_1.fp.bb]
4975 [regress/unittests/sshkey/testdata/rsa1_1.param.n]
4976 [regress/unittests/sshkey/testdata/rsa1_1.pub]
4977 [regress/unittests/sshkey/testdata/rsa1_1_pw]
4978 [regress/unittests/sshkey/testdata/rsa1_2]
4979 [regress/unittests/sshkey/testdata/rsa1_2.fp]
4980 [regress/unittests/sshkey/testdata/rsa1_2.fp.bb]
4981 [regress/unittests/sshkey/testdata/rsa1_2.param.n]
4982 [regress/unittests/sshkey/testdata/rsa1_2.pub]
4983 [regress/unittests/sshkey/testdata/rsa_1]
4984 [regress/unittests/sshkey/testdata/rsa_1-cert.fp]
4985 [regress/unittests/sshkey/testdata/rsa_1-cert.pub]
4986 [regress/unittests/sshkey/testdata/rsa_1.fp]
4987 [regress/unittests/sshkey/testdata/rsa_1.fp.bb]
4988 [regress/unittests/sshkey/testdata/rsa_1.param.n]
4989 [regress/unittests/sshkey/testdata/rsa_1.param.p]
4990 [regress/unittests/sshkey/testdata/rsa_1.param.q]
4991 [regress/unittests/sshkey/testdata/rsa_1.pub]
4992 [regress/unittests/sshkey/testdata/rsa_1_pw]
4993 [regress/unittests/sshkey/testdata/rsa_2]
4994 [regress/unittests/sshkey/testdata/rsa_2.fp]
4995 [regress/unittests/sshkey/testdata/rsa_2.fp.bb]
4996 [regress/unittests/sshkey/testdata/rsa_2.param.n]
4997 [regress/unittests/sshkey/testdata/rsa_2.param.p]
4998 [regress/unittests/sshkey/testdata/rsa_2.param.q]
4999 [regress/unittests/sshkey/testdata/rsa_2.pub]
5000 [regress/unittests/sshkey/testdata/rsa_n]
5001 [regress/unittests/sshkey/testdata/rsa_n_pw]
5002 unit and fuzz tests for new key API
5003
5004commit c1dc24b71f087f385b92652b9673f52af64e0428
5005Author: Damien Miller <djm@mindrot.org>
5006Date: Wed Jul 2 17:02:03 2014 +1000
5007
5008 - djm@cvs.openbsd.org 2014/06/24 01:04:43
5009 [regress/krl.sh]
5010 regress test for broken consecutive revoked serial number ranges
5011
5012commit 43d3ed2dd3feca6d0326c7dc82588d2faa115e92
5013Author: Damien Miller <djm@mindrot.org>
5014Date: Wed Jul 2 17:01:08 2014 +1000
5015
5016 - djm@cvs.openbsd.org 2014/05/21 07:04:21
5017 [regress/integrity.sh]
5018 when failing because of unexpected output, show the offending output
5019
5020commit 5a96707ffc8d227c2e7d94fa6b0317f8a152cf4e
5021Author: Damien Miller <djm@mindrot.org>
5022Date: Wed Jul 2 15:38:05 2014 +1000
5023
5024 - djm@cvs.openbsd.org 2014/04/30 05:32:00
5025 [regress/Makefile]
5026 unit tests for new buffer API; including basic fuzz testing
5027 NB. Id sync only.
5028
5029commit 3ff92ba756aee48e4ae3e0aeff7293517b3dd185
5030Author: Damien Miller <djm@mindrot.org>
5031Date: Wed Jul 2 15:33:09 2014 +1000
5032
5033 - djm@cvs.openbsd.org 2014/06/30 12:54:39
5034 [key.c]
5035 suppress spurious error message when loading key with a passphrase;
5036 reported by kettenis@ ok markus@
5037 - djm@cvs.openbsd.org 2014/07/02 04:59:06
5038 [cipher-3des1.c]
5039 fix ssh protocol 1 on the server that regressed with the sshkey change
5040 (sometimes fatal() after auth completed), make file return useful status
5041 codes.
5042 NB. Id sync only for these two. They were bundled into the sshkey merge
5043 above, since it was easier to sync the entire file and then apply
5044 portable-specific changed atop it.
5045
5046commit ec3d0e24a1e46873d80507f5cd8ee6d0d03ac5dc
5047Author: Damien Miller <djm@mindrot.org>
5048Date: Wed Jul 2 15:30:00 2014 +1000
5049
5050 - markus@cvs.openbsd.org 2014/06/27 18:50:39
5051 [ssh-add.c]
5052 fix loading of private keys
5053
5054commit 4b3ed647d5b328cf68e6a8ffbee490d8e0683e82
5055Author: Damien Miller <djm@mindrot.org>
5056Date: Wed Jul 2 15:29:40 2014 +1000
5057
5058 - markus@cvs.openbsd.org 2014/06/27 16:41:56
5059 [channels.c channels.h clientloop.c ssh.c]
5060 fix remote fwding with same listen port but different listen address
5061 with gerhard@, ok djm@
5062
5063commit 9e01ff28664921ce9b6500681333e42fb133b4d0
5064Author: Damien Miller <djm@mindrot.org>
5065Date: Wed Jul 2 15:29:21 2014 +1000
5066
5067 - deraadt@cvs.openbsd.org 2014/06/25 14:16:09
5068 [sshbuf.c]
5069 unblock SIGSEGV before raising it
5070 ok djm
5071
5072commit 1845fe6bda0729e52f4c645137f4fc3070b5438a
5073Author: Damien Miller <djm@mindrot.org>
5074Date: Wed Jul 2 15:29:01 2014 +1000
5075
5076 - djm@cvs.openbsd.org 2014/06/24 02:21:01
5077 [scp.c]
5078 when copying local->remote fails during read, don't send uninitialised
5079 heap to the remote end. Reported by Jann Horn
5080
5081commit 19439e9a2a0ac0b4b3b1210e89695418beb1c883
5082Author: Damien Miller <djm@mindrot.org>
5083Date: Wed Jul 2 15:28:40 2014 +1000
5084
5085 - djm@cvs.openbsd.org 2014/06/24 02:19:48
5086 [ssh.c]
5087 don't fatal() when hostname canonicalisation fails with a
5088 ProxyCommand in use; continue and allow the ProxyCommand to
5089 connect anyway (e.g. to a host with a name outside the DNS
5090 behind a bastion)
5091
5092commit 8668706d0f52654fe64c0ca41a96113aeab8d2b8
5093Author: Damien Miller <djm@mindrot.org>
5094Date: Wed Jul 2 15:28:02 2014 +1000
5095
5096 - djm@cvs.openbsd.org 2014/06/24 01:13:21
5097 [Makefile.in auth-bsdauth.c auth-chall.c auth-options.c auth-rsa.c
5098 [auth2-none.c auth2-pubkey.c authfile.c authfile.h cipher-3des1.c
5099 [cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h
5100 [digest-libc.c digest-openssl.c digest.h dns.c entropy.c hmac.h
5101 [hostfile.c key.c key.h krl.c monitor.c packet.c rsa.c rsa.h
5102 [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c
5103 [ssh-keygen.c ssh-pkcs11-client.c ssh-pkcs11-helper.c ssh-pkcs11.c
5104 [ssh-rsa.c sshbuf-misc.c sshbuf.h sshconnect.c sshconnect1.c
5105 [sshconnect2.c sshd.c sshkey.c sshkey.h
5106 [openbsd-compat/openssl-compat.c openbsd-compat/openssl-compat.h]
5107 New key API: refactor key-related functions to be more library-like,
5108 existing API is offered as a set of wrappers.
5109
5110 with and ok markus@
5111
5112 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
5113 Dempsky and Ron Bowes for a detailed review a few months ago.
5114
5115 NB. This commit also removes portable OpenSSH support for OpenSSL
5116 <0.9.8e.
5117
5118commit 2cd7929250cf9e9f658d70dcd452f529ba08c942
5119Author: Damien Miller <djm@mindrot.org>
5120Date: Wed Jul 2 12:48:30 2014 +1000
5121
5122 - djm@cvs.openbsd.org 2014/06/24 00:52:02
5123 [krl.c]
5124 fix bug in KRL generation: multiple consecutive revoked certificate
5125 serial number ranges could be serialised to an invalid format.
5126
5127 Readers of a broken KRL caused by this bug will fail closed, so no
5128 should-have-been-revoked key will be accepted.
5129
5130commit 99db840ee8dbbd2b3fbc6c45d0ee2f6a65e96898
5131Author: Damien Miller <djm@mindrot.org>
5132Date: Wed Jul 2 12:48:04 2014 +1000
5133
5134 - naddy@cvs.openbsd.org 2014/06/18 15:42:09
5135 [sshbuf-getput-crypto.c]
5136 The ssh_get_bignum functions must accept the same range of bignums
5137 the corresponding ssh_put_bignum functions create. This fixes the
5138 use of 16384-bit RSA keys (bug reported by Eivind Evensen).
5139 ok djm@
5140
5141commit 84a89161a9629239b64171ef3e22ef6a3e462d51
5142Author: Damien Miller <djm@mindrot.org>
5143Date: Wed Jul 2 12:47:48 2014 +1000
5144
5145 - matthew@cvs.openbsd.org 2014/06/18 02:59:13
5146 [sandbox-systrace.c]
5147 Now that we have a dedicated getentropy(2) system call for
5148 arc4random(3), we can disallow __sysctl(2) in OpenSSH's systrace
5149 sandbox.
5150
5151 ok djm
5152
5153commit 51504ceec627c0ad57b9f75585c7b3d277f326be
5154Author: Damien Miller <djm@mindrot.org>
5155Date: Wed Jul 2 12:47:25 2014 +1000
5156
5157 - deraadt@cvs.openbsd.org 2014/06/13 08:26:29
5158 [sandbox-systrace.c]
5159 permit SYS_getentropy
5160 from matthew
5161
5162commit a261b8df59117f7dc52abb3a34b35a40c2c9fa88
5163Author: Tim Rice <tim@multitalents.net>
5164Date: Wed Jun 18 16:17:28 2014 -0700
5165
5166 - (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
5167
5168commit 316fac6f18f87262a315c79bcf68b9f92c9337e4
5169Author: Darren Tucker <dtucker@zip.com.au>
5170Date: Tue Jun 17 23:06:07 2014 +1000
5171
5172 - (dtucker) [entropy.c openbsd-compat/openssl-compat.{c,h}
5173 openbsd-compat/regress/{.cvsignore,Makefile.in,opensslvertest.c}]
5174 Move the OpenSSL header/library version test into its own function and add
5175 tests for it. Fix it to allow fix version upgrades (but not downgrades).
5176 Prompted by chl@ via OpenSMTPD (issue #462) and Debian (bug #748150).
5177 ok djm@ chl@
5178
5179commit af665bb7b092a59104db1e65577851cf35b86e32
5180Author: Darren Tucker <dtucker@zip.com.au>
5181Date: Mon Jun 16 22:50:55 2014 +1000
5182
5183 - (dtucker) [defines.h] Fix undef of _PATH_MAILDIR. From rak at debian via
5184 OpenSMTPD and chl@
5185
5186commit f9696566fb41320820f3b257ab564fa321bb3751
5187Author: Darren Tucker <dtucker@zip.com.au>
5188Date: Fri Jun 13 11:06:04 2014 +1000
5189
5190 - (dtucker) [configure.ac] Remove tcpwrappers support, support has already
5191 been removed from sshd.c.
5192
5193commit 5e2b8894b0b24af4ad0a2f7aa33ebf255df7a8bc
5194Author: Tim Rice <tim@multitalents.net>
5195Date: Wed Jun 11 18:31:10 2014 -0700
5196
5197 - (tim) [regress/unittests/test_helper/test_helper.h] Add includes.h for
5198 u_intXX_t types.
5199
5200commit 985ee2cbc3e43bc65827c3c0d4df3faa99160c37
5201Author: Darren Tucker <dtucker@zip.com.au>
5202Date: Thu Jun 12 05:32:29 2014 +1000
5203
5204 - (dtucker) [regress/unittests/sshbuf/*.c regress/unittests/test_helper/*]
5205 Wrap stdlib.h include an ifdef for platforms that don't have it.
5206
5207commit cf5392c2db2bb1dbef9818511d34056404436109
5208Author: Darren Tucker <dtucker@zip.com.au>
5209Date: Thu Jun 12 05:22:49 2014 +1000
5210
5211 - (dtucker) [defines.h] Add va_copy if we don't already have it, taken from
5212 openbsd-compat/bsd-asprintf.c.
5213
5214commit 58538d795e0b662f2f4e5a7193f1204bbe992ddd
5215Author: Darren Tucker <dtucker@zip.com.au>
5216Date: Wed Jun 11 13:39:24 2014 +1000
5217
5218 - (dtucker) [bufaux.c bufbn.c bufec.c buffer.c] Pull in includes.h for
5219 compat stuff, specifically whether or not OpenSSL has ECC.
5220
5221commit eb012ac581fd0abc16ee86ee3a68cf07c8ce4d08
5222Author: Darren Tucker <dtucker@zip.com.au>
5223Date: Wed Jun 11 13:10:00 2014 +1000
5224
5225 - (dtucker) [openbsd-compat/arc4random.c] Use explicit_bzero instead of an
5226 assigment that might get optimized out. ok djm@
5227
5228commit b9609fd86c623d6d440e630f5f9a63295f7aea20
5229Author: Darren Tucker <dtucker@zip.com.au>
5230Date: Wed Jun 11 08:04:02 2014 +1000
5231
5232 - (dtucker) [sshbuf.h] Only declare ECC functions if building without
5233 OpenSSL or if OpenSSL has ECC.
5234
5235commit a54a040f66944c6e8913df8635a01a2327219be9
5236Author: Darren Tucker <dtucker@zip.com.au>
5237Date: Wed Jun 11 07:58:35 2014 +1000
5238
5239 - dtucker@cvs.openbsd.org 2014/06/10 21:46:11
5240 [sshbuf.h]
5241 Group ECC functions together to make things a little easier in -portable.
5242 "doesn't bother me" deraadt@
5243
5244commit 9f92c53bad04a89067756be8198d4ec2d8a08875
5245Author: Darren Tucker <dtucker@zip.com.au>
5246Date: Wed Jun 11 07:57:58 2014 +1000
5247
5248 - djm@cvs.openbsd.org 2014/06/05 22:17:50
5249 [sshconnect2.c]
5250 fix inverted test that caused PKCS#11 keys that were explicitly listed
5251 not to be preferred. Reported by Dirk-Willem van Gulik
5252
5253commit 15c254a25394f96643da2ad0f674acdc51e89856
5254Author: Darren Tucker <dtucker@zip.com.au>
5255Date: Wed Jun 11 07:38:49 2014 +1000
5256
5257 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] ifdef
5258 ECC variable too.
5259
5260commit d7af0cc5bf273eeed0897a99420bc26841d07d8f
5261Author: Darren Tucker <dtucker@zip.com.au>
5262Date: Wed Jun 11 07:37:25 2014 +1000
5263
5264 - (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in
5265 the proposal if the version of OpenSSL we're using doesn't support ECC.
5266
5267commit 67508ac2563c33d582be181a3e777c65f549d22f
5268Author: Darren Tucker <dtucker@zip.com.au>
5269Date: Wed Jun 11 06:27:16 2014 +1000
5270
5271 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
5272 regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256
5273 curve tests if OpenSSL has them.
5274
5275commit 6482d90a65459a88c18c925368525855832272b3
5276Author: Damien Miller <djm@mindrot.org>
5277Date: Tue May 27 14:34:42 2014 +1000
5278
5279 - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c]
5280 [openbsd-compat/bsd-cygwin_util.h] On Cygwin, determine privilege
5281 separation user at runtime, since it may need to be a domain account.
5282 Patch from Corinna Vinschen.
5283
5284commit f9eb5e0734f7a7f6e975809eb54684d2a06a7ffc
5285Author: Damien Miller <djm@mindrot.org>
5286Date: Tue May 27 14:31:58 2014 +1000
5287
5288 - (djm) [contrib/cygwin/ssh-host-config] Updated Cygwin ssh-host-config
5289 from Corinna Vinschen, fixing a number of bugs and preparing for
5290 Cygwin 1.7.30.
5291
5292commit eae88744662e6b149f43ef071657727f1a157d95
5293Author: Damien Miller <djm@mindrot.org>
5294Date: Tue May 27 14:27:02 2014 +1000
5295
5296 - (djm) [cipher.c] Fix merge botch.
5297
5298commit 564b5e253c1d95c26a00e8288f0089a2571661c3
5299Author: Damien Miller <djm@mindrot.org>
5300Date: Thu May 22 08:23:59 2014 +1000
5301
5302 - (djm) [Makefile.in] typo in path
5303
5304commit e84d10302aeaf7a1acb05c451f8718143656856a
5305Author: Damien Miller <djm@mindrot.org>
5306Date: Wed May 21 17:13:36 2014 +1000
5307
5308 revert a diff I didn't mean to commit
5309
5310commit 795b86313f1f1aab9691666c4f2d5dae6e4acd50
5311Author: Damien Miller <djm@mindrot.org>
5312Date: Wed May 21 17:12:53 2014 +1000
5313
5314 - (djm) [misc.c] Use CLOCK_BOOTTIME in preference to CLOCK_MONOTONIC
5315 when it is available. It takes into account time spent suspended,
5316 thereby ensuring timeouts (e.g. for expiring agent keys) fire
5317 correctly. bz#2228 reported by John Haxby
5318
5319commit 18912775cb97c0b1e75e838d3c7d4b56648137b5
5320Author: Damien Miller <djm@mindrot.org>
5321Date: Wed May 21 17:06:46 2014 +1000
5322
5323 - (djm) [commit configure.ac defines.h sshpty.c] don't attempt to use
5324 vhangup on Linux. It doens't work for non-root users, and for them
5325 it just messes up the tty settings.
5326
5327commit 7f1c264d3049cd95234e91970ccb5406e1d15b27
5328Author: Damien Miller <djm@mindrot.org>
5329Date: Thu May 15 18:01:52 2014 +1000
5330
5331 - (djm) [sshbuf.c] need __predict_false
5332
5333commit e7429f2be8643e1100380a8a7389d85cc286c8fe
5334Author: Damien Miller <djm@mindrot.org>
5335Date: Thu May 15 18:01:01 2014 +1000
5336
5337 - (djm) [regress/Makefile Makefile.in]
5338 [regress/unittests/sshbuf/test_sshbuf.c
5339 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
5340 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
5341 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
5342 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
5343 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
5344 [regress/unittests/sshbuf/test_sshbuf_misc.c]
5345 [regress/unittests/sshbuf/tests.c]
5346 [regress/unittests/test_helper/fuzz.c]
5347 [regress/unittests/test_helper/test_helper.c]
5348 Hook new unit tests into the build and "make tests"
5349
5350commit def1de086707b0e6b046fe7e115c60aca0227a99
5351Author: Damien Miller <djm@mindrot.org>
5352Date: Thu May 15 15:17:15 2014 +1000
5353
5354 - (djm) [regress/unittests/Makefile]
5355 [regress/unittests/Makefile.inc]
5356 [regress/unittests/sshbuf/Makefile]
5357 [regress/unittests/sshbuf/test_sshbuf.c]
5358 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
5359 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
5360 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
5361 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
5362 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
5363 [regress/unittests/sshbuf/test_sshbuf_misc.c]
5364 [regress/unittests/sshbuf/tests.c]
5365 [regress/unittests/test_helper/Makefile]
5366 [regress/unittests/test_helper/fuzz.c]
5367 [regress/unittests/test_helper/test_helper.c]
5368 [regress/unittests/test_helper/test_helper.h]
5369 Import new unit tests from OpenBSD; not yet hooked up to build.
5370
5371commit 167685756fde8bc213a8df2c8e1848e312db0f46
5372Author: Damien Miller <djm@mindrot.org>
5373Date: Thu May 15 15:08:40 2014 +1000
5374
5375 - logan@cvs.openbsd.org 2014/05/04 10:40:59
5376 [connect-privsep.sh]
5377 Remove the Z flag from the list of malloc options as it
5378 was removed from malloc.c 10 days ago.
5379
5380 OK from miod@
5381
5382commit d0b69fe90466920d69c96069312e24b581771bd7
5383Author: Damien Miller <djm@mindrot.org>
5384Date: Thu May 15 15:08:19 2014 +1000
5385
5386 - dtucker@cvs.openbsd.org 2014/05/03 18:46:14
5387 [proxy-connect.sh]
5388 Add tests for with and without compression, with and without privsep.
5389
5390commit edb1af50441d19fb2dd9ccb4d75bf14473fca584
5391Author: Damien Miller <djm@mindrot.org>
5392Date: Thu May 15 15:07:53 2014 +1000
5393
5394 - djm@cvs.openbsd.org 2014/04/21 22:15:37
5395 [dhgex.sh integrity.sh kextype.sh rekey.sh try-ciphers.sh]
5396 repair regress tests broken by server-side default cipher/kex/mac changes
5397 by ensuring that the option under test is included in the server's
5398 algorithm list
5399
5400commit 54343e95c70994695f8842fb22836321350198d3
5401Author: Damien Miller <djm@mindrot.org>
5402Date: Thu May 15 15:07:33 2014 +1000
5403
5404 - djm@cvs.openbsd.org 2014/03/13 20:44:49
5405 [login-timeout.sh]
5406 this test is a sorry mess of race conditions; add another sleep
5407 to avoid a failure on slow machines (at least until I find a
5408 better way)
5409
5410commit e5b9f0f2ee6e133894307e44e862b66426990733
5411Author: Damien Miller <djm@mindrot.org>
5412Date: Thu May 15 14:58:07 2014 +1000
5413
5414 - (djm) [Makefile.in configure.ac sshbuf-getput-basic.c]
5415 [sshbuf-getput-crypto.c sshbuf.c] compilation and portability fixes
5416
5417commit b9c566788a9ebd6a9d466f47a532124f111f0542
5418Author: Damien Miller <djm@mindrot.org>
5419Date: Thu May 15 14:43:37 2014 +1000
5420
5421 - (djm) [configure.ac] Unconditionally define WITH_OPENSSL until we write
5422 portability glue to support building without libcrypto
5423
5424commit 3dc27178b42234b653a32f7a87292d7994045ee3
5425Author: Damien Miller <djm@mindrot.org>
5426Date: Thu May 15 14:37:59 2014 +1000
5427
5428 - logan@cvs.openbsd.org 2014/05/05 07:02:30
5429 [sftp.c]
5430 Zap extra whitespace.
5431
5432 OK from djm@ and dtucker@
5433
5434commit c31a0cd5b31961f01c5b731f62a6cb9d4f767472
5435Author: Damien Miller <djm@mindrot.org>
5436Date: Thu May 15 14:37:39 2014 +1000
5437
5438 - markus@cvs.openbsd.org 2014/05/03 17:20:34
5439 [monitor.c packet.c packet.h]
5440 unbreak compression, by re-init-ing the compression code in the
5441 post-auth child. the new buffer code is more strict, and requires
5442 buffer_init() while the old code was happy after a bzero();
5443 originally from djm@
5444
5445commit 686c7d9ee6f44b2be4128d7860b6b37adaeba733
5446Author: Damien Miller <djm@mindrot.org>
5447Date: Thu May 15 14:37:03 2014 +1000
5448
5449 - djm@cvs.openbsd.org 2014/05/02 03:27:54
5450 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c]
5451 [misc.h poly1305.h ssh-pkcs11.c defines.h]
5452 revert __bounded change; it causes way more problems for portable than
5453 it solves; pointed out by dtucker@
5454
5455commit 294c58a007cfb2f3bddc4fc3217e255857ffb9bf
5456Author: Damien Miller <djm@mindrot.org>
5457Date: Thu May 15 14:35:03 2014 +1000
5458
5459 - naddy@cvs.openbsd.org 2014/04/30 19:07:48
5460 [mac.c myproposal.h umac.c]
5461 UMAC can use our local fallback implementation of AES when OpenSSL isn't
5462 available. Glue code straight from Ted Krovetz's original umac.c.
5463 ok markus@
5464
5465commit 05e82c3b963c33048128baf72a6f6b3a1c10b4c1
5466Author: Damien Miller <djm@mindrot.org>
5467Date: Thu May 15 14:33:43 2014 +1000
5468
5469 - djm@cvs.openbsd.org 2014/04/30 05:29:56
5470 [bufaux.c bufbn.c bufec.c buffer.c buffer.h sshbuf-getput-basic.c]
5471 [sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c sshbuf.h ssherr.c]
5472 [ssherr.h]
5473 New buffer API; the first installment of the conversion/replacement
5474 of OpenSSH's internals to make them usable as a standalone library.
5475
5476 This includes a set of wrappers to make it compatible with the
5477 existing buffer API so replacement can occur incrementally.
5478
5479 With and ok markus@
5480
5481 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
5482 Dempsky and Ron Bowes for a detailed review.
5483
5484commit 380948180f847a26f2d0c85b4dad3dca2ed2fd8b
5485Author: Damien Miller <djm@mindrot.org>
5486Date: Thu May 15 14:25:18 2014 +1000
5487
5488 - dtucker@cvs.openbsd.org 2014/04/29 20:36:51
5489 [sftp.c]
5490 Don't attempt to append a nul quote char to the filename. Should prevent
5491 fatal'ing with "el_insertstr failed" when there's a single quote char
5492 somewhere in the string. bz#2238, ok markus@
5493
5494commit d7fd8bedd4619a2ec7fd02aae4c4e1db4431ad9f
5495Author: Damien Miller <djm@mindrot.org>
5496Date: Thu May 15 14:24:59 2014 +1000
5497
5498 - dtucker@cvs.openbsd.org 2014/04/29 19:58:50
5499 [sftp.c]
5500 Move nulling of variable next to where it's freed. ok markus@
5501
5502commit 1f0311c7c7d10c94ff7f823de9c5b2ed79368b14
5503Author: Damien Miller <djm@mindrot.org>
5504Date: Thu May 15 14:24:09 2014 +1000
5505
5506 - markus@cvs.openbsd.org 2014/04/29 18:01:49
5507 [auth.c authfd.c authfile.c bufaux.c cipher.c cipher.h hostfile.c]
5508 [kex.c key.c mac.c monitor.c monitor_wrap.c myproposal.h packet.c]
5509 [roaming_client.c ssh-agent.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c]
5510 [ssh-pkcs11.h ssh.c sshconnect.c sshconnect2.c sshd.c]
5511 make compiling against OpenSSL optional (make OPENSSL=no);
5512 reduces algorithms to curve25519, aes-ctr, chacha, ed25519;
5513 allows us to explore further options; with and ok djm
5514
5515commit c5893785564498cea73cb60d2cf199490483e080
5516Author: Damien Miller <djm@mindrot.org>
5517Date: Thu May 15 13:48:49 2014 +1000
5518
5519 - djm@cvs.openbsd.org 2014/04/29 13:10:30
5520 [clientloop.c serverloop.c]
5521 bz#1818 - don't send channel success/failre replies on channels that
5522 have sent a close already; analysis and patch from Simon Tatham;
5523 ok markus@
5524
5525commit 633de33b192d808d87537834c316dc8b75fe1880
5526Author: Damien Miller <djm@mindrot.org>
5527Date: Thu May 15 13:48:26 2014 +1000
5528
5529 - djm@cvs.openbsd.org 2014/04/28 03:09:18
5530 [authfile.c bufaux.c buffer.h channels.c krl.c mux.c packet.c packet.h]
5531 [ssh-keygen.c]
5532 buffer_get_string_ptr's return should be const to remind
5533 callers that futzing with it will futz with the actual buffer
5534 contents
5535
5536commit 15271907843e4ae50dcfc83b3594014cf5e9607b
5537Author: Damien Miller <djm@mindrot.org>
5538Date: Thu May 15 13:47:56 2014 +1000
5539
5540 - djm@cvs.openbsd.org 2014/04/23 12:42:34
5541 [readconf.c]
5542 don't record duplicate IdentityFiles
5543
5544commit 798a02568b13a2e46efebd81f08c8f4bb33a6dc7
5545Author: Damien Miller <djm@mindrot.org>
5546Date: Thu May 15 13:47:37 2014 +1000
5547
5548 - jmc@cvs.openbsd.org 2014/04/22 14:16:30
5549 [sftp.1]
5550 zap eol whitespace;
5551
5552commit d875ff78d2b8436807381051de112f0ebf9b9ae1
5553Author: Damien Miller <djm@mindrot.org>
5554Date: Thu May 15 13:47:15 2014 +1000
5555
5556 - logan@cvs.openbsd.org 2014/04/22 12:42:04
5557 [sftp.1]
5558 Document sftp upload resume.
5559 OK from djm@, with feedback from okan@.
5560
5561commit b15cd7bb097fd80dc99520f45290ef775da1ef19
5562Author: Damien Miller <djm@mindrot.org>
5563Date: Thu May 15 13:46:52 2014 +1000
5564
5565 - logan@cvs.openbsd.org 2014/04/22 10:07:12
5566 [sftp.c]
5567 Sort the sftp command list.
5568 OK from djm@
5569
5570commit d8accc0aa72656ba63d50937165c5ae49db1dcd6
5571Author: Damien Miller <djm@mindrot.org>
5572Date: Thu May 15 13:46:25 2014 +1000
5573
5574 - logan@cvs.openbsd.org 2014/04/21 14:36:16
5575 [sftp-client.c sftp-client.h sftp.c]
5576 Implement sftp upload resume support.
5577 OK from djm@, with input from guenther@, mlarkin@ and
5578 okan@
5579
5580commit 16cd3928a87d20c77b13592a74b60b08621d3ce6
5581Author: Damien Miller <djm@mindrot.org>
5582Date: Thu May 15 13:45:58 2014 +1000
5583
5584 - logan@cvs.openbsd.org 2014/04/20 09:24:26
5585 [dns.c dns.h ssh-keygen.c]
5586 Add support for SSHFP DNS records for ED25519 key types.
5587 OK from djm@
5588
5589commit ec0b67eb3b4e12f296ced1fafa01860c374f7eea
5590Author: Damien Miller <djm@mindrot.org>
5591Date: Thu May 15 13:45:26 2014 +1000
5592
5593 - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine
5594 OpenBSD
5595
5596commit f028460d0b2e5a584355321015cde69bf6fd933e
5597Author: Darren Tucker <dtucker@zip.com.au>
5598Date: Thu May 1 02:24:35 2014 +1000
5599
5600 - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already
5601 have it. Only attempt to use __attribute__(__bounded__) for gcc.
5602
5603commit b628cc4c3e4a842bab5e4584d18c2bc5fa4d0edf
5604Author: Damien Miller <djm@mindrot.org>
5605Date: Sun Apr 20 13:33:58 2014 +1000
5606
5607 - djm@cvs.openbsd.org 2014/04/20 02:49:32
5608 [compat.c]
5609 add a canonical 6.6 + curve25519 bignum fix fake version that I can
5610 recommend people use ahead of the openssh-6.7 release
5611
5612commit 888566913933a802f3a329ace123ebcb7154cf78
5613Author: Damien Miller <djm@mindrot.org>
5614Date: Sun Apr 20 13:33:19 2014 +1000
5615
5616 - djm@cvs.openbsd.org 2014/04/20 02:30:25
5617 [misc.c misc.h umac.c]
5618 use get/put_u32 to load values rather than *((UINT32 *)p) that breaks on
5619 strict-alignment architectures; reported by and ok stsp@
5620
5621commit 16f85cbc7e5139950e6a38317e7c8b368beafa5d
5622Author: Damien Miller <djm@mindrot.org>
5623Date: Sun Apr 20 13:29:28 2014 +1000
5624
5625 - tedu@cvs.openbsd.org 2014/04/19 18:42:19
5626 [ssh.1]
5627 delete .xr to hosts.equiv. there's still an unfortunate amount of
5628 documentation referring to rhosts equivalency in here.
5629
5630commit 69cb24b7356ec3f0fc5ff04a68f98f2c55c766f4
5631Author: Damien Miller <djm@mindrot.org>
5632Date: Sun Apr 20 13:29:06 2014 +1000
5633
5634 - tedu@cvs.openbsd.org 2014/04/19 18:15:16
5635 [sshd.8]
5636 remove some really old rsh references
5637
5638commit 84c1e7bca8c4ceaccf4d5557e39a833585a3c77e
5639Author: Damien Miller <djm@mindrot.org>
5640Date: Sun Apr 20 13:27:53 2014 +1000
5641
5642 - tedu@cvs.openbsd.org 2014/04/19 14:53:48
5643 [ssh-keysign.c sshd.c]
5644 Delete futile calls to RAND_seed. ok djm
5645 NB. Id sync only. This only applies to OpenBSD's libcrypto slashathon
5646
5647commit 0e6b67423b8662f9ca4c92750309e144fd637ef1
5648Author: Damien Miller <djm@mindrot.org>
5649Date: Sun Apr 20 13:27:01 2014 +1000
5650
5651 - djm@cvs.openbsd.org 2014/04/19 05:54:59
5652 [compat.c]
5653 missing wildcard; pointed out by naddy@
5654
5655commit 9395b28223334826837c15e8c1bb4dfb3b0d2ca5
5656Author: Damien Miller <djm@mindrot.org>
5657Date: Sun Apr 20 13:25:30 2014 +1000
5658
5659 - djm@cvs.openbsd.org 2014/04/18 23:52:25
5660 [compat.c compat.h sshconnect2.c sshd.c version.h]
5661 OpenSSH 6.5 and 6.6 have a bug that causes ~0.2% of connections
5662 using the curve25519-sha256@libssh.org KEX exchange method to fail
5663 when connecting with something that implements the spec properly.
5664
5665 Disable this KEX method when speaking to one of the affected
5666 versions.
5667
5668 reported by Aris Adamantiadis; ok markus@
5669
5670commit 8c492da58f8ceb85cf5f7066f23e26fb813a963d
5671Author: Damien Miller <djm@mindrot.org>
5672Date: Sun Apr 20 13:25:09 2014 +1000
5673
5674 - djm@cvs.openbsd.org 2014/04/16 23:28:12
5675 [ssh-agent.1]
5676 remove the identity files from this manpage - ssh-agent doesn't deal
5677 with them at all and the same information is duplicated in ssh-add.1
5678 (which does deal with them); prodded by deraadt@
5679
5680commit adbfdbbdccc70c9bd70d81ae096db115445c6e26
5681Author: Damien Miller <djm@mindrot.org>
5682Date: Sun Apr 20 13:24:49 2014 +1000
5683
5684 - djm@cvs.openbsd.org 2014/04/16 23:22:45
5685 [bufaux.c]
5686 skip leading zero bytes in buffer_put_bignum2_from_string();
5687 reported by jan AT mojzis.com; ok markus@
5688
5689commit 75c62728dc87af6805696eeb520b9748faa136c8
5690Author: Damien Miller <djm@mindrot.org>
5691Date: Sun Apr 20 13:24:31 2014 +1000
5692
5693 - djm@cvs.openbsd.org 2014/04/12 04:55:53
5694 [sshd.c]
5695 avoid crash at exit: check that pmonitor!=NULL before dereferencing;
5696 bz#2225, patch from kavi AT juniper.net
5697
5698commit 2a328437fb1b0976f2f4522d8645803d5a5d0967
5699Author: Damien Miller <djm@mindrot.org>
5700Date: Sun Apr 20 13:24:01 2014 +1000
5701
5702 - djm@cvs.openbsd.org 2014/04/01 05:32:57
5703 [packet.c]
5704 demote a debug3 to PACKET_DEBUG; ok markus@
5705
5706commit 7d6a9fb660c808882d064e152d6070ffc3844c3f
5707Author: Damien Miller <djm@mindrot.org>
5708Date: Sun Apr 20 13:23:43 2014 +1000
5709
5710 - djm@cvs.openbsd.org 2014/04/01 03:34:10
5711 [sshconnect.c]
5712 When using VerifyHostKeyDNS with a DNSSEC resolver, down-convert any
5713 certificate keys to plain keys and attempt SSHFP resolution.
5714
5715 Prevents a server from skipping SSHFP lookup and forcing a new-hostkey
5716 dialog by offering only certificate keys.
5717
5718 Reported by mcv21 AT cam.ac.uk
5719
5720commit fcd62c0b66b8415405ed0af29c236329eb88cc0f
5721Author: Damien Miller <djm@mindrot.org>
5722Date: Sun Apr 20 13:23:21 2014 +1000
5723
5724 - djm@cvs.openbsd.org 2014/04/01 02:05:27
5725 [ssh-keysign.c]
5726 include fingerprint of key not found
5727 use arc4random_buf() instead of loop+arc4random()
5728
5729commit 43b156cf72f900f88065b0a1c1ebd09ab733ca46
5730Author: Damien Miller <djm@mindrot.org>
5731Date: Sun Apr 20 13:23:03 2014 +1000
5732
5733 - jmc@cvs.openbsd.org 2014/03/31 13:39:34
5734 [ssh-keygen.1]
5735 the text for the -K option was inserted in the wrong place in -r1.108;
5736 fix From: Matthew Clarke
5737
5738commit c1621c84f2dc1279065ab9fde2aa9327af418900
5739Author: Damien Miller <djm@mindrot.org>
5740Date: Sun Apr 20 13:22:46 2014 +1000
5741
5742 - naddy@cvs.openbsd.org 2014/03/28 05:17:11
5743 [ssh_config.5 sshd_config.5]
5744 sync available and default algorithms, improve algorithm list formatting
5745 help from jmc@ and schwarze@, ok deraadt@
5746
5747commit f2719b7c2b8a3b14d778d8a6d8dc729b5174b054
5748Author: Damien Miller <djm@mindrot.org>
5749Date: Sun Apr 20 13:22:18 2014 +1000
5750
5751 - tedu@cvs.openbsd.org 2014/03/26 19:58:37
5752 [sshd.8 sshd.c]
5753 remove libwrap support. ok deraadt djm mfriedl
5754
5755commit 4f40209aa4060b9c066a2f0d9332ace7b8dfb391
5756Author: Damien Miller <djm@mindrot.org>
5757Date: Sun Apr 20 13:21:22 2014 +1000
5758
5759 - djm@cvs.openbsd.org 2014/03/26 04:55:35
5760 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c
5761 [misc.h poly1305.h ssh-pkcs11.c]
5762 use __bounded(...) attribute recently added to sys/cdefs.h instead of
5763 longform __attribute__(__bounded(...));
5764
5765 for brevity and a warning free compilation with llvm/clang
5766
5767commit 9235a030ad1b16903fb495d81544e0f7c7449523
5768Author: Damien Miller <djm@mindrot.org>
5769Date: Sun Apr 20 13:17:20 2014 +1000
5770
5771 Three commits in one (since they touch the same heavily-diverged file
5772 repeatedly):
5773
5774 - markus@cvs.openbsd.org 2014/03/25 09:40:03
5775 [myproposal.h]
5776 trimm default proposals.
5777
5778 This commit removes the weaker pre-SHA2 hashes, the broken ciphers
5779 (arcfour), and the broken modes (CBC) from the default configuration
5780 (the patch only changes the default, all the modes are still available
5781 for the config files).
5782
5783 ok djm@, reminded by tedu@ & naddy@ and discussed with many
5784 - deraadt@cvs.openbsd.org 2014/03/26 17:16:26
5785 [myproposal.h]
5786 The current sharing of myproposal[] between both client and server code
5787 makes the previous diff highly unpallatable. We want to go in that
5788 direction for the server, but not for the client. Sigh.
5789 Brought up by naddy.
5790 - markus@cvs.openbsd.org 2014/03/27 23:01:27
5791 [myproposal.h ssh-keyscan.c sshconnect2.c sshd.c]
5792 disable weak proposals in sshd, but keep them in ssh; ok djm@
5793
5794commit 6e1777f592f15f4559728c78204617537b1ac076
5795Author: Damien Miller <djm@mindrot.org>
5796Date: Sun Apr 20 13:02:58 2014 +1000
5797
5798 - tedu@cvs.openbsd.org 2014/03/19 14:42:44
5799 [scp.1]
5800 there is no need for rcp anymore
5801 ok deraadt millert
5802
5803commit eb1b7c514d2a7b1802ccee8cd50e565a4d419887
5804Author: Damien Miller <djm@mindrot.org>
5805Date: Sun Apr 20 13:02:26 2014 +1000
5806
5807 - tedu@cvs.openbsd.org 2014/03/17 19:44:10
5808 [ssh.1]
5809 old descriptions of des and blowfish are old. maybe ok deraadt
5810
5811commit f0858de6e1324ec730752387074b111b8551081e
5812Author: Damien Miller <djm@mindrot.org>
5813Date: Sun Apr 20 13:01:30 2014 +1000
5814
5815 - deraadt@cvs.openbsd.org 2014/03/15 17:28:26
5816 [ssh-agent.c ssh-keygen.1 ssh-keygen.c]
5817 Improve usage() and documentation towards the standard form.
5818 In particular, this line saves a lot of man page reading time.
5819 usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1]
5820 [-N new_passphrase] [-C comment] [-f output_keyfile]
5821 ok schwarze jmc
5822
5823commit 94bfe0fbd6e91a56b5b0ab94ac955d2a67d101aa
5824Author: Damien Miller <djm@mindrot.org>
5825Date: Sun Apr 20 13:00:51 2014 +1000
5826
5827 - naddy@cvs.openbsd.org 2014/03/12 13:06:59
5828 [ssh-keyscan.1]
5829 scan for Ed25519 keys by default too
5830
5831commit 3819519288b2b3928c6882f5883b0f55148f4fc0
5832Author: Damien Miller <djm@mindrot.org>
5833Date: Sun Apr 20 13:00:28 2014 +1000
5834
5835 - djm@cvs.openbsd.org 2014/03/12 04:51:12
5836 [authfile.c]
5837 correct test that kdf name is not "none" or "bcrypt"
5838
5839commit 8f9cd709c7cf0655d414306a0ed28306b33802be
5840Author: Damien Miller <djm@mindrot.org>
5841Date: Sun Apr 20 13:00:11 2014 +1000
5842
5843 - djm@cvs.openbsd.org 2014/03/12 04:50:32
5844 [auth-bsdauth.c ssh-keygen.c]
5845 don't count on things that accept arguments by reference to clear
5846 things for us on error; most things do, but it's unsafe form.
5847
5848commit 1c7ef4be83f6dec84509a312518b9df00ab491d9
5849Author: Damien Miller <djm@mindrot.org>
5850Date: Sun Apr 20 12:59:46 2014 +1000
5851
5852 - djm@cvs.openbsd.org 2014/03/12 04:44:58
5853 [ssh-keyscan.c]
5854 scan for Ed25519 keys by default too
5855
5856commit c10bf4d051c97939b30a1616c0499310057d07da
5857Author: Damien Miller <djm@mindrot.org>
5858Date: Sun Apr 20 12:58:04 2014 +1000
5859
5860 - djm@cvs.openbsd.org 2014/03/03 22:22:30
5861 [session.c]
5862 ignore enviornment variables with embedded '=' or '\0' characters;
5863 spotted by Jann Horn; ok deraadt@
5864 Id sync only - portable already has this.
5865
5866commit c2e49062faccbcd7135c40d1c78c5c329c58fc2e
5867Author: Damien Miller <djm@mindrot.org>
5868Date: Tue Apr 1 14:42:46 2014 +1100
5869
5870 - (djm) Use full release (e.g. 6.5p1) in debug output rather than just
5871 version. From des@des.no
5872
5873commit 14928b7492abec82afa4c2b778fc03f78cd419b6
5874Author: Damien Miller <djm@mindrot.org>
5875Date: Tue Apr 1 14:38:07 2014 +1100
5876
5877 - (djm) On platforms that support it, use prctl() to prevent sftp-server
5878 from accessing /proc/self/{mem,maps}; patch from jann AT thejh.net
5879
5880commit 48abc47e60048461fe9117e108a7e99ea1ac2bb8
5881Author: Damien Miller <djm@mindrot.org>
5882Date: Mon Mar 17 14:45:56 2014 +1100
5883
5884 - (djm) [sandbox-seccomp-filter.c] Soft-fail stat() syscalls. Add XXX to
5885 remind myself to add sandbox violation logging via the log socket.
5886
5887commit 9c36698ca2f554ec221dc7ef29c7a89e97c88705
5888Author: Tim Rice <tim@multitalents.net>
5889Date: Fri Mar 14 12:45:01 2014 -0700
5890
5891 20140314
5892 - (tim) [opensshd.init.in] Add support for ed25519
5893
5894commit 19158b2447e35838d69b2b735fb640d1e86061ea
5895Author: Damien Miller <djm@mindrot.org>
5896Date: Thu Mar 13 13:14:21 2014 +1100
5897
5898 - (djm) Release OpenSSH 6.6
5899
5900commit 8569eba5d7f7348ce3955eeeb399f66f25c52ece
5901Author: Damien Miller <djm@mindrot.org>
5902Date: Tue Mar 4 09:35:17 2014 +1100
5903
5904 - djm@cvs.openbsd.org 2014/03/03 22:22:30
5905 [session.c]
5906 ignore enviornment variables with embedded '=' or '\0' characters;
5907 spotted by Jann Horn; ok deraadt@
5908
5909commit 2476c31b96e89aec7d4e73cb6fbfb9a4290de3a7
5910Author: Damien Miller <djm@mindrot.org>
5911Date: Sun Mar 2 04:01:00 2014 +1100
5912
5913 - (djm) [regress/Makefile] Disable dhgex regress test; it breaks when
5914 no moduli file exists at the expected location.
5915
5916commit c83fdf30e9db865575b2521b1fe46315cf4c70ae
5917Author: Damien Miller <djm@mindrot.org>
5918Date: Fri Feb 28 10:34:03 2014 +1100
5919
5920 - (djm) [regress/host-expand.sh] Add RCS Id
5921
5922commit 834aeac3555e53f7d29a6fcf3db010dfb99681c7
5923Author: Damien Miller <djm@mindrot.org>
5924Date: Fri Feb 28 10:25:16 2014 +1100
5925
5926 - djm@cvs.openbsd.org 2014/02/27 21:21:25
5927 [agent-ptrace.sh agent.sh]
5928 keep return values that are printed in error messages;
5929 from portable
5930 (Id sync only)
5931
5932commit 4f7f1a9a0de24410c30952c7e16d433240422182
5933Author: Damien Miller <djm@mindrot.org>
5934Date: Fri Feb 28 10:24:11 2014 +1100
5935
5936 - djm@cvs.openbsd.org 2014/02/27 20:04:16
5937 [login-timeout.sh]
5938 remove any existing LoginGraceTime from sshd_config before adding
5939 a specific one for the test back in
5940
5941commit d705d987c27f68080c8798eeb5262adbdd6b4ffd
5942Author: Damien Miller <djm@mindrot.org>
5943Date: Fri Feb 28 10:23:26 2014 +1100
5944
5945 - djm@cvs.openbsd.org 2014/01/26 10:49:17
5946 [scp-ssh-wrapper.sh scp.sh]
5947 make sure $SCP is tested on the remote end rather than whichever one
5948 happens to be in $PATH; from portable
5949 (Id sync only)
5950
5951commit 624a3ca376e3955a4b9d936c9e899e241b65d357
5952Author: Damien Miller <djm@mindrot.org>
5953Date: Fri Feb 28 10:22:37 2014 +1100
5954
5955 - djm@cvs.openbsd.org 2014/01/26 10:22:10
5956 [regress/cert-hostkey.sh]
5957 automatically generate revoked keys from listed keys rather than
5958 manually specifying each type; from portable
5959 (Id sync only)
5960
5961commit b84392328425e4b9a71f8bde5fe6a4a4c48d3ec4
5962Author: Damien Miller <djm@mindrot.org>
5963Date: Fri Feb 28 10:21:26 2014 +1100
5964
5965 - dtucker@cvs.openbsd.org 2014/01/25 04:35:32
5966 [regress/Makefile regress/dhgex.sh]
5967 Add a test for DH GEX sizes
5968
5969commit 1e2aa3d90472293ea19008f02336d6d68aa05793
5970Author: Damien Miller <djm@mindrot.org>
5971Date: Fri Feb 28 10:19:51 2014 +1100
5972
5973 - dtucker@cvs.openbsd.org 2014/01/20 00:00:30
5974 [sftp-chroot.sh]
5975 append to rather than truncating the log file
5976
5977commit f483cc16fe7314e24a37aa3a4422b03c013c3213
5978Author: Damien Miller <djm@mindrot.org>
5979Date: Fri Feb 28 10:19:11 2014 +1100
5980
5981 - dtucker@cvs.openbsd.org 2014/01/19 23:43:02
5982 [regress/sftp-chroot.sh]
5983 Don't use -q on sftp as it suppresses logging, instead redirect the
5984 output to the regress logfile.
5985
5986commit 6486f16f1c0ebd6f39286f6ab5e08286d90a994a
5987Author: Damien Miller <djm@mindrot.org>
5988Date: Fri Feb 28 10:03:52 2014 +1100
5989
5990 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
5991 [contrib/suse/openssh.spec] Crank version numbers
5992
5993commit 92cf5adea194140380e6af6ec32751f9ad540794
5994Author: Damien Miller <djm@mindrot.org>
5995Date: Fri Feb 28 10:01:53 2014 +1100
5996
5997 - djm@cvs.openbsd.org 2014/02/27 22:57:40
5998 [version.h]
5999 openssh-6.6
6000
6001commit fc5d6759aba71eb205b296b5f148010ffc828583
6002Author: Damien Miller <djm@mindrot.org>
6003Date: Fri Feb 28 10:01:28 2014 +1100
6004
6005 - djm@cvs.openbsd.org 2014/02/27 22:47:07
6006 [sshd_config.5]
6007 bz#2184 clarify behaviour of a keyword that appears in multiple
6008 matching Match blocks; ok dtucker@
6009
6010commit 172ec7e0af1a5f1d682f6a2dca335c6c186153d5
6011Author: Damien Miller <djm@mindrot.org>
6012Date: Fri Feb 28 10:00:57 2014 +1100
6013
6014 - djm@cvs.openbsd.org 2014/02/27 08:25:09
6015 [bufbn.c]
6016 off by one in range check
6017
6018commit f9a9aaba437c2787e40cf7cc928281950e161678
6019Author: Damien Miller <djm@mindrot.org>
6020Date: Fri Feb 28 10:00:27 2014 +1100
6021
6022 - djm@cvs.openbsd.org 2014/02/27 00:41:49
6023 [bufbn.c]
6024 fix unsigned overflow that could lead to reading a short ssh protocol
6025 1 bignum value; found by Ben Hawkes; ok deraadt@
6026
6027commit fb3423b612713d9cde67c8a75f6f51188d6a3de3
6028Author: Damien Miller <djm@mindrot.org>
6029Date: Thu Feb 27 10:20:07 2014 +1100
6030
6031 - markus@cvs.openbsd.org 2014/02/26 21:53:37
6032 [sshd.c]
6033 ssh_gssapi_prepare_supported_oids needs GSSAPI
6034
6035commit 1348129a34f0f7728c34d86c100a32dcc8d1f922
6036Author: Damien Miller <djm@mindrot.org>
6037Date: Thu Feb 27 10:18:32 2014 +1100
6038
6039 - djm@cvs.openbsd.org 2014/02/26 20:29:29
6040 [channels.c]
6041 don't assume that the socks4 username is \0 terminated;
6042 spotted by Ben Hawkes; ok markus@
6043
6044commit e6a74aeeacd01d885262ff8e50eb28faee8c8039
6045Author: Damien Miller <djm@mindrot.org>
6046Date: Thu Feb 27 10:17:49 2014 +1100
6047
6048 - djm@cvs.openbsd.org 2014/02/26 20:28:44
6049 [auth2-gss.c gss-serv.c ssh-gss.h sshd.c]
6050 bz#2107 - cache OIDs of supported GSSAPI mechanisms before privsep
6051 sandboxing, as running this code in the sandbox can cause violations;
6052 ok markus@
6053
6054commit 08b57c67f3609340ff703fe2782d7058acf2529e
6055Author: Damien Miller <djm@mindrot.org>
6056Date: Thu Feb 27 10:17:13 2014 +1100
6057
6058 - djm@cvs.openbsd.org 2014/02/26 20:18:37
6059 [ssh.c]
6060 bz#2205: avoid early hostname lookups unless canonicalisation is enabled;
6061 ok dtucker@ markus@
6062
6063commit 13f97b2286142fd0b8eab94e4ce84fe124eeb752
6064Author: Damien Miller <djm@mindrot.org>
6065Date: Mon Feb 24 15:57:55 2014 +1100
6066
6067 - djm@cvs.openbsd.org 2014/02/23 20:11:36
6068 [readconf.c readconf.h ssh.c ssh_config.5]
6069 reparse ssh_config and ~/.ssh/config if hostname canonicalisation changes
6070 the hostname. This allows users to write configurations that always
6071 refer to canonical hostnames, e.g.
6072
6073 CanonicalizeHostname yes
6074 CanonicalDomains int.example.org example.org
6075 CanonicalizeFallbackLocal no
6076
6077 Host *.int.example.org
6078 Compression off
6079 Host *.example.org
6080 User djm
6081
6082 ok markus@
6083
6084commit bee3a234f3d1ad4244952bcff1b4b7c525330dc2
6085Author: Damien Miller <djm@mindrot.org>
6086Date: Mon Feb 24 15:57:22 2014 +1100
6087
6088 - djm@cvs.openbsd.org 2014/02/23 20:03:42
6089 [ssh-ed25519.c]
6090 check for unsigned overflow; not reachable in OpenSSH but others might
6091 copy our code...
6092
6093commit 0628780abe61e7e50cba48cdafb1837f49ff23b2
6094Author: Damien Miller <djm@mindrot.org>
6095Date: Mon Feb 24 15:56:45 2014 +1100
6096
6097 - djm@cvs.openbsd.org 2014/02/22 01:32:19
6098 [readconf.c]
6099 when processing Match blocks, skip 'exec' clauses if previous predicates
6100 failed to match; ok markus@
6101
6102commit 0890dc8191bb201eb01c3429feec0300a9d3a930
6103Author: Damien Miller <djm@mindrot.org>
6104Date: Mon Feb 24 15:56:07 2014 +1100
6105
6106 - djm@cvs.openbsd.org 2014/02/15 23:05:36
6107 [channels.c]
6108 avoid spurious "getsockname failed: Bad file descriptor" errors in ssh -W;
6109 bz#2200, debian#738692 via Colin Watson; ok dtucker@
6110
6111commit d3cf67e1117c25d151d0f86396e77ee3a827045a
6112Author: Damien Miller <djm@mindrot.org>
6113Date: Mon Feb 24 15:55:36 2014 +1100
6114
6115 - djm@cvs.openbsd.org 2014/02/07 06:55:54
6116 [cipher.c mac.c]
6117 remove some logging that makes ssh debugging output very verbose;
6118 ok markus
6119
6120commit 03ae081aeaa118361c81ece76eb7cc1aaa2b40c5
6121Author: Tim Rice <tim@multitalents.net>
6122Date: Fri Feb 21 09:09:34 2014 -0800
6123
6124 20140221
6125 - (tim) [configure.ac] Fix cut-and-paste error. Patch from Bryan Drewery.
6126
6127commit 4a20959d2e3c90e9d66897c0b4032c785672d815
6128Author: Darren Tucker <dtucker@zip.com.au>
6129Date: Thu Feb 13 16:38:32 2014 +1100
6130
6131 - (dtucker) [configure.ac openbsd-compat/openssl-compat.{c,h}] Add compat
6132 code for older OpenSSL versions that don't have EVP_MD_CTX_copy_ex.
6133
6134commit d1a7a9c0fd1ac2e3314cceb2891959fd2cd9eabb
6135Author: Damien Miller <djm@mindrot.org>
6136Date: Fri Feb 7 09:24:33 2014 +1100
6137
6138 - djm@cvs.openbsd.org 2014/02/06 22:21:01
6139 [sshconnect.c]
6140 in ssh_create_socket(), only do the getaddrinfo for BindAddress when
6141 BindAddress is actually specified. Fixes regression in 6.5 for
6142 UsePrivilegedPort=yes; patch from Corinna Vinschen
6143
6144commit 6ce35b6cc4ead1bf98abec34cb2e2d6ca0abb15e
6145Author: Damien Miller <djm@mindrot.org>
6146Date: Fri Feb 7 09:24:14 2014 +1100
6147
6148 - naddy@cvs.openbsd.org 2014/02/05 20:13:25
6149 [ssh-keygen.1 ssh-keygen.c]
6150 tweak synopsis: calling ssh-keygen without any arguments is fine; ok jmc@
6151 while here, fix ordering in usage(); requested by jmc@
6152
6153commit 6434cb2cfbbf0a46375d2d22f2ff9927feb5e478
6154Author: Damien Miller <djm@mindrot.org>
6155Date: Thu Feb 6 11:17:50 2014 +1100
6156
6157 - (djm) [sandbox-seccomp-filter.c] Not all Linux architectures define
6158 __NR_shutdown; some go via the socketcall(2) multiplexer.
6159
6160commit 8d36f9ac71eff2e9f5770c0518b73d875f270647
6161Author: Darren Tucker <dtucker@zip.com.au>
6162Date: Thu Feb 6 10:44:13 2014 +1100
6163
6164 - (dtucker) [openbsd-compat/bsd-poll.c] Don't bother checking for non-NULL
6165 before freeing since free(NULL) is a no-op. ok djm.
6166
6167commit a0959da3680b4ce8cf911caf3293a6d90f88eeb7
6168Author: Damien Miller <djm@mindrot.org>
6169Date: Wed Feb 5 10:33:45 2014 +1100
6170
6171 - (djm) [sandbox-capsicum.c] Don't fatal if Capsicum is offered by
6172 headers/libc but not supported by the kernel. Patch from Loganaden
6173 Velvindron @ AfriNIC
6174
6175commit 9c449bc183b256c84d8f740727b0bc54d247b15e
6176Author: Damien Miller <djm@mindrot.org>
6177Date: Tue Feb 4 11:38:28 2014 +1100
6178
6179 - (djm) [regress/setuid-allowed.c] Missing string.h for strerror()
6180
6181commit bf7e0f03be661b6f5b3bfe325135ce19391f9c4d
6182Author: Damien Miller <djm@mindrot.org>
6183Date: Tue Feb 4 11:37:50 2014 +1100
6184
6185 - (djm) [openbsd-compat/Makefile.in] Add missing explicit_bzero.o
6186
6187commit eb6d870a0ea8661299bb2ea8f013d3ace04e2024
6188Author: Damien Miller <djm@mindrot.org>
6189Date: Tue Feb 4 11:26:34 2014 +1100
6190
6191 - djm@cvs.openbsd.org 2014/02/04 00:24:29
6192 [ssh.c]
6193 delay lowercasing of hostname until right before hostname
6194 canonicalisation to unbreak case-sensitive matching of ssh_config;
6195 reported by Ike Devolder; ok markus@
6196
6197commit d56b44d2dfa093883a5c4e91be3f72d99946b170
6198Author: Damien Miller <djm@mindrot.org>
6199Date: Tue Feb 4 11:26:04 2014 +1100
6200
6201 - djm@cvs.openbsd.org 2014/02/04 00:24:29
6202 [ssh.c]
6203 delay lowercasing of hostname until right before hostname
6204 canonicalisation to unbreak case-sensitive matching of ssh_config;
6205 reported by Ike Devolder; ok markus@
6206
6207commit db3c595ea74ea9ccd5aa644d7e1f8dc675710731
6208Author: Damien Miller <djm@mindrot.org>
6209Date: Tue Feb 4 11:25:45 2014 +1100
6210
6211 - djm@cvs.openbsd.org 2014/02/02 03:44:31
6212 [digest-libc.c digest-openssl.c]
6213 convert memset of potentially-private data to explicit_bzero()
6214
6215commit aae07e2e2000dd318418fd7fd4597760904cae32
6216Author: Damien Miller <djm@mindrot.org>
6217Date: Tue Feb 4 11:20:40 2014 +1100
6218
6219 - djm@cvs.openbsd.org 2014/02/03 23:28:00
6220 [ssh-ecdsa.c]
6221 fix memory leak; ECDSA_SIG_new() allocates 'r' and 's' for us, unlike
6222 DSA_SIG_new. Reported by Batz Spear; ok markus@
6223
6224commit a5103f413bde6f31bff85d6e1fd29799c647d765
6225Author: Damien Miller <djm@mindrot.org>
6226Date: Tue Feb 4 11:20:14 2014 +1100
6227
6228 - djm@cvs.openbsd.org 2014/02/02 03:44:32
6229 [auth1.c auth2-chall.c auth2-passwd.c authfile.c bufaux.c bufbn.c]
6230 [buffer.c cipher-3des1.c cipher.c clientloop.c gss-serv.c kex.c]
6231 [kexdhc.c kexdhs.c kexecdhc.c kexgexc.c kexecdhs.c kexgexs.c key.c]
6232 [monitor.c monitor_wrap.c packet.c readpass.c rsa.c serverloop.c]
6233 [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c]
6234 [ssh-keygen.c ssh-rsa.c sshconnect.c sshconnect1.c sshconnect2.c]
6235 [sshd.c]
6236 convert memset of potentially-private data to explicit_bzero()
6237
6238commit 1d2c4564265ee827147af246a16f3777741411ed
6239Author: Damien Miller <djm@mindrot.org>
6240Date: Tue Feb 4 11:18:20 2014 +1100
6241
6242 - tedu@cvs.openbsd.org 2014/01/31 16:39:19
6243 [auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c]
6244 [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c]
6245 [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c]
6246 [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c]
6247 [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h]
6248 replace most bzero with explicit_bzero, except a few that cna be memset
6249 ok djm dtucker
6250
6251commit 3928de067c286683a95fbdbdb5fdb3c78a0e5efd
6252Author: Damien Miller <djm@mindrot.org>
6253Date: Tue Feb 4 11:13:54 2014 +1100
6254
6255 - djm@cvs.openbsd.org 2014/01/30 22:26:14
6256 [sandbox-systrace.c]
6257 allow shutdown(2) syscall in sandbox - it may be called by packet_close()
6258 from portable
6259 (Id sync only; change is already in portable)
6260
6261commit e1e480aee8a9af6cfbe7188667b7b940d6b57f9f
6262Author: Damien Miller <djm@mindrot.org>
6263Date: Tue Feb 4 11:13:17 2014 +1100
6264
6265 - jmc@cvs.openbsd.org 2014/01/29 14:04:51
6266 [sshd_config.5]
6267 document kbdinteractiveauthentication;
6268 requested From: Ross L Richardson
6269
6270 dtucker/markus helped explain its workings;
6271
6272commit 7cc194f70d4a5ec9a82d19422eaf18db4a6624c6
6273Author: Damien Miller <djm@mindrot.org>
6274Date: Tue Feb 4 11:12:56 2014 +1100
6275
6276 - djm@cvs.openbsd.org 2014/01/29 06:18:35
6277 [Makefile.in auth.h auth2-jpake.c auth2.c jpake.c jpake.h monitor.c]
6278 [monitor.h monitor_wrap.c monitor_wrap.h readconf.c readconf.h]
6279 [schnorr.c schnorr.h servconf.c servconf.h ssh2.h sshconnect2.c]
6280 remove experimental, never-enabled JPAKE code; ok markus@
6281
6282commit b0f26544cf6f4feeb1a4f6db09fca834f5c9867d
6283Author: Damien Miller <djm@mindrot.org>
6284Date: Tue Feb 4 11:10:01 2014 +1100
6285
6286 - djm@cvs.openbsd.org 2014/01/29 00:19:26
6287 [sshd.c]
6288 use kill(0, ...) instead of killpg(0, ...); on most operating systems
6289 they are equivalent, but SUSv2 describes the latter as having undefined
6290 behaviour; from portable; ok dtucker
6291 (Id sync only; change is already in portable)
6292
6293commit f8f35bc471500348bb262039fb1fc43175d251b0
6294Author: Damien Miller <djm@mindrot.org>
6295Date: Tue Feb 4 11:09:12 2014 +1100
6296
6297 - jmc@cvs.openbsd.org 2014/01/28 14:13:39
6298 [ssh-keyscan.1]
6299 kill some bad Pa;
6300 From: Jan Stary
6301
6302commit 0ba85d696ae9daf66002c2e4ab0d6bb111e1a787
6303Author: Damien Miller <djm@mindrot.org>
6304Date: Tue Feb 4 11:08:38 2014 +1100
6305
6306 ignore a few more regress droppings
6307
6308commit ec93d15170b7a6ddf63fd654bd0f6a752acc19dd
6309Author: Damien Miller <djm@mindrot.org>
6310Date: Tue Feb 4 11:07:13 2014 +1100
6311
6312 - markus@cvs.openbsd.org 2014/01/27 20:13:46
6313 [digest.c digest-openssl.c digest-libc.c Makefile.in]
6314 rename digest.c to digest-openssl.c and add libc variant; ok djm@
6315
6316commit 4a1c7aa640fb97d3472d51b215b6a0ec0fd025c7
6317Author: Damien Miller <djm@mindrot.org>
6318Date: Tue Feb 4 11:03:36 2014 +1100
6319
6320 - markus@cvs.openbsd.org 2014/01/27 19:18:54
6321 [auth-rsa.c cipher.c ssh-agent.c sshconnect1.c sshd.c]
6322 replace openssl MD5 with our ssh_digest_*; ok djm@
6323
6324commit 4e8d937af79ce4e253f77ec93489d098b25becc3
6325Author: Damien Miller <djm@mindrot.org>
6326Date: Tue Feb 4 11:02:42 2014 +1100
6327
6328 - markus@cvs.openbsd.org 2014/01/27 18:58:14
6329 [Makefile.in digest.c digest.h hostfile.c kex.h mac.c hmac.c hmac.h]
6330 replace openssl HMAC with an implementation based on our ssh_digest_*
6331 ok and feedback djm@
6332
6333commit 69d0d09f76bab5aec86fbf78489169f63bd16475
6334Author: Tim Rice <tim@multitalents.net>
6335Date: Fri Jan 31 14:25:18 2014 -0800
6336
6337 - (tim) [Makefile.in] build regress/setuid-allow.
6338
6339commit 0eeafcd76b972a3d159f3118227c149a4d7817fe
6340Author: Darren Tucker <dtucker@zip.com.au>
6341Date: Fri Jan 31 14:18:51 2014 +1100
6342
6343 - (dtucker) [readconf.c] Include <arpa/inet.h> for the hton macros. Fixes
6344 build with HP-UX's compiler. Patch from Kevin Brott.
6345
6346commit 7e5cec6070673e9f9785ffc749837ada22fbe99f
6347Author: Damien Miller <djm@mindrot.org>
6348Date: Fri Jan 31 09:25:34 2014 +1100
6349
6350 - (djm) [sandbox-seccomp-filter.c sandbox-systrace.c] Allow shutdown(2)
6351 syscall from sandboxes; it may be called by packet_close.
6352
6353commit cdb6c90811caa5df2df856be9b0b16db020fe31d
6354Author: Damien Miller <djm@mindrot.org>
6355Date: Thu Jan 30 12:50:17 2014 +1100
6356
6357 - (djm) Release openssh-6.5p1
6358
6359commit 996ea80b1884b676a901439f1f2681eb6ff68501
6360Author: Damien Miller <djm@mindrot.org>
6361Date: Thu Jan 30 12:49:55 2014 +1100
6362
6363 trim entries prior to openssh-6.0p1
6364
6365commit f5bbd3b657b6340551c8a95f74a70857ff8fac79
6366Author: Damien Miller <djm@mindrot.org>
6367Date: Thu Jan 30 11:26:46 2014 +1100
6368
6369 - (djm) [configure.ac atomicio.c] Kludge around NetBSD offering
6370 different symbols for 'read' when various compiler flags are
6371 in use, causing atomicio.c comparisons against it to break and
6372 read/write operations to hang; ok dtucker
6373
6374commit c2868192ddc4e1420a50389e18c05db20b0b1f32
6375Author: Damien Miller <djm@mindrot.org>
6376Date: Thu Jan 30 10:21:19 2014 +1100
6377
6378 - (djm) [configure.ac] Only check for width-specified integer types
6379 in headers that actually exist. patch from Tom G. Christensen;
6380 ok dtucker@
6381
6382commit c161fc90fc86e2035710570238a9e1ca7a68d2a5
6383Author: Damien Miller <djm@mindrot.org>
6384Date: Wed Jan 29 21:01:33 2014 +1100
6385
6386 - (djm) [configure.ac] Fix broken shell test '==' vs '='; patch from
6387 Tom G. Christensen
6388
6389commit 6f917ad376481995ab7d29fb53b08ec8d507eb9e
6390Author: Tim Rice <tim@multitalents.net>
6391Date: Tue Jan 28 10:26:25 2014 -0800
6392
6393 - (tim) [regress/agent.sh regress/agent-ptrace.sh] Assign $? to a variable
6394 when used as an error message inside an if statement so we display the
6395 correct into. agent.sh patch from Petr Lautrbach.
6396
6397commit ab16ef4152914d44ce6f76e48167d26d22f66a06
6398Author: Damien Miller <djm@mindrot.org>
6399Date: Tue Jan 28 15:08:12 2014 +1100
6400
6401 - (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the
6402 latter being specified to have undefined behaviour in SUSv3;
6403 ok dtucker
6404
6405commit ab0394905884dc6e58c3721211c6b38fb8fc2ca8
6406Author: Damien Miller <djm@mindrot.org>
6407Date: Tue Jan 28 15:07:10 2014 +1100
6408
6409 - (djm) [configure.ac] Search for inet_ntop in libnsl and libresovl;
6410 ok dtucker
6411
6412commit 4ab20a82d4d4168d62318923f62382f6ef242fcd
6413Author: Darren Tucker <dtucker@zip.com.au>
6414Date: Mon Jan 27 17:35:04 2014 +1100
6415
6416 - (dtucker) [Makefile.in] Remove trailing backslash which some make
6417 implementations (eg older Solaris) do not cope with.
6418
6419commit e7e8b3cfe9f8665faaf0e68b33df5bbb431bd129
6420Author: Darren Tucker <dtucker@zip.com.au>
6421Date: Mon Jan 27 17:32:50 2014 +1100
6422
6423 Welcome to 2014
6424
6425commit 5b447c0aac0dd444251e276f6bb3bbbe1c05331c
6426Author: Damien Miller <djm@mindrot.org>
6427Date: Sun Jan 26 09:46:53 2014 +1100
6428
6429 - (djm) [configure.ac] correct AC_DEFINE for previous.
6430
6431commit 2035b2236d3b1f76c749c642a43e03c85eae76e6
6432Author: Damien Miller <djm@mindrot.org>
6433Date: Sun Jan 26 09:39:53 2014 +1100
6434
6435 - (djm) [configure.ac sandbox-capsicum.c sandbox-rlimit.c] Disable
6436 RLIMIT_NOFILE pseudo-sandbox on FreeBSD. In some configurations,
6437 libc will attempt to open additional file descriptors for crypto
6438 offload and crash if they cannot be opened.
6439
6440commit a92ac7410475fbb00383c7402aa954dc0a75ae19
6441Author: Damien Miller <djm@mindrot.org>
6442Date: Sun Jan 26 09:38:03 2014 +1100
6443
6444 - markus@cvs.openbsd.org 2014/01/25 20:35:37
6445 [kex.c]
6446 dh_need needs to be set to max(seclen, blocksize, ivlen, mac_len)
6447 ok dtucker@, noted by mancha
6448
6449commit 76eea4ab4e658670ca6e76dd1e6d17f262208b57
6450Author: Damien Miller <djm@mindrot.org>
6451Date: Sun Jan 26 09:37:25 2014 +1100
6452
6453 - dtucker@cvs.openbsd.org 2014/01/25 10:12:50
6454 [cipher.c cipher.h kex.c kex.h kexgexc.c]
6455 Add a special case for the DH group size for 3des-cbc, which has an
6456 effective strength much lower than the key size. This causes problems
6457 with some cryptlib implementations, which don't support group sizes larger
6458 than 4k but also don't use the largest group size it does support as
6459 specified in the RFC. Based on a patch from Petr Lautrbach at Redhat,
6460 reduced by me with input from Markus. ok djm@ markus@
6461
6462commit 603b8f47f1cd9ed95a2017447db8e60ca6704594
6463Author: Damien Miller <djm@mindrot.org>
6464Date: Sat Jan 25 13:16:59 2014 +1100
6465
6466 - (djm) [configure.ac] autoconf sets finds to 'yes' not '1', so test
6467 against the correct thing.
6468
6469commit c96d85376d779b6ac61525b5440010d344d2f23f
6470Author: Damien Miller <djm@mindrot.org>
6471Date: Sat Jan 25 13:12:28 2014 +1100
6472
6473 - (djm) [configure.ac] Do not attempt to use capsicum sandbox unless
6474 sys/capability.h exists and cap_rights_limit is in libc. Fixes
6475 build on FreeBSD9x which provides the header but not the libc
6476 support.
6477
6478commit f62ecef9939cb3dbeb10602fd705d4db3976d822
6479Author: Damien Miller <djm@mindrot.org>
6480Date: Sat Jan 25 12:34:38 2014 +1100
6481
6482 - (djm) [configure.ac] Fix detection of capsicum sandbox on FreeBSD
6483
6484commit b0e0f760b861676a3fe5c40133b270713d5321a9
6485Author: Damien Miller <djm@mindrot.org>
6486Date: Fri Jan 24 14:27:04 2014 +1100
6487
6488 - (djm) [Makefile.in regress/scp-ssh-wrapper.sh regress/scp.sh] Make
6489 the scp regress test actually test the built scp rather than the one
6490 in $PATH. ok dtucker@
6491
6492commit 42a092530159637da9cb7f9e1b5f4679e34a85e6
6493Author: Darren Tucker <dtucker@zip.com.au>
6494Date: Thu Jan 23 23:14:39 2014 +1100
6495
6496 - (dtucker) [configure.ac] NetBSD's (and FreeBSD's) strnvis is gratuitously
6497 incompatible with OpenBSD's despite post-dating it by more than a decade.
6498 Declare it as broken, and document FreeBSD's as the same. ok djm@
6499
6500commit 617da33c20cb59f9ea6c99c881d92493371ef7b8
6501Author: Tim Rice <tim@multitalents.net>
6502Date: Wed Jan 22 19:16:10 2014 -0800
6503
6504 - (tim) [session.c] Improve error reporting on set_id().
6505
6506commit 5c2ff5e31f57d303ebb414d84a934c02728fa568
6507Author: Damien Miller <djm@mindrot.org>
6508Date: Wed Jan 22 21:30:12 2014 +1100
6509
6510 - (djm) [configure.ac aclocal.m4] More tests to detect fallout from
6511 platform hardening options: include some long long int arithmatic
6512 to detect missing support functions for -ftrapv in libgcc and
6513 equivalents, actually test linking when -ftrapv is supplied and
6514 set either both -pie/-fPIE or neither. feedback and ok dtucker@
6515
6516commit 852472a54b8a0dc3e53786b313baaa86850a4273
6517Author: Damien Miller <djm@mindrot.org>
6518Date: Wed Jan 22 16:31:18 2014 +1100
6519
6520 - (djm) [configure.ac] Unless specifically requested, only attempt
6521 to build Position Independent Executables on gcc >= 4.x; ok dtucker
6522
6523commit ee87838786cef0194db36ae0675b3e7c4e8ec661
6524Author: Damien Miller <djm@mindrot.org>
6525Date: Wed Jan 22 16:30:15 2014 +1100
6526
6527 - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a
6528 platform that is expected to use the reuse-argv style setproctitle
6529 hack surprises us by providing a setproctitle in libc; ok dtucker
6530
6531commit 5c96a154c7940fa67b1f11c421e390dbbc159f27
6532Author: Damien Miller <djm@mindrot.org>
6533Date: Tue Jan 21 13:10:26 2014 +1100
6534
6535 - (djm) [aclocal.m4] Flesh out the code run in the OSSH_CHECK_CFLAG_COMPILE
6536 and OSSH_CHECK_LDFLAG_LINK tests to give them a better chance of
6537 detecting toolchain-related problems; ok dtucker
6538
6539commit 9464ba6fb34bb42eb3501ec3c5143662e75674bf
6540Author: Tim Rice <tim@multitalents.net>
6541Date: Mon Jan 20 17:59:28 2014 -0800
6542
6543 - (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced
6544 with sftp chroot support. Move set_id call after chroot.
6545
6546commit a6d573caa14d490e6c42fb991bcb5c6860ec704b
6547Author: Darren Tucker <dtucker@zip.com.au>
6548Date: Tue Jan 21 12:50:46 2014 +1100
6549
6550 - (dtucker) [aclocal.m4] Differentiate between compile-time and link-time
6551 tests in the configure output. ok djm.
6552
6553commit 096118dc73ab14810b3c12785c0b5acb01ad6123
6554Author: Darren Tucker <dtucker@zip.com.au>
6555Date: Tue Jan 21 12:48:51 2014 +1100
6556
6557 - (dtucker) [configure.ac] Make PIE a configure-time option which defaults
6558 to on platforms where it's known to be reliably detected and off elsewhere.
6559 Works around platforms such as FreeBSD 9.1 where it does not interop with
6560 -ftrapv (it seems to work but fails when trying to link ssh). ok djm@
6561
6562commit f9df7f6f477792254eab33cdef71a6d66488cb88
6563Author: Damien Miller <djm@mindrot.org>
6564Date: Mon Jan 20 20:07:15 2014 +1100
6565
6566 - (djm) [regress/cert-hostkey.sh] Fix regress failure on platforms that
6567 skip one or more key types (e.g. RHEL/CentOS 6.5); ok dtucker@
6568
6569commit c74e70eb52ccc0082bd5a70b5798bb01c114d138
6570Author: Darren Tucker <dtucker@zip.com.au>
6571Date: Mon Jan 20 13:18:09 2014 +1100
6572
6573 - (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos
6574 implementation does not have krb5_cc_new_unique, similar to what we do
6575 in auth-krb5.c.
6576
6577commit 3510979e83b6a18ec8773c64c3fa04aa08b2e783
6578Author: Damien Miller <djm@mindrot.org>
6579Date: Mon Jan 20 12:41:53 2014 +1100
6580
6581 - djm@cvs.openbsd.org 2014/01/20 00:08:48
6582 [digest.c]
6583 memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@
6584
6585commit 7eee358d7a6580479bee5cd7e52810ebfd03e5b2
6586Author: Darren Tucker <dtucker@zip.com.au>
6587Date: Sun Jan 19 22:37:02 2014 +1100
6588
6589 - dtucker@cvs.openbsd.org 2014/01/19 11:21:51
6590 [addrmatch.c]
6591 Cast the sizeof to socklen_t so it'll work even if the supplied len is
6592 negative. Suggested by and ok djm, ok deraadt.
6593
6594commit b7e01c09b56ab26e8fac56bbce0fd25e36d12bb0
6595Author: Darren Tucker <dtucker@zip.com.au>
6596Date: Sun Jan 19 22:36:13 2014 +1100
6597
6598 - djm@cvs.openbsd.org 2014/01/19 04:48:08
6599 [ssh_config.5]
6600 fix inverted meaning of 'no' and 'yes' for CanonicalizeFallbackLocal
6601
6602commit 7b1ded04adce42efa25ada7c3a39818d3109b724
6603Author: Darren Tucker <dtucker@zip.com.au>
6604Date: Sun Jan 19 15:30:02 2014 +1100
6605
6606 - dtucker@cvs.openbsd.org 2014/01/19 04:17:29
6607 [canohost.c addrmatch.c]
6608 Cast socklen_t when comparing to size_t and use socklen_t to iterate over
6609 the ip options, both to prevent signed/unsigned comparison warnings.
6610 Patch from vinschen at redhat via portable openssh, begrudging ok deraadt.
6611
6612commit 293ee3c9f0796d99ebb033735f0e315f2e0180bf
6613Author: Darren Tucker <dtucker@zip.com.au>
6614Date: Sun Jan 19 15:28:01 2014 +1100
6615
6616 - dtucker@cvs.openbsd.org 2014/01/18 09:36:26
6617 [session.c]
6618 explicitly define USE_PIPES to 1 to prevent redefinition warnings in
6619 portable on platforms that use pipes for everything. From redhat @
6620 redhat.
6621
6622commit 2aca159d05f9e7880d1d8f1ce49a218840057f53
6623Author: Darren Tucker <dtucker@zip.com.au>
6624Date: Sun Jan 19 15:25:34 2014 +1100
6625
6626 - dtucker@cvs.openbsd.org 2014/01/17 06:23:24
6627 [sftp-server.c]
6628 fix log message statvfs. ok djm
6629
6630commit 841f7da89ae8b367bb502d61c5c41916c6e7ae4c
6631Author: Darren Tucker <dtucker@zip.com.au>
6632Date: Sat Jan 18 22:12:15 2014 +1100
6633
6634 - (dtucker) [sandbox-capsicum.c] Correct some error messages and make the
6635 return value check for cap_enter() consistent with the other uses in
6636 FreeBSD. From by Loganaden Velvindron @ AfriNIC via bz#2140.
6637
6638commit fdce3731660699b2429e93e822f2ccbaccd163ae
6639Author: Darren Tucker <dtucker@zip.com.au>
6640Date: Sat Jan 18 21:12:42 2014 +1100
6641
6642 - (dtucker) [configure.ac] On Cygwin the getopt variables (like optargs,
6643 optind) are defined in getopt.h already. Unfortunately they are defined as
6644 "declspec(dllimport)" for historical reasons, because the GNU linker didn't
6645 allow auto-import on PE/COFF targets way back when. The problem is the
6646 dllexport attributes collide with the definitions in the various source
6647 files in OpenSSH, which obviousy define the variables without
6648 declspec(dllimport). The least intrusive way to get rid of these warnings
6649 is to disable warnings for GCC compiler attributes when building on Cygwin.
6650 Patch from vinschen at redhat.com.
6651
6652commit 1411c9263f46e1ee49d0d302bf7258ebe69ce827
6653Author: Darren Tucker <dtucker@zip.com.au>
6654Date: Sat Jan 18 21:03:59 2014 +1100
6655
6656 - (dtucker) [openbsd-compat/bsd-cygwin_util.h] Add missing function
6657 declarations that stopped being included when we stopped including
6658 <windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at
6659 redhat.com.
6660
6661commit 89c532d843c95a085777c66365067d64d1937eb9
6662Author: Darren Tucker <dtucker@zip.com.au>
6663Date: Sat Jan 18 20:43:49 2014 +1100
6664
6665 - (dtucker) [uidswap.c] Prevent unused variable warnings on Cygwin. Patch
6666 from vinschen at redhat.com
6667
6668commit 355f861022be7b23d3009fae8f3c9f6f7fc685f7
6669Author: Darren Tucker <dtucker@zip.com.au>
6670Date: Sat Jan 18 00:12:38 2014 +1100
6671
6672 - (dtucker) [defines.h] Move our definitions of uintXX_t types down to after
6673 they're defined if we have to define them ourselves. Fixes builds on old
6674 AIX.
6675
6676commit a3357661ee1d5d553294f36e4940e8285c7f1332
6677Author: Darren Tucker <dtucker@zip.com.au>
6678Date: Sat Jan 18 00:03:57 2014 +1100
6679
6680 - (dtucker) [readconf.c] Wrap paths.h inside an ifdef. Allows building on
6681 Solaris.
6682
6683commit 9edcbff46ff01c8d5dee9c1aa843f09e9ad8a80e
6684Author: Darren Tucker <dtucker@zip.com.au>
6685Date: Fri Jan 17 21:54:32 2014 +1100
6686
6687 - (dtucker) [configure.ac] Have --without-toolchain-hardening not turn off
6688 stack-protector since that has a separate flag that's been around a while.
6689
6690commit 6d725687c490d4ba957a1bbc0ba0a2956c09fa69
6691Author: Darren Tucker <dtucker@zip.com.au>
6692Date: Fri Jan 17 19:17:34 2014 +1100
6693
6694 - (dtucker) [configure.ac] Also look in inttypes.h for uintXX_t types.
6695
6696commit 5055699c7f7c7ef21703a443ec73117da392f6ae
6697Author: Darren Tucker <dtucker@zip.com.au>
6698Date: Fri Jan 17 18:48:22 2014 +1100
6699
6700 - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we
6701 need them to cut down on the name collisions.
6702
6703commit a5cf1e220def07290260e4125e74f41ac75cf88d
6704Author: Darren Tucker <dtucker@zip.com.au>
6705Date: Fri Jan 17 18:10:58 2014 +1100
6706
6707 - (dtucker) [configure.ac openbsd-compat/bsd-statvfs.c
6708 openbsd-compat/bsd-statvfs.h] Implement enough of statvfs on top of statfs
6709 to be useful (and for the regression tests to pass) on platforms that
6710 have statfs and fstatfs. ok djm@
6711
6712commit 1357d71d7b6d269969520aaa3e84d312ec971d5b
6713Author: Darren Tucker <dtucker@zip.com.au>
6714Date: Fri Jan 17 18:00:40 2014 +1100
6715
6716 - (dtucker) Fix typo in #ifndef.
6717
6718commit d23a91ffb289d3553a58b7a60cec39fba9f0f506
6719Author: Darren Tucker <dtucker@zip.com.au>
6720Date: Fri Jan 17 17:32:30 2014 +1100
6721
6722 - (dtucker) [configure.ac digest.c openbsd-compat/openssl-compat.c
6723 openbsd-compat/openssl-compat.h] Add compatibility layer for older
6724 openssl versions. ok djm@
6725
6726commit 868ea1ea1c1bfdbee5dbad78f81999c5983ecf31
6727Author: Damien Miller <djm@mindrot.org>
6728Date: Fri Jan 17 16:47:04 2014 +1100
6729
6730 - (djm) [Makefile.in configure.ac sandbox-capsicum.c sandbox-darwin.c]
6731 [sandbox-null.c sandbox-rlimit.c sandbox-seccomp-filter.c]
6732 [sandbox-systrace.c ssh-sandbox.h sshd.c] Support preauth sandboxing
6733 using the Capsicum API introduced in FreeBSD 10. Patch by Dag-Erling
6734 Smorgrav, updated by Loganaden Velvindron @ AfriNIC; ok dtucker@
6735
6736commit a9d186a8b50d18869a10e9203abf71c83ddb1f79
6737Author: Darren Tucker <dtucker@zip.com.au>
6738Date: Fri Jan 17 16:30:49 2014 +1100
6739
6740 - dtucker@cvs.openbsd.org 2014/01/17 05:26:41
6741 [digest.c]
6742 remove unused includes. ok djm@
6743
6744commit 5f1c57a7a7eb39c0e4fee3367712337dbcaef024
6745Author: Darren Tucker <dtucker@zip.com.au>
6746Date: Fri Jan 17 16:29:45 2014 +1100
6747
6748 - djm@cvs.openbsd.org 2014/01/17 00:21:06
6749 [sftp-client.c]
6750 signed/unsigned comparison warning fix; from portable (Id sync only)
6751
6752commit c548722361d89fb12c108528f96b306a26477b18
6753Author: Darren Tucker <dtucker@zip.com.au>
6754Date: Fri Jan 17 15:12:16 2014 +1100
6755
6756 - (dtucker) [configure.ac] Split AC_CHECK_FUNCS for OpenSSL functions into
6757 separate lines and alphabetize for easier diffing of changes.
6758
6759commit acad351a5b1c37de9130c9c1710445cc45a7f6b9
6760Author: Darren Tucker <dtucker@zip.com.au>
6761Date: Fri Jan 17 14:20:05 2014 +1100
6762
6763 - (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that
6764 don't have them.
6765
6766commit c3ed065ce8417aaa46490836648c173a5010f226
6767Author: Darren Tucker <dtucker@zip.com.au>
6768Date: Fri Jan 17 14:18:45 2014 +1100
6769
6770 - (dtucker) [openbsd-compat/bcrypt_pbkdf.c] Wrap stdlib.h include inside
6771 #ifdef HAVE_STDINT_H.
6772
6773commit f45f78ae437062c7d9506c5f475b7215f486be44
6774Author: Darren Tucker <dtucker@zip.com.au>
6775Date: Fri Jan 17 12:43:43 2014 +1100
6776
6777 - (dtucker) [blocks.c fe25519.c ge25519.c hash.c sc25519.c verify.c] Include
6778 includes.h to pull in all of the compatibility stuff.
6779
6780commit 99df369d0340caac145d57f700d830147ff18b87
6781Author: Darren Tucker <dtucker@zip.com.au>
6782Date: Fri Jan 17 12:42:17 2014 +1100
6783
6784 - (dtucker) [poly1305.c] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H.
6785
6786commit ac413b62ea1957e80c711acbe0c11b908273fc01
6787Author: Darren Tucker <dtucker@zip.com.au>
6788Date: Fri Jan 17 12:31:33 2014 +1100
6789
6790 - (dtucker) [crypto_api.h] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H.
6791
6792commit 1c4a011e9c939e74815346a560843e1862c300b8
6793Author: Darren Tucker <dtucker@zip.com.au>
6794Date: Fri Jan 17 12:23:23 2014 +1100
6795
6796 - (dtucker) [loginrec.c] Cast to the types specfied in the format
6797 specification to prevent warnings.
6798
6799commit c3d483f9a8275be1113535a1e0d0e384f605f3c4
6800Author: Damien Miller <djm@mindrot.org>
6801Date: Fri Jan 17 11:20:26 2014 +1100
6802
6803 - (djm) [sftp-client.c] signed/unsigned comparison fix
6804
6805commit fd994379dd972417d0491767f7cd9b5bf23f4975
6806Author: Darren Tucker <dtucker@zip.com.au>
6807Date: Fri Jan 17 09:53:24 2014 +1100
6808
6809 - (dtucker) [aclocal.m4 configure.ac] Add some additional compiler/toolchain
6810 hardening flags including -fstack-protector-strong. These default to on
6811 if the toolchain supports them, but there is a configure-time knob
6812 (--without-hardening) to disable them if necessary. ok djm@
6813
6814commit 366224d21768ee8ec28cfbcc5fbade1b32582d58
6815Author: Damien Miller <djm@mindrot.org>
6816Date: Thu Jan 16 18:51:44 2014 +1100
6817
6818 - (djm) [README] update release notes URL.
6819
6820commit 2ae77e64f8fa82cbf25c9755e8e847709b978b40
6821Author: Damien Miller <djm@mindrot.org>
6822Date: Thu Jan 16 18:51:07 2014 +1100
6823
6824 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
6825 [contrib/suse/openssh.spec] Crank RPM spec version numbers.
6826
6827commit 0fa29e6d777c73a1b4ddd3b996b06ee20022ae8a
6828Author: Damien Miller <djm@mindrot.org>
6829Date: Thu Jan 16 18:42:31 2014 +1100
6830
6831 - djm@cvs.openbsd.org 2014/01/16 07:32:00
6832 [version.h]
6833 openssh-6.5
6834
6835commit 52c371cd6d2598cc73d4e633811b3012119c47e2
6836Author: Damien Miller <djm@mindrot.org>
6837Date: Thu Jan 16 18:42:10 2014 +1100
6838
6839 - djm@cvs.openbsd.org 2014/01/16 07:31:09
6840 [sftp-client.c]
6841 needless and incorrect cast to size_t can break resumption of
6842 large download; patch from tobias@
6843
6844commit 91b580e4bec55118bf96ab3cdbe5a50839e75d0a
6845Author: Damien Miller <djm@mindrot.org>
6846Date: Sun Jan 12 19:21:22 2014 +1100
6847
6848 - djm@cvs.openbsd.org 2014/01/12 08:13:13
6849 [bufaux.c buffer.h kex.c kex.h kexc25519.c kexc25519c.c kexc25519s.c]
6850 [kexdhc.c kexdhs.c kexecdhc.c kexecdhs.c kexgexc.c kexgexs.c]
6851 avoid use of OpenSSL BIGNUM type and functions for KEX with
6852 Curve25519 by adding a buffer_put_bignum2_from_string() that stores
6853 a string using the bignum encoding rules. Will make it easier to
6854 build a reduced-feature OpenSSH without OpenSSL in the future;
6855 ok markus@
6856
6857commit af5d4481f4c7c8c3c746e68b961bb85ef907800e
6858Author: Damien Miller <djm@mindrot.org>
6859Date: Sun Jan 12 19:20:47 2014 +1100
6860
6861 - djm@cvs.openbsd.org 2014/01/10 05:59:19
6862 [sshd_config]
6863 the /etc/ssh/ssh_host_ed25519_key is loaded by default too
6864
6865commit 58cd63bc63038acddfb4051ed14e11179d8f4941
6866Author: Damien Miller <djm@mindrot.org>
6867Date: Fri Jan 10 10:59:24 2014 +1100
6868
6869 - djm@cvs.openbsd.org 2014/01/09 23:26:48
6870 [sshconnect.c sshd.c]
6871 ban clients/servers that suffer from SSH_BUG_DERIVEKEY, they are ancient,
6872 deranged and might make some attacks on KEX easier; ok markus@
6873
6874commit b3051d01e505c9c2dc00faab472a0d06fa6b0e65
6875Author: Damien Miller <djm@mindrot.org>
6876Date: Fri Jan 10 10:58:53 2014 +1100
6877
6878 - djm@cvs.openbsd.org 2014/01/09 23:20:00
6879 [digest.c digest.h hostfile.c kex.c kex.h kexc25519.c kexc25519c.c]
6880 [kexc25519s.c kexdh.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c]
6881 [kexgexs.c key.c key.h roaming_client.c roaming_common.c schnorr.c]
6882 [schnorr.h ssh-dss.c ssh-ecdsa.c ssh-rsa.c sshconnect2.c]
6883 Introduce digest API and use it to perform all hashing operations
6884 rather than calling OpenSSL EVP_Digest* directly. Will make it easier
6885 to build a reduced-feature OpenSSH without OpenSSL in future;
6886 feedback, ok markus@
6887
6888commit e00e413dd16eb747fb2c15a099971d91c13cf70f
6889Author: Damien Miller <djm@mindrot.org>
6890Date: Fri Jan 10 10:40:45 2014 +1100
6891
6892 - guenther@cvs.openbsd.org 2014/01/09 03:26:00
6893 [sftp-common.c]
6894 When formating the time for "ls -l"-style output, show dates in the future
6895 with the year, and rearrange a comparison to avoid a potentional signed
6896 arithmetic overflow that would give the wrong result.
6897
6898 ok djm@
6899
6900commit 3e49853650448883685cfa32fa382d0ba6d51d48
6901Author: Damien Miller <djm@mindrot.org>
6902Date: Fri Jan 10 10:37:05 2014 +1100
6903
6904 - tedu@cvs.openbsd.org 2014/01/04 17:50:55
6905 [mac.c monitor_mm.c monitor_mm.h xmalloc.c]
6906 use standard types and formats for size_t like variables. ok dtucker
6907
6908commit a9c1e500ef609795cbc662848edb1a1dca279c81
6909Author: Damien Miller <djm@mindrot.org>
6910Date: Wed Jan 8 16:13:12 2014 +1100
6911
6912 - (djm) [regress/.cvsignore] Ignore regress test droppings; ok dtucker@
6913
6914commit 324541e5264e1489ca0babfaf2b39612eb80dfb3
6915Author: Damien Miller <djm@mindrot.org>
6916Date: Tue Dec 31 12:25:40 2013 +1100
6917
6918 - djm@cvs.openbsd.org 2013/12/30 23:52:28
6919 [auth2-hostbased.c auth2-pubkey.c compat.c compat.h ssh-rsa.c]
6920 [sshconnect.c sshconnect2.c sshd.c]
6921 refuse RSA keys from old proprietary clients/servers that use the
6922 obsolete RSA+MD5 signature scheme. it will still be possible to connect
6923 with these clients/servers but only DSA keys will be accepted, and we'll
6924 deprecate them entirely in a future release. ok markus@
6925
6926commit 9f4c8e797ea002a883307ca906f1f1f815010e78
6927Author: Damien Miller <djm@mindrot.org>
6928Date: Sun Dec 29 17:57:46 2013 +1100
6929
6930 - (djm) [regress/Makefile] Add some generated files for cleaning
6931
6932commit 106bf1ca3c7a5fdc34f9fd7a1fe651ca53085bc5
6933Author: Damien Miller <djm@mindrot.org>
6934Date: Sun Dec 29 17:54:03 2013 +1100
6935
6936 - djm@cvs.openbsd.org 2013/12/29 05:57:02
6937 [sshconnect.c]
6938 when showing other hostkeys, don't forget Ed25519 keys
6939
6940commit 0fa47cfb32c239117632cab41e4db7d3e6de5e91
6941Author: Damien Miller <djm@mindrot.org>
6942Date: Sun Dec 29 17:53:39 2013 +1100
6943
6944 - djm@cvs.openbsd.org 2013/12/29 05:42:16
6945 [ssh.c]
6946 don't forget to load Ed25519 certs too
6947
6948commit b9a95490daa04cc307589897f95bfaff324ad2c9
6949Author: Damien Miller <djm@mindrot.org>
6950Date: Sun Dec 29 17:50:15 2013 +1100
6951
6952 - djm@cvs.openbsd.org 2013/12/29 04:35:50
6953 [authfile.c]
6954 don't refuse to load Ed25519 certificates
6955
6956commit f72cdde6e6fabc51d2a62f4e75b8b926d9d7ee89
6957Author: Damien Miller <djm@mindrot.org>
6958Date: Sun Dec 29 17:49:55 2013 +1100
6959
6960 - djm@cvs.openbsd.org 2013/12/29 04:29:25
6961 [authfd.c]
6962 allow deletion of ed25519 keys from the agent
6963
6964commit 29ace1cb68cc378a464c72c0fd67aa5f9acd6b5b
6965Author: Damien Miller <djm@mindrot.org>
6966Date: Sun Dec 29 17:49:31 2013 +1100
6967
6968 - djm@cvs.openbsd.org 2013/12/29 04:20:04
6969 [key.c]
6970 to make sure we don't omit any key types as valid CA keys again,
6971 factor the valid key type check into a key_type_is_valid_ca()
6972 function
6973
6974commit 9de4fcdc5a9cff48d49a3e2f6194d3fb2d7ae34d
6975Author: Damien Miller <djm@mindrot.org>
6976Date: Sun Dec 29 17:49:13 2013 +1100
6977
6978 - djm@cvs.openbsd.org 2013/12/29 02:49:52
6979 [key.c]
6980 correct comment for key_drop_cert()
6981
6982commit 5baeacf8a80f054af40731c6f92435f9164b8e02
6983Author: Damien Miller <djm@mindrot.org>
6984Date: Sun Dec 29 17:48:55 2013 +1100
6985
6986 - djm@cvs.openbsd.org 2013/12/29 02:37:04
6987 [key.c]
6988 correct comment for key_to_certified()
6989
6990commit 83f2fe26cb19330712c952eddbd3c0b621674adc
6991Author: Damien Miller <djm@mindrot.org>
6992Date: Sun Dec 29 17:48:38 2013 +1100
6993
6994 - djm@cvs.openbsd.org 2013/12/29 02:28:10
6995 [key.c]
6996 allow ed25519 keys to appear as certificate authorities
6997
6998commit 06122e9a74bb488b0fe0a8f64e1135de870f9cc0
6999Author: Damien Miller <djm@mindrot.org>
7000Date: Sun Dec 29 17:48:15 2013 +1100
7001
7002 - djm@cvs.openbsd.org 2013/12/27 22:37:18
7003 [ssh-rsa.c]
7004 correct comment
7005
7006commit 3e19295c3a253c8dc8660cf45baad7f45fccb969
7007Author: Damien Miller <djm@mindrot.org>
7008Date: Sun Dec 29 17:47:50 2013 +1100
7009
7010 - djm@cvs.openbsd.org 2013/12/27 22:30:17
7011 [ssh-dss.c ssh-ecdsa.c ssh-rsa.c]
7012 make the original RSA and DSA signing/verification code look more like
7013 the ECDSA/Ed25519 ones: use key_type_plain() when checking the key type
7014 rather than tediously listing all variants, use __func__ for debug/
7015 error messages
7016
7017commit 137977180be6254639e2c90245763e6965f8d815
7018Author: Damien Miller <djm@mindrot.org>
7019Date: Sun Dec 29 17:47:14 2013 +1100
7020
7021 - tedu@cvs.openbsd.org 2013/12/21 07:10:47
7022 [ssh-keygen.1]
7023 small typo
7024
7025commit 339a48fe7ffb3186d22bbaa9efbbc3a053e602fd
7026Author: Damien Miller <djm@mindrot.org>
7027Date: Sun Dec 29 17:46:49 2013 +1100
7028
7029 - djm@cvs.openbsd.org 2013/12/19 22:57:13
7030 [poly1305.c poly1305.h]
7031 use full name for author, with his permission
7032
7033commit 0b36c83148976c7c8268f4f41497359e2fb26251
7034Author: Damien Miller <djm@mindrot.org>
7035Date: Sun Dec 29 17:45:51 2013 +1100
7036
7037 - djm@cvs.openbsd.org 2013/12/19 01:19:41
7038 [ssh-agent.c]
7039 bz#2186: don't crash (NULL deref) when deleting PKCS#11 keys from an agent
7040 that has a mix of normal and PKCS#11 keys; fix from jay AT slushpupie.com;
7041 ok dtucker
7042
7043commit 4def184e9b6c36be6d965a9705632fc4c0c2a8af
7044Author: Damien Miller <djm@mindrot.org>
7045Date: Sun Dec 29 17:45:26 2013 +1100
7046
7047 - djm@cvs.openbsd.org 2013/12/19 01:04:36
7048 [channels.c]
7049 bz#2147: fix multiple remote forwardings with dynamically assigned
7050 listen ports. In the s->c message to open the channel we were sending
7051 zero (the magic number to request a dynamic port) instead of the actual
7052 listen port. The client therefore had no way of discriminating between
7053 them.
7054
7055 Diagnosis and fix by ronf AT timeheart.net
7056
7057commit bf25d114e23a803f8feca8926281b1aaedb6191b
7058Author: Damien Miller <djm@mindrot.org>
7059Date: Sun Dec 29 17:44:56 2013 +1100
7060
7061 - djm@cvs.openbsd.org 2013/12/19 00:27:57
7062 [auth-options.c]
7063 simplify freeing of source-address certificate restriction
7064
7065commit bb3dafe7024a5b4e851252e65ee35d45b965e4a8
7066Author: Damien Miller <djm@mindrot.org>
7067Date: Sun Dec 29 17:44:29 2013 +1100
7068
7069 - dtucker@cvs.openbsd.org 2013/12/19 00:19:12
7070 [serverloop.c]
7071 Cast client_alive_interval to u_int64_t before assinging to
7072 max_time_milliseconds to avoid potential integer overflow in the timeout.
7073 bz#2170, patch from Loganaden Velvindron, ok djm@
7074
7075commit ef275ead3dcadde4db1efe7a0aa02b5e618ed40c
7076Author: Damien Miller <djm@mindrot.org>
7077Date: Sun Dec 29 17:44:07 2013 +1100
7078
7079 - djm@cvs.openbsd.org 2013/12/19 00:10:30
7080 [ssh-add.c]
7081 skip requesting smartcard PIN when removing keys from agent; bz#2187
7082 patch from jay AT slushpupie.com; ok dtucker
7083
7084commit 7d97fd9a1cae778c3eacf16e09f5da3689d616c6
7085Author: Damien Miller <djm@mindrot.org>
7086Date: Sun Dec 29 17:40:18 2013 +1100
7087
7088 - (djm) [loginrec.c] Check for username truncation when looking up lastlog
7089 entries
7090
7091commit 77244afe3b6d013b485e0952eaab89b9db83380f
7092Author: Darren Tucker <dtucker@zip.com.au>
7093Date: Sat Dec 21 17:02:39 2013 +1100
7094
7095 20131221
7096 - (dtucker) [regress/keytype.sh] Actually test ecdsa key types.
7097
7098commit 53f8e784dc431a82d31c9b0e95b144507f9330e9
7099Author: Darren Tucker <dtucker@zip.com.au>
7100Date: Thu Dec 19 11:31:44 2013 +1100
7101
7102 - (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_item().
7103 Patch from Loganaden Velvindron.
7104
7105commit 1fcec9d4f265e38af248c4c845986ca8c174bd68
7106Author: Darren Tucker <dtucker@zip.com.au>
7107Date: Thu Dec 19 11:00:12 2013 +1100
7108
7109 - (dtucker) [configure.ac] bz#2178: Don't try to use BSM on Solaris versions
7110 greater than 11 either rather than just 11. Patch from Tomas Kuthan.
7111
7112commit 6674eb9683afd1ea4eb35670b5e66815543a759e
7113Author: Damien Miller <djm@mindrot.org>
7114Date: Wed Dec 18 17:50:39 2013 +1100
7115
7116 - markus@cvs.openbsd.org 2013/12/17 10:36:38
7117 [crypto_api.h]
7118 I've assempled the header file by cut&pasting from generated headers
7119 and the source files.
7120
7121commit d58a5964426ee014384d67d775d16712e93057f3
7122Author: Damien Miller <djm@mindrot.org>
7123Date: Wed Dec 18 17:50:13 2013 +1100
7124
7125 - djm@cvs.openbsd.org 2013/12/15 21:42:35
7126 [cipher-chachapoly.c]
7127 add some comments and constify a constant
7128
7129commit 059321d19af24d87420de3193f79dfab23556078
7130Author: Damien Miller <djm@mindrot.org>
7131Date: Wed Dec 18 17:49:48 2013 +1100
7132
7133 - pascal@cvs.openbsd.org 2013/12/15 18:17:26
7134 [ssh-add.c]
7135 Make ssh-add also add .ssh/id_ed25519; fixes lie in manual page.
7136 ok markus@
7137
7138commit 155b5a5bf158767f989215479ded2a57f331e1c6
7139Author: Damien Miller <djm@mindrot.org>
7140Date: Wed Dec 18 17:48:32 2013 +1100
7141
7142 - markus@cvs.openbsd.org 2013/12/09 11:08:17
7143 [crypto_api.h]
7144 remove unused defines
7145
7146commit 8a56dc2b6b48b05590810e7f4c3567508410000c
7147Author: Damien Miller <djm@mindrot.org>
7148Date: Wed Dec 18 17:48:11 2013 +1100
7149
7150 - markus@cvs.openbsd.org 2013/12/09 11:03:45
7151 [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
7152 [ge25519_base.data hash.c sc25519.c sc25519.h verify.c]
7153 Add Authors for the public domain ed25519/nacl code.
7154 see also http://nacl.cr.yp.to/features.html
7155 All of the NaCl software is in the public domain.
7156 and http://ed25519.cr.yp.to/software.html
7157 The Ed25519 software is in the public domain.
7158
7159commit 6575c3acf31fca117352f31f37b16ae46e664837
7160Author: Damien Miller <djm@mindrot.org>
7161Date: Wed Dec 18 17:47:02 2013 +1100
7162
7163 - dtucker@cvs.openbsd.org 2013/12/08 09:53:27
7164 [sshd_config.5]
7165 Use a literal for the default value of KEXAlgorithms. ok deraadt jmc
7166
7167commit 8ba0ead6985ea14999265136b14ffd5aeec516f9
7168Author: Damien Miller <djm@mindrot.org>
7169Date: Wed Dec 18 17:46:27 2013 +1100
7170
7171 - naddy@cvs.openbsd.org 2013/12/07 11:58:46
7172 [ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh-keysign.8 ssh.1]
7173 [ssh_config.5 sshd.8 sshd_config.5]
7174 add missing mentions of ed25519; ok djm@
7175
7176commit 4f752cf71cf44bf4bc777541156c2bf56daf9ce9
7177Author: Damien Miller <djm@mindrot.org>
7178Date: Wed Dec 18 17:45:35 2013 +1100
7179
7180 - djm@cvs.openbsd.org 2013/12/07 08:08:26
7181 [ssh-keygen.1]
7182 document -a and -o wrt new key format
7183
7184commit 6d6fcd14e23a9053198342bb379815b15e504084
7185Author: Damien Miller <djm@mindrot.org>
7186Date: Sun Dec 8 15:53:28 2013 +1100
7187
7188 - (djm) [Makefile.in regress/Makefile regress/agent-ptrace.sh]
7189 [regress/setuid-allowed.c] Check that ssh-agent is not on a no-setuid
7190 filesystem before running agent-ptrace.sh; ok dtucker
7191
7192commit 7e6e42fb532c7dafd7078ef5e9e2d3e47fcf6752
7193Author: Damien Miller <djm@mindrot.org>
7194Date: Sun Dec 8 08:23:08 2013 +1100
7195
7196 - (djm) [openbsd-compat/bsd-setres_id.c] Missing header; from Corinna
7197 Vinschen
7198
7199commit da3ca351b49d52ae85db2e3998265dc3c6617068
7200Author: Damien Miller <djm@mindrot.org>
7201Date: Sat Dec 7 21:43:46 2013 +1100
7202
7203 - (djm) [Makefile.in] PATHSUBS and keygen bits for Ed25519; from
7204 Loganaden Velvindron @ AfriNIC in bz#2179
7205
7206commit eb401585bb8336cbf81fe4fc58eb9f7cac3ab874
7207Author: Damien Miller <djm@mindrot.org>
7208Date: Sat Dec 7 17:07:15 2013 +1100
7209
7210 - (djm) [regress/cert-hostkey.sh] Fix merge botch
7211
7212commit f54542af3ad07532188b10136ae302314ec69ed6
7213Author: Damien Miller <djm@mindrot.org>
7214Date: Sat Dec 7 16:32:44 2013 +1100
7215
7216 - markus@cvs.openbsd.org 2013/12/06 13:52:46
7217 [regress/Makefile regress/agent.sh regress/cert-hostkey.sh]
7218 [regress/cert-userkey.sh regress/keytype.sh]
7219 test ed25519 support; from djm@
7220
7221commit f104da263de995f66b6861b4f3368264ee483d7f
7222Author: Damien Miller <djm@mindrot.org>
7223Date: Sat Dec 7 12:37:53 2013 +1100
7224
7225 - (djm) [ed25519.c ssh-ed25519.c openbsd-compat/Makefile.in]
7226 [openbsd-compat/bcrypt_pbkdf.c] Make ed25519/new key format compile on
7227 Linux
7228
7229commit 1ff130dac9b7aea0628f4ad30683431fe35e0020
7230Author: Damien Miller <djm@mindrot.org>
7231Date: Sat Dec 7 11:51:51 2013 +1100
7232
7233 - [configure.ac openbsd-compat/Makefile.in openbsd-compat/bcrypt_pbkdf.c]
7234 [openbsd-compat/blf.h openbsd-compat/blowfish.c]
7235 [openbsd-compat/openbsd-compat.h] Start at supporting bcrypt_pbkdf in
7236 portable.
7237
7238commit 4260828a2958ebe8c96f66d8301dac53f4cde556
7239Author: Damien Miller <djm@mindrot.org>
7240Date: Sat Dec 7 11:38:03 2013 +1100
7241
7242 - [authfile.c] Conditionalise inclusion of util.h
7243
7244commit a913442bac8a26fd296a3add51293f8f6f9b3b4c
7245Author: Damien Miller <djm@mindrot.org>
7246Date: Sat Dec 7 11:35:36 2013 +1100
7247
7248 - [Makefile.in] Add ed25519 sources
7249
7250commit ca570a519cb846da61d002c7f46fa92e39c83e45
7251Author: Damien Miller <djm@mindrot.org>
7252Date: Sat Dec 7 11:29:09 2013 +1100
7253
7254 - djm@cvs.openbsd.org 2013/12/07 00:19:15
7255 [key.c]
7256 set k->cert = NULL after freeing it
7257
7258commit 3cccc0e155229a2f2d86b6df40bd4559b4f960ff
7259Author: Damien Miller <djm@mindrot.org>
7260Date: Sat Dec 7 11:27:47 2013 +1100
7261
7262 - [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
7263 [ge25519_base.data hash.c sc25519.c sc25519.h verify.c] Fix RCS idents
7264
7265commit a7827c11b3f0380b7e593664bd62013ff9c131db
7266Author: Damien Miller <djm@mindrot.org>
7267Date: Sat Dec 7 11:24:30 2013 +1100
7268
7269 - jmc@cvs.openbsd.org 2013/12/06 15:29:07
7270 [sshd.8]
7271 missing comma;
7272
7273commit 5be9d9e3cbd9c66f24745d25bf2e809c1d158ee0
7274Author: Damien Miller <djm@mindrot.org>
7275Date: Sat Dec 7 11:24:01 2013 +1100
7276
7277 - markus@cvs.openbsd.org 2013/12/06 13:39:49
7278 [authfd.c authfile.c key.c key.h myproposal.h pathnames.h readconf.c]
7279 [servconf.c ssh-agent.c ssh-keygen.c ssh-keyscan.1 ssh-keyscan.c]
7280 [ssh-keysign.c ssh.c ssh_config.5 sshd.8 sshd.c verify.c ssh-ed25519.c]
7281 [sc25519.h sc25519.c hash.c ge25519_base.data ge25519.h ge25519.c]
7282 [fe25519.h fe25519.c ed25519.c crypto_api.h blocks.c]
7283 support ed25519 keys (hostkeys and user identities) using the public
7284 domain ed25519 reference code from SUPERCOP, see
7285 http://ed25519.cr.yp.to/software.html
7286 feedback, help & ok djm@
7287
7288commit bcd00abd8451f36142ae2ee10cc657202149201e
7289Author: Damien Miller <djm@mindrot.org>
7290Date: Sat Dec 7 10:41:55 2013 +1100
7291
7292 - markus@cvs.openbsd.org 2013/12/06 13:34:54
7293 [authfile.c authfile.h cipher.c cipher.h key.c packet.c ssh-agent.c]
7294 [ssh-keygen.c PROTOCOL.key] new private key format, bcrypt as KDF by
7295 default; details in PROTOCOL.key; feedback and lots help from djm;
7296 ok djm@
7297
7298commit f0e9060d236c0e38bec2fa1c6579fb0a2ea6458d
7299Author: Damien Miller <djm@mindrot.org>
7300Date: Sat Dec 7 10:40:26 2013 +1100
7301
7302 - markus@cvs.openbsd.org 2013/12/06 13:30:08
7303 [authfd.c key.c key.h ssh-agent.c]
7304 move private key (de)serialization to key.c; ok djm
7305
7306commit 0f8536da23a6ef26e6495177c0d8a4242b710289
7307Author: Damien Miller <djm@mindrot.org>
7308Date: Sat Dec 7 10:31:37 2013 +1100
7309
7310 - djm@cvs.openbsd.org 2013/12/06 03:40:51
7311 [ssh-keygen.c]
7312 remove duplicated character ('g') in getopt() string;
7313 document the (few) remaining option characters so we don't have to
7314 rummage next time.
7315
7316commit 393920745fd328d3fe07f739a3cf7e1e6db45b60
7317Author: Damien Miller <djm@mindrot.org>
7318Date: Sat Dec 7 10:31:08 2013 +1100
7319
7320 - djm@cvs.openbsd.org 2013/12/05 22:59:45
7321 [sftp-client.c]
7322 fix memory leak in error path in do_readdir(); pointed out by
7323 Loganaden Velvindron @ AfriNIC in bz#2163
7324
7325commit 534b2ccadea5e5e9a8b27226e6faac3ed5552e97
7326Author: Damien Miller <djm@mindrot.org>
7327Date: Thu Dec 5 14:07:27 2013 +1100
7328
7329 - djm@cvs.openbsd.org 2013/12/05 01:16:41
7330 [servconf.c servconf.h]
7331 bz#2161 - fix AuthorizedKeysCommand inside a Match block and
7332 rearrange things so the same error is harder to make next time;
7333 with and ok dtucker@
7334
7335commit 8369c8e61a3408ec6bb75755fad4ffce29b5fdbe
7336Author: Darren Tucker <dtucker@zip.com.au>
7337Date: Thu Dec 5 11:00:16 2013 +1100
7338
7339 - (dtucker) [configure.ac] bz#2173: use pkg-config --libs to include correct
7340 -L location for libedit. Patch from Serge van den Boom.
7341
7342commit 9275df3e0a2a3bc3897f7d664ea86a425c8a092d
7343Author: Damien Miller <djm@mindrot.org>
7344Date: Thu Dec 5 10:26:32 2013 +1100
7345
7346 - djm@cvs.openbsd.org 2013/12/04 04:20:01
7347 [sftp-client.c]
7348 bz#2171: don't leak local_fd on error; from Loganaden Velvindron @
7349 AfriNIC
7350
7351commit 960f6a2b5254e4da082d8aa3700302ed12dc769a
7352Author: Damien Miller <djm@mindrot.org>
7353Date: Thu Dec 5 10:26:14 2013 +1100
7354
7355 - djm@cvs.openbsd.org 2013/12/02 03:13:14
7356 [cipher.c]
7357 correct bzero of chacha20+poly1305 key context. bz#2177 from
7358 Loganaden Velvindron @ AfriNIC
7359
7360 Also make it a memset for consistency with the rest of cipher.c
7361
7362commit f7e8a8796d661c9d6692ab837e1effd4f5ada1c2
7363Author: Damien Miller <djm@mindrot.org>
7364Date: Thu Dec 5 10:25:51 2013 +1100
7365
7366 - djm@cvs.openbsd.org 2013/12/02 03:09:22
7367 [key.c]
7368 make key_to_blob() return a NULL blob on failure; part of
7369 bz#2175 from Loganaden Velvindron @ AfriNIC
7370
7371commit f1e44ea9d9a6d4c1a95a0024132e603bd1778c9c
7372Author: Damien Miller <djm@mindrot.org>
7373Date: Thu Dec 5 10:23:21 2013 +1100
7374
7375 - djm@cvs.openbsd.org 2013/12/02 02:56:17
7376 [ssh-pkcs11-helper.c]
7377 use-after-free; bz#2175 patch from Loganaden Velvindron @ AfriNIC
7378
7379commit 114e540b15d57618f9ebf624264298f80bbd8c77
7380Author: Damien Miller <djm@mindrot.org>
7381Date: Thu Dec 5 10:22:57 2013 +1100
7382
7383 - djm@cvs.openbsd.org 2013/12/02 02:50:27
7384 [PROTOCOL.chacha20poly1305]
7385 typo; from Jon Cave
7386
7387commit e4870c090629e32f2cb649dc16d575eeb693f4a8
7388Author: Damien Miller <djm@mindrot.org>
7389Date: Thu Dec 5 10:22:39 2013 +1100
7390
7391 - djm@cvs.openbsd.org 2013/12/01 23:19:05
7392 [PROTOCOL]
7393 mention curve25519-sha256@libssh.org key exchange algorithm
7394
7395commit 1d2f8804a6d33a4e908b876b2e1266b8260ec76b
7396Author: Damien Miller <djm@mindrot.org>
7397Date: Thu Dec 5 10:22:03 2013 +1100
7398
7399 - deraadt@cvs.openbsd.org 2013/11/26 19:15:09
7400 [pkcs11.h]
7401 cleanup 1 << 31 idioms. Resurrection of this issue pointed out by
7402 Eitan Adler ok markus for ssh, implies same change in kerberosV
7403
7404commit bdb352a54f82df94a548e3874b22f2d6ae90328d
7405Author: Damien Miller <djm@mindrot.org>
7406Date: Thu Dec 5 10:20:52 2013 +1100
7407
7408 - jmc@cvs.openbsd.org 2013/11/26 12:14:54
7409 [ssh.1 ssh.c]
7410 - put -Q in the right place
7411 - Ar was a poor choice for the arguments to -Q. i've chosen an
7412 admittedly equally poor Cm, at least consistent with the rest
7413 of the docs. also no need for multiple instances
7414 - zap a now redundant Nm
7415 - usage() sync
7416
7417commit d937dc084a087090f1cf5395822c3ac958d33759
7418Author: Damien Miller <djm@mindrot.org>
7419Date: Thu Dec 5 10:19:54 2013 +1100
7420
7421 - deraadt@cvs.openbsd.org 2013/11/25 18:04:21
7422 [ssh.1 ssh.c]
7423 improve -Q usage and such. One usage change is that the option is now
7424 case-sensitive
7425 ok dtucker markus djm
7426
7427commit dec0393f7ee8aabc7d9d0fc2c5fddb4bc649112e
7428Author: Damien Miller <djm@mindrot.org>
7429Date: Thu Dec 5 10:18:43 2013 +1100
7430
7431 - jmc@cvs.openbsd.org 2013/11/21 08:05:09
7432 [ssh_config.5 sshd_config.5]
7433 no need for .Pp before displays;
7434
7435commit 8a073cf57940aabf85e49799f89f5d5e9b072c1b
7436Author: Damien Miller <djm@mindrot.org>
7437Date: Thu Nov 21 14:26:18 2013 +1100
7438
7439 - djm@cvs.openbsd.org 2013/11/21 03:18:51
7440 [regress/cipher-speed.sh regress/integrity.sh regress/rekey.sh]
7441 [regress/try-ciphers.sh]
7442 use new "ssh -Q cipher-auth" query to obtain lists of authenticated
7443 encryption ciphers instead of specifying them manually; ensures that
7444 the new chacha20poly1305@openssh.com mode is tested;
7445
7446 ok markus@ and naddy@ as part of the diff to add
7447 chacha20poly1305@openssh.com
7448
7449commit ea61b2179f63d48968dd2c9617621002bb658bfe
7450Author: Damien Miller <djm@mindrot.org>
7451Date: Thu Nov 21 14:25:15 2013 +1100
7452
7453 - djm@cvs.openbsd.org 2013/11/21 03:16:47
7454 [regress/modpipe.c]
7455 use unsigned long long instead of u_int64_t here to avoid warnings
7456 on some systems portable OpenSSH is built on.
7457
7458commit 36aba25b0409d2db6afc84d54bc47a2532d38424
7459Author: Damien Miller <djm@mindrot.org>
7460Date: Thu Nov 21 14:24:42 2013 +1100
7461
7462 - djm@cvs.openbsd.org 2013/11/21 03:15:46
7463 [regress/krl.sh]
7464 add some reminders for additional tests that I'd like to implement
7465
7466commit fa7a20bc289f09b334808d988746bc260a2f60c9
7467Author: Damien Miller <djm@mindrot.org>
7468Date: Thu Nov 21 14:24:08 2013 +1100
7469
7470 - naddy@cvs.openbsd.org 2013/11/18 05:09:32
7471 [regress/forward-control.sh]
7472 bump timeout to 10 seconds to allow slow machines (e.g. Alpha PC164)
7473 to successfully run this; ok djm@
7474 (ID sync only; our timeouts are already longer)
7475
7476commit 0fde8acdad78a4d20cadae974376cc0165f645ee
7477Author: Damien Miller <djm@mindrot.org>
7478Date: Thu Nov 21 14:12:23 2013 +1100
7479
7480 - djm@cvs.openbsd.org 2013/11/21 00:45:44
7481 [Makefile.in PROTOCOL PROTOCOL.chacha20poly1305 authfile.c chacha.c]
7482 [chacha.h cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h]
7483 [dh.c myproposal.h packet.c poly1305.c poly1305.h servconf.c ssh.1]
7484 [ssh.c ssh_config.5 sshd_config.5] Add a new protocol 2 transport
7485 cipher "chacha20-poly1305@openssh.com" that combines Daniel
7486 Bernstein's ChaCha20 stream cipher and Poly1305 MAC to build an
7487 authenticated encryption mode.
7488
7489 Inspired by and similar to Adam Langley's proposal for TLS:
7490 http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-03
7491 but differs in layout used for the MAC calculation and the use of a
7492 second ChaCha20 instance to separately encrypt packet lengths.
7493 Details are in the PROTOCOL.chacha20poly1305 file.
7494
7495 Feedback markus@, naddy@; manpage bits Loganden Velvindron @ AfriNIC
7496 ok markus@ naddy@
7497
7498commit fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a
7499Author: Damien Miller <djm@mindrot.org>
7500Date: Thu Nov 21 13:57:15 2013 +1100
7501
7502 - deraadt@cvs.openbsd.org 2013/11/20 20:54:10
7503 [canohost.c clientloop.c match.c readconf.c sftp.c]
7504 unsigned casts for ctype macros where neccessary
7505 ok guenther millert markus
7506
7507commit e00167307e4d3692695441e9bd712f25950cb894
7508Author: Damien Miller <djm@mindrot.org>
7509Date: Thu Nov 21 13:56:49 2013 +1100
7510
7511 - deraadt@cvs.openbsd.org 2013/11/20 20:53:10
7512 [scp.c]
7513 unsigned casts for ctype macros where neccessary
7514 ok guenther millert markus
7515
7516commit 23e00aa6ba9eee0e0c218f2026bf405ad4625832
7517Author: Damien Miller <djm@mindrot.org>
7518Date: Thu Nov 21 13:56:28 2013 +1100
7519
7520 - djm@cvs.openbsd.org 2013/11/20 02:19:01
7521 [sshd.c]
7522 delay closure of in/out fds until after "Bad protocol version
7523 identification..." message, as get_remote_ipaddr/get_remote_port
7524 require them open.
7525
7526commit 867e6934be6521f87f04a5ab86702e2d1b314245
7527Author: Damien Miller <djm@mindrot.org>
7528Date: Thu Nov 21 13:56:06 2013 +1100
7529
7530 - markus@cvs.openbsd.org 2013/11/13 13:48:20
7531 [ssh-pkcs11.c]
7532 add missing braces found by pedro
7533
7534commit 0600c7020f4fe68a780bd7cf21ff541a8d4b568a
7535Author: Damien Miller <djm@mindrot.org>
7536Date: Thu Nov 21 13:55:43 2013 +1100
7537
7538 - dtucker@cvs.openbsd.org 2013/11/08 11:15:19
7539 [bufaux.c bufbn.c buffer.c sftp-client.c sftp-common.c sftp-glob.c]
7540 [uidswap.c] Include stdlib.h for free() as per the man page.
7541
7542commit b6a75b0b93b8faa6f79c3a395ab6c71f3f880b80
7543Author: Darren Tucker <dtucker@zip.com.au>
7544Date: Sun Nov 10 20:25:22 2013 +1100
7545
7546 - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
7547 querying the ones that are compiled in.
7548
7549commit 2c89430119367eb1bc96ea5ee55de83357e4c926
7550Author: Darren Tucker <dtucker@zip.com.au>
7551Date: Sun Nov 10 12:38:42 2013 +1100
7552
7553 - (dtucker) [key.c] Check for the correct defines for NID_secp521r1.
7554
7555commit dd5264db5f641dbd03186f9e5e83e4b14b3d0003
7556Author: Darren Tucker <dtucker@zip.com.au>
7557Date: Sat Nov 9 22:32:51 2013 +1100
7558
7559 - (dtucker) [configure.ac] Add missing "test".
7560
7561commit 95cb2d4eb08117be061f3ff076adef3e9a5372c3
7562Author: Darren Tucker <dtucker@zip.com.au>
7563Date: Sat Nov 9 22:02:31 2013 +1100
7564
7565 - (dtucker) [configure.ac] Fix brackets in NID_secp521r1 test.
7566
7567commit 37bcef51b3d9d496caecea6394814d2f49a1357f
7568Author: Darren Tucker <dtucker@zip.com.au>
7569Date: Sat Nov 9 18:39:25 2013 +1100
7570
7571 - (dtucker) [configure.ac kex.c key.c myproposal.h] Test for the presence of
7572 NID_X9_62_prime256v1, NID_secp384r1 and NID_secp521r1 and test that the
7573 latter actually works before using it. Fedora (at least) has NID_secp521r1
7574 that doesn't work (see https://bugzilla.redhat.com/show_bug.cgi?id=1021897).
7575
7576commit 6e2fe81f926d995bae4be4a6b5b3c88c1c525187
7577Author: Darren Tucker <dtucker@zip.com.au>
7578Date: Sat Nov 9 16:55:03 2013 +1100
7579
7580 - dtucker@cvs.openbsd.org 2013/11/09 05:41:34
7581 [regress/test-exec.sh regress/rekey.sh]
7582 Use smaller test data files to speed up tests. Grow test datafiles
7583 where necessary for a specific test.
7584
7585commit aff7ef1bb8b7c1eeb1f4812129091c5adbf51848
7586Author: Darren Tucker <dtucker@zip.com.au>
7587Date: Sat Nov 9 00:19:22 2013 +1100
7588
7589 - (dtucker) [contrib/cygwin/ssh-host-config] Simplify host key generation:
7590 rather than testing and generating each key, call ssh-keygen -A.
7591 Patch from vinschen at redhat.com.
7592
7593commit 882abfd3fb3c98cfe70b4fc79224770468b570a5
7594Author: Darren Tucker <dtucker@zip.com.au>
7595Date: Sat Nov 9 00:17:41 2013 +1100
7596
7597 - (dtucker) [Makefile.in configure.ac] Set MALLOC_OPTIONS per platform
7598 and pass in TEST_ENV. Unknown options cause stderr to get polluted
7599 and the stderr-data test to fail.
7600
7601commit 8c333ec23bdf7da917aa20ac6803a2cdd79182c5
7602Author: Darren Tucker <dtucker@zip.com.au>
7603Date: Fri Nov 8 21:12:58 2013 +1100
7604
7605 - (dtucker) [openbsd-compat/bsd-poll.c] Add headers to prevent compile
7606 warnings.
7607
7608commit d94240b2f6b376b6e9de187e4a0cd4b89dfc48cb
7609Author: Darren Tucker <dtucker@zip.com.au>
7610Date: Fri Nov 8 21:10:04 2013 +1100
7611
7612 - (dtucker) [myproposal.h] Conditionally enable CURVE25519_SHA256.
7613
7614commit 1c8ce34909886288a3932dce770deec5449f7bb5
7615Author: Darren Tucker <dtucker@zip.com.au>
7616Date: Fri Nov 8 19:50:32 2013 +1100
7617
7618 - (dtucker) [kex.c] Only enable CURVE25519_SHA256 if we actually have
7619 EVP_sha256.
7620
7621commit ccdb9bec46bcc88549b26a94aa0bae2b9f51031c
7622Author: Darren Tucker <dtucker@zip.com.au>
7623Date: Fri Nov 8 18:54:38 2013 +1100
7624
7625 - (dtucker) [openbsd-compat/openbsd-compat.h] Add null implementation of
7626 arc4random_stir for platforms that have arc4random but don't have
7627 arc4random_stir (right now this is only OpenBSD -current).
7628
7629commit 3420a50169b52cc8d2775d51316f9f866c73398f
7630Author: Damien Miller <djm@mindrot.org>
7631Date: Fri Nov 8 16:48:13 2013 +1100
7632
7633 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
7634 [contrib/suse/openssh.spec] Update version numbers following release.
7635
7636commit 3ac4a234df842fd8c94d9cb0ad198e1fe84b895b
7637Author: Damien Miller <djm@mindrot.org>
7638Date: Fri Nov 8 12:39:49 2013 +1100
7639
7640 - djm@cvs.openbsd.org 2013/11/08 01:38:11
7641 [version.h]
7642 openssh-6.4
7643
7644commit 6c81fee693038de7d4a5559043350391db2a2761
7645Author: Damien Miller <djm@mindrot.org>
7646Date: Fri Nov 8 12:19:55 2013 +1100
7647
7648 - djm@cvs.openbsd.org 2013/11/08 00:39:15
7649 [auth-options.c auth2-chall.c authfd.c channels.c cipher-3des1.c]
7650 [clientloop.c gss-genr.c monitor_mm.c packet.c schnorr.c umac.c]
7651 [sftp-client.c sftp-glob.c]
7652 use calloc for all structure allocations; from markus@
7653
7654commit 690d989008e18af3603a5e03f1276c9bad090370
7655Author: Damien Miller <djm@mindrot.org>
7656Date: Fri Nov 8 12:16:49 2013 +1100
7657
7658 - dtucker@cvs.openbsd.org 2013/11/07 11:58:27
7659 [cipher.c cipher.h kex.c kex.h mac.c mac.h servconf.c ssh.c]
7660 Output the effective values of Ciphers, MACs and KexAlgorithms when
7661 the default has not been overridden. ok markus@
7662
7663commit 08998c5fb9c7c1d248caa73b76e02ca0482e6d85
7664Author: Darren Tucker <dtucker@zip.com.au>
7665Date: Fri Nov 8 12:11:46 2013 +1100
7666
7667 - dtucker@cvs.openbsd.org 2013/11/08 01:06:14
7668 [regress/rekey.sh]
7669 Rekey less frequently during tests to speed them up
7670
7671commit 4bf7e50e533aa956366df7402c132f202e841a48
7672Author: Darren Tucker <dtucker@zip.com.au>
7673Date: Thu Nov 7 22:33:48 2013 +1100
7674
7675 - (dtucker) [Makefile.in configure.ac] Remove TEST_SSH_SHA256 environment
7676 variable. It's no longer used now that we get the supported MACs from
7677 ssh -Q.
7678
7679commit 6e9d6f411288374d1dee4b7debbfa90bc7e73035
7680Author: Darren Tucker <dtucker@zip.com.au>
7681Date: Thu Nov 7 15:32:37 2013 +1100
7682
7683 - dtucker@cvs.openbsd.org 2013/11/07 04:26:56
7684 [regress/kextype.sh]
7685 trailing space
7686
7687commit 74cbc22529f3e5de756e1b7677b7624efb28f62c
7688Author: Darren Tucker <dtucker@zip.com.au>
7689Date: Thu Nov 7 15:26:12 2013 +1100
7690
7691 - dtucker@cvs.openbsd.org 2013/11/07 03:55:41
7692 [regress/kextype.sh]
7693 Use ssh -Q to get kex types instead of a static list.
7694
7695commit a955041c930e63405159ff7d25ef14272f36eab3
7696Author: Darren Tucker <dtucker@zip.com.au>
7697Date: Thu Nov 7 15:21:19 2013 +1100
7698
7699 - dtucker@cvs.openbsd.org 2013/11/07 02:48:38
7700 [regress/integrity.sh regress/cipher-speed.sh regress/try-ciphers.sh]
7701 Use ssh -Q instead of hardcoding lists of ciphers or MACs.
7702
7703commit 06595d639577577bc15d359e037a31eb83563269
7704Author: Darren Tucker <dtucker@zip.com.au>
7705Date: Thu Nov 7 15:08:02 2013 +1100
7706
7707 - dtucker@cvs.openbsd.org 2013/11/07 01:12:51
7708 [regress/rekey.sh]
7709 Factor out the data transfer rekey tests
7710
7711commit 651dc8b2592202dac6b16ee3b82ce5b331be7da3
7712Author: Darren Tucker <dtucker@zip.com.au>
7713Date: Thu Nov 7 15:04:44 2013 +1100
7714
7715 - dtucker@cvs.openbsd.org 2013/11/07 00:12:05
7716 [regress/rekey.sh]
7717 Test rekeying for every Cipher, MAC and KEX, plus test every KEX with
7718 the GCM ciphers.
7719
7720commit 234557762ba1096a867ca6ebdec07efebddb5153
7721Author: Darren Tucker <dtucker@zip.com.au>
7722Date: Thu Nov 7 15:00:51 2013 +1100
7723
7724 - dtucker@cvs.openbsd.org 2013/11/04 12:27:42
7725 [regress/rekey.sh]
7726 Test rekeying with all KexAlgorithms.
7727
7728commit bbfb9b0f386aab0c3e19d11f136199ef1b9ad0ef
7729Author: Darren Tucker <dtucker@zip.com.au>
7730Date: Thu Nov 7 14:56:43 2013 +1100
7731
7732 - markus@cvs.openbsd.org 2013/11/02 22:39:53
7733 [regress/kextype.sh]
7734 add curve25519-sha256@libssh.org
7735
7736commit aa19548a98c0f89283ebd7354abd746ca6bc4fdf
7737Author: Darren Tucker <dtucker@zip.com.au>
7738Date: Thu Nov 7 14:50:09 2013 +1100
7739
7740 - djm@cvs.openbsd.org 2013/10/09 23:44:14
7741 [regress/Makefile] (ID sync only)
7742 regression test for sftp request white/blacklisting and readonly mode.
7743
7744commit c8908aabff252f5da772d4e679479c2b7d18cac1
7745Author: Damien Miller <djm@mindrot.org>
7746Date: Thu Nov 7 13:38:35 2013 +1100
7747
7748 - djm@cvs.openbsd.org 2013/11/06 23:05:59
7749 [ssh-pkcs11.c]
7750 from portable: s/true/true_val/ to avoid name collisions on dump platforms
7751 RCSID sync only
7752
7753commit 49c145c5e89b9d7d48e84328d6347d5ad640b567
7754Author: Damien Miller <djm@mindrot.org>
7755Date: Thu Nov 7 13:35:39 2013 +1100
7756
7757 - markus@cvs.openbsd.org 2013/11/06 16:52:11
7758 [monitor_wrap.c]
7759 fix rekeying for AES-GCM modes; ok deraadt
7760
7761commit 67a8800f290b39fd60e379988c700656ae3f2539
7762Author: Damien Miller <djm@mindrot.org>
7763Date: Thu Nov 7 13:32:51 2013 +1100
7764
7765 - markus@cvs.openbsd.org 2013/11/04 11:51:16
7766 [monitor.c]
7767 fix rekeying for KEX_C25519_SHA256; noted by dtucker@
7768 RCSID sync only; I thought this was a merge botch and fixed it already
7769
7770commit df8b030b15fcec7baf38ec7944f309f9ca8cc9a7
7771Author: Damien Miller <djm@mindrot.org>
7772Date: Thu Nov 7 13:28:16 2013 +1100
7773
7774 - (djm) [configure.ac defines.h] Skip arc4random_stir() calls on platforms
7775 that lack it but have arc4random_uniform()
7776
7777commit a6fd1d3c38a562709374a70fa76423859160aa90
7778Author: Damien Miller <djm@mindrot.org>
7779Date: Thu Nov 7 12:03:26 2013 +1100
7780
7781 - (djm) [regress/modpipe.c regress/rekey.sh] Never intended to commit these
7782
7783commit c98319750b0bbdd0d1794420ec97d65dd9244613
7784Author: Damien Miller <djm@mindrot.org>
7785Date: Thu Nov 7 12:00:23 2013 +1100
7786
7787 - (djm) [Makefile.in monitor.c] Missed chunks of curve25519 KEX diff
7788
7789commit 61c5c2319e84a58210810d39b062c8b8e3321160
7790Author: Damien Miller <djm@mindrot.org>
7791Date: Thu Nov 7 11:34:14 2013 +1100
7792
7793 - (djm) [ssh-pkcs11.c] Bring back "non-constant initialiser" fix (rev 1.5)
7794 that got lost in recent merge.
7795
7796commit 094003f5454a9f5a607674b2739824a7e91835f4
7797Author: Damien Miller <djm@mindrot.org>
7798Date: Mon Nov 4 22:59:27 2013 +1100
7799
7800 - (djm) [kexc25519.c kexc25519c.c kexc25519s.c] Import missed files from
7801 KEX/curve25519 change
7802
7803commit ca67a7eaf8766499ba67801d0be8cdaa550b9a50
7804Author: Damien Miller <djm@mindrot.org>
7805Date: Mon Nov 4 09:05:17 2013 +1100
7806
7807 - djm@cvs.openbsd.org 2013/11/03 10:37:19
7808 [roaming_common.c]
7809 fix a couple of function definitions foo() -> foo(void)
7810 (-Wold-style-definition)
7811
7812commit 0bd8f1519d51af8d4229be81e8f2f4903a1d440b
7813Author: Damien Miller <djm@mindrot.org>
7814Date: Mon Nov 4 08:55:43 2013 +1100
7815
7816 - markus@cvs.openbsd.org 2013/11/02 22:39:19
7817 [ssh_config.5 sshd_config.5]
7818 the default kex is now curve25519-sha256@libssh.org
7819
7820commit 4c3ba0767fbe4a8a2a748df4035aaf86651f6b30
7821Author: Damien Miller <djm@mindrot.org>
7822Date: Mon Nov 4 08:40:13 2013 +1100
7823
7824 - markus@cvs.openbsd.org 2013/11/02 22:34:01
7825 [auth-options.c]
7826 no need to include monitor_wrap.h and ssh-gss.h
7827
7828commit 660621b2106b987b874c2f120218bec249d0f6ba
7829Author: Damien Miller <djm@mindrot.org>
7830Date: Mon Nov 4 08:37:51 2013 +1100
7831
7832 - markus@cvs.openbsd.org 2013/11/02 22:24:24
7833 [kexdhs.c kexecdhs.c]
7834 no need to include ssh-gss.h
7835
7836commit abdca986decfbbc008c895195b85e879ed460ada
7837Author: Damien Miller <djm@mindrot.org>
7838Date: Mon Nov 4 08:30:05 2013 +1100
7839
7840 - markus@cvs.openbsd.org 2013/11/02 22:10:15
7841 [kexdhs.c kexecdhs.c]
7842 no need to include monitor_wrap.h
7843
7844commit 1e1242604eb0fd510fe93f81245c529237ffc513
7845Author: Damien Miller <djm@mindrot.org>
7846Date: Mon Nov 4 08:26:52 2013 +1100
7847
7848 - markus@cvs.openbsd.org 2013/11/02 21:59:15
7849 [kex.c kex.h myproposal.h ssh-keyscan.c sshconnect2.c sshd.c]
7850 use curve25519 for default key exchange (curve25519-sha256@libssh.org);
7851 initial patch from Aris Adamantiadis; ok djm@
7852
7853commit d2252c79191d069372ed6effce7c7a2de93448cd
7854Author: Damien Miller <djm@mindrot.org>
7855Date: Mon Nov 4 07:41:48 2013 +1100
7856
7857 - markus@cvs.openbsd.org 2013/11/02 20:03:54
7858 [ssh-pkcs11.c]
7859 support pkcs#11 tokes that only provide x509 zerts instead of raw pubkeys;
7860 fixes bz#1908; based on patch from Laurent Barbe; ok djm
7861
7862commit 007e3b357e880caa974d5adf9669298ba0751c78
7863Author: Darren Tucker <dtucker@zip.com.au>
7864Date: Sun Nov 3 18:43:55 2013 +1100
7865
7866 - (dtucker) [configure.ac defines.h] Add typedefs for intmax_t and uintmax_t
7867 for platforms that don't have them.
7868
7869commit 710f3747352fb93a63e5b69b12379da37f5b3fa9
7870Author: Darren Tucker <dtucker@zip.com.au>
7871Date: Sun Nov 3 17:20:34 2013 +1100
7872
7873 - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2nd
7874 vsnprintf. From eric at openbsd via chl@.
7875
7876commit d52770452308e5c2e99f4da6edaaa77ef078b610
7877Author: Darren Tucker <dtucker@zip.com.au>
7878Date: Sun Nov 3 16:30:46 2013 +1100
7879
7880 - (dtucker) [openbsd-compat/bsd-misc.c] Include time.h for nanosleep.
7881 From OpenSMTPD where it prevents "implicit declaration" warnings (it's
7882 a no-op in OpenSSH). From chl at openbsd.
7883
7884commit 63857c9340d3482746a5622ffdacc756751f6448
7885Author: Damien Miller <djm@mindrot.org>
7886Date: Wed Oct 30 22:31:06 2013 +1100
7887
7888 - jmc@cvs.openbsd.org 2013/10/29 18:49:32
7889 [sshd_config.5]
7890 pty(4), not pty(7);
7891
7892commit 5ff30c6b68adeee767dd29bf2369763c6a13c0b3
7893Author: Damien Miller <djm@mindrot.org>
7894Date: Wed Oct 30 22:21:50 2013 +1100
7895
7896 - djm@cvs.openbsd.org 2013/10/29 09:48:02
7897 [servconf.c servconf.h session.c sshd_config sshd_config.5]
7898 shd_config PermitTTY to disallow TTY allocation, mirroring the
7899 longstanding no-pty authorized_keys option;
7900 bz#2070, patch from Teran McKinney; ok markus@
7901
7902commit 4a3a9d4bbf8048473f5cc202cd8db7164d5e6b8d
7903Author: Damien Miller <djm@mindrot.org>
7904Date: Wed Oct 30 22:19:47 2013 +1100
7905
7906 - djm@cvs.openbsd.org 2013/10/29 09:42:11
7907 [key.c key.h]
7908 fix potential stack exhaustion caused by nested certificates;
7909 report by Mateusz Kocielski; ok dtucker@ markus@
7910
7911commit 28631ceaa7acd9bc500f924614431542893c6a21
7912Author: Damien Miller <djm@mindrot.org>
7913Date: Sat Oct 26 10:07:56 2013 +1100
7914
7915 - djm@cvs.openbsd.org 2013/10/25 23:04:51
7916 [ssh.c]
7917 fix crash when using ProxyCommand caused by previous commit - was calling
7918 freeaddrinfo(NULL); spotted by sthen@ and Tim Ruehsen, patch by sthen@
7919
7920commit 26506ad29350c5681815745cc90b3952a84cf118
7921Author: Damien Miller <djm@mindrot.org>
7922Date: Sat Oct 26 10:05:46 2013 +1100
7923
7924 - (djm) [ssh-keygen.c ssh-keysign.c sshconnect1.c sshd.c] Remove
7925 unnecessary arc4random_stir() calls. The only ones left are to ensure
7926 that the PRNG gets a different state after fork() for platforms that
7927 have broken the API.
7928
7929commit bd43e8872325e9bbb3319c89da593614709f317c
7930Author: Tim Rice <tim@multitalents.net>
7931Date: Thu Oct 24 12:22:49 2013 -0700
7932
7933 - (tim) [regress/sftp-perm.sh] We need a shell that understands "! somecmd"
7934
7935commit a90c0338083ee0e4064c4bdf61f497293a699be0
7936Author: Damien Miller <djm@mindrot.org>
7937Date: Thu Oct 24 21:03:17 2013 +1100
7938
7939 - djm@cvs.openbsd.org 2013/10/24 08:19:36
7940 [ssh.c]
7941 fix bug introduced in hostname canonicalisation commit: don't try to
7942 resolve hostnames when a ProxyCommand is set unless the user has forced
7943 canonicalisation; spotted by Iain Morgan
7944
7945commit cf31f3863425453ffcda540fbefa9df80088c8d1
7946Author: Damien Miller <djm@mindrot.org>
7947Date: Thu Oct 24 21:02:56 2013 +1100
7948
7949 - dtucker@cvs.openbsd.org 2013/10/24 00:51:48
7950 [readconf.c servconf.c ssh_config.5 sshd_config.5]
7951 Disallow empty Match statements and add "Match all" which matches
7952 everything. ok djm, man page help jmc@
7953
7954commit 4bedd4032a09ce87322ae5ea80f193f109e5c607
7955Author: Damien Miller <djm@mindrot.org>
7956Date: Thu Oct 24 21:02:26 2013 +1100
7957
7958 - dtucker@cvs.openbsd.org 2013/10/24 00:49:49
7959 [moduli.c]
7960 Periodically print progress and, if possible, expected time to completion
7961 when screening moduli for DH groups. ok deraadt djm
7962
7963commit 5ecb41629860687b145be63b8877fabb6bae5eda
7964Author: Damien Miller <djm@mindrot.org>
7965Date: Thu Oct 24 21:02:02 2013 +1100
7966
7967 - djm@cvs.openbsd.org 2013/10/23 23:35:32
7968 [sshd.c]
7969 include local address and port in "Connection from ..." message (only
7970 shown at loglevel>=verbose)
7971
7972commit 03bf2e61ad6ac59a362a1f11b105586cb755c147
7973Author: Damien Miller <djm@mindrot.org>
7974Date: Thu Oct 24 21:01:26 2013 +1100
7975
7976 - dtucker@cvs.openbsd.org 2013/10/23 05:40:58
7977 [servconf.c]
7978 fix comment
7979
7980commit 8f1873191478847773906af961c8984d02a49dd6
7981Author: Damien Miller <djm@mindrot.org>
7982Date: Thu Oct 24 10:53:02 2013 +1100
7983
7984 - (djm) [auth-krb5.c] bz#2032 - use local username in krb5_kuserok check
7985 rather than full client name which may be of form user@REALM;
7986 patch from Miguel Sanders; ok dtucker@
7987
7988commit 5b01b0dcb417eb615df77e7ce1b59319bf04342c
7989Author: Damien Miller <djm@mindrot.org>
7990Date: Wed Oct 23 16:31:31 2013 +1100
7991
7992 - djm@cvs.openbsd.org 2013/10/23 04:16:22
7993 [ssh-keygen.c]
7994 Make code match documentation: relative-specified certificate expiry time
7995 should be relative to current time and not the validity start time.
7996 Reported by Petr Lautrbach; ok deraadt@
7997
7998commit eff5cada589f25793dbe63a76aba9da39837a148
7999Author: Damien Miller <djm@mindrot.org>
8000Date: Wed Oct 23 16:31:10 2013 +1100
8001
8002 - djm@cvs.openbsd.org 2013/10/23 03:05:19
8003 [readconf.c ssh.c]
8004 comment
8005
8006commit 084bcd24e9fe874020e4df4e073e7408e1b17fb7
8007Author: Damien Miller <djm@mindrot.org>
8008Date: Wed Oct 23 16:30:51 2013 +1100
8009
8010 - djm@cvs.openbsd.org 2013/10/23 03:03:07
8011 [readconf.c]
8012 Hostname may have %h sequences that should be expanded prior to Match
8013 evaluation; spotted by Iain Morgan
8014
8015commit 8e5a67f46916def40b2758bb7755350dd2eee843
8016Author: Damien Miller <djm@mindrot.org>
8017Date: Wed Oct 23 16:30:25 2013 +1100
8018
8019 - jmc@cvs.openbsd.org 2013/10/20 18:00:13
8020 [ssh_config.5]
8021 tweak the "exec" description, as worded by djm;
8022
8023commit c0049bd0bca02890cd792babc594771c563f91f2
8024Author: Damien Miller <djm@mindrot.org>
8025Date: Wed Oct 23 16:29:59 2013 +1100
8026
8027 - djm@cvs.openbsd.org 2013/10/20 09:51:26
8028 [scp.1 sftp.1]
8029 add canonicalisation options to -o lists
8030
8031commit 8a04be795fc28514a09e55a54b2e67968f2e1b3a
8032Author: Damien Miller <djm@mindrot.org>
8033Date: Wed Oct 23 16:29:40 2013 +1100
8034
8035 - djm@cvs.openbsd.org 2013/10/20 06:19:28
8036 [readconf.c ssh_config.5]
8037 rename "command" subclause of the recently-added "Match" keyword to
8038 "exec"; it's shorter, clearer in intent and we might want to add the
8039 ability to match against the command being executed at the remote end in
8040 the future.
8041
8042commit 5c86ebdf83b636b6741db4b03569ef4a53b89a58
8043Author: Damien Miller <djm@mindrot.org>
8044Date: Wed Oct 23 16:29:12 2013 +1100
8045
8046 - djm@cvs.openbsd.org 2013/10/20 04:39:28
8047 [ssh_config.5]
8048 document % expansions performed by "Match command ..."
8049
8050commit 4502f88774edc56194707167443f94026d3c7cfa
8051Author: Damien Miller <djm@mindrot.org>
8052Date: Fri Oct 18 10:17:36 2013 +1100
8053
8054 - djm@cvs.openbsd.org 2013/10/17 22:08:04
8055 [sshd.c]
8056 include remote port in bad banner message; bz#2162
8057
8058commit 1edcbf65ebd2febeaf10a836468f35e519eed7ca
8059Author: Damien Miller <djm@mindrot.org>
8060Date: Fri Oct 18 10:17:17 2013 +1100
8061
8062 - jmc@cvs.openbsd.org 2013/10/17 07:35:48
8063 [sftp.1 sftp.c]
8064 tweak previous;
8065
8066commit a176e1823013dd8533a20235b3a5131f0626f46b
8067Author: Damien Miller <djm@mindrot.org>
8068Date: Fri Oct 18 09:05:41 2013 +1100
8069
8070 - djm@cvs.openbsd.org 2013/10/09 23:44:14
8071 [regress/Makefile regress/sftp-perm.sh]
8072 regression test for sftp request white/blacklisting and readonly mode.
8073
8074commit e3ea09494dcfe7ba76536e95765c8328ecfc18fb
8075Author: Damien Miller <djm@mindrot.org>
8076Date: Thu Oct 17 11:57:23 2013 +1100
8077
8078 - djm@cvs.openbsd.org 2013/10/17 00:46:49
8079 [ssh.c]
8080 rearrange check to reduce diff against -portable
8081 (Id sync only)
8082
8083commit f29238e67471a7f1088a99c3c3dbafce76b790cf
8084Author: Damien Miller <djm@mindrot.org>
8085Date: Thu Oct 17 11:48:52 2013 +1100
8086
8087 - djm@cvs.openbsd.org 2013/10/17 00:30:13
8088 [PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c]
8089 fsync@openssh.com protocol extension for sftp-server
8090 client support to allow calling fsync() faster successful transfer
8091 patch mostly by imorgan AT nas.nasa.gov; bz#1798
8092 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
8093
8094commit 51682faa599550a69d8120e5e2bdbdc0625ef4be
8095Author: Damien Miller <djm@mindrot.org>
8096Date: Thu Oct 17 11:48:31 2013 +1100
8097
8098 - djm@cvs.openbsd.org 2013/10/16 22:58:01
8099 [ssh.c ssh_config.5]
8100 one I missed in previous: s/isation/ization/
8101
8102commit 3850559be93f1a442ae9ed370e8c389889dd5f72
8103Author: Damien Miller <djm@mindrot.org>
8104Date: Thu Oct 17 11:48:13 2013 +1100
8105
8106 - djm@cvs.openbsd.org 2013/10/16 22:49:39
8107 [readconf.c readconf.h ssh.1 ssh.c ssh_config.5]
8108 s/canonicalise/canonicalize/ for consistency with existing spelling,
8109 e.g. authorized_keys; pointed out by naddy@
8110
8111commit 607af3434b75acc7199a5d99d5a9c11068c01f27
8112Author: Damien Miller <djm@mindrot.org>
8113Date: Thu Oct 17 11:47:51 2013 +1100
8114
8115 - jmc@cvs.openbsd.org 2013/10/16 06:42:25
8116 [ssh_config.5]
8117 tweak previous;
8118
8119commit 0faf747e2f77f0f7083bcd59cbed30c4b5448444
8120Author: Damien Miller <djm@mindrot.org>
8121Date: Thu Oct 17 11:47:23 2013 +1100
8122
8123 - djm@cvs.openbsd.org 2013/10/16 02:31:47
8124 [readconf.c readconf.h roaming_client.c ssh.1 ssh.c ssh_config.5]
8125 [sshconnect.c sshconnect.h]
8126 Implement client-side hostname canonicalisation to allow an explicit
8127 search path of domain suffixes to use to convert unqualified host names
8128 to fully-qualified ones for host key matching.
8129 This is particularly useful for host certificates, which would otherwise
8130 need to list unqualified names alongside fully-qualified ones (and this
8131 causes a number of problems).
8132 "looks fine" markus@
8133
8134commit d77b81f856e078714ec6b0f86f61c20249b7ead4
8135Author: Damien Miller <djm@mindrot.org>
8136Date: Thu Oct 17 11:39:00 2013 +1100
8137
8138 - jmc@cvs.openbsd.org 2013/10/15 14:10:25
8139 [ssh.1 ssh_config.5]
8140 tweak previous;
8141
8142commit dcd39f29ce3308dc74a0ff27a9056205a932ce05
8143Author: Damien Miller <djm@mindrot.org>
8144Date: Thu Oct 17 11:31:40 2013 +1100
8145
8146 - [ssh.c] g/c unused variable.
8147
8148commit 5359a628ce3763408da25d83271a8eddec597a0c
8149Author: Damien Miller <djm@mindrot.org>
8150Date: Tue Oct 15 12:20:37 2013 +1100
8151
8152 - [ssh.c] g/c unused variable.
8153
8154commit 386feab0c4736b054585ee8ee372865d5cde8d69
8155Author: Damien Miller <djm@mindrot.org>
8156Date: Tue Oct 15 12:14:49 2013 +1100
8157
8158 - djm@cvs.openbsd.org 2013/10/14 23:31:01
8159 [ssh.c]
8160 whitespace at EOL; pointed out by markus@
8161
8162commit e9fc72edd6c313b670558cd5219601c38a949b67
8163Author: Damien Miller <djm@mindrot.org>
8164Date: Tue Oct 15 12:14:12 2013 +1100
8165
8166 - djm@cvs.openbsd.org 2013/10/14 23:28:23
8167 [canohost.c misc.c misc.h readconf.c sftp-server.c ssh.c]
8168 refactor client config code a little:
8169 add multistate option partsing to readconf.c, similar to servconf.c's
8170 existing code.
8171 move checking of options that accept "none" as an argument to readconf.c
8172 add a lowercase() function and use it instead of explicit tolower() in
8173 loops
8174 part of a larger diff that was ok markus@
8175
8176commit 194fd904d8597a274b93e075b2047afdf5a175d4
8177Author: Damien Miller <djm@mindrot.org>
8178Date: Tue Oct 15 12:13:05 2013 +1100
8179
8180 - djm@cvs.openbsd.org 2013/10/14 22:22:05
8181 [readconf.c readconf.h ssh-keysign.c ssh.c ssh_config.5]
8182 add a "Match" keyword to ssh_config that allows matching on hostname,
8183 user and result of arbitrary commands. "nice work" markus@
8184
8185commit 71df752de2a04f423b1cd18d961a79f4fbccbcee
8186Author: Damien Miller <djm@mindrot.org>
8187Date: Tue Oct 15 12:12:02 2013 +1100
8188
8189 - djm@cvs.openbsd.org 2013/10/14 21:20:52
8190 [session.c session.h]
8191 Add logging of session starts in a useful format; ok markus@ feedback and
8192 ok dtucker@
8193
8194commit 6efab27109b82820e8d32a5d811adb7bfc354f65
8195Author: Damien Miller <djm@mindrot.org>
8196Date: Tue Oct 15 12:07:05 2013 +1100
8197
8198 - jmc@cvs.openbsd.org 2013/10/14 14:18:56
8199 [sftp-server.8 sftp-server.c]
8200 tweak previous;
8201 ok djm
8202
8203commit 61c7de8a94156f6d7e9718ded9be8c65bb902b66
8204Author: Damien Miller <djm@mindrot.org>
8205Date: Tue Oct 15 12:06:45 2013 +1100
8206
8207 - djm@cvs.openbsd.org 2013/10/11 02:53:45
8208 [sftp-client.h]
8209 obsolete comment
8210
8211commit 2f93d0556e4892208c9b072624caa8cc5ddd839d
8212Author: Damien Miller <djm@mindrot.org>
8213Date: Tue Oct 15 12:06:27 2013 +1100
8214
8215 - djm@cvs.openbsd.org 2013/10/11 02:52:23
8216 [sftp-client.c]
8217 missed one arg reorder
8218
8219commit bda5c8445713ae592d969a5105ed1a65da22bc96
8220Author: Damien Miller <djm@mindrot.org>
8221Date: Tue Oct 15 12:05:58 2013 +1100
8222
8223 - djm@cvs.openbsd.org 2013/10/11 02:45:36
8224 [sftp-client.c]
8225 rename flag arguments to be more clear and consistent.
8226 reorder some internal function arguments to make adding additional flags
8227 easier.
8228 no functional change
8229
8230commit 61ee4d68ca0fcc793a826fc7ec70f3b8ffd12ab6
8231Author: Damien Miller <djm@mindrot.org>
8232Date: Tue Oct 15 11:56:47 2013 +1100
8233
8234 - djm@cvs.openbsd.org 2013/10/10 01:43:03
8235 [sshd.c]
8236 bz#2139: fix re-exec fallback by ensuring that startup_pipe is correctly
8237 updated; ok dtucker@
8238
8239commit 73600e51af9ee734a19767e0c084bbbc5eb5b8da
8240Author: Damien Miller <djm@mindrot.org>
8241Date: Tue Oct 15 11:56:25 2013 +1100
8242
8243 - djm@cvs.openbsd.org 2013/10/10 00:53:25
8244 [sftp-server.c]
8245 add -Q, -P and -p to usage() before jmc@ catches me
8246
8247commit 6eaeebf27d92f39a38c772aa3f20c2250af2dd29
8248Author: Damien Miller <djm@mindrot.org>
8249Date: Tue Oct 15 11:55:57 2013 +1100
8250
8251 - djm@cvs.openbsd.org 2013/10/09 23:42:17
8252 [sftp-server.8 sftp-server.c]
8253 Add ability to whitelist and/or blacklist sftp protocol requests by name.
8254 Refactor dispatch loop and consolidate read-only mode checks.
8255 Make global variables static, since sftp-server is linked into sshd(8).
8256 ok dtucker@
8257
8258commit df62d71e64d29d1054e7a53d1a801075ef70335f
8259Author: Darren Tucker <dtucker@zip.com.au>
8260Date: Thu Oct 10 10:32:39 2013 +1100
8261
8262 - dtucker@cvs.openbsd.org 2013/10/08 11:42:13
8263 [dh.c dh.h]
8264 Increase the size of the Diffie-Hellman groups requested for a each
8265 symmetric key size. New values from NIST Special Publication 800-57 with
8266 the upper limit specified by RFC4419. Pointed out by Peter Backes, ok
8267 djm@.
8268
8269commit e6e52f8c5dc89a6767702e65bb595aaf7bc8991c
8270Author: Darren Tucker <dtucker@zip.com.au>
8271Date: Thu Oct 10 10:28:07 2013 +1100
8272
8273 - djm@cvs.openbsd.org 2013/09/19 01:26:29
8274 [sshconnect.c]
8275 bz#1211: make BindAddress work with UsePrivilegedPort=yes; patch from
8276 swp AT swp.pp.ru; ok dtucker@
8277
8278commit 71152bc9911bc34a98810b2398dac20df3fe8de3
8279Author: Darren Tucker <dtucker@zip.com.au>
8280Date: Thu Oct 10 10:27:21 2013 +1100
8281
8282 - djm@cvs.openbsd.org 2013/09/19 01:24:46
8283 [channels.c]
8284 bz#1297 - tell the client (via packet_send_debug) when their preferred
8285 listen address has been overridden by the server's GatewayPorts;
8286 ok dtucker@
8287
8288commit b59aaf3c4f3f449a4b86d8528668bd979be9aa5f
8289Author: Darren Tucker <dtucker@zip.com.au>
8290Date: Thu Oct 10 10:26:21 2013 +1100
8291
8292 - djm@cvs.openbsd.org 2013/09/19 00:49:12
8293 [sftp-client.c]
8294 fix swapped pflag and printflag in sftp upload_dir; from Iain Morgan
8295
8296commit 5d80e4522d6238bdefe9d0c634f0e6d35a241e41
8297Author: Darren Tucker <dtucker@zip.com.au>
8298Date: Thu Oct 10 10:25:09 2013 +1100
8299
8300 - djm@cvs.openbsd.org 2013/09/19 00:24:52
8301 [progressmeter.c]
8302 store the initial file offset so the progress meter doesn't freak out
8303 when resuming sftp transfers. bz#2137; patch from Iain Morgan; ok dtucker@
8304
8305commit ad92df7e5ed26fea85adfb3f95352d6cd8e86344
8306Author: Darren Tucker <dtucker@zip.com.au>
8307Date: Thu Oct 10 10:24:11 2013 +1100
8308
8309 - sthen@cvs.openbsd.org 2013/09/16 11:35:43
8310 [ssh_config]
8311 Remove gssapi config parts from ssh_config, as was already done for
8312 sshd_config. Req by/ok ajacoutot@
8313 ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular
8314
8315commit 720711960b130d36dfdd3d50eb25ef482bdd000e
8316Author: Damien Miller <djm@mindrot.org>
8317Date: Wed Oct 9 10:44:47 2013 +1100
8318
8319 - (djm) [openbsd-compat/Makefile.in openbsd-compat/arc4random.c]
8320 [openbsd-compat/bsd-arc4random.c] Replace old RC4-based arc4random
8321 implementation with recent OpenBSD's ChaCha-based PRNG. ok dtucker@,
8322 tested tim@
8323
8324commit 9159310087a218e28940a592896808b8eb76a039
8325Author: Damien Miller <djm@mindrot.org>
8326Date: Wed Oct 9 10:42:32 2013 +1100
8327
8328 - (djm) [openbsd-compat/arc4random.c openbsd-compat/chacha_private.h] Pull
8329 in OpenBSD implementation of arc4random, shortly to replace the existing
8330 bsd-arc4random.c
8331
8332commit 67f1d557a68d6fa8966a327d7b6dee3408cf0e72
8333Author: Damien Miller <djm@mindrot.org>
8334Date: Wed Oct 9 09:33:08 2013 +1100
8335
8336 correct incorrect years in datestamps; from des
8337
8338commit f2bf36c3eb4d969f85ec8aa342e9aecb61cc8bb1
8339Author: Darren Tucker <dtucker@zip.com.au>
8340Date: Sun Sep 22 19:02:40 2013 +1000
8341
8342 - (dtucker) [platform.c platform.h sshd.c] bz#2156: restore Linux oom_adj
8343 setting when handling SIGHUP to maintain behaviour over retart. Patch
8344 from Matthew Ife.
8345
8346commit e90a06ae570fd259a2f5ced873c7f17390f535a5
8347Author: Darren Tucker <dtucker@zip.com.au>
8348Date: Wed Sep 18 15:09:38 2013 +1000
8349
8350 - (dtucker) [sshd_config] Trailing whitespace; from jstjohn at purdue edu.
8351
8352commit 13840e0103946982cee2a05c40697be7e57dca41
8353Author: Damien Miller <djm@mindrot.org>
8354Date: Sat Sep 14 09:49:43 2013 +1000
8355
8356 - djm@cvs.openbsd.org 2013/09/13 06:54:34
8357 [channels.c]
8358 avoid unaligned access in code that reused a buffer to send a
8359 struct in_addr in a reply; simpler just use use buffer_put_int();
8360 from portable; spotted by and ok dtucker@
8361
8362commit 70182522a47d283513a010338cd028cb80dac2ab
8363Author: Damien Miller <djm@mindrot.org>
8364Date: Sat Sep 14 09:49:19 2013 +1000
8365
8366 - djm@cvs.openbsd.org 2013/09/12 01:41:12
8367 [clientloop.c]
8368 fix connection crash when sending break (~B) on ControlPersist'd session;
8369 ok dtucker@
8370
8371commit ff9d6c2a4171ee32e8fe28fc3b86eb33bd5c845b
8372Author: Damien Miller <djm@mindrot.org>
8373Date: Sat Sep 14 09:48:55 2013 +1000
8374
8375 - sthen@cvs.openbsd.org 2013/09/07 13:53:11
8376 [sshd_config]
8377 Remove commented-out kerberos/gssapi config options from sample config,
8378 kerberos support is currently not enabled in ssh in OpenBSD. Discussed with
8379 various people; ok deraadt@
8380 ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular
8381
8382commit 8bab5e7b5ff6721d926b5ebf05a3a24489889c58
8383Author: Damien Miller <djm@mindrot.org>
8384Date: Sat Sep 14 09:47:00 2013 +1000
8385
8386 - deraadt@cvs.openbsd.org 2013/09/02 22:00:34
8387 [ssh-keygen.c sshconnect1.c sshd.c]
8388 All the instances of arc4random_stir() are bogus, since arc4random()
8389 does this itself, inside itself, and has for a very long time.. Actually,
8390 this was probably reducing the entropy available.
8391 ok djm
8392 ID SYNC ONLY for portable; we don't trust other arc4random implementations
8393 to do this right.
8394
8395commit 61353b3208d548fab863e0e0ac5d2400ee5bb340
8396Author: Damien Miller <djm@mindrot.org>
8397Date: Sat Sep 14 09:45:32 2013 +1000
8398
8399 - djm@cvs.openbsd.org 2013/08/31 00:13:54
8400 [sftp.c]
8401 make ^w match ksh behaviour (delete previous word instead of entire line)
8402
8403commit 660854859cad31d234edb9353fb7ca2780df8128
8404Author: Damien Miller <djm@mindrot.org>
8405Date: Sat Sep 14 09:45:03 2013 +1000
8406
8407 - mikeb@cvs.openbsd.org 2013/08/28 12:34:27
8408 [ssh-keygen.c]
8409 improve batch processing a bit by making use of the quite flag a bit
8410 more often and exit with a non zero code if asked to find a hostname
8411 in a known_hosts file and it wasn't there;
8412 originally from reyk@, ok djm
8413
8414commit 045bda5cb8acf0eb9d71c275ee1247e3154fc9e5
8415Author: Damien Miller <djm@mindrot.org>
8416Date: Sat Sep 14 09:44:37 2013 +1000
8417
8418 - djm@cvs.openbsd.org 2013/08/22 19:02:21
8419 [sshd.c]
8420 Stir PRNG after post-accept fork. The child gets a different PRNG state
8421 anyway via rexec and explicit privsep reseeds, but it's good to be sure.
8422 ok markus@
8423
8424commit ed4af412da60a084891b20412433a27966613fb8
8425Author: Damien Miller <djm@mindrot.org>
8426Date: Sat Sep 14 09:40:51 2013 +1000
8427
8428 add marker for 6.3p1 release at the point of the last included change
8429
8430commit 43968a8e66a0aa1afefb11665bf96f86b113f5d9
8431Author: Damien Miller <djm@mindrot.org>
8432Date: Wed Aug 28 14:00:54 2013 +1000
8433
8434 - (djm) [openbsd-compat/bsd-snprintf.c] #ifdef noytet for intmax_t bits
8435 until we have configure support.
8436
8437commit 04be8b9e53f8388c94b531ebc5d1bd6e10e930d1
8438Author: Damien Miller <djm@mindrot.org>
8439Date: Wed Aug 28 12:49:43 2013 +1000
8440
8441 - (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the
8442 'j' (intmax_t/uintmax_t) and 'z' (size_t/ssize_t) conversions in case we
8443 start to use them in the future.
8444
8445commit f2f6c315a920a256937e1b6a3702757f3195a592
8446Author: Damien Miller <djm@mindrot.org>
8447Date: Wed Aug 21 02:44:58 2013 +1000
8448
8449 - jmc@cvs.openbsd.org 2013/08/20 06:56:07
8450 [ssh.1 ssh_config.5]
8451 some proxyusefdpass tweaks;
8452
8453commit 1262b6638f7d01ab110fd373dd90d915c882fe1a
8454Author: Damien Miller <djm@mindrot.org>
8455Date: Wed Aug 21 02:44:24 2013 +1000
8456
8457 - djm@cvs.openbsd.org 2013/08/20 00:11:38
8458 [readconf.c readconf.h ssh_config.5 sshconnect.c]
8459 Add a ssh_config ProxyUseFDPass option that supports the use of
8460 ProxyCommands that establish a connection and then pass a connected
8461 file descriptor back to ssh(1). This allows the ProxyCommand to exit
8462 rather than have to shuffle data back and forth and enables ssh to use
8463 getpeername, etc. to obtain address information just like it does with
8464 regular directly-connected sockets. ok markus@
8465
8466commit b7727df37efde4dbe4f5a33b19cbf42022aabf66
8467Author: Damien Miller <djm@mindrot.org>
8468Date: Wed Aug 21 02:43:49 2013 +1000
8469
8470 - jmc@cvs.openbsd.org 2013/08/14 08:39:27
8471 [scp.1 ssh.1]
8472 some Bx/Ox conversion;
8473 From: Jan Stary
8474
8475commit d5d9d7b1fdacf0551de4c747728bd159be40590a
8476Author: Damien Miller <djm@mindrot.org>
8477Date: Wed Aug 21 02:43:27 2013 +1000
8478
8479 - djm@cvs.openbsd.org 2013/08/13 18:33:08
8480 [ssh-keygen.c]
8481 another of the same typo
8482
8483commit d234afb0b3a8de1be78cbeafed5fc86912594c3c
8484Author: Damien Miller <djm@mindrot.org>
8485Date: Wed Aug 21 02:42:58 2013 +1000
8486
8487 - djm@cvs.openbsd.org 2013/08/13 18:32:08
8488 [ssh-keygen.c]
8489 typo in error message; from Stephan Rickauer
8490
8491commit e0ee727b8281a7c2ae20630ce83f6b200b404059
8492Author: Damien Miller <djm@mindrot.org>
8493Date: Wed Aug 21 02:42:35 2013 +1000
8494
8495 - djm@cvs.openbsd.org 2013/08/09 03:56:42
8496 [sftp.c]
8497 enable ctrl-left-arrow and ctrl-right-arrow to move forward/back a word;
8498 matching ksh's relatively recent change.
8499
8500commit fec029f1dc2c338f3fae3fa82aabc988dc07868c
8501Author: Damien Miller <djm@mindrot.org>
8502Date: Wed Aug 21 02:42:12 2013 +1000
8503
8504 - djm@cvs.openbsd.org 2013/08/09 03:39:13
8505 [sftp-client.c]
8506 two problems found by a to-be-committed regress test: 1) msg_id was not
8507 being initialised so was starting at a random value from the heap
8508 (harmless, but confusing). 2) some error conditions were not being
8509 propagated back to the caller
8510
8511commit 036d30743fc914089f9849ca52d615891d47e616
8512Author: Damien Miller <djm@mindrot.org>
8513Date: Wed Aug 21 02:41:46 2013 +1000
8514
8515 - djm@cvs.openbsd.org 2013/08/09 03:37:25
8516 [sftp.c]
8517 do getopt parsing for all sftp commands (with an empty optstring for
8518 commands without arguments) to ensure consistent behaviour
8519
8520commit c7dba12bf95eb1d69711881a153cc286c1987663
8521Author: Damien Miller <djm@mindrot.org>
8522Date: Wed Aug 21 02:41:15 2013 +1000
8523
8524 - djm@cvs.openbsd.org 2013/08/08 05:04:03
8525 [sftp-client.c sftp-client.h sftp.c]
8526 add a "-l" flag for the rename command to force it to use the silly
8527 standard SSH_FXP_RENAME command instead of the POSIX-rename- like
8528 posix-rename@openssh.com extension.
8529
8530 intended for use in regress tests, so no documentation.
8531
8532commit 034f27a0c09e69fe3589045b41f03f6e345b63f5
8533Author: Damien Miller <djm@mindrot.org>
8534Date: Wed Aug 21 02:40:44 2013 +1000
8535
8536 - djm@cvs.openbsd.org 2013/08/08 04:52:04
8537 [sftp.c]
8538 fix two year old regression: symlinking a file would incorrectly
8539 canonicalise the target path. bz#2129 report from delphij AT freebsd.org
8540
8541commit c6895c5c67492144dd28589e5788f783be9152ed
8542Author: Damien Miller <djm@mindrot.org>
8543Date: Wed Aug 21 02:40:21 2013 +1000
8544
8545 - jmc@cvs.openbsd.org 2013/08/07 06:24:51
8546 [sftp.1 sftp.c]
8547 sort -a;
8548
8549commit a6d6c1f38ac9b4a5e1bd4df889e1020a8370ed55
8550Author: Damien Miller <djm@mindrot.org>
8551Date: Wed Aug 21 02:40:01 2013 +1000
8552
8553 - djm@cvs.openbsd.org 2013/08/06 23:06:01
8554 [servconf.c]
8555 add cast to avoid format warning; from portable
8556
8557commit eec840673bce3f69ad269672fba7ed8ff05f154f
8558Author: Damien Miller <djm@mindrot.org>
8559Date: Wed Aug 21 02:39:39 2013 +1000
8560
8561 - djm@cvs.openbsd.org 2013/08/06 23:05:01
8562 [sftp.1]
8563 document top-level -a option (the -a option to 'get' was already
8564 documented)
8565
8566commit 02e878070d0eddad4e11f2c82644b275418eb112
8567Author: Damien Miller <djm@mindrot.org>
8568Date: Wed Aug 21 02:38:51 2013 +1000
8569
8570 - djm@cvs.openbsd.org 2013/08/06 23:03:49
8571 [sftp.c]
8572 fix some whitespace at EOL
8573 make list of commands an enum rather than a long list of defines
8574 add -a to usage()
8575
8576commit acd2060f750c16d48b87b92a10b5a833227baf9d
8577Author: Darren Tucker <dtucker@zip.com.au>
8578Date: Thu Aug 8 17:02:12 2013 +1000
8579
8580 - (dtucker) [regress/Makefile regress/test-exec.sh] Roll back the -nt
8581 removal. The "make clean" removes modpipe which is built by the top-level
8582 directory before running the tests. Spotted by tim@
8583
8584commit 9542de4547beebf707f3640082d471f1a85534c9
8585Author: Darren Tucker <dtucker@zip.com.au>
8586Date: Thu Aug 8 12:50:06 2013 +1000
8587
8588 - (dtucker) [misc.c] Remove define added for fallback testing that was
8589 mistakenly included in the previous commit.
8590
8591commit 94396b7f06f512a0acb230640d7f703fb802a9ee
8592Author: Darren Tucker <dtucker@zip.com.au>
8593Date: Thu Aug 8 11:52:37 2013 +1000
8594
8595 - (dtucker) [misc.c] Fall back to time(2) at runtime if clock_gettime(
8596 CLOCK_MONOTONIC...) fails. Some older versions of RHEL have the
8597 CLOCK_MONOTONIC define but don't actually support it. Found and tested
8598 by Kevin Brott, ok djm.
8599
8600commit a5a3cbfa0fb8ef011d3e7b38910a13f6ebbb8818
8601Author: Darren Tucker <dtucker@zip.com.au>
8602Date: Thu Aug 8 10:58:49 2013 +1000
8603
8604 - (dtucker) [regress/Makefile regress/test-exec.sh] Don't try to use test -nt
8605 since some platforms (eg really old FreeBSD) don't have it. Instead,
8606 run "make clean" before a complete regress run. ok djm.
8607
8608commit f3ab2c5f9cf4aed44971eded3ac9eeb1344b2be5
8609Author: Darren Tucker <dtucker@zip.com.au>
8610Date: Sun Aug 4 21:48:41 2013 +1000
8611
8612 - (dtucker) [auth-krb5.c configure.ac openbsd-compat/bsd-misc.h] Add support
8613 for building with older Heimdal versions. ok djm.
8614
8615commit ab3575c055adfbce70fa7405345cf0f80b07c827
8616Author: Damien Miller <djm@mindrot.org>
8617Date: Thu Aug 1 14:34:16 2013 +1000
8618
8619 - (djm) [sshlogin.h] Fix prototype merge botch from 2006; bz#2134
8620
8621commit c192a4c4f6da907dc0e67a3ca61d806f9a92c931
8622Author: Damien Miller <djm@mindrot.org>
8623Date: Thu Aug 1 14:29:20 2013 +1000
8624
8625 - (djm) [channels.c channels.h] bz#2135: On Solaris, isatty() on a non-
8626 blocking connecting socket will clear any stored errno that might
8627 otherwise have been retrievable via getsockopt(). A hack to limit writes
8628 to TTYs on AIX was triggering this. Since only AIX needs the hack, wrap
8629 it in an #ifdef. Diagnosis and patch from Ivo Raisr.
8630
8631commit 81f7cf1ec5bc2fd202eda05abc2e5361c54633c5
8632Author: Tim Rice <tim@multitalents.net>
8633Date: Thu Jul 25 18:41:40 2013 -0700
8634
8635 more correct comment for last commit
8636
8637commit 0553ad76ffdff35fb31b9e6df935a71a1cc6daa2
8638Author: Tim Rice <tim@multitalents.net>
8639Date: Thu Jul 25 16:03:16 2013 -0700
8640
8641 - (tim) [regress/forwarding.sh] Fix for building outside read only source tree.
8642
8643commit ed899eb597a8901ff7322cba809660515ec0d601
8644Author: Tim Rice <tim@multitalents.net>
8645Date: Thu Jul 25 15:40:00 2013 -0700
8646
8647 - (tim) [sftp-client.c] Use of a gcc extension trips up native compilers on
8648 Solaris and UnixWare. Feedback and OK djm@
8649
8650commit e9e936d33b4b1d77ffbaace9438cb2f1469c1dc7
8651Author: Damien Miller <djm@mindrot.org>
8652Date: Thu Jul 25 12:34:00 2013 +1000
8653
8654 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
8655 [contrib/suse/openssh.spec] Update version numbers
8656
8657commit d1e26cf391de31128b4edde118bff5fed98a90ea
8658Author: Damien Miller <djm@mindrot.org>
8659Date: Thu Jul 25 12:11:18 2013 +1000
8660
8661 - djm@cvs.openbsd.org 2013/06/21 02:26:26
8662 [regress/sftp-cmds.sh regress/test-exec.sh]
8663 unbreak sftp-cmds for renamed test data (s/ls/data/)
8664
8665commit 78d47b7c5b182e44552913de2b4b7e0363c8e3cc
8666Author: Damien Miller <djm@mindrot.org>
8667Date: Thu Jul 25 12:08:46 2013 +1000
8668
8669 - dtucker@cvs.openbsd.org 2013/06/10 21:56:43
8670 [regress/forwarding.sh]
8671 Add test for forward config parsing
8672
8673commit fea440639e04cea9f2605375a41d654390369402
8674Author: Damien Miller <djm@mindrot.org>
8675Date: Thu Jul 25 12:08:07 2013 +1000
8676
8677 - dtucker@cvs.openbsd.org 2013/05/30 20:12:32
8678 [regress/test-exec.sh]
8679 use ssh and sshd as testdata since it needs to be >256k for the rekey test
8680
8681commit 53435b2d8773a5d7c78359e9f7bf9df2d93b9ef5
8682Author: Damien Miller <djm@mindrot.org>
8683Date: Thu Jul 25 11:57:15 2013 +1000
8684
8685 - djm@cvs.openbsd.org 2013/07/25 00:57:37
8686 [version.h]
8687 openssh-6.3 for release
8688
8689commit 0d032419ee6e1968fc1cb187af63bf3b77b506ea
8690Author: Damien Miller <djm@mindrot.org>
8691Date: Thu Jul 25 11:56:52 2013 +1000
8692
8693 - djm@cvs.openbsd.org 2013/07/25 00:56:52
8694 [sftp-client.c sftp-client.h sftp.1 sftp.c]
8695 sftp support for resuming partial downloads; patch mostly by Loganaden
8696 Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@
8697
8698commit 98e27dcf581647b5bbe9780e8f59685d942d8ea3
8699Author: Damien Miller <djm@mindrot.org>
8700Date: Thu Jul 25 11:55:52 2013 +1000
8701
8702 - djm@cvs.openbsd.org 2013/07/25 00:29:10
8703 [ssh.c]
8704 daemonise backgrounded (ControlPersist'ed) multiplexing master to ensure
8705 it is fully detached from its controlling terminal. based on debugging
8706
8707commit 94c9cd34d1590ea1d4bf76919a15b5688fa90ed1
8708Author: Damien Miller <djm@mindrot.org>
8709Date: Thu Jul 25 11:55:39 2013 +1000
8710
8711 - djm@cvs.openbsd.org 2013/07/22 12:20:02
8712 [umac.h]
8713 oops, forgot to commit corresponding header change;
8714 spotted by jsg and jasper
8715
8716commit c331dbd22297ab9bf351abee659893d139c9f28a
8717Author: Damien Miller <djm@mindrot.org>
8718Date: Thu Jul 25 11:55:20 2013 +1000
8719
8720 - djm@cvs.openbsd.org 2013/07/22 05:00:17
8721 [umac.c]
8722 make MAC key, data to be hashed and nonce for final hash const;
8723 checked with -Wcast-qual
8724
8725commit c8669a8cd24952b3f16a44eac63d2b6ce8a6343a
8726Author: Damien Miller <djm@mindrot.org>
8727Date: Thu Jul 25 11:52:48 2013 +1000
8728
8729 - djm@cvs.openbsd.org 2013/07/20 22:20:42
8730 [krl.c]
8731 fix verification error in (as-yet usused) KRL signature checking path
8732
8733commit 63ddc899d28cf60045b560891894b9fbf6f822e9
8734Author: Damien Miller <djm@mindrot.org>
8735Date: Sat Jul 20 13:35:45 2013 +1000
8736
8737 - djm@cvs.openbsd.org 2013/07/20 01:55:13
8738 [auth-krb5.c gss-serv-krb5.c gss-serv.c]
8739 fix kerberos/GSSAPI deprecation warnings and linking; "looks okay" millert@
8740
8741commit 1f0e86f23fcebb026371c0888402a981df2a61c4
8742Author: Damien Miller <djm@mindrot.org>
8743Date: Sat Jul 20 13:22:49 2013 +1000
8744
8745 - djm@cvs.openbsd.org 2013/07/20 01:50:20
8746 [ssh-agent.c]
8747 call cleanup_handler on SIGINT when in debug mode to ensure sockets
8748 are cleaned up on manual exit; bz#2120
8749
8750commit 3009d3cbb89316b1294fb5cedb54770b5d114d04
8751Author: Damien Miller <djm@mindrot.org>
8752Date: Sat Jul 20 13:22:31 2013 +1000
8753
8754 - djm@cvs.openbsd.org 2013/07/20 01:44:37
8755 [ssh-keygen.c ssh.c]
8756 More useful error message on missing current user in /etc/passwd
8757
8758commit 32ecfa0f7920db31471ca8c1f4adc20ae38ed9d6
8759Author: Damien Miller <djm@mindrot.org>
8760Date: Sat Jul 20 13:22:13 2013 +1000
8761
8762 - djm@cvs.openbsd.org 2013/07/20 01:43:46
8763 [umac.c]
8764 use a union to ensure correct alignment; ok deraadt
8765
8766commit 85b45e09188e7a7fc8f0a900a4c6a0f04a5720a7
8767Author: Damien Miller <djm@mindrot.org>
8768Date: Sat Jul 20 13:21:52 2013 +1000
8769
8770 - markus@cvs.openbsd.org 2013/07/19 07:37:48
8771 [auth.h kex.h kexdhs.c kexecdhs.c kexgexs.c monitor.c servconf.c]
8772 [servconf.h session.c sshd.c sshd_config.5]
8773 add ssh-agent(1) support to sshd(8); allows encrypted hostkeys,
8774 or hostkeys on smartcards; most of the work by Zev Weiss; bz #1974
8775 ok djm@
8776
8777commit d93340cbb6bc0fc0dbd4427e0cec6d994a494dd9
8778Author: Damien Miller <djm@mindrot.org>
8779Date: Thu Jul 18 16:14:34 2013 +1000
8780
8781 - djm@cvs.openbsd.org 2013/07/18 01:12:26
8782 [ssh.1]
8783 be more exact wrt perms for ~/.ssh/config; bz#2078
8784
8785commit bf836e535dc3a8050c1756423539bac127ee5098
8786Author: Damien Miller <djm@mindrot.org>
8787Date: Thu Jul 18 16:14:13 2013 +1000
8788
8789 - schwarze@cvs.openbsd.org 2013/07/16 00:07:52
8790 [scp.1 sftp-server.8 ssh-keyscan.1 ssh-keysign.8 ssh-pkcs11-helper.8]
8791 use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
8792
8793commit 649fe025a409d0ce88c60a068f3f211193c35873
8794Author: Damien Miller <djm@mindrot.org>
8795Date: Thu Jul 18 16:13:55 2013 +1000
8796
8797 - djm@cvs.openbsd.org 2013/07/12 05:48:55
8798 [ssh.c]
8799 set TCP nodelay for connections started with -N; bz#2124 ok dtucker@
8800
8801commit 5bb8833e809d827496dffca0dc2c223052c93931
8802Author: Damien Miller <djm@mindrot.org>
8803Date: Thu Jul 18 16:13:37 2013 +1000
8804
8805 - djm@cvs.openbsd.org 2013/07/12 05:42:03
8806 [ssh-keygen.c]
8807 do_print_resource_record() can never be called with a NULL filename, so
8808 don't attempt (and bungle) asking for one if it has not been specified
8809 bz#2127 ok dtucker@
8810
8811commit 7313fc9222785d0c54a7ffcaf2067f4db02c8d72
8812Author: Damien Miller <djm@mindrot.org>
8813Date: Thu Jul 18 16:13:19 2013 +1000
8814
8815 - djm@cvs.openbsd.org 2013/07/12 00:43:50
8816 [misc.c]
8817 in ssh_gai_strerror() don't fallback to strerror for EAI_SYSTEM when
8818 errno == 0. Avoids confusing error message in some broken resolver
8819 cases. bz#2122 patch from plautrba AT redhat.com; ok dtucker
8820
8821commit 746d1a6c524d2e90ebe98cc29e42573a3e1c3c1b
8822Author: Damien Miller <djm@mindrot.org>
8823Date: Thu Jul 18 16:13:02 2013 +1000
8824
8825 - djm@cvs.openbsd.org 2013/07/12 00:20:00
8826 [sftp.c ssh-keygen.c ssh-pkcs11.c]
8827 fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@
8828
8829commit ce98654674648fb7d58f73edf6aa398656a2dba4
8830Author: Damien Miller <djm@mindrot.org>
8831Date: Thu Jul 18 16:12:44 2013 +1000
8832
8833 - djm@cvs.openbsd.org 2013/07/12 00:19:59
8834 [auth-options.c auth-rsa.c bufaux.c buffer.h channels.c hostfile.c]
8835 [hostfile.h mux.c packet.c packet.h roaming_common.c serverloop.c]
8836 fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@
8837
8838commit 0d02c3e10e1ed16d6396748375a133d348127a2a
8839Author: Damien Miller <djm@mindrot.org>
8840Date: Thu Jul 18 16:12:06 2013 +1000
8841
8842 - markus@cvs.openbsd.org 2013/07/02 12:31:43
8843 [dh.c]
8844 remove extra whitespace
8845
8846commit fecfd118d6c90df4fcd3cec7b14e4d3ce69a41d5
8847Author: Damien Miller <djm@mindrot.org>
8848Date: Thu Jul 18 16:11:50 2013 +1000
8849
8850 - jmc@cvs.openbsd.org 2013/06/27 14:05:37
8851 [ssh-keygen.1 ssh.1 ssh_config.5 sshd.8 sshd_config.5]
8852 do not use Sx for sections outwith the man page - ingo informs me that
8853 stuff like html will render with broken links;
8854
8855 issue reported by Eric S. Raymond, via djm
8856
8857commit bc35d92e78fd53c3f32cbdbdf89d8b1919788c50
8858Author: Damien Miller <djm@mindrot.org>
8859Date: Thu Jul 18 16:11:25 2013 +1000
8860
8861 - djm@cvs.openbsd.org 2013/06/22 06:31:57
8862 [scp.c]
8863 improved time_t overflow check suggested by guenther@
8864
8865commit 8158441d01ab84f33a7e70e27f87c02cbf67e709
8866Author: Damien Miller <djm@mindrot.org>
8867Date: Thu Jul 18 16:11:07 2013 +1000
8868
8869 - djm@cvs.openbsd.org 2013/06/21 05:43:10
8870 [scp.c]
8871 make this -Wsign-compare clean after time_t conversion
8872
8873commit bbeb1dac550bad8e6aff9bd27113c6bd5ebb7413
8874Author: Damien Miller <djm@mindrot.org>
8875Date: Thu Jul 18 16:10:49 2013 +1000
8876
8877 - djm@cvs.openbsd.org 2013/06/21 05:42:32
8878 [dh.c]
8879 sprinkle in some error() to explain moduli(5) parse failures
8880
8881commit 7f2b438ca0b7c3b9684a03d7bf3eaf379da16de9
8882Author: Damien Miller <djm@mindrot.org>
8883Date: Thu Jul 18 16:10:29 2013 +1000
8884
8885 - djm@cvs.openbsd.org 2013/06/21 00:37:49
8886 [ssh_config.5]
8887 explicitly mention that IdentitiesOnly can be used with IdentityFile
8888 to control which keys are offered from an agent.
8889
8890commit 20bdcd72365e8b3d51261993928cc47c5f0d7c8a
8891Author: Damien Miller <djm@mindrot.org>
8892Date: Thu Jul 18 16:10:09 2013 +1000
8893
8894 - djm@cvs.openbsd.org 2013/06/21 00:34:49
8895 [auth-rsa.c auth.h auth2-hostbased.c auth2-pubkey.c monitor.c]
8896 for hostbased authentication, print the client host and user on
8897 the auth success/failure line; bz#2064, ok dtucker@
8898
8899commit 3071070b39e6d1722151c754cdc2b26640eaf45e
8900Author: Damien Miller <djm@mindrot.org>
8901Date: Thu Jul 18 16:09:44 2013 +1000
8902
8903 - markus@cvs.openbsd.org 2013/06/20 19:15:06
8904 [krl.c]
8905 don't leak the rdata blob on errors; ok djm@
8906
8907commit 044bd2a7ddb0b6f6b716c87e57261572e2b89028
8908Author: Damien Miller <djm@mindrot.org>
8909Date: Thu Jul 18 16:09:25 2013 +1000
8910
8911 - guenther@cvs.openbsd.org 2013/06/17 04:48:42
8912 [scp.c]
8913 Handle time_t values as long long's when formatting them and when
8914 parsing them from remote servers.
8915 Improve error checking in parsing of 'T' lines.
8916
8917 ok dtucker@ deraadt@
8918
8919commit 9a6615542108118582f64b7161ca0e12176e3712
8920Author: Damien Miller <djm@mindrot.org>
8921Date: Thu Jul 18 16:09:04 2013 +1000
8922
8923 - dtucker@cvs.openbsd.org 2013/06/10 19:19:44
8924 [readconf.c]
8925 revert 1.203 while we investigate crashes reported by okan@
8926
8927commit b7482cff46e7e76bfb3cda86c365a08f58d4fca0
8928Author: Darren Tucker <dtucker@zip.com.au>
8929Date: Tue Jul 2 20:06:46 2013 +1000
8930
8931 - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config
8932 contrib/cygwin/ssh-user-config] Modernizes and improve readability of
8933 the Cygwin README file (which hasn't been updated for ages), drop
8934 unsupported OSes from the ssh-host-config help text, and drop an
8935 unneeded option from ssh-user-config. Patch from vinschen at redhat com.
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..7e7e38ec2
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1707 @@
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/* The system has incomplete BSM API */
17#undef BROKEN_BSM_API
18
19/* Define if cmsg_type is not passed correctly */
20#undef BROKEN_CMSG_TYPE
21
22/* getaddrinfo is broken (if present) */
23#undef BROKEN_GETADDRINFO
24
25/* getgroups(0,NULL) will return -1 */
26#undef BROKEN_GETGROUPS
27
28/* FreeBSD glob does not do what we need */
29#undef BROKEN_GLOB
30
31/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
32#undef BROKEN_INET_NTOA
33
34/* ia_uinfo routines not supported by OS yet */
35#undef BROKEN_LIBIAF
36
37/* Ultrix mmap can't map files */
38#undef BROKEN_MMAP
39
40/* Define if your struct dirent expects you to allocate extra space for d_name
41 */
42#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
43
44/* Can't do comparisons on readv */
45#undef BROKEN_READV_COMPARISON
46
47/* NetBSD read function is sometimes redirected, breaking atomicio comparisons
48 against it */
49#undef BROKEN_READ_COMPARISON
50
51/* Define if you have a broken realpath. */
52#undef BROKEN_REALPATH
53
54/* Needed for NeXT */
55#undef BROKEN_SAVED_UIDS
56
57/* Define if your setregid() is broken */
58#undef BROKEN_SETREGID
59
60/* Define if your setresgid() is broken */
61#undef BROKEN_SETRESGID
62
63/* Define if your setresuid() is broken */
64#undef BROKEN_SETRESUID
65
66/* Define if your setreuid() is broken */
67#undef BROKEN_SETREUID
68
69/* LynxOS has broken setvbuf() implementation */
70#undef BROKEN_SETVBUF
71
72/* QNX shadow support is broken */
73#undef BROKEN_SHADOW_EXPIRE
74
75/* Define if your snprintf is busted */
76#undef BROKEN_SNPRINTF
77
78/* FreeBSD strnvis argument order is swapped compared to OpenBSD */
79#undef BROKEN_STRNVIS
80
81/* tcgetattr with ICANON may hang */
82#undef BROKEN_TCGETATTR_ICANON
83
84/* updwtmpx is broken (if present) */
85#undef BROKEN_UPDWTMPX
86
87/* Define if you have BSD auth support */
88#undef BSD_AUTH
89
90/* Define if you want to specify the path to your lastlog file */
91#undef CONF_LASTLOG_FILE
92
93/* Define if you want to specify the path to your utmp file */
94#undef CONF_UTMP_FILE
95
96/* Define if you want to specify the path to your wtmpx file */
97#undef CONF_WTMPX_FILE
98
99/* Define if you want to specify the path to your wtmp file */
100#undef CONF_WTMP_FILE
101
102/* Define if your platform needs to skip post auth file descriptor passing */
103#undef DISABLE_FD_PASSING
104
105/* Define if you don't want to use lastlog */
106#undef DISABLE_LASTLOG
107
108/* Define if you don't want to use your system's login() call */
109#undef DISABLE_LOGIN
110
111/* Define if you don't want to use pututline() etc. to write [uw]tmp */
112#undef DISABLE_PUTUTLINE
113
114/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
115#undef DISABLE_PUTUTXLINE
116
117/* Define if you want to disable shadow passwords */
118#undef DISABLE_SHADOW
119
120/* Define if you don't want to use utmp */
121#undef DISABLE_UTMP
122
123/* Define if you don't want to use utmpx */
124#undef DISABLE_UTMPX
125
126/* Define if you don't want to use wtmp */
127#undef DISABLE_WTMP
128
129/* Define if you don't want to use wtmpx */
130#undef DISABLE_WTMPX
131
132/* Enable for PKCS#11 support */
133#undef ENABLE_PKCS11
134
135/* File names may not contain backslash characters */
136#undef FILESYSTEM_NO_BACKSLASH
137
138/* fsid_t has member val */
139#undef FSID_HAS_VAL
140
141/* fsid_t has member __val */
142#undef FSID_HAS___VAL
143
144/* Define to 1 if the `getpgrp' function requires zero arguments. */
145#undef GETPGRP_VOID
146
147/* Conflicting defs for getspnam */
148#undef GETSPNAM_CONFLICTING_DEFS
149
150/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
151#undef GLOB_HAS_ALTDIRFUNC
152
153/* Define if your system glob() function has gl_matchc options in glob_t */
154#undef GLOB_HAS_GL_MATCHC
155
156/* Define if your system glob() function has gl_statv options in glob_t */
157#undef GLOB_HAS_GL_STATV
158
159/* Define this if you want GSSAPI support in the version 2 protocol */
160#undef GSSAPI
161
162/* Define if you want to use shadow password expire field */
163#undef HAS_SHADOW_EXPIRE
164
165/* Define if your system uses access rights style file descriptor passing */
166#undef HAVE_ACCRIGHTS_IN_MSGHDR
167
168/* Define if you have ut_addr in utmp.h */
169#undef HAVE_ADDR_IN_UTMP
170
171/* Define if you have ut_addr in utmpx.h */
172#undef HAVE_ADDR_IN_UTMPX
173
174/* Define if you have ut_addr_v6 in utmp.h */
175#undef HAVE_ADDR_V6_IN_UTMP
176
177/* Define if you have ut_addr_v6 in utmpx.h */
178#undef HAVE_ADDR_V6_IN_UTMPX
179
180/* Define to 1 if you have the `arc4random' function. */
181#undef HAVE_ARC4RANDOM
182
183/* Define to 1 if you have the `arc4random_buf' function. */
184#undef HAVE_ARC4RANDOM_BUF
185
186/* Define to 1 if you have the `arc4random_stir' function. */
187#undef HAVE_ARC4RANDOM_STIR
188
189/* Define to 1 if you have the `arc4random_uniform' function. */
190#undef HAVE_ARC4RANDOM_UNIFORM
191
192/* Define to 1 if you have the `asprintf' function. */
193#undef HAVE_ASPRINTF
194
195/* OpenBSD's gcc has bounded */
196#undef HAVE_ATTRIBUTE__BOUNDED__
197
198/* Have attribute nonnull */
199#undef HAVE_ATTRIBUTE__NONNULL__
200
201/* OpenBSD's gcc has sentinel */
202#undef HAVE_ATTRIBUTE__SENTINEL__
203
204/* Define to 1 if you have the `aug_get_machine' function. */
205#undef HAVE_AUG_GET_MACHINE
206
207/* Define to 1 if you have the `b64_ntop' function. */
208#undef HAVE_B64_NTOP
209
210/* Define to 1 if you have the `b64_pton' function. */
211#undef HAVE_B64_PTON
212
213/* Define if you have the basename function. */
214#undef HAVE_BASENAME
215
216/* Define to 1 if you have the `bcopy' function. */
217#undef HAVE_BCOPY
218
219/* Define to 1 if you have the `bcrypt_pbkdf' function. */
220#undef HAVE_BCRYPT_PBKDF
221
222/* Define to 1 if you have the `bindresvport_sa' function. */
223#undef HAVE_BINDRESVPORT_SA
224
225/* Define to 1 if you have the `blf_enc' function. */
226#undef HAVE_BLF_ENC
227
228/* Define to 1 if you have the <blf.h> header file. */
229#undef HAVE_BLF_H
230
231/* Define to 1 if you have the `Blowfish_expand0state' function. */
232#undef HAVE_BLOWFISH_EXPAND0STATE
233
234/* Define to 1 if you have the `Blowfish_expandstate' function. */
235#undef HAVE_BLOWFISH_EXPANDSTATE
236
237/* Define to 1 if you have the `Blowfish_initstate' function. */
238#undef HAVE_BLOWFISH_INITSTATE
239
240/* Define to 1 if you have the `Blowfish_stream2word' function. */
241#undef HAVE_BLOWFISH_STREAM2WORD
242
243/* Define to 1 if you have the `BN_is_prime_ex' function. */
244#undef HAVE_BN_IS_PRIME_EX
245
246/* Define to 1 if you have the <bsd/libutil.h> header file. */
247#undef HAVE_BSD_LIBUTIL_H
248
249/* Define to 1 if you have the <bsm/audit.h> header file. */
250#undef HAVE_BSM_AUDIT_H
251
252/* Define to 1 if you have the <bstring.h> header file. */
253#undef HAVE_BSTRING_H
254
255/* Define to 1 if you have the `cap_rights_limit' function. */
256#undef HAVE_CAP_RIGHTS_LIMIT
257
258/* Define to 1 if you have the `clock' function. */
259#undef HAVE_CLOCK
260
261/* Have clock_gettime */
262#undef HAVE_CLOCK_GETTIME
263
264/* define if you have clock_t data type */
265#undef HAVE_CLOCK_T
266
267/* Define to 1 if you have the `closefrom' function. */
268#undef HAVE_CLOSEFROM
269
270/* Define if gai_strerror() returns const char * */
271#undef HAVE_CONST_GAI_STRERROR_PROTO
272
273/* Define if your system uses ancillary data style file descriptor passing */
274#undef HAVE_CONTROL_IN_MSGHDR
275
276/* Define to 1 if you have the `crypt' function. */
277#undef HAVE_CRYPT
278
279/* Define to 1 if you have the <crypto/sha2.h> header file. */
280#undef HAVE_CRYPTO_SHA2_H
281
282/* Define to 1 if you have the <crypt.h> header file. */
283#undef HAVE_CRYPT_H
284
285/* Define if you are on Cygwin */
286#undef HAVE_CYGWIN
287
288/* Define if your libraries define daemon() */
289#undef HAVE_DAEMON
290
291/* Define to 1 if you have the declaration of `AI_NUMERICSERV', and to 0 if
292 you don't. */
293#undef HAVE_DECL_AI_NUMERICSERV
294
295/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
296 don't. */
297#undef HAVE_DECL_AUTHENTICATE
298
299/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
300 don't. */
301#undef HAVE_DECL_GLOB_NOMATCH
302
303/* Define to 1 if you have the declaration of `GSS_C_NT_HOSTBASED_SERVICE',
304 and to 0 if you don't. */
305#undef HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE
306
307/* Define to 1 if you have the declaration of `howmany', and to 0 if you
308 don't. */
309#undef HAVE_DECL_HOWMANY
310
311/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
312 don't. */
313#undef HAVE_DECL_H_ERRNO
314
315/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
316 don't. */
317#undef HAVE_DECL_LOGINFAILED
318
319/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
320 you don't. */
321#undef HAVE_DECL_LOGINRESTRICTIONS
322
323/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
324 don't. */
325#undef HAVE_DECL_LOGINSUCCESS
326
327/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
328 don't. */
329#undef HAVE_DECL_MAXSYMLINKS
330
331/* Define to 1 if you have the declaration of `NFDBITS', and to 0 if you
332 don't. */
333#undef HAVE_DECL_NFDBITS
334
335/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
336 don't. */
337#undef HAVE_DECL_OFFSETOF
338
339/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
340 don't. */
341#undef HAVE_DECL_O_NONBLOCK
342
343/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
344 don't. */
345#undef HAVE_DECL_PASSWDEXPIRED
346
347/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
348 don't. */
349#undef HAVE_DECL_SETAUTHDB
350
351/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
352 don't. */
353#undef HAVE_DECL_SHUT_RD
354
355/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
356 */
357#undef HAVE_DECL_WRITEV
358
359/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
360 don't. */
361#undef HAVE_DECL__GETLONG
362
363/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
364 don't. */
365#undef HAVE_DECL__GETSHORT
366
367/* Define to 1 if you have the `DES_crypt' function. */
368#undef HAVE_DES_CRYPT
369
370/* Define if you have /dev/ptmx */
371#undef HAVE_DEV_PTMX
372
373/* Define if you have /dev/ptc */
374#undef HAVE_DEV_PTS_AND_PTC
375
376/* Define to 1 if you have the <dirent.h> header file. */
377#undef HAVE_DIRENT_H
378
379/* Define to 1 if you have the `dirfd' function. */
380#undef HAVE_DIRFD
381
382/* Define to 1 if you have the `dirname' function. */
383#undef HAVE_DIRNAME
384
385/* Define to 1 if you have the `DSA_generate_parameters_ex' function. */
386#undef HAVE_DSA_GENERATE_PARAMETERS_EX
387
388/* Define to 1 if you have the <elf.h> header file. */
389#undef HAVE_ELF_H
390
391/* Define to 1 if you have the `endgrent' function. */
392#undef HAVE_ENDGRENT
393
394/* Define to 1 if you have the <endian.h> header file. */
395#undef HAVE_ENDIAN_H
396
397/* Define to 1 if you have the `endutent' function. */
398#undef HAVE_ENDUTENT
399
400/* Define to 1 if you have the `endutxent' function. */
401#undef HAVE_ENDUTXENT
402
403/* Define if your system has /etc/default/login */
404#undef HAVE_ETC_DEFAULT_LOGIN
405
406/* Define if libcrypto has EVP_CIPHER_CTX_ctrl */
407#undef HAVE_EVP_CIPHER_CTX_CTRL
408
409/* Define to 1 if you have the `EVP_DigestFinal_ex' function. */
410#undef HAVE_EVP_DIGESTFINAL_EX
411
412/* Define to 1 if you have the `EVP_DigestInit_ex' function. */
413#undef HAVE_EVP_DIGESTINIT_EX
414
415/* Define to 1 if you have the `EVP_MD_CTX_cleanup' function. */
416#undef HAVE_EVP_MD_CTX_CLEANUP
417
418/* Define to 1 if you have the `EVP_MD_CTX_copy_ex' function. */
419#undef HAVE_EVP_MD_CTX_COPY_EX
420
421/* Define to 1 if you have the `EVP_MD_CTX_init' function. */
422#undef HAVE_EVP_MD_CTX_INIT
423
424/* Define to 1 if you have the `EVP_ripemd160' function. */
425#undef HAVE_EVP_RIPEMD160
426
427/* Define to 1 if you have the `EVP_sha256' function. */
428#undef HAVE_EVP_SHA256
429
430/* Define if you have ut_exit in utmp.h */
431#undef HAVE_EXIT_IN_UTMP
432
433/* Define to 1 if you have the `explicit_bzero' function. */
434#undef HAVE_EXPLICIT_BZERO
435
436/* Define to 1 if you have the `fchmod' function. */
437#undef HAVE_FCHMOD
438
439/* Define to 1 if you have the `fchown' function. */
440#undef HAVE_FCHOWN
441
442/* Use F_CLOSEM fcntl for closefrom */
443#undef HAVE_FCNTL_CLOSEM
444
445/* Define to 1 if you have the <fcntl.h> header file. */
446#undef HAVE_FCNTL_H
447
448/* Define to 1 if the system has the type `fd_mask'. */
449#undef HAVE_FD_MASK
450
451/* Define to 1 if you have the <features.h> header file. */
452#undef HAVE_FEATURES_H
453
454/* Define to 1 if you have the <floatingpoint.h> header file. */
455#undef HAVE_FLOATINGPOINT_H
456
457/* Define to 1 if you have the `fmt_scaled' function. */
458#undef HAVE_FMT_SCALED
459
460/* Define to 1 if you have the `freeaddrinfo' function. */
461#undef HAVE_FREEADDRINFO
462
463/* Define to 1 if the system has the type `fsblkcnt_t'. */
464#undef HAVE_FSBLKCNT_T
465
466/* Define to 1 if the system has the type `fsfilcnt_t'. */
467#undef HAVE_FSFILCNT_T
468
469/* Define to 1 if you have the `fstatfs' function. */
470#undef HAVE_FSTATFS
471
472/* Define to 1 if you have the `fstatvfs' function. */
473#undef HAVE_FSTATVFS
474
475/* Define to 1 if you have the `futimes' function. */
476#undef HAVE_FUTIMES
477
478/* Define to 1 if you have the `gai_strerror' function. */
479#undef HAVE_GAI_STRERROR
480
481/* Define to 1 if you have the `getaddrinfo' function. */
482#undef HAVE_GETADDRINFO
483
484/* Define to 1 if you have the `getaudit' function. */
485#undef HAVE_GETAUDIT
486
487/* Define to 1 if you have the `getaudit_addr' function. */
488#undef HAVE_GETAUDIT_ADDR
489
490/* Define to 1 if you have the `getcwd' function. */
491#undef HAVE_GETCWD
492
493/* Define to 1 if you have the `getgrouplist' function. */
494#undef HAVE_GETGROUPLIST
495
496/* Define to 1 if you have the `getgrset' function. */
497#undef HAVE_GETGRSET
498
499/* Define to 1 if you have the `getlastlogxbyname' function. */
500#undef HAVE_GETLASTLOGXBYNAME
501
502/* Define to 1 if you have the `getluid' function. */
503#undef HAVE_GETLUID
504
505/* Define to 1 if you have the `getnameinfo' function. */
506#undef HAVE_GETNAMEINFO
507
508/* Define to 1 if you have the `getopt' function. */
509#undef HAVE_GETOPT
510
511/* Define to 1 if you have the <getopt.h> header file. */
512#undef HAVE_GETOPT_H
513
514/* Define if your getopt(3) defines and uses optreset */
515#undef HAVE_GETOPT_OPTRESET
516
517/* Define if your libraries define getpagesize() */
518#undef HAVE_GETPAGESIZE
519
520/* Define to 1 if you have the `getpeereid' function. */
521#undef HAVE_GETPEEREID
522
523/* Define to 1 if you have the `getpeerucred' function. */
524#undef HAVE_GETPEERUCRED
525
526/* Define to 1 if you have the `getpgid' function. */
527#undef HAVE_GETPGID
528
529/* Define to 1 if you have the `getpgrp' function. */
530#undef HAVE_GETPGRP
531
532/* Define to 1 if you have the `getpwanam' function. */
533#undef HAVE_GETPWANAM
534
535/* Define to 1 if you have the `getrlimit' function. */
536#undef HAVE_GETRLIMIT
537
538/* Define if getrrsetbyname() exists */
539#undef HAVE_GETRRSETBYNAME
540
541/* Define to 1 if you have the `getrusage' function. */
542#undef HAVE_GETRUSAGE
543
544/* Define to 1 if you have the `getseuserbyname' function. */
545#undef HAVE_GETSEUSERBYNAME
546
547/* Define to 1 if you have the `gettimeofday' function. */
548#undef HAVE_GETTIMEOFDAY
549
550/* Define to 1 if you have the `getttyent' function. */
551#undef HAVE_GETTTYENT
552
553/* Define to 1 if you have the `getutent' function. */
554#undef HAVE_GETUTENT
555
556/* Define to 1 if you have the `getutid' function. */
557#undef HAVE_GETUTID
558
559/* Define to 1 if you have the `getutline' function. */
560#undef HAVE_GETUTLINE
561
562/* Define to 1 if you have the `getutxent' function. */
563#undef HAVE_GETUTXENT
564
565/* Define to 1 if you have the `getutxid' function. */
566#undef HAVE_GETUTXID
567
568/* Define to 1 if you have the `getutxline' function. */
569#undef HAVE_GETUTXLINE
570
571/* Define to 1 if you have the `getutxuser' function. */
572#undef HAVE_GETUTXUSER
573
574/* Define to 1 if you have the `get_default_context_with_level' function. */
575#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
576
577/* Define to 1 if you have the `glob' function. */
578#undef HAVE_GLOB
579
580/* Define to 1 if you have the <glob.h> header file. */
581#undef HAVE_GLOB_H
582
583/* Define to 1 if you have the `group_from_gid' function. */
584#undef HAVE_GROUP_FROM_GID
585
586/* Define to 1 if you have the <gssapi_generic.h> header file. */
587#undef HAVE_GSSAPI_GENERIC_H
588
589/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
590#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
591
592/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
593#undef HAVE_GSSAPI_GSSAPI_H
594
595/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
596#undef HAVE_GSSAPI_GSSAPI_KRB5_H
597
598/* Define to 1 if you have the <gssapi.h> header file. */
599#undef HAVE_GSSAPI_H
600
601/* Define to 1 if you have the <gssapi_krb5.h> header file. */
602#undef HAVE_GSSAPI_KRB5_H
603
604/* Define if HEADER.ad exists in arpa/nameser.h */
605#undef HAVE_HEADER_AD
606
607/* Define to 1 if you have the `HMAC_CTX_init' function. */
608#undef HAVE_HMAC_CTX_INIT
609
610/* Define if you have ut_host in utmp.h */
611#undef HAVE_HOST_IN_UTMP
612
613/* Define if you have ut_host in utmpx.h */
614#undef HAVE_HOST_IN_UTMPX
615
616/* Define to 1 if you have the <iaf.h> header file. */
617#undef HAVE_IAF_H
618
619/* Define to 1 if you have the <ia.h> header file. */
620#undef HAVE_IA_H
621
622/* Define if you have ut_id in utmp.h */
623#undef HAVE_ID_IN_UTMP
624
625/* Define if you have ut_id in utmpx.h */
626#undef HAVE_ID_IN_UTMPX
627
628/* Define to 1 if you have the `inet_aton' function. */
629#undef HAVE_INET_ATON
630
631/* Define to 1 if you have the `inet_ntoa' function. */
632#undef HAVE_INET_NTOA
633
634/* Define to 1 if you have the `inet_ntop' function. */
635#undef HAVE_INET_NTOP
636
637/* Define to 1 if you have the `innetgr' function. */
638#undef HAVE_INNETGR
639
640/* define if you have int64_t data type */
641#undef HAVE_INT64_T
642
643/* Define to 1 if the system has the type `intmax_t'. */
644#undef HAVE_INTMAX_T
645
646/* Define to 1 if you have the <inttypes.h> header file. */
647#undef HAVE_INTTYPES_H
648
649/* define if you have intxx_t data type */
650#undef HAVE_INTXX_T
651
652/* Define to 1 if the system has the type `in_addr_t'. */
653#undef HAVE_IN_ADDR_T
654
655/* Define to 1 if the system has the type `in_port_t'. */
656#undef HAVE_IN_PORT_T
657
658/* Define if you have isblank(3C). */
659#undef HAVE_ISBLANK
660
661/* Define to 1 if you have the `krb5_cc_new_unique' function. */
662#undef HAVE_KRB5_CC_NEW_UNIQUE
663
664/* Define to 1 if you have the `krb5_free_error_message' function. */
665#undef HAVE_KRB5_FREE_ERROR_MESSAGE
666
667/* Define to 1 if you have the `krb5_get_error_message' function. */
668#undef HAVE_KRB5_GET_ERROR_MESSAGE
669
670/* Define to 1 if you have the <lastlog.h> header file. */
671#undef HAVE_LASTLOG_H
672
673/* Define if you want ldns support */
674#undef HAVE_LDNS
675
676/* Define to 1 if you have the <libaudit.h> header file. */
677#undef HAVE_LIBAUDIT_H
678
679/* Define to 1 if you have the `bsm' library (-lbsm). */
680#undef HAVE_LIBBSM
681
682/* Define to 1 if you have the `crypt' library (-lcrypt). */
683#undef HAVE_LIBCRYPT
684
685/* Define to 1 if you have the `dl' library (-ldl). */
686#undef HAVE_LIBDL
687
688/* Define to 1 if you have the <libgen.h> header file. */
689#undef HAVE_LIBGEN_H
690
691/* Define if system has libiaf that supports set_id */
692#undef HAVE_LIBIAF
693
694/* Define to 1 if you have the `network' library (-lnetwork). */
695#undef HAVE_LIBNETWORK
696
697/* Define to 1 if you have the `nsl' library (-lnsl). */
698#undef HAVE_LIBNSL
699
700/* Define to 1 if you have the `pam' library (-lpam). */
701#undef HAVE_LIBPAM
702
703/* Define to 1 if you have the `socket' library (-lsocket). */
704#undef HAVE_LIBSOCKET
705
706/* Define to 1 if you have the <libutil.h> header file. */
707#undef HAVE_LIBUTIL_H
708
709/* Define to 1 if you have the `xnet' library (-lxnet). */
710#undef HAVE_LIBXNET
711
712/* Define to 1 if you have the `z' library (-lz). */
713#undef HAVE_LIBZ
714
715/* Define to 1 if you have the <limits.h> header file. */
716#undef HAVE_LIMITS_H
717
718/* Define to 1 if you have the <linux/audit.h> header file. */
719#undef HAVE_LINUX_AUDIT_H
720
721/* Define to 1 if you have the <linux/filter.h> header file. */
722#undef HAVE_LINUX_FILTER_H
723
724/* Define to 1 if you have the <linux/if_tun.h> header file. */
725#undef HAVE_LINUX_IF_TUN_H
726
727/* Define to 1 if you have the <linux/seccomp.h> header file. */
728#undef HAVE_LINUX_SECCOMP_H
729
730/* Define to 1 if you have the <locale.h> header file. */
731#undef HAVE_LOCALE_H
732
733/* Define to 1 if you have the `login' function. */
734#undef HAVE_LOGIN
735
736/* Define to 1 if you have the <login_cap.h> header file. */
737#undef HAVE_LOGIN_CAP_H
738
739/* Define to 1 if you have the `login_getcapbool' function. */
740#undef HAVE_LOGIN_GETCAPBOOL
741
742/* Define to 1 if you have the <login.h> header file. */
743#undef HAVE_LOGIN_H
744
745/* Define to 1 if you have the `logout' function. */
746#undef HAVE_LOGOUT
747
748/* Define to 1 if you have the `logwtmp' function. */
749#undef HAVE_LOGWTMP
750
751/* Define to 1 if the system has the type `long double'. */
752#undef HAVE_LONG_DOUBLE
753
754/* Define to 1 if the system has the type `long long'. */
755#undef HAVE_LONG_LONG
756
757/* Define to 1 if you have the <maillock.h> header file. */
758#undef HAVE_MAILLOCK_H
759
760/* Define to 1 if you have the `mblen' function. */
761#undef HAVE_MBLEN
762
763/* Define to 1 if you have the `md5_crypt' function. */
764#undef HAVE_MD5_CRYPT
765
766/* Define if you want to allow MD5 passwords */
767#undef HAVE_MD5_PASSWORDS
768
769/* Define to 1 if you have the `memmove' function. */
770#undef HAVE_MEMMOVE
771
772/* Define to 1 if you have the <memory.h> header file. */
773#undef HAVE_MEMORY_H
774
775/* Define to 1 if you have the `memset_s' function. */
776#undef HAVE_MEMSET_S
777
778/* Define to 1 if you have the `mkdtemp' function. */
779#undef HAVE_MKDTEMP
780
781/* Define to 1 if you have the `mmap' function. */
782#undef HAVE_MMAP
783
784/* define if you have mode_t data type */
785#undef HAVE_MODE_T
786
787/* Some systems put nanosleep outside of libc */
788#undef HAVE_NANOSLEEP
789
790/* Define to 1 if you have the <ndir.h> header file. */
791#undef HAVE_NDIR_H
792
793/* Define to 1 if you have the <netdb.h> header file. */
794#undef HAVE_NETDB_H
795
796/* Define to 1 if you have the <netgroup.h> header file. */
797#undef HAVE_NETGROUP_H
798
799/* Define to 1 if you have the <net/if_tun.h> header file. */
800#undef HAVE_NET_IF_TUN_H
801
802/* Define if you are on NeXT */
803#undef HAVE_NEXT
804
805/* Define to 1 if you have the `ngetaddrinfo' function. */
806#undef HAVE_NGETADDRINFO
807
808/* Define to 1 if you have the `nsleep' function. */
809#undef HAVE_NSLEEP
810
811/* Define to 1 if you have the `ogetaddrinfo' function. */
812#undef HAVE_OGETADDRINFO
813
814/* Define if you have an old version of PAM which takes only one argument to
815 pam_strerror */
816#undef HAVE_OLD_PAM
817
818/* Define to 1 if you have the `openlog_r' function. */
819#undef HAVE_OPENLOG_R
820
821/* Define to 1 if you have the `openpty' function. */
822#undef HAVE_OPENPTY
823
824/* Define if your ssl headers are included with #include <openssl/header.h> */
825#undef HAVE_OPENSSL
826
827/* Define if you have Digital Unix Security Integration Architecture */
828#undef HAVE_OSF_SIA
829
830/* Define to 1 if you have the `pam_getenvlist' function. */
831#undef HAVE_PAM_GETENVLIST
832
833/* Define to 1 if you have the <pam/pam_appl.h> header file. */
834#undef HAVE_PAM_PAM_APPL_H
835
836/* Define to 1 if you have the `pam_putenv' function. */
837#undef HAVE_PAM_PUTENV
838
839/* Define to 1 if you have the <paths.h> header file. */
840#undef HAVE_PATHS_H
841
842/* Define if you have ut_pid in utmp.h */
843#undef HAVE_PID_IN_UTMP
844
845/* define if you have pid_t data type */
846#undef HAVE_PID_T
847
848/* Define to 1 if you have the `poll' function. */
849#undef HAVE_POLL
850
851/* Define to 1 if you have the <poll.h> header file. */
852#undef HAVE_POLL_H
853
854/* Define to 1 if you have the `prctl' function. */
855#undef HAVE_PRCTL
856
857/* Define if you have /proc/$pid/fd */
858#undef HAVE_PROC_PID
859
860/* Define to 1 if you have the `pstat' function. */
861#undef HAVE_PSTAT
862
863/* Define to 1 if you have the <pty.h> header file. */
864#undef HAVE_PTY_H
865
866/* Define to 1 if you have the `pututline' function. */
867#undef HAVE_PUTUTLINE
868
869/* Define to 1 if you have the `pututxline' function. */
870#undef HAVE_PUTUTXLINE
871
872/* Define to 1 if you have the `readpassphrase' function. */
873#undef HAVE_READPASSPHRASE
874
875/* Define to 1 if you have the <readpassphrase.h> header file. */
876#undef HAVE_READPASSPHRASE_H
877
878/* Define to 1 if you have the `reallocarray' function. */
879#undef HAVE_REALLOCARRAY
880
881/* Define to 1 if you have the `realpath' function. */
882#undef HAVE_REALPATH
883
884/* Define to 1 if you have the `recvmsg' function. */
885#undef HAVE_RECVMSG
886
887/* sys/resource.h has RLIMIT_NPROC */
888#undef HAVE_RLIMIT_NPROC
889
890/* Define to 1 if you have the <rpc/types.h> header file. */
891#undef HAVE_RPC_TYPES_H
892
893/* Define to 1 if you have the `rresvport_af' function. */
894#undef HAVE_RRESVPORT_AF
895
896/* Define to 1 if you have the `RSA_generate_key_ex' function. */
897#undef HAVE_RSA_GENERATE_KEY_EX
898
899/* Define to 1 if you have the `RSA_get_default_method' function. */
900#undef HAVE_RSA_GET_DEFAULT_METHOD
901
902/* Define to 1 if you have the <sandbox.h> header file. */
903#undef HAVE_SANDBOX_H
904
905/* Define to 1 if you have the `sandbox_init' function. */
906#undef HAVE_SANDBOX_INIT
907
908/* define if you have sa_family_t data type */
909#undef HAVE_SA_FAMILY_T
910
911/* Define to 1 if you have the `scan_scaled' function. */
912#undef HAVE_SCAN_SCALED
913
914/* Define if you have SecureWare-based protected password database */
915#undef HAVE_SECUREWARE
916
917/* Define to 1 if you have the <security/pam_appl.h> header file. */
918#undef HAVE_SECURITY_PAM_APPL_H
919
920/* Define to 1 if you have the `sendmsg' function. */
921#undef HAVE_SENDMSG
922
923/* Define to 1 if you have the `setauthdb' function. */
924#undef HAVE_SETAUTHDB
925
926/* Define to 1 if you have the `setdtablesize' function. */
927#undef HAVE_SETDTABLESIZE
928
929/* Define to 1 if you have the `setegid' function. */
930#undef HAVE_SETEGID
931
932/* Define to 1 if you have the `setenv' function. */
933#undef HAVE_SETENV
934
935/* Define to 1 if you have the `seteuid' function. */
936#undef HAVE_SETEUID
937
938/* Define to 1 if you have the `setgroupent' function. */
939#undef HAVE_SETGROUPENT
940
941/* Define to 1 if you have the `setgroups' function. */
942#undef HAVE_SETGROUPS
943
944/* Define to 1 if you have the `setlinebuf' function. */
945#undef HAVE_SETLINEBUF
946
947/* Define to 1 if you have the `setlogin' function. */
948#undef HAVE_SETLOGIN
949
950/* Define to 1 if you have the `setluid' function. */
951#undef HAVE_SETLUID
952
953/* Define to 1 if you have the `setpassent' function. */
954#undef HAVE_SETPASSENT
955
956/* Define to 1 if you have the `setpcred' function. */
957#undef HAVE_SETPCRED
958
959/* Define to 1 if you have the `setproctitle' function. */
960#undef HAVE_SETPROCTITLE
961
962/* Define to 1 if you have the `setregid' function. */
963#undef HAVE_SETREGID
964
965/* Define to 1 if you have the `setresgid' function. */
966#undef HAVE_SETRESGID
967
968/* Define to 1 if you have the `setresuid' function. */
969#undef HAVE_SETRESUID
970
971/* Define to 1 if you have the `setreuid' function. */
972#undef HAVE_SETREUID
973
974/* Define to 1 if you have the `setrlimit' function. */
975#undef HAVE_SETRLIMIT
976
977/* Define to 1 if you have the `setsid' function. */
978#undef HAVE_SETSID
979
980/* Define to 1 if you have the `setutent' function. */
981#undef HAVE_SETUTENT
982
983/* Define to 1 if you have the `setutxdb' function. */
984#undef HAVE_SETUTXDB
985
986/* Define to 1 if you have the `setutxent' function. */
987#undef HAVE_SETUTXENT
988
989/* Define to 1 if you have the `setvbuf' function. */
990#undef HAVE_SETVBUF
991
992/* Define to 1 if you have the `set_id' function. */
993#undef HAVE_SET_ID
994
995/* Define to 1 if you have the `SHA256_Update' function. */
996#undef HAVE_SHA256_UPDATE
997
998/* Define to 1 if you have the <sha2.h> header file. */
999#undef HAVE_SHA2_H
1000
1001/* Define to 1 if you have the <shadow.h> header file. */
1002#undef HAVE_SHADOW_H
1003
1004/* Define to 1 if you have the `sigaction' function. */
1005#undef HAVE_SIGACTION
1006
1007/* Define to 1 if you have the `sigvec' function. */
1008#undef HAVE_SIGVEC
1009
1010/* Define to 1 if the system has the type `sig_atomic_t'. */
1011#undef HAVE_SIG_ATOMIC_T
1012
1013/* define if you have size_t data type */
1014#undef HAVE_SIZE_T
1015
1016/* Define to 1 if you have the `snprintf' function. */
1017#undef HAVE_SNPRINTF
1018
1019/* Define to 1 if you have the `socketpair' function. */
1020#undef HAVE_SOCKETPAIR
1021
1022/* Have PEERCRED socket option */
1023#undef HAVE_SO_PEERCRED
1024
1025/* define if you have ssize_t data type */
1026#undef HAVE_SSIZE_T
1027
1028/* Fields in struct sockaddr_storage */
1029#undef HAVE_SS_FAMILY_IN_SS
1030
1031/* Define to 1 if you have the `statfs' function. */
1032#undef HAVE_STATFS
1033
1034/* Define to 1 if you have the `statvfs' function. */
1035#undef HAVE_STATVFS
1036
1037/* Define to 1 if you have the <stddef.h> header file. */
1038#undef HAVE_STDDEF_H
1039
1040/* Define to 1 if you have the <stdint.h> header file. */
1041#undef HAVE_STDINT_H
1042
1043/* Define to 1 if you have the <stdlib.h> header file. */
1044#undef HAVE_STDLIB_H
1045
1046/* Define to 1 if you have the `strdup' function. */
1047#undef HAVE_STRDUP
1048
1049/* Define to 1 if you have the `strerror' function. */
1050#undef HAVE_STRERROR
1051
1052/* Define to 1 if you have the `strftime' function. */
1053#undef HAVE_STRFTIME
1054
1055/* Silly mkstemp() */
1056#undef HAVE_STRICT_MKSTEMP
1057
1058/* Define to 1 if you have the <strings.h> header file. */
1059#undef HAVE_STRINGS_H
1060
1061/* Define to 1 if you have the <string.h> header file. */
1062#undef HAVE_STRING_H
1063
1064/* Define to 1 if you have the `strlcat' function. */
1065#undef HAVE_STRLCAT
1066
1067/* Define to 1 if you have the `strlcpy' function. */
1068#undef HAVE_STRLCPY
1069
1070/* Define to 1 if you have the `strmode' function. */
1071#undef HAVE_STRMODE
1072
1073/* Define to 1 if you have the `strnlen' function. */
1074#undef HAVE_STRNLEN
1075
1076/* Define to 1 if you have the `strnvis' function. */
1077#undef HAVE_STRNVIS
1078
1079/* Define to 1 if you have the `strptime' function. */
1080#undef HAVE_STRPTIME
1081
1082/* Define to 1 if you have the `strsep' function. */
1083#undef HAVE_STRSEP
1084
1085/* Define to 1 if you have the `strtoll' function. */
1086#undef HAVE_STRTOLL
1087
1088/* Define to 1 if you have the `strtonum' function. */
1089#undef HAVE_STRTONUM
1090
1091/* Define to 1 if you have the `strtoul' function. */
1092#undef HAVE_STRTOUL
1093
1094/* Define to 1 if you have the `strtoull' function. */
1095#undef HAVE_STRTOULL
1096
1097/* define if you have struct addrinfo data type */
1098#undef HAVE_STRUCT_ADDRINFO
1099
1100/* define if you have struct in6_addr data type */
1101#undef HAVE_STRUCT_IN6_ADDR
1102
1103/* Define to 1 if `pw_change' is member of `struct passwd'. */
1104#undef HAVE_STRUCT_PASSWD_PW_CHANGE
1105
1106/* Define to 1 if `pw_class' is member of `struct passwd'. */
1107#undef HAVE_STRUCT_PASSWD_PW_CLASS
1108
1109/* Define to 1 if `pw_expire' is member of `struct passwd'. */
1110#undef HAVE_STRUCT_PASSWD_PW_EXPIRE
1111
1112/* Define to 1 if `pw_gecos' is member of `struct passwd'. */
1113#undef HAVE_STRUCT_PASSWD_PW_GECOS
1114
1115/* define if you have struct sockaddr_in6 data type */
1116#undef HAVE_STRUCT_SOCKADDR_IN6
1117
1118/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
1119#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
1120
1121/* define if you have struct sockaddr_storage data type */
1122#undef HAVE_STRUCT_SOCKADDR_STORAGE
1123
1124/* Define to 1 if `st_blksize' is member of `struct stat'. */
1125#undef HAVE_STRUCT_STAT_ST_BLKSIZE
1126
1127/* Define to 1 if the system has the type `struct timespec'. */
1128#undef HAVE_STRUCT_TIMESPEC
1129
1130/* define if you have struct timeval */
1131#undef HAVE_STRUCT_TIMEVAL
1132
1133/* Define to 1 if you have the `swap32' function. */
1134#undef HAVE_SWAP32
1135
1136/* Define to 1 if you have the `sysconf' function. */
1137#undef HAVE_SYSCONF
1138
1139/* Define if you have syslen in utmpx.h */
1140#undef HAVE_SYSLEN_IN_UTMPX
1141
1142/* Define to 1 if you have the <sys/audit.h> header file. */
1143#undef HAVE_SYS_AUDIT_H
1144
1145/* Define to 1 if you have the <sys/bitypes.h> header file. */
1146#undef HAVE_SYS_BITYPES_H
1147
1148/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1149#undef HAVE_SYS_BSDTTY_H
1150
1151/* Define to 1 if you have the <sys/capability.h> header file. */
1152#undef HAVE_SYS_CAPABILITY_H
1153
1154/* Define to 1 if you have the <sys/cdefs.h> header file. */
1155#undef HAVE_SYS_CDEFS_H
1156
1157/* Define to 1 if you have the <sys/dir.h> header file. */
1158#undef HAVE_SYS_DIR_H
1159
1160/* Define if your system defines sys_errlist[] */
1161#undef HAVE_SYS_ERRLIST
1162
1163/* Define to 1 if you have the <sys/mman.h> header file. */
1164#undef HAVE_SYS_MMAN_H
1165
1166/* Define to 1 if you have the <sys/mount.h> header file. */
1167#undef HAVE_SYS_MOUNT_H
1168
1169/* Define to 1 if you have the <sys/ndir.h> header file. */
1170#undef HAVE_SYS_NDIR_H
1171
1172/* Define if your system defines sys_nerr */
1173#undef HAVE_SYS_NERR
1174
1175/* Define to 1 if you have the <sys/poll.h> header file. */
1176#undef HAVE_SYS_POLL_H
1177
1178/* Define to 1 if you have the <sys/prctl.h> header file. */
1179#undef HAVE_SYS_PRCTL_H
1180
1181/* Define to 1 if you have the <sys/pstat.h> header file. */
1182#undef HAVE_SYS_PSTAT_H
1183
1184/* Define to 1 if you have the <sys/ptms.h> header file. */
1185#undef HAVE_SYS_PTMS_H
1186
1187/* Define to 1 if you have the <sys/select.h> header file. */
1188#undef HAVE_SYS_SELECT_H
1189
1190/* Define to 1 if you have the <sys/statvfs.h> header file. */
1191#undef HAVE_SYS_STATVFS_H
1192
1193/* Define to 1 if you have the <sys/stat.h> header file. */
1194#undef HAVE_SYS_STAT_H
1195
1196/* Define to 1 if you have the <sys/stream.h> header file. */
1197#undef HAVE_SYS_STREAM_H
1198
1199/* Define to 1 if you have the <sys/stropts.h> header file. */
1200#undef HAVE_SYS_STROPTS_H
1201
1202/* Define to 1 if you have the <sys/strtio.h> header file. */
1203#undef HAVE_SYS_STRTIO_H
1204
1205/* Force use of sys/syslog.h on Ultrix */
1206#undef HAVE_SYS_SYSLOG_H
1207
1208/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1209#undef HAVE_SYS_SYSMACROS_H
1210
1211/* Define to 1 if you have the <sys/timers.h> header file. */
1212#undef HAVE_SYS_TIMERS_H
1213
1214/* Define to 1 if you have the <sys/time.h> header file. */
1215#undef HAVE_SYS_TIME_H
1216
1217/* Define to 1 if you have the <sys/types.h> header file. */
1218#undef HAVE_SYS_TYPES_H
1219
1220/* Define to 1 if you have the <sys/un.h> header file. */
1221#undef HAVE_SYS_UN_H
1222
1223/* Define to 1 if you have the `tcgetpgrp' function. */
1224#undef HAVE_TCGETPGRP
1225
1226/* Define to 1 if you have the `tcsendbreak' function. */
1227#undef HAVE_TCSENDBREAK
1228
1229/* Define to 1 if you have the `time' function. */
1230#undef HAVE_TIME
1231
1232/* Define to 1 if you have the <time.h> header file. */
1233#undef HAVE_TIME_H
1234
1235/* Define if you have ut_time in utmp.h */
1236#undef HAVE_TIME_IN_UTMP
1237
1238/* Define if you have ut_time in utmpx.h */
1239#undef HAVE_TIME_IN_UTMPX
1240
1241/* Define to 1 if you have the `timingsafe_bcmp' function. */
1242#undef HAVE_TIMINGSAFE_BCMP
1243
1244/* Define to 1 if you have the <tmpdir.h> header file. */
1245#undef HAVE_TMPDIR_H
1246
1247/* Define to 1 if you have the `truncate' function. */
1248#undef HAVE_TRUNCATE
1249
1250/* Define to 1 if you have the <ttyent.h> header file. */
1251#undef HAVE_TTYENT_H
1252
1253/* Define if you have ut_tv in utmp.h */
1254#undef HAVE_TV_IN_UTMP
1255
1256/* Define if you have ut_tv in utmpx.h */
1257#undef HAVE_TV_IN_UTMPX
1258
1259/* Define if you have ut_type in utmp.h */
1260#undef HAVE_TYPE_IN_UTMP
1261
1262/* Define if you have ut_type in utmpx.h */
1263#undef HAVE_TYPE_IN_UTMPX
1264
1265/* Define to 1 if you have the <ucred.h> header file. */
1266#undef HAVE_UCRED_H
1267
1268/* Define to 1 if the system has the type `uintmax_t'. */
1269#undef HAVE_UINTMAX_T
1270
1271/* define if you have uintxx_t data type */
1272#undef HAVE_UINTXX_T
1273
1274/* Define to 1 if you have the <unistd.h> header file. */
1275#undef HAVE_UNISTD_H
1276
1277/* Define to 1 if you have the `unsetenv' function. */
1278#undef HAVE_UNSETENV
1279
1280/* Define to 1 if the system has the type `unsigned long long'. */
1281#undef HAVE_UNSIGNED_LONG_LONG
1282
1283/* Define to 1 if you have the `updwtmp' function. */
1284#undef HAVE_UPDWTMP
1285
1286/* Define to 1 if you have the `updwtmpx' function. */
1287#undef HAVE_UPDWTMPX
1288
1289/* Define to 1 if you have the <usersec.h> header file. */
1290#undef HAVE_USERSEC_H
1291
1292/* Define to 1 if you have the `user_from_uid' function. */
1293#undef HAVE_USER_FROM_UID
1294
1295/* Define to 1 if you have the `usleep' function. */
1296#undef HAVE_USLEEP
1297
1298/* Define to 1 if you have the <util.h> header file. */
1299#undef HAVE_UTIL_H
1300
1301/* Define to 1 if you have the `utimes' function. */
1302#undef HAVE_UTIMES
1303
1304/* Define to 1 if you have the <utime.h> header file. */
1305#undef HAVE_UTIME_H
1306
1307/* Define to 1 if you have the `utmpname' function. */
1308#undef HAVE_UTMPNAME
1309
1310/* Define to 1 if you have the `utmpxname' function. */
1311#undef HAVE_UTMPXNAME
1312
1313/* Define to 1 if you have the <utmpx.h> header file. */
1314#undef HAVE_UTMPX_H
1315
1316/* Define to 1 if you have the <utmp.h> header file. */
1317#undef HAVE_UTMP_H
1318
1319/* define if you have u_char data type */
1320#undef HAVE_U_CHAR
1321
1322/* define if you have u_int data type */
1323#undef HAVE_U_INT
1324
1325/* define if you have u_int64_t data type */
1326#undef HAVE_U_INT64_T
1327
1328/* define if you have u_intxx_t data type */
1329#undef HAVE_U_INTXX_T
1330
1331/* Define to 1 if you have the `vasprintf' function. */
1332#undef HAVE_VASPRINTF
1333
1334/* Define if va_copy exists */
1335#undef HAVE_VA_COPY
1336
1337/* Define to 1 if you have the <vis.h> header file. */
1338#undef HAVE_VIS_H
1339
1340/* Define to 1 if you have the `vsnprintf' function. */
1341#undef HAVE_VSNPRINTF
1342
1343/* Define to 1 if you have the `waitpid' function. */
1344#undef HAVE_WAITPID
1345
1346/* Define to 1 if you have the `_getlong' function. */
1347#undef HAVE__GETLONG
1348
1349/* Define to 1 if you have the `_getpty' function. */
1350#undef HAVE__GETPTY
1351
1352/* Define to 1 if you have the `_getshort' function. */
1353#undef HAVE__GETSHORT
1354
1355/* Define if you have struct __res_state _res as an extern */
1356#undef HAVE__RES_EXTERN
1357
1358/* Define to 1 if you have the `__b64_ntop' function. */
1359#undef HAVE___B64_NTOP
1360
1361/* Define to 1 if you have the `__b64_pton' function. */
1362#undef HAVE___B64_PTON
1363
1364/* Define if compiler implements __FUNCTION__ */
1365#undef HAVE___FUNCTION__
1366
1367/* Define if libc defines __progname */
1368#undef HAVE___PROGNAME
1369
1370/* Fields in struct sockaddr_storage */
1371#undef HAVE___SS_FAMILY_IN_SS
1372
1373/* Define if __va_copy exists */
1374#undef HAVE___VA_COPY
1375
1376/* Define if compiler implements __func__ */
1377#undef HAVE___func__
1378
1379/* Define this if you are using the Heimdal version of Kerberos V5 */
1380#undef HEIMDAL
1381
1382/* Define if you need to use IP address instead of hostname in $DISPLAY */
1383#undef IPADDR_IN_DISPLAY
1384
1385/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1386#undef IPV4_IN_IPV6
1387
1388/* Define if your system choked on IP TOS setting */
1389#undef IP_TOS_IS_BROKEN
1390
1391/* Define if you want Kerberos 5 support */
1392#undef KRB5
1393
1394/* Define if pututxline updates lastlog too */
1395#undef LASTLOG_WRITE_PUTUTXLINE
1396
1397/* Define to whatever link() returns for "not supported" if it doesn't return
1398 EOPNOTSUPP. */
1399#undef LINK_OPNOTSUPP_ERRNO
1400
1401/* Adjust Linux out-of-memory killer */
1402#undef LINUX_OOM_ADJUST
1403
1404/* max value of long long calculated by configure */
1405#undef LLONG_MAX
1406
1407/* min value of long long calculated by configure */
1408#undef LLONG_MIN
1409
1410/* Account locked with pw(1) */
1411#undef LOCKED_PASSWD_PREFIX
1412
1413/* String used in /etc/passwd to denote locked account */
1414#undef LOCKED_PASSWD_STRING
1415
1416/* String used in /etc/passwd to denote locked account */
1417#undef LOCKED_PASSWD_SUBSTR
1418
1419/* Some versions of /bin/login need the TERM supplied on the commandline */
1420#undef LOGIN_NEEDS_TERM
1421
1422/* Some systems need a utmpx entry for /bin/login to work */
1423#undef LOGIN_NEEDS_UTMPX
1424
1425/* Define if your login program cannot handle end of options ("--") */
1426#undef LOGIN_NO_ENDOPT
1427
1428/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1429 from environment and PATH */
1430#undef LOGIN_PROGRAM_FALLBACK
1431
1432/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1433#undef MAIL_DIRECTORY
1434
1435/* Need setpgrp to acquire controlling tty */
1436#undef NEED_SETPGRP
1437
1438/* compiler does not accept __attribute__ on return types */
1439#undef NO_ATTRIBUTE_ON_RETURN_TYPE
1440
1441/* Define if the concept of ports only accessible to superusers isn't known */
1442#undef NO_IPPORT_RESERVED_CONCEPT
1443
1444/* Define if you don't want to use lastlog in session.c */
1445#undef NO_SSH_LASTLOG
1446
1447/* Define if X11 doesn't support AF_UNIX sockets on that system */
1448#undef NO_X11_UNIX_SOCKETS
1449
1450/* Define if EVP_DigestUpdate returns void */
1451#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1452
1453/* OpenSSL has ECC */
1454#undef OPENSSL_HAS_ECC
1455
1456/* libcrypto has NID_X9_62_prime256v1 */
1457#undef OPENSSL_HAS_NISTP256
1458
1459/* libcrypto has NID_secp384r1 */
1460#undef OPENSSL_HAS_NISTP384
1461
1462/* libcrypto has NID_secp521r1 */
1463#undef OPENSSL_HAS_NISTP521
1464
1465/* libcrypto has EVP AES CTR */
1466#undef OPENSSL_HAVE_EVPCTR
1467
1468/* libcrypto has EVP AES GCM */
1469#undef OPENSSL_HAVE_EVPGCM
1470
1471/* libcrypto is missing AES 192 and 256 bit functions */
1472#undef OPENSSL_LOBOTOMISED_AES
1473
1474/* Define if you want the OpenSSL internally seeded PRNG only */
1475#undef OPENSSL_PRNG_ONLY
1476
1477/* Define to the address where bug reports for this package should be sent. */
1478#undef PACKAGE_BUGREPORT
1479
1480/* Define to the full name of this package. */
1481#undef PACKAGE_NAME
1482
1483/* Define to the full name and version of this package. */
1484#undef PACKAGE_STRING
1485
1486/* Define to the one symbol short name of this package. */
1487#undef PACKAGE_TARNAME
1488
1489/* Define to the version of this package. */
1490#undef PACKAGE_VERSION
1491
1492/* Define if you are using Solaris-derived PAM which passes pam_messages to
1493 the conversation function with an extra level of indirection */
1494#undef PAM_SUN_CODEBASE
1495
1496/* Work around problematic Linux PAM modules handling of PAM_TTY */
1497#undef PAM_TTY_KLUDGE
1498
1499/* must supply username to passwd */
1500#undef PASSWD_NEEDS_USERNAME
1501
1502/* System dirs owned by bin (uid 2) */
1503#undef PLATFORM_SYS_DIR_UID
1504
1505/* Port number of PRNGD/EGD random number socket */
1506#undef PRNGD_PORT
1507
1508/* Location of PRNGD/EGD random number socket */
1509#undef PRNGD_SOCKET
1510
1511/* read(1) can return 0 for a non-closed fd */
1512#undef PTY_ZEROREAD
1513
1514/* Sandbox using capsicum */
1515#undef SANDBOX_CAPSICUM
1516
1517/* Sandbox using Darwin sandbox_init(3) */
1518#undef SANDBOX_DARWIN
1519
1520/* no privsep sandboxing */
1521#undef SANDBOX_NULL
1522
1523/* Sandbox using setrlimit(2) */
1524#undef SANDBOX_RLIMIT
1525
1526/* Sandbox using seccomp filter */
1527#undef SANDBOX_SECCOMP_FILTER
1528
1529/* setrlimit RLIMIT_FSIZE works */
1530#undef SANDBOX_SKIP_RLIMIT_FSIZE
1531
1532/* define if setrlimit RLIMIT_NOFILE breaks things */
1533#undef SANDBOX_SKIP_RLIMIT_NOFILE
1534
1535/* Sandbox using systrace(4) */
1536#undef SANDBOX_SYSTRACE
1537
1538/* Specify the system call convention in use */
1539#undef SECCOMP_AUDIT_ARCH
1540
1541/* Define if your platform breaks doing a seteuid before a setuid */
1542#undef SETEUID_BREAKS_SETUID
1543
1544/* The size of `int', as computed by sizeof. */
1545#undef SIZEOF_INT
1546
1547/* The size of `long int', as computed by sizeof. */
1548#undef SIZEOF_LONG_INT
1549
1550/* The size of `long long int', as computed by sizeof. */
1551#undef SIZEOF_LONG_LONG_INT
1552
1553/* The size of `short int', as computed by sizeof. */
1554#undef SIZEOF_SHORT_INT
1555
1556/* Define if you want S/Key support */
1557#undef SKEY
1558
1559/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1560#undef SKEYCHALLENGE_4ARG
1561
1562/* Define as const if snprintf() can declare const char *fmt */
1563#undef SNPRINTF_CONST
1564
1565/* Define to a Set Process Title type if your system is supported by
1566 bsd-setproctitle.c */
1567#undef SPT_TYPE
1568
1569/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1570#undef SSHD_ACQUIRES_CTTY
1571
1572/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1573#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1574
1575/* Use audit debugging module */
1576#undef SSH_AUDIT_EVENTS
1577
1578/* Windows is sensitive to read buffer size */
1579#undef SSH_IOBUFSZ
1580
1581/* non-privileged user for privilege separation */
1582#undef SSH_PRIVSEP_USER
1583
1584/* Use tunnel device compatibility to OpenBSD */
1585#undef SSH_TUN_COMPAT_AF
1586
1587/* Open tunnel devices the FreeBSD way */
1588#undef SSH_TUN_FREEBSD
1589
1590/* Open tunnel devices the Linux tun/tap way */
1591#undef SSH_TUN_LINUX
1592
1593/* No layer 2 tunnel support */
1594#undef SSH_TUN_NO_L2
1595
1596/* Open tunnel devices the OpenBSD way */
1597#undef SSH_TUN_OPENBSD
1598
1599/* Prepend the address family to IP tunnel traffic */
1600#undef SSH_TUN_PREPEND_AF
1601
1602/* Define to 1 if you have the ANSI C header files. */
1603#undef STDC_HEADERS
1604
1605/* Define if you want a different $PATH for the superuser */
1606#undef SUPERUSER_PATH
1607
1608/* syslog_r function is safe to use in in a signal handler */
1609#undef SYSLOG_R_SAFE_IN_SIGHAND
1610
1611/* Support passwords > 8 chars */
1612#undef UNIXWARE_LONG_PASSWORDS
1613
1614/* Specify default $PATH */
1615#undef USER_PATH
1616
1617/* Define this if you want to use libkafs' AFS support */
1618#undef USE_AFS
1619
1620/* Use BSM audit module */
1621#undef USE_BSM_AUDIT
1622
1623/* Use btmp to log bad logins */
1624#undef USE_BTMP
1625
1626/* Use libedit for sftp */
1627#undef USE_LIBEDIT
1628
1629/* Use Linux audit module */
1630#undef USE_LINUX_AUDIT
1631
1632/* Enable OpenSSL engine support */
1633#undef USE_OPENSSL_ENGINE
1634
1635/* Define if you want to enable PAM support */
1636#undef USE_PAM
1637
1638/* Use PIPES instead of a socketpair() */
1639#undef USE_PIPES
1640
1641/* Define if you have Solaris process contracts */
1642#undef USE_SOLARIS_PROCESS_CONTRACTS
1643
1644/* Define if you have Solaris projects */
1645#undef USE_SOLARIS_PROJECTS
1646
1647/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1648#undef WITH_ABBREV_NO_TTY
1649
1650/* Define if you want to enable AIX4's authenticate function */
1651#undef WITH_AIXAUTHENTICATE
1652
1653/* Define if you have/want arrays (cluster-wide session managment, not C
1654 arrays) */
1655#undef WITH_IRIX_ARRAY
1656
1657/* Define if you want IRIX audit trails */
1658#undef WITH_IRIX_AUDIT
1659
1660/* Define if you want IRIX kernel jobs */
1661#undef WITH_IRIX_JOBS
1662
1663/* Define if you want IRIX project management */
1664#undef WITH_IRIX_PROJECT
1665
1666/* use libcrypto for cryptography */
1667#undef WITH_OPENSSL
1668
1669/* Define if you want SELinux support. */
1670#undef WITH_SELINUX
1671
1672/* include SSH protocol version 1 support */
1673#undef WITH_SSH1
1674
1675/* Define to 1 if your processor stores words with the most significant byte
1676 first (like Motorola and SPARC, unlike Intel and VAX). */
1677#undef WORDS_BIGENDIAN
1678
1679/* Define if xauth is found in your path */
1680#undef XAUTH_PATH
1681
1682/* Number of bits in a file offset, on hosts where this is settable. */
1683#undef _FILE_OFFSET_BITS
1684
1685/* Define for large files, on AIX-style hosts. */
1686#undef _LARGE_FILES
1687
1688/* log for bad login attempts */
1689#undef _PATH_BTMP
1690
1691/* Full path of your "passwd" program */
1692#undef _PATH_PASSWD_PROG
1693
1694/* Specify location of ssh.pid */
1695#undef _PATH_SSH_PIDDIR
1696
1697/* Define if we don't have struct __res_state in resolv.h */
1698#undef __res_state
1699
1700/* Define to `__inline__' or `__inline' if that's what the C compiler
1701 calls it, or to nothing if 'inline' is not supported under any name. */
1702#ifndef __cplusplus
1703#undef inline
1704#endif
1705
1706/* type to use in place of socklen_t if not defined */
1707#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..803c5bcde
--- /dev/null
+++ b/configure
@@ -0,0 +1,36697 @@
1#! /bin/sh
2# From configure.ac Revision: 1.583 .
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
17DUALCASE=1; export DUALCASE # for MKS sh
18if 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
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if 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
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
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.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
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.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if 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; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for 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
110do
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
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo 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
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$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 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
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
235done
236IFS=$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
243if 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
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
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
264if 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
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $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
339fi
340
341fi
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+"$@"}
351fi
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; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$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
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `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';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if 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'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
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 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_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.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 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.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_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
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680ac_ct_AR
681CAT
682KILL
683PERL
684SED
685ENT
686TEST_MINUS_S_SH
687SH
688GROFF
689NROFF
690MANDOC
691TEST_SHELL
692MANFMT
693PATH_GROUPADD_PROG
694PATH_USERADD_PROG
695MAKE_PACKAGE_SUPPORTED
696STARTUP_SCRIPT_SHELL
697LOGIN_PROGRAM_FALLBACK
698PATH_PASSWD_PROG
699LD
700PKGCONFIG
701LIBEDIT
702TEST_SSH_ECC
703COMMENT_OUT_ECC
704SSH_PRIVSEP_USER
705SSHLIBS
706SSHDLIBS
707KRB5CONF
708GSSLIBS
709K5LIBS
710PRIVSEP_PATH
711xauth_path
712STRIP_OPT
713XAUTH_PATH
714MANTYPE
715mansubdir
716user_path
717piddir
718TEST_SSH_IPV6
719TEST_MALLOC_OPTIONS
720UNSUPPORTED_ALGORITHMS
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724 ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
791
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
807
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
822
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
827
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
835 -disable-* | --disable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=\$ac_optarg ;;
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
991
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1050
1051 -with-* | --with-*)
1052 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=\$ac_optarg ;;
1059
1060 -without-* | --without-*)
1061 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=no ;;
1068
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1072
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078 x_includes=$ac_optarg ;;
1079
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085 x_libraries=$ac_optarg ;;
1086
1087 -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089 { (exit 1); exit 1; }; }
1090 ;;
1091
1092 *=*)
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097 { (exit 1); exit 1; }; }
1098 eval $ac_envvar=\$ac_optarg
1099 export $ac_envvar ;;
1100
1101 *)
1102 # FIXME: should be removed in autoconf 3.0.
1103 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 ;;
1108
1109 esac
1110done
1111
1112if test -n "$ac_prev"; then
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 { echo "$as_me: error: missing argument to $ac_option" >&2
1115 { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
1123do
1124 eval ac_val=\$$ac_var
1125 case $ac_val in
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128 esac
1129 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130 { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
1144 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 { echo "$as_me: error: pwd does not report name of working directory" >&2
1164 { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$0" : 'X\(//\)[^/]' \| \
1174 X"$0" : 'X\(//\)$' \| \
1175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
1194 srcdir=$ac_confdir
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 srcdir=..
1197 fi
1198else
1199 ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204 { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209 { (exit 1); exit 1; }; }
1210 pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259 [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1288_ACEOF
1289
1290 cat <<\_ACEOF
1291
1292System types:
1293 --build=BUILD configure for building on BUILD [guessed]
1294 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1301 esac
1302 cat <<\_ACEOF
1303
1304Optional Features:
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --disable-largefile omit support for large files
1308 --disable-strip Disable calling strip(1) on install
1309 --disable-etc-default-login Disable using PATH from /etc/default/login no
1310 --disable-lastlog disable use of lastlog even if detected no
1311 --disable-utmp disable use of utmp even if detected no
1312 --disable-utmpx disable use of utmpx even if detected no
1313 --disable-wtmp disable use of wtmp even if detected no
1314 --disable-wtmpx disable use of wtmpx even if detected no
1315 --disable-libutil disable use of libutil (login() etc.) no
1316 --disable-pututline disable use of pututline() etc. (uwtmp) no
1317 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1318
1319Optional Packages:
1320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1322 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1323 --without-ssh1 Enable support for SSH protocol 1
1324 --without-stackprotect Don't use compiler's stack protection
1325 --without-hardening Don't use toolchain hardening flags
1326 --without-rpath Disable auto-added -R linker paths
1327 --with-cflags Specify additional flags to pass to compiler
1328 --with-cppflags Specify additional flags to pass to preprocessor
1329 --with-ldflags Specify additional flags to pass to linker
1330 --with-libs Specify additional libraries to link with
1331 --with-Werror Build main code with -Werror
1332 --with-solaris-contracts Enable Solaris process contracts (experimental)
1333 --with-solaris-projects Enable Solaris projects (experimental)
1334 --with-osfsia Enable Digital Unix SIA
1335 --with-zlib=PATH Use zlib in PATH
1336 --without-zlib-version-check Disable zlib version check
1337 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1338 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1339 --with-libedit[=PATH] Enable libedit support for sftp
1340 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1341 --with-pie Build Position Independent Executables if possible
1342 --with-ssl-dir=PATH Specify path to OpenSSL installation
1343 --without-openssl-header-check Disable OpenSSL version consistency check
1344 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1345 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1346 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1347 --with-pam Enable PAM support
1348 --with-privsep-user=user Specify non-privileged user for privilege separation
1349 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1350 --with-selinux Enable SELinux support
1351 --with-kerberos5=PATH Enable Kerberos 5 support
1352 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1353 --with-xauth=PATH Specify path to xauth program
1354 --with-maildir=/path/to/mail Specify your system mail directory
1355 --with-mantype=man|cat|doc Set man page type
1356 --with-md5-passwords Enable use of MD5 passwords
1357 --without-shadow Disable shadow password support
1358 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1359 --with-default-path= Specify default $PATH environment for server
1360 --with-superuser-path= Specify different path for super-user
1361 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1362 --with-bsd-auth Enable BSD auth support
1363 --with-pid-dir=PATH Specify location of ssh.pid file
1364 --with-lastlog=FILE|DIR specify lastlog location common locations
1365
1366Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to <openssh-unix-dev@mindrot.org>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439 cat <<\_ACEOF
1440OpenSSH configure Portable
1441generated by GNU Autoconf 2.61
1442
1443Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448 exit
1449fi
1450cat >config.log <<_ACEOF
1451This file contains any messages produced by compilers while
1452running configure, to aid debugging if configure makes a mistake.
1453
1454It was created by OpenSSH $as_me Portable, which was
1455generated by GNU Autoconf 2.61. Invocation command line was
1456
1457 $ $0 $@
1458
1459_ACEOF
1460exec 5>>config.log
1461{
1462cat <<_ASUNAME
1463## --------- ##
1464## Platform. ##
1465## --------- ##
1466
1467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484_ASUNAME
1485
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492done
1493IFS=$as_save_IFS
1494
1495} >&5
1496
1497cat >&5 <<_ACEOF
1498
1499
1500## ----------- ##
1501## Core tests. ##
1502## ----------- ##
1503
1504_ACEOF
1505
1506
1507# Keep a trace of the command line.
1508# Strip out --no-create and --no-recursion so they do not pile up.
1509# Strip out --silent because we don't want to record it for future runs.
1510# Also quote any args containing shell meta-characters.
1511# Make two passes to allow for proper duplicate-argument suppression.
1512ac_configure_args=
1513ac_configure_args0=
1514ac_configure_args1=
1515ac_must_keep_next=false
1516for ac_pass in 1 2
1517do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551done
1552$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555# When interrupted or exit'd, cleanup temporary files, and complete
1556# config.log. We remove comments because anyway the quotes in there
1557# would cause problems or look ugly.
1558# WARNING: Use '\'' to represent an apostrophe within the trap.
1559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566## ---------------- ##
1567## Cache variables. ##
1568## ---------------- ##
1569_ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572(
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1594 *)
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ;;
1597 esac |
1598 sort
1599)
1600 echo
1601
1602 cat <<\_ASBOX
1603## ----------------- ##
1604## Output variables. ##
1605## ----------------- ##
1606_ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620## ------------------- ##
1621## File substitutions. ##
1622## ------------------- ##
1623_ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638## ----------- ##
1639## confdefs.h. ##
1640## ----------- ##
1641_ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653' 0
1654for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656done
1657ac_signal=0
1658
1659# confdefs.h avoids OS command line length limits that DEFS can exceed.
1660rm -f -r conftest* confdefs.h
1661
1662# Predefined preprocessor variables.
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_NAME "$PACKAGE_NAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686_ACEOF
1687
1688
1689# Let the site file select an alternate cache file if it wants to.
1690# Prefer explicitly selected file to automatically selected ones.
1691if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1698fi
1699shift
1700for ac_site_file
1701do
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1707 fi
1708done
1709
1710if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1720 fi
1721else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1725fi
1726
1727# Check that the precious variables saved in the cache have kept the same
1728# value.
1729ac_cache_corrupted=false
1730for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1745 *)
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1766 fi
1767done
1768if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1774fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
1815
1816ac_config_headers="$ac_config_headers config.h"
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847IFS=$as_save_IFS
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 { echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6; }
1855else
1856 { echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6; }
1858fi
1859
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887IFS=$as_save_IFS
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6; }
1895else
1896 { echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6; }
1898fi
1899
1900 if test "x$ac_ct_CC" = x; then
1901 CC=""
1902 else
1903 case $cross_compiling:$ac_tool_warned in
1904yes:)
1905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&5
1908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1909whose name does not start with the host triplet. If you think this
1910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1911ac_tool_warned=yes ;;
1912esac
1913 CC=$ac_ct_CC
1914 fi
1915else
1916 CC="$ac_cv_prog_CC"
1917fi
1918
1919if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1922set dummy ${ac_tool_prefix}cc; ac_word=$2
1923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1938 ac_cv_prog_CC="${ac_tool_prefix}cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942done
1943done
1944IFS=$as_save_IFS
1945
1946fi
1947fi
1948CC=$ac_cv_prog_CC
1949if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951echo "${ECHO_T}$CC" >&6; }
1952else
1953 { echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6; }
1955fi
1956
1957
1958 fi
1959fi
1960if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1970else
1971 ac_prog_rejected=no
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1981 continue
1982 fi
1983 ac_cv_prog_CC="cc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989IFS=$as_save_IFS
1990
1991if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1994 shift
1995 if test $# != 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
1999 shift
2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 fi
2002fi
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015fi
2016if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl.exe
2019 do
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049 { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
2051else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057 test -n "$CC" && break
2058 done
2059fi
2060if test -z "$CC"; then
2061 ac_ct_CC=$CC
2062 for ac_prog in cl.exe
2063do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_ac_ct_CC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085done
2086done
2087IFS=$as_save_IFS
2088
2089fi
2090fi
2091ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092if test -n "$ac_ct_CC"; then
2093 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094echo "${ECHO_T}$ac_ct_CC" >&6; }
2095else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6; }
2098fi
2099
2100
2101 test -n "$ac_ct_CC" && break
2102done
2103
2104 if test "x$ac_ct_CC" = x; then
2105 CC=""
2106 else
2107 case $cross_compiling:$ac_tool_warned in
2108yes:)
2109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&5
2112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet. If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115ac_tool_warned=yes ;;
2116esac
2117 CC=$ac_ct_CC
2118 fi
2119fi
2120
2121fi
2122
2123
2124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: no acceptable C compiler found in \$PATH
2127See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2129
2130# Provide some information about the compiler.
2131echo "$as_me:$LINENO: checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (ac_try="$ac_compiler --version >&5"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler --version >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (ac_try="$ac_compiler -v >&5"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_compiler -v >&5") 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153{ (ac_try="$ac_compiler -V >&5"
2154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
2158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_compiler -V >&5") 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h. */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h. */
2170
2171int
2172main ()
2173{
2174
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187#
2188# List of possible output files, starting from the most likely.
2189# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2190# only as a last resort. b.out is created by i960 compilers.
2191ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192#
2193# The IRIX 6 linker writes into existing files which may not be
2194# executable, retaining their permissions. Remove them first so a
2195# subsequent execution test works.
2196ac_rmfiles=
2197for ac_file in $ac_files
2198do
2199 case $ac_file in
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202 esac
2203done
2204rm -f $ac_rmfiles
2205
2206if { (ac_try="$ac_link_default"
2207case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_link_default") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2217# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2218# in a Makefile. We should not override ac_cv_exeext if it was cached,
2219# so that the user can short-circuit this test for compilers unknown to
2220# Autoconf.
2221for ac_file in $ac_files ''
2222do
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2226 ;;
2227 [ab].out )
2228 # We found the default executable, but exeext='' is most
2229 # certainly right.
2230 break;;
2231 *.* )
2232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233 then :; else
2234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 fi
2236 # We set ac_cv_exeext here because the later test for it is not
2237 # safe: cross compilers may not add the suffix if given an `-o'
2238 # argument, so we may need to know it at that point already.
2239 # Even if this section looks crufty: it has the advantage of
2240 # actually working.
2241 break;;
2242 * )
2243 break;;
2244 esac
2245done
2246test "$ac_cv_exeext" = no && ac_cv_exeext=
2247
2248else
2249 ac_file=''
2250fi
2251
2252{ echo "$as_me:$LINENO: result: $ac_file" >&5
2253echo "${ECHO_T}$ac_file" >&6; }
2254if test -z "$ac_file"; then
2255 echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: C compiler cannot create executables
2261See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2263fi
2264
2265ac_exeext=$ac_cv_exeext
2266
2267# Check that the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272# If not cross compiling, check that we can run a simple program.
2273if test "$cross_compiling" != yes; then
2274 if { ac_try='./$ac_file'
2275 { (case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 cross_compiling=no
2285 else
2286 if test "$cross_compiling" = maybe; then
2287 cross_compiling=yes
2288 else
2289 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297 fi
2298fi
2299{ echo "$as_me:$LINENO: result: yes" >&5
2300echo "${ECHO_T}yes" >&6; }
2301
2302rm -f a.out a.exe conftest$ac_cv_exeext b.out
2303ac_clean_files=$ac_clean_files_save
2304# Check that the compiler produces executables we can run. If not, either
2305# the compiler is broken, or we cross compile.
2306{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2307echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2308{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2309echo "${ECHO_T}$cross_compiling" >&6; }
2310
2311{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2312echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2313if { (ac_try="$ac_link"
2314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_link") 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325# work properly (i.e., refer to `conftest.exe'), while it won't with
2326# `rm'.
2327for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 break;;
2333 * ) break;;
2334 esac
2335done
2336else
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest$ac_cv_exeext
2345{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346echo "${ECHO_T}$ac_cv_exeext" >&6; }
2347
2348rm -f conftest.$ac_ext
2349EXEEXT=$ac_cv_exeext
2350ac_exeext=$EXEEXT
2351{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2353if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h. */
2362
2363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in conftest.o conftest.obj conftest.*; do
2383 test -f "$ac_file" || continue;
2384 case $ac_file in
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387 break;;
2388 esac
2389done
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2399fi
2400
2401rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402fi
2403{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404echo "${ECHO_T}$ac_cv_objext" >&6; }
2405OBJEXT=$ac_cv_objext
2406ac_objext=$OBJEXT
2407{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2409if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418
2419int
2420main ()
2421{
2422#ifndef __GNUC__
2423 choke me
2424#endif
2425
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (ac_try="$ac_compile"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compile") 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.$ac_objext; then
2447 ac_compiler_gnu=yes
2448else
2449 echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453fi
2454
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 ac_save_c_werror_flag=$ac_c_werror_flag
2470 ac_c_werror_flag=yes
2471 ac_cv_prog_cc_g=no
2472 CFLAGS="-g"
2473 cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479
2480int
2481main ()
2482{
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (ac_try="$ac_compile"
2490case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493esac
2494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2505 ac_cv_prog_cc_g=yes
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 CFLAGS=""
2511 cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
2517
2518int
2519main ()
2520{
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (ac_try="$ac_compile"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } && {
2540 test -z "$ac_c_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest.$ac_objext; then
2543 :
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } && {
2579 test -z "$ac_c_werror_flag" ||
2580 test ! -s conftest.err
2581 } && test -s conftest.$ac_objext; then
2582 ac_cv_prog_cc_g=yes
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
2599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2608 fi
2609else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615fi
2616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 ac_cv_prog_cc_c89=no
2622ac_save_CC=$CC
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682do
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } && {
2698 test -z "$ac_c_werror_flag" ||
2699 test ! -s conftest.err
2700 } && test -s conftest.$ac_objext; then
2701 ac_cv_prog_cc_c89=$ac_arg
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707fi
2708
2709rm -f core conftest.err conftest.$ac_objext
2710 test "x$ac_cv_prog_cc_c89" != "xno" && break
2711done
2712rm -f conftest.$ac_ext
2713CC=$ac_save_CC
2714
2715fi
2716# AC_CACHE_VAL
2717case "x$ac_cv_prog_cc_c89" in
2718 x)
2719 { echo "$as_me:$LINENO: result: none needed" >&5
2720echo "${ECHO_T}none needed" >&6; } ;;
2721 xno)
2722 { echo "$as_me:$LINENO: result: unsupported" >&5
2723echo "${ECHO_T}unsupported" >&6; } ;;
2724 *)
2725 CC="$CC $ac_cv_prog_cc_c89"
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2727echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2728esac
2729
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752done
2753if test -z "$ac_aux_dir"; then
2754 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2755echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2756 { (exit 1); exit 1; }; }
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766
2767
2768# Make sure we can run config.sub.
2769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772 { (exit 1); exit 1; }; }
2773
2774{ echo "$as_me:$LINENO: checking build system type" >&5
2775echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2776if test "${ac_cv_build+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 ac_build_alias=$build_alias
2780test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782test "x$ac_build_alias" = x &&
2783 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785 { (exit 1); exit 1; }; }
2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2790
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793echo "${ECHO_T}$ac_cv_build" >&6; }
2794case $ac_cv_build in
2795*-*-*) ;;
2796*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797echo "$as_me: error: invalid value of canonical build" >&2;}
2798 { (exit 1); exit 1; }; };;
2799esac
2800build=$ac_cv_build
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_build
2803shift
2804build_cpu=$1
2805build_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809build_os=$*
2810IFS=$ac_save_IFS
2811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814{ echo "$as_me:$LINENO: checking host system type" >&5
2815echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2816if test "${ac_cv_host+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2821else
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825 { (exit 1); exit 1; }; }
2826fi
2827
2828fi
2829{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830echo "${ECHO_T}$ac_cv_host" >&6; }
2831case $ac_cv_host in
2832*-*-*) ;;
2833*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834echo "$as_me: error: invalid value of canonical host" >&2;}
2835 { (exit 1); exit 1; }; };;
2836esac
2837host=$ac_cv_host
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_host
2840shift
2841host_cpu=$1
2842host_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846host_os=$*
2847IFS=$ac_save_IFS
2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2858echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2859# On Suns, sometimes $CPP names a directory.
2860if test -n "$CPP" && test -d "$CPP"; then
2861 CPP=
2862fi
2863if test -z "$CPP"; then
2864 if test "${ac_cv_prog_CPP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 # Double quotes because CPP needs to be expanded
2868 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869 do
2870 ac_preproc_ok=false
2871for ac_c_preproc_warn_flag in '' yes
2872do
2873 # Use a header file that comes with gcc, so configuring glibc
2874 # with a fresh cross-compiler works.
2875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876 # <limits.h> exists even on freestanding compilers.
2877 # On the NeXT, cc -E runs the code through the compiler's parser,
2878 # not just through cpp. "Syntax error" is here to catch this case.
2879 cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
2885#ifdef __STDC__
2886# include <limits.h>
2887#else
2888# include <assert.h>
2889#endif
2890 Syntax error
2891_ACEOF
2892if { (ac_try="$ac_cpp conftest.$ac_ext"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev/null && {
2905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 }; then
2908 :
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 # Broken: fails on valid input.
2914continue
2915fi
2916
2917rm -f conftest.err conftest.$ac_ext
2918
2919 # OK, works on sane cases. Now check whether nonexistent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (ac_try="$ac_cpp conftest.$ac_ext"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 }; then
2945 # Broken: success on invalid input.
2946continue
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962 break
2963fi
2964
2965 done
2966 ac_cv_prog_CPP=$CPP
2967
2968fi
2969 CPP=$ac_cv_prog_CPP
2970else
2971 ac_cv_prog_CPP=$CPP
2972fi
2973{ echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6; }
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
2993# include <assert.h>
2994#endif
2995 Syntax error
2996_ACEOF
2997if { (ac_try="$ac_cpp conftest.$ac_ext"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null && {
3010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 }; then
3013 :
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 # Broken: fails on valid input.
3019continue
3020fi
3021
3022rm -f conftest.err conftest.$ac_ext
3023
3024 # OK, works on sane cases. Now check whether nonexistent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032#include <ac_nonexistent.h>
3033_ACEOF
3034if { (ac_try="$ac_cpp conftest.$ac_ext"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null && {
3047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 }; then
3050 # Broken: success on invalid input.
3051continue
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
3060
3061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067 :
3068else
3069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3074fi
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081
3082
3083{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3084echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3085if test "${ac_cv_path_GREP+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088 # Extract the first word of "grep ggrep" to use in msg output
3089if test -z "$GREP"; then
3090set dummy grep ggrep; ac_prog_name=$2
3091if test "${ac_cv_path_GREP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 ac_path_GREP_found=false
3095# Loop through the user's path and test for each of PROGNAME-LIST
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_prog in grep ggrep; do
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3104 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3105 # Check for GNU ac_path_GREP and select it if it is found.
3106 # Check for GNU $ac_path_GREP
3107case `"$ac_path_GREP" --version 2>&1` in
3108*GNU*)
3109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3110*)
3111 ac_count=0
3112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3113 while :
3114 do
3115 cat "conftest.in" "conftest.in" >"conftest.tmp"
3116 mv "conftest.tmp" "conftest.in"
3117 cp "conftest.in" "conftest.nl"
3118 echo 'GREP' >> "conftest.nl"
3119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3121 ac_count=`expr $ac_count + 1`
3122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3123 # Best one so far, save it but keep looking for a better one
3124 ac_cv_path_GREP="$ac_path_GREP"
3125 ac_path_GREP_max=$ac_count
3126 fi
3127 # 10*(2^10) chars as input seems more than enough
3128 test $ac_count -gt 10 && break
3129 done
3130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3131esac
3132
3133
3134 $ac_path_GREP_found && break 3
3135 done
3136done
3137
3138done
3139IFS=$as_save_IFS
3140
3141
3142fi
3143
3144GREP="$ac_cv_path_GREP"
3145if test -z "$GREP"; then
3146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3147echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3148 { (exit 1); exit 1; }; }
3149fi
3150
3151else
3152 ac_cv_path_GREP=$GREP
3153fi
3154
3155
3156fi
3157{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3158echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3159 GREP="$ac_cv_path_GREP"
3160
3161
3162{ echo "$as_me:$LINENO: checking for egrep" >&5
3163echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3164if test "${ac_cv_path_EGREP+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3168 then ac_cv_path_EGREP="$GREP -E"
3169 else
3170 # Extract the first word of "egrep" to use in msg output
3171if test -z "$EGREP"; then
3172set dummy egrep; ac_prog_name=$2
3173if test "${ac_cv_path_EGREP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 ac_path_EGREP_found=false
3177# Loop through the user's path and test for each of PROGNAME-LIST
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_prog in egrep; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3187 # Check for GNU ac_path_EGREP and select it if it is found.
3188 # Check for GNU $ac_path_EGREP
3189case `"$ac_path_EGREP" --version 2>&1` in
3190*GNU*)
3191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3192*)
3193 ac_count=0
3194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3195 while :
3196 do
3197 cat "conftest.in" "conftest.in" >"conftest.tmp"
3198 mv "conftest.tmp" "conftest.in"
3199 cp "conftest.in" "conftest.nl"
3200 echo 'EGREP' >> "conftest.nl"
3201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3203 ac_count=`expr $ac_count + 1`
3204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3205 # Best one so far, save it but keep looking for a better one
3206 ac_cv_path_EGREP="$ac_path_EGREP"
3207 ac_path_EGREP_max=$ac_count
3208 fi
3209 # 10*(2^10) chars as input seems more than enough
3210 test $ac_count -gt 10 && break
3211 done
3212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3213esac
3214
3215
3216 $ac_path_EGREP_found && break 3
3217 done
3218done
3219
3220done
3221IFS=$as_save_IFS
3222
3223
3224fi
3225
3226EGREP="$ac_cv_path_EGREP"
3227if test -z "$EGREP"; then
3228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3229echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3230 { (exit 1); exit 1; }; }
3231fi
3232
3233else
3234 ac_cv_path_EGREP=$EGREP
3235fi
3236
3237
3238 fi
3239fi
3240{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3241echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3242 EGREP="$ac_cv_path_EGREP"
3243
3244
3245{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3246echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3247if test "${ac_cv_header_stdc+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256#include <stdlib.h>
3257#include <stdarg.h>
3258#include <string.h>
3259#include <float.h>
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_header_stdc=yes
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 ac_cv_header_stdc=no
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295
3296if test $ac_cv_header_stdc = yes; then
3297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <string.h>
3305
3306_ACEOF
3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "memchr" >/dev/null 2>&1; then
3309 :
3310else
3311 ac_cv_header_stdc=no
3312fi
3313rm -f conftest*
3314
3315fi
3316
3317if test $ac_cv_header_stdc = yes; then
3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#include <stdlib.h>
3326
3327_ACEOF
3328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 $EGREP "free" >/dev/null 2>&1; then
3330 :
3331else
3332 ac_cv_header_stdc=no
3333fi
3334rm -f conftest*
3335
3336fi
3337
3338if test $ac_cv_header_stdc = yes; then
3339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3340 if test "$cross_compiling" = yes; then
3341 :
3342else
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349#include <ctype.h>
3350#include <stdlib.h>
3351#if ((' ' & 0x0FF) == 0x020)
3352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3354#else
3355# define ISLOWER(c) \
3356 (('a' <= (c) && (c) <= 'i') \
3357 || ('j' <= (c) && (c) <= 'r') \
3358 || ('s' <= (c) && (c) <= 'z'))
3359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360#endif
3361
3362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3363int
3364main ()
3365{
3366 int i;
3367 for (i = 0; i < 256; i++)
3368 if (XOR (islower (i), ISLOWER (i))
3369 || toupper (i) != TOUPPER (i))
3370 return 2;
3371 return 0;
3372}
3373_ACEOF
3374rm -f conftest$ac_exeext
3375if { (ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 :
3395else
3396 echo "$as_me: program exited with status $ac_status" >&5
3397echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400( exit $ac_status )
3401ac_cv_header_stdc=no
3402fi
3403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3404fi
3405
3406
3407fi
3408fi
3409{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3411if test $ac_cv_header_stdc = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define STDC_HEADERS 1
3415_ACEOF
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430 inttypes.h stdint.h unistd.h
3431do
3432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444$ac_includes_default
3445
3446#include <$ac_header>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
3454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then
3465 eval "$as_ac_Header=yes"
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 eval "$as_ac_Header=no"
3471fi
3472
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475ac_res=`eval echo '${'$as_ac_Header'}'`
3476 { echo "$as_me:$LINENO: result: $ac_res" >&5
3477echo "${ECHO_T}$ac_res" >&6; }
3478if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479 cat >>confdefs.h <<_ACEOF
3480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481_ACEOF
3482
3483fi
3484
3485done
3486
3487
3488{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3489echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3490if test "${ac_cv_c_bigendian+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 # See if sys/param.h defines the BYTE_ORDER macro.
3494cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#include <sys/types.h>
3501#include <sys/param.h>
3502
3503int
3504main ()
3505{
3506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3507 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3508 bogus endian macros
3509#endif
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 # It does; now see whether it defined to BIG_ENDIAN or not.
3533cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
3545#if BYTE_ORDER != BIG_ENDIAN
3546 not big endian
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_c_bigendian=yes
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_c_bigendian=no
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579else
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 # It does not; compile a test program.
3584if test "$cross_compiling" = yes; then
3585 # try to guess the endianness by grepping values into an object file
3586 ac_cv_c_bigendian=unknown
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3594short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3595void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3596short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3597short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3598void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3599int
3600main ()
3601{
3602 _ascii (); _ebcdic ();
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (ac_try="$ac_compile"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3625 ac_cv_c_bigendian=yes
3626fi
3627if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3628 if test "$ac_cv_c_bigendian" = unknown; then
3629 ac_cv_c_bigendian=no
3630 else
3631 # finding both strings is unlikely to happen, but who knows?
3632 ac_cv_c_bigendian=unknown
3633 fi
3634fi
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643else
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650$ac_includes_default
3651int
3652main ()
3653{
3654
3655 /* Are we little or big endian? From Harbison&Steele. */
3656 union
3657 {
3658 long int l;
3659 char c[sizeof (long int)];
3660 } u;
3661 u.l = 1;
3662 return u.c[sizeof (long int) - 1] == 1;
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
3668rm -f conftest$ac_exeext
3669if { (ac_try="$ac_link"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_link") 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_c_bigendian=no
3689else
3690 echo "$as_me: program exited with status $ac_status" >&5
3691echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694( exit $ac_status )
3695ac_cv_c_bigendian=yes
3696fi
3697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3698fi
3699
3700
3701fi
3702
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704fi
3705{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3706echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3707case $ac_cv_c_bigendian in
3708 yes)
3709
3710cat >>confdefs.h <<\_ACEOF
3711#define WORDS_BIGENDIAN 1
3712_ACEOF
3713 ;;
3714 no)
3715 ;;
3716 *)
3717 { { echo "$as_me:$LINENO: error: unknown endianness
3718presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3719echo "$as_me: error: unknown endianness
3720presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3721 { (exit 1); exit 1; }; } ;;
3722esac
3723
3724
3725# Checks for programs.
3726for ac_prog in gawk mawk nawk awk
3727do
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729set dummy $ac_prog; ac_word=$2
3730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732if test "${ac_cv_prog_AWK+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if test -n "$AWK"; then
3736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_AWK="$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749done
3750done
3751IFS=$as_save_IFS
3752
3753fi
3754fi
3755AWK=$ac_cv_prog_AWK
3756if test -n "$AWK"; then
3757 { echo "$as_me:$LINENO: result: $AWK" >&5
3758echo "${ECHO_T}$AWK" >&6; }
3759else
3760 { echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6; }
3762fi
3763
3764
3765 test -n "$AWK" && break
3766done
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775# On Suns, sometimes $CPP names a directory.
3776if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3778fi
3779if test -z "$CPP"; then
3780 if test "${ac_cv_prog_CPP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 do
3786 ac_preproc_ok=false
3787for ac_c_preproc_warn_flag in '' yes
3788do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806 Syntax error
3807_ACEOF
3808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 }; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 # Broken: fails on valid input.
3830continue
3831fi
3832
3833rm -f conftest.err conftest.$ac_ext
3834
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null && {
3858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 }; then
3861 # Broken: success on invalid input.
3862continue
3863else
3864 echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878 break
3879fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884fi
3885 CPP=$ac_cv_prog_CPP
3886else
3887 ac_cv_prog_CPP=$CPP
3888fi
3889{ echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6; }
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906#ifdef __STDC__
3907# include <limits.h>
3908#else
3909# include <assert.h>
3910#endif
3911 Syntax error
3912_ACEOF
3913if { (ac_try="$ac_cpp conftest.$ac_ext"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
3929 :
3930else
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 # Broken: fails on valid input.
3935continue
3936fi
3937
3938rm -f conftest.err conftest.$ac_ext
3939
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <ac_nonexistent.h>
3949_ACEOF
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null && {
3963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 }; then
3966 # Broken: success on invalid input.
3967continue
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976
3977rm -f conftest.err conftest.$ac_ext
3978
3979done
3980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981rm -f conftest.err conftest.$ac_ext
3982if $ac_preproc_ok; then
3983 :
3984else
3985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&5
3987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&2;}
3989 { (exit 1); exit 1; }; }
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026RANLIB=$ac_cv_prog_RANLIB
4027if test -n "$RANLIB"; then
4028 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4029echo "${ECHO_T}$RANLIB" >&6; }
4030else
4031 { echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6; }
4033fi
4034
4035
4036fi
4037if test -z "$ac_cv_prog_RANLIB"; then
4038 ac_ct_RANLIB=$RANLIB
4039 # Extract the first word of "ranlib", so it can be a program name with args.
4040set dummy ranlib; ac_word=$2
4041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 if test -n "$ac_ct_RANLIB"; then
4047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_ac_ct_RANLIB="ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067if test -n "$ac_ct_RANLIB"; then
4068 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4070else
4071 { echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6; }
4073fi
4074
4075 if test "x$ac_ct_RANLIB" = x; then
4076 RANLIB=":"
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&5
4083echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4084whose name does not start with the host triplet. If you think this
4085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4086ac_tool_warned=yes ;;
4087esac
4088 RANLIB=$ac_ct_RANLIB
4089 fi
4090else
4091 RANLIB="$ac_cv_prog_RANLIB"
4092fi
4093
4094# Find a good install program. We prefer a C program (faster),
4095# so one script is as good as another. But avoid the broken or
4096# incompatible versions:
4097# SysV /etc/install, /usr/sbin/install
4098# SunOS /usr/etc/install
4099# IRIX /sbin/install
4100# AIX /bin/install
4101# AmigaOS /C/install, which installs bootblocks on floppy discs
4102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105# OS/2's system install, which has a completely different semantic
4106# ./install, which can be erroneously created by make from ./install.sh.
4107{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4109if test -z "$INSTALL"; then
4110if test "${ac_cv_path_install+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4119case $as_dir/ in
4120 ./ | .// | /cC/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4123 /usr/ucb/* ) ;;
4124 *)
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4127 # by default.
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4134 :
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4138 :
4139 else
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141 break 3
4142 fi
4143 fi
4144 done
4145 done
4146 ;;
4147esac
4148done
4149IFS=$as_save_IFS
4150
4151
4152fi
4153 if test "${ac_cv_path_install+set}" = set; then
4154 INSTALL=$ac_cv_path_install
4155 else
4156 # As a last resort, use the slow shell script. Don't cache a
4157 # value for INSTALL within a source directory, because that will
4158 # break other packages using the cache if that directory is
4159 # removed, or if the value is a relative name.
4160 INSTALL=$ac_install_sh
4161 fi
4162fi
4163{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4164echo "${ECHO_T}$INSTALL" >&6; }
4165
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169
4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171
4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173
4174{ echo "$as_me:$LINENO: checking for egrep" >&5
4175echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4176if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 # Extract the first word of "egrep" to use in msg output
4183if test -z "$EGREP"; then
4184set dummy egrep; ac_prog_name=$2
4185if test "${ac_cv_path_EGREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_path_EGREP_found=false
4189# Loop through the user's path and test for each of PROGNAME-LIST
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201case `"$ac_path_EGREP" --version 2>&1` in
4202*GNU*)
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204*)
4205 ac_count=0
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 ac_count=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227
4228 $ac_path_EGREP_found && break 3
4229 done
4230done
4231
4232done
4233IFS=$as_save_IFS
4234
4235
4236fi
4237
4238EGREP="$ac_cv_path_EGREP"
4239if test -z "$EGREP"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242 { (exit 1); exit 1; }; }
4243fi
4244
4245else
4246 ac_cv_path_EGREP=$EGREP
4247fi
4248
4249
4250 fi
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4253echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257if test -n "$ac_tool_prefix"; then
4258 for ac_prog in ar
4259 do
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR="$AR" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289 { echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6; }
4291else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
4294fi
4295
4296
4297 test -n "$AR" && break
4298 done
4299fi
4300if test -z "$AR"; then
4301 ac_ct_AR=$AR
4302 for ac_prog in ar
4303do
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 if test -n "$ac_ct_AR"; then
4312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_AR="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331ac_ct_AR=$ac_cv_prog_ac_ct_AR
4332if test -n "$ac_ct_AR"; then
4333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4334echo "${ECHO_T}$ac_ct_AR" >&6; }
4335else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
4338fi
4339
4340
4341 test -n "$ac_ct_AR" && break
4342done
4343
4344 if test "x$ac_ct_AR" = x; then
4345 AR=""
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4350whose name does not start with the host triplet. If you think this
4351configuration is useful to you, please write to autoconf@gnu.org." >&5
4352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4353whose name does not start with the host triplet. If you think this
4354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357 AR=$ac_ct_AR
4358 fi
4359fi
4360
4361# Extract the first word of "cat", so it can be a program name with args.
4362set dummy cat; ac_word=$2
4363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365if test "${ac_cv_path_CAT+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 case $CAT in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386IFS=$as_save_IFS
4387
4388 ;;
4389esac
4390fi
4391CAT=$ac_cv_path_CAT
4392if test -n "$CAT"; then
4393 { echo "$as_me:$LINENO: result: $CAT" >&5
4394echo "${ECHO_T}$CAT" >&6; }
4395else
4396 { echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6; }
4398fi
4399
4400
4401# Extract the first word of "kill", so it can be a program name with args.
4402set dummy kill; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_path_KILL+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 case $KILL in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428 ;;
4429esac
4430fi
4431KILL=$ac_cv_path_KILL
4432if test -n "$KILL"; then
4433 { echo "$as_me:$LINENO: result: $KILL" >&5
4434echo "${ECHO_T}$KILL" >&6; }
4435else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441for ac_prog in perl5 perl
4442do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_path_PERL+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 case $PERL in
4451 [\\/]* | ?:[\\/]*)
4452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4453 ;;
4454 *)
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466done
4467done
4468IFS=$as_save_IFS
4469
4470 ;;
4471esac
4472fi
4473PERL=$ac_cv_path_PERL
4474if test -n "$PERL"; then
4475 { echo "$as_me:$LINENO: result: $PERL" >&5
4476echo "${ECHO_T}$PERL" >&6; }
4477else
4478 { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
4480fi
4481
4482
4483 test -n "$PERL" && break
4484done
4485
4486# Extract the first word of "sed", so it can be a program name with args.
4487set dummy sed; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_path_SED+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 case $SED in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513 ;;
4514esac
4515fi
4516SED=$ac_cv_path_SED
4517if test -n "$SED"; then
4518 { echo "$as_me:$LINENO: result: $SED" >&5
4519echo "${ECHO_T}$SED" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526
4527# Extract the first word of "ent", so it can be a program name with args.
4528set dummy ent; ac_word=$2
4529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531if test "${ac_cv_path_ENT+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 case $ENT in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552IFS=$as_save_IFS
4553
4554 ;;
4555esac
4556fi
4557ENT=$ac_cv_path_ENT
4558if test -n "$ENT"; then
4559 { echo "$as_me:$LINENO: result: $ENT" >&5
4560echo "${ECHO_T}$ENT" >&6; }
4561else
4562 { echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6; }
4564fi
4565
4566
4567
4568# Extract the first word of "bash", so it can be a program name with args.
4569set dummy bash; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 case $TEST_MINUS_S_SH in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595 ;;
4596esac
4597fi
4598TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4599if test -n "$TEST_MINUS_S_SH"; then
4600 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4601echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4602else
4603 { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608# Extract the first word of "ksh", so it can be a program name with args.
4609set dummy ksh; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 case $TEST_MINUS_S_SH in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635 ;;
4636esac
4637fi
4638TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4639if test -n "$TEST_MINUS_S_SH"; then
4640 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4641echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4642else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648# Extract the first word of "sh", so it can be a program name with args.
4649set dummy sh; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case $TEST_MINUS_S_SH in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675 ;;
4676esac
4677fi
4678TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4679if test -n "$TEST_MINUS_S_SH"; then
4680 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4681echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4682else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
4685fi
4686
4687
4688# Extract the first word of "sh", so it can be a program name with args.
4689set dummy sh; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_path_SH+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $SH in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713IFS=$as_save_IFS
4714
4715 ;;
4716esac
4717fi
4718SH=$ac_cv_path_SH
4719if test -n "$SH"; then
4720 { echo "$as_me:$LINENO: result: $SH" >&5
4721echo "${ECHO_T}$SH" >&6; }
4722else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728# Extract the first word of "groff", so it can be a program name with args.
4729set dummy groff; ac_word=$2
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_path_GROFF+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 case $GROFF in
4736 [\\/]* | ?:[\\/]*)
4737 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4738 ;;
4739 *)
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752done
4753IFS=$as_save_IFS
4754
4755 ;;
4756esac
4757fi
4758GROFF=$ac_cv_path_GROFF
4759if test -n "$GROFF"; then
4760 { echo "$as_me:$LINENO: result: $GROFF" >&5
4761echo "${ECHO_T}$GROFF" >&6; }
4762else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; }
4765fi
4766
4767
4768# Extract the first word of "nroff", so it can be a program name with args.
4769set dummy nroff; ac_word=$2
4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_path_NROFF+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 case $NROFF in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795 ;;
4796esac
4797fi
4798NROFF=$ac_cv_path_NROFF
4799if test -n "$NROFF"; then
4800 { echo "$as_me:$LINENO: result: $NROFF" >&5
4801echo "${ECHO_T}$NROFF" >&6; }
4802else
4803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
4805fi
4806
4807
4808# Extract the first word of "mandoc", so it can be a program name with args.
4809set dummy mandoc; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_path_MANDOC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 case $MANDOC in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833IFS=$as_save_IFS
4834
4835 ;;
4836esac
4837fi
4838MANDOC=$ac_cv_path_MANDOC
4839if test -n "$MANDOC"; then
4840 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4841echo "${ECHO_T}$MANDOC" >&6; }
4842else
4843 { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848TEST_SHELL=sh
4849
4850
4851if test "x$MANDOC" != "x" ; then
4852 MANFMT="$MANDOC"
4853elif test "x$NROFF" != "x" ; then
4854 MANFMT="$NROFF -mandoc"
4855elif test "x$GROFF" != "x" ; then
4856 MANFMT="$GROFF -mandoc -Tascii"
4857else
4858 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4859echo "$as_me: WARNING: no manpage formatted found" >&2;}
4860 MANFMT="false"
4861fi
4862
4863
4864# Extract the first word of "groupadd", so it can be a program name with args.
4865set dummy groupadd; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 case $PATH_GROUPADD_PROG in
4872 [\\/]* | ?:[\\/]*)
4873 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4874 ;;
4875 *)
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
4889IFS=$as_save_IFS
4890
4891 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4892 ;;
4893esac
4894fi
4895PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4896if test -n "$PATH_GROUPADD_PROG"; then
4897 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4898echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4899else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6; }
4902fi
4903
4904
4905# Extract the first word of "useradd", so it can be a program name with args.
4906set dummy useradd; ac_word=$2
4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 case $PATH_USERADD_PROG in
4913 [\\/]* | ?:[\\/]*)
4914 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4915 ;;
4916 *)
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928done
4929done
4930IFS=$as_save_IFS
4931
4932 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4933 ;;
4934esac
4935fi
4936PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4937if test -n "$PATH_USERADD_PROG"; then
4938 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4939echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4940else
4941 { echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; }
4943fi
4944
4945
4946# Extract the first word of "pkgmk", so it can be a program name with args.
4947set dummy pkgmk; ac_word=$2
4948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4954 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968done
4969IFS=$as_save_IFS
4970
4971 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4972fi
4973fi
4974MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4975if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4976 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4977echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4978else
4979 { echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6; }
4981fi
4982
4983
4984if test -x /sbin/sh; then
4985 STARTUP_SCRIPT_SHELL=/sbin/sh
4986
4987else
4988 STARTUP_SCRIPT_SHELL=/bin/sh
4989
4990fi
4991
4992# System features
4993# Check whether --enable-largefile was given.
4994if test "${enable_largefile+set}" = set; then
4995 enableval=$enable_largefile;
4996fi
4997
4998if test "$enable_largefile" != no; then
4999
5000 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5002if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 ac_cv_sys_largefile_CC=no
5006 if test "$GCC" != yes; then
5007 ac_save_CC=$CC
5008 while :; do
5009 # IRIX 6.2 and later do not support large files by default,
5010 # so use the C compiler's -n32 option if that helps.
5011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <sys/types.h>
5018 /* Check that off_t can represent 2**63 - 1 correctly.
5019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020 since some C++ compilers masquerading as C compilers
5021 incorrectly reject 9223372036854775807. */
5022#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024 && LARGE_OFF_T % 2147483647 == 1)
5025 ? 1 : -1];
5026int
5027main ()
5028{
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034 rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 break
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056
5057fi
5058
5059rm -f core conftest.err conftest.$ac_objext
5060 CC="$CC -n32"
5061 rm -f conftest.$ac_objext
5062if { (ac_try="$ac_compile"
5063case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5078 ac_cv_sys_largefile_CC=' -n32'; break
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083
5084fi
5085
5086rm -f core conftest.err conftest.$ac_objext
5087 break
5088 done
5089 CC=$ac_save_CC
5090 rm -f conftest.$ac_ext
5091 fi
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5094echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5095 if test "$ac_cv_sys_largefile_CC" != no; then
5096 CC=$CC$ac_cv_sys_largefile_CC
5097 fi
5098
5099 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5100echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5101if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 while :; do
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5119 ? 1 : -1];
5120int
5121main ()
5122{
5123
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (ac_try="$ac_compile"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_cv_sys_file_offset_bits=no; break
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150
5151fi
5152
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160#define _FILE_OFFSET_BITS 64
5161#include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5169 ? 1 : -1];
5170int
5171main ()
5172{
5173
5174 ;
5175 return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext
5179if { (ac_try="$ac_compile"
5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_compile") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && {
5192 test -z "$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 } && test -s conftest.$ac_objext; then
5195 ac_cv_sys_file_offset_bits=64; break
5196else
5197 echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200
5201fi
5202
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_cv_sys_file_offset_bits=unknown
5205 break
5206done
5207fi
5208{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5210case $ac_cv_sys_file_offset_bits in #(
5211 no | unknown) ;;
5212 *)
5213cat >>confdefs.h <<_ACEOF
5214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5215_ACEOF
5216;;
5217esac
5218rm -f conftest*
5219 if test $ac_cv_sys_file_offset_bits = unknown; then
5220 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5221echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5222if test "${ac_cv_sys_large_files+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 while :; do
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232#include <sys/types.h>
5233 /* Check that off_t can represent 2**63 - 1 correctly.
5234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5235 since some C++ compilers masquerading as C compilers
5236 incorrectly reject 9223372036854775807. */
5237#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5239 && LARGE_OFF_T % 2147483647 == 1)
5240 ? 1 : -1];
5241int
5242main ()
5243{
5244
5245 ;
5246 return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext
5250if { (ac_try="$ac_compile"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compile") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest.$ac_objext; then
5266 ac_cv_sys_large_files=no; break
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271
5272fi
5273
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h. */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h. */
5281#define _LARGE_FILES 1
5282#include <sys/types.h>
5283 /* Check that off_t can represent 2**63 - 1 correctly.
5284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5285 since some C++ compilers masquerading as C compilers
5286 incorrectly reject 9223372036854775807. */
5287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5289 && LARGE_OFF_T % 2147483647 == 1)
5290 ? 1 : -1];
5291int
5292main ()
5293{
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5316 ac_cv_sys_large_files=1; break
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_cv_sys_large_files=unknown
5326 break
5327done
5328fi
5329{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5330echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5331case $ac_cv_sys_large_files in #(
5332 no | unknown) ;;
5333 *)
5334cat >>confdefs.h <<_ACEOF
5335#define _LARGE_FILES $ac_cv_sys_large_files
5336_ACEOF
5337;;
5338esac
5339rm -f conftest*
5340 fi
5341fi
5342
5343
5344if test -z "$AR" ; then
5345 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5346echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5347 { (exit 1); exit 1; }; }
5348fi
5349
5350# Use LOGIN_PROGRAM from environment if possible
5351if test ! -z "$LOGIN_PROGRAM" ; then
5352
5353cat >>confdefs.h <<_ACEOF
5354#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5355_ACEOF
5356
5357else
5358 # Search for login
5359 # Extract the first word of "login", so it can be a program name with args.
5360set dummy login; ac_word=$2
5361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5363if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 case $LOGIN_PROGRAM_FALLBACK in
5367 [\\/]* | ?:[\\/]*)
5368 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5369 ;;
5370 *)
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383done
5384IFS=$as_save_IFS
5385
5386 ;;
5387esac
5388fi
5389LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5390if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5391 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5392echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5393else
5394 { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5400 cat >>confdefs.h <<_ACEOF
5401#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5402_ACEOF
5403
5404 fi
5405fi
5406
5407# Extract the first word of "passwd", so it can be a program name with args.
5408set dummy passwd; ac_word=$2
5409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 case $PATH_PASSWD_PROG in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5417 ;;
5418 *)
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431done
5432IFS=$as_save_IFS
5433
5434 ;;
5435esac
5436fi
5437PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5438if test -n "$PATH_PASSWD_PROG"; then
5439 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5440echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5441else
5442 { echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6; }
5444fi
5445
5446
5447if test ! -z "$PATH_PASSWD_PROG" ; then
5448
5449cat >>confdefs.h <<_ACEOF
5450#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5451_ACEOF
5452
5453fi
5454
5455if test -z "$LD" ; then
5456 LD=$CC
5457fi
5458
5459
5460{ echo "$as_me:$LINENO: checking for inline" >&5
5461echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5462if test "${ac_cv_c_inline+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 ac_cv_c_inline=no
5466for ac_kw in inline __inline__ __inline; do
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473#ifndef __cplusplus
5474typedef int foo_t;
5475static $ac_kw foo_t static_foo () {return 0; }
5476$ac_kw foo_t foo () {return 0; }
5477#endif
5478
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 ac_cv_c_inline=$ac_kw
5498else
5499 echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502
5503fi
5504
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 test "$ac_cv_c_inline" != no && break
5507done
5508
5509fi
5510{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5511echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5512
5513
5514case $ac_cv_c_inline in
5515 inline | yes) ;;
5516 *)
5517 case $ac_cv_c_inline in
5518 no) ac_val=;;
5519 *) ac_val=$ac_cv_c_inline;;
5520 esac
5521 cat >>confdefs.h <<_ACEOF
5522#ifndef __cplusplus
5523#define inline $ac_val
5524#endif
5525_ACEOF
5526 ;;
5527esac
5528
5529
5530{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5531echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5532if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541#include <limits.h>
5542
5543int
5544main ()
5545{
5546#ifndef LLONG_MAX
5547 (void) LLONG_MAX;
5548#endif
5549
5550 ;
5551 return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext
5555if { (ac_try="$ac_compile"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_cv_have_decl_LLONG_MAX=yes
5572else
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576 ac_cv_have_decl_LLONG_MAX=no
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5582echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5583if test $ac_cv_have_decl_LLONG_MAX = yes; then
5584 have_llong_max=1
5585fi
5586
5587{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5588echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5589if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h. */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h. */
5598
5599 #include <sys/types.h>
5600 #include <sys/param.h>
5601 #include <dev/systrace.h>
5602
5603
5604int
5605main ()
5606{
5607#ifndef SYSTR_POLICY_KILL
5608 (void) SYSTR_POLICY_KILL;
5609#endif
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext
5616if { (ac_try="$ac_compile"
5617case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5633else
5634 echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_have_decl_SYSTR_POLICY_KILL=no
5638fi
5639
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5643echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5644if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5645 have_systr_policy_kill=1
5646fi
5647
5648{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5649echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5650if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659
5660 #include <sys/types.h>
5661 #include <sys/resource.h>
5662
5663
5664int
5665main ()
5666{
5667#ifndef RLIMIT_NPROC
5668 (void) RLIMIT_NPROC;
5669#endif
5670
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_have_decl_RLIMIT_NPROC=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_have_decl_RLIMIT_NPROC=no
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5703echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5704if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_RLIMIT_NPROC
5708_ACEOF
5709
5710fi
5711
5712{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5713echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5714if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724 #include <sys/types.h>
5725 #include <linux/prctl.h>
5726
5727
5728int
5729main ()
5730{
5731#ifndef PR_SET_NO_NEW_PRIVS
5732 (void) PR_SET_NO_NEW_PRIVS;
5733#endif
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5767echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5768if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5769 have_linux_no_new_privs=1
5770fi
5771
5772
5773openssl=yes
5774ssh1=yes
5775
5776# Check whether --with-openssl was given.
5777if test "${with_openssl+set}" = set; then
5778 withval=$with_openssl; if test "x$withval" = "xno" ; then
5779 openssl=no
5780 ssh1=no
5781 fi
5782
5783
5784fi
5785
5786{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5787echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5788if test "x$openssl" = "xyes" ; then
5789 { echo "$as_me:$LINENO: result: yes" >&5
5790echo "${ECHO_T}yes" >&6; }
5791
5792cat >>confdefs.h <<_ACEOF
5793#define WITH_OPENSSL 1
5794_ACEOF
5795
5796else
5797 { echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
5799fi
5800
5801
5802# Check whether --with-ssh1 was given.
5803if test "${with_ssh1+set}" = set; then
5804 withval=$with_ssh1;
5805 if test "x$withval" = "xyes" ; then
5806 if test "x$openssl" = "xno" ; then
5807 { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5808echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5809 { (exit 1); exit 1; }; }
5810 fi
5811 ssh1=yes
5812 elif test "x$withval" = "xno" ; then
5813 ssh1=no
5814 else
5815 { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5
5816echo "$as_me: error: unknown --with-ssh1 argument" >&2;}
5817 { (exit 1); exit 1; }; }
5818 fi
5819
5820
5821fi
5822
5823{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5824echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5825if test "x$ssh1" = "xyes" ; then
5826 { echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6; }
5828
5829cat >>confdefs.h <<_ACEOF
5830#define WITH_SSH1 1
5831_ACEOF
5832
5833else
5834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
5836fi
5837
5838use_stack_protector=1
5839use_toolchain_hardening=1
5840
5841# Check whether --with-stackprotect was given.
5842if test "${with_stackprotect+set}" = set; then
5843 withval=$with_stackprotect;
5844 if test "x$withval" = "xno"; then
5845 use_stack_protector=0
5846 fi
5847fi
5848
5849
5850# Check whether --with-hardening was given.
5851if test "${with_hardening+set}" = set; then
5852 withval=$with_hardening;
5853 if test "x$withval" = "xno"; then
5854 use_toolchain_hardening=0
5855 fi
5856fi
5857
5858
5859# We use -Werror for the tests only so that we catch warnings like "this is
5860# on by default" for things like -fPIE.
5861{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5862echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5863saved_CFLAGS="$CFLAGS"
5864CFLAGS="$CFLAGS -Werror"
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871int main(void) { return 0; }
5872_ACEOF
5873rm -f conftest.$ac_objext
5874if { (ac_try="$ac_compile"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_compile") 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } && {
5887 test -z "$ac_c_werror_flag" ||
5888 test ! -s conftest.err
5889 } && test -s conftest.$ac_objext; then
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891echo "${ECHO_T}yes" >&6; }
5892 WERROR="-Werror"
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899 WERROR=""
5900
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904CFLAGS="$saved_CFLAGS"
5905
5906if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5907 {
5908 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5909echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5910 saved_CFLAGS="$CFLAGS"
5911 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5912 _define_flag=""
5913 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921#include <stdlib.h>
5922#include <stdio.h>
5923int main(int argc, char **argv) {
5924 /* Some math to catch -ftrapv problems in the toolchain */
5925 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5926 float l = i * 2.1;
5927 double m = l / 0.5;
5928 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5929 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5930 exit(0);
5931}
5932
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951
5952if `grep -i "unrecognized option" conftest.err >/dev/null`
5953then
5954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956 CFLAGS="$saved_CFLAGS"
5957else
5958 { echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6; }
5960 CFLAGS="$saved_CFLAGS $_define_flag"
5961fi
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
5968 CFLAGS="$saved_CFLAGS"
5969
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973}
5974 {
5975 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5976echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5977 saved_CFLAGS="$CFLAGS"
5978 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5979 _define_flag=""
5980 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987
5988#include <stdlib.h>
5989#include <stdio.h>
5990int main(int argc, char **argv) {
5991 /* Some math to catch -ftrapv problems in the toolchain */
5992 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5993 float l = i * 2.1;
5994 double m = l / 0.5;
5995 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5996 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5997 exit(0);
5998}
5999
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018
6019if `grep -i "unrecognized option" conftest.err >/dev/null`
6020then
6021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023 CFLAGS="$saved_CFLAGS"
6024else
6025 { echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6; }
6027 CFLAGS="$saved_CFLAGS $_define_flag"
6028fi
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
6035 CFLAGS="$saved_CFLAGS"
6036
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040}
6041 {
6042 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
6043echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
6044 saved_CFLAGS="$CFLAGS"
6045 CFLAGS="$CFLAGS $WERROR -Wall"
6046 _define_flag=""
6047 test "x$_define_flag" = "x" && _define_flag="-Wall"
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058 /* Some math to catch -ftrapv problems in the toolchain */
6059 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060 float l = i * 2.1;
6061 double m = l / 0.5;
6062 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064 exit(0);
6065}
6066
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085
6086if `grep -i "unrecognized option" conftest.err >/dev/null`
6087then
6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090 CFLAGS="$saved_CFLAGS"
6091else
6092 { echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6; }
6094 CFLAGS="$saved_CFLAGS $_define_flag"
6095fi
6096else
6097 echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102 CFLAGS="$saved_CFLAGS"
6103
6104fi
6105
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107}
6108 {
6109 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
6110echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
6111 saved_CFLAGS="$CFLAGS"
6112 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
6113 _define_flag=""
6114 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122#include <stdlib.h>
6123#include <stdio.h>
6124int main(int argc, char **argv) {
6125 /* Some math to catch -ftrapv problems in the toolchain */
6126 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6127 float l = i * 2.1;
6128 double m = l / 0.5;
6129 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6130 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6131 exit(0);
6132}
6133
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6152
6153if `grep -i "unrecognized option" conftest.err >/dev/null`
6154then
6155 { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157 CFLAGS="$saved_CFLAGS"
6158else
6159 { echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6; }
6161 CFLAGS="$saved_CFLAGS $_define_flag"
6162fi
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6170
6171fi
6172
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174}
6175 {
6176 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
6177echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
6178 saved_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
6180 _define_flag=""
6181 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
6182 cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h. */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h. */
6188
6189#include <stdlib.h>
6190#include <stdio.h>
6191int main(int argc, char **argv) {
6192 /* Some math to catch -ftrapv problems in the toolchain */
6193 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6194 float l = i * 2.1;
6195 double m = l / 0.5;
6196 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6197 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6198 exit(0);
6199}
6200
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219
6220if `grep -i "unrecognized option" conftest.err >/dev/null`
6221then
6222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
6224 CFLAGS="$saved_CFLAGS"
6225else
6226 { echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6; }
6228 CFLAGS="$saved_CFLAGS $_define_flag"
6229fi
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 { echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6; }
6236 CFLAGS="$saved_CFLAGS"
6237
6238fi
6239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241}
6242 {
6243 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
6244echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
6245 saved_CFLAGS="$CFLAGS"
6246 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
6247 _define_flag=""
6248 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256#include <stdlib.h>
6257#include <stdio.h>
6258int main(int argc, char **argv) {
6259 /* Some math to catch -ftrapv problems in the toolchain */
6260 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6261 float l = i * 2.1;
6262 double m = l / 0.5;
6263 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6264 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6265 exit(0);
6266}
6267
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_compile") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
6286
6287if `grep -i "unrecognized option" conftest.err >/dev/null`
6288then
6289 { echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6; }
6291 CFLAGS="$saved_CFLAGS"
6292else
6293 { echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6; }
6295 CFLAGS="$saved_CFLAGS $_define_flag"
6296fi
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303 CFLAGS="$saved_CFLAGS"
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308}
6309 {
6310 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
6311echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
6312 saved_CFLAGS="$CFLAGS"
6313 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6314 _define_flag=""
6315 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322
6323#include <stdlib.h>
6324#include <stdio.h>
6325int main(int argc, char **argv) {
6326 /* Some math to catch -ftrapv problems in the toolchain */
6327 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6328 float l = i * 2.1;
6329 double m = l / 0.5;
6330 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6331 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6332 exit(0);
6333}
6334
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353
6354if `grep -i "unrecognized option" conftest.err >/dev/null`
6355then
6356 { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358 CFLAGS="$saved_CFLAGS"
6359else
6360 { echo "$as_me:$LINENO: result: yes" >&5
6361echo "${ECHO_T}yes" >&6; }
6362 CFLAGS="$saved_CFLAGS $_define_flag"
6363fi
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 { echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6; }
6370 CFLAGS="$saved_CFLAGS"
6371
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375}
6376 {
6377 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6378echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
6379 saved_CFLAGS="$CFLAGS"
6380 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6381 _define_flag=""
6382 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6383 cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389
6390#include <stdlib.h>
6391#include <stdio.h>
6392int main(int argc, char **argv) {
6393 /* Some math to catch -ftrapv problems in the toolchain */
6394 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6395 float l = i * 2.1;
6396 double m = l / 0.5;
6397 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6398 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6399 exit(0);
6400}
6401
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420
6421if `grep -i "unrecognized option" conftest.err >/dev/null`
6422then
6423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425 CFLAGS="$saved_CFLAGS"
6426else
6427 { echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6; }
6429 CFLAGS="$saved_CFLAGS $_define_flag"
6430fi
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
6437 CFLAGS="$saved_CFLAGS"
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442}
6443 {
6444 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
6445echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
6446 saved_CFLAGS="$CFLAGS"
6447 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6448 _define_flag="-Wno-pointer-sign"
6449 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6450 cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456
6457#include <stdlib.h>
6458#include <stdio.h>
6459int main(int argc, char **argv) {
6460 /* Some math to catch -ftrapv problems in the toolchain */
6461 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6462 float l = i * 2.1;
6463 double m = l / 0.5;
6464 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6465 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6466 exit(0);
6467}
6468
6469_ACEOF
6470rm -f conftest.$ac_objext
6471if { (ac_try="$ac_compile"
6472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487
6488if `grep -i "unrecognized option" conftest.err >/dev/null`
6489then
6490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492 CFLAGS="$saved_CFLAGS"
6493else
6494 { echo "$as_me:$LINENO: result: yes" >&5
6495echo "${ECHO_T}yes" >&6; }
6496 CFLAGS="$saved_CFLAGS $_define_flag"
6497fi
6498else
6499 echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504 CFLAGS="$saved_CFLAGS"
6505
6506fi
6507
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509}
6510 {
6511 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6512echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6513 saved_CFLAGS="$CFLAGS"
6514 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6515 _define_flag="-Wno-unused-result"
6516 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523
6524#include <stdlib.h>
6525#include <stdio.h>
6526int main(int argc, char **argv) {
6527 /* Some math to catch -ftrapv problems in the toolchain */
6528 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6529 float l = i * 2.1;
6530 double m = l / 0.5;
6531 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6532 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6533 exit(0);
6534}
6535
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554
6555if `grep -i "unrecognized option" conftest.err >/dev/null`
6556then
6557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559 CFLAGS="$saved_CFLAGS"
6560else
6561 { echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6; }
6563 CFLAGS="$saved_CFLAGS $_define_flag"
6564fi
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
6571 CFLAGS="$saved_CFLAGS"
6572
6573fi
6574
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576}
6577 {
6578 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6579echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6580 saved_CFLAGS="$CFLAGS"
6581 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6582 _define_flag=""
6583 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590
6591#include <stdlib.h>
6592#include <stdio.h>
6593int main(int argc, char **argv) {
6594 /* Some math to catch -ftrapv problems in the toolchain */
6595 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6596 float l = i * 2.1;
6597 double m = l / 0.5;
6598 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6599 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6600 exit(0);
6601}
6602
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (ac_try="$ac_compile"
6606case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609esac
6610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_compile") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest.$ac_objext; then
6621
6622if `grep -i "unrecognized option" conftest.err >/dev/null`
6623then
6624 { echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626 CFLAGS="$saved_CFLAGS"
6627else
6628 { echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6; }
6630 CFLAGS="$saved_CFLAGS $_define_flag"
6631fi
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638 CFLAGS="$saved_CFLAGS"
6639
6640fi
6641
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643}
6644 {
6645 { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6646echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6647 saved_CFLAGS="$CFLAGS"
6648 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6649 _define_flag=""
6650 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657
6658#include <stdlib.h>
6659#include <stdio.h>
6660int main(int argc, char **argv) {
6661 /* Some math to catch -ftrapv problems in the toolchain */
6662 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6663 float l = i * 2.1;
6664 double m = l / 0.5;
6665 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6666 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6667 exit(0);
6668}
6669
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (ac_try="$ac_compile"
6673case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676esac
6677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688
6689if `grep -i "unrecognized option" conftest.err >/dev/null`
6690then
6691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693 CFLAGS="$saved_CFLAGS"
6694else
6695 { echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6; }
6697 CFLAGS="$saved_CFLAGS $_define_flag"
6698fi
6699else
6700 echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705 CFLAGS="$saved_CFLAGS"
6706
6707fi
6708
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710}
6711 if test "x$use_toolchain_hardening" = "x1"; then
6712 {
6713 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6714echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6715 saved_LDFLAGS="$LDFLAGS"
6716 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6717 _define_flag=""
6718 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6719 cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
6725
6726#include <stdlib.h>
6727#include <stdio.h>
6728int main(int argc, char **argv) {
6729 /* Some math to catch -ftrapv problems in the toolchain */
6730 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6731 float l = i * 2.1;
6732 double m = l / 0.5;
6733 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6734 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6735 exit(0);
6736}
6737
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
6740if { (ac_try="$ac_link"
6741case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744esac
6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_link") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && {
6753 test -z "$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 } && test -s conftest$ac_exeext &&
6756 $as_test_x conftest$ac_exeext; then
6757 { echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6; }
6759 LDFLAGS="$saved_LDFLAGS $_define_flag"
6760else
6761 echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766 LDFLAGS="$saved_LDFLAGS"
6767
6768fi
6769
6770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6771 conftest$ac_exeext conftest.$ac_ext
6772}
6773 {
6774 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6775echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6776 saved_LDFLAGS="$LDFLAGS"
6777 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6778 _define_flag=""
6779 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6780 cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
6786
6787#include <stdlib.h>
6788#include <stdio.h>
6789int main(int argc, char **argv) {
6790 /* Some math to catch -ftrapv problems in the toolchain */
6791 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6792 float l = i * 2.1;
6793 double m = l / 0.5;
6794 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6795 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6796 exit(0);
6797}
6798
6799_ACEOF
6800rm -f conftest.$ac_objext conftest$ac_exeext
6801if { (ac_try="$ac_link"
6802case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_link") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest$ac_exeext &&
6817 $as_test_x conftest$ac_exeext; then
6818 { echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6; }
6820 LDFLAGS="$saved_LDFLAGS $_define_flag"
6821else
6822 echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827 LDFLAGS="$saved_LDFLAGS"
6828
6829fi
6830
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833}
6834 {
6835 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6836echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6837 saved_LDFLAGS="$LDFLAGS"
6838 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6839 _define_flag=""
6840 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847
6848#include <stdlib.h>
6849#include <stdio.h>
6850int main(int argc, char **argv) {
6851 /* Some math to catch -ftrapv problems in the toolchain */
6852 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6853 float l = i * 2.1;
6854 double m = l / 0.5;
6855 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6856 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6857 exit(0);
6858}
6859
6860_ACEOF
6861rm -f conftest.$ac_objext conftest$ac_exeext
6862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866esac
6867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest$ac_exeext &&
6878 $as_test_x conftest$ac_exeext; then
6879 { echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6; }
6881 LDFLAGS="$saved_LDFLAGS $_define_flag"
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888 LDFLAGS="$saved_LDFLAGS"
6889
6890fi
6891
6892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6893 conftest$ac_exeext conftest.$ac_ext
6894}
6895 # NB. -ftrapv expects certain support functions to be present in
6896 # the compiler library (libgcc or similar) to detect integer operations
6897 # that can overflow. We must check that the result of enabling it
6898 # actually links. The test program compiled/linked includes a number
6899 # of integer operations that should exercise this.
6900 {
6901 { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6902echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6903 saved_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS $WERROR -ftrapv"
6905 _define_flag=""
6906 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6907 cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h. */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h. */
6913
6914#include <stdlib.h>
6915#include <stdio.h>
6916int main(int argc, char **argv) {
6917 /* Some math to catch -ftrapv problems in the toolchain */
6918 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6919 float l = i * 2.1;
6920 double m = l / 0.5;
6921 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6922 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6923 exit(0);
6924}
6925
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_link") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest$ac_exeext &&
6944 $as_test_x conftest$ac_exeext; then
6945
6946if `grep -i "unrecognized option" conftest.err >/dev/null`
6947then
6948 { echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950 CFLAGS="$saved_CFLAGS"
6951else
6952 { echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6; }
6954 CFLAGS="$saved_CFLAGS $_define_flag"
6955fi
6956else
6957 echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962 CFLAGS="$saved_CFLAGS"
6963
6964fi
6965
6966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6967 conftest$ac_exeext conftest.$ac_ext
6968}
6969 fi
6970 { echo "$as_me:$LINENO: checking gcc version" >&5
6971echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6972 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6973 case $GCC_VER in
6974 1.*) no_attrib_nonnull=1 ;;
6975 2.8* | 2.9*)
6976 no_attrib_nonnull=1
6977 ;;
6978 2.*) no_attrib_nonnull=1 ;;
6979 *) ;;
6980 esac
6981 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
6982echo "${ECHO_T}$GCC_VER" >&6; }
6983
6984 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6985echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6986 saved_CFLAGS="$CFLAGS"
6987 CFLAGS="$CFLAGS -fno-builtin-memset"
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994 #include <string.h>
6995int
6996main ()
6997{
6998 char b[10]; memset(b, 0, sizeof(b));
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 { echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6; }
7023else
7024 echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029 CFLAGS="$saved_CFLAGS"
7030
7031fi
7032
7033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7034 conftest$ac_exeext conftest.$ac_ext
7035
7036 # -fstack-protector-all doesn't always work for some GCC versions
7037 # and/or platforms, so we test if we can. If it's not supported
7038 # on a given platform gcc will emit a warning so we use -Werror.
7039 if test "x$use_stack_protector" = "x1"; then
7040 for t in -fstack-protector-strong -fstack-protector-all \
7041 -fstack-protector; do
7042 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
7043echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
7044 saved_CFLAGS="$CFLAGS"
7045 saved_LDFLAGS="$LDFLAGS"
7046 CFLAGS="$CFLAGS $t -Werror"
7047 LDFLAGS="$LDFLAGS $t -Werror"
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054 #include <stdio.h>
7055int
7056main ()
7057{
7058
7059 char x[256];
7060 snprintf(x, sizeof(x), "XXX");
7061
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
7067if { (ac_try="$ac_link"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7084 { echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6; }
7086 CFLAGS="$saved_CFLAGS $t"
7087 LDFLAGS="$saved_LDFLAGS $t"
7088 { echo "$as_me:$LINENO: checking if $t works" >&5
7089echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
7090 if test "$cross_compiling" = yes; then
7091 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
7092echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
7093 break
7094
7095else
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102 #include <stdio.h>
7103int
7104main ()
7105{
7106
7107 char x[256];
7108 snprintf(x, sizeof(x), "XXX");
7109
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest$ac_exeext
7115if { (ac_try="$ac_link"
7116case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_link") 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125 { (case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_try") 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 { echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6; }
7136 break
7137else
7138 echo "$as_me: program exited with status $ac_status" >&5
7139echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142( exit $ac_status )
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7147fi
7148
7149
7150
7151else
7152 echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157
7158fi
7159
7160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161 conftest$ac_exeext conftest.$ac_ext
7162 CFLAGS="$saved_CFLAGS"
7163 LDFLAGS="$saved_LDFLAGS"
7164 done
7165 fi
7166
7167 if test -z "$have_llong_max"; then
7168 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
7169 unset ac_cv_have_decl_LLONG_MAX
7170 saved_CFLAGS="$CFLAGS"
7171 CFLAGS="$CFLAGS -std=gnu99"
7172 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7173echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7174if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183#include <limits.h>
7184
7185
7186int
7187main ()
7188{
7189#ifndef LLONG_MAX
7190 (void) LLONG_MAX;
7191#endif
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext
7198if { (ac_try="$ac_compile"
7199case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 ac_cv_have_decl_LLONG_MAX=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_have_decl_LLONG_MAX=no
7220fi
7221
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi
7224{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7225echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7226if test $ac_cv_have_decl_LLONG_MAX = yes; then
7227 have_llong_max=1
7228else
7229 CFLAGS="$saved_CFLAGS"
7230fi
7231
7232 fi
7233fi
7234
7235{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
7236echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243
7244#include <stdlib.h>
7245__attribute__((__unused__)) static void foo(void){return;}
7246int
7247main ()
7248{
7249 exit(0);
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (ac_try="$ac_compile"
7256case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 { echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6; }
7273else
7274 echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7282_ACEOF
7283
7284
7285fi
7286
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289if test "x$no_attrib_nonnull" != "x1" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_ATTRIBUTE__NONNULL__ 1
7293_ACEOF
7294
7295fi
7296
7297
7298# Check whether --with-rpath was given.
7299if test "${with_rpath+set}" = set; then
7300 withval=$with_rpath;
7301 if test "x$withval" = "xno" ; then
7302 need_dash_r=""
7303 fi
7304 if test "x$withval" = "xyes" ; then
7305 need_dash_r=1
7306 fi
7307
7308
7309fi
7310
7311
7312# Allow user to specify flags
7313
7314# Check whether --with-cflags was given.
7315if test "${with_cflags+set}" = set; then
7316 withval=$with_cflags;
7317 if test -n "$withval" && test "x$withval" != "xno" && \
7318 test "x${withval}" != "xyes"; then
7319 CFLAGS="$CFLAGS $withval"
7320 fi
7321
7322
7323fi
7324
7325
7326# Check whether --with-cppflags was given.
7327if test "${with_cppflags+set}" = set; then
7328 withval=$with_cppflags;
7329 if test -n "$withval" && test "x$withval" != "xno" && \
7330 test "x${withval}" != "xyes"; then
7331 CPPFLAGS="$CPPFLAGS $withval"
7332 fi
7333
7334
7335fi
7336
7337
7338# Check whether --with-ldflags was given.
7339if test "${with_ldflags+set}" = set; then
7340 withval=$with_ldflags;
7341 if test -n "$withval" && test "x$withval" != "xno" && \
7342 test "x${withval}" != "xyes"; then
7343 LDFLAGS="$LDFLAGS $withval"
7344 fi
7345
7346
7347fi
7348
7349
7350# Check whether --with-libs was given.
7351if test "${with_libs+set}" = set; then
7352 withval=$with_libs;
7353 if test -n "$withval" && test "x$withval" != "xno" && \
7354 test "x${withval}" != "xyes"; then
7355 LIBS="$LIBS $withval"
7356 fi
7357
7358
7359fi
7360
7361
7362# Check whether --with-Werror was given.
7363if test "${with_Werror+set}" = set; then
7364 withval=$with_Werror;
7365 if test -n "$withval" && test "x$withval" != "xno"; then
7366 werror_flags="-Werror"
7367 if test "x${withval}" != "xyes"; then
7368 werror_flags="$withval"
7369 fi
7370 fi
7371
7372
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443for ac_header in \
7444 blf.h \
7445 bstring.h \
7446 crypt.h \
7447 crypto/sha2.h \
7448 dirent.h \
7449 endian.h \
7450 elf.h \
7451 features.h \
7452 fcntl.h \
7453 floatingpoint.h \
7454 getopt.h \
7455 glob.h \
7456 ia.h \
7457 iaf.h \
7458 inttypes.h \
7459 limits.h \
7460 locale.h \
7461 login.h \
7462 maillock.h \
7463 ndir.h \
7464 net/if_tun.h \
7465 netdb.h \
7466 netgroup.h \
7467 pam/pam_appl.h \
7468 paths.h \
7469 poll.h \
7470 pty.h \
7471 readpassphrase.h \
7472 rpc/types.h \
7473 security/pam_appl.h \
7474 sha2.h \
7475 shadow.h \
7476 stddef.h \
7477 stdint.h \
7478 string.h \
7479 strings.h \
7480 sys/audit.h \
7481 sys/bitypes.h \
7482 sys/bsdtty.h \
7483 sys/capability.h \
7484 sys/cdefs.h \
7485 sys/dir.h \
7486 sys/mman.h \
7487 sys/ndir.h \
7488 sys/poll.h \
7489 sys/prctl.h \
7490 sys/pstat.h \
7491 sys/select.h \
7492 sys/stat.h \
7493 sys/stream.h \
7494 sys/stropts.h \
7495 sys/strtio.h \
7496 sys/statvfs.h \
7497 sys/sysmacros.h \
7498 sys/time.h \
7499 sys/timers.h \
7500 time.h \
7501 tmpdir.h \
7502 ttyent.h \
7503 ucred.h \
7504 unistd.h \
7505 usersec.h \
7506 util.h \
7507 utime.h \
7508 utmp.h \
7509 utmpx.h \
7510 vis.h \
7511
7512do
7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519fi
7520ac_res=`eval echo '${'$as_ac_Header'}'`
7521 { echo "$as_me:$LINENO: result: $ac_res" >&5
7522echo "${ECHO_T}$ac_res" >&6; }
7523else
7524 # Is the header compilable?
7525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7527cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
7533$ac_includes_default
7534#include <$ac_header>
7535_ACEOF
7536rm -f conftest.$ac_objext
7537if { (ac_try="$ac_compile"
7538case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541esac
7542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_header_compiler=yes
7554else
7555 echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_header_compiler=no
7559fi
7560
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563echo "${ECHO_T}$ac_header_compiler" >&6; }
7564
7565# Is the header present?
7566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <$ac_header>
7575_ACEOF
7576if { (ac_try="$ac_cpp conftest.$ac_ext"
7577case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } >/dev/null && {
7589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 }; then
7592 ac_header_preproc=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_header_preproc=no
7598fi
7599
7600rm -f conftest.err conftest.$ac_ext
7601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7602echo "${ECHO_T}$ac_header_preproc" >&6; }
7603
7604# So? What about this header?
7605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7606 yes:no: )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7611 ac_header_preproc=yes
7612 ;;
7613 no:yes:* )
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7626 ( cat <<\_ASBOX
7627## ------------------------------------------- ##
7628## Report this to openssh-unix-dev@mindrot.org ##
7629## ------------------------------------------- ##
7630_ASBOX
7631 ) | sed "s/^/$as_me: WARNING: /" >&2
7632 ;;
7633esac
7634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 eval "$as_ac_Header=\$ac_header_preproc"
7640fi
7641ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643echo "${ECHO_T}$ac_res" >&6; }
7644
7645fi
7646if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652
7653done
7654
7655
7656# lastlog.h requires sys/time.h to be included first on Solaris
7657
7658for ac_header in lastlog.h
7659do
7660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672
7673#ifdef HAVE_SYS_TIME_H
7674# include <sys/time.h>
7675#endif
7676
7677
7678#include <$ac_header>
7679_ACEOF
7680rm -f conftest.$ac_objext
7681if { (ac_try="$ac_compile"
7682case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 eval "$as_ac_Header=yes"
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 eval "$as_ac_Header=no"
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706fi
7707ac_res=`eval echo '${'$as_ac_Header'}'`
7708 { echo "$as_me:$LINENO: result: $ac_res" >&5
7709echo "${ECHO_T}$ac_res" >&6; }
7710if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720# sys/ptms.h requires sys/stream.h to be included first on Solaris
7721
7722for ac_header in sys/ptms.h
7723do
7724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737#ifdef HAVE_SYS_STREAM_H
7738# include <sys/stream.h>
7739#endif
7740
7741
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7761 eval "$as_ac_Header=yes"
7762else
7763 echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 eval "$as_ac_Header=no"
7767fi
7768
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771ac_res=`eval echo '${'$as_ac_Header'}'`
7772 { echo "$as_me:$LINENO: result: $ac_res" >&5
7773echo "${ECHO_T}$ac_res" >&6; }
7774if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7777_ACEOF
7778
7779fi
7780
7781done
7782
7783
7784# login_cap.h requires sys/types.h on NetBSD
7785
7786for ac_header in login_cap.h
7787do
7788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800
7801#include <sys/types.h>
7802
7803
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 eval "$as_ac_Header=yes"
7824else
7825 echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 eval "$as_ac_Header=no"
7829fi
7830
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833ac_res=`eval echo '${'$as_ac_Header'}'`
7834 { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
7836if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845
7846# older BSDs need sys/param.h before sys/mount.h
7847
7848for ac_header in sys/mount.h
7849do
7850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863#include <sys/param.h>
7864
7865
7866#include <$ac_header>
7867_ACEOF
7868rm -f conftest.$ac_objext
7869if { (ac_try="$ac_compile"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 eval "$as_ac_Header=yes"
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 eval "$as_ac_Header=no"
7891fi
7892
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895ac_res=`eval echo '${'$as_ac_Header'}'`
7896 { echo "$as_me:$LINENO: result: $ac_res" >&5
7897echo "${ECHO_T}$ac_res" >&6; }
7898if test `eval echo '${'$as_ac_Header'}'` = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901_ACEOF
7902
7903fi
7904
7905done
7906
7907
7908# Android requires sys/socket.h to be included before sys/un.h
7909
7910for ac_header in sys/un.h
7911do
7912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924
7925#include <sys/types.h>
7926#include <sys/socket.h>
7927
7928
7929#include <$ac_header>
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 eval "$as_ac_Header=yes"
7949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 eval "$as_ac_Header=no"
7954fi
7955
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958ac_res=`eval echo '${'$as_ac_Header'}'`
7959 { echo "$as_me:$LINENO: result: $ac_res" >&5
7960echo "${ECHO_T}$ac_res" >&6; }
7961if test `eval echo '${'$as_ac_Header'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964_ACEOF
7965
7966fi
7967
7968done
7969
7970
7971# Messages for features tested for in target-specific section
7972SIA_MSG="no"
7973SPC_MSG="no"
7974SP_MSG="no"
7975
7976# Check for some target-specific stuff
7977case "$host" in
7978*-*-aix*)
7979 # Some versions of VAC won't allow macro redefinitions at
7980 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7981 # particularly with older versions of vac or xlc.
7982 # It also throws errors about null macro argments, but these are
7983 # not fatal.
7984 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
7985echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992
7993#define testmacro foo
7994#define testmacro bar
7995int
7996main ()
7997{
7998 exit(0);
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 { echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6; }
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 { echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6; }
8028 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
8029 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
8030 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8031 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8032
8033
8034fi
8035
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037
8038 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
8039echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
8040 if (test -z "$blibpath"); then
8041 blibpath="/usr/lib:/lib"
8042 fi
8043 saved_LDFLAGS="$LDFLAGS"
8044 if test "$GCC" = "yes"; then
8045 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
8046 else
8047 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
8048 fi
8049 for tryflags in $flags ;do
8050 if (test -z "$blibflags"); then
8051 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
8052 cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_link") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest$ac_exeext &&
8084 $as_test_x conftest$ac_exeext; then
8085 blibflags=$tryflags
8086else
8087 echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091fi
8092
8093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8094 conftest$ac_exeext conftest.$ac_ext
8095 fi
8096 done
8097 if (test -z "$blibflags"); then
8098 { echo "$as_me:$LINENO: result: not found" >&5
8099echo "${ECHO_T}not found" >&6; }
8100 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8101echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8102 { (exit 1); exit 1; }; }
8103 else
8104 { echo "$as_me:$LINENO: result: $blibflags" >&5
8105echo "${ECHO_T}$blibflags" >&6; }
8106 fi
8107 LDFLAGS="$saved_LDFLAGS"
8108 { echo "$as_me:$LINENO: checking for authenticate" >&5
8109echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8110if test "${ac_cv_func_authenticate+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121#define authenticate innocuous_authenticate
8122
8123/* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char authenticate (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8127
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133
8134#undef authenticate
8135
8136/* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8139#ifdef __cplusplus
8140extern "C"
8141#endif
8142char authenticate ();
8143/* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */
8146#if defined __stub_authenticate || defined __stub___authenticate
8147choke me
8148#endif
8149
8150int
8151main ()
8152{
8153return authenticate ();
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (ac_try="$ac_link"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 ac_cv_func_authenticate=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_func_authenticate=no
8182fi
8183
8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186fi
8187{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8188echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8189if test $ac_cv_func_authenticate = yes; then
8190
8191cat >>confdefs.h <<\_ACEOF
8192#define WITH_AIXAUTHENTICATE 1
8193_ACEOF
8194
8195else
8196 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
8197echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
8198if test "${ac_cv_lib_s_authenticate+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_check_lib_save_LIBS=$LIBS
8202LIBS="-ls $LIBS"
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
8209
8210/* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216char authenticate ();
8217int
8218main ()
8219{
8220return authenticate ();
8221 ;
8222 return 0;
8223}
8224_ACEOF
8225rm -f conftest.$ac_objext conftest$ac_exeext
8226if { (ac_try="$ac_link"
8227case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_link") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest$ac_exeext &&
8242 $as_test_x conftest$ac_exeext; then
8243 ac_cv_lib_s_authenticate=yes
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_lib_s_authenticate=no
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252 conftest$ac_exeext conftest.$ac_ext
8253LIBS=$ac_check_lib_save_LIBS
8254fi
8255{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
8256echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
8257if test $ac_cv_lib_s_authenticate = yes; then
8258 cat >>confdefs.h <<\_ACEOF
8259#define WITH_AIXAUTHENTICATE 1
8260_ACEOF
8261
8262 LIBS="$LIBS -ls"
8263
8264fi
8265
8266
8267fi
8268
8269 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
8270echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
8271if test "${ac_cv_have_decl_authenticate+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280#include <usersec.h>
8281
8282int
8283main ()
8284{
8285#ifndef authenticate
8286 (void) authenticate;
8287#endif
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_have_decl_authenticate=yes
8311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_have_decl_authenticate=no
8316fi
8317
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8321echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8322if test $ac_cv_have_decl_authenticate = yes; then
8323
8324cat >>confdefs.h <<_ACEOF
8325#define HAVE_DECL_AUTHENTICATE 1
8326_ACEOF
8327
8328
8329else
8330 cat >>confdefs.h <<_ACEOF
8331#define HAVE_DECL_AUTHENTICATE 0
8332_ACEOF
8333
8334
8335fi
8336{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8337echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8338if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341 cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347#include <usersec.h>
8348
8349int
8350main ()
8351{
8352#ifndef loginrestrictions
8353 (void) loginrestrictions;
8354#endif
8355
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
8361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_have_decl_loginrestrictions=yes
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_have_decl_loginrestrictions=no
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8388echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8389if test $ac_cv_have_decl_loginrestrictions = yes; then
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_LOGINRESTRICTIONS 1
8393_ACEOF
8394
8395
8396else
8397 cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_LOGINRESTRICTIONS 0
8399_ACEOF
8400
8401
8402fi
8403{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8404echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8405if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <usersec.h>
8415
8416int
8417main ()
8418{
8419#ifndef loginsuccess
8420 (void) loginsuccess;
8421#endif
8422
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (ac_try="$ac_compile"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_have_decl_loginsuccess=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_have_decl_loginsuccess=no
8450fi
8451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8455echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8456if test $ac_cv_have_decl_loginsuccess = yes; then
8457
8458cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_LOGINSUCCESS 1
8460_ACEOF
8461
8462
8463else
8464 cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_LOGINSUCCESS 0
8466_ACEOF
8467
8468
8469fi
8470{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8471echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8472if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <usersec.h>
8482
8483int
8484main ()
8485{
8486#ifndef passwdexpired
8487 (void) passwdexpired;
8488#endif
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_have_decl_passwdexpired=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_have_decl_passwdexpired=no
8517fi
8518
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8522echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8523if test $ac_cv_have_decl_passwdexpired = yes; then
8524
8525cat >>confdefs.h <<_ACEOF
8526#define HAVE_DECL_PASSWDEXPIRED 1
8527_ACEOF
8528
8529
8530else
8531 cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_PASSWDEXPIRED 0
8533_ACEOF
8534
8535
8536fi
8537{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8538echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8539if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542 cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548#include <usersec.h>
8549
8550int
8551main ()
8552{
8553#ifndef setauthdb
8554 (void) setauthdb;
8555#endif
8556
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext
8562if { (ac_try="$ac_compile"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_have_decl_setauthdb=yes
8579else
8580 echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_have_decl_setauthdb=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8589echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8590if test $ac_cv_have_decl_setauthdb = yes; then
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_DECL_SETAUTHDB 1
8594_ACEOF
8595
8596
8597else
8598 cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_SETAUTHDB 0
8600_ACEOF
8601
8602
8603fi
8604
8605
8606 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8607echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8608if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#include <usersec.h>
8618
8619
8620int
8621main ()
8622{
8623#ifndef loginfailed
8624 (void) loginfailed;
8625#endif
8626
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (ac_try="$ac_compile"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_have_decl_loginfailed=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_cv_have_decl_loginfailed=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657fi
8658{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8659echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8660if test $ac_cv_have_decl_loginfailed = yes; then
8661
8662cat >>confdefs.h <<_ACEOF
8663#define HAVE_DECL_LOGINFAILED 1
8664_ACEOF
8665
8666{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
8667echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674 #include <usersec.h>
8675int
8676main ()
8677{
8678 (void)loginfailed("user","host","tty",0);
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (ac_try="$ac_compile"
8685case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 { echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6; }
8702
8703cat >>confdefs.h <<\_ACEOF
8704#define AIX_LOGINFAILED_4ARG 1
8705_ACEOF
8706
8707else
8708 echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
8713
8714fi
8715
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717else
8718 cat >>confdefs.h <<_ACEOF
8719#define HAVE_DECL_LOGINFAILED 0
8720_ACEOF
8721
8722
8723fi
8724
8725
8726
8727
8728for ac_func in getgrset setauthdb
8729do
8730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736 cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8744#define $ac_func innocuous_$ac_func
8745
8746/* System header to define __stub macros and hopefully few prototypes,
8747 which can conflict with char $ac_func (); below.
8748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749 <limits.h> exists even on freestanding compilers. */
8750
8751#ifdef __STDC__
8752# include <limits.h>
8753#else
8754# include <assert.h>
8755#endif
8756
8757#undef $ac_func
8758
8759/* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762#ifdef __cplusplus
8763extern "C"
8764#endif
8765char $ac_func ();
8766/* The GNU C library defines this for functions which it implements
8767 to always fail with ENOSYS. Some functions are actually named
8768 something starting with __ and the normal name is an alias. */
8769#if defined __stub_$ac_func || defined __stub___$ac_func
8770choke me
8771#endif
8772
8773int
8774main ()
8775{
8776return $ac_func ();
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
8782if { (ac_try="$ac_link"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_link") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest$ac_exeext &&
8798 $as_test_x conftest$ac_exeext; then
8799 eval "$as_ac_var=yes"
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 eval "$as_ac_var=no"
8805fi
8806
8807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8808 conftest$ac_exeext conftest.$ac_ext
8809fi
8810ac_res=`eval echo '${'$as_ac_var'}'`
8811 { echo "$as_me:$LINENO: result: $ac_res" >&5
8812echo "${ECHO_T}$ac_res" >&6; }
8813if test `eval echo '${'$as_ac_var'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819done
8820
8821 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8822echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8823if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826 cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832 #include <limits.h>
8833 #include <fcntl.h>
8834
8835
8836int
8837main ()
8838{
8839#ifndef F_CLOSEM
8840 (void) F_CLOSEM;
8841#endif
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.$ac_objext; then
8864 ac_cv_have_decl_F_CLOSEM=yes
8865else
8866 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_have_decl_F_CLOSEM=no
8870fi
8871
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8875echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8876if test $ac_cv_have_decl_F_CLOSEM = yes; then
8877
8878cat >>confdefs.h <<\_ACEOF
8879#define HAVE_FCNTL_CLOSEM 1
8880_ACEOF
8881
8882fi
8883
8884 check_for_aix_broken_getaddrinfo=1
8885
8886cat >>confdefs.h <<\_ACEOF
8887#define BROKEN_REALPATH 1
8888_ACEOF
8889
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define SETEUID_BREAKS_SETUID 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define BROKEN_SETREUID 1
8898_ACEOF
8899
8900
8901cat >>confdefs.h <<\_ACEOF
8902#define BROKEN_SETREGID 1
8903_ACEOF
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define DISABLE_LASTLOG 1
8908_ACEOF
8909
8910
8911cat >>confdefs.h <<\_ACEOF
8912#define LOGIN_NEEDS_UTMPX 1
8913_ACEOF
8914
8915
8916cat >>confdefs.h <<\_ACEOF
8917#define SPT_TYPE SPT_REUSEARGV
8918_ACEOF
8919
8920
8921cat >>confdefs.h <<\_ACEOF
8922#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8923_ACEOF
8924
8925
8926cat >>confdefs.h <<\_ACEOF
8927#define PTY_ZEROREAD 1
8928_ACEOF
8929
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define PLATFORM_SYS_DIR_UID 2
8933_ACEOF
8934
8935 ;;
8936*-*-android*)
8937
8938cat >>confdefs.h <<\_ACEOF
8939#define DISABLE_UTMP 1
8940_ACEOF
8941
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define DISABLE_WTMP 1
8945_ACEOF
8946
8947 ;;
8948*-*-cygwin*)
8949 check_for_libcrypt_later=1
8950 LIBS="$LIBS /usr/lib/textreadmode.o"
8951
8952cat >>confdefs.h <<\_ACEOF
8953#define HAVE_CYGWIN 1
8954_ACEOF
8955
8956
8957cat >>confdefs.h <<\_ACEOF
8958#define USE_PIPES 1
8959_ACEOF
8960
8961
8962cat >>confdefs.h <<\_ACEOF
8963#define DISABLE_SHADOW 1
8964_ACEOF
8965
8966
8967cat >>confdefs.h <<\_ACEOF
8968#define NO_X11_UNIX_SOCKETS 1
8969_ACEOF
8970
8971
8972cat >>confdefs.h <<\_ACEOF
8973#define NO_IPPORT_RESERVED_CONCEPT 1
8974_ACEOF
8975
8976
8977cat >>confdefs.h <<\_ACEOF
8978#define DISABLE_FD_PASSING 1
8979_ACEOF
8980
8981
8982cat >>confdefs.h <<\_ACEOF
8983#define SSH_IOBUFSZ 65535
8984_ACEOF
8985
8986
8987cat >>confdefs.h <<\_ACEOF
8988#define FILESYSTEM_NO_BACKSLASH 1
8989_ACEOF
8990
8991 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
8992 # reasons which cause compile warnings, so we disable those warnings.
8993 {
8994 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
8995echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
8996 saved_CFLAGS="$CFLAGS"
8997 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
8998 _define_flag=""
8999 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
9000 cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h. */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006
9007#include <stdlib.h>
9008#include <stdio.h>
9009int main(int argc, char **argv) {
9010 /* Some math to catch -ftrapv problems in the toolchain */
9011 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
9012 float l = i * 2.1;
9013 double m = l / 0.5;
9014 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
9015 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
9016 exit(0);
9017}
9018
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (ac_try="$ac_compile"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037
9038if `grep -i "unrecognized option" conftest.err >/dev/null`
9039then
9040 { echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6; }
9042 CFLAGS="$saved_CFLAGS"
9043else
9044 { echo "$as_me:$LINENO: result: yes" >&5
9045echo "${ECHO_T}yes" >&6; }
9046 CFLAGS="$saved_CFLAGS $_define_flag"
9047fi
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 { echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6; }
9054 CFLAGS="$saved_CFLAGS"
9055
9056fi
9057
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059}
9060 ;;
9061*-*-dgux*)
9062
9063cat >>confdefs.h <<\_ACEOF
9064#define IP_TOS_IS_BROKEN 1
9065_ACEOF
9066
9067 cat >>confdefs.h <<\_ACEOF
9068#define SETEUID_BREAKS_SETUID 1
9069_ACEOF
9070
9071 cat >>confdefs.h <<\_ACEOF
9072#define BROKEN_SETREUID 1
9073_ACEOF
9074
9075 cat >>confdefs.h <<\_ACEOF
9076#define BROKEN_SETREGID 1
9077_ACEOF
9078
9079 ;;
9080*-*-darwin*)
9081 use_pie=auto
9082 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
9083echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
9084 if test "$cross_compiling" = yes; then
9085 { echo "$as_me:$LINENO: result: assume it is working" >&5
9086echo "${ECHO_T}assume it is working" >&6; }
9087else
9088 cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
9094 #include <mach-o/dyld.h>
9095main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
9096 exit(0);
9097 else
9098 exit(1);
9099}
9100
9101_ACEOF
9102rm -f conftest$ac_exeext
9103if { (ac_try="$ac_link"
9104case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107esac
9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_link") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 { echo "$as_me:$LINENO: result: working" >&5
9123echo "${ECHO_T}working" >&6; }
9124else
9125 echo "$as_me: program exited with status $ac_status" >&5
9126echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129( exit $ac_status )
9130{ echo "$as_me:$LINENO: result: buggy" >&5
9131echo "${ECHO_T}buggy" >&6; }
9132
9133cat >>confdefs.h <<\_ACEOF
9134#define BROKEN_GETADDRINFO 1
9135_ACEOF
9136
9137
9138fi
9139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9140fi
9141
9142
9143 cat >>confdefs.h <<\_ACEOF
9144#define SETEUID_BREAKS_SETUID 1
9145_ACEOF
9146
9147 cat >>confdefs.h <<\_ACEOF
9148#define BROKEN_SETREUID 1
9149_ACEOF
9150
9151 cat >>confdefs.h <<\_ACEOF
9152#define BROKEN_SETREGID 1
9153_ACEOF
9154
9155
9156cat >>confdefs.h <<\_ACEOF
9157#define BROKEN_GLOB 1
9158_ACEOF
9159
9160
9161cat >>confdefs.h <<_ACEOF
9162#define BIND_8_COMPAT 1
9163_ACEOF
9164
9165
9166cat >>confdefs.h <<\_ACEOF
9167#define SSH_TUN_FREEBSD 1
9168_ACEOF
9169
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define SSH_TUN_COMPAT_AF 1
9173_ACEOF
9174
9175
9176cat >>confdefs.h <<\_ACEOF
9177#define SSH_TUN_PREPEND_AF 1
9178_ACEOF
9179
9180
9181 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
9182echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9183if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192$ac_includes_default
9193int
9194main ()
9195{
9196#ifndef AU_IPv4
9197 (void) AU_IPv4;
9198#endif
9199
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_cv_have_decl_AU_IPv4=yes
9222else
9223 echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_cv_have_decl_AU_IPv4=no
9227fi
9228
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9232echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9233if test $ac_cv_have_decl_AU_IPv4 = yes; then
9234 :
9235else
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define AU_IPv4 0
9239_ACEOF
9240
9241 #include <bsm/audit.h>
9242
9243cat >>confdefs.h <<\_ACEOF
9244#define LASTLOG_WRITE_PUTUTXLINE 1
9245_ACEOF
9246
9247
9248fi
9249
9250
9251cat >>confdefs.h <<\_ACEOF
9252#define SPT_TYPE SPT_REUSEARGV
9253_ACEOF
9254
9255
9256for ac_func in sandbox_init
9257do
9258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272#define $ac_func innocuous_$ac_func
9273
9274/* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9278
9279#ifdef __STDC__
9280# include <limits.h>
9281#else
9282# include <assert.h>
9283#endif
9284
9285#undef $ac_func
9286
9287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9290#ifdef __cplusplus
9291extern "C"
9292#endif
9293char $ac_func ();
9294/* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297#if defined __stub_$ac_func || defined __stub___$ac_func
9298choke me
9299#endif
9300
9301int
9302main ()
9303{
9304return $ac_func ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314esac
9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest$ac_exeext &&
9326 $as_test_x conftest$ac_exeext; then
9327 eval "$as_ac_var=yes"
9328else
9329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 eval "$as_ac_var=no"
9333fi
9334
9335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336 conftest$ac_exeext conftest.$ac_ext
9337fi
9338ac_res=`eval echo '${'$as_ac_var'}'`
9339 { echo "$as_me:$LINENO: result: $ac_res" >&5
9340echo "${ECHO_T}$ac_res" >&6; }
9341if test `eval echo '${'$as_ac_var'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344_ACEOF
9345
9346fi
9347done
9348
9349
9350for ac_header in sandbox.h
9351do
9352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358fi
9359ac_res=`eval echo '${'$as_ac_Header'}'`
9360 { echo "$as_me:$LINENO: result: $ac_res" >&5
9361echo "${ECHO_T}$ac_res" >&6; }
9362else
9363 # Is the header compilable?
9364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9366cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
9372$ac_includes_default
9373#include <$ac_header>
9374_ACEOF
9375rm -f conftest.$ac_objext
9376if { (ac_try="$ac_compile"
9377case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380esac
9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
9392 ac_header_compiler=yes
9393else
9394 echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 ac_header_compiler=no
9398fi
9399
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402echo "${ECHO_T}$ac_header_compiler" >&6; }
9403
9404# Is the header present?
9405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9407cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413#include <$ac_header>
9414_ACEOF
9415if { (ac_try="$ac_cpp conftest.$ac_ext"
9416case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } >/dev/null && {
9428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 }; then
9431 ac_header_preproc=yes
9432else
9433 echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 ac_header_preproc=no
9437fi
9438
9439rm -f conftest.err conftest.$ac_ext
9440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441echo "${ECHO_T}$ac_header_preproc" >&6; }
9442
9443# So? What about this header?
9444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445 yes:no: )
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450 ac_header_preproc=yes
9451 ;;
9452 no:yes:* )
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465 ( cat <<\_ASBOX
9466## ------------------------------------------- ##
9467## Report this to openssh-unix-dev@mindrot.org ##
9468## ------------------------------------------- ##
9469_ASBOX
9470 ) | sed "s/^/$as_me: WARNING: /" >&2
9471 ;;
9472esac
9473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 eval "$as_ac_Header=\$ac_header_preproc"
9479fi
9480ac_res=`eval echo '${'$as_ac_Header'}'`
9481 { echo "$as_me:$LINENO: result: $ac_res" >&5
9482echo "${ECHO_T}$ac_res" >&6; }
9483
9484fi
9485if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488_ACEOF
9489
9490fi
9491
9492done
9493
9494 ;;
9495*-*-dragonfly*)
9496 SSHDLIBS="$SSHDLIBS -lcrypt"
9497 TEST_MALLOC_OPTIONS="AFGJPRX"
9498 ;;
9499*-*-haiku*)
9500 LIBS="$LIBS -lbsd "
9501
9502{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
9503echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
9504if test "${ac_cv_lib_network_socket+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 ac_check_lib_save_LIBS=$LIBS
9508LIBS="-lnetwork $LIBS"
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515
9516/* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522char socket ();
9523int
9524main ()
9525{
9526return socket ();
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext conftest$ac_exeext
9532if { (ac_try="$ac_link"
9533case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest$ac_exeext &&
9548 $as_test_x conftest$ac_exeext; then
9549 ac_cv_lib_network_socket=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_lib_network_socket=no
9555fi
9556
9557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9559LIBS=$ac_check_lib_save_LIBS
9560fi
9561{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
9562echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
9563if test $ac_cv_lib_network_socket = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565#define HAVE_LIBNETWORK 1
9566_ACEOF
9567
9568 LIBS="-lnetwork $LIBS"
9569
9570fi
9571
9572 cat >>confdefs.h <<\_ACEOF
9573#define HAVE_U_INT64_T 1
9574_ACEOF
9575
9576 MANTYPE=man
9577 ;;
9578*-*-hpux*)
9579 # first we define all of the options common to all HP-UX releases
9580 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9581 IPADDR_IN_DISPLAY=yes
9582 cat >>confdefs.h <<\_ACEOF
9583#define USE_PIPES 1
9584_ACEOF
9585
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define LOGIN_NO_ENDOPT 1
9589_ACEOF
9590
9591 cat >>confdefs.h <<\_ACEOF
9592#define LOGIN_NEEDS_UTMPX 1
9593_ACEOF
9594
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define LOCKED_PASSWD_STRING "*"
9598_ACEOF
9599
9600 cat >>confdefs.h <<\_ACEOF
9601#define SPT_TYPE SPT_PSTAT
9602_ACEOF
9603
9604
9605cat >>confdefs.h <<\_ACEOF
9606#define PLATFORM_SYS_DIR_UID 2
9607_ACEOF
9608
9609 maildir="/var/mail"
9610 LIBS="$LIBS -lsec"
9611
9612{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
9613echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
9614if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 ac_check_lib_save_LIBS=$LIBS
9618LIBS="-lxnet $LIBS"
9619cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h. */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h. */
9625
9626/* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
9629#ifdef __cplusplus
9630extern "C"
9631#endif
9632char t_error ();
9633int
9634main ()
9635{
9636return t_error ();
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext &&
9658 $as_test_x conftest$ac_exeext; then
9659 ac_cv_lib_xnet_t_error=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_xnet_t_error=no
9665fi
9666
9667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668 conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
9672echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
9673if test $ac_cv_lib_xnet_t_error = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675#define HAVE_LIBXNET 1
9676_ACEOF
9677
9678 LIBS="-lxnet $LIBS"
9679
9680else
9681 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9682echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9683 { (exit 1); exit 1; }; }
9684fi
9685
9686
9687 # next, we define all of the options specific to major releases
9688 case "$host" in
9689 *-*-hpux10*)
9690 if test -z "$GCC"; then
9691 CFLAGS="$CFLAGS -Ae"
9692 fi
9693 ;;
9694 *-*-hpux11*)
9695
9696cat >>confdefs.h <<\_ACEOF
9697#define PAM_SUN_CODEBASE 1
9698_ACEOF
9699
9700
9701cat >>confdefs.h <<\_ACEOF
9702#define DISABLE_UTMP 1
9703_ACEOF
9704
9705
9706cat >>confdefs.h <<\_ACEOF
9707#define USE_BTMP 1
9708_ACEOF
9709
9710 check_for_hpux_broken_getaddrinfo=1
9711 check_for_conflicting_getspnam=1
9712 ;;
9713 esac
9714
9715 # lastly, we define options specific to minor releases
9716 case "$host" in
9717 *-*-hpux10.26)
9718
9719cat >>confdefs.h <<\_ACEOF
9720#define HAVE_SECUREWARE 1
9721_ACEOF
9722
9723 disable_ptmx_check=yes
9724 LIBS="$LIBS -lsecpw"
9725 ;;
9726 esac
9727 ;;
9728*-*-irix5*)
9729 PATH="$PATH:/usr/etc"
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define BROKEN_INET_NTOA 1
9733_ACEOF
9734
9735 cat >>confdefs.h <<\_ACEOF
9736#define SETEUID_BREAKS_SETUID 1
9737_ACEOF
9738
9739 cat >>confdefs.h <<\_ACEOF
9740#define BROKEN_SETREUID 1
9741_ACEOF
9742
9743 cat >>confdefs.h <<\_ACEOF
9744#define BROKEN_SETREGID 1
9745_ACEOF
9746
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define WITH_ABBREV_NO_TTY 1
9750_ACEOF
9751
9752 cat >>confdefs.h <<\_ACEOF
9753#define LOCKED_PASSWD_STRING "*LK*"
9754_ACEOF
9755
9756 ;;
9757*-*-irix6*)
9758 PATH="$PATH:/usr/etc"
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WITH_IRIX_ARRAY 1
9762_ACEOF
9763
9764
9765cat >>confdefs.h <<\_ACEOF
9766#define WITH_IRIX_PROJECT 1
9767_ACEOF
9768
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define WITH_IRIX_AUDIT 1
9772_ACEOF
9773
9774 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9775echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9776if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787#define jlimit_startjob innocuous_jlimit_startjob
9788
9789/* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char jlimit_startjob (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9793
9794#ifdef __STDC__
9795# include <limits.h>
9796#else
9797# include <assert.h>
9798#endif
9799
9800#undef jlimit_startjob
9801
9802/* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char jlimit_startjob ();
9809/* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9813choke me
9814#endif
9815
9816int
9817main ()
9818{
9819return jlimit_startjob ();
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (ac_try="$ac_link"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_link") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest$ac_exeext &&
9841 $as_test_x conftest$ac_exeext; then
9842 ac_cv_func_jlimit_startjob=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_func_jlimit_startjob=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9851 conftest$ac_exeext conftest.$ac_ext
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9854echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9855if test $ac_cv_func_jlimit_startjob = yes; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define WITH_IRIX_JOBS 1
9859_ACEOF
9860
9861fi
9862
9863 cat >>confdefs.h <<\_ACEOF
9864#define BROKEN_INET_NTOA 1
9865_ACEOF
9866
9867 cat >>confdefs.h <<\_ACEOF
9868#define SETEUID_BREAKS_SETUID 1
9869_ACEOF
9870
9871 cat >>confdefs.h <<\_ACEOF
9872#define BROKEN_SETREUID 1
9873_ACEOF
9874
9875 cat >>confdefs.h <<\_ACEOF
9876#define BROKEN_SETREGID 1
9877_ACEOF
9878
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define BROKEN_UPDWTMPX 1
9882_ACEOF
9883
9884 cat >>confdefs.h <<\_ACEOF
9885#define WITH_ABBREV_NO_TTY 1
9886_ACEOF
9887
9888 cat >>confdefs.h <<\_ACEOF
9889#define LOCKED_PASSWD_STRING "*LK*"
9890_ACEOF
9891
9892 ;;
9893*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9894 check_for_libcrypt_later=1
9895 cat >>confdefs.h <<\_ACEOF
9896#define PAM_TTY_KLUDGE 1
9897_ACEOF
9898
9899 cat >>confdefs.h <<\_ACEOF
9900#define LOCKED_PASSWD_PREFIX "!"
9901_ACEOF
9902
9903 cat >>confdefs.h <<\_ACEOF
9904#define SPT_TYPE SPT_REUSEARGV
9905_ACEOF
9906
9907
9908cat >>confdefs.h <<\_ACEOF
9909#define _PATH_BTMP "/var/log/btmp"
9910_ACEOF
9911
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define USE_BTMP 1
9915_ACEOF
9916
9917 ;;
9918*-*-linux*)
9919 no_dev_ptmx=1
9920 use_pie=auto
9921 check_for_libcrypt_later=1
9922 check_for_openpty_ctty_bug=1
9923
9924cat >>confdefs.h <<\_ACEOF
9925#define PAM_TTY_KLUDGE 1
9926_ACEOF
9927
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define LOCKED_PASSWD_PREFIX "!"
9931_ACEOF
9932
9933 cat >>confdefs.h <<\_ACEOF
9934#define SPT_TYPE SPT_REUSEARGV
9935_ACEOF
9936
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define LINK_OPNOTSUPP_ERRNO EPERM
9940_ACEOF
9941
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define _PATH_BTMP "/var/log/btmp"
9945_ACEOF
9946
9947 cat >>confdefs.h <<\_ACEOF
9948#define USE_BTMP 1
9949_ACEOF
9950
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define LINUX_OOM_ADJUST 1
9954_ACEOF
9955
9956 inet6_default_4in6=yes
9957 case `uname -r` in
9958 1.*|2.0.*)
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define BROKEN_CMSG_TYPE 1
9962_ACEOF
9963
9964 ;;
9965 esac
9966 # tun(4) forwarding compat code
9967
9968for ac_header in linux/if_tun.h
9969do
9970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976fi
9977ac_res=`eval echo '${'$as_ac_Header'}'`
9978 { echo "$as_me:$LINENO: result: $ac_res" >&5
9979echo "${ECHO_T}$ac_res" >&6; }
9980else
9981 # Is the header compilable?
9982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (ac_try="$ac_compile"
9995case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998esac
9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 ac_header_compiler=yes
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_header_compiler=no
10016fi
10017
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020echo "${ECHO_T}$ac_header_compiler" >&6; }
10021
10022# Is the header present?
10023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h. */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
10030/* end confdefs.h. */
10031#include <$ac_header>
10032_ACEOF
10033if { (ac_try="$ac_cpp conftest.$ac_ext"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } >/dev/null && {
10046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 }; then
10049 ac_header_preproc=yes
10050else
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_header_preproc=no
10055fi
10056
10057rm -f conftest.err conftest.$ac_ext
10058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059echo "${ECHO_T}$ac_header_preproc" >&6; }
10060
10061# So? What about this header?
10062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 yes:no: )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068 ac_header_preproc=yes
10069 ;;
10070 no:yes:* )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10083 ( cat <<\_ASBOX
10084## ------------------------------------------- ##
10085## Report this to openssh-unix-dev@mindrot.org ##
10086## ------------------------------------------- ##
10087_ASBOX
10088 ) | sed "s/^/$as_me: WARNING: /" >&2
10089 ;;
10090esac
10091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096 eval "$as_ac_Header=\$ac_header_preproc"
10097fi
10098ac_res=`eval echo '${'$as_ac_Header'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100echo "${ECHO_T}$ac_res" >&6; }
10101
10102fi
10103if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106_ACEOF
10107
10108fi
10109
10110done
10111
10112 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
10113
10114cat >>confdefs.h <<\_ACEOF
10115#define SSH_TUN_LINUX 1
10116_ACEOF
10117
10118
10119cat >>confdefs.h <<\_ACEOF
10120#define SSH_TUN_COMPAT_AF 1
10121_ACEOF
10122
10123
10124cat >>confdefs.h <<\_ACEOF
10125#define SSH_TUN_PREPEND_AF 1
10126_ACEOF
10127
10128 fi
10129
10130
10131
10132for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
10133do
10134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
10146#include <linux/types.h>
10147
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_compile") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
10167 eval "$as_ac_Header=yes"
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 eval "$as_ac_Header=no"
10173fi
10174
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176fi
10177ac_res=`eval echo '${'$as_ac_Header'}'`
10178 { echo "$as_me:$LINENO: result: $ac_res" >&5
10179echo "${ECHO_T}$ac_res" >&6; }
10180if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181 cat >>confdefs.h <<_ACEOF
10182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183_ACEOF
10184
10185fi
10186
10187done
10188
10189
10190for ac_func in prctl
10191do
10192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206#define $ac_func innocuous_$ac_func
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char $ac_func (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef $ac_func
10220
10221/* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224#ifdef __cplusplus
10225extern "C"
10226#endif
10227char $ac_func ();
10228/* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
10231#if defined __stub_$ac_func || defined __stub___$ac_func
10232choke me
10233#endif
10234
10235int
10236main ()
10237{
10238return $ac_func ();
10239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext &&
10260 $as_test_x conftest$ac_exeext; then
10261 eval "$as_ac_var=yes"
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 eval "$as_ac_var=no"
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271fi
10272ac_res=`eval echo '${'$as_ac_var'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274echo "${ECHO_T}$ac_res" >&6; }
10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283 { echo "$as_me:$LINENO: checking for seccomp architecture" >&5
10284echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
10285 seccomp_audit_arch=
10286 case "$host" in
10287 x86_64-*)
10288 seccomp_audit_arch=AUDIT_ARCH_X86_64
10289 ;;
10290 i*86-*)
10291 seccomp_audit_arch=AUDIT_ARCH_I386
10292 ;;
10293 arm*-*)
10294 seccomp_audit_arch=AUDIT_ARCH_ARM
10295 ;;
10296 aarch64*-*)
10297 seccomp_audit_arch=AUDIT_ARCH_AARCH64
10298 ;;
10299 esac
10300 if test "x$seccomp_audit_arch" != "x" ; then
10301 { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
10302echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
10303
10304cat >>confdefs.h <<_ACEOF
10305#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
10306_ACEOF
10307
10308 else
10309 { echo "$as_me:$LINENO: result: architecture not supported" >&5
10310echo "${ECHO_T}architecture not supported" >&6; }
10311 fi
10312 ;;
10313mips-sony-bsd|mips-sony-newsos4)
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define NEED_SETPGRP 1
10317_ACEOF
10318
10319 SONY=1
10320 ;;
10321*-*-netbsd*)
10322 check_for_libcrypt_before=1
10323 if test "x$withval" != "xno" ; then
10324 need_dash_r=1
10325 fi
10326
10327cat >>confdefs.h <<\_ACEOF
10328#define SSH_TUN_FREEBSD 1
10329_ACEOF
10330
10331 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10332 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10333echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10334if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336fi
10337{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10338echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10339else
10340 # Is the header compilable?
10341{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10342echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h. */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h. */
10349$ac_includes_default
10350#include <net/if_tap.h>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_header_compiler=no
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379echo "${ECHO_T}$ac_header_compiler" >&6; }
10380
10381# Is the header present?
10382{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10383echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390#include <net/if_tap.h>
10391_ACEOF
10392if { (ac_try="$ac_cpp conftest.$ac_ext"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 }; then
10408 ac_header_preproc=yes
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_header_preproc=no
10414fi
10415
10416rm -f conftest.err conftest.$ac_ext
10417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418echo "${ECHO_T}$ac_header_preproc" >&6; }
10419
10420# So? What about this header?
10421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422 yes:no: )
10423 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10424echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10426echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10428 ;;
10429 no:yes:* )
10430 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10431echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10433echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10435echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10437echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10439echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10441echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10442 ( cat <<\_ASBOX
10443## ------------------------------------------- ##
10444## Report this to openssh-unix-dev@mindrot.org ##
10445## ------------------------------------------- ##
10446_ASBOX
10447 ) | sed "s/^/$as_me: WARNING: /" >&2
10448 ;;
10449esac
10450{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10451echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10452if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 ac_cv_header_net_if_tap_h=$ac_header_preproc
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10458echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10459
10460fi
10461if test $ac_cv_header_net_if_tap_h = yes; then
10462 :
10463else
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define SSH_TUN_NO_L2 1
10467_ACEOF
10468
10469fi
10470
10471
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define SSH_TUN_PREPEND_AF 1
10475_ACEOF
10476
10477 TEST_MALLOC_OPTIONS="AJRX"
10478
10479cat >>confdefs.h <<\_ACEOF
10480#define BROKEN_STRNVIS 1
10481_ACEOF
10482
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define BROKEN_READ_COMPARISON 1
10486_ACEOF
10487
10488 ;;
10489*-*-freebsd*)
10490 check_for_libcrypt_later=1
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10494_ACEOF
10495
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define SSH_TUN_FREEBSD 1
10499_ACEOF
10500
10501 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10502 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10503echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10504if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506fi
10507{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10508echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10509else
10510 # Is the header compilable?
10511{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10512echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519$ac_includes_default
10520#include <net/if_tap.h>
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (ac_try="$ac_compile"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_header_compiler=yes
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 ac_header_compiler=no
10545fi
10546
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549echo "${ECHO_T}$ac_header_compiler" >&6; }
10550
10551# Is the header present?
10552{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10553echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10554cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560#include <net/if_tap.h>
10561_ACEOF
10562if { (ac_try="$ac_cpp conftest.$ac_ext"
10563case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null && {
10575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 }; then
10578 ac_header_preproc=yes
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 ac_header_preproc=no
10584fi
10585
10586rm -f conftest.err conftest.$ac_ext
10587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10588echo "${ECHO_T}$ac_header_preproc" >&6; }
10589
10590# So? What about this header?
10591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10592 yes:no: )
10593 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10594echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10596echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10597 ac_header_preproc=yes
10598 ;;
10599 no:yes:* )
10600 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10601echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10603echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10605echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10607echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10609echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10611echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10612 ( cat <<\_ASBOX
10613## ------------------------------------------- ##
10614## Report this to openssh-unix-dev@mindrot.org ##
10615## ------------------------------------------- ##
10616_ASBOX
10617 ) | sed "s/^/$as_me: WARNING: /" >&2
10618 ;;
10619esac
10620{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10621echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10622if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 ac_cv_header_net_if_tap_h=$ac_header_preproc
10626fi
10627{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10628echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10629
10630fi
10631if test $ac_cv_header_net_if_tap_h = yes; then
10632 :
10633else
10634
10635cat >>confdefs.h <<\_ACEOF
10636#define SSH_TUN_NO_L2 1
10637_ACEOF
10638
10639fi
10640
10641
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define BROKEN_GLOB 1
10645_ACEOF
10646
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define BROKEN_STRNVIS 1
10650_ACEOF
10651
10652 TEST_MALLOC_OPTIONS="AJRX"
10653 # Preauth crypto occasionally uses file descriptors for crypto offload
10654 # and will crash if they cannot be opened.
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10658_ACEOF
10659
10660 ;;
10661*-*-bsdi*)
10662 cat >>confdefs.h <<\_ACEOF
10663#define SETEUID_BREAKS_SETUID 1
10664_ACEOF
10665
10666 cat >>confdefs.h <<\_ACEOF
10667#define BROKEN_SETREUID 1
10668_ACEOF
10669
10670 cat >>confdefs.h <<\_ACEOF
10671#define BROKEN_SETREGID 1
10672_ACEOF
10673
10674 ;;
10675*-next-*)
10676 conf_lastlog_location="/usr/adm/lastlog"
10677 conf_utmp_location=/etc/utmp
10678 conf_wtmp_location=/usr/adm/wtmp
10679 maildir=/usr/spool/mail
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define HAVE_NEXT 1
10683_ACEOF
10684
10685 cat >>confdefs.h <<\_ACEOF
10686#define BROKEN_REALPATH 1
10687_ACEOF
10688
10689 cat >>confdefs.h <<\_ACEOF
10690#define USE_PIPES 1
10691_ACEOF
10692
10693
10694cat >>confdefs.h <<\_ACEOF
10695#define BROKEN_SAVED_UIDS 1
10696_ACEOF
10697
10698 ;;
10699*-*-openbsd*)
10700 use_pie=auto
10701
10702cat >>confdefs.h <<\_ACEOF
10703#define HAVE_ATTRIBUTE__SENTINEL__ 1
10704_ACEOF
10705
10706
10707cat >>confdefs.h <<\_ACEOF
10708#define HAVE_ATTRIBUTE__BOUNDED__ 1
10709_ACEOF
10710
10711
10712cat >>confdefs.h <<\_ACEOF
10713#define SSH_TUN_OPENBSD 1
10714_ACEOF
10715
10716
10717cat >>confdefs.h <<\_ACEOF
10718#define SYSLOG_R_SAFE_IN_SIGHAND 1
10719_ACEOF
10720
10721 TEST_MALLOC_OPTIONS="AFGJPRX"
10722 ;;
10723*-*-solaris*)
10724 if test "x$withval" != "xno" ; then
10725 need_dash_r=1
10726 fi
10727 cat >>confdefs.h <<\_ACEOF
10728#define PAM_SUN_CODEBASE 1
10729_ACEOF
10730
10731 cat >>confdefs.h <<\_ACEOF
10732#define LOGIN_NEEDS_UTMPX 1
10733_ACEOF
10734
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define LOGIN_NEEDS_TERM 1
10738_ACEOF
10739
10740 cat >>confdefs.h <<\_ACEOF
10741#define PAM_TTY_KLUDGE 1
10742_ACEOF
10743
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10747_ACEOF
10748
10749 cat >>confdefs.h <<\_ACEOF
10750#define LOCKED_PASSWD_STRING "*LK*"
10751_ACEOF
10752
10753 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
10754
10755cat >>confdefs.h <<\_ACEOF
10756#define SSHD_ACQUIRES_CTTY 1
10757_ACEOF
10758
10759
10760cat >>confdefs.h <<\_ACEOF
10761#define PASSWD_NEEDS_USERNAME 1
10762_ACEOF
10763
10764
10765cat >>confdefs.h <<\_ACEOF
10766#define BROKEN_TCGETATTR_ICANON 1
10767_ACEOF
10768
10769 external_path_file=/etc/default/login
10770 # hardwire lastlog location (can't detect it on some versions)
10771 conf_lastlog_location="/var/adm/lastlog"
10772 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
10773echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
10774 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
10775 if test "$sol2ver" -ge 8; then
10776 { echo "$as_me:$LINENO: result: yes" >&5
10777echo "${ECHO_T}yes" >&6; }
10778 cat >>confdefs.h <<\_ACEOF
10779#define DISABLE_UTMP 1
10780_ACEOF
10781
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define DISABLE_WTMP 1
10785_ACEOF
10786
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789echo "${ECHO_T}no" >&6; }
10790 fi
10791
10792# Check whether --with-solaris-contracts was given.
10793if test "${with_solaris_contracts+set}" = set; then
10794 withval=$with_solaris_contracts;
10795 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
10796echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 ac_check_lib_save_LIBS=$LIBS
10801LIBS="-lcontract $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char ct_tmpl_activate ();
10816int
10817main ()
10818{
10819return ct_tmpl_activate ();
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 ac_cv_lib_contract_ct_tmpl_activate=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_contract_ct_tmpl_activate=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
10855echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
10856if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define USE_SOLARIS_PROCESS_CONTRACTS 1
10860_ACEOF
10861
10862 SSHDLIBS="$SSHDLIBS -lcontract"
10863 SPC_MSG="yes"
10864fi
10865
10866
10867fi
10868
10869
10870# Check whether --with-solaris-projects was given.
10871if test "${with_solaris_projects+set}" = set; then
10872 withval=$with_solaris_projects;
10873 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
10874echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
10875if test "${ac_cv_lib_project_setproject+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lproject $LIBS"
10880cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886
10887/* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char setproject ();
10894int
10895main ()
10896{
10897return setproject ();
10898 ;
10899 return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
10903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext &&
10919 $as_test_x conftest$ac_exeext; then
10920 ac_cv_lib_project_setproject=yes
10921else
10922 echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 ac_cv_lib_project_setproject=no
10926fi
10927
10928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10930LIBS=$ac_check_lib_save_LIBS
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
10933echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
10934if test $ac_cv_lib_project_setproject = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define USE_SOLARIS_PROJECTS 1
10938_ACEOF
10939
10940 SSHDLIBS="$SSHDLIBS -lproject"
10941 SP_MSG="yes"
10942fi
10943
10944
10945fi
10946
10947 TEST_SHELL=$SHELL # let configure find us a capable shell
10948 ;;
10949*-*-sunos4*)
10950 CPPFLAGS="$CPPFLAGS -DSUNOS4"
10951
10952for ac_func in getpwanam
10953do
10954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968#define $ac_func innocuous_$ac_func
10969
10970/* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10974
10975#ifdef __STDC__
10976# include <limits.h>
10977#else
10978# include <assert.h>
10979#endif
10980
10981#undef $ac_func
10982
10983/* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986#ifdef __cplusplus
10987extern "C"
10988#endif
10989char $ac_func ();
10990/* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993#if defined __stub_$ac_func || defined __stub___$ac_func
10994choke me
10995#endif
10996
10997int
10998main ()
10999{
11000return $ac_func ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11023 eval "$as_ac_var=yes"
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 eval "$as_ac_var=no"
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033fi
11034ac_res=`eval echo '${'$as_ac_var'}'`
11035 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_res" >&6; }
11037if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040_ACEOF
11041
11042fi
11043done
11044
11045 cat >>confdefs.h <<\_ACEOF
11046#define PAM_SUN_CODEBASE 1
11047_ACEOF
11048
11049 conf_utmp_location=/etc/utmp
11050 conf_wtmp_location=/var/adm/wtmp
11051 conf_lastlog_location=/var/adm/lastlog
11052 cat >>confdefs.h <<\_ACEOF
11053#define USE_PIPES 1
11054_ACEOF
11055
11056 ;;
11057*-ncr-sysv*)
11058 LIBS="$LIBS -lc89"
11059 cat >>confdefs.h <<\_ACEOF
11060#define USE_PIPES 1
11061_ACEOF
11062
11063 cat >>confdefs.h <<\_ACEOF
11064#define SSHD_ACQUIRES_CTTY 1
11065_ACEOF
11066
11067 cat >>confdefs.h <<\_ACEOF
11068#define SETEUID_BREAKS_SETUID 1
11069_ACEOF
11070
11071 cat >>confdefs.h <<\_ACEOF
11072#define BROKEN_SETREUID 1
11073_ACEOF
11074
11075 cat >>confdefs.h <<\_ACEOF
11076#define BROKEN_SETREGID 1
11077_ACEOF
11078
11079 ;;
11080*-sni-sysv*)
11081 # /usr/ucblib MUST NOT be searched on ReliantUNIX
11082
11083{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11084echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
11085if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088 ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlsym ();
11104int
11105main ()
11106{
11107return dlsym ();
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 ac_cv_lib_dl_dlsym=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135 ac_cv_lib_dl_dlsym=no
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140LIBS=$ac_check_lib_save_LIBS
11141fi
11142{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11143echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
11144if test $ac_cv_lib_dl_dlsym = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146#define HAVE_LIBDL 1
11147_ACEOF
11148
11149 LIBS="-ldl $LIBS"
11150
11151fi
11152
11153 # -lresolv needs to be at the end of LIBS or DNS lookups break
11154 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11155echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11156if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 ac_check_lib_save_LIBS=$LIBS
11160LIBS="-lresolv $LIBS"
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168/* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char res_query ();
11175int
11176main ()
11177{
11178return res_query ();
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (ac_try="$ac_link"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_link") 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext &&
11200 $as_test_x conftest$ac_exeext; then
11201 ac_cv_lib_resolv_res_query=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_cv_lib_resolv_res_query=no
11207fi
11208
11209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210 conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11214echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11215if test $ac_cv_lib_resolv_res_query = yes; then
11216 LIBS="$LIBS -lresolv"
11217fi
11218
11219 IPADDR_IN_DISPLAY=yes
11220 cat >>confdefs.h <<\_ACEOF
11221#define USE_PIPES 1
11222_ACEOF
11223
11224 cat >>confdefs.h <<\_ACEOF
11225#define IP_TOS_IS_BROKEN 1
11226_ACEOF
11227
11228 cat >>confdefs.h <<\_ACEOF
11229#define SETEUID_BREAKS_SETUID 1
11230_ACEOF
11231
11232 cat >>confdefs.h <<\_ACEOF
11233#define BROKEN_SETREUID 1
11234_ACEOF
11235
11236 cat >>confdefs.h <<\_ACEOF
11237#define BROKEN_SETREGID 1
11238_ACEOF
11239
11240 cat >>confdefs.h <<\_ACEOF
11241#define SSHD_ACQUIRES_CTTY 1
11242_ACEOF
11243
11244 external_path_file=/etc/default/login
11245 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
11246 # Attention: always take care to bind libsocket and libnsl before libc,
11247 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
11248 ;;
11249# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
11250*-*-sysv4.2*)
11251 cat >>confdefs.h <<\_ACEOF
11252#define USE_PIPES 1
11253_ACEOF
11254
11255 cat >>confdefs.h <<\_ACEOF
11256#define SETEUID_BREAKS_SETUID 1
11257_ACEOF
11258
11259 cat >>confdefs.h <<\_ACEOF
11260#define BROKEN_SETREUID 1
11261_ACEOF
11262
11263 cat >>confdefs.h <<\_ACEOF
11264#define BROKEN_SETREGID 1
11265_ACEOF
11266
11267
11268cat >>confdefs.h <<\_ACEOF
11269#define PASSWD_NEEDS_USERNAME 1
11270_ACEOF
11271
11272 cat >>confdefs.h <<\_ACEOF
11273#define LOCKED_PASSWD_STRING "*LK*"
11274_ACEOF
11275
11276 TEST_SHELL=$SHELL # let configure find us a capable shell
11277 ;;
11278# UnixWare 7.x, OpenUNIX 8
11279*-*-sysv5*)
11280 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
11281
11282cat >>confdefs.h <<\_ACEOF
11283#define UNIXWARE_LONG_PASSWORDS 1
11284_ACEOF
11285
11286 cat >>confdefs.h <<\_ACEOF
11287#define USE_PIPES 1
11288_ACEOF
11289
11290 cat >>confdefs.h <<\_ACEOF
11291#define SETEUID_BREAKS_SETUID 1
11292_ACEOF
11293
11294 cat >>confdefs.h <<\_ACEOF
11295#define BROKEN_GETADDRINFO 1
11296_ACEOF
11297
11298 cat >>confdefs.h <<\_ACEOF
11299#define BROKEN_SETREUID 1
11300_ACEOF
11301
11302 cat >>confdefs.h <<\_ACEOF
11303#define BROKEN_SETREGID 1
11304_ACEOF
11305
11306 cat >>confdefs.h <<\_ACEOF
11307#define PASSWD_NEEDS_USERNAME 1
11308_ACEOF
11309
11310 TEST_SHELL=$SHELL # let configure find us a capable shell
11311 case "$host" in
11312 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
11313 maildir=/var/spool/mail
11314
11315cat >>confdefs.h <<\_ACEOF
11316#define BROKEN_LIBIAF 1
11317_ACEOF
11318
11319 cat >>confdefs.h <<\_ACEOF
11320#define BROKEN_UPDWTMPX 1
11321_ACEOF
11322
11323 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
11324echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
11325if test "${ac_cv_lib_prot_getluid+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 ac_check_lib_save_LIBS=$LIBS
11329LIBS="-lprot $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char getluid ();
11344int
11345main ()
11346{
11347return getluid ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest$ac_exeext &&
11369 $as_test_x conftest$ac_exeext; then
11370 ac_cv_lib_prot_getluid=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_lib_prot_getluid=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379 conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
11383echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
11384if test $ac_cv_lib_prot_getluid = yes; then
11385 LIBS="$LIBS -lprot"
11386
11387
11388for ac_func in getluid setluid
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined __stub_$ac_func || defined __stub___$ac_func
11430choke me
11431#endif
11432
11433int
11434main ()
11435{
11436return $ac_func ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 eval "$as_ac_var=no"
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11469fi
11470ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472echo "${ECHO_T}$ac_res" >&6; }
11473if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479done
11480
11481 cat >>confdefs.h <<\_ACEOF
11482#define HAVE_SECUREWARE 1
11483_ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486#define DISABLE_SHADOW 1
11487_ACEOF
11488
11489
11490fi
11491
11492 ;;
11493 *) cat >>confdefs.h <<\_ACEOF
11494#define LOCKED_PASSWD_STRING "*LK*"
11495_ACEOF
11496
11497 check_for_libcrypt_later=1
11498 ;;
11499 esac
11500 ;;
11501*-*-sysv*)
11502 ;;
11503# SCO UNIX and OEM versions of SCO UNIX
11504*-*-sco3.2v4*)
11505 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11506echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11507 { (exit 1); exit 1; }; }
11508 ;;
11509# SCO OpenServer 5.x
11510*-*-sco3.2v5*)
11511 if test -z "$GCC"; then
11512 CFLAGS="$CFLAGS -belf"
11513 fi
11514 LIBS="$LIBS -lprot -lx -ltinfo -lm"
11515 no_dev_ptmx=1
11516 cat >>confdefs.h <<\_ACEOF
11517#define USE_PIPES 1
11518_ACEOF
11519
11520 cat >>confdefs.h <<\_ACEOF
11521#define HAVE_SECUREWARE 1
11522_ACEOF
11523
11524 cat >>confdefs.h <<\_ACEOF
11525#define DISABLE_SHADOW 1
11526_ACEOF
11527
11528 cat >>confdefs.h <<\_ACEOF
11529#define DISABLE_FD_PASSING 1
11530_ACEOF
11531
11532 cat >>confdefs.h <<\_ACEOF
11533#define SETEUID_BREAKS_SETUID 1
11534_ACEOF
11535
11536 cat >>confdefs.h <<\_ACEOF
11537#define BROKEN_GETADDRINFO 1
11538_ACEOF
11539
11540 cat >>confdefs.h <<\_ACEOF
11541#define BROKEN_SETREUID 1
11542_ACEOF
11543
11544 cat >>confdefs.h <<\_ACEOF
11545#define BROKEN_SETREGID 1
11546_ACEOF
11547
11548 cat >>confdefs.h <<\_ACEOF
11549#define WITH_ABBREV_NO_TTY 1
11550_ACEOF
11551
11552 cat >>confdefs.h <<\_ACEOF
11553#define BROKEN_UPDWTMPX 1
11554_ACEOF
11555
11556 cat >>confdefs.h <<\_ACEOF
11557#define PASSWD_NEEDS_USERNAME 1
11558_ACEOF
11559
11560
11561
11562for ac_func in getluid setluid
11563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633 eval "$as_ac_var=yes"
11634else
11635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 eval "$as_ac_var=no"
11639fi
11640
11641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642 conftest$ac_exeext conftest.$ac_ext
11643fi
11644ac_res=`eval echo '${'$as_ac_var'}'`
11645 { echo "$as_me:$LINENO: result: $ac_res" >&5
11646echo "${ECHO_T}$ac_res" >&6; }
11647if test `eval echo '${'$as_ac_var'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650_ACEOF
11651
11652fi
11653done
11654
11655 MANTYPE=man
11656 TEST_SHELL=$SHELL # let configure find us a capable shell
11657 SKIP_DISABLE_LASTLOG_DEFINE=yes
11658 ;;
11659*-*-unicosmk*)
11660
11661cat >>confdefs.h <<\_ACEOF
11662#define NO_SSH_LASTLOG 1
11663_ACEOF
11664
11665 cat >>confdefs.h <<\_ACEOF
11666#define SETEUID_BREAKS_SETUID 1
11667_ACEOF
11668
11669 cat >>confdefs.h <<\_ACEOF
11670#define BROKEN_SETREUID 1
11671_ACEOF
11672
11673 cat >>confdefs.h <<\_ACEOF
11674#define BROKEN_SETREGID 1
11675_ACEOF
11676
11677 cat >>confdefs.h <<\_ACEOF
11678#define USE_PIPES 1
11679_ACEOF
11680
11681 cat >>confdefs.h <<\_ACEOF
11682#define DISABLE_FD_PASSING 1
11683_ACEOF
11684
11685 LDFLAGS="$LDFLAGS"
11686 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11687 MANTYPE=cat
11688 ;;
11689*-*-unicosmp*)
11690 cat >>confdefs.h <<\_ACEOF
11691#define SETEUID_BREAKS_SETUID 1
11692_ACEOF
11693
11694 cat >>confdefs.h <<\_ACEOF
11695#define BROKEN_SETREUID 1
11696_ACEOF
11697
11698 cat >>confdefs.h <<\_ACEOF
11699#define BROKEN_SETREGID 1
11700_ACEOF
11701
11702 cat >>confdefs.h <<\_ACEOF
11703#define WITH_ABBREV_NO_TTY 1
11704_ACEOF
11705
11706 cat >>confdefs.h <<\_ACEOF
11707#define USE_PIPES 1
11708_ACEOF
11709
11710 cat >>confdefs.h <<\_ACEOF
11711#define DISABLE_FD_PASSING 1
11712_ACEOF
11713
11714 LDFLAGS="$LDFLAGS"
11715 LIBS="$LIBS -lgen -lacid -ldb"
11716 MANTYPE=cat
11717 ;;
11718*-*-unicos*)
11719 cat >>confdefs.h <<\_ACEOF
11720#define SETEUID_BREAKS_SETUID 1
11721_ACEOF
11722
11723 cat >>confdefs.h <<\_ACEOF
11724#define BROKEN_SETREUID 1
11725_ACEOF
11726
11727 cat >>confdefs.h <<\_ACEOF
11728#define BROKEN_SETREGID 1
11729_ACEOF
11730
11731 cat >>confdefs.h <<\_ACEOF
11732#define USE_PIPES 1
11733_ACEOF
11734
11735 cat >>confdefs.h <<\_ACEOF
11736#define DISABLE_FD_PASSING 1
11737_ACEOF
11738
11739 cat >>confdefs.h <<\_ACEOF
11740#define NO_SSH_LASTLOG 1
11741_ACEOF
11742
11743 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
11744 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11745 MANTYPE=cat
11746 ;;
11747*-dec-osf*)
11748 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
11749echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
11750 no_osfsia=""
11751
11752# Check whether --with-osfsia was given.
11753if test "${with_osfsia+set}" = set; then
11754 withval=$with_osfsia;
11755 if test "x$withval" = "xno" ; then
11756 { echo "$as_me:$LINENO: result: disabled" >&5
11757echo "${ECHO_T}disabled" >&6; }
11758 no_osfsia=1
11759 fi
11760
11761fi
11762
11763 if test -z "$no_osfsia" ; then
11764 if test -f /etc/sia/matrix.conf; then
11765 { echo "$as_me:$LINENO: result: yes" >&5
11766echo "${ECHO_T}yes" >&6; }
11767
11768cat >>confdefs.h <<\_ACEOF
11769#define HAVE_OSF_SIA 1
11770_ACEOF
11771
11772
11773cat >>confdefs.h <<\_ACEOF
11774#define DISABLE_LOGIN 1
11775_ACEOF
11776
11777 cat >>confdefs.h <<\_ACEOF
11778#define DISABLE_FD_PASSING 1
11779_ACEOF
11780
11781 LIBS="$LIBS -lsecurity -ldb -lm -laud"
11782 SIA_MSG="yes"
11783 else
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define LOCKED_PASSWD_SUBSTR "Nologin"
11789_ACEOF
11790
11791 fi
11792 fi
11793 cat >>confdefs.h <<\_ACEOF
11794#define BROKEN_GETADDRINFO 1
11795_ACEOF
11796
11797 cat >>confdefs.h <<\_ACEOF
11798#define SETEUID_BREAKS_SETUID 1
11799_ACEOF
11800
11801 cat >>confdefs.h <<\_ACEOF
11802#define BROKEN_SETREUID 1
11803_ACEOF
11804
11805 cat >>confdefs.h <<\_ACEOF
11806#define BROKEN_SETREGID 1
11807_ACEOF
11808
11809
11810cat >>confdefs.h <<\_ACEOF
11811#define BROKEN_READV_COMPARISON 1
11812_ACEOF
11813
11814 ;;
11815
11816*-*-nto-qnx*)
11817 cat >>confdefs.h <<\_ACEOF
11818#define USE_PIPES 1
11819_ACEOF
11820
11821 cat >>confdefs.h <<\_ACEOF
11822#define NO_X11_UNIX_SOCKETS 1
11823_ACEOF
11824
11825 cat >>confdefs.h <<\_ACEOF
11826#define DISABLE_LASTLOG 1
11827_ACEOF
11828
11829 cat >>confdefs.h <<\_ACEOF
11830#define SSHD_ACQUIRES_CTTY 1
11831_ACEOF
11832
11833
11834cat >>confdefs.h <<\_ACEOF
11835#define BROKEN_SHADOW_EXPIRE 1
11836_ACEOF
11837
11838 enable_etc_default_login=no # has incompatible /etc/default/login
11839 case "$host" in
11840 *-*-nto-qnx6*)
11841 cat >>confdefs.h <<\_ACEOF
11842#define DISABLE_FD_PASSING 1
11843_ACEOF
11844
11845 ;;
11846 esac
11847 ;;
11848
11849*-*-ultrix*)
11850
11851cat >>confdefs.h <<\_ACEOF
11852#define BROKEN_GETGROUPS 1
11853_ACEOF
11854
11855
11856cat >>confdefs.h <<\_ACEOF
11857#define BROKEN_MMAP 1
11858_ACEOF
11859
11860 cat >>confdefs.h <<\_ACEOF
11861#define NEED_SETPGRP 1
11862_ACEOF
11863
11864
11865cat >>confdefs.h <<\_ACEOF
11866#define HAVE_SYS_SYSLOG_H 1
11867_ACEOF
11868
11869 ;;
11870
11871*-*-lynxos)
11872 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
11873
11874cat >>confdefs.h <<\_ACEOF
11875#define BROKEN_SETVBUF 1
11876_ACEOF
11877
11878 ;;
11879esac
11880
11881{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
11882echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
11883if test "$cross_compiling" = yes; then
11884 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
11885echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
11886
11887else
11888 cat >conftest.$ac_ext <<_ACEOF
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894 #include <stdio.h>
11895int
11896main ()
11897{
11898 exit(0);
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 { echo "$as_me:$LINENO: result: yes" >&5
11924echo "${ECHO_T}yes" >&6; }
11925else
11926 echo "$as_me: program exited with status $ac_status" >&5
11927echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930( exit $ac_status )
11931
11932 { echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6; }
11934 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
11935echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
11936 { (exit 1); exit 1; }; }
11937
11938fi
11939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11940fi
11941
11942
11943
11944# Checks for libraries.
11945{ echo "$as_me:$LINENO: checking for yp_match" >&5
11946echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
11947if test "${ac_cv_func_yp_match+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958#define yp_match innocuous_yp_match
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char yp_match (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef yp_match
11972
11973/* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char yp_match ();
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined __stub_yp_match || defined __stub___yp_match
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return yp_match ();
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest$ac_exeext &&
12012 $as_test_x conftest$ac_exeext; then
12013 ac_cv_func_yp_match=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 ac_cv_func_yp_match=no
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022 conftest$ac_exeext conftest.$ac_ext
12023fi
12024{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
12025echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
12026if test $ac_cv_func_yp_match = yes; then
12027 :
12028else
12029
12030{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
12031echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
12032if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 ac_check_lib_save_LIBS=$LIBS
12036LIBS="-lnsl $LIBS"
12037cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char yp_match ();
12051int
12052main ()
12053{
12054return yp_match ();
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_lib_nsl_yp_match=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_cv_lib_nsl_yp_match=no
12083fi
12084
12085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12087LIBS=$ac_check_lib_save_LIBS
12088fi
12089{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
12090echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
12091if test $ac_cv_lib_nsl_yp_match = yes; then
12092 cat >>confdefs.h <<_ACEOF
12093#define HAVE_LIBNSL 1
12094_ACEOF
12095
12096 LIBS="-lnsl $LIBS"
12097
12098fi
12099
12100fi
12101
12102{ echo "$as_me:$LINENO: checking for setsockopt" >&5
12103echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12104if test "${ac_cv_func_setsockopt+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107 cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12115#define setsockopt innocuous_setsockopt
12116
12117/* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char setsockopt (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12121
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
12127
12128#undef setsockopt
12129
12130/* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char setsockopt ();
12137/* The GNU C library defines this for functions which it implements
12138 to always fail with ENOSYS. Some functions are actually named
12139 something starting with __ and the normal name is an alias. */
12140#if defined __stub_setsockopt || defined __stub___setsockopt
12141choke me
12142#endif
12143
12144int
12145main ()
12146{
12147return setsockopt ();
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext conftest$ac_exeext
12153if { (ac_try="$ac_link"
12154case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 ac_cv_func_setsockopt=yes
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_func_setsockopt=no
12176fi
12177
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180fi
12181{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12182echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12183if test $ac_cv_func_setsockopt = yes; then
12184 :
12185else
12186
12187{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12188echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12189if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lsocket $LIBS"
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204#ifdef __cplusplus
12205extern "C"
12206#endif
12207char setsockopt ();
12208int
12209main ()
12210{
12211return setsockopt ();
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_lib_socket_setsockopt=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_lib_socket_setsockopt=no
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244LIBS=$ac_check_lib_save_LIBS
12245fi
12246{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
12247echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
12248if test $ac_cv_lib_socket_setsockopt = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250#define HAVE_LIBSOCKET 1
12251_ACEOF
12252
12253 LIBS="-lsocket $LIBS"
12254
12255fi
12256
12257fi
12258
12259
12260
12261for ac_func in dirname
12262do
12263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12277#define $ac_func innocuous_$ac_func
12278
12279/* System header to define __stub macros and hopefully few prototypes,
12280 which can conflict with char $ac_func (); below.
12281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12282 <limits.h> exists even on freestanding compilers. */
12283
12284#ifdef __STDC__
12285# include <limits.h>
12286#else
12287# include <assert.h>
12288#endif
12289
12290#undef $ac_func
12291
12292/* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char $ac_func ();
12299/* The GNU C library defines this for functions which it implements
12300 to always fail with ENOSYS. Some functions are actually named
12301 something starting with __ and the normal name is an alias. */
12302#if defined __stub_$ac_func || defined __stub___$ac_func
12303choke me
12304#endif
12305
12306int
12307main ()
12308{
12309return $ac_func ();
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 eval "$as_ac_var=yes"
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 eval "$as_ac_var=no"
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342fi
12343ac_res=`eval echo '${'$as_ac_var'}'`
12344 { echo "$as_me:$LINENO: result: $ac_res" >&5
12345echo "${ECHO_T}$ac_res" >&6; }
12346if test `eval echo '${'$as_ac_var'}'` = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12349_ACEOF
12350
12351for ac_header in libgen.h
12352do
12353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359fi
12360ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362echo "${ECHO_T}$ac_res" >&6; }
12363else
12364 # Is the header compilable?
12365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (ac_try="$ac_compile"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 ac_header_compiler=yes
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 ac_header_compiler=no
12399fi
12400
12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12403echo "${ECHO_T}$ac_header_compiler" >&6; }
12404
12405# Is the header present?
12406{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414#include <$ac_header>
12415_ACEOF
12416if { (ac_try="$ac_cpp conftest.$ac_ext"
12417case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null && {
12429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 }; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ------------------------------------------- ##
12468## Report this to openssh-unix-dev@mindrot.org ##
12469## ------------------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489_ACEOF
12490
12491fi
12492
12493done
12494
12495else
12496
12497 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
12498echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
12499if test "${ac_cv_lib_gen_dirname+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502 ac_check_lib_save_LIBS=$LIBS
12503LIBS="-lgen $LIBS"
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char dirname ();
12518int
12519main ()
12520{
12521return dirname ();
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest$ac_exeext &&
12543 $as_test_x conftest$ac_exeext; then
12544 ac_cv_lib_gen_dirname=yes
12545else
12546 echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_cv_lib_gen_dirname=no
12550fi
12551
12552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12553 conftest$ac_exeext conftest.$ac_ext
12554LIBS=$ac_check_lib_save_LIBS
12555fi
12556{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
12557echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
12558if test $ac_cv_lib_gen_dirname = yes; then
12559
12560 { echo "$as_me:$LINENO: checking for broken dirname" >&5
12561echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
12562if test "${ac_cv_have_broken_dirname+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565
12566 save_LIBS="$LIBS"
12567 LIBS="$LIBS -lgen"
12568 if test "$cross_compiling" = yes; then
12569 ac_cv_have_broken_dirname="no"
12570else
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
12578#include <libgen.h>
12579#include <string.h>
12580
12581int main(int argc, char **argv) {
12582 char *s, buf[32];
12583
12584 strncpy(buf,"/etc", 32);
12585 s = dirname(buf);
12586 if (!s || strncmp(s, "/", 32) != 0) {
12587 exit(1);
12588 } else {
12589 exit(0);
12590 }
12591}
12592
12593_ACEOF
12594rm -f conftest$ac_exeext
12595if { (ac_try="$ac_link"
12596case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_have_broken_dirname="no"
12615else
12616 echo "$as_me: program exited with status $ac_status" >&5
12617echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620( exit $ac_status )
12621 ac_cv_have_broken_dirname="yes"
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624fi
12625
12626
12627 LIBS="$save_LIBS"
12628
12629fi
12630{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
12631echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
12632 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
12633 LIBS="$LIBS -lgen"
12634 cat >>confdefs.h <<\_ACEOF
12635#define HAVE_DIRNAME 1
12636_ACEOF
12637
12638
12639for ac_header in libgen.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647fi
12648ac_res=`eval echo '${'$as_ac_Header'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650echo "${ECHO_T}$ac_res" >&6; }
12651else
12652 # Is the header compilable?
12653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
12662#include <$ac_header>
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (ac_try="$ac_compile"
12666case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_compile") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_c_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest.$ac_objext; then
12681 ac_header_compiler=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_header_compiler=no
12687fi
12688
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12691echo "${ECHO_T}$ac_header_compiler" >&6; }
12692
12693# Is the header present?
12694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#include <$ac_header>
12703_ACEOF
12704if { (ac_try="$ac_cpp conftest.$ac_ext"
12705case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 }; then
12720 ac_header_preproc=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 ac_header_preproc=no
12726fi
12727
12728rm -f conftest.err conftest.$ac_ext
12729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730echo "${ECHO_T}$ac_header_preproc" >&6; }
12731
12732# So? What about this header?
12733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12734 yes:no: )
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12739 ac_header_preproc=yes
12740 ;;
12741 no:yes:* )
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12754 ( cat <<\_ASBOX
12755## ------------------------------------------- ##
12756## Report this to openssh-unix-dev@mindrot.org ##
12757## ------------------------------------------- ##
12758_ASBOX
12759 ) | sed "s/^/$as_me: WARNING: /" >&2
12760 ;;
12761esac
12762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 eval "$as_ac_Header=\$ac_header_preproc"
12768fi
12769ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771echo "${ECHO_T}$ac_res" >&6; }
12772
12773fi
12774if test `eval echo '${'$as_ac_Header'}'` = yes; then
12775 cat >>confdefs.h <<_ACEOF
12776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12777_ACEOF
12778
12779fi
12780
12781done
12782
12783 fi
12784
12785fi
12786
12787
12788fi
12789done
12790
12791
12792{ echo "$as_me:$LINENO: checking for getspnam" >&5
12793echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
12794if test "${ac_cv_func_getspnam+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805#define getspnam innocuous_getspnam
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char getspnam (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef getspnam
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char getspnam ();
12827/* The GNU C library defines this for functions which it implements
12828 to always fail with ENOSYS. Some functions are actually named
12829 something starting with __ and the normal name is an alias. */
12830#if defined __stub_getspnam || defined __stub___getspnam
12831choke me
12832#endif
12833
12834int
12835main ()
12836{
12837return getspnam ();
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext &&
12859 $as_test_x conftest$ac_exeext; then
12860 ac_cv_func_getspnam=yes
12861else
12862 echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_func_getspnam=no
12866fi
12867
12868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869 conftest$ac_exeext conftest.$ac_ext
12870fi
12871{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
12872echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
12873if test $ac_cv_func_getspnam = yes; then
12874 :
12875else
12876 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12877echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
12878if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lgen $LIBS"
12883cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889
12890/* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12893#ifdef __cplusplus
12894extern "C"
12895#endif
12896char getspnam ();
12897int
12898main ()
12899{
12900return getspnam ();
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext &&
12922 $as_test_x conftest$ac_exeext; then
12923 ac_cv_lib_gen_getspnam=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_cv_lib_gen_getspnam=no
12929fi
12930
12931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932 conftest$ac_exeext conftest.$ac_ext
12933LIBS=$ac_check_lib_save_LIBS
12934fi
12935{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12936echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
12937if test $ac_cv_lib_gen_getspnam = yes; then
12938 LIBS="$LIBS -lgen"
12939fi
12940
12941fi
12942
12943{ echo "$as_me:$LINENO: checking for library containing basename" >&5
12944echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
12945if test "${ac_cv_search_basename+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 ac_func_search_save_LIBS=$LIBS
12949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char basename ();
12963int
12964main ()
12965{
12966return basename ();
12967 ;
12968 return 0;
12969}
12970_ACEOF
12971for ac_lib in '' gen; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12974 else
12975 ac_res=-l$ac_lib
12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12977 fi
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext &&
12995 $as_test_x conftest$ac_exeext; then
12996 ac_cv_search_basename=$ac_res
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002fi
13003
13004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext
13006 if test "${ac_cv_search_basename+set}" = set; then
13007 break
13008fi
13009done
13010if test "${ac_cv_search_basename+set}" = set; then
13011 :
13012else
13013 ac_cv_search_basename=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
13019echo "${ECHO_T}$ac_cv_search_basename" >&6; }
13020ac_res=$ac_cv_search_basename
13021if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_BASENAME 1
13026_ACEOF
13027
13028fi
13029
13030
13031
13032# Check whether --with-zlib was given.
13033if test "${with_zlib+set}" = set; then
13034 withval=$with_zlib; if test "x$withval" = "xno" ; then
13035 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
13036echo "$as_me: error: *** zlib is required ***" >&2;}
13037 { (exit 1); exit 1; }; }
13038 elif test "x$withval" != "xyes"; then
13039 if test -d "$withval/lib"; then
13040 if test -n "${need_dash_r}"; then
13041 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13042 else
13043 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13044 fi
13045 else
13046 if test -n "${need_dash_r}"; then
13047 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13048 else
13049 LDFLAGS="-L${withval} ${LDFLAGS}"
13050 fi
13051 fi
13052 if test -d "$withval/include"; then
13053 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13054 else
13055 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13056 fi
13057 fi
13058
13059fi
13060
13061
13062if test "${ac_cv_header_zlib_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for zlib.h" >&5
13064echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13065if test "${ac_cv_header_zlib_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067fi
13068{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13069echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13070else
13071 # Is the header compilable?
13072{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13073echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080$ac_includes_default
13081#include <zlib.h>
13082_ACEOF
13083rm -f conftest.$ac_objext
13084if { (ac_try="$ac_compile"
13085case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13101else
13102 echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_header_compiler=no
13106fi
13107
13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6; }
13111
13112# Is the header present?
13113{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13114echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121#include <zlib.h>
13122_ACEOF
13123if { (ac_try="$ac_cpp conftest.$ac_ext"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null && {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 }; then
13139 ac_header_preproc=yes
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_header_preproc=no
13145fi
13146
13147rm -f conftest.err conftest.$ac_ext
13148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149echo "${ECHO_T}$ac_header_preproc" >&6; }
13150
13151# So? What about this header?
13152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
13154 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13157echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
13159 ;;
13160 no:yes:* )
13161 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13162echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13164echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13166echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13168echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13170echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13172echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13173 ( cat <<\_ASBOX
13174## ------------------------------------------- ##
13175## Report this to openssh-unix-dev@mindrot.org ##
13176## ------------------------------------------- ##
13177_ASBOX
13178 ) | sed "s/^/$as_me: WARNING: /" >&2
13179 ;;
13180esac
13181{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13182echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13183if test "${ac_cv_header_zlib_h+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186 ac_cv_header_zlib_h=$ac_header_preproc
13187fi
13188{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13189echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13190
13191fi
13192if test $ac_cv_header_zlib_h = yes; then
13193 :
13194else
13195 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13196echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13197 { (exit 1); exit 1; }; }
13198fi
13199
13200
13201
13202{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13203echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
13204if test "${ac_cv_lib_z_deflate+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lz $LIBS"
13209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char deflate ();
13223int
13224main ()
13225{
13226return deflate ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext &&
13248 $as_test_x conftest$ac_exeext; then
13249 ac_cv_lib_z_deflate=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_lib_z_deflate=no
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13258 conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13262echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
13263if test $ac_cv_lib_z_deflate = yes; then
13264 cat >>confdefs.h <<_ACEOF
13265#define HAVE_LIBZ 1
13266_ACEOF
13267
13268 LIBS="-lz $LIBS"
13269
13270else
13271
13272 saved_CPPFLAGS="$CPPFLAGS"
13273 saved_LDFLAGS="$LDFLAGS"
13274 save_LIBS="$LIBS"
13275 if test -n "${need_dash_r}"; then
13276 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
13277 else
13278 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
13279 fi
13280 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
13281 LIBS="$LIBS -lz"
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char deflate ();
13296int
13297main ()
13298{
13299return deflate ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest$ac_exeext &&
13321 $as_test_x conftest$ac_exeext; then
13322 cat >>confdefs.h <<\_ACEOF
13323#define HAVE_LIBZ 1
13324_ACEOF
13325
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13332echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13333 { (exit 1); exit 1; }; }
13334
13335
13336fi
13337
13338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339 conftest$ac_exeext conftest.$ac_ext
13340
13341
13342fi
13343
13344
13345
13346# Check whether --with-zlib-version-check was given.
13347if test "${with_zlib_version_check+set}" = set; then
13348 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
13349 zlib_check_nonfatal=1
13350 fi
13351
13352
13353fi
13354
13355
13356{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
13357echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
13358if test "$cross_compiling" = yes; then
13359 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
13360echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
13361
13362else
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369
13370#include <stdio.h>
13371#include <stdlib.h>
13372#include <zlib.h>
13373
13374int
13375main ()
13376{
13377
13378 int a=0, b=0, c=0, d=0, n, v;
13379 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
13380 if (n != 3 && n != 4)
13381 exit(1);
13382 v = a*1000000 + b*10000 + c*100 + d;
13383 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
13384
13385 /* 1.1.4 is OK */
13386 if (a == 1 && b == 1 && c >= 4)
13387 exit(0);
13388
13389 /* 1.2.3 and up are OK */
13390 if (v >= 1020300)
13391 exit(0);
13392
13393 exit(2);
13394
13395 ;
13396 return 0;
13397}
13398_ACEOF
13399rm -f conftest$ac_exeext
13400if { (ac_try="$ac_link"
13401case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 { echo "$as_me:$LINENO: result: no" >&5
13420echo "${ECHO_T}no" >&6; }
13421else
13422 echo "$as_me: program exited with status $ac_status" >&5
13423echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426( exit $ac_status )
13427 { echo "$as_me:$LINENO: result: yes" >&5
13428echo "${ECHO_T}yes" >&6; }
13429 if test -z "$zlib_check_nonfatal" ; then
13430 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
13431Your reported zlib version has known security problems. It's possible your
13432vendor has fixed these problems without changing the version number. If you
13433are sure this is the case, you can disable the check by running
13434\"./configure --without-zlib-version-check\".
13435If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13436See http://www.gzip.org/zlib/ for details." >&5
13437echo "$as_me: error: *** zlib too old - check config.log ***
13438Your reported zlib version has known security problems. It's possible your
13439vendor has fixed these problems without changing the version number. If you
13440are sure this is the case, you can disable the check by running
13441\"./configure --without-zlib-version-check\".
13442If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13443See http://www.gzip.org/zlib/ for details." >&2;}
13444 { (exit 1); exit 1; }; }
13445 else
13446 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
13447echo "$as_me: WARNING: zlib version may have security problems" >&2;}
13448 fi
13449
13450fi
13451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13452fi
13453
13454
13455
13456{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13457echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13458if test "${ac_cv_func_strcasecmp+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13469#define strcasecmp innocuous_strcasecmp
13470
13471/* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char strcasecmp (); below.
13473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 <limits.h> exists even on freestanding compilers. */
13475
13476#ifdef __STDC__
13477# include <limits.h>
13478#else
13479# include <assert.h>
13480#endif
13481
13482#undef strcasecmp
13483
13484/* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487#ifdef __cplusplus
13488extern "C"
13489#endif
13490char strcasecmp ();
13491/* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494#if defined __stub_strcasecmp || defined __stub___strcasecmp
13495choke me
13496#endif
13497
13498int
13499main ()
13500{
13501return strcasecmp ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (ac_try="$ac_link"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest$ac_exeext &&
13523 $as_test_x conftest$ac_exeext; then
13524 ac_cv_func_strcasecmp=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_func_strcasecmp=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534fi
13535{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13536echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13537if test $ac_cv_func_strcasecmp = yes; then
13538 :
13539else
13540 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13541echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
13542if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 ac_check_lib_save_LIBS=$LIBS
13546LIBS="-lresolv $LIBS"
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char strcasecmp ();
13561int
13562main ()
13563{
13564return strcasecmp ();
13565 ;
13566 return 0;
13567}
13568_ACEOF
13569rm -f conftest.$ac_objext conftest$ac_exeext
13570if { (ac_try="$ac_link"
13571case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_resolv_strcasecmp=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_lib_resolv_strcasecmp=no
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13600echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
13601if test $ac_cv_lib_resolv_strcasecmp = yes; then
13602 LIBS="$LIBS -lresolv"
13603fi
13604
13605
13606fi
13607
13608
13609for ac_func in utimes
13610do
13611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13625#define $ac_func innocuous_$ac_func
13626
13627/* System header to define __stub macros and hopefully few prototypes,
13628 which can conflict with char $ac_func (); below.
13629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630 <limits.h> exists even on freestanding compilers. */
13631
13632#ifdef __STDC__
13633# include <limits.h>
13634#else
13635# include <assert.h>
13636#endif
13637
13638#undef $ac_func
13639
13640/* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13643#ifdef __cplusplus
13644extern "C"
13645#endif
13646char $ac_func ();
13647/* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650#if defined __stub_$ac_func || defined __stub___$ac_func
13651choke me
13652#endif
13653
13654int
13655main ()
13656{
13657return $ac_func ();
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (ac_try="$ac_link"
13664case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest$ac_exeext &&
13679 $as_test_x conftest$ac_exeext; then
13680 eval "$as_ac_var=yes"
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 eval "$as_ac_var=no"
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13690fi
13691ac_res=`eval echo '${'$as_ac_var'}'`
13692 { echo "$as_me:$LINENO: result: $ac_res" >&5
13693echo "${ECHO_T}$ac_res" >&6; }
13694if test `eval echo '${'$as_ac_var'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697_ACEOF
13698
13699else
13700 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
13701echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
13702if test "${ac_cv_lib_c89_utimes+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705 ac_check_lib_save_LIBS=$LIBS
13706LIBS="-lc89 $LIBS"
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char utimes ();
13721int
13722main ()
13723{
13724return utimes ();
13725 ;
13726 return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest$ac_exeext &&
13746 $as_test_x conftest$ac_exeext; then
13747 ac_cv_lib_c89_utimes=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_cv_lib_c89_utimes=no
13753fi
13754
13755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13756 conftest$ac_exeext conftest.$ac_ext
13757LIBS=$ac_check_lib_save_LIBS
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
13760echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
13761if test $ac_cv_lib_c89_utimes = yes; then
13762 cat >>confdefs.h <<\_ACEOF
13763#define HAVE_UTIMES 1
13764_ACEOF
13765
13766 LIBS="$LIBS -lc89"
13767fi
13768
13769
13770fi
13771done
13772
13773
13774
13775
13776for ac_header in bsd/libutil.h libutil.h
13777do
13778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784fi
13785ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787echo "${ECHO_T}$ac_res" >&6; }
13788else
13789 # Is the header compilable?
13790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798$ac_includes_default
13799#include <$ac_header>
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_header_compiler=no
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828echo "${ECHO_T}$ac_header_compiler" >&6; }
13829
13830# Is the header present?
13831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839#include <$ac_header>
13840_ACEOF
13841if { (ac_try="$ac_cpp conftest.$ac_ext"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_header_preproc=no
13863fi
13864
13865rm -f conftest.err conftest.$ac_ext
13866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867echo "${ECHO_T}$ac_header_preproc" >&6; }
13868
13869# So? What about this header?
13870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13877 ;;
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13891 ( cat <<\_ASBOX
13892## ------------------------------------------- ##
13893## Report this to openssh-unix-dev@mindrot.org ##
13894## ------------------------------------------- ##
13895_ASBOX
13896 ) | sed "s/^/$as_me: WARNING: /" >&2
13897 ;;
13898esac
13899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 eval "$as_ac_Header=\$ac_header_preproc"
13905fi
13906ac_res=`eval echo '${'$as_ac_Header'}'`
13907 { echo "$as_me:$LINENO: result: $ac_res" >&5
13908echo "${ECHO_T}$ac_res" >&6; }
13909
13910fi
13911if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917
13918done
13919
13920{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
13921echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
13922if test "${ac_cv_search_fmt_scaled+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925 ac_func_search_save_LIBS=$LIBS
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char fmt_scaled ();
13940int
13941main ()
13942{
13943return fmt_scaled ();
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948for ac_lib in '' util bsd; do
13949 if test -z "$ac_lib"; then
13950 ac_res="none required"
13951 else
13952 ac_res=-l$ac_lib
13953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13954 fi
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (ac_try="$ac_link"
13957case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext &&
13972 $as_test_x conftest$ac_exeext; then
13973 ac_cv_search_fmt_scaled=$ac_res
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979fi
13980
13981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982 conftest$ac_exeext
13983 if test "${ac_cv_search_fmt_scaled+set}" = set; then
13984 break
13985fi
13986done
13987if test "${ac_cv_search_fmt_scaled+set}" = set; then
13988 :
13989else
13990 ac_cv_search_fmt_scaled=no
13991fi
13992rm conftest.$ac_ext
13993LIBS=$ac_func_search_save_LIBS
13994fi
13995{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
13996echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
13997ac_res=$ac_cv_search_fmt_scaled
13998if test "$ac_res" != no; then
13999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
14004echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
14005if test "${ac_cv_search_scan_scaled+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 ac_func_search_save_LIBS=$LIBS
14009cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015
14016/* Override any GCC internal prototype to avoid an error.
14017 Use char because int might match the return type of a GCC
14018 builtin and then its argument prototype would still apply. */
14019#ifdef __cplusplus
14020extern "C"
14021#endif
14022char scan_scaled ();
14023int
14024main ()
14025{
14026return scan_scaled ();
14027 ;
14028 return 0;
14029}
14030_ACEOF
14031for ac_lib in '' util bsd; do
14032 if test -z "$ac_lib"; then
14033 ac_res="none required"
14034 else
14035 ac_res=-l$ac_lib
14036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14037 fi
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039if { (ac_try="$ac_link"
14040case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14043esac
14044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_link") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } && {
14052 test -z "$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14054 } && test -s conftest$ac_exeext &&
14055 $as_test_x conftest$ac_exeext; then
14056 ac_cv_search_scan_scaled=$ac_res
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062fi
14063
14064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14065 conftest$ac_exeext
14066 if test "${ac_cv_search_scan_scaled+set}" = set; then
14067 break
14068fi
14069done
14070if test "${ac_cv_search_scan_scaled+set}" = set; then
14071 :
14072else
14073 ac_cv_search_scan_scaled=no
14074fi
14075rm conftest.$ac_ext
14076LIBS=$ac_func_search_save_LIBS
14077fi
14078{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
14079echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
14080ac_res=$ac_cv_search_scan_scaled
14081if test "$ac_res" != no; then
14082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14083
14084fi
14085
14086{ echo "$as_me:$LINENO: checking for library containing login" >&5
14087echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
14088if test "${ac_cv_search_login+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 ac_func_search_save_LIBS=$LIBS
14092cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
14098
14099/* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102#ifdef __cplusplus
14103extern "C"
14104#endif
14105char login ();
14106int
14107main ()
14108{
14109return login ();
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114for ac_lib in '' util bsd; do
14115 if test -z "$ac_lib"; then
14116 ac_res="none required"
14117 else
14118 ac_res=-l$ac_lib
14119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14120 fi
14121 rm -f conftest.$ac_objext conftest$ac_exeext
14122if { (ac_try="$ac_link"
14123case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>conftest.er1
14129 ac_status=$?
14130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } && {
14135 test -z "$ac_c_werror_flag" ||
14136 test ! -s conftest.err
14137 } && test -s conftest$ac_exeext &&
14138 $as_test_x conftest$ac_exeext; then
14139 ac_cv_search_login=$ac_res
14140else
14141 echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144
14145fi
14146
14147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14148 conftest$ac_exeext
14149 if test "${ac_cv_search_login+set}" = set; then
14150 break
14151fi
14152done
14153if test "${ac_cv_search_login+set}" = set; then
14154 :
14155else
14156 ac_cv_search_login=no
14157fi
14158rm conftest.$ac_ext
14159LIBS=$ac_func_search_save_LIBS
14160fi
14161{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
14162echo "${ECHO_T}$ac_cv_search_login" >&6; }
14163ac_res=$ac_cv_search_login
14164if test "$ac_res" != no; then
14165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14166
14167fi
14168
14169{ echo "$as_me:$LINENO: checking for library containing logout" >&5
14170echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
14171if test "${ac_cv_search_logout+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 ac_func_search_save_LIBS=$LIBS
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char logout ();
14189int
14190main ()
14191{
14192return logout ();
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197for ac_lib in '' util bsd; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14200 else
14201 ac_res=-l$ac_lib
14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14203 fi
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest$ac_exeext &&
14221 $as_test_x conftest$ac_exeext; then
14222 ac_cv_search_logout=$ac_res
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228fi
14229
14230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14231 conftest$ac_exeext
14232 if test "${ac_cv_search_logout+set}" = set; then
14233 break
14234fi
14235done
14236if test "${ac_cv_search_logout+set}" = set; then
14237 :
14238else
14239 ac_cv_search_logout=no
14240fi
14241rm conftest.$ac_ext
14242LIBS=$ac_func_search_save_LIBS
14243fi
14244{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
14245echo "${ECHO_T}$ac_cv_search_logout" >&6; }
14246ac_res=$ac_cv_search_logout
14247if test "$ac_res" != no; then
14248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250fi
14251
14252{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
14253echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
14254if test "${ac_cv_search_logwtmp+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 ac_func_search_save_LIBS=$LIBS
14258cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char logwtmp ();
14272int
14273main ()
14274{
14275return logwtmp ();
14276 ;
14277 return 0;
14278}
14279_ACEOF
14280for ac_lib in '' util bsd; do
14281 if test -z "$ac_lib"; then
14282 ac_res="none required"
14283 else
14284 ac_res=-l$ac_lib
14285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14286 fi
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest$ac_exeext &&
14304 $as_test_x conftest$ac_exeext; then
14305 ac_cv_search_logwtmp=$ac_res
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext
14315 if test "${ac_cv_search_logwtmp+set}" = set; then
14316 break
14317fi
14318done
14319if test "${ac_cv_search_logwtmp+set}" = set; then
14320 :
14321else
14322 ac_cv_search_logwtmp=no
14323fi
14324rm conftest.$ac_ext
14325LIBS=$ac_func_search_save_LIBS
14326fi
14327{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
14328echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
14329ac_res=$ac_cv_search_logwtmp
14330if test "$ac_res" != no; then
14331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14332
14333fi
14334
14335{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
14336echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
14337if test "${ac_cv_search_openpty+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339else
14340 ac_func_search_save_LIBS=$LIBS
14341cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347
14348/* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351#ifdef __cplusplus
14352extern "C"
14353#endif
14354char openpty ();
14355int
14356main ()
14357{
14358return openpty ();
14359 ;
14360 return 0;
14361}
14362_ACEOF
14363for ac_lib in '' util bsd; do
14364 if test -z "$ac_lib"; then
14365 ac_res="none required"
14366 else
14367 ac_res=-l$ac_lib
14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14369 fi
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371if { (ac_try="$ac_link"
14372case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext &&
14387 $as_test_x conftest$ac_exeext; then
14388 ac_cv_search_openpty=$ac_res
14389else
14390 echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393
14394fi
14395
14396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext
14398 if test "${ac_cv_search_openpty+set}" = set; then
14399 break
14400fi
14401done
14402if test "${ac_cv_search_openpty+set}" = set; then
14403 :
14404else
14405 ac_cv_search_openpty=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
14411echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
14412ac_res=$ac_cv_search_openpty
14413if test "$ac_res" != no; then
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
14419echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
14420if test "${ac_cv_search_updwtmp+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423 ac_func_search_save_LIBS=$LIBS
14424cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h. */
14430
14431/* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434#ifdef __cplusplus
14435extern "C"
14436#endif
14437char updwtmp ();
14438int
14439main ()
14440{
14441return updwtmp ();
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446for ac_lib in '' util bsd; do
14447 if test -z "$ac_lib"; then
14448 ac_res="none required"
14449 else
14450 ac_res=-l$ac_lib
14451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14452 fi
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454if { (ac_try="$ac_link"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext &&
14470 $as_test_x conftest$ac_exeext; then
14471 ac_cv_search_updwtmp=$ac_res
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477fi
14478
14479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext
14481 if test "${ac_cv_search_updwtmp+set}" = set; then
14482 break
14483fi
14484done
14485if test "${ac_cv_search_updwtmp+set}" = set; then
14486 :
14487else
14488 ac_cv_search_updwtmp=no
14489fi
14490rm conftest.$ac_ext
14491LIBS=$ac_func_search_save_LIBS
14492fi
14493{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
14494echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
14495ac_res=$ac_cv_search_updwtmp
14496if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499fi
14500
14501
14502
14503
14504
14505
14506
14507
14508for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
14509do
14510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524#define $ac_func innocuous_$ac_func
14525
14526/* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14530
14531#ifdef __STDC__
14532# include <limits.h>
14533#else
14534# include <assert.h>
14535#endif
14536
14537#undef $ac_func
14538
14539/* Override any GCC internal prototype to avoid an error.
14540 Use char because int might match the return type of a GCC
14541 builtin and then its argument prototype would still apply. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545char $ac_func ();
14546/* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549#if defined __stub_$ac_func || defined __stub___$ac_func
14550choke me
14551#endif
14552
14553int
14554main ()
14555{
14556return $ac_func ();
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (ac_try="$ac_link"
14563case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 eval "$as_ac_var=yes"
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 eval "$as_ac_var=no"
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589fi
14590ac_res=`eval echo '${'$as_ac_var'}'`
14591 { echo "$as_me:$LINENO: result: $ac_res" >&5
14592echo "${ECHO_T}$ac_res" >&6; }
14593if test `eval echo '${'$as_ac_var'}'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596_ACEOF
14597
14598fi
14599done
14600
14601
14602# On some platforms, inet_ntop may be found in libresolv or libnsl.
14603{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
14604echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
14605if test "${ac_cv_search_inet_ntop+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 ac_func_search_save_LIBS=$LIBS
14609cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char inet_ntop ();
14623int
14624main ()
14625{
14626return inet_ntop ();
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631for ac_lib in '' resolv nsl; do
14632 if test -z "$ac_lib"; then
14633 ac_res="none required"
14634 else
14635 ac_res=-l$ac_lib
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 fi
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639if { (ac_try="$ac_link"
14640case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 ac_cv_search_inet_ntop=$ac_res
14657else
14658 echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662fi
14663
14664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665 conftest$ac_exeext
14666 if test "${ac_cv_search_inet_ntop+set}" = set; then
14667 break
14668fi
14669done
14670if test "${ac_cv_search_inet_ntop+set}" = set; then
14671 :
14672else
14673 ac_cv_search_inet_ntop=no
14674fi
14675rm conftest.$ac_ext
14676LIBS=$ac_func_search_save_LIBS
14677fi
14678{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
14679echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
14680ac_res=$ac_cv_search_inet_ntop
14681if test "$ac_res" != no; then
14682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14683
14684fi
14685
14686
14687
14688for ac_func in strftime
14689do
14690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14704#define $ac_func innocuous_$ac_func
14705
14706/* System header to define __stub macros and hopefully few prototypes,
14707 which can conflict with char $ac_func (); below.
14708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709 <limits.h> exists even on freestanding compilers. */
14710
14711#ifdef __STDC__
14712# include <limits.h>
14713#else
14714# include <assert.h>
14715#endif
14716
14717#undef $ac_func
14718
14719/* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14722#ifdef __cplusplus
14723extern "C"
14724#endif
14725char $ac_func ();
14726/* The GNU C library defines this for functions which it implements
14727 to always fail with ENOSYS. Some functions are actually named
14728 something starting with __ and the normal name is an alias. */
14729#if defined __stub_$ac_func || defined __stub___$ac_func
14730choke me
14731#endif
14732
14733int
14734main ()
14735{
14736return $ac_func ();
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext conftest$ac_exeext
14742if { (ac_try="$ac_link"
14743case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_link") 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } && {
14755 test -z "$ac_c_werror_flag" ||
14756 test ! -s conftest.err
14757 } && test -s conftest$ac_exeext &&
14758 $as_test_x conftest$ac_exeext; then
14759 eval "$as_ac_var=yes"
14760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 eval "$as_ac_var=no"
14765fi
14766
14767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768 conftest$ac_exeext conftest.$ac_ext
14769fi
14770ac_res=`eval echo '${'$as_ac_var'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773if test `eval echo '${'$as_ac_var'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776_ACEOF
14777
14778else
14779 # strftime is in -lintl on SCO UNIX.
14780{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14781echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14782if test "${ac_cv_lib_intl_strftime+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 ac_check_lib_save_LIBS=$LIBS
14786LIBS="-lintl $LIBS"
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797#ifdef __cplusplus
14798extern "C"
14799#endif
14800char strftime ();
14801int
14802main ()
14803{
14804return strftime ();
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
14810if { (ac_try="$ac_link"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_intl_strftime=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 ac_cv_lib_intl_strftime=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837LIBS=$ac_check_lib_save_LIBS
14838fi
14839{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14840echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14841if test $ac_cv_lib_intl_strftime = yes; then
14842 cat >>confdefs.h <<\_ACEOF
14843#define HAVE_STRFTIME 1
14844_ACEOF
14845
14846LIBS="-lintl $LIBS"
14847fi
14848
14849fi
14850done
14851
14852
14853# Check for ALTDIRFUNC glob() extension
14854{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
14855echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862
14863 #include <glob.h>
14864 #ifdef GLOB_ALTDIRFUNC
14865 FOUNDIT
14866 #endif
14867
14868_ACEOF
14869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "FOUNDIT" >/dev/null 2>&1; then
14871
14872
14873cat >>confdefs.h <<\_ACEOF
14874#define GLOB_HAS_ALTDIRFUNC 1
14875_ACEOF
14876
14877 { echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6; }
14879
14880else
14881
14882 { echo "$as_me:$LINENO: result: no" >&5
14883echo "${ECHO_T}no" >&6; }
14884
14885
14886fi
14887rm -f conftest*
14888
14889
14890# Check for g.gl_matchc glob() extension
14891{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
14892echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
14899 #include <glob.h>
14900int
14901main ()
14902{
14903 glob_t g; g.gl_matchc = 1;
14904 ;
14905 return 0;
14906}
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (ac_try="$ac_compile"
14910case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_compile") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest.$ac_objext; then
14925
14926
14927cat >>confdefs.h <<\_ACEOF
14928#define GLOB_HAS_GL_MATCHC 1
14929_ACEOF
14930
14931 { echo "$as_me:$LINENO: result: yes" >&5
14932echo "${ECHO_T}yes" >&6; }
14933
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939 { echo "$as_me:$LINENO: result: no" >&5
14940echo "${ECHO_T}no" >&6; }
14941
14942fi
14943
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945
14946# Check for g.gl_statv glob() extension
14947{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
14948echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
14949cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
14955 #include <glob.h>
14956int
14957main ()
14958{
14959
14960#ifndef GLOB_KEEPSTAT
14961#error "glob does not support GLOB_KEEPSTAT extension"
14962#endif
14963glob_t g;
14964g.gl_statv = NULL;
14965
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
14971if { (ac_try="$ac_compile"
14972case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.$ac_objext; then
14987
14988
14989cat >>confdefs.h <<\_ACEOF
14990#define GLOB_HAS_GL_STATV 1
14991_ACEOF
14992
14993 { echo "$as_me:$LINENO: result: yes" >&5
14994echo "${ECHO_T}yes" >&6; }
14995
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000
15001 { echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6; }
15003
15004
15005fi
15006
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008
15009{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
15010echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
15011if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020#include <glob.h>
15021
15022int
15023main ()
15024{
15025#ifndef GLOB_NOMATCH
15026 (void) GLOB_NOMATCH;
15027#endif
15028
15029 ;
15030 return 0;
15031}
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (ac_try="$ac_compile"
15035case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest.$ac_objext; then
15050 ac_cv_have_decl_GLOB_NOMATCH=yes
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 ac_cv_have_decl_GLOB_NOMATCH=no
15056fi
15057
15058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
15060{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
15061echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
15062if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
15063
15064cat >>confdefs.h <<_ACEOF
15065#define HAVE_DECL_GLOB_NOMATCH 1
15066_ACEOF
15067
15068
15069else
15070 cat >>confdefs.h <<_ACEOF
15071#define HAVE_DECL_GLOB_NOMATCH 0
15072_ACEOF
15073
15074
15075fi
15076
15077
15078
15079{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
15080echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
15081if test "$cross_compiling" = yes; then
15082
15083 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15084echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15085 cat >>confdefs.h <<\_ACEOF
15086#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15087_ACEOF
15088
15089
15090
15091else
15092 cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098
15099#include <sys/types.h>
15100#include <dirent.h>
15101int
15102main ()
15103{
15104
15105 struct dirent d;
15106 exit(sizeof(d.d_name)<=sizeof(char));
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (ac_try="$ac_link"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 { echo "$as_me:$LINENO: result: yes" >&5
15133echo "${ECHO_T}yes" >&6; }
15134else
15135 echo "$as_me: program exited with status $ac_status" >&5
15136echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139( exit $ac_status )
15140
15141 { echo "$as_me:$LINENO: result: no" >&5
15142echo "${ECHO_T}no" >&6; }
15143
15144cat >>confdefs.h <<\_ACEOF
15145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15146_ACEOF
15147
15148
15149fi
15150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151fi
15152
15153
15154
15155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
15157if test -d "/proc/$$/fd" ; then
15158
15159cat >>confdefs.h <<\_ACEOF
15160#define HAVE_PROC_PID 1
15161_ACEOF
15162
15163 { echo "$as_me:$LINENO: result: yes" >&5
15164echo "${ECHO_T}yes" >&6; }
15165else
15166 { echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6; }
15168fi
15169
15170# Check whether user wants S/Key support
15171SKEY_MSG="no"
15172
15173# Check whether --with-skey was given.
15174if test "${with_skey+set}" = set; then
15175 withval=$with_skey;
15176 if test "x$withval" != "xno" ; then
15177
15178 if test "x$withval" != "xyes" ; then
15179 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15180 LDFLAGS="$LDFLAGS -L${withval}/lib"
15181 fi
15182
15183
15184cat >>confdefs.h <<\_ACEOF
15185#define SKEY 1
15186_ACEOF
15187
15188 LIBS="-lskey $LIBS"
15189 SKEY_MSG="yes"
15190
15191 { echo "$as_me:$LINENO: checking for s/key support" >&5
15192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199
15200#include <stdio.h>
15201#include <skey.h>
15202
15203int
15204main ()
15205{
15206
15207 char *ff = skey_keyinfo(""); ff="";
15208 exit(0);
15209
15210 ;
15211 return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext conftest$ac_exeext
15215if { (ac_try="$ac_link"
15216case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 { echo "$as_me:$LINENO: result: yes" >&5
15233echo "${ECHO_T}yes" >&6; }
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238
15239 { echo "$as_me:$LINENO: result: no" >&5
15240echo "${ECHO_T}no" >&6; }
15241 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15242echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15243 { (exit 1); exit 1; }; }
15244
15245fi
15246
15247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
15250echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257
15258#include <stdio.h>
15259#include <skey.h>
15260
15261int
15262main ()
15263{
15264
15265 (void)skeychallenge(NULL,"name","",0);
15266
15267 ;
15268 return 0;
15269}
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (ac_try="$ac_compile"
15273case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_compile") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest.$ac_objext; then
15288
15289 { echo "$as_me:$LINENO: result: yes" >&5
15290echo "${ECHO_T}yes" >&6; }
15291
15292cat >>confdefs.h <<\_ACEOF
15293#define SKEYCHALLENGE_4ARG 1
15294_ACEOF
15295
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300
15301 { echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6; }
15303
15304fi
15305
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 fi
15308
15309
15310fi
15311
15312
15313# Check whether user wants to use ldns
15314LDNS_MSG="no"
15315
15316# Check whether --with-ldns was given.
15317if test "${with_ldns+set}" = set; then
15318 withval=$with_ldns;
15319 if test "x$withval" != "xno" ; then
15320
15321 if test "x$withval" != "xyes" ; then
15322 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15323 LDFLAGS="$LDFLAGS -L${withval}/lib"
15324 fi
15325
15326
15327cat >>confdefs.h <<\_ACEOF
15328#define HAVE_LDNS 1
15329_ACEOF
15330
15331 LIBS="-lldns $LIBS"
15332 LDNS_MSG="yes"
15333
15334 { echo "$as_me:$LINENO: checking for ldns support" >&5
15335echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
15336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342
15343#include <stdio.h>
15344#include <stdlib.h>
15345#include <stdint.h>
15346#include <ldns/ldns.h>
15347int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
15348
15349
15350_ACEOF
15351rm -f conftest.$ac_objext conftest$ac_exeext
15352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } && {
15365 test -z "$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 } && test -s conftest$ac_exeext &&
15368 $as_test_x conftest$ac_exeext; then
15369 { echo "$as_me:$LINENO: result: yes" >&5
15370echo "${ECHO_T}yes" >&6; }
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 { echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6; }
15378 { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15379echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15380 { (exit 1); exit 1; }; }
15381
15382fi
15383
15384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15386 fi
15387
15388
15389fi
15390
15391
15392# Check whether user wants libedit support
15393LIBEDIT_MSG="no"
15394
15395# Check whether --with-libedit was given.
15396if test "${with_libedit+set}" = set; then
15397 withval=$with_libedit; if test "x$withval" != "xno" ; then
15398 if test "x$withval" = "xyes" ; then
15399 if test -n "$ac_tool_prefix"; then
15400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15401set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15404if test "${ac_cv_path_PKGCONFIG+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 case $PKGCONFIG in
15408 [\\/]* | ?:[\\/]*)
15409 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15410 ;;
15411 *)
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415 IFS=$as_save_IFS
15416 test -z "$as_dir" && as_dir=.
15417 for ac_exec_ext in '' $ac_executable_extensions; do
15418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421 break 2
15422 fi
15423done
15424done
15425IFS=$as_save_IFS
15426
15427 ;;
15428esac
15429fi
15430PKGCONFIG=$ac_cv_path_PKGCONFIG
15431if test -n "$PKGCONFIG"; then
15432 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
15433echo "${ECHO_T}$PKGCONFIG" >&6; }
15434else
15435 { echo "$as_me:$LINENO: result: no" >&5
15436echo "${ECHO_T}no" >&6; }
15437fi
15438
15439
15440fi
15441if test -z "$ac_cv_path_PKGCONFIG"; then
15442 ac_pt_PKGCONFIG=$PKGCONFIG
15443 # Extract the first word of "pkg-config", so it can be a program name with args.
15444set dummy pkg-config; ac_word=$2
15445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15447if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 case $ac_pt_PKGCONFIG in
15451 [\\/]* | ?:[\\/]*)
15452 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
15453 ;;
15454 *)
15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458 IFS=$as_save_IFS
15459 test -z "$as_dir" && as_dir=.
15460 for ac_exec_ext in '' $ac_executable_extensions; do
15461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15462 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15464 break 2
15465 fi
15466done
15467done
15468IFS=$as_save_IFS
15469
15470 ;;
15471esac
15472fi
15473ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
15474if test -n "$ac_pt_PKGCONFIG"; then
15475 { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
15476echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
15477else
15478 { echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6; }
15480fi
15481
15482 if test "x$ac_pt_PKGCONFIG" = x; then
15483 PKGCONFIG="no"
15484 else
15485 case $cross_compiling:$ac_tool_warned in
15486yes:)
15487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15488whose name does not start with the host triplet. If you think this
15489configuration is useful to you, please write to autoconf@gnu.org." >&5
15490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15491whose name does not start with the host triplet. If you think this
15492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15493ac_tool_warned=yes ;;
15494esac
15495 PKGCONFIG=$ac_pt_PKGCONFIG
15496 fi
15497else
15498 PKGCONFIG="$ac_cv_path_PKGCONFIG"
15499fi
15500
15501 if test "x$PKGCONFIG" != "xno"; then
15502 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
15503echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
15504 if "$PKGCONFIG" libedit; then
15505 { echo "$as_me:$LINENO: result: yes" >&5
15506echo "${ECHO_T}yes" >&6; }
15507 use_pkgconfig_for_libedit=yes
15508 else
15509 { echo "$as_me:$LINENO: result: no" >&5
15510echo "${ECHO_T}no" >&6; }
15511 fi
15512 fi
15513 else
15514 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15515 if test -n "${need_dash_r}"; then
15516 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15517 else
15518 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15519 fi
15520 fi
15521 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
15522 LIBEDIT=`$PKGCONFIG --libs libedit`
15523 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
15524 else
15525 LIBEDIT="-ledit -lcurses"
15526 fi
15527 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
15528 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
15529echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
15530if test "${ac_cv_lib_edit_el_init+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533 ac_check_lib_save_LIBS=$LIBS
15534LIBS="-ledit $OTHERLIBS
15535 $LIBS"
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542
15543/* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char el_init ();
15550int
15551main ()
15552{
15553return el_init ();
15554 ;
15555 return 0;
15556}
15557_ACEOF
15558rm -f conftest.$ac_objext conftest$ac_exeext
15559if { (ac_try="$ac_link"
15560case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 ac_cv_lib_edit_el_init=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_cv_lib_edit_el_init=no
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586LIBS=$ac_check_lib_save_LIBS
15587fi
15588{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
15589echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
15590if test $ac_cv_lib_edit_el_init = yes; then
15591
15592cat >>confdefs.h <<\_ACEOF
15593#define USE_LIBEDIT 1
15594_ACEOF
15595
15596 LIBEDIT_MSG="yes"
15597
15598
15599else
15600 { { echo "$as_me:$LINENO: error: libedit not found" >&5
15601echo "$as_me: error: libedit not found" >&2;}
15602 { (exit 1); exit 1; }; }
15603fi
15604
15605 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
15606echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613 #include <histedit.h>
15614int
15615main ()
15616{
15617
15618 int i = H_SETSIZE;
15619 el_init("", NULL, NULL, NULL);
15620 exit(0);
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_compile") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest.$ac_objext; then
15643 { echo "$as_me:$LINENO: result: yes" >&5
15644echo "${ECHO_T}yes" >&6; }
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 { echo "$as_me:$LINENO: result: no" >&5
15650echo "${ECHO_T}no" >&6; }
15651 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
15652echo "$as_me: error: libedit version is not compatible" >&2;}
15653 { (exit 1); exit 1; }; }
15654
15655fi
15656
15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 fi
15659
15660fi
15661
15662
15663AUDIT_MODULE=none
15664
15665# Check whether --with-audit was given.
15666if test "${with_audit+set}" = set; then
15667 withval=$with_audit;
15668 { echo "$as_me:$LINENO: checking for supported audit module" >&5
15669echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
15670 case "$withval" in
15671 bsm)
15672 { echo "$as_me:$LINENO: result: bsm" >&5
15673echo "${ECHO_T}bsm" >&6; }
15674 AUDIT_MODULE=bsm
15675
15676for ac_header in bsm/audit.h
15677do
15678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684 cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690
15691#ifdef HAVE_TIME_H
15692# include <time.h>
15693#endif
15694
15695
15696
15697#include <$ac_header>
15698_ACEOF
15699rm -f conftest.$ac_objext
15700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_compile") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest.$ac_objext; then
15716 eval "$as_ac_Header=yes"
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 eval "$as_ac_Header=no"
15722fi
15723
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
15726ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728echo "${ECHO_T}$ac_res" >&6; }
15729if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732_ACEOF
15733
15734else
15735 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
15736echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
15737 { (exit 1); exit 1; }; }
15738fi
15739
15740done
15741
15742
15743{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
15744echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
15745if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748 ac_check_lib_save_LIBS=$LIBS
15749LIBS="-lbsm $LIBS"
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756
15757/* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15760#ifdef __cplusplus
15761extern "C"
15762#endif
15763char getaudit ();
15764int
15765main ()
15766{
15767return getaudit ();
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext conftest$ac_exeext
15773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 ac_cv_lib_bsm_getaudit=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_cv_lib_bsm_getaudit=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15800LIBS=$ac_check_lib_save_LIBS
15801fi
15802{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
15803echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
15804if test $ac_cv_lib_bsm_getaudit = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806#define HAVE_LIBBSM 1
15807_ACEOF
15808
15809 LIBS="-lbsm $LIBS"
15810
15811else
15812 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
15813echo "$as_me: error: BSM enabled and required library not found" >&2;}
15814 { (exit 1); exit 1; }; }
15815fi
15816
15817
15818for ac_func in getaudit
15819do
15820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15834#define $ac_func innocuous_$ac_func
15835
15836/* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func (); below.
15838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15839 <limits.h> exists even on freestanding compilers. */
15840
15841#ifdef __STDC__
15842# include <limits.h>
15843#else
15844# include <assert.h>
15845#endif
15846
15847#undef $ac_func
15848
15849/* Override any GCC internal prototype to avoid an error.
15850 Use char because int might match the return type of a GCC
15851 builtin and then its argument prototype would still apply. */
15852#ifdef __cplusplus
15853extern "C"
15854#endif
15855char $ac_func ();
15856/* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859#if defined __stub_$ac_func || defined __stub___$ac_func
15860choke me
15861#endif
15862
15863int
15864main ()
15865{
15866return $ac_func ();
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (ac_try="$ac_link"
15873case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876esac
15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_link") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext &&
15888 $as_test_x conftest$ac_exeext; then
15889 eval "$as_ac_var=yes"
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 eval "$as_ac_var=no"
15895fi
15896
15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15898 conftest$ac_exeext conftest.$ac_ext
15899fi
15900ac_res=`eval echo '${'$as_ac_var'}'`
15901 { echo "$as_me:$LINENO: result: $ac_res" >&5
15902echo "${ECHO_T}$ac_res" >&6; }
15903if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906_ACEOF
15907
15908else
15909 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
15910echo "$as_me: error: BSM enabled and required function not found" >&2;}
15911 { (exit 1); exit 1; }; }
15912fi
15913done
15914
15915 # These are optional
15916
15917
15918for ac_func in getaudit_addr aug_get_machine
15919do
15920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925else
15926 cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15934#define $ac_func innocuous_$ac_func
15935
15936/* System header to define __stub macros and hopefully few prototypes,
15937 which can conflict with char $ac_func (); below.
15938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15939 <limits.h> exists even on freestanding compilers. */
15940
15941#ifdef __STDC__
15942# include <limits.h>
15943#else
15944# include <assert.h>
15945#endif
15946
15947#undef $ac_func
15948
15949/* Override any GCC internal prototype to avoid an error.
15950 Use char because int might match the return type of a GCC
15951 builtin and then its argument prototype would still apply. */
15952#ifdef __cplusplus
15953extern "C"
15954#endif
15955char $ac_func ();
15956/* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959#if defined __stub_$ac_func || defined __stub___$ac_func
15960choke me
15961#endif
15962
15963int
15964main ()
15965{
15966return $ac_func ();
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext conftest$ac_exeext
15972if { (ac_try="$ac_link"
15973case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_link") 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } && {
15985 test -z "$ac_c_werror_flag" ||
15986 test ! -s conftest.err
15987 } && test -s conftest$ac_exeext &&
15988 $as_test_x conftest$ac_exeext; then
15989 eval "$as_ac_var=yes"
15990else
15991 echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 eval "$as_ac_var=no"
15995fi
15996
15997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998 conftest$ac_exeext conftest.$ac_ext
15999fi
16000ac_res=`eval echo '${'$as_ac_var'}'`
16001 { echo "$as_me:$LINENO: result: $ac_res" >&5
16002echo "${ECHO_T}$ac_res" >&6; }
16003if test `eval echo '${'$as_ac_var'}'` = yes; then
16004 cat >>confdefs.h <<_ACEOF
16005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16006_ACEOF
16007
16008fi
16009done
16010
16011
16012cat >>confdefs.h <<\_ACEOF
16013#define USE_BSM_AUDIT 1
16014_ACEOF
16015
16016 if test "$sol2ver" -ge 11; then
16017 SSHDLIBS="$SSHDLIBS -lscf"
16018
16019cat >>confdefs.h <<\_ACEOF
16020#define BROKEN_BSM_API 1
16021_ACEOF
16022
16023 fi
16024 ;;
16025 linux)
16026 { echo "$as_me:$LINENO: result: linux" >&5
16027echo "${ECHO_T}linux" >&6; }
16028 AUDIT_MODULE=linux
16029
16030for ac_header in libaudit.h
16031do
16032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038fi
16039ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041echo "${ECHO_T}$ac_res" >&6; }
16042else
16043 # Is the header compilable?
16044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053#include <$ac_header>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest.$ac_objext; then
16072 ac_header_compiler=yes
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ac_header_compiler=no
16078fi
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16082echo "${ECHO_T}$ac_header_compiler" >&6; }
16083
16084# Is the header present?
16085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093#include <$ac_header>
16094_ACEOF
16095if { (ac_try="$ac_cpp conftest.$ac_ext"
16096case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } >/dev/null && {
16108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 }; then
16111 ac_header_preproc=yes
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_header_preproc=no
16117fi
16118
16119rm -f conftest.err conftest.$ac_ext
16120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121echo "${ECHO_T}$ac_header_preproc" >&6; }
16122
16123# So? What about this header?
16124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 yes:no: )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130 ac_header_preproc=yes
16131 ;;
16132 no:yes:* )
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145 ( cat <<\_ASBOX
16146## ------------------------------------------- ##
16147## Report this to openssh-unix-dev@mindrot.org ##
16148## ------------------------------------------- ##
16149_ASBOX
16150 ) | sed "s/^/$as_me: WARNING: /" >&2
16151 ;;
16152esac
16153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157else
16158 eval "$as_ac_Header=\$ac_header_preproc"
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163
16164fi
16165if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168_ACEOF
16169
16170fi
16171
16172done
16173
16174 SSHDLIBS="$SSHDLIBS -laudit"
16175
16176cat >>confdefs.h <<\_ACEOF
16177#define USE_LINUX_AUDIT 1
16178_ACEOF
16179
16180 ;;
16181 debug)
16182 AUDIT_MODULE=debug
16183 { echo "$as_me:$LINENO: result: debug" >&5
16184echo "${ECHO_T}debug" >&6; }
16185
16186cat >>confdefs.h <<\_ACEOF
16187#define SSH_AUDIT_EVENTS 1
16188_ACEOF
16189
16190 ;;
16191 no)
16192 { echo "$as_me:$LINENO: result: no" >&5
16193echo "${ECHO_T}no" >&6; }
16194 ;;
16195 *)
16196 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16197echo "$as_me: error: Unknown audit module $withval" >&2;}
16198 { (exit 1); exit 1; }; }
16199 ;;
16200 esac
16201
16202fi
16203
16204
16205
16206# Check whether --with-pie was given.
16207if test "${with_pie+set}" = set; then
16208 withval=$with_pie;
16209 if test "x$withval" = "xno"; then
16210 use_pie=no
16211 fi
16212 if test "x$withval" = "xyes"; then
16213 use_pie=yes
16214 fi
16215
16216
16217fi
16218
16219if test "x$use_pie" = "x"; then
16220 use_pie=no
16221fi
16222if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
16223 # Turn off automatic PIE when toolchain hardening is off.
16224 use_pie=no
16225fi
16226if test "x$use_pie" = "xauto"; then
16227 # Automatic PIE requires gcc >= 4.x
16228 { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
16229echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236
16237#if !defined(__GNUC__) || __GNUC__ < 4
16238#error gcc is too old
16239#endif
16240
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } && {
16256 test -z "$ac_c_werror_flag" ||
16257 test ! -s conftest.err
16258 } && test -s conftest.$ac_objext; then
16259 { echo "$as_me:$LINENO: result: yes" >&5
16260echo "${ECHO_T}yes" >&6; }
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 { echo "$as_me:$LINENO: result: no" >&5
16266echo "${ECHO_T}no" >&6; }
16267 use_pie=no
16268
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273if test "x$use_pie" != "xno"; then
16274 SAVED_CFLAGS="$CFLAGS"
16275 SAVED_LDFLAGS="$LDFLAGS"
16276 {
16277 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
16278echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
16279 saved_CFLAGS="$CFLAGS"
16280 CFLAGS="$CFLAGS $WERROR -fPIE"
16281 _define_flag=""
16282 test "x$_define_flag" = "x" && _define_flag="-fPIE"
16283 cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289
16290#include <stdlib.h>
16291#include <stdio.h>
16292int main(int argc, char **argv) {
16293 /* Some math to catch -ftrapv problems in the toolchain */
16294 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16295 float l = i * 2.1;
16296 double m = l / 0.5;
16297 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16298 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16299 exit(0);
16300}
16301
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320
16321if `grep -i "unrecognized option" conftest.err >/dev/null`
16322then
16323 { echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
16325 CFLAGS="$saved_CFLAGS"
16326else
16327 { echo "$as_me:$LINENO: result: yes" >&5
16328echo "${ECHO_T}yes" >&6; }
16329 CFLAGS="$saved_CFLAGS $_define_flag"
16330fi
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 { echo "$as_me:$LINENO: result: no" >&5
16336echo "${ECHO_T}no" >&6; }
16337 CFLAGS="$saved_CFLAGS"
16338
16339fi
16340
16341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342}
16343 {
16344 { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
16345echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
16346 saved_LDFLAGS="$LDFLAGS"
16347 LDFLAGS="$LDFLAGS $WERROR -pie"
16348 _define_flag=""
16349 test "x$_define_flag" = "x" && _define_flag="-pie"
16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356
16357#include <stdlib.h>
16358#include <stdio.h>
16359int main(int argc, char **argv) {
16360 /* Some math to catch -ftrapv problems in the toolchain */
16361 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16362 float l = i * 2.1;
16363 double m = l / 0.5;
16364 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16365 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16366 exit(0);
16367}
16368
16369_ACEOF
16370rm -f conftest.$ac_objext conftest$ac_exeext
16371if { (ac_try="$ac_link"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389echo "${ECHO_T}yes" >&6; }
16390 LDFLAGS="$saved_LDFLAGS $_define_flag"
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 { echo "$as_me:$LINENO: result: no" >&5
16396echo "${ECHO_T}no" >&6; }
16397 LDFLAGS="$saved_LDFLAGS"
16398
16399fi
16400
16401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403}
16404 # We use both -fPIE and -pie or neither.
16405 { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
16406echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
16407 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
16408 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
16409 { echo "$as_me:$LINENO: result: yes" >&5
16410echo "${ECHO_T}yes" >&6; }
16411 else
16412 { echo "$as_me:$LINENO: result: no" >&5
16413echo "${ECHO_T}no" >&6; }
16414 CFLAGS="$SAVED_CFLAGS"
16415 LDFLAGS="$SAVED_LDFLAGS"
16416 fi
16417fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528for ac_func in \
16529 Blowfish_initstate \
16530 Blowfish_expandstate \
16531 Blowfish_expand0state \
16532 Blowfish_stream2word \
16533 asprintf \
16534 b64_ntop \
16535 __b64_ntop \
16536 b64_pton \
16537 __b64_pton \
16538 bcopy \
16539 bcrypt_pbkdf \
16540 bindresvport_sa \
16541 blf_enc \
16542 cap_rights_limit \
16543 clock \
16544 closefrom \
16545 dirfd \
16546 endgrent \
16547 explicit_bzero \
16548 fchmod \
16549 fchown \
16550 freeaddrinfo \
16551 fstatfs \
16552 fstatvfs \
16553 futimes \
16554 getaddrinfo \
16555 getcwd \
16556 getgrouplist \
16557 getnameinfo \
16558 getopt \
16559 getpeereid \
16560 getpeerucred \
16561 getpgid \
16562 getpgrp \
16563 _getpty \
16564 getrlimit \
16565 getttyent \
16566 glob \
16567 group_from_gid \
16568 inet_aton \
16569 inet_ntoa \
16570 inet_ntop \
16571 innetgr \
16572 login_getcapbool \
16573 mblen \
16574 md5_crypt \
16575 memmove \
16576 memset_s \
16577 mkdtemp \
16578 mmap \
16579 ngetaddrinfo \
16580 nsleep \
16581 ogetaddrinfo \
16582 openlog_r \
16583 poll \
16584 prctl \
16585 pstat \
16586 readpassphrase \
16587 reallocarray \
16588 realpath \
16589 recvmsg \
16590 rresvport_af \
16591 sendmsg \
16592 setdtablesize \
16593 setegid \
16594 setenv \
16595 seteuid \
16596 setgroupent \
16597 setgroups \
16598 setlinebuf \
16599 setlogin \
16600 setpassent\
16601 setpcred \
16602 setproctitle \
16603 setregid \
16604 setreuid \
16605 setrlimit \
16606 setsid \
16607 setvbuf \
16608 sigaction \
16609 sigvec \
16610 snprintf \
16611 socketpair \
16612 statfs \
16613 statvfs \
16614 strdup \
16615 strerror \
16616 strlcat \
16617 strlcpy \
16618 strmode \
16619 strnlen \
16620 strnvis \
16621 strptime \
16622 strtonum \
16623 strtoll \
16624 strtoul \
16625 strtoull \
16626 swap32 \
16627 sysconf \
16628 tcgetpgrp \
16629 timingsafe_bcmp \
16630 truncate \
16631 unsetenv \
16632 updwtmpx \
16633 user_from_uid \
16634 usleep \
16635 vasprintf \
16636 vsnprintf \
16637 waitpid \
16638
16639do
16640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 cat >conftest.$ac_ext <<_ACEOF
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654#define $ac_func innocuous_$ac_func
16655
16656/* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
16660
16661#ifdef __STDC__
16662# include <limits.h>
16663#else
16664# include <assert.h>
16665#endif
16666
16667#undef $ac_func
16668
16669/* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16672#ifdef __cplusplus
16673extern "C"
16674#endif
16675char $ac_func ();
16676/* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679#if defined __stub_$ac_func || defined __stub___$ac_func
16680choke me
16681#endif
16682
16683int
16684main ()
16685{
16686return $ac_func ();
16687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext conftest$ac_exeext
16692if { (ac_try="$ac_link"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest$ac_exeext &&
16708 $as_test_x conftest$ac_exeext; then
16709 eval "$as_ac_var=yes"
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 eval "$as_ac_var=no"
16715fi
16716
16717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16718 conftest$ac_exeext conftest.$ac_ext
16719fi
16720ac_res=`eval echo '${'$as_ac_var'}'`
16721 { echo "$as_me:$LINENO: result: $ac_res" >&5
16722echo "${ECHO_T}$ac_res" >&6; }
16723if test `eval echo '${'$as_ac_var'}'` = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16726_ACEOF
16727
16728fi
16729done
16730
16731
16732cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738 #include <ctype.h>
16739int
16740main ()
16741{
16742 return (isblank('a'));
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext conftest$ac_exeext
16748if { (ac_try="$ac_link"
16749case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest$ac_exeext &&
16764 $as_test_x conftest$ac_exeext; then
16765
16766cat >>confdefs.h <<\_ACEOF
16767#define HAVE_ISBLANK 1
16768_ACEOF
16769
16770
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775
16776fi
16777
16778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16780
16781# PKCS11 depends on OpenSSL.
16782if test "x$openssl" = "xyes" ; then
16783 # PKCS#11 support requires dlopen() and co
16784 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16785echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16786if test "${ac_cv_search_dlopen+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789 ac_func_search_save_LIBS=$LIBS
16790cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796
16797/* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16800#ifdef __cplusplus
16801extern "C"
16802#endif
16803char dlopen ();
16804int
16805main ()
16806{
16807return dlopen ();
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812for ac_lib in '' dl; do
16813 if test -z "$ac_lib"; then
16814 ac_res="none required"
16815 else
16816 ac_res=-l$ac_lib
16817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16818 fi
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820if { (ac_try="$ac_link"
16821case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext &&
16836 $as_test_x conftest$ac_exeext; then
16837 ac_cv_search_dlopen=$ac_res
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842
16843fi
16844
16845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16846 conftest$ac_exeext
16847 if test "${ac_cv_search_dlopen+set}" = set; then
16848 break
16849fi
16850done
16851if test "${ac_cv_search_dlopen+set}" = set; then
16852 :
16853else
16854 ac_cv_search_dlopen=no
16855fi
16856rm conftest.$ac_ext
16857LIBS=$ac_func_search_save_LIBS
16858fi
16859{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16860echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16861ac_res=$ac_cv_search_dlopen
16862if test "$ac_res" != no; then
16863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16864
16865cat >>confdefs.h <<\_ACEOF
16866#define ENABLE_PKCS11
16867_ACEOF
16868
16869
16870fi
16871
16872fi
16873
16874# IRIX has a const char return value for gai_strerror()
16875
16876for ac_func in gai_strerror
16877do
16878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892#define $ac_func innocuous_$ac_func
16893
16894/* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16898
16899#ifdef __STDC__
16900# include <limits.h>
16901#else
16902# include <assert.h>
16903#endif
16904
16905#undef $ac_func
16906
16907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910#ifdef __cplusplus
16911extern "C"
16912#endif
16913char $ac_func ();
16914/* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917#if defined __stub_$ac_func || defined __stub___$ac_func
16918choke me
16919#endif
16920
16921int
16922main ()
16923{
16924return $ac_func ();
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext conftest$ac_exeext
16930if { (ac_try="$ac_link"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext &&
16946 $as_test_x conftest$ac_exeext; then
16947 eval "$as_ac_var=yes"
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 eval "$as_ac_var=no"
16953fi
16954
16955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16957fi
16958ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960echo "${ECHO_T}$ac_res" >&6; }
16961if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964_ACEOF
16965
16966 cat >>confdefs.h <<\_ACEOF
16967#define HAVE_GAI_STRERROR 1
16968_ACEOF
16969
16970 cat >conftest.$ac_ext <<_ACEOF
16971/* confdefs.h. */
16972_ACEOF
16973cat confdefs.h >>conftest.$ac_ext
16974cat >>conftest.$ac_ext <<_ACEOF
16975/* end confdefs.h. */
16976
16977#include <sys/types.h>
16978#include <sys/socket.h>
16979#include <netdb.h>
16980
16981const char *gai_strerror(int);
16982
16983int
16984main ()
16985{
16986
16987 char *str;
16988 str = gai_strerror(0);
16989
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext
16995if { (ac_try="$ac_compile"
16996case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_compile") 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_objext; then
17011
17012
17013cat >>confdefs.h <<\_ACEOF
17014#define HAVE_CONST_GAI_STRERROR_PROTO 1
17015_ACEOF
17016
17017else
17018 echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021
17022fi
17023
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025fi
17026done
17027
17028
17029{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17030echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17031if test "${ac_cv_search_nanosleep+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 ac_func_search_save_LIBS=$LIBS
17035cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041
17042/* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048char nanosleep ();
17049int
17050main ()
17051{
17052return nanosleep ();
17053 ;
17054 return 0;
17055}
17056_ACEOF
17057for ac_lib in '' rt posix4; do
17058 if test -z "$ac_lib"; then
17059 ac_res="none required"
17060 else
17061 ac_res=-l$ac_lib
17062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17063 fi
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && {
17078 test -z "$ac_c_werror_flag" ||
17079 test ! -s conftest.err
17080 } && test -s conftest$ac_exeext &&
17081 $as_test_x conftest$ac_exeext; then
17082 ac_cv_search_nanosleep=$ac_res
17083else
17084 echo "$as_me: failed program was:" >&5
17085sed 's/^/| /' conftest.$ac_ext >&5
17086
17087
17088fi
17089
17090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17091 conftest$ac_exeext
17092 if test "${ac_cv_search_nanosleep+set}" = set; then
17093 break
17094fi
17095done
17096if test "${ac_cv_search_nanosleep+set}" = set; then
17097 :
17098else
17099 ac_cv_search_nanosleep=no
17100fi
17101rm conftest.$ac_ext
17102LIBS=$ac_func_search_save_LIBS
17103fi
17104{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17105echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17106ac_res=$ac_cv_search_nanosleep
17107if test "$ac_res" != no; then
17108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17109
17110cat >>confdefs.h <<\_ACEOF
17111#define HAVE_NANOSLEEP 1
17112_ACEOF
17113
17114fi
17115
17116
17117{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17118echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17119if test "${ac_cv_search_clock_gettime+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 ac_func_search_save_LIBS=$LIBS
17123cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h. */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h. */
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char clock_gettime ();
17137int
17138main ()
17139{
17140return clock_gettime ();
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145for ac_lib in '' rt; do
17146 if test -z "$ac_lib"; then
17147 ac_res="none required"
17148 else
17149 ac_res=-l$ac_lib
17150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17151 fi
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
17170 ac_cv_search_clock_gettime=$ac_res
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext
17180 if test "${ac_cv_search_clock_gettime+set}" = set; then
17181 break
17182fi
17183done
17184if test "${ac_cv_search_clock_gettime+set}" = set; then
17185 :
17186else
17187 ac_cv_search_clock_gettime=no
17188fi
17189rm conftest.$ac_ext
17190LIBS=$ac_func_search_save_LIBS
17191fi
17192{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17193echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17194ac_res=$ac_cv_search_clock_gettime
17195if test "$ac_res" != no; then
17196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17197
17198cat >>confdefs.h <<\_ACEOF
17199#define HAVE_CLOCK_GETTIME 1
17200_ACEOF
17201
17202fi
17203
17204
17205{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
17206echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
17207if test "${ac_cv_have_decl_getrusage+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216$ac_includes_default
17217int
17218main ()
17219{
17220#ifndef getrusage
17221 (void) getrusage;
17222#endif
17223
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228rm -f conftest.$ac_objext
17229if { (ac_try="$ac_compile"
17230case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17233esac
17234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_compile") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest.$ac_objext; then
17245 ac_cv_have_decl_getrusage=yes
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_cv_have_decl_getrusage=no
17251fi
17252
17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254fi
17255{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17256echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17257if test $ac_cv_have_decl_getrusage = yes; then
17258
17259for ac_func in getrusage
17260do
17261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17262{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266else
17267 cat >conftest.$ac_ext <<_ACEOF
17268/* confdefs.h. */
17269_ACEOF
17270cat confdefs.h >>conftest.$ac_ext
17271cat >>conftest.$ac_ext <<_ACEOF
17272/* end confdefs.h. */
17273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17275#define $ac_func innocuous_$ac_func
17276
17277/* System header to define __stub macros and hopefully few prototypes,
17278 which can conflict with char $ac_func (); below.
17279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17280 <limits.h> exists even on freestanding compilers. */
17281
17282#ifdef __STDC__
17283# include <limits.h>
17284#else
17285# include <assert.h>
17286#endif
17287
17288#undef $ac_func
17289
17290/* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293#ifdef __cplusplus
17294extern "C"
17295#endif
17296char $ac_func ();
17297/* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300#if defined __stub_$ac_func || defined __stub___$ac_func
17301choke me
17302#endif
17303
17304int
17305main ()
17306{
17307return $ac_func ();
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext conftest$ac_exeext
17313if { (ac_try="$ac_link"
17314case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317esac
17318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330 eval "$as_ac_var=yes"
17331else
17332 echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 eval "$as_ac_var=no"
17336fi
17337
17338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339 conftest$ac_exeext conftest.$ac_ext
17340fi
17341ac_res=`eval echo '${'$as_ac_var'}'`
17342 { echo "$as_me:$LINENO: result: $ac_res" >&5
17343echo "${ECHO_T}$ac_res" >&6; }
17344if test `eval echo '${'$as_ac_var'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17347_ACEOF
17348
17349fi
17350done
17351
17352fi
17353
17354{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17355echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17356if test "${ac_cv_have_decl_strsep+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365
17366#ifdef HAVE_STRING_H
17367# include <string.h>
17368#endif
17369
17370
17371int
17372main ()
17373{
17374#ifndef strsep
17375 (void) strsep;
17376#endif
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (ac_try="$ac_compile"
17384case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && {
17396 test -z "$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 } && test -s conftest.$ac_objext; then
17399 ac_cv_have_decl_strsep=yes
17400else
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_have_decl_strsep=no
17405fi
17406
17407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408fi
17409{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17410echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17411if test $ac_cv_have_decl_strsep = yes; then
17412
17413for ac_func in strsep
17414do
17415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429#define $ac_func innocuous_$ac_func
17430
17431/* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17435
17436#ifdef __STDC__
17437# include <limits.h>
17438#else
17439# include <assert.h>
17440#endif
17441
17442#undef $ac_func
17443
17444/* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450char $ac_func ();
17451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454#if defined __stub_$ac_func || defined __stub___$ac_func
17455choke me
17456#endif
17457
17458int
17459main ()
17460{
17461return $ac_func ();
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
17467if { (ac_try="$ac_link"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext &&
17483 $as_test_x conftest$ac_exeext; then
17484 eval "$as_ac_var=yes"
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 eval "$as_ac_var=no"
17490fi
17491
17492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494fi
17495ac_res=`eval echo '${'$as_ac_var'}'`
17496 { echo "$as_me:$LINENO: result: $ac_res" >&5
17497echo "${ECHO_T}$ac_res" >&6; }
17498if test `eval echo '${'$as_ac_var'}'` = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17501_ACEOF
17502
17503fi
17504done
17505
17506fi
17507
17508
17509{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17510echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17511if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513else
17514 cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
17520#include <termios.h>
17521
17522
17523int
17524main ()
17525{
17526#ifndef tcsendbreak
17527 (void) tcsendbreak;
17528#endif
17529
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext
17535if { (ac_try="$ac_compile"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_compile") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } && {
17548 test -z "$ac_c_werror_flag" ||
17549 test ! -s conftest.err
17550 } && test -s conftest.$ac_objext; then
17551 ac_cv_have_decl_tcsendbreak=yes
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 ac_cv_have_decl_tcsendbreak=no
17557fi
17558
17559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17560fi
17561{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17562echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17563if test $ac_cv_have_decl_tcsendbreak = yes; then
17564 cat >>confdefs.h <<\_ACEOF
17565#define HAVE_TCSENDBREAK 1
17566_ACEOF
17567
17568else
17569
17570for ac_func in tcsendbreak
17571do
17572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 cat >conftest.$ac_ext <<_ACEOF
17579/* confdefs.h. */
17580_ACEOF
17581cat confdefs.h >>conftest.$ac_ext
17582cat >>conftest.$ac_ext <<_ACEOF
17583/* end confdefs.h. */
17584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586#define $ac_func innocuous_$ac_func
17587
17588/* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17592
17593#ifdef __STDC__
17594# include <limits.h>
17595#else
17596# include <assert.h>
17597#endif
17598
17599#undef $ac_func
17600
17601/* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604#ifdef __cplusplus
17605extern "C"
17606#endif
17607char $ac_func ();
17608/* The GNU C library defines this for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611#if defined __stub_$ac_func || defined __stub___$ac_func
17612choke me
17613#endif
17614
17615int
17616main ()
17617{
17618return $ac_func ();
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext conftest$ac_exeext
17624if { (ac_try="$ac_link"
17625case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest$ac_exeext &&
17640 $as_test_x conftest$ac_exeext; then
17641 eval "$as_ac_var=yes"
17642else
17643 echo "$as_me: failed program was:" >&5
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 eval "$as_ac_var=no"
17647fi
17648
17649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17650 conftest$ac_exeext conftest.$ac_ext
17651fi
17652ac_res=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654echo "${ECHO_T}$ac_res" >&6; }
17655if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17658_ACEOF
17659
17660fi
17661done
17662
17663fi
17664
17665
17666{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
17667echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
17668if test "${ac_cv_have_decl_h_errno+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670else
17671 cat >conftest.$ac_ext <<_ACEOF
17672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
17677#include <netdb.h>
17678
17679int
17680main ()
17681{
17682#ifndef h_errno
17683 (void) h_errno;
17684#endif
17685
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext
17691if { (ac_try="$ac_compile"
17692case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695esac
17696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_compile") 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && {
17704 test -z "$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 } && test -s conftest.$ac_objext; then
17707 ac_cv_have_decl_h_errno=yes
17708else
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 ac_cv_have_decl_h_errno=no
17713fi
17714
17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716fi
17717{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
17718echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
17719if test $ac_cv_have_decl_h_errno = yes; then
17720
17721cat >>confdefs.h <<_ACEOF
17722#define HAVE_DECL_H_ERRNO 1
17723_ACEOF
17724
17725
17726else
17727 cat >>confdefs.h <<_ACEOF
17728#define HAVE_DECL_H_ERRNO 0
17729_ACEOF
17730
17731
17732fi
17733
17734
17735
17736{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
17737echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
17738if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740else
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747
17748#include <sys/types.h>
17749#include <sys/socket.h>
17750
17751
17752int
17753main ()
17754{
17755#ifndef SHUT_RD
17756 (void) SHUT_RD;
17757#endif
17758
17759 ;
17760 return 0;
17761}
17762_ACEOF
17763rm -f conftest.$ac_objext
17764if { (ac_try="$ac_compile"
17765case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_have_decl_SHUT_RD=yes
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_cv_have_decl_SHUT_RD=no
17786fi
17787
17788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789fi
17790{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
17791echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
17792if test $ac_cv_have_decl_SHUT_RD = yes; then
17793
17794cat >>confdefs.h <<_ACEOF
17795#define HAVE_DECL_SHUT_RD 1
17796_ACEOF
17797
17798
17799else
17800 cat >>confdefs.h <<_ACEOF
17801#define HAVE_DECL_SHUT_RD 0
17802_ACEOF
17803
17804
17805fi
17806
17807
17808
17809{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
17810echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
17811if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820
17821#include <sys/types.h>
17822#ifdef HAVE_SYS_STAT_H
17823# include <sys/stat.h>
17824#endif
17825#ifdef HAVE_FCNTL_H
17826# include <fcntl.h>
17827#endif
17828
17829
17830int
17831main ()
17832{
17833#ifndef O_NONBLOCK
17834 (void) O_NONBLOCK;
17835#endif
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (ac_try="$ac_compile"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest.$ac_objext; then
17858 ac_cv_have_decl_O_NONBLOCK=yes
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 ac_cv_have_decl_O_NONBLOCK=no
17864fi
17865
17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867fi
17868{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
17869echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
17870if test $ac_cv_have_decl_O_NONBLOCK = yes; then
17871
17872cat >>confdefs.h <<_ACEOF
17873#define HAVE_DECL_O_NONBLOCK 1
17874_ACEOF
17875
17876
17877else
17878 cat >>confdefs.h <<_ACEOF
17879#define HAVE_DECL_O_NONBLOCK 0
17880_ACEOF
17881
17882
17883fi
17884
17885
17886
17887{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
17888echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
17889if test "${ac_cv_have_decl_writev+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 cat >conftest.$ac_ext <<_ACEOF
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898
17899#include <sys/types.h>
17900#include <sys/uio.h>
17901#include <unistd.h>
17902
17903
17904int
17905main ()
17906{
17907#ifndef writev
17908 (void) writev;
17909#endif
17910
17911 ;
17912 return 0;
17913}
17914_ACEOF
17915rm -f conftest.$ac_objext
17916if { (ac_try="$ac_compile"
17917case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_compile") 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest.$ac_objext; then
17932 ac_cv_have_decl_writev=yes
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_have_decl_writev=no
17938fi
17939
17940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941fi
17942{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
17943echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
17944if test $ac_cv_have_decl_writev = yes; then
17945
17946cat >>confdefs.h <<_ACEOF
17947#define HAVE_DECL_WRITEV 1
17948_ACEOF
17949
17950
17951else
17952 cat >>confdefs.h <<_ACEOF
17953#define HAVE_DECL_WRITEV 0
17954_ACEOF
17955
17956
17957fi
17958
17959
17960
17961{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
17962echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
17963if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972
17973#include <sys/param.h>
17974
17975
17976int
17977main ()
17978{
17979#ifndef MAXSYMLINKS
17980 (void) MAXSYMLINKS;
17981#endif
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext
17988if { (ac_try="$ac_compile"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_cv_have_decl_MAXSYMLINKS=yes
18005else
18006 echo "$as_me: failed program was:" >&5
18007sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_cv_have_decl_MAXSYMLINKS=no
18010fi
18011
18012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013fi
18014{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
18015echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
18016if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
18017
18018cat >>confdefs.h <<_ACEOF
18019#define HAVE_DECL_MAXSYMLINKS 1
18020_ACEOF
18021
18022
18023else
18024 cat >>confdefs.h <<_ACEOF
18025#define HAVE_DECL_MAXSYMLINKS 0
18026_ACEOF
18027
18028
18029fi
18030
18031
18032
18033{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
18034echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
18035if test "${ac_cv_have_decl_offsetof+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044
18045#include <stddef.h>
18046
18047
18048int
18049main ()
18050{
18051#ifndef offsetof
18052 (void) offsetof;
18053#endif
18054
18055 ;
18056 return 0;
18057}
18058_ACEOF
18059rm -f conftest.$ac_objext
18060if { (ac_try="$ac_compile"
18061case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_compile") 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest.$ac_objext; then
18076 ac_cv_have_decl_offsetof=yes
18077else
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081 ac_cv_have_decl_offsetof=no
18082fi
18083
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085fi
18086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18087echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18088if test $ac_cv_have_decl_offsetof = yes; then
18089
18090cat >>confdefs.h <<_ACEOF
18091#define HAVE_DECL_OFFSETOF 1
18092_ACEOF
18093
18094
18095else
18096 cat >>confdefs.h <<_ACEOF
18097#define HAVE_DECL_OFFSETOF 0
18098_ACEOF
18099
18100
18101fi
18102
18103
18104
18105# extra bits for select(2)
18106{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18107echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18108if test "${ac_cv_have_decl_howmany+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117
18118#include <sys/param.h>
18119#include <sys/types.h>
18120#ifdef HAVE_SYS_SYSMACROS_H
18121#include <sys/sysmacros.h>
18122#endif
18123#ifdef HAVE_SYS_SELECT_H
18124#include <sys/select.h>
18125#endif
18126#ifdef HAVE_SYS_TIME_H
18127#include <sys/time.h>
18128#endif
18129#ifdef HAVE_UNISTD_H
18130#include <unistd.h>
18131#endif
18132
18133
18134int
18135main ()
18136{
18137#ifndef howmany
18138 (void) howmany;
18139#endif
18140
18141 ;
18142 return 0;
18143}
18144_ACEOF
18145rm -f conftest.$ac_objext
18146if { (ac_try="$ac_compile"
18147case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_compile") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } && {
18159 test -z "$ac_c_werror_flag" ||
18160 test ! -s conftest.err
18161 } && test -s conftest.$ac_objext; then
18162 ac_cv_have_decl_howmany=yes
18163else
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ac_cv_have_decl_howmany=no
18168fi
18169
18170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171fi
18172{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18173echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18174if test $ac_cv_have_decl_howmany = yes; then
18175
18176cat >>confdefs.h <<_ACEOF
18177#define HAVE_DECL_HOWMANY 1
18178_ACEOF
18179
18180
18181else
18182 cat >>confdefs.h <<_ACEOF
18183#define HAVE_DECL_HOWMANY 0
18184_ACEOF
18185
18186
18187fi
18188{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18189echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18190if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199
18200#include <sys/param.h>
18201#include <sys/types.h>
18202#ifdef HAVE_SYS_SYSMACROS_H
18203#include <sys/sysmacros.h>
18204#endif
18205#ifdef HAVE_SYS_SELECT_H
18206#include <sys/select.h>
18207#endif
18208#ifdef HAVE_SYS_TIME_H
18209#include <sys/time.h>
18210#endif
18211#ifdef HAVE_UNISTD_H
18212#include <unistd.h>
18213#endif
18214
18215
18216int
18217main ()
18218{
18219#ifndef NFDBITS
18220 (void) NFDBITS;
18221#endif
18222
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
18228if { (ac_try="$ac_compile"
18229case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_compile") 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } && {
18241 test -z "$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18243 } && test -s conftest.$ac_objext; then
18244 ac_cv_have_decl_NFDBITS=yes
18245else
18246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 ac_cv_have_decl_NFDBITS=no
18250fi
18251
18252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253fi
18254{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18255echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18256if test $ac_cv_have_decl_NFDBITS = yes; then
18257
18258cat >>confdefs.h <<_ACEOF
18259#define HAVE_DECL_NFDBITS 1
18260_ACEOF
18261
18262
18263else
18264 cat >>confdefs.h <<_ACEOF
18265#define HAVE_DECL_NFDBITS 0
18266_ACEOF
18267
18268
18269fi
18270
18271
18272{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18273echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18274if test "${ac_cv_type_fd_mask+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277 cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283
18284#include <sys/param.h>
18285#include <sys/types.h>
18286#ifdef HAVE_SYS_SELECT_H
18287#include <sys/select.h>
18288#endif
18289#ifdef HAVE_SYS_TIME_H
18290#include <sys/time.h>
18291#endif
18292#ifdef HAVE_UNISTD_H
18293#include <unistd.h>
18294#endif
18295
18296
18297typedef fd_mask ac__type_new_;
18298int
18299main ()
18300{
18301if ((ac__type_new_ *) 0)
18302 return 0;
18303if (sizeof (ac__type_new_))
18304 return 0;
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (ac_try="$ac_compile"
18311case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314esac
18315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && {
18323 test -z "$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 } && test -s conftest.$ac_objext; then
18326 ac_cv_type_fd_mask=yes
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 ac_cv_type_fd_mask=no
18332fi
18333
18334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335fi
18336{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18337echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18338if test $ac_cv_type_fd_mask = yes; then
18339
18340cat >>confdefs.h <<_ACEOF
18341#define HAVE_FD_MASK 1
18342_ACEOF
18343
18344
18345fi
18346
18347
18348
18349for ac_func in setresuid
18350do
18351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18365#define $ac_func innocuous_$ac_func
18366
18367/* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18371
18372#ifdef __STDC__
18373# include <limits.h>
18374#else
18375# include <assert.h>
18376#endif
18377
18378#undef $ac_func
18379
18380/* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char $ac_func ();
18387/* The GNU C library defines this for functions which it implements
18388 to always fail with ENOSYS. Some functions are actually named
18389 something starting with __ and the normal name is an alias. */
18390#if defined __stub_$ac_func || defined __stub___$ac_func
18391choke me
18392#endif
18393
18394int
18395main ()
18396{
18397return $ac_func ();
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_link") 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest$ac_exeext &&
18419 $as_test_x conftest$ac_exeext; then
18420 eval "$as_ac_var=yes"
18421else
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 eval "$as_ac_var=no"
18426fi
18427
18428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18429 conftest$ac_exeext conftest.$ac_ext
18430fi
18431ac_res=`eval echo '${'$as_ac_var'}'`
18432 { echo "$as_me:$LINENO: result: $ac_res" >&5
18433echo "${ECHO_T}$ac_res" >&6; }
18434if test `eval echo '${'$as_ac_var'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437_ACEOF
18438
18439 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
18440echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
18441 if test "$cross_compiling" = yes; then
18442 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18443echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18444
18445else
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452
18453#include <stdlib.h>
18454#include <errno.h>
18455
18456int
18457main ()
18458{
18459
18460 errno=0;
18461 setresuid(0,0,0);
18462 if (errno==ENOSYS)
18463 exit(1);
18464 else
18465 exit(0);
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest$ac_exeext
18472if { (ac_try="$ac_link"
18473case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_link") 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 { echo "$as_me:$LINENO: result: yes" >&5
18492echo "${ECHO_T}yes" >&6; }
18493else
18494 echo "$as_me: program exited with status $ac_status" >&5
18495echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498( exit $ac_status )
18499
18500cat >>confdefs.h <<\_ACEOF
18501#define BROKEN_SETRESUID 1
18502_ACEOF
18503
18504 { echo "$as_me:$LINENO: result: not implemented" >&5
18505echo "${ECHO_T}not implemented" >&6; }
18506fi
18507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18508fi
18509
18510
18511
18512fi
18513done
18514
18515
18516
18517for ac_func in setresgid
18518do
18519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524else
18525 cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
18531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18533#define $ac_func innocuous_$ac_func
18534
18535/* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char $ac_func (); below.
18537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 <limits.h> exists even on freestanding compilers. */
18539
18540#ifdef __STDC__
18541# include <limits.h>
18542#else
18543# include <assert.h>
18544#endif
18545
18546#undef $ac_func
18547
18548/* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18551#ifdef __cplusplus
18552extern "C"
18553#endif
18554char $ac_func ();
18555/* The GNU C library defines this for functions which it implements
18556 to always fail with ENOSYS. Some functions are actually named
18557 something starting with __ and the normal name is an alias. */
18558#if defined __stub_$ac_func || defined __stub___$ac_func
18559choke me
18560#endif
18561
18562int
18563main ()
18564{
18565return $ac_func ();
18566 ;
18567 return 0;
18568}
18569_ACEOF
18570rm -f conftest.$ac_objext conftest$ac_exeext
18571if { (ac_try="$ac_link"
18572case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18578 ac_status=$?
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest$ac_exeext &&
18587 $as_test_x conftest$ac_exeext; then
18588 eval "$as_ac_var=yes"
18589else
18590 echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593 eval "$as_ac_var=no"
18594fi
18595
18596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18597 conftest$ac_exeext conftest.$ac_ext
18598fi
18599ac_res=`eval echo '${'$as_ac_var'}'`
18600 { echo "$as_me:$LINENO: result: $ac_res" >&5
18601echo "${ECHO_T}$ac_res" >&6; }
18602if test `eval echo '${'$as_ac_var'}'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605_ACEOF
18606
18607 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
18608echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
18609 if test "$cross_compiling" = yes; then
18610 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18611echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18612
18613else
18614 cat >conftest.$ac_ext <<_ACEOF
18615/* confdefs.h. */
18616_ACEOF
18617cat confdefs.h >>conftest.$ac_ext
18618cat >>conftest.$ac_ext <<_ACEOF
18619/* end confdefs.h. */
18620
18621#include <stdlib.h>
18622#include <errno.h>
18623
18624int
18625main ()
18626{
18627
18628 errno=0;
18629 setresgid(0,0,0);
18630 if (errno==ENOSYS)
18631 exit(1);
18632 else
18633 exit(0);
18634
18635 ;
18636 return 0;
18637}
18638_ACEOF
18639rm -f conftest$ac_exeext
18640if { (ac_try="$ac_link"
18641case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18650 { (case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653esac
18654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_try") 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 { echo "$as_me:$LINENO: result: yes" >&5
18660echo "${ECHO_T}yes" >&6; }
18661else
18662 echo "$as_me: program exited with status $ac_status" >&5
18663echo "$as_me: failed program was:" >&5
18664sed 's/^/| /' conftest.$ac_ext >&5
18665
18666( exit $ac_status )
18667
18668cat >>confdefs.h <<\_ACEOF
18669#define BROKEN_SETRESGID 1
18670_ACEOF
18671
18672 { echo "$as_me:$LINENO: result: not implemented" >&5
18673echo "${ECHO_T}not implemented" >&6; }
18674fi
18675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18676fi
18677
18678
18679
18680fi
18681done
18682
18683
18684
18685
18686for ac_func in gettimeofday time
18687do
18688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18689{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18691if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693else
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
18700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18702#define $ac_func innocuous_$ac_func
18703
18704/* System header to define __stub macros and hopefully few prototypes,
18705 which can conflict with char $ac_func (); below.
18706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18707 <limits.h> exists even on freestanding compilers. */
18708
18709#ifdef __STDC__
18710# include <limits.h>
18711#else
18712# include <assert.h>
18713#endif
18714
18715#undef $ac_func
18716
18717/* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char $ac_func ();
18724/* The GNU C library defines this for functions which it implements
18725 to always fail with ENOSYS. Some functions are actually named
18726 something starting with __ and the normal name is an alias. */
18727#if defined __stub_$ac_func || defined __stub___$ac_func
18728choke me
18729#endif
18730
18731int
18732main ()
18733{
18734return $ac_func ();
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext conftest$ac_exeext
18740if { (ac_try="$ac_link"
18741case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest$ac_exeext &&
18756 $as_test_x conftest$ac_exeext; then
18757 eval "$as_ac_var=yes"
18758else
18759 echo "$as_me: failed program was:" >&5
18760sed 's/^/| /' conftest.$ac_ext >&5
18761
18762 eval "$as_ac_var=no"
18763fi
18764
18765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766 conftest$ac_exeext conftest.$ac_ext
18767fi
18768ac_res=`eval echo '${'$as_ac_var'}'`
18769 { echo "$as_me:$LINENO: result: $ac_res" >&5
18770echo "${ECHO_T}$ac_res" >&6; }
18771if test `eval echo '${'$as_ac_var'}'` = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18774_ACEOF
18775
18776fi
18777done
18778
18779
18780
18781
18782
18783
18784
18785for ac_func in endutent getutent getutid getutline pututline setutent
18786do
18787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18801#define $ac_func innocuous_$ac_func
18802
18803/* System header to define __stub macros and hopefully few prototypes,
18804 which can conflict with char $ac_func (); below.
18805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18806 <limits.h> exists even on freestanding compilers. */
18807
18808#ifdef __STDC__
18809# include <limits.h>
18810#else
18811# include <assert.h>
18812#endif
18813
18814#undef $ac_func
18815
18816/* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819#ifdef __cplusplus
18820extern "C"
18821#endif
18822char $ac_func ();
18823/* The GNU C library defines this for functions which it implements
18824 to always fail with ENOSYS. Some functions are actually named
18825 something starting with __ and the normal name is an alias. */
18826#if defined __stub_$ac_func || defined __stub___$ac_func
18827choke me
18828#endif
18829
18830int
18831main ()
18832{
18833return $ac_func ();
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest.$ac_objext conftest$ac_exeext
18839if { (ac_try="$ac_link"
18840case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext &&
18855 $as_test_x conftest$ac_exeext; then
18856 eval "$as_ac_var=yes"
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861 eval "$as_ac_var=no"
18862fi
18863
18864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866fi
18867ac_res=`eval echo '${'$as_ac_var'}'`
18868 { echo "$as_me:$LINENO: result: $ac_res" >&5
18869echo "${ECHO_T}$ac_res" >&6; }
18870if test `eval echo '${'$as_ac_var'}'` = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18873_ACEOF
18874
18875fi
18876done
18877
18878
18879for ac_func in utmpname
18880do
18881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 cat >conftest.$ac_ext <<_ACEOF
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18895#define $ac_func innocuous_$ac_func
18896
18897/* System header to define __stub macros and hopefully few prototypes,
18898 which can conflict with char $ac_func (); below.
18899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900 <limits.h> exists even on freestanding compilers. */
18901
18902#ifdef __STDC__
18903# include <limits.h>
18904#else
18905# include <assert.h>
18906#endif
18907
18908#undef $ac_func
18909
18910/* Override any GCC internal prototype to avoid an error.
18911 Use char because int might match the return type of a GCC
18912 builtin and then its argument prototype would still apply. */
18913#ifdef __cplusplus
18914extern "C"
18915#endif
18916char $ac_func ();
18917/* The GNU C library defines this for functions which it implements
18918 to always fail with ENOSYS. Some functions are actually named
18919 something starting with __ and the normal name is an alias. */
18920#if defined __stub_$ac_func || defined __stub___$ac_func
18921choke me
18922#endif
18923
18924int
18925main ()
18926{
18927return $ac_func ();
18928 ;
18929 return 0;
18930}
18931_ACEOF
18932rm -f conftest.$ac_objext conftest$ac_exeext
18933if { (ac_try="$ac_link"
18934case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937esac
18938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_link") 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } && {
18946 test -z "$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 } && test -s conftest$ac_exeext &&
18949 $as_test_x conftest$ac_exeext; then
18950 eval "$as_ac_var=yes"
18951else
18952 echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 eval "$as_ac_var=no"
18956fi
18957
18958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18959 conftest$ac_exeext conftest.$ac_ext
18960fi
18961ac_res=`eval echo '${'$as_ac_var'}'`
18962 { echo "$as_me:$LINENO: result: $ac_res" >&5
18963echo "${ECHO_T}$ac_res" >&6; }
18964if test `eval echo '${'$as_ac_var'}'` = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18967_ACEOF
18968
18969fi
18970done
18971
18972
18973
18974
18975
18976
18977
18978for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
18979do
18980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18985else
18986 cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
18992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18994#define $ac_func innocuous_$ac_func
18995
18996/* System header to define __stub macros and hopefully few prototypes,
18997 which can conflict with char $ac_func (); below.
18998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18999 <limits.h> exists even on freestanding compilers. */
19000
19001#ifdef __STDC__
19002# include <limits.h>
19003#else
19004# include <assert.h>
19005#endif
19006
19007#undef $ac_func
19008
19009/* Override any GCC internal prototype to avoid an error.
19010 Use char because int might match the return type of a GCC
19011 builtin and then its argument prototype would still apply. */
19012#ifdef __cplusplus
19013extern "C"
19014#endif
19015char $ac_func ();
19016/* The GNU C library defines this for functions which it implements
19017 to always fail with ENOSYS. Some functions are actually named
19018 something starting with __ and the normal name is an alias. */
19019#if defined __stub_$ac_func || defined __stub___$ac_func
19020choke me
19021#endif
19022
19023int
19024main ()
19025{
19026return $ac_func ();
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031rm -f conftest.$ac_objext conftest$ac_exeext
19032if { (ac_try="$ac_link"
19033case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036esac
19037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 eval "$as_ac_var=yes"
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054 eval "$as_ac_var=no"
19055fi
19056
19057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059fi
19060ac_res=`eval echo '${'$as_ac_var'}'`
19061 { echo "$as_me:$LINENO: result: $ac_res" >&5
19062echo "${ECHO_T}$ac_res" >&6; }
19063if test `eval echo '${'$as_ac_var'}'` = yes; then
19064 cat >>confdefs.h <<_ACEOF
19065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19066_ACEOF
19067
19068fi
19069done
19070
19071
19072
19073
19074for ac_func in setutxdb setutxent utmpxname
19075do
19076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19077{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081else
19082 cat >conftest.$ac_ext <<_ACEOF
19083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
19088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19090#define $ac_func innocuous_$ac_func
19091
19092/* System header to define __stub macros and hopefully few prototypes,
19093 which can conflict with char $ac_func (); below.
19094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19095 <limits.h> exists even on freestanding compilers. */
19096
19097#ifdef __STDC__
19098# include <limits.h>
19099#else
19100# include <assert.h>
19101#endif
19102
19103#undef $ac_func
19104
19105/* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108#ifdef __cplusplus
19109extern "C"
19110#endif
19111char $ac_func ();
19112/* The GNU C library defines this for functions which it implements
19113 to always fail with ENOSYS. Some functions are actually named
19114 something starting with __ and the normal name is an alias. */
19115#if defined __stub_$ac_func || defined __stub___$ac_func
19116choke me
19117#endif
19118
19119int
19120main ()
19121{
19122return $ac_func ();
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext conftest$ac_exeext
19128if { (ac_try="$ac_link"
19129case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19135 ac_status=$?
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } && {
19141 test -z "$ac_c_werror_flag" ||
19142 test ! -s conftest.err
19143 } && test -s conftest$ac_exeext &&
19144 $as_test_x conftest$ac_exeext; then
19145 eval "$as_ac_var=yes"
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 eval "$as_ac_var=no"
19151fi
19152
19153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154 conftest$ac_exeext conftest.$ac_ext
19155fi
19156ac_res=`eval echo '${'$as_ac_var'}'`
19157 { echo "$as_me:$LINENO: result: $ac_res" >&5
19158echo "${ECHO_T}$ac_res" >&6; }
19159if test `eval echo '${'$as_ac_var'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19162_ACEOF
19163
19164fi
19165done
19166
19167
19168for ac_func in getlastlogxbyname
19169do
19170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175else
19176 cat >conftest.$ac_ext <<_ACEOF
19177/* confdefs.h. */
19178_ACEOF
19179cat confdefs.h >>conftest.$ac_ext
19180cat >>conftest.$ac_ext <<_ACEOF
19181/* end confdefs.h. */
19182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19184#define $ac_func innocuous_$ac_func
19185
19186/* System header to define __stub macros and hopefully few prototypes,
19187 which can conflict with char $ac_func (); below.
19188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189 <limits.h> exists even on freestanding compilers. */
19190
19191#ifdef __STDC__
19192# include <limits.h>
19193#else
19194# include <assert.h>
19195#endif
19196
19197#undef $ac_func
19198
19199/* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19202#ifdef __cplusplus
19203extern "C"
19204#endif
19205char $ac_func ();
19206/* The GNU C library defines this for functions which it implements
19207 to always fail with ENOSYS. Some functions are actually named
19208 something starting with __ and the normal name is an alias. */
19209#if defined __stub_$ac_func || defined __stub___$ac_func
19210choke me
19211#endif
19212
19213int
19214main ()
19215{
19216return $ac_func ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (ac_try="$ac_link"
19223case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226esac
19227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19239 eval "$as_ac_var=yes"
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 eval "$as_ac_var=no"
19245fi
19246
19247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249fi
19250ac_res=`eval echo '${'$as_ac_var'}'`
19251 { echo "$as_me:$LINENO: result: $ac_res" >&5
19252echo "${ECHO_T}$ac_res" >&6; }
19253if test `eval echo '${'$as_ac_var'}'` = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19256_ACEOF
19257
19258fi
19259done
19260
19261
19262{ echo "$as_me:$LINENO: checking for daemon" >&5
19263echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19264if test "${ac_cv_func_daemon+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19275#define daemon innocuous_daemon
19276
19277/* System header to define __stub macros and hopefully few prototypes,
19278 which can conflict with char daemon (); below.
19279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19280 <limits.h> exists even on freestanding compilers. */
19281
19282#ifdef __STDC__
19283# include <limits.h>
19284#else
19285# include <assert.h>
19286#endif
19287
19288#undef daemon
19289
19290/* Override any GCC internal prototype to avoid an error.
19291 Use char because int might match the return type of a GCC
19292 builtin and then its argument prototype would still apply. */
19293#ifdef __cplusplus
19294extern "C"
19295#endif
19296char daemon ();
19297/* The GNU C library defines this for functions which it implements
19298 to always fail with ENOSYS. Some functions are actually named
19299 something starting with __ and the normal name is an alias. */
19300#if defined __stub_daemon || defined __stub___daemon
19301choke me
19302#endif
19303
19304int
19305main ()
19306{
19307return daemon ();
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext conftest$ac_exeext
19313if { (ac_try="$ac_link"
19314case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_link") 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext &&
19329 $as_test_x conftest$ac_exeext; then
19330 ac_cv_func_daemon=yes
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ac_cv_func_daemon=no
19336fi
19337
19338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19339 conftest$ac_exeext conftest.$ac_ext
19340fi
19341{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19342echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19343if test $ac_cv_func_daemon = yes; then
19344
19345cat >>confdefs.h <<\_ACEOF
19346#define HAVE_DAEMON 1
19347_ACEOF
19348
19349else
19350 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19351echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
19352if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 ac_check_lib_save_LIBS=$LIBS
19356LIBS="-lbsd $LIBS"
19357cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363
19364/* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19367#ifdef __cplusplus
19368extern "C"
19369#endif
19370char daemon ();
19371int
19372main ()
19373{
19374return daemon ();
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext conftest$ac_exeext
19380if { (ac_try="$ac_link"
19381case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest$ac_exeext &&
19396 $as_test_x conftest$ac_exeext; then
19397 ac_cv_lib_bsd_daemon=yes
19398else
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_lib_bsd_daemon=no
19403fi
19404
19405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19407LIBS=$ac_check_lib_save_LIBS
19408fi
19409{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19410echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
19411if test $ac_cv_lib_bsd_daemon = yes; then
19412 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19413#define HAVE_DAEMON 1
19414_ACEOF
19415
19416fi
19417
19418
19419fi
19420
19421
19422{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19423echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19424if test "${ac_cv_func_getpagesize+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19435#define getpagesize innocuous_getpagesize
19436
19437/* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char getpagesize (); below.
19439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19440 <limits.h> exists even on freestanding compilers. */
19441
19442#ifdef __STDC__
19443# include <limits.h>
19444#else
19445# include <assert.h>
19446#endif
19447
19448#undef getpagesize
19449
19450/* Override any GCC internal prototype to avoid an error.
19451 Use char because int might match the return type of a GCC
19452 builtin and then its argument prototype would still apply. */
19453#ifdef __cplusplus
19454extern "C"
19455#endif
19456char getpagesize ();
19457/* The GNU C library defines this for functions which it implements
19458 to always fail with ENOSYS. Some functions are actually named
19459 something starting with __ and the normal name is an alias. */
19460#if defined __stub_getpagesize || defined __stub___getpagesize
19461choke me
19462#endif
19463
19464int
19465main ()
19466{
19467return getpagesize ();
19468 ;
19469 return 0;
19470}
19471_ACEOF
19472rm -f conftest.$ac_objext conftest$ac_exeext
19473if { (ac_try="$ac_link"
19474case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_link") 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } && {
19486 test -z "$ac_c_werror_flag" ||
19487 test ! -s conftest.err
19488 } && test -s conftest$ac_exeext &&
19489 $as_test_x conftest$ac_exeext; then
19490 ac_cv_func_getpagesize=yes
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495 ac_cv_func_getpagesize=no
19496fi
19497
19498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19499 conftest$ac_exeext conftest.$ac_ext
19500fi
19501{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
19502echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
19503if test $ac_cv_func_getpagesize = yes; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define HAVE_GETPAGESIZE 1
19507_ACEOF
19508
19509else
19510 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
19511echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
19512if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515 ac_check_lib_save_LIBS=$LIBS
19516LIBS="-lucb $LIBS"
19517cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523
19524/* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530char getpagesize ();
19531int
19532main ()
19533{
19534return getpagesize ();
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
19540if { (ac_try="$ac_link"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 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_exeext &&
19556 $as_test_x conftest$ac_exeext; then
19557 ac_cv_lib_ucb_getpagesize=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_lib_ucb_getpagesize=no
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566 conftest$ac_exeext conftest.$ac_ext
19567LIBS=$ac_check_lib_save_LIBS
19568fi
19569{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
19570echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
19571if test $ac_cv_lib_ucb_getpagesize = yes; then
19572 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
19573#define HAVE_GETPAGESIZE 1
19574_ACEOF
19575
19576fi
19577
19578
19579fi
19580
19581
19582# Check for broken snprintf
19583if test "x$ac_cv_func_snprintf" = "xyes" ; then
19584 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
19585echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
19586 if test "$cross_compiling" = yes; then
19587 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19588echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19589
19590else
19591 cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597 #include <stdio.h>
19598int
19599main ()
19600{
19601
19602 char b[5];
19603 snprintf(b,5,"123456789");
19604 exit(b[4]!='\0');
19605
19606 ;
19607 return 0;
19608}
19609_ACEOF
19610rm -f conftest$ac_exeext
19611if { (ac_try="$ac_link"
19612case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19621 { (case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_try") 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 { echo "$as_me:$LINENO: result: yes" >&5
19631echo "${ECHO_T}yes" >&6; }
19632else
19633 echo "$as_me: program exited with status $ac_status" >&5
19634echo "$as_me: failed program was:" >&5
19635sed 's/^/| /' conftest.$ac_ext >&5
19636
19637( exit $ac_status )
19638
19639 { echo "$as_me:$LINENO: result: no" >&5
19640echo "${ECHO_T}no" >&6; }
19641
19642cat >>confdefs.h <<\_ACEOF
19643#define BROKEN_SNPRINTF 1
19644_ACEOF
19645
19646 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
19647echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
19648
19649fi
19650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19651fi
19652
19653
19654fi
19655
19656# We depend on vsnprintf returning the right thing on overflow: the
19657# number of characters it tried to create (as per SUSv3)
19658if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
19659 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
19660echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
19661 if test "$cross_compiling" = yes; then
19662 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
19663echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
19664
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672
19673#include <sys/types.h>
19674#include <stdio.h>
19675#include <stdarg.h>
19676
19677int x_snprintf(char *str, size_t count, const char *fmt, ...)
19678{
19679 size_t ret;
19680 va_list ap;
19681
19682 va_start(ap, fmt);
19683 ret = vsnprintf(str, count, fmt, ap);
19684 va_end(ap);
19685 return ret;
19686}
19687
19688int
19689main ()
19690{
19691
19692char x[1];
19693if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
19694 return 1;
19695if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
19696 return 1;
19697return 0;
19698
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703rm -f conftest$ac_exeext
19704if { (ac_try="$ac_link"
19705case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 { echo "$as_me:$LINENO: result: yes" >&5
19724echo "${ECHO_T}yes" >&6; }
19725else
19726 echo "$as_me: program exited with status $ac_status" >&5
19727echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730( exit $ac_status )
19731
19732 { echo "$as_me:$LINENO: result: no" >&5
19733echo "${ECHO_T}no" >&6; }
19734
19735cat >>confdefs.h <<\_ACEOF
19736#define BROKEN_SNPRINTF 1
19737_ACEOF
19738
19739 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
19740echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
19741
19742fi
19743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19744fi
19745
19746
19747fi
19748
19749# On systems where [v]snprintf is broken, but is declared in stdio,
19750# check that the fmt argument is const char * or just char *.
19751# This is only useful for when BROKEN_SNPRINTF
19752{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
19753echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
19754cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h. */
19760
19761#include <stdio.h>
19762int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
19763
19764int
19765main ()
19766{
19767
19768 snprintf(0, 0, 0);
19769
19770 ;
19771 return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext
19775if { (ac_try="$ac_compile"
19776case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
19791 { echo "$as_me:$LINENO: result: yes" >&5
19792echo "${ECHO_T}yes" >&6; }
19793
19794cat >>confdefs.h <<\_ACEOF
19795#define SNPRINTF_CONST const
19796_ACEOF
19797
19798else
19799 echo "$as_me: failed program was:" >&5
19800sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 { echo "$as_me:$LINENO: result: no" >&5
19803echo "${ECHO_T}no" >&6; }
19804 cat >>confdefs.h <<\_ACEOF
19805#define SNPRINTF_CONST /* not const */
19806_ACEOF
19807
19808fi
19809
19810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811
19812# Check for missing getpeereid (or equiv) support
19813NO_PEERCHECK=""
19814if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
19815 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
19816echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823
19824#include <sys/types.h>
19825#include <sys/socket.h>
19826int
19827main ()
19828{
19829int i = SO_PEERCRED;
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (ac_try="$ac_compile"
19836case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest.$ac_objext; then
19851 { echo "$as_me:$LINENO: result: yes" >&5
19852echo "${ECHO_T}yes" >&6; }
19853
19854cat >>confdefs.h <<\_ACEOF
19855#define HAVE_SO_PEERCRED 1
19856_ACEOF
19857
19858
19859else
19860 echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 { echo "$as_me:$LINENO: result: no" >&5
19864echo "${ECHO_T}no" >&6; }
19865 NO_PEERCHECK=1
19866
19867fi
19868
19869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870fi
19871
19872if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
19873{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
19874echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
19875if test "$cross_compiling" = yes; then
19876
19877 { echo "$as_me:$LINENO: result: yes" >&5
19878echo "${ECHO_T}yes" >&6; }
19879 cat >>confdefs.h <<\_ACEOF
19880#define HAVE_STRICT_MKSTEMP 1
19881_ACEOF
19882
19883
19884
19885else
19886 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892
19893#include <stdlib.h>
19894
19895int
19896main ()
19897{
19898
19899 char template[]="conftest.mkstemp-test";
19900 if (mkstemp(template) == -1)
19901 exit(1);
19902 unlink(template);
19903 exit(0);
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest$ac_exeext
19910if { (ac_try="$ac_link"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_link") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923esac
19924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_try") 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929
19930 { echo "$as_me:$LINENO: result: no" >&5
19931echo "${ECHO_T}no" >&6; }
19932
19933else
19934 echo "$as_me: program exited with status $ac_status" >&5
19935echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938( exit $ac_status )
19939
19940 { echo "$as_me:$LINENO: result: yes" >&5
19941echo "${ECHO_T}yes" >&6; }
19942
19943cat >>confdefs.h <<\_ACEOF
19944#define HAVE_STRICT_MKSTEMP 1
19945_ACEOF
19946
19947
19948fi
19949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19950fi
19951
19952
19953fi
19954
19955if test ! -z "$check_for_openpty_ctty_bug"; then
19956 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
19957echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
19958 if test "$cross_compiling" = yes; then
19959
19960 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
19961echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
19962
19963
19964else
19965 cat >conftest.$ac_ext <<_ACEOF
19966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h. */
19971
19972#include <stdio.h>
19973#include <sys/fcntl.h>
19974#include <sys/types.h>
19975#include <sys/wait.h>
19976
19977int
19978main ()
19979{
19980
19981 pid_t pid;
19982 int fd, ptyfd, ttyfd, status;
19983
19984 pid = fork();
19985 if (pid < 0) { /* failed */
19986 exit(1);
19987 } else if (pid > 0) { /* parent */
19988 waitpid(pid, &status, 0);
19989 if (WIFEXITED(status))
19990 exit(WEXITSTATUS(status));
19991 else
19992 exit(2);
19993 } else { /* child */
19994 close(0); close(1); close(2);
19995 setsid();
19996 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
19997 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
19998 if (fd >= 0)
19999 exit(3); /* Acquired ctty: broken */
20000 else
20001 exit(0); /* Did not acquire ctty: OK */
20002 }
20003
20004 ;
20005 return 0;
20006}
20007_ACEOF
20008rm -f conftest$ac_exeext
20009if { (ac_try="$ac_link"
20010case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013esac
20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20019 { (case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_try") 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028
20029 { echo "$as_me:$LINENO: result: yes" >&5
20030echo "${ECHO_T}yes" >&6; }
20031
20032else
20033 echo "$as_me: program exited with status $ac_status" >&5
20034echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037( exit $ac_status )
20038
20039 { echo "$as_me:$LINENO: result: no" >&5
20040echo "${ECHO_T}no" >&6; }
20041 cat >>confdefs.h <<\_ACEOF
20042#define SSHD_ACQUIRES_CTTY 1
20043_ACEOF
20044
20045
20046fi
20047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20048fi
20049
20050
20051fi
20052
20053if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20054 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
20055 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20056echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20057 if test "$cross_compiling" = yes; then
20058
20059 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20060echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20061
20062
20063else
20064 cat >conftest.$ac_ext <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070
20071#include <stdio.h>
20072#include <sys/socket.h>
20073#include <netdb.h>
20074#include <errno.h>
20075#include <netinet/in.h>
20076
20077#define TEST_PORT "2222"
20078
20079int
20080main ()
20081{
20082
20083 int err, sock;
20084 struct addrinfo *gai_ai, *ai, hints;
20085 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20086
20087 memset(&hints, 0, sizeof(hints));
20088 hints.ai_family = PF_UNSPEC;
20089 hints.ai_socktype = SOCK_STREAM;
20090 hints.ai_flags = AI_PASSIVE;
20091
20092 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20093 if (err != 0) {
20094 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20095 exit(1);
20096 }
20097
20098 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20099 if (ai->ai_family != AF_INET6)
20100 continue;
20101
20102 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20103 sizeof(ntop), strport, sizeof(strport),
20104 NI_NUMERICHOST|NI_NUMERICSERV);
20105
20106 if (err != 0) {
20107 if (err == EAI_SYSTEM)
20108 perror("getnameinfo EAI_SYSTEM");
20109 else
20110 fprintf(stderr, "getnameinfo failed: %s\n",
20111 gai_strerror(err));
20112 exit(2);
20113 }
20114
20115 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
20116 if (sock < 0)
20117 perror("socket");
20118 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
20119 if (errno == EBADF)
20120 exit(3);
20121 }
20122 }
20123 exit(0);
20124
20125 ;
20126 return 0;
20127}
20128_ACEOF
20129rm -f conftest$ac_exeext
20130if { (ac_try="$ac_link"
20131case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20134esac
20135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_link") 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20149
20150 { echo "$as_me:$LINENO: result: yes" >&5
20151echo "${ECHO_T}yes" >&6; }
20152
20153else
20154 echo "$as_me: program exited with status $ac_status" >&5
20155echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158( exit $ac_status )
20159
20160 { echo "$as_me:$LINENO: result: no" >&5
20161echo "${ECHO_T}no" >&6; }
20162 cat >>confdefs.h <<\_ACEOF
20163#define BROKEN_GETADDRINFO 1
20164_ACEOF
20165
20166
20167fi
20168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169fi
20170
20171
20172fi
20173
20174if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20175 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
20176 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20177echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20178 if test "$cross_compiling" = yes; then
20179
20180 { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
20181echo "${ECHO_T}cross-compiling, assuming no" >&6; }
20182
20183
20184else
20185 cat >conftest.$ac_ext <<_ACEOF
20186/* confdefs.h. */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h. */
20191
20192#include <stdio.h>
20193#include <sys/socket.h>
20194#include <netdb.h>
20195#include <errno.h>
20196#include <netinet/in.h>
20197
20198#define TEST_PORT "2222"
20199
20200int
20201main ()
20202{
20203
20204 int err, sock;
20205 struct addrinfo *gai_ai, *ai, hints;
20206 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20207
20208 memset(&hints, 0, sizeof(hints));
20209 hints.ai_family = PF_UNSPEC;
20210 hints.ai_socktype = SOCK_STREAM;
20211 hints.ai_flags = AI_PASSIVE;
20212
20213 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20214 if (err != 0) {
20215 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20216 exit(1);
20217 }
20218
20219 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20220 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
20221 continue;
20222
20223 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20224 sizeof(ntop), strport, sizeof(strport),
20225 NI_NUMERICHOST|NI_NUMERICSERV);
20226
20227 if (ai->ai_family == AF_INET && err != 0) {
20228 perror("getnameinfo");
20229 exit(2);
20230 }
20231 }
20232 exit(0);
20233
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238rm -f conftest$ac_exeext
20239if { (ac_try="$ac_link"
20240case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243esac
20244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252esac
20253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258
20259 { echo "$as_me:$LINENO: result: yes" >&5
20260echo "${ECHO_T}yes" >&6; }
20261
20262cat >>confdefs.h <<\_ACEOF
20263#define AIX_GETNAMEINFO_HACK 1
20264_ACEOF
20265
20266
20267else
20268 echo "$as_me: program exited with status $ac_status" >&5
20269echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272( exit $ac_status )
20273
20274 { echo "$as_me:$LINENO: result: no" >&5
20275echo "${ECHO_T}no" >&6; }
20276 cat >>confdefs.h <<\_ACEOF
20277#define BROKEN_GETADDRINFO 1
20278_ACEOF
20279
20280
20281fi
20282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20283fi
20284
20285
20286fi
20287
20288if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20289 { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20290echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20291if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293else
20294 cat >conftest.$ac_ext <<_ACEOF
20295/* confdefs.h. */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h. */
20300#include <sys/types.h>
20301 #include <sys/socket.h>
20302 #include <netdb.h>
20303
20304int
20305main ()
20306{
20307#ifndef AI_NUMERICSERV
20308 (void) AI_NUMERICSERV;
20309#endif
20310
20311 ;
20312 return 0;
20313}
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (ac_try="$ac_compile"
20317case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320esac
20321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_cv_have_decl_AI_NUMERICSERV=yes
20333else
20334 echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_cv_have_decl_AI_NUMERICSERV=no
20338fi
20339
20340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341fi
20342{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20343echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20344if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20345
20346cat >>confdefs.h <<_ACEOF
20347#define HAVE_DECL_AI_NUMERICSERV 1
20348_ACEOF
20349
20350
20351else
20352 cat >>confdefs.h <<_ACEOF
20353#define HAVE_DECL_AI_NUMERICSERV 0
20354_ACEOF
20355
20356
20357fi
20358
20359
20360fi
20361
20362if test "x$check_for_conflicting_getspnam" = "x1"; then
20363 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
20364echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20366/* confdefs.h. */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h. */
20371 #include <shadow.h>
20372int
20373main ()
20374{
20375 exit(0);
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (ac_try="$ac_compile"
20382case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20397
20398 { echo "$as_me:$LINENO: result: no" >&5
20399echo "${ECHO_T}no" >&6; }
20400
20401else
20402 echo "$as_me: failed program was:" >&5
20403sed 's/^/| /' conftest.$ac_ext >&5
20404
20405
20406 { echo "$as_me:$LINENO: result: yes" >&5
20407echo "${ECHO_T}yes" >&6; }
20408
20409cat >>confdefs.h <<\_ACEOF
20410#define GETSPNAM_CONFLICTING_DEFS 1
20411_ACEOF
20412
20413
20414
20415fi
20416
20417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418fi
20419
20420{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20421echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20422if test "${ac_cv_func_getpgrp_void+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 # Use it with a single arg.
20426cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
20432$ac_includes_default
20433int
20434main ()
20435{
20436getpgrp (0);
20437 ;
20438 return 0;
20439}
20440_ACEOF
20441rm -f conftest.$ac_objext
20442if { (ac_try="$ac_compile"
20443case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446esac
20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_compile") 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest.$ac_objext; then
20458 ac_cv_func_getpgrp_void=no
20459else
20460 echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 ac_cv_func_getpgrp_void=yes
20464fi
20465
20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467
20468fi
20469{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20470echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20471if test $ac_cv_func_getpgrp_void = yes; then
20472
20473cat >>confdefs.h <<\_ACEOF
20474#define GETPGRP_VOID 1
20475_ACEOF
20476
20477fi
20478
20479
20480# Search for OpenSSL
20481saved_CPPFLAGS="$CPPFLAGS"
20482saved_LDFLAGS="$LDFLAGS"
20483
20484# Check whether --with-ssl-dir was given.
20485if test "${with_ssl_dir+set}" = set; then
20486 withval=$with_ssl_dir;
20487 if test "x$openssl" = "xno" ; then
20488 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
20489echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
20490 { (exit 1); exit 1; }; }
20491 fi
20492 if test "x$withval" != "xno" ; then
20493 case "$withval" in
20494 # Relative paths
20495 ./*|../*) withval="`pwd`/$withval"
20496 esac
20497 if test -d "$withval/lib"; then
20498 if test -n "${need_dash_r}"; then
20499 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
20500 else
20501 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
20502 fi
20503 elif test -d "$withval/lib64"; then
20504 if test -n "${need_dash_r}"; then
20505 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
20506 else
20507 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
20508 fi
20509 else
20510 if test -n "${need_dash_r}"; then
20511 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
20512 else
20513 LDFLAGS="-L${withval} ${LDFLAGS}"
20514 fi
20515 fi
20516 if test -d "$withval/include"; then
20517 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
20518 else
20519 CPPFLAGS="-I${withval} ${CPPFLAGS}"
20520 fi
20521 fi
20522
20523
20524fi
20525
20526
20527
20528# Check whether --with-openssl-header-check was given.
20529if test "${with_openssl_header_check+set}" = set; then
20530 withval=$with_openssl_header_check;
20531 if test "x$withval" = "xno" ; then
20532 openssl_check_nonfatal=1
20533 fi
20534
20535
20536fi
20537
20538
20539openssl_engine=no
20540
20541# Check whether --with-ssl-engine was given.
20542if test "${with_ssl_engine+set}" = set; then
20543 withval=$with_ssl_engine;
20544 if test "x$openssl" = "xno" ; then
20545 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
20546echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
20547 { (exit 1); exit 1; }; }
20548 fi
20549 if test "x$withval" != "xno" ; then
20550 openssl_engine=yes
20551 fi
20552
20553
20554fi
20555
20556
20557if test "x$openssl" = "xyes" ; then
20558 LIBS="-lcrypto $LIBS"
20559 cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
20565
20566/* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
20569#ifdef __cplusplus
20570extern "C"
20571#endif
20572char RAND_add ();
20573int
20574main ()
20575{
20576return RAND_add ();
20577 ;
20578 return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext conftest$ac_exeext
20582if { (ac_try="$ac_link"
20583case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_link") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest$ac_exeext &&
20598 $as_test_x conftest$ac_exeext; then
20599
20600cat >>confdefs.h <<\_ACEOF
20601#define HAVE_OPENSSL 1
20602_ACEOF
20603
20604else
20605 echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608
20609 if test -n "${need_dash_r}"; then
20610 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
20611 else
20612 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
20613 fi
20614 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
20615 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20616 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20617echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20618if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620fi
20621{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20622echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20623else
20624 # Is the header compilable?
20625{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20626echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20627cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633$ac_includes_default
20634#include <openssl/opensslv.h>
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (ac_try="$ac_compile"
20638case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641esac
20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compile") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && {
20650 test -z "$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 } && test -s conftest.$ac_objext; then
20653 ac_header_compiler=yes
20654else
20655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ac_header_compiler=no
20659fi
20660
20661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20663echo "${ECHO_T}$ac_header_compiler" >&6; }
20664
20665# Is the header present?
20666{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20667echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20668cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
20674#include <openssl/opensslv.h>
20675_ACEOF
20676if { (ac_try="$ac_cpp conftest.$ac_ext"
20677case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } >/dev/null && {
20689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 }; then
20692 ac_header_preproc=yes
20693else
20694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 ac_header_preproc=no
20698fi
20699
20700rm -f conftest.err conftest.$ac_ext
20701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20702echo "${ECHO_T}$ac_header_preproc" >&6; }
20703
20704# So? What about this header?
20705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20706 yes:no: )
20707 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20708echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20710echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20711 ac_header_preproc=yes
20712 ;;
20713 no:yes:* )
20714 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20715echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
20717echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20719echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
20721echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20723echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20725echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20726 ( cat <<\_ASBOX
20727## ------------------------------------------- ##
20728## Report this to openssh-unix-dev@mindrot.org ##
20729## ------------------------------------------- ##
20730_ASBOX
20731 ) | sed "s/^/$as_me: WARNING: /" >&2
20732 ;;
20733esac
20734{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20735echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20736if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20740fi
20741{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20742echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20743
20744fi
20745if test $ac_cv_header_openssl_opensslv_h = yes; then
20746 :
20747else
20748 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
20749echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
20750 { (exit 1); exit 1; }; }
20751fi
20752
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760
20761/* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764#ifdef __cplusplus
20765extern "C"
20766#endif
20767char RAND_add ();
20768int
20769main ()
20770{
20771return RAND_add ();
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776rm -f conftest.$ac_objext conftest$ac_exeext
20777if { (ac_try="$ac_link"
20778case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_link") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest$ac_exeext &&
20793 $as_test_x conftest$ac_exeext; then
20794 cat >>confdefs.h <<\_ACEOF
20795#define HAVE_OPENSSL 1
20796_ACEOF
20797
20798else
20799 echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
20802
20803 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
20804echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
20805 { (exit 1); exit 1; }; }
20806
20807
20808fi
20809
20810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20811 conftest$ac_exeext conftest.$ac_ext
20812
20813
20814fi
20815
20816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818
20819 # Determine OpenSSL header version
20820 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
20821echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
20822 if test "$cross_compiling" = yes; then
20823
20824 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20825echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20826
20827
20828else
20829 cat >conftest.$ac_ext <<_ACEOF
20830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
20835
20836 #include <stdio.h>
20837 #include <string.h>
20838 #include <openssl/opensslv.h>
20839 #define DATA "conftest.sslincver"
20840
20841int
20842main ()
20843{
20844
20845 FILE *fd;
20846 int rc;
20847
20848 fd = fopen(DATA,"w");
20849 if(fd == NULL)
20850 exit(1);
20851
20852 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
20853 exit(1);
20854
20855 exit(0);
20856
20857 ;
20858 return 0;
20859}
20860_ACEOF
20861rm -f conftest$ac_exeext
20862if { (ac_try="$ac_link"
20863case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_link") 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881
20882 ssl_header_ver=`cat conftest.sslincver`
20883 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
20884echo "${ECHO_T}$ssl_header_ver" >&6; }
20885
20886else
20887 echo "$as_me: program exited with status $ac_status" >&5
20888echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891( exit $ac_status )
20892
20893 { echo "$as_me:$LINENO: result: not found" >&5
20894echo "${ECHO_T}not found" >&6; }
20895 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
20896echo "$as_me: error: OpenSSL version header not found." >&2;}
20897 { (exit 1); exit 1; }; }
20898
20899fi
20900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901fi
20902
20903
20904
20905 # Determine OpenSSL library version
20906 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
20907echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
20908 if test "$cross_compiling" = yes; then
20909
20910 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20911echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20912
20913
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921
20922 #include <stdio.h>
20923 #include <string.h>
20924 #include <openssl/opensslv.h>
20925 #include <openssl/crypto.h>
20926 #define DATA "conftest.ssllibver"
20927
20928int
20929main ()
20930{
20931
20932 FILE *fd;
20933 int rc;
20934
20935 fd = fopen(DATA,"w");
20936 if(fd == NULL)
20937 exit(1);
20938
20939 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
20940 SSLeay_version(SSLEAY_VERSION))) <0)
20941 exit(1);
20942
20943 exit(0);
20944
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest$ac_exeext
20950if { (ac_try="$ac_link"
20951case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_link") 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963esac
20964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969
20970 ssl_library_ver=`cat conftest.ssllibver`
20971 # Check version is supported.
20972 case "$ssl_library_ver" in
20973 0090[0-7]*|009080[0-5]*)
20974 { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
20975echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
20976 { (exit 1); exit 1; }; }
20977 ;;
20978 *) ;;
20979 esac
20980 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
20981echo "${ECHO_T}$ssl_library_ver" >&6; }
20982
20983else
20984 echo "$as_me: program exited with status $ac_status" >&5
20985echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988( exit $ac_status )
20989
20990 { echo "$as_me:$LINENO: result: not found" >&5
20991echo "${ECHO_T}not found" >&6; }
20992 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
20993echo "$as_me: error: OpenSSL library not found." >&2;}
20994 { (exit 1); exit 1; }; }
20995
20996fi
20997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20998fi
20999
21000
21001
21002 # Sanity check OpenSSL headers
21003 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
21004echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
21005 if test "$cross_compiling" = yes; then
21006
21007 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21008echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21009
21010
21011else
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018
21019 #include <string.h>
21020 #include <openssl/opensslv.h>
21021
21022int
21023main ()
21024{
21025
21026 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
21027
21028 ;
21029 return 0;
21030}
21031_ACEOF
21032rm -f conftest$ac_exeext
21033if { (ac_try="$ac_link"
21034case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037esac
21038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046esac
21047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052
21053 { echo "$as_me:$LINENO: result: yes" >&5
21054echo "${ECHO_T}yes" >&6; }
21055
21056else
21057 echo "$as_me: program exited with status $ac_status" >&5
21058echo "$as_me: failed program was:" >&5
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
21061( exit $ac_status )
21062
21063 { echo "$as_me:$LINENO: result: no" >&5
21064echo "${ECHO_T}no" >&6; }
21065 if test "x$openssl_check_nonfatal" = "x"; then
21066 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
21067 library. Check config.log for details.
21068 If you are sure your installation is consistent, you can disable the check
21069 by running \"./configure --without-openssl-header-check\".
21070 Also see contrib/findssl.sh for help identifying header/library mismatches.
21071 " >&5
21072echo "$as_me: error: Your OpenSSL headers do not match your
21073 library. Check config.log for details.
21074 If you are sure your installation is consistent, you can disable the check
21075 by running \"./configure --without-openssl-header-check\".
21076 Also see contrib/findssl.sh for help identifying header/library mismatches.
21077 " >&2;}
21078 { (exit 1); exit 1; }; }
21079 else
21080 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21081 library. Check config.log for details.
21082 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21083echo "$as_me: WARNING: Your OpenSSL headers do not match your
21084 library. Check config.log for details.
21085 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21086 fi
21087
21088fi
21089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21090fi
21091
21092
21093
21094 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
21095echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102 #include <openssl/evp.h>
21103int
21104main ()
21105{
21106 SSLeay_add_all_algorithms();
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext conftest$ac_exeext
21112if { (ac_try="$ac_link"
21113case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116esac
21117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_link") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest$ac_exeext &&
21128 $as_test_x conftest$ac_exeext; then
21129
21130 { echo "$as_me:$LINENO: result: yes" >&5
21131echo "${ECHO_T}yes" >&6; }
21132
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137
21138 { echo "$as_me:$LINENO: result: no" >&5
21139echo "${ECHO_T}no" >&6; }
21140 saved_LIBS="$LIBS"
21141 LIBS="$LIBS -ldl"
21142 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
21143echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21144 cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150 #include <openssl/evp.h>
21151int
21152main ()
21153{
21154 SSLeay_add_all_algorithms();
21155 ;
21156 return 0;
21157}
21158_ACEOF
21159rm -f conftest.$ac_objext conftest$ac_exeext
21160if { (ac_try="$ac_link"
21161case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164esac
21165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_link") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest$ac_exeext &&
21176 $as_test_x conftest$ac_exeext; then
21177
21178 { echo "$as_me:$LINENO: result: yes" >&5
21179echo "${ECHO_T}yes" >&6; }
21180
21181else
21182 echo "$as_me: failed program was:" >&5
21183sed 's/^/| /' conftest.$ac_ext >&5
21184
21185
21186 { echo "$as_me:$LINENO: result: no" >&5
21187echo "${ECHO_T}no" >&6; }
21188 LIBS="$saved_LIBS"
21189
21190
21191fi
21192
21193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21195
21196
21197fi
21198
21199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21200 conftest$ac_exeext conftest.$ac_ext
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212for ac_func in \
21213 BN_is_prime_ex \
21214 DSA_generate_parameters_ex \
21215 EVP_DigestInit_ex \
21216 EVP_DigestFinal_ex \
21217 EVP_MD_CTX_init \
21218 EVP_MD_CTX_cleanup \
21219 EVP_MD_CTX_copy_ex \
21220 HMAC_CTX_init \
21221 RSA_generate_key_ex \
21222 RSA_get_default_method \
21223
21224do
21225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21239#define $ac_func innocuous_$ac_func
21240
21241/* System header to define __stub macros and hopefully few prototypes,
21242 which can conflict with char $ac_func (); below.
21243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21244 <limits.h> exists even on freestanding compilers. */
21245
21246#ifdef __STDC__
21247# include <limits.h>
21248#else
21249# include <assert.h>
21250#endif
21251
21252#undef $ac_func
21253
21254/* Override any GCC internal prototype to avoid an error.
21255 Use char because int might match the return type of a GCC
21256 builtin and then its argument prototype would still apply. */
21257#ifdef __cplusplus
21258extern "C"
21259#endif
21260char $ac_func ();
21261/* The GNU C library defines this for functions which it implements
21262 to always fail with ENOSYS. Some functions are actually named
21263 something starting with __ and the normal name is an alias. */
21264#if defined __stub_$ac_func || defined __stub___$ac_func
21265choke me
21266#endif
21267
21268int
21269main ()
21270{
21271return $ac_func ();
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext conftest$ac_exeext
21277if { (ac_try="$ac_link"
21278case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21281esac
21282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_link") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest$ac_exeext &&
21293 $as_test_x conftest$ac_exeext; then
21294 eval "$as_ac_var=yes"
21295else
21296 echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 eval "$as_ac_var=no"
21300fi
21301
21302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21303 conftest$ac_exeext conftest.$ac_ext
21304fi
21305ac_res=`eval echo '${'$as_ac_var'}'`
21306 { echo "$as_me:$LINENO: result: $ac_res" >&5
21307echo "${ECHO_T}$ac_res" >&6; }
21308if test `eval echo '${'$as_ac_var'}'` = yes; then
21309 cat >>confdefs.h <<_ACEOF
21310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21311_ACEOF
21312
21313fi
21314done
21315
21316
21317 if test "x$openssl_engine" = "xyes" ; then
21318 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
21319echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
21326
21327 #include <openssl/engine.h>
21328
21329int
21330main ()
21331{
21332
21333 ENGINE_load_builtin_engines();
21334 ENGINE_register_all_complete();
21335
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext
21341if { (ac_try="$ac_compile"
21342case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345esac
21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_compile") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest.$ac_objext; then
21357 { echo "$as_me:$LINENO: result: yes" >&5
21358echo "${ECHO_T}yes" >&6; }
21359
21360cat >>confdefs.h <<\_ACEOF
21361#define USE_OPENSSL_ENGINE 1
21362_ACEOF
21363
21364
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
21370echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
21371 { (exit 1); exit 1; }; }
21372
21373fi
21374
21375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 fi
21377
21378 # Check for OpenSSL without EVP_aes_{192,256}_cbc
21379 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
21380echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
21381 cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h. */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h. */
21387
21388 #include <string.h>
21389 #include <openssl/evp.h>
21390
21391int
21392main ()
21393{
21394
21395 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
21396
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext conftest$ac_exeext
21402if { (ac_try="$ac_link"
21403case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_link") 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest$ac_exeext &&
21418 $as_test_x conftest$ac_exeext; then
21419
21420 { echo "$as_me:$LINENO: result: no" >&5
21421echo "${ECHO_T}no" >&6; }
21422
21423else
21424 echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
21426
21427
21428 { echo "$as_me:$LINENO: result: yes" >&5
21429echo "${ECHO_T}yes" >&6; }
21430
21431cat >>confdefs.h <<\_ACEOF
21432#define OPENSSL_LOBOTOMISED_AES 1
21433_ACEOF
21434
21435
21436
21437fi
21438
21439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21440 conftest$ac_exeext conftest.$ac_ext
21441
21442 # Check for OpenSSL with EVP_aes_*ctr
21443 { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21444echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21445 cat >conftest.$ac_ext <<_ACEOF
21446/* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
21451
21452 #include <string.h>
21453 #include <openssl/evp.h>
21454
21455int
21456main ()
21457{
21458
21459 exit(EVP_aes_128_ctr() == NULL ||
21460 EVP_aes_192_cbc() == NULL ||
21461 EVP_aes_256_cbc() == NULL);
21462
21463 ;
21464 return 0;
21465}
21466_ACEOF
21467rm -f conftest.$ac_objext conftest$ac_exeext
21468if { (ac_try="$ac_link"
21469case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21472esac
21473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485
21486 { echo "$as_me:$LINENO: result: yes" >&5
21487echo "${ECHO_T}yes" >&6; }
21488
21489cat >>confdefs.h <<\_ACEOF
21490#define OPENSSL_HAVE_EVPCTR 1
21491_ACEOF
21492
21493
21494else
21495 echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498
21499 { echo "$as_me:$LINENO: result: no" >&5
21500echo "${ECHO_T}no" >&6; }
21501
21502
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506 conftest$ac_exeext conftest.$ac_ext
21507
21508 # Check for OpenSSL with EVP_aes_*gcm
21509 { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
21510echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
21511 cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517
21518 #include <string.h>
21519 #include <openssl/evp.h>
21520
21521int
21522main ()
21523{
21524
21525 exit(EVP_aes_128_gcm() == NULL ||
21526 EVP_aes_256_gcm() == NULL ||
21527 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
21528 EVP_CTRL_GCM_IV_GEN == 0 ||
21529 EVP_CTRL_GCM_SET_TAG == 0 ||
21530 EVP_CTRL_GCM_GET_TAG == 0 ||
21531 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
21532
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext conftest$ac_exeext
21538if { (ac_try="$ac_link"
21539case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542esac
21543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_link") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest$ac_exeext &&
21554 $as_test_x conftest$ac_exeext; then
21555
21556 { echo "$as_me:$LINENO: result: yes" >&5
21557echo "${ECHO_T}yes" >&6; }
21558
21559cat >>confdefs.h <<\_ACEOF
21560#define OPENSSL_HAVE_EVPGCM 1
21561_ACEOF
21562
21563
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
21568
21569 { echo "$as_me:$LINENO: result: no" >&5
21570echo "${ECHO_T}no" >&6; }
21571 unsupported_algorithms="$unsupported_cipers \
21572 aes128-gcm@openssh.com aes256-gcm@openssh.com"
21573
21574
21575fi
21576
21577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21579
21580 { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
21581echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
21582if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585 ac_func_search_save_LIBS=$LIBS
21586cat >conftest.$ac_ext <<_ACEOF
21587/* confdefs.h. */
21588_ACEOF
21589cat confdefs.h >>conftest.$ac_ext
21590cat >>conftest.$ac_ext <<_ACEOF
21591/* end confdefs.h. */
21592
21593/* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21596#ifdef __cplusplus
21597extern "C"
21598#endif
21599char EVP_CIPHER_CTX_ctrl ();
21600int
21601main ()
21602{
21603return EVP_CIPHER_CTX_ctrl ();
21604 ;
21605 return 0;
21606}
21607_ACEOF
21608for ac_lib in '' crypto; do
21609 if test -z "$ac_lib"; then
21610 ac_res="none required"
21611 else
21612 ac_res=-l$ac_lib
21613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21614 fi
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616if { (ac_try="$ac_link"
21617case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620esac
21621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_link") 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest$ac_exeext &&
21632 $as_test_x conftest$ac_exeext; then
21633 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
21634else
21635 echo "$as_me: failed program was:" >&5
21636sed 's/^/| /' conftest.$ac_ext >&5
21637
21638
21639fi
21640
21641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21642 conftest$ac_exeext
21643 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21644 break
21645fi
21646done
21647if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21648 :
21649else
21650 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
21651fi
21652rm conftest.$ac_ext
21653LIBS=$ac_func_search_save_LIBS
21654fi
21655{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
21656echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
21657ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
21658if test "$ac_res" != no; then
21659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21660
21661cat >>confdefs.h <<\_ACEOF
21662#define HAVE_EVP_CIPHER_CTX_CTRL 1
21663_ACEOF
21664
21665fi
21666
21667
21668 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
21669echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671/* confdefs.h. */
21672_ACEOF
21673cat confdefs.h >>conftest.$ac_ext
21674cat >>conftest.$ac_ext <<_ACEOF
21675/* end confdefs.h. */
21676
21677 #include <string.h>
21678 #include <openssl/evp.h>
21679
21680int
21681main ()
21682{
21683
21684 if(EVP_DigestUpdate(NULL, NULL,0))
21685 exit(0);
21686
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
21692if { (ac_try="$ac_link"
21693case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696esac
21697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest$ac_exeext &&
21708 $as_test_x conftest$ac_exeext; then
21709
21710 { echo "$as_me:$LINENO: result: yes" >&5
21711echo "${ECHO_T}yes" >&6; }
21712
21713else
21714 echo "$as_me: failed program was:" >&5
21715sed 's/^/| /' conftest.$ac_ext >&5
21716
21717
21718 { echo "$as_me:$LINENO: result: no" >&5
21719echo "${ECHO_T}no" >&6; }
21720
21721cat >>confdefs.h <<\_ACEOF
21722#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
21723_ACEOF
21724
21725
21726
21727fi
21728
21729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21730 conftest$ac_exeext conftest.$ac_ext
21731
21732 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
21733 # because the system crypt() is more featureful.
21734 if test "x$check_for_libcrypt_before" = "x1"; then
21735
21736{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21737echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21738if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740else
21741 ac_check_lib_save_LIBS=$LIBS
21742LIBS="-lcrypt $LIBS"
21743cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
21749
21750/* Override any GCC internal prototype to avoid an error.
21751 Use char because int might match the return type of a GCC
21752 builtin and then its argument prototype would still apply. */
21753#ifdef __cplusplus
21754extern "C"
21755#endif
21756char crypt ();
21757int
21758main ()
21759{
21760return crypt ();
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext conftest$ac_exeext
21766if { (ac_try="$ac_link"
21767case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770esac
21771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_link") 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
21783 ac_cv_lib_crypt_crypt=yes
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_lib_crypt_crypt=no
21789fi
21790
21791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792 conftest$ac_exeext conftest.$ac_ext
21793LIBS=$ac_check_lib_save_LIBS
21794fi
21795{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21796echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21797if test $ac_cv_lib_crypt_crypt = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799#define HAVE_LIBCRYPT 1
21800_ACEOF
21801
21802 LIBS="-lcrypt $LIBS"
21803
21804fi
21805
21806 fi
21807
21808 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
21809 # version in OpenSSL.
21810 if test "x$check_for_libcrypt_later" = "x1"; then
21811 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21812echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21813if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816 ac_check_lib_save_LIBS=$LIBS
21817LIBS="-lcrypt $LIBS"
21818cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
21824
21825/* Override any GCC internal prototype to avoid an error.
21826 Use char because int might match the return type of a GCC
21827 builtin and then its argument prototype would still apply. */
21828#ifdef __cplusplus
21829extern "C"
21830#endif
21831char crypt ();
21832int
21833main ()
21834{
21835return crypt ();
21836 ;
21837 return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext conftest$ac_exeext
21841if { (ac_try="$ac_link"
21842case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845esac
21846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_link") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest$ac_exeext &&
21857 $as_test_x conftest$ac_exeext; then
21858 ac_cv_lib_crypt_crypt=yes
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863 ac_cv_lib_crypt_crypt=no
21864fi
21865
21866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867 conftest$ac_exeext conftest.$ac_ext
21868LIBS=$ac_check_lib_save_LIBS
21869fi
21870{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21871echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21872if test $ac_cv_lib_crypt_crypt = yes; then
21873 LIBS="$LIBS -lcrypt"
21874fi
21875
21876 fi
21877
21878
21879for ac_func in crypt DES_crypt
21880do
21881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21886else
21887 cat >conftest.$ac_ext <<_ACEOF
21888/* confdefs.h. */
21889_ACEOF
21890cat confdefs.h >>conftest.$ac_ext
21891cat >>conftest.$ac_ext <<_ACEOF
21892/* end confdefs.h. */
21893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21895#define $ac_func innocuous_$ac_func
21896
21897/* System header to define __stub macros and hopefully few prototypes,
21898 which can conflict with char $ac_func (); below.
21899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21900 <limits.h> exists even on freestanding compilers. */
21901
21902#ifdef __STDC__
21903# include <limits.h>
21904#else
21905# include <assert.h>
21906#endif
21907
21908#undef $ac_func
21909
21910/* Override any GCC internal prototype to avoid an error.
21911 Use char because int might match the return type of a GCC
21912 builtin and then its argument prototype would still apply. */
21913#ifdef __cplusplus
21914extern "C"
21915#endif
21916char $ac_func ();
21917/* The GNU C library defines this for functions which it implements
21918 to always fail with ENOSYS. Some functions are actually named
21919 something starting with __ and the normal name is an alias. */
21920#if defined __stub_$ac_func || defined __stub___$ac_func
21921choke me
21922#endif
21923
21924int
21925main ()
21926{
21927return $ac_func ();
21928 ;
21929 return 0;
21930}
21931_ACEOF
21932rm -f conftest.$ac_objext conftest$ac_exeext
21933if { (ac_try="$ac_link"
21934case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937esac
21938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_link") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } && {
21946 test -z "$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 } && test -s conftest$ac_exeext &&
21949 $as_test_x conftest$ac_exeext; then
21950 eval "$as_ac_var=yes"
21951else
21952 echo "$as_me: failed program was:" >&5
21953sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 eval "$as_ac_var=no"
21956fi
21957
21958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21959 conftest$ac_exeext conftest.$ac_ext
21960fi
21961ac_res=`eval echo '${'$as_ac_var'}'`
21962 { echo "$as_me:$LINENO: result: $ac_res" >&5
21963echo "${ECHO_T}$ac_res" >&6; }
21964if test `eval echo '${'$as_ac_var'}'` = yes; then
21965 cat >>confdefs.h <<_ACEOF
21966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21967_ACEOF
21968
21969fi
21970done
21971
21972
21973 # Search for SHA256 support in libc and/or OpenSSL
21974
21975
21976for ac_func in SHA256_Update EVP_sha256
21977do
21978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984 cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21992#define $ac_func innocuous_$ac_func
21993
21994/* System header to define __stub macros and hopefully few prototypes,
21995 which can conflict with char $ac_func (); below.
21996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21997 <limits.h> exists even on freestanding compilers. */
21998
21999#ifdef __STDC__
22000# include <limits.h>
22001#else
22002# include <assert.h>
22003#endif
22004
22005#undef $ac_func
22006
22007/* Override any GCC internal prototype to avoid an error.
22008 Use char because int might match the return type of a GCC
22009 builtin and then its argument prototype would still apply. */
22010#ifdef __cplusplus
22011extern "C"
22012#endif
22013char $ac_func ();
22014/* The GNU C library defines this for functions which it implements
22015 to always fail with ENOSYS. Some functions are actually named
22016 something starting with __ and the normal name is an alias. */
22017#if defined __stub_$ac_func || defined __stub___$ac_func
22018choke me
22019#endif
22020
22021int
22022main ()
22023{
22024return $ac_func ();
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext conftest$ac_exeext
22030if { (ac_try="$ac_link"
22031case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034esac
22035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext &&
22046 $as_test_x conftest$ac_exeext; then
22047 eval "$as_ac_var=yes"
22048else
22049 echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 eval "$as_ac_var=no"
22053fi
22054
22055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22056 conftest$ac_exeext conftest.$ac_ext
22057fi
22058ac_res=`eval echo '${'$as_ac_var'}'`
22059 { echo "$as_me:$LINENO: result: $ac_res" >&5
22060echo "${ECHO_T}$ac_res" >&6; }
22061if test `eval echo '${'$as_ac_var'}'` = yes; then
22062 cat >>confdefs.h <<_ACEOF
22063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22064_ACEOF
22065
22066else
22067 unsupported_algorithms="$unsupported_algorithms \
22068 hmac-sha2-256 hmac-sha2-512 \
22069 diffie-hellman-group-exchange-sha256 \
22070 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
22071
22072
22073fi
22074done
22075
22076 # Search for RIPE-MD support in OpenSSL
22077
22078for ac_func in EVP_ripemd160
22079do
22080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085else
22086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
22092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22094#define $ac_func innocuous_$ac_func
22095
22096/* System header to define __stub macros and hopefully few prototypes,
22097 which can conflict with char $ac_func (); below.
22098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22099 <limits.h> exists even on freestanding compilers. */
22100
22101#ifdef __STDC__
22102# include <limits.h>
22103#else
22104# include <assert.h>
22105#endif
22106
22107#undef $ac_func
22108
22109/* Override any GCC internal prototype to avoid an error.
22110 Use char because int might match the return type of a GCC
22111 builtin and then its argument prototype would still apply. */
22112#ifdef __cplusplus
22113extern "C"
22114#endif
22115char $ac_func ();
22116/* The GNU C library defines this for functions which it implements
22117 to always fail with ENOSYS. Some functions are actually named
22118 something starting with __ and the normal name is an alias. */
22119#if defined __stub_$ac_func || defined __stub___$ac_func
22120choke me
22121#endif
22122
22123int
22124main ()
22125{
22126return $ac_func ();
22127 ;
22128 return 0;
22129}
22130_ACEOF
22131rm -f conftest.$ac_objext conftest$ac_exeext
22132if { (ac_try="$ac_link"
22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_link") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest$ac_exeext &&
22148 $as_test_x conftest$ac_exeext; then
22149 eval "$as_ac_var=yes"
22150else
22151 echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 eval "$as_ac_var=no"
22155fi
22156
22157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22158 conftest$ac_exeext conftest.$ac_ext
22159fi
22160ac_res=`eval echo '${'$as_ac_var'}'`
22161 { echo "$as_me:$LINENO: result: $ac_res" >&5
22162echo "${ECHO_T}$ac_res" >&6; }
22163if test `eval echo '${'$as_ac_var'}'` = yes; then
22164 cat >>confdefs.h <<_ACEOF
22165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22166_ACEOF
22167
22168else
22169 unsupported_algorithms="$unsupported_algorithms \
22170 hmac-ripemd160
22171 hmac-ripemd160@openssh.com
22172 hmac-ripemd160-etm@openssh.com"
22173
22174
22175fi
22176done
22177
22178
22179 # Check complete ECC support in OpenSSL
22180 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
22181echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22183/* confdefs.h. */
22184_ACEOF
22185cat confdefs.h >>conftest.$ac_ext
22186cat >>conftest.$ac_ext <<_ACEOF
22187/* end confdefs.h. */
22188
22189 #include <openssl/ec.h>
22190 #include <openssl/ecdh.h>
22191 #include <openssl/ecdsa.h>
22192 #include <openssl/evp.h>
22193 #include <openssl/objects.h>
22194 #include <openssl/opensslv.h>
22195 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22196 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22197 #endif
22198
22199int
22200main ()
22201{
22202
22203 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
22204 const EVP_MD *m = EVP_sha256(); /* We need this too */
22205
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210rm -f conftest.$ac_objext conftest$ac_exeext
22211if { (ac_try="$ac_link"
22212case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215esac
22216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext &&
22227 $as_test_x conftest$ac_exeext; then
22228 { echo "$as_me:$LINENO: result: yes" >&5
22229echo "${ECHO_T}yes" >&6; }
22230 enable_nistp256=1
22231else
22232 echo "$as_me: failed program was:" >&5
22233sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 { echo "$as_me:$LINENO: result: no" >&5
22236echo "${ECHO_T}no" >&6; }
22237
22238fi
22239
22240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241 conftest$ac_exeext conftest.$ac_ext
22242
22243 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22244echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22245 cat >conftest.$ac_ext <<_ACEOF
22246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
22251
22252 #include <openssl/ec.h>
22253 #include <openssl/ecdh.h>
22254 #include <openssl/ecdsa.h>
22255 #include <openssl/evp.h>
22256 #include <openssl/objects.h>
22257 #include <openssl/opensslv.h>
22258 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22259 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22260 #endif
22261
22262int
22263main ()
22264{
22265
22266 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
22267 const EVP_MD *m = EVP_sha384(); /* We need this too */
22268
22269 ;
22270 return 0;
22271}
22272_ACEOF
22273rm -f conftest.$ac_objext conftest$ac_exeext
22274if { (ac_try="$ac_link"
22275case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278esac
22279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_link") 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest$ac_exeext &&
22290 $as_test_x conftest$ac_exeext; then
22291 { echo "$as_me:$LINENO: result: yes" >&5
22292echo "${ECHO_T}yes" >&6; }
22293 enable_nistp384=1
22294else
22295 echo "$as_me: failed program was:" >&5
22296sed 's/^/| /' conftest.$ac_ext >&5
22297
22298 { echo "$as_me:$LINENO: result: no" >&5
22299echo "${ECHO_T}no" >&6; }
22300
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22304 conftest$ac_exeext conftest.$ac_ext
22305
22306 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22307echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309/* confdefs.h. */
22310_ACEOF
22311cat confdefs.h >>conftest.$ac_ext
22312cat >>conftest.$ac_ext <<_ACEOF
22313/* end confdefs.h. */
22314
22315 #include <openssl/ec.h>
22316 #include <openssl/ecdh.h>
22317 #include <openssl/ecdsa.h>
22318 #include <openssl/evp.h>
22319 #include <openssl/objects.h>
22320 #include <openssl/opensslv.h>
22321 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22322 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22323 #endif
22324
22325int
22326main ()
22327{
22328
22329 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22330 const EVP_MD *m = EVP_sha512(); /* We need this too */
22331
22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext conftest$ac_exeext
22337if { (ac_try="$ac_link"
22338case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341esac
22342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest$ac_exeext &&
22353 $as_test_x conftest$ac_exeext; then
22354 { echo "$as_me:$LINENO: result: yes" >&5
22355echo "${ECHO_T}yes" >&6; }
22356 { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22357echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22358 if test "$cross_compiling" = yes; then
22359 { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22360echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22361 enable_nistp521=1
22362
22363else
22364 cat >conftest.$ac_ext <<_ACEOF
22365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
22370
22371 #include <openssl/ec.h>
22372 #include <openssl/ecdh.h>
22373 #include <openssl/ecdsa.h>
22374 #include <openssl/evp.h>
22375 #include <openssl/objects.h>
22376 #include <openssl/opensslv.h>
22377
22378int
22379main ()
22380{
22381
22382 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22383 const EVP_MD *m = EVP_sha512(); /* We need this too */
22384 exit(e == NULL || m == NULL);
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest$ac_exeext
22391if { (ac_try="$ac_link"
22392case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22395esac
22396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_link") 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 { echo "$as_me:$LINENO: result: yes" >&5
22411echo "${ECHO_T}yes" >&6; }
22412 enable_nistp521=1
22413else
22414 echo "$as_me: program exited with status $ac_status" >&5
22415echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418( exit $ac_status )
22419 { echo "$as_me:$LINENO: result: no" >&5
22420echo "${ECHO_T}no" >&6; }
22421fi
22422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22423fi
22424
22425
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430 { echo "$as_me:$LINENO: result: no" >&5
22431echo "${ECHO_T}no" >&6; }
22432
22433fi
22434
22435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22436 conftest$ac_exeext conftest.$ac_ext
22437
22438 COMMENT_OUT_ECC="#no ecc#"
22439 TEST_SSH_ECC=no
22440
22441 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22442 test x$enable_nistp521 = x1; then
22443
22444cat >>confdefs.h <<\_ACEOF
22445#define OPENSSL_HAS_ECC 1
22446_ACEOF
22447
22448 fi
22449 if test x$enable_nistp256 = x1; then
22450
22451cat >>confdefs.h <<\_ACEOF
22452#define OPENSSL_HAS_NISTP256 1
22453_ACEOF
22454
22455 TEST_SSH_ECC=yes
22456 COMMENT_OUT_ECC=""
22457 else
22458 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
22459 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
22460 fi
22461 if test x$enable_nistp384 = x1; then
22462
22463cat >>confdefs.h <<\_ACEOF
22464#define OPENSSL_HAS_NISTP384 1
22465_ACEOF
22466
22467 TEST_SSH_ECC=yes
22468 COMMENT_OUT_ECC=""
22469 else
22470 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
22471 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
22472 fi
22473 if test x$enable_nistp521 = x1; then
22474
22475cat >>confdefs.h <<\_ACEOF
22476#define OPENSSL_HAS_NISTP521 1
22477_ACEOF
22478
22479 TEST_SSH_ECC=yes
22480 COMMENT_OUT_ECC=""
22481 else
22482 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
22483 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
22484 fi
22485
22486
22487
22488else
22489 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22490echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22491if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22493else
22494 ac_check_lib_save_LIBS=$LIBS
22495LIBS="-lcrypt $LIBS"
22496cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503/* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22506#ifdef __cplusplus
22507extern "C"
22508#endif
22509char crypt ();
22510int
22511main ()
22512{
22513return crypt ();
22514 ;
22515 return 0;
22516}
22517_ACEOF
22518rm -f conftest.$ac_objext conftest$ac_exeext
22519if { (ac_try="$ac_link"
22520case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22523esac
22524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_link") 2>conftest.er1
22526 ac_status=$?
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } && {
22532 test -z "$ac_c_werror_flag" ||
22533 test ! -s conftest.err
22534 } && test -s conftest$ac_exeext &&
22535 $as_test_x conftest$ac_exeext; then
22536 ac_cv_lib_crypt_crypt=yes
22537else
22538 echo "$as_me: failed program was:" >&5
22539sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ac_cv_lib_crypt_crypt=no
22542fi
22543
22544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22545 conftest$ac_exeext conftest.$ac_ext
22546LIBS=$ac_check_lib_save_LIBS
22547fi
22548{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22549echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22550if test $ac_cv_lib_crypt_crypt = yes; then
22551 LIBS="$LIBS -lcrypt"
22552fi
22553
22554
22555for ac_func in crypt
22556do
22557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562else
22563 cat >conftest.$ac_ext <<_ACEOF
22564/* confdefs.h. */
22565_ACEOF
22566cat confdefs.h >>conftest.$ac_ext
22567cat >>conftest.$ac_ext <<_ACEOF
22568/* end confdefs.h. */
22569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22571#define $ac_func innocuous_$ac_func
22572
22573/* System header to define __stub macros and hopefully few prototypes,
22574 which can conflict with char $ac_func (); below.
22575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22576 <limits.h> exists even on freestanding compilers. */
22577
22578#ifdef __STDC__
22579# include <limits.h>
22580#else
22581# include <assert.h>
22582#endif
22583
22584#undef $ac_func
22585
22586/* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22589#ifdef __cplusplus
22590extern "C"
22591#endif
22592char $ac_func ();
22593/* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596#if defined __stub_$ac_func || defined __stub___$ac_func
22597choke me
22598#endif
22599
22600int
22601main ()
22602{
22603return $ac_func ();
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext conftest$ac_exeext
22609if { (ac_try="$ac_link"
22610case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613esac
22614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest$ac_exeext &&
22625 $as_test_x conftest$ac_exeext; then
22626 eval "$as_ac_var=yes"
22627else
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 eval "$as_ac_var=no"
22632fi
22633
22634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635 conftest$ac_exeext conftest.$ac_ext
22636fi
22637ac_res=`eval echo '${'$as_ac_var'}'`
22638 { echo "$as_me:$LINENO: result: $ac_res" >&5
22639echo "${ECHO_T}$ac_res" >&6; }
22640if test `eval echo '${'$as_ac_var'}'` = yes; then
22641 cat >>confdefs.h <<_ACEOF
22642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22643_ACEOF
22644
22645fi
22646done
22647
22648fi
22649
22650
22651
22652
22653
22654for ac_func in \
22655 arc4random \
22656 arc4random_buf \
22657 arc4random_stir \
22658 arc4random_uniform \
22659
22660do
22661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22662{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666else
22667 cat >conftest.$ac_ext <<_ACEOF
22668/* confdefs.h. */
22669_ACEOF
22670cat confdefs.h >>conftest.$ac_ext
22671cat >>conftest.$ac_ext <<_ACEOF
22672/* end confdefs.h. */
22673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22675#define $ac_func innocuous_$ac_func
22676
22677/* System header to define __stub macros and hopefully few prototypes,
22678 which can conflict with char $ac_func (); below.
22679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22680 <limits.h> exists even on freestanding compilers. */
22681
22682#ifdef __STDC__
22683# include <limits.h>
22684#else
22685# include <assert.h>
22686#endif
22687
22688#undef $ac_func
22689
22690/* Override any GCC internal prototype to avoid an error.
22691 Use char because int might match the return type of a GCC
22692 builtin and then its argument prototype would still apply. */
22693#ifdef __cplusplus
22694extern "C"
22695#endif
22696char $ac_func ();
22697/* The GNU C library defines this for functions which it implements
22698 to always fail with ENOSYS. Some functions are actually named
22699 something starting with __ and the normal name is an alias. */
22700#if defined __stub_$ac_func || defined __stub___$ac_func
22701choke me
22702#endif
22703
22704int
22705main ()
22706{
22707return $ac_func ();
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712rm -f conftest.$ac_objext conftest$ac_exeext
22713if { (ac_try="$ac_link"
22714case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22717esac
22718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_link") 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext &&
22729 $as_test_x conftest$ac_exeext; then
22730 eval "$as_ac_var=yes"
22731else
22732 echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 eval "$as_ac_var=no"
22736fi
22737
22738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 conftest$ac_exeext conftest.$ac_ext
22740fi
22741ac_res=`eval echo '${'$as_ac_var'}'`
22742 { echo "$as_me:$LINENO: result: $ac_res" >&5
22743echo "${ECHO_T}$ac_res" >&6; }
22744if test `eval echo '${'$as_ac_var'}'` = yes; then
22745 cat >>confdefs.h <<_ACEOF
22746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22747_ACEOF
22748
22749fi
22750done
22751
22752
22753saved_LIBS="$LIBS"
22754{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
22755echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
22756if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758else
22759 ac_check_lib_save_LIBS=$LIBS
22760LIBS="-liaf $LIBS"
22761cat >conftest.$ac_ext <<_ACEOF
22762/* confdefs.h. */
22763_ACEOF
22764cat confdefs.h >>conftest.$ac_ext
22765cat >>conftest.$ac_ext <<_ACEOF
22766/* end confdefs.h. */
22767
22768/* Override any GCC internal prototype to avoid an error.
22769 Use char because int might match the return type of a GCC
22770 builtin and then its argument prototype would still apply. */
22771#ifdef __cplusplus
22772extern "C"
22773#endif
22774char ia_openinfo ();
22775int
22776main ()
22777{
22778return ia_openinfo ();
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783rm -f conftest.$ac_objext conftest$ac_exeext
22784if { (ac_try="$ac_link"
22785case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788esac
22789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22791 ac_status=$?
22792 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 ac_cv_lib_iaf_ia_openinfo=yes
22802else
22803 echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 ac_cv_lib_iaf_ia_openinfo=no
22807fi
22808
22809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22810 conftest$ac_exeext conftest.$ac_ext
22811LIBS=$ac_check_lib_save_LIBS
22812fi
22813{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
22814echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
22815if test $ac_cv_lib_iaf_ia_openinfo = yes; then
22816
22817 LIBS="$LIBS -liaf"
22818
22819for ac_func in set_id
22820do
22821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22822{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22824if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826else
22827 cat >conftest.$ac_ext <<_ACEOF
22828/* confdefs.h. */
22829_ACEOF
22830cat confdefs.h >>conftest.$ac_ext
22831cat >>conftest.$ac_ext <<_ACEOF
22832/* end confdefs.h. */
22833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22835#define $ac_func innocuous_$ac_func
22836
22837/* System header to define __stub macros and hopefully few prototypes,
22838 which can conflict with char $ac_func (); below.
22839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22840 <limits.h> exists even on freestanding compilers. */
22841
22842#ifdef __STDC__
22843# include <limits.h>
22844#else
22845# include <assert.h>
22846#endif
22847
22848#undef $ac_func
22849
22850/* Override any GCC internal prototype to avoid an error.
22851 Use char because int might match the return type of a GCC
22852 builtin and then its argument prototype would still apply. */
22853#ifdef __cplusplus
22854extern "C"
22855#endif
22856char $ac_func ();
22857/* The GNU C library defines this for functions which it implements
22858 to always fail with ENOSYS. Some functions are actually named
22859 something starting with __ and the normal name is an alias. */
22860#if defined __stub_$ac_func || defined __stub___$ac_func
22861choke me
22862#endif
22863
22864int
22865main ()
22866{
22867return $ac_func ();
22868 ;
22869 return 0;
22870}
22871_ACEOF
22872rm -f conftest.$ac_objext conftest$ac_exeext
22873if { (ac_try="$ac_link"
22874case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877esac
22878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_link") 2>conftest.er1
22880 ac_status=$?
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest$ac_exeext &&
22889 $as_test_x conftest$ac_exeext; then
22890 eval "$as_ac_var=yes"
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 eval "$as_ac_var=no"
22896fi
22897
22898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899 conftest$ac_exeext conftest.$ac_ext
22900fi
22901ac_res=`eval echo '${'$as_ac_var'}'`
22902 { echo "$as_me:$LINENO: result: $ac_res" >&5
22903echo "${ECHO_T}$ac_res" >&6; }
22904if test `eval echo '${'$as_ac_var'}'` = yes; then
22905 cat >>confdefs.h <<_ACEOF
22906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22907_ACEOF
22908 SSHDLIBS="$SSHDLIBS -liaf"
22909
22910cat >>confdefs.h <<\_ACEOF
22911#define HAVE_LIBIAF 1
22912_ACEOF
22913
22914
22915fi
22916done
22917
22918
22919fi
22920
22921LIBS="$saved_LIBS"
22922
22923### Configure cryptographic random number support
22924
22925# Check wheter OpenSSL seeds itself
22926if test "x$openssl" = "xyes" ; then
22927 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
22928echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
22929 if test "$cross_compiling" = yes; then
22930
22931 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
22932echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
22933 # This is safe, since we will fatal() at runtime if
22934 # OpenSSL is not seeded correctly.
22935 OPENSSL_SEEDS_ITSELF=yes
22936
22937
22938else
22939 cat >conftest.$ac_ext <<_ACEOF
22940/* confdefs.h. */
22941_ACEOF
22942cat confdefs.h >>conftest.$ac_ext
22943cat >>conftest.$ac_ext <<_ACEOF
22944/* end confdefs.h. */
22945
22946 #include <string.h>
22947 #include <openssl/rand.h>
22948
22949int
22950main ()
22951{
22952
22953 exit(RAND_status() == 1 ? 0 : 1);
22954
22955 ;
22956 return 0;
22957}
22958_ACEOF
22959rm -f conftest$ac_exeext
22960if { (ac_try="$ac_link"
22961case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22964esac
22965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966 (eval "$ac_link") 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22970 { (case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973esac
22974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_try") 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; }; then
22979
22980 OPENSSL_SEEDS_ITSELF=yes
22981 { echo "$as_me:$LINENO: result: yes" >&5
22982echo "${ECHO_T}yes" >&6; }
22983
22984else
22985 echo "$as_me: program exited with status $ac_status" >&5
22986echo "$as_me: failed program was:" >&5
22987sed 's/^/| /' conftest.$ac_ext >&5
22988
22989( exit $ac_status )
22990
22991 { echo "$as_me:$LINENO: result: no" >&5
22992echo "${ECHO_T}no" >&6; }
22993
22994fi
22995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22996fi
22997
22998
22999fi
23000
23001# PRNGD TCP socket
23002
23003# Check whether --with-prngd-port was given.
23004if test "${with_prngd_port+set}" = set; then
23005 withval=$with_prngd_port;
23006 case "$withval" in
23007 no)
23008 withval=""
23009 ;;
23010 [0-9]*)
23011 ;;
23012 *)
23013 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
23014echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
23015 { (exit 1); exit 1; }; }
23016 ;;
23017 esac
23018 if test ! -z "$withval" ; then
23019 PRNGD_PORT="$withval"
23020
23021cat >>confdefs.h <<_ACEOF
23022#define PRNGD_PORT $PRNGD_PORT
23023_ACEOF
23024
23025 fi
23026
23027
23028fi
23029
23030
23031# PRNGD Unix domain socket
23032
23033# Check whether --with-prngd-socket was given.
23034if test "${with_prngd_socket+set}" = set; then
23035 withval=$with_prngd_socket;
23036 case "$withval" in
23037 yes)
23038 withval="/var/run/egd-pool"
23039 ;;
23040 no)
23041 withval=""
23042 ;;
23043 /*)
23044 ;;
23045 *)
23046 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
23047echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
23048 { (exit 1); exit 1; }; }
23049 ;;
23050 esac
23051
23052 if test ! -z "$withval" ; then
23053 if test ! -z "$PRNGD_PORT" ; then
23054 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
23055echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
23056 { (exit 1); exit 1; }; }
23057 fi
23058 if test ! -r "$withval" ; then
23059 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
23060echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
23061 fi
23062 PRNGD_SOCKET="$withval"
23063
23064cat >>confdefs.h <<_ACEOF
23065#define PRNGD_SOCKET "$PRNGD_SOCKET"
23066_ACEOF
23067
23068 fi
23069
23070else
23071
23072 # Check for existing socket only if we don't have a random device already
23073 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
23074 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
23075echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
23076 # Insert other locations here
23077 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
23078 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
23079 PRNGD_SOCKET="$sock"
23080 cat >>confdefs.h <<_ACEOF
23081#define PRNGD_SOCKET "$PRNGD_SOCKET"
23082_ACEOF
23083
23084 break;
23085 fi
23086 done
23087 if test ! -z "$PRNGD_SOCKET" ; then
23088 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
23089echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
23090 else
23091 { echo "$as_me:$LINENO: result: not found" >&5
23092echo "${ECHO_T}not found" >&6; }
23093 fi
23094 fi
23095
23096
23097fi
23098
23099
23100# Which randomness source do we use?
23101if test ! -z "$PRNGD_PORT" ; then
23102 RAND_MSG="PRNGd port $PRNGD_PORT"
23103elif test ! -z "$PRNGD_SOCKET" ; then
23104 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
23105elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
23106
23107cat >>confdefs.h <<\_ACEOF
23108#define OPENSSL_PRNG_ONLY 1
23109_ACEOF
23110
23111 RAND_MSG="OpenSSL internal ONLY"
23112elif test "x$openssl" = "xno" ; then
23113 { echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
23114echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
23115else
23116 { { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5
23117echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;}
23118 { (exit 1); exit 1; }; }
23119fi
23120
23121# Check for PAM libs
23122PAM_MSG="no"
23123
23124# Check whether --with-pam was given.
23125if test "${with_pam+set}" = set; then
23126 withval=$with_pam;
23127 if test "x$withval" != "xno" ; then
23128 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
23129 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
23130 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23131echo "$as_me: error: PAM headers not found" >&2;}
23132 { (exit 1); exit 1; }; }
23133 fi
23134
23135 saved_LIBS="$LIBS"
23136
23137{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23139if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141else
23142 ac_check_lib_save_LIBS=$LIBS
23143LIBS="-ldl $LIBS"
23144cat >conftest.$ac_ext <<_ACEOF
23145/* confdefs.h. */
23146_ACEOF
23147cat confdefs.h >>conftest.$ac_ext
23148cat >>conftest.$ac_ext <<_ACEOF
23149/* end confdefs.h. */
23150
23151/* Override any GCC internal prototype to avoid an error.
23152 Use char because int might match the return type of a GCC
23153 builtin and then its argument prototype would still apply. */
23154#ifdef __cplusplus
23155extern "C"
23156#endif
23157char dlopen ();
23158int
23159main ()
23160{
23161return dlopen ();
23162 ;
23163 return 0;
23164}
23165_ACEOF
23166rm -f conftest.$ac_objext conftest$ac_exeext
23167if { (ac_try="$ac_link"
23168case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23171esac
23172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_link") 2>conftest.er1
23174 ac_status=$?
23175 grep -v '^ *+' conftest.er1 >conftest.err
23176 rm -f conftest.er1
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } && {
23180 test -z "$ac_c_werror_flag" ||
23181 test ! -s conftest.err
23182 } && test -s conftest$ac_exeext &&
23183 $as_test_x conftest$ac_exeext; then
23184 ac_cv_lib_dl_dlopen=yes
23185else
23186 echo "$as_me: failed program was:" >&5
23187sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_cv_lib_dl_dlopen=no
23190fi
23191
23192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193 conftest$ac_exeext conftest.$ac_ext
23194LIBS=$ac_check_lib_save_LIBS
23195fi
23196{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23197echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23198if test $ac_cv_lib_dl_dlopen = yes; then
23199 cat >>confdefs.h <<_ACEOF
23200#define HAVE_LIBDL 1
23201_ACEOF
23202
23203 LIBS="-ldl $LIBS"
23204
23205fi
23206
23207
23208{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
23209echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
23210if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212else
23213 ac_check_lib_save_LIBS=$LIBS
23214LIBS="-lpam $LIBS"
23215cat >conftest.$ac_ext <<_ACEOF
23216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
23221
23222/* Override any GCC internal prototype to avoid an error.
23223 Use char because int might match the return type of a GCC
23224 builtin and then its argument prototype would still apply. */
23225#ifdef __cplusplus
23226extern "C"
23227#endif
23228char pam_set_item ();
23229int
23230main ()
23231{
23232return pam_set_item ();
23233 ;
23234 return 0;
23235}
23236_ACEOF
23237rm -f conftest.$ac_objext conftest$ac_exeext
23238if { (ac_try="$ac_link"
23239case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242esac
23243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_link") 2>conftest.er1
23245 ac_status=$?
23246 grep -v '^ *+' conftest.er1 >conftest.err
23247 rm -f conftest.er1
23248 cat conftest.err >&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } && {
23251 test -z "$ac_c_werror_flag" ||
23252 test ! -s conftest.err
23253 } && test -s conftest$ac_exeext &&
23254 $as_test_x conftest$ac_exeext; then
23255 ac_cv_lib_pam_pam_set_item=yes
23256else
23257 echo "$as_me: failed program was:" >&5
23258sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 ac_cv_lib_pam_pam_set_item=no
23261fi
23262
23263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23264 conftest$ac_exeext conftest.$ac_ext
23265LIBS=$ac_check_lib_save_LIBS
23266fi
23267{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
23268echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
23269if test $ac_cv_lib_pam_pam_set_item = yes; then
23270 cat >>confdefs.h <<_ACEOF
23271#define HAVE_LIBPAM 1
23272_ACEOF
23273
23274 LIBS="-lpam $LIBS"
23275
23276else
23277 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23278echo "$as_me: error: *** libpam missing" >&2;}
23279 { (exit 1); exit 1; }; }
23280fi
23281
23282
23283for ac_func in pam_getenvlist
23284do
23285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23290else
23291 cat >conftest.$ac_ext <<_ACEOF
23292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
23296/* end confdefs.h. */
23297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23299#define $ac_func innocuous_$ac_func
23300
23301/* System header to define __stub macros and hopefully few prototypes,
23302 which can conflict with char $ac_func (); below.
23303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23304 <limits.h> exists even on freestanding compilers. */
23305
23306#ifdef __STDC__
23307# include <limits.h>
23308#else
23309# include <assert.h>
23310#endif
23311
23312#undef $ac_func
23313
23314/* Override any GCC internal prototype to avoid an error.
23315 Use char because int might match the return type of a GCC
23316 builtin and then its argument prototype would still apply. */
23317#ifdef __cplusplus
23318extern "C"
23319#endif
23320char $ac_func ();
23321/* The GNU C library defines this for functions which it implements
23322 to always fail with ENOSYS. Some functions are actually named
23323 something starting with __ and the normal name is an alias. */
23324#if defined __stub_$ac_func || defined __stub___$ac_func
23325choke me
23326#endif
23327
23328int
23329main ()
23330{
23331return $ac_func ();
23332 ;
23333 return 0;
23334}
23335_ACEOF
23336rm -f conftest.$ac_objext conftest$ac_exeext
23337if { (ac_try="$ac_link"
23338case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341esac
23342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_link") 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } && {
23350 test -z "$ac_c_werror_flag" ||
23351 test ! -s conftest.err
23352 } && test -s conftest$ac_exeext &&
23353 $as_test_x conftest$ac_exeext; then
23354 eval "$as_ac_var=yes"
23355else
23356 echo "$as_me: failed program was:" >&5
23357sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 eval "$as_ac_var=no"
23360fi
23361
23362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23363 conftest$ac_exeext conftest.$ac_ext
23364fi
23365ac_res=`eval echo '${'$as_ac_var'}'`
23366 { echo "$as_me:$LINENO: result: $ac_res" >&5
23367echo "${ECHO_T}$ac_res" >&6; }
23368if test `eval echo '${'$as_ac_var'}'` = yes; then
23369 cat >>confdefs.h <<_ACEOF
23370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23371_ACEOF
23372
23373fi
23374done
23375
23376
23377for ac_func in pam_putenv
23378do
23379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23380{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23382if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384else
23385 cat >conftest.$ac_ext <<_ACEOF
23386/* confdefs.h. */
23387_ACEOF
23388cat confdefs.h >>conftest.$ac_ext
23389cat >>conftest.$ac_ext <<_ACEOF
23390/* end confdefs.h. */
23391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23393#define $ac_func innocuous_$ac_func
23394
23395/* System header to define __stub macros and hopefully few prototypes,
23396 which can conflict with char $ac_func (); below.
23397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23398 <limits.h> exists even on freestanding compilers. */
23399
23400#ifdef __STDC__
23401# include <limits.h>
23402#else
23403# include <assert.h>
23404#endif
23405
23406#undef $ac_func
23407
23408/* Override any GCC internal prototype to avoid an error.
23409 Use char because int might match the return type of a GCC
23410 builtin and then its argument prototype would still apply. */
23411#ifdef __cplusplus
23412extern "C"
23413#endif
23414char $ac_func ();
23415/* The GNU C library defines this for functions which it implements
23416 to always fail with ENOSYS. Some functions are actually named
23417 something starting with __ and the normal name is an alias. */
23418#if defined __stub_$ac_func || defined __stub___$ac_func
23419choke me
23420#endif
23421
23422int
23423main ()
23424{
23425return $ac_func ();
23426 ;
23427 return 0;
23428}
23429_ACEOF
23430rm -f conftest.$ac_objext conftest$ac_exeext
23431if { (ac_try="$ac_link"
23432case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435esac
23436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest$ac_exeext &&
23447 $as_test_x conftest$ac_exeext; then
23448 eval "$as_ac_var=yes"
23449else
23450 echo "$as_me: failed program was:" >&5
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 eval "$as_ac_var=no"
23454fi
23455
23456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23457 conftest$ac_exeext conftest.$ac_ext
23458fi
23459ac_res=`eval echo '${'$as_ac_var'}'`
23460 { echo "$as_me:$LINENO: result: $ac_res" >&5
23461echo "${ECHO_T}$ac_res" >&6; }
23462if test `eval echo '${'$as_ac_var'}'` = yes; then
23463 cat >>confdefs.h <<_ACEOF
23464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23465_ACEOF
23466
23467fi
23468done
23469
23470 LIBS="$saved_LIBS"
23471
23472 PAM_MSG="yes"
23473
23474 SSHDLIBS="$SSHDLIBS -lpam"
23475
23476cat >>confdefs.h <<\_ACEOF
23477#define USE_PAM 1
23478_ACEOF
23479
23480
23481 if test $ac_cv_lib_dl_dlopen = yes; then
23482 case "$LIBS" in
23483 *-ldl*)
23484 # libdl already in LIBS
23485 ;;
23486 *)
23487 SSHDLIBS="$SSHDLIBS -ldl"
23488 ;;
23489 esac
23490 fi
23491 fi
23492
23493
23494fi
23495
23496
23497# Check for older PAM
23498if test "x$PAM_MSG" = "xyes" ; then
23499 # Check PAM strerror arguments (old PAM)
23500 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
23501echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
23502 cat >conftest.$ac_ext <<_ACEOF
23503/* confdefs.h. */
23504_ACEOF
23505cat confdefs.h >>conftest.$ac_ext
23506cat >>conftest.$ac_ext <<_ACEOF
23507/* end confdefs.h. */
23508
23509#include <stdlib.h>
23510#if defined(HAVE_SECURITY_PAM_APPL_H)
23511#include <security/pam_appl.h>
23512#elif defined (HAVE_PAM_PAM_APPL_H)
23513#include <pam/pam_appl.h>
23514#endif
23515
23516int
23517main ()
23518{
23519
23520(void)pam_strerror((pam_handle_t *)NULL, -1);
23521
23522 ;
23523 return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext
23527if { (ac_try="$ac_compile"
23528case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23531esac
23532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23534 ac_status=$?
23535 grep -v '^ *+' conftest.er1 >conftest.err
23536 rm -f conftest.er1
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 { echo "$as_me:$LINENO: result: no" >&5
23544echo "${ECHO_T}no" >&6; }
23545else
23546 echo "$as_me: failed program was:" >&5
23547sed 's/^/| /' conftest.$ac_ext >&5
23548
23549
23550
23551cat >>confdefs.h <<\_ACEOF
23552#define HAVE_OLD_PAM 1
23553_ACEOF
23554
23555 { echo "$as_me:$LINENO: result: yes" >&5
23556echo "${ECHO_T}yes" >&6; }
23557 PAM_MSG="yes (old library)"
23558
23559
23560fi
23561
23562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563fi
23564
23565case "$host" in
23566*-*-cygwin*)
23567 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
23568 ;;
23569*)
23570 SSH_PRIVSEP_USER=sshd
23571 ;;
23572esac
23573
23574# Check whether --with-privsep-user was given.
23575if test "${with_privsep_user+set}" = set; then
23576 withval=$with_privsep_user;
23577 if test -n "$withval" && test "x$withval" != "xno" && \
23578 test "x${withval}" != "xyes"; then
23579 SSH_PRIVSEP_USER=$withval
23580 fi
23581
23582
23583fi
23584
23585if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
23589_ACEOF
23590
23591else
23592
23593cat >>confdefs.h <<_ACEOF
23594#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
23595_ACEOF
23596
23597fi
23598
23599
23600if test "x$have_linux_no_new_privs" = "x1" ; then
23601{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
23602echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
23603if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606 cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612
23613 #include <sys/types.h>
23614 #include <linux/seccomp.h>
23615
23616
23617int
23618main ()
23619{
23620#ifndef SECCOMP_MODE_FILTER
23621 (void) SECCOMP_MODE_FILTER;
23622#endif
23623
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext
23629if { (ac_try="$ac_compile"
23630case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23633esac
23634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_compile") 2>conftest.er1
23636 ac_status=$?
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && {
23642 test -z "$ac_c_werror_flag" ||
23643 test ! -s conftest.err
23644 } && test -s conftest.$ac_objext; then
23645 ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650 ac_cv_have_decl_SECCOMP_MODE_FILTER=no
23651fi
23652
23653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654fi
23655{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
23656echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
23657if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
23658 have_seccomp_filter=1
23659fi
23660
23661fi
23662if test "x$have_seccomp_filter" = "x1" ; then
23663{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
23664echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
23665cat >conftest.$ac_ext <<_ACEOF
23666/* confdefs.h. */
23667_ACEOF
23668cat confdefs.h >>conftest.$ac_ext
23669cat >>conftest.$ac_ext <<_ACEOF
23670/* end confdefs.h. */
23671
23672 #include <errno.h>
23673 #include <elf.h>
23674 #include <linux/audit.h>
23675 #include <linux/seccomp.h>
23676 #include <stdlib.h>
23677 #include <sys/prctl.h>
23678
23679int
23680main ()
23681{
23682 int i = $seccomp_audit_arch;
23683 errno = 0;
23684 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
23685 exit(errno == EFAULT ? 0 : 1);
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext conftest$ac_exeext
23691if { (ac_try="$ac_link"
23692case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695esac
23696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_link") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest$ac_exeext &&
23707 $as_test_x conftest$ac_exeext; then
23708 { echo "$as_me:$LINENO: result: yes" >&5
23709echo "${ECHO_T}yes" >&6; }
23710else
23711 echo "$as_me: failed program was:" >&5
23712sed 's/^/| /' conftest.$ac_ext >&5
23713
23714
23715 { echo "$as_me:$LINENO: result: no" >&5
23716echo "${ECHO_T}no" >&6; }
23717 # Disable seccomp filter as a target
23718 have_seccomp_filter=0
23719
23720
23721fi
23722
23723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23724 conftest$ac_exeext conftest.$ac_ext
23725fi
23726
23727# Decide which sandbox style to use
23728sandbox_arg=""
23729
23730# Check whether --with-sandbox was given.
23731if test "${with_sandbox+set}" = set; then
23732 withval=$with_sandbox;
23733 if test "x$withval" = "xyes" ; then
23734 sandbox_arg=""
23735 else
23736 sandbox_arg="$withval"
23737 fi
23738
23739
23740fi
23741
23742
23743# Some platforms (seems to be the ones that have a kernel poll(2)-type
23744# function with which they implement select(2)) use an extra file descriptor
23745# when calling select(2), which means we can't use the rlimit sandbox.
23746{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
23747echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
23748if test "$cross_compiling" = yes; then
23749 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23750echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23751
23752else
23753 cat >conftest.$ac_ext <<_ACEOF
23754/* confdefs.h. */
23755_ACEOF
23756cat confdefs.h >>conftest.$ac_ext
23757cat >>conftest.$ac_ext <<_ACEOF
23758/* end confdefs.h. */
23759
23760#include <sys/types.h>
23761#ifdef HAVE_SYS_TIME_H
23762# include <sys/time.h>
23763#endif
23764#include <sys/resource.h>
23765#ifdef HAVE_SYS_SELECT_H
23766# include <sys/select.h>
23767#endif
23768#include <errno.h>
23769#include <fcntl.h>
23770#include <stdlib.h>
23771
23772int
23773main ()
23774{
23775
23776 struct rlimit rl_zero;
23777 int fd, r;
23778 fd_set fds;
23779 struct timeval tv;
23780
23781 fd = open("/dev/null", O_RDONLY);
23782 FD_ZERO(&fds);
23783 FD_SET(fd, &fds);
23784 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23785 setrlimit(RLIMIT_FSIZE, &rl_zero);
23786 setrlimit(RLIMIT_NOFILE, &rl_zero);
23787 tv.tv_sec = 1;
23788 tv.tv_usec = 0;
23789 r = select(fd+1, &fds, NULL, NULL, &tv);
23790 exit (r == -1 ? 1 : 0);
23791
23792 ;
23793 return 0;
23794}
23795_ACEOF
23796rm -f conftest$ac_exeext
23797if { (ac_try="$ac_link"
23798case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23801esac
23802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_link") 2>&5
23804 ac_status=$?
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23807 { (case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23810esac
23811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_try") 2>&5
23813 ac_status=$?
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); }; }; then
23816 { echo "$as_me:$LINENO: result: yes" >&5
23817echo "${ECHO_T}yes" >&6; }
23818 select_works_with_rlimit=yes
23819else
23820 echo "$as_me: program exited with status $ac_status" >&5
23821echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824( exit $ac_status )
23825{ echo "$as_me:$LINENO: result: no" >&5
23826echo "${ECHO_T}no" >&6; }
23827 select_works_with_rlimit=no
23828fi
23829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830fi
23831
23832
23833
23834{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
23835echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
23836if test "$cross_compiling" = yes; then
23837 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23838echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23839
23840else
23841 cat >conftest.$ac_ext <<_ACEOF
23842/* confdefs.h. */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h. */
23847
23848#include <sys/types.h>
23849#ifdef HAVE_SYS_TIME_H
23850# include <sys/time.h>
23851#endif
23852#include <sys/resource.h>
23853#include <errno.h>
23854#include <stdlib.h>
23855
23856int
23857main ()
23858{
23859
23860 struct rlimit rl_zero;
23861 int fd, r;
23862 fd_set fds;
23863
23864 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23865 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
23866 exit (r == -1 ? 1 : 0);
23867
23868 ;
23869 return 0;
23870}
23871_ACEOF
23872rm -f conftest$ac_exeext
23873if { (ac_try="$ac_link"
23874case "(($ac_try" in
23875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876 *) ac_try_echo=$ac_try;;
23877esac
23878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879 (eval "$ac_link") 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23883 { (case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23886esac
23887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_try") 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 { echo "$as_me:$LINENO: result: yes" >&5
23893echo "${ECHO_T}yes" >&6; }
23894 rlimit_nofile_zero_works=yes
23895else
23896 echo "$as_me: program exited with status $ac_status" >&5
23897echo "$as_me: failed program was:" >&5
23898sed 's/^/| /' conftest.$ac_ext >&5
23899
23900( exit $ac_status )
23901{ echo "$as_me:$LINENO: result: no" >&5
23902echo "${ECHO_T}no" >&6; }
23903 rlimit_nofile_zero_works=no
23904fi
23905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23906fi
23907
23908
23909
23910{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
23911echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
23912if test "$cross_compiling" = yes; then
23913 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23914echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23915
23916else
23917 cat >conftest.$ac_ext <<_ACEOF
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
23923
23924#include <sys/types.h>
23925#include <sys/resource.h>
23926#include <stdlib.h>
23927
23928int
23929main ()
23930{
23931
23932 struct rlimit rl_zero;
23933
23934 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23935 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
23936
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941rm -f conftest$ac_exeext
23942if { (ac_try="$ac_link"
23943case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946esac
23947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_link") 2>&5
23949 ac_status=$?
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23952 { (case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955esac
23956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_try") 2>&5
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 { echo "$as_me:$LINENO: result: yes" >&5
23962echo "${ECHO_T}yes" >&6; }
23963else
23964 echo "$as_me: program exited with status $ac_status" >&5
23965echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968( exit $ac_status )
23969{ echo "$as_me:$LINENO: result: no" >&5
23970echo "${ECHO_T}no" >&6; }
23971
23972cat >>confdefs.h <<\_ACEOF
23973#define SANDBOX_SKIP_RLIMIT_FSIZE 1
23974_ACEOF
23975
23976fi
23977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23978fi
23979
23980
23981
23982if test "x$sandbox_arg" = "xsystrace" || \
23983 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
23984 test "x$have_systr_policy_kill" != "x1" && \
23985 { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
23986echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
23987 { (exit 1); exit 1; }; }
23988 SANDBOX_STYLE="systrace"
23989
23990cat >>confdefs.h <<\_ACEOF
23991#define SANDBOX_SYSTRACE 1
23992_ACEOF
23993
23994elif test "x$sandbox_arg" = "xdarwin" || \
23995 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
23996 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
23997 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
23998 "x$ac_cv_header_sandbox_h" != "xyes" && \
23999 { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
24000echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
24001 { (exit 1); exit 1; }; }
24002 SANDBOX_STYLE="darwin"
24003
24004cat >>confdefs.h <<\_ACEOF
24005#define SANDBOX_DARWIN 1
24006_ACEOF
24007
24008elif test "x$sandbox_arg" = "xseccomp_filter" || \
24009 ( test -z "$sandbox_arg" && \
24010 test "x$have_seccomp_filter" = "x1" && \
24011 test "x$ac_cv_header_elf_h" = "xyes" && \
24012 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
24013 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
24014 test "x$seccomp_audit_arch" != "x" && \
24015 test "x$have_linux_no_new_privs" = "x1" && \
24016 test "x$ac_cv_func_prctl" = "xyes" ) ; then
24017 test "x$seccomp_audit_arch" = "x" && \
24018 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
24019echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
24020 { (exit 1); exit 1; }; }
24021 test "x$have_linux_no_new_privs" != "x1" && \
24022 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
24023echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
24024 { (exit 1); exit 1; }; }
24025 test "x$have_seccomp_filter" != "x1" && \
24026 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
24027echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
24028 { (exit 1); exit 1; }; }
24029 test "x$ac_cv_func_prctl" != "xyes" && \
24030 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
24031echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
24032 { (exit 1); exit 1; }; }
24033 SANDBOX_STYLE="seccomp_filter"
24034
24035cat >>confdefs.h <<\_ACEOF
24036#define SANDBOX_SECCOMP_FILTER 1
24037_ACEOF
24038
24039elif test "x$sandbox_arg" = "xcapsicum" || \
24040 ( test -z "$sandbox_arg" && \
24041 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
24042 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
24043 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
24044 { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
24045echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
24046 { (exit 1); exit 1; }; }
24047 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
24048 { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
24049echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
24050 { (exit 1); exit 1; }; }
24051 SANDBOX_STYLE="capsicum"
24052
24053cat >>confdefs.h <<\_ACEOF
24054#define SANDBOX_CAPSICUM 1
24055_ACEOF
24056
24057elif test "x$sandbox_arg" = "xrlimit" || \
24058 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
24059 test "x$select_works_with_rlimit" = "xyes" && \
24060 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
24061 test "x$ac_cv_func_setrlimit" != "xyes" && \
24062 { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
24063echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
24064 { (exit 1); exit 1; }; }
24065 test "x$select_works_with_rlimit" != "xyes" && \
24066 { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
24067echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
24068 { (exit 1); exit 1; }; }
24069 SANDBOX_STYLE="rlimit"
24070
24071cat >>confdefs.h <<\_ACEOF
24072#define SANDBOX_RLIMIT 1
24073_ACEOF
24074
24075elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
24076 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
24077 SANDBOX_STYLE="none"
24078
24079cat >>confdefs.h <<\_ACEOF
24080#define SANDBOX_NULL 1
24081_ACEOF
24082
24083else
24084 { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24085echo "$as_me: error: unsupported --with-sandbox" >&2;}
24086 { (exit 1); exit 1; }; }
24087fi
24088
24089# Cheap hack to ensure NEWS-OS libraries are arranged right.
24090if test ! -z "$SONY" ; then
24091 LIBS="$LIBS -liberty";
24092fi
24093
24094# Check for long long datatypes
24095{ echo "$as_me:$LINENO: checking for long long" >&5
24096echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24097if test "${ac_cv_type_long_long+set}" = set; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099else
24100 cat >conftest.$ac_ext <<_ACEOF
24101/* confdefs.h. */
24102_ACEOF
24103cat confdefs.h >>conftest.$ac_ext
24104cat >>conftest.$ac_ext <<_ACEOF
24105/* end confdefs.h. */
24106$ac_includes_default
24107typedef long long ac__type_new_;
24108int
24109main ()
24110{
24111if ((ac__type_new_ *) 0)
24112 return 0;
24113if (sizeof (ac__type_new_))
24114 return 0;
24115 ;
24116 return 0;
24117}
24118_ACEOF
24119rm -f conftest.$ac_objext
24120if { (ac_try="$ac_compile"
24121case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24124esac
24125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_compile") 2>conftest.er1
24127 ac_status=$?
24128 grep -v '^ *+' conftest.er1 >conftest.err
24129 rm -f conftest.er1
24130 cat conftest.err >&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } && {
24133 test -z "$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24135 } && test -s conftest.$ac_objext; then
24136 ac_cv_type_long_long=yes
24137else
24138 echo "$as_me: failed program was:" >&5
24139sed 's/^/| /' conftest.$ac_ext >&5
24140
24141 ac_cv_type_long_long=no
24142fi
24143
24144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145fi
24146{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24147echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24148if test $ac_cv_type_long_long = yes; then
24149
24150cat >>confdefs.h <<_ACEOF
24151#define HAVE_LONG_LONG 1
24152_ACEOF
24153
24154
24155fi
24156{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
24157echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24158if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24160else
24161 cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167$ac_includes_default
24168typedef unsigned long long ac__type_new_;
24169int
24170main ()
24171{
24172if ((ac__type_new_ *) 0)
24173 return 0;
24174if (sizeof (ac__type_new_))
24175 return 0;
24176 ;
24177 return 0;
24178}
24179_ACEOF
24180rm -f conftest.$ac_objext
24181if { (ac_try="$ac_compile"
24182case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185esac
24186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24197 ac_cv_type_unsigned_long_long=yes
24198else
24199 echo "$as_me: failed program was:" >&5
24200sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ac_cv_type_unsigned_long_long=no
24203fi
24204
24205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206fi
24207{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24208echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24209if test $ac_cv_type_unsigned_long_long = yes; then
24210
24211cat >>confdefs.h <<_ACEOF
24212#define HAVE_UNSIGNED_LONG_LONG 1
24213_ACEOF
24214
24215
24216fi
24217{ echo "$as_me:$LINENO: checking for long double" >&5
24218echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24219if test "${ac_cv_type_long_double+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
24228$ac_includes_default
24229typedef long double ac__type_new_;
24230int
24231main ()
24232{
24233if ((ac__type_new_ *) 0)
24234 return 0;
24235if (sizeof (ac__type_new_))
24236 return 0;
24237 ;
24238 return 0;
24239}
24240_ACEOF
24241rm -f conftest.$ac_objext
24242if { (ac_try="$ac_compile"
24243case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24246esac
24247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 ac_cv_type_long_double=yes
24259else
24260 echo "$as_me: failed program was:" >&5
24261sed 's/^/| /' conftest.$ac_ext >&5
24262
24263 ac_cv_type_long_double=no
24264fi
24265
24266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267fi
24268{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24269echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24270if test $ac_cv_type_long_double = yes; then
24271
24272cat >>confdefs.h <<_ACEOF
24273#define HAVE_LONG_DOUBLE 1
24274_ACEOF
24275
24276
24277fi
24278
24279
24280# Check datatype sizes
24281{ echo "$as_me:$LINENO: checking for short int" >&5
24282echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24283if test "${ac_cv_type_short_int+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285else
24286 cat >conftest.$ac_ext <<_ACEOF
24287/* confdefs.h. */
24288_ACEOF
24289cat confdefs.h >>conftest.$ac_ext
24290cat >>conftest.$ac_ext <<_ACEOF
24291/* end confdefs.h. */
24292$ac_includes_default
24293typedef short int ac__type_new_;
24294int
24295main ()
24296{
24297if ((ac__type_new_ *) 0)
24298 return 0;
24299if (sizeof (ac__type_new_))
24300 return 0;
24301 ;
24302 return 0;
24303}
24304_ACEOF
24305rm -f conftest.$ac_objext
24306if { (ac_try="$ac_compile"
24307case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310esac
24311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24322 ac_cv_type_short_int=yes
24323else
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ac_cv_type_short_int=no
24328fi
24329
24330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331fi
24332{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24333echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24334
24335# The cast to long int works around a bug in the HP C Compiler
24336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24338# This bug is HP SR number 8606223364.
24339{ echo "$as_me:$LINENO: checking size of short int" >&5
24340echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24341if test "${ac_cv_sizeof_short_int+set}" = set; then
24342 echo $ECHO_N "(cached) $ECHO_C" >&6
24343else
24344 if test "$cross_compiling" = yes; then
24345 # Depending upon the size, compute the lo and hi bounds.
24346cat >conftest.$ac_ext <<_ACEOF
24347/* confdefs.h. */
24348_ACEOF
24349cat confdefs.h >>conftest.$ac_ext
24350cat >>conftest.$ac_ext <<_ACEOF
24351/* end confdefs.h. */
24352$ac_includes_default
24353 typedef short int ac__type_sizeof_;
24354int
24355main ()
24356{
24357static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24358test_array [0] = 0
24359
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364rm -f conftest.$ac_objext
24365if { (ac_try="$ac_compile"
24366case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369esac
24370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.$ac_objext; then
24381 ac_lo=0 ac_mid=0
24382 while :; do
24383 cat >conftest.$ac_ext <<_ACEOF
24384/* confdefs.h. */
24385_ACEOF
24386cat confdefs.h >>conftest.$ac_ext
24387cat >>conftest.$ac_ext <<_ACEOF
24388/* end confdefs.h. */
24389$ac_includes_default
24390 typedef short int ac__type_sizeof_;
24391int
24392main ()
24393{
24394static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24395test_array [0] = 0
24396
24397 ;
24398 return 0;
24399}
24400_ACEOF
24401rm -f conftest.$ac_objext
24402if { (ac_try="$ac_compile"
24403case "(($ac_try" in
24404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405 *) ac_try_echo=$ac_try;;
24406esac
24407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408 (eval "$ac_compile") 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && {
24415 test -z "$ac_c_werror_flag" ||
24416 test ! -s conftest.err
24417 } && test -s conftest.$ac_objext; then
24418 ac_hi=$ac_mid; break
24419else
24420 echo "$as_me: failed program was:" >&5
24421sed 's/^/| /' conftest.$ac_ext >&5
24422
24423 ac_lo=`expr $ac_mid + 1`
24424 if test $ac_lo -le $ac_mid; then
24425 ac_lo= ac_hi=
24426 break
24427 fi
24428 ac_mid=`expr 2 '*' $ac_mid + 1`
24429fi
24430
24431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 done
24433else
24434 echo "$as_me: failed program was:" >&5
24435sed 's/^/| /' conftest.$ac_ext >&5
24436
24437 cat >conftest.$ac_ext <<_ACEOF
24438/* confdefs.h. */
24439_ACEOF
24440cat confdefs.h >>conftest.$ac_ext
24441cat >>conftest.$ac_ext <<_ACEOF
24442/* end confdefs.h. */
24443$ac_includes_default
24444 typedef short int ac__type_sizeof_;
24445int
24446main ()
24447{
24448static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24449test_array [0] = 0
24450
24451 ;
24452 return 0;
24453}
24454_ACEOF
24455rm -f conftest.$ac_objext
24456if { (ac_try="$ac_compile"
24457case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24460esac
24461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_compile") 2>conftest.er1
24463 ac_status=$?
24464 grep -v '^ *+' conftest.er1 >conftest.err
24465 rm -f conftest.er1
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && {
24469 test -z "$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 } && test -s conftest.$ac_objext; then
24472 ac_hi=-1 ac_mid=-1
24473 while :; do
24474 cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
24480$ac_includes_default
24481 typedef short int ac__type_sizeof_;
24482int
24483main ()
24484{
24485static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24486test_array [0] = 0
24487
24488 ;
24489 return 0;
24490}
24491_ACEOF
24492rm -f conftest.$ac_objext
24493if { (ac_try="$ac_compile"
24494case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24497esac
24498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24500 ac_status=$?
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_lo=$ac_mid; break
24510else
24511 echo "$as_me: failed program was:" >&5
24512sed 's/^/| /' conftest.$ac_ext >&5
24513
24514 ac_hi=`expr '(' $ac_mid ')' - 1`
24515 if test $ac_mid -le $ac_hi; then
24516 ac_lo= ac_hi=
24517 break
24518 fi
24519 ac_mid=`expr 2 '*' $ac_mid`
24520fi
24521
24522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24523 done
24524else
24525 echo "$as_me: failed program was:" >&5
24526sed 's/^/| /' conftest.$ac_ext >&5
24527
24528 ac_lo= ac_hi=
24529fi
24530
24531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532fi
24533
24534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535# Binary search between lo and hi bounds.
24536while test "x$ac_lo" != "x$ac_hi"; do
24537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24538 cat >conftest.$ac_ext <<_ACEOF
24539/* confdefs.h. */
24540_ACEOF
24541cat confdefs.h >>conftest.$ac_ext
24542cat >>conftest.$ac_ext <<_ACEOF
24543/* end confdefs.h. */
24544$ac_includes_default
24545 typedef short int ac__type_sizeof_;
24546int
24547main ()
24548{
24549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24550test_array [0] = 0
24551
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556rm -f conftest.$ac_objext
24557if { (ac_try="$ac_compile"
24558case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561esac
24562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_hi=$ac_mid
24574else
24575 echo "$as_me: failed program was:" >&5
24576sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 ac_lo=`expr '(' $ac_mid ')' + 1`
24579fi
24580
24581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582done
24583case $ac_lo in
24584?*) ac_cv_sizeof_short_int=$ac_lo;;
24585'') if test "$ac_cv_type_short_int" = yes; then
24586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24587See \`config.log' for more details." >&5
24588echo "$as_me: error: cannot compute sizeof (short int)
24589See \`config.log' for more details." >&2;}
24590 { (exit 77); exit 77; }; }
24591 else
24592 ac_cv_sizeof_short_int=0
24593 fi ;;
24594esac
24595else
24596 cat >conftest.$ac_ext <<_ACEOF
24597/* confdefs.h. */
24598_ACEOF
24599cat confdefs.h >>conftest.$ac_ext
24600cat >>conftest.$ac_ext <<_ACEOF
24601/* end confdefs.h. */
24602$ac_includes_default
24603 typedef short int ac__type_sizeof_;
24604static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24605static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24606#include <stdio.h>
24607#include <stdlib.h>
24608int
24609main ()
24610{
24611
24612 FILE *f = fopen ("conftest.val", "w");
24613 if (! f)
24614 return 1;
24615 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24616 {
24617 long int i = longval ();
24618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24619 return 1;
24620 fprintf (f, "%ld\n", i);
24621 }
24622 else
24623 {
24624 unsigned long int i = ulongval ();
24625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24626 return 1;
24627 fprintf (f, "%lu\n", i);
24628 }
24629 return ferror (f) || fclose (f) != 0;
24630
24631 ;
24632 return 0;
24633}
24634_ACEOF
24635rm -f conftest$ac_exeext
24636if { (ac_try="$ac_link"
24637case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24640esac
24641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642 (eval "$ac_link") 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24646 { (case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24649esac
24650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_try") 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_cv_sizeof_short_int=`cat conftest.val`
24656else
24657 echo "$as_me: program exited with status $ac_status" >&5
24658echo "$as_me: failed program was:" >&5
24659sed 's/^/| /' conftest.$ac_ext >&5
24660
24661( exit $ac_status )
24662if test "$ac_cv_type_short_int" = yes; then
24663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24664See \`config.log' for more details." >&5
24665echo "$as_me: error: cannot compute sizeof (short int)
24666See \`config.log' for more details." >&2;}
24667 { (exit 77); exit 77; }; }
24668 else
24669 ac_cv_sizeof_short_int=0
24670 fi
24671fi
24672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24673fi
24674rm -f conftest.val
24675fi
24676{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24677echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24678
24679
24680
24681cat >>confdefs.h <<_ACEOF
24682#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24683_ACEOF
24684
24685
24686{ echo "$as_me:$LINENO: checking for int" >&5
24687echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24688if test "${ac_cv_type_int+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24690else
24691 cat >conftest.$ac_ext <<_ACEOF
24692/* confdefs.h. */
24693_ACEOF
24694cat confdefs.h >>conftest.$ac_ext
24695cat >>conftest.$ac_ext <<_ACEOF
24696/* end confdefs.h. */
24697$ac_includes_default
24698typedef int ac__type_new_;
24699int
24700main ()
24701{
24702if ((ac__type_new_ *) 0)
24703 return 0;
24704if (sizeof (ac__type_new_))
24705 return 0;
24706 ;
24707 return 0;
24708}
24709_ACEOF
24710rm -f conftest.$ac_objext
24711if { (ac_try="$ac_compile"
24712case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715esac
24716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_compile") 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } && {
24724 test -z "$ac_c_werror_flag" ||
24725 test ! -s conftest.err
24726 } && test -s conftest.$ac_objext; then
24727 ac_cv_type_int=yes
24728else
24729 echo "$as_me: failed program was:" >&5
24730sed 's/^/| /' conftest.$ac_ext >&5
24731
24732 ac_cv_type_int=no
24733fi
24734
24735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736fi
24737{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24738echo "${ECHO_T}$ac_cv_type_int" >&6; }
24739
24740# The cast to long int works around a bug in the HP C Compiler
24741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24743# This bug is HP SR number 8606223364.
24744{ echo "$as_me:$LINENO: checking size of int" >&5
24745echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24746if test "${ac_cv_sizeof_int+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24748else
24749 if test "$cross_compiling" = yes; then
24750 # Depending upon the size, compute the lo and hi bounds.
24751cat >conftest.$ac_ext <<_ACEOF
24752/* confdefs.h. */
24753_ACEOF
24754cat confdefs.h >>conftest.$ac_ext
24755cat >>conftest.$ac_ext <<_ACEOF
24756/* end confdefs.h. */
24757$ac_includes_default
24758 typedef int ac__type_sizeof_;
24759int
24760main ()
24761{
24762static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24763test_array [0] = 0
24764
24765 ;
24766 return 0;
24767}
24768_ACEOF
24769rm -f conftest.$ac_objext
24770if { (ac_try="$ac_compile"
24771case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774esac
24775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24777 ac_status=$?
24778 grep -v '^ *+' conftest.er1 >conftest.err
24779 rm -f conftest.er1
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_lo=0 ac_mid=0
24787 while :; do
24788 cat >conftest.$ac_ext <<_ACEOF
24789/* confdefs.h. */
24790_ACEOF
24791cat confdefs.h >>conftest.$ac_ext
24792cat >>conftest.$ac_ext <<_ACEOF
24793/* end confdefs.h. */
24794$ac_includes_default
24795 typedef int ac__type_sizeof_;
24796int
24797main ()
24798{
24799static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24800test_array [0] = 0
24801
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806rm -f conftest.$ac_objext
24807if { (ac_try="$ac_compile"
24808case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24811esac
24812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24814 ac_status=$?
24815 grep -v '^ *+' conftest.er1 >conftest.err
24816 rm -f conftest.er1
24817 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24823 ac_hi=$ac_mid; break
24824else
24825 echo "$as_me: failed program was:" >&5
24826sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ac_lo=`expr $ac_mid + 1`
24829 if test $ac_lo -le $ac_mid; then
24830 ac_lo= ac_hi=
24831 break
24832 fi
24833 ac_mid=`expr 2 '*' $ac_mid + 1`
24834fi
24835
24836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 done
24838else
24839 echo "$as_me: failed program was:" >&5
24840sed 's/^/| /' conftest.$ac_ext >&5
24841
24842 cat >conftest.$ac_ext <<_ACEOF
24843/* confdefs.h. */
24844_ACEOF
24845cat confdefs.h >>conftest.$ac_ext
24846cat >>conftest.$ac_ext <<_ACEOF
24847/* end confdefs.h. */
24848$ac_includes_default
24849 typedef int ac__type_sizeof_;
24850int
24851main ()
24852{
24853static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24854test_array [0] = 0
24855
24856 ;
24857 return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext
24861if { (ac_try="$ac_compile"
24862case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24865esac
24866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24868 ac_status=$?
24869 grep -v '^ *+' conftest.er1 >conftest.err
24870 rm -f conftest.er1
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_hi=-1 ac_mid=-1
24878 while :; do
24879 cat >conftest.$ac_ext <<_ACEOF
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885$ac_includes_default
24886 typedef int ac__type_sizeof_;
24887int
24888main ()
24889{
24890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24891test_array [0] = 0
24892
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext
24898if { (ac_try="$ac_compile"
24899case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902esac
24903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 (eval "$ac_compile") 2>conftest.er1
24905 ac_status=$?
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } && {
24911 test -z "$ac_c_werror_flag" ||
24912 test ! -s conftest.err
24913 } && test -s conftest.$ac_objext; then
24914 ac_lo=$ac_mid; break
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919 ac_hi=`expr '(' $ac_mid ')' - 1`
24920 if test $ac_mid -le $ac_hi; then
24921 ac_lo= ac_hi=
24922 break
24923 fi
24924 ac_mid=`expr 2 '*' $ac_mid`
24925fi
24926
24927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 done
24929else
24930 echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
24932
24933 ac_lo= ac_hi=
24934fi
24935
24936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937fi
24938
24939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24940# Binary search between lo and hi bounds.
24941while test "x$ac_lo" != "x$ac_hi"; do
24942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24943 cat >conftest.$ac_ext <<_ACEOF
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
24949$ac_includes_default
24950 typedef int ac__type_sizeof_;
24951int
24952main ()
24953{
24954static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24955test_array [0] = 0
24956
24957 ;
24958 return 0;
24959}
24960_ACEOF
24961rm -f conftest.$ac_objext
24962if { (ac_try="$ac_compile"
24963case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966esac
24967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24969 ac_status=$?
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.$ac_objext; then
24978 ac_hi=$ac_mid
24979else
24980 echo "$as_me: failed program was:" >&5
24981sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ac_lo=`expr '(' $ac_mid ')' + 1`
24984fi
24985
24986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987done
24988case $ac_lo in
24989?*) ac_cv_sizeof_int=$ac_lo;;
24990'') if test "$ac_cv_type_int" = yes; then
24991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24992See \`config.log' for more details." >&5
24993echo "$as_me: error: cannot compute sizeof (int)
24994See \`config.log' for more details." >&2;}
24995 { (exit 77); exit 77; }; }
24996 else
24997 ac_cv_sizeof_int=0
24998 fi ;;
24999esac
25000else
25001 cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007$ac_includes_default
25008 typedef int ac__type_sizeof_;
25009static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25010static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25011#include <stdio.h>
25012#include <stdlib.h>
25013int
25014main ()
25015{
25016
25017 FILE *f = fopen ("conftest.val", "w");
25018 if (! f)
25019 return 1;
25020 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25021 {
25022 long int i = longval ();
25023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25024 return 1;
25025 fprintf (f, "%ld\n", i);
25026 }
25027 else
25028 {
25029 unsigned long int i = ulongval ();
25030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25031 return 1;
25032 fprintf (f, "%lu\n", i);
25033 }
25034 return ferror (f) || fclose (f) != 0;
25035
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest$ac_exeext
25041if { (ac_try="$ac_link"
25042case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045esac
25046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_link") 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25051 { (case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25054esac
25055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_try") 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; }; then
25060 ac_cv_sizeof_int=`cat conftest.val`
25061else
25062 echo "$as_me: program exited with status $ac_status" >&5
25063echo "$as_me: failed program was:" >&5
25064sed 's/^/| /' conftest.$ac_ext >&5
25065
25066( exit $ac_status )
25067if test "$ac_cv_type_int" = yes; then
25068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25069See \`config.log' for more details." >&5
25070echo "$as_me: error: cannot compute sizeof (int)
25071See \`config.log' for more details." >&2;}
25072 { (exit 77); exit 77; }; }
25073 else
25074 ac_cv_sizeof_int=0
25075 fi
25076fi
25077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25078fi
25079rm -f conftest.val
25080fi
25081{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25082echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25083
25084
25085
25086cat >>confdefs.h <<_ACEOF
25087#define SIZEOF_INT $ac_cv_sizeof_int
25088_ACEOF
25089
25090
25091{ echo "$as_me:$LINENO: checking for long int" >&5
25092echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25093if test "${ac_cv_type_long_int+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095else
25096 cat >conftest.$ac_ext <<_ACEOF
25097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
25102$ac_includes_default
25103typedef long int ac__type_new_;
25104int
25105main ()
25106{
25107if ((ac__type_new_ *) 0)
25108 return 0;
25109if (sizeof (ac__type_new_))
25110 return 0;
25111 ;
25112 return 0;
25113}
25114_ACEOF
25115rm -f conftest.$ac_objext
25116if { (ac_try="$ac_compile"
25117case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25120esac
25121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_compile") 2>conftest.er1
25123 ac_status=$?
25124 grep -v '^ *+' conftest.er1 >conftest.err
25125 rm -f conftest.er1
25126 cat conftest.err >&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } && {
25129 test -z "$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25131 } && test -s conftest.$ac_objext; then
25132 ac_cv_type_long_int=yes
25133else
25134 echo "$as_me: failed program was:" >&5
25135sed 's/^/| /' conftest.$ac_ext >&5
25136
25137 ac_cv_type_long_int=no
25138fi
25139
25140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25141fi
25142{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25143echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25144
25145# The cast to long int works around a bug in the HP C Compiler
25146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25148# This bug is HP SR number 8606223364.
25149{ echo "$as_me:$LINENO: checking size of long int" >&5
25150echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
25151if test "${ac_cv_sizeof_long_int+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25153else
25154 if test "$cross_compiling" = yes; then
25155 # Depending upon the size, compute the lo and hi bounds.
25156cat >conftest.$ac_ext <<_ACEOF
25157/* confdefs.h. */
25158_ACEOF
25159cat confdefs.h >>conftest.$ac_ext
25160cat >>conftest.$ac_ext <<_ACEOF
25161/* end confdefs.h. */
25162$ac_includes_default
25163 typedef long int ac__type_sizeof_;
25164int
25165main ()
25166{
25167static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25168test_array [0] = 0
25169
25170 ;
25171 return 0;
25172}
25173_ACEOF
25174rm -f conftest.$ac_objext
25175if { (ac_try="$ac_compile"
25176case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25179esac
25180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_compile") 2>conftest.er1
25182 ac_status=$?
25183 grep -v '^ *+' conftest.er1 >conftest.err
25184 rm -f conftest.er1
25185 cat conftest.err >&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && {
25188 test -z "$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25190 } && test -s conftest.$ac_objext; then
25191 ac_lo=0 ac_mid=0
25192 while :; do
25193 cat >conftest.$ac_ext <<_ACEOF
25194/* confdefs.h. */
25195_ACEOF
25196cat confdefs.h >>conftest.$ac_ext
25197cat >>conftest.$ac_ext <<_ACEOF
25198/* end confdefs.h. */
25199$ac_includes_default
25200 typedef long int ac__type_sizeof_;
25201int
25202main ()
25203{
25204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25205test_array [0] = 0
25206
25207 ;
25208 return 0;
25209}
25210_ACEOF
25211rm -f conftest.$ac_objext
25212if { (ac_try="$ac_compile"
25213case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25216esac
25217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_compile") 2>conftest.er1
25219 ac_status=$?
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } && {
25225 test -z "$ac_c_werror_flag" ||
25226 test ! -s conftest.err
25227 } && test -s conftest.$ac_objext; then
25228 ac_hi=$ac_mid; break
25229else
25230 echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ac_lo=`expr $ac_mid + 1`
25234 if test $ac_lo -le $ac_mid; then
25235 ac_lo= ac_hi=
25236 break
25237 fi
25238 ac_mid=`expr 2 '*' $ac_mid + 1`
25239fi
25240
25241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 done
25243else
25244 echo "$as_me: failed program was:" >&5
25245sed 's/^/| /' conftest.$ac_ext >&5
25246
25247 cat >conftest.$ac_ext <<_ACEOF
25248/* confdefs.h. */
25249_ACEOF
25250cat confdefs.h >>conftest.$ac_ext
25251cat >>conftest.$ac_ext <<_ACEOF
25252/* end confdefs.h. */
25253$ac_includes_default
25254 typedef long int ac__type_sizeof_;
25255int
25256main ()
25257{
25258static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25259test_array [0] = 0
25260
25261 ;
25262 return 0;
25263}
25264_ACEOF
25265rm -f conftest.$ac_objext
25266if { (ac_try="$ac_compile"
25267case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25270esac
25271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272 (eval "$ac_compile") 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && {
25279 test -z "$ac_c_werror_flag" ||
25280 test ! -s conftest.err
25281 } && test -s conftest.$ac_objext; then
25282 ac_hi=-1 ac_mid=-1
25283 while :; do
25284 cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h. */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h. */
25290$ac_includes_default
25291 typedef long int ac__type_sizeof_;
25292int
25293main ()
25294{
25295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25296test_array [0] = 0
25297
25298 ;
25299 return 0;
25300}
25301_ACEOF
25302rm -f conftest.$ac_objext
25303if { (ac_try="$ac_compile"
25304case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25307esac
25308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_compile") 2>conftest.er1
25310 ac_status=$?
25311 grep -v '^ *+' conftest.er1 >conftest.err
25312 rm -f conftest.er1
25313 cat conftest.err >&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && {
25316 test -z "$ac_c_werror_flag" ||
25317 test ! -s conftest.err
25318 } && test -s conftest.$ac_objext; then
25319 ac_lo=$ac_mid; break
25320else
25321 echo "$as_me: failed program was:" >&5
25322sed 's/^/| /' conftest.$ac_ext >&5
25323
25324 ac_hi=`expr '(' $ac_mid ')' - 1`
25325 if test $ac_mid -le $ac_hi; then
25326 ac_lo= ac_hi=
25327 break
25328 fi
25329 ac_mid=`expr 2 '*' $ac_mid`
25330fi
25331
25332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 done
25334else
25335 echo "$as_me: failed program was:" >&5
25336sed 's/^/| /' conftest.$ac_ext >&5
25337
25338 ac_lo= ac_hi=
25339fi
25340
25341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342fi
25343
25344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345# Binary search between lo and hi bounds.
25346while test "x$ac_lo" != "x$ac_hi"; do
25347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25348 cat >conftest.$ac_ext <<_ACEOF
25349/* confdefs.h. */
25350_ACEOF
25351cat confdefs.h >>conftest.$ac_ext
25352cat >>conftest.$ac_ext <<_ACEOF
25353/* end confdefs.h. */
25354$ac_includes_default
25355 typedef long int ac__type_sizeof_;
25356int
25357main ()
25358{
25359static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25360test_array [0] = 0
25361
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext
25367if { (ac_try="$ac_compile"
25368case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371esac
25372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_compile") 2>conftest.er1
25374 ac_status=$?
25375 grep -v '^ *+' conftest.er1 >conftest.err
25376 rm -f conftest.er1
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } && {
25380 test -z "$ac_c_werror_flag" ||
25381 test ! -s conftest.err
25382 } && test -s conftest.$ac_objext; then
25383 ac_hi=$ac_mid
25384else
25385 echo "$as_me: failed program was:" >&5
25386sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 ac_lo=`expr '(' $ac_mid ')' + 1`
25389fi
25390
25391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392done
25393case $ac_lo in
25394?*) ac_cv_sizeof_long_int=$ac_lo;;
25395'') if test "$ac_cv_type_long_int" = yes; then
25396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25397See \`config.log' for more details." >&5
25398echo "$as_me: error: cannot compute sizeof (long int)
25399See \`config.log' for more details." >&2;}
25400 { (exit 77); exit 77; }; }
25401 else
25402 ac_cv_sizeof_long_int=0
25403 fi ;;
25404esac
25405else
25406 cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412$ac_includes_default
25413 typedef long int ac__type_sizeof_;
25414static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25415static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25416#include <stdio.h>
25417#include <stdlib.h>
25418int
25419main ()
25420{
25421
25422 FILE *f = fopen ("conftest.val", "w");
25423 if (! f)
25424 return 1;
25425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25426 {
25427 long int i = longval ();
25428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25429 return 1;
25430 fprintf (f, "%ld\n", i);
25431 }
25432 else
25433 {
25434 unsigned long int i = ulongval ();
25435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25436 return 1;
25437 fprintf (f, "%lu\n", i);
25438 }
25439 return ferror (f) || fclose (f) != 0;
25440
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest$ac_exeext
25446if { (ac_try="$ac_link"
25447case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25450esac
25451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_link") 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25456 { (case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25459esac
25460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_try") 2>&5
25462 ac_status=$?
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_sizeof_long_int=`cat conftest.val`
25466else
25467 echo "$as_me: program exited with status $ac_status" >&5
25468echo "$as_me: failed program was:" >&5
25469sed 's/^/| /' conftest.$ac_ext >&5
25470
25471( exit $ac_status )
25472if test "$ac_cv_type_long_int" = yes; then
25473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25474See \`config.log' for more details." >&5
25475echo "$as_me: error: cannot compute sizeof (long int)
25476See \`config.log' for more details." >&2;}
25477 { (exit 77); exit 77; }; }
25478 else
25479 ac_cv_sizeof_long_int=0
25480 fi
25481fi
25482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25483fi
25484rm -f conftest.val
25485fi
25486{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25487echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25488
25489
25490
25491cat >>confdefs.h <<_ACEOF
25492#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25493_ACEOF
25494
25495
25496{ echo "$as_me:$LINENO: checking for long long int" >&5
25497echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25498if test "${ac_cv_type_long_long_int+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500else
25501 cat >conftest.$ac_ext <<_ACEOF
25502/* confdefs.h. */
25503_ACEOF
25504cat confdefs.h >>conftest.$ac_ext
25505cat >>conftest.$ac_ext <<_ACEOF
25506/* end confdefs.h. */
25507$ac_includes_default
25508typedef long long int ac__type_new_;
25509int
25510main ()
25511{
25512if ((ac__type_new_ *) 0)
25513 return 0;
25514if (sizeof (ac__type_new_))
25515 return 0;
25516 ;
25517 return 0;
25518}
25519_ACEOF
25520rm -f conftest.$ac_objext
25521if { (ac_try="$ac_compile"
25522case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25525esac
25526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25528 ac_status=$?
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest.$ac_objext; then
25537 ac_cv_type_long_long_int=yes
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_cv_type_long_long_int=no
25543fi
25544
25545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546fi
25547{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25548echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25549
25550# The cast to long int works around a bug in the HP C Compiler
25551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25553# This bug is HP SR number 8606223364.
25554{ echo "$as_me:$LINENO: checking size of long long int" >&5
25555echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25556if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25558else
25559 if test "$cross_compiling" = yes; then
25560 # Depending upon the size, compute the lo and hi bounds.
25561cat >conftest.$ac_ext <<_ACEOF
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
25567$ac_includes_default
25568 typedef long long int ac__type_sizeof_;
25569int
25570main ()
25571{
25572static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25573test_array [0] = 0
25574
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (ac_try="$ac_compile"
25581case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25584esac
25585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_compile") 2>conftest.er1
25587 ac_status=$?
25588 grep -v '^ *+' conftest.er1 >conftest.err
25589 rm -f conftest.er1
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && {
25593 test -z "$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25595 } && test -s conftest.$ac_objext; then
25596 ac_lo=0 ac_mid=0
25597 while :; do
25598 cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
25604$ac_includes_default
25605 typedef long long int ac__type_sizeof_;
25606int
25607main ()
25608{
25609static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25610test_array [0] = 0
25611
25612 ;
25613 return 0;
25614}
25615_ACEOF
25616rm -f conftest.$ac_objext
25617if { (ac_try="$ac_compile"
25618case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25621esac
25622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_compile") 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && {
25630 test -z "$ac_c_werror_flag" ||
25631 test ! -s conftest.err
25632 } && test -s conftest.$ac_objext; then
25633 ac_hi=$ac_mid; break
25634else
25635 echo "$as_me: failed program was:" >&5
25636sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 ac_lo=`expr $ac_mid + 1`
25639 if test $ac_lo -le $ac_mid; then
25640 ac_lo= ac_hi=
25641 break
25642 fi
25643 ac_mid=`expr 2 '*' $ac_mid + 1`
25644fi
25645
25646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 done
25648else
25649 echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
25651
25652 cat >conftest.$ac_ext <<_ACEOF
25653/* confdefs.h. */
25654_ACEOF
25655cat confdefs.h >>conftest.$ac_ext
25656cat >>conftest.$ac_ext <<_ACEOF
25657/* end confdefs.h. */
25658$ac_includes_default
25659 typedef long long int ac__type_sizeof_;
25660int
25661main ()
25662{
25663static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25664test_array [0] = 0
25665
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670rm -f conftest.$ac_objext
25671if { (ac_try="$ac_compile"
25672case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25675esac
25676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677 (eval "$ac_compile") 2>conftest.er1
25678 ac_status=$?
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest.$ac_objext; then
25687 ac_hi=-1 ac_mid=-1
25688 while :; do
25689 cat >conftest.$ac_ext <<_ACEOF
25690/* confdefs.h. */
25691_ACEOF
25692cat confdefs.h >>conftest.$ac_ext
25693cat >>conftest.$ac_ext <<_ACEOF
25694/* end confdefs.h. */
25695$ac_includes_default
25696 typedef long long int ac__type_sizeof_;
25697int
25698main ()
25699{
25700static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25701test_array [0] = 0
25702
25703 ;
25704 return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext
25708if { (ac_try="$ac_compile"
25709case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25712esac
25713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714 (eval "$ac_compile") 2>conftest.er1
25715 ac_status=$?
25716 grep -v '^ *+' conftest.er1 >conftest.err
25717 rm -f conftest.er1
25718 cat conftest.err >&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } && {
25721 test -z "$ac_c_werror_flag" ||
25722 test ! -s conftest.err
25723 } && test -s conftest.$ac_objext; then
25724 ac_lo=$ac_mid; break
25725else
25726 echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 ac_hi=`expr '(' $ac_mid ')' - 1`
25730 if test $ac_mid -le $ac_hi; then
25731 ac_lo= ac_hi=
25732 break
25733 fi
25734 ac_mid=`expr 2 '*' $ac_mid`
25735fi
25736
25737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 done
25739else
25740 echo "$as_me: failed program was:" >&5
25741sed 's/^/| /' conftest.$ac_ext >&5
25742
25743 ac_lo= ac_hi=
25744fi
25745
25746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747fi
25748
25749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750# Binary search between lo and hi bounds.
25751while test "x$ac_lo" != "x$ac_hi"; do
25752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25753 cat >conftest.$ac_ext <<_ACEOF
25754/* confdefs.h. */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h. */
25759$ac_includes_default
25760 typedef long long int ac__type_sizeof_;
25761int
25762main ()
25763{
25764static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25765test_array [0] = 0
25766
25767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext
25772if { (ac_try="$ac_compile"
25773case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25776esac
25777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_compile") 2>conftest.er1
25779 ac_status=$?
25780 grep -v '^ *+' conftest.er1 >conftest.err
25781 rm -f conftest.er1
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest.$ac_objext; then
25788 ac_hi=$ac_mid
25789else
25790 echo "$as_me: failed program was:" >&5
25791sed 's/^/| /' conftest.$ac_ext >&5
25792
25793 ac_lo=`expr '(' $ac_mid ')' + 1`
25794fi
25795
25796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25797done
25798case $ac_lo in
25799?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25800'') if test "$ac_cv_type_long_long_int" = yes; then
25801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25802See \`config.log' for more details." >&5
25803echo "$as_me: error: cannot compute sizeof (long long int)
25804See \`config.log' for more details." >&2;}
25805 { (exit 77); exit 77; }; }
25806 else
25807 ac_cv_sizeof_long_long_int=0
25808 fi ;;
25809esac
25810else
25811 cat >conftest.$ac_ext <<_ACEOF
25812/* confdefs.h. */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h. */
25817$ac_includes_default
25818 typedef long long int ac__type_sizeof_;
25819static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25820static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25821#include <stdio.h>
25822#include <stdlib.h>
25823int
25824main ()
25825{
25826
25827 FILE *f = fopen ("conftest.val", "w");
25828 if (! f)
25829 return 1;
25830 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25831 {
25832 long int i = longval ();
25833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25834 return 1;
25835 fprintf (f, "%ld\n", i);
25836 }
25837 else
25838 {
25839 unsigned long int i = ulongval ();
25840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25841 return 1;
25842 fprintf (f, "%lu\n", i);
25843 }
25844 return ferror (f) || fclose (f) != 0;
25845
25846 ;
25847 return 0;
25848}
25849_ACEOF
25850rm -f conftest$ac_exeext
25851if { (ac_try="$ac_link"
25852case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25855esac
25856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25861 { (case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25864esac
25865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_try") 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; }; then
25870 ac_cv_sizeof_long_long_int=`cat conftest.val`
25871else
25872 echo "$as_me: program exited with status $ac_status" >&5
25873echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
25876( exit $ac_status )
25877if test "$ac_cv_type_long_long_int" = yes; then
25878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25879See \`config.log' for more details." >&5
25880echo "$as_me: error: cannot compute sizeof (long long int)
25881See \`config.log' for more details." >&2;}
25882 { (exit 77); exit 77; }; }
25883 else
25884 ac_cv_sizeof_long_long_int=0
25885 fi
25886fi
25887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25888fi
25889rm -f conftest.val
25890fi
25891{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25892echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25893
25894
25895
25896cat >>confdefs.h <<_ACEOF
25897#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25898_ACEOF
25899
25900
25901
25902# Sanity check long long for some platforms (AIX)
25903if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
25904 ac_cv_sizeof_long_long_int=0
25905fi
25906
25907# compute LLONG_MIN and LLONG_MAX if we don't know them.
25908if test -z "$have_llong_max"; then
25909 { echo "$as_me:$LINENO: checking for max value of long long" >&5
25910echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
25911 if test "$cross_compiling" = yes; then
25912
25913 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
25914echo "$as_me: WARNING: cross compiling: not checking" >&2;}
25915
25916
25917else
25918 cat >conftest.$ac_ext <<_ACEOF
25919/* confdefs.h. */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h. */
25924
25925#include <stdio.h>
25926/* Why is this so damn hard? */
25927#ifdef __GNUC__
25928# undef __GNUC__
25929#endif
25930#define __USE_ISOC99
25931#include <limits.h>
25932#define DATA "conftest.llminmax"
25933#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
25934
25935/*
25936 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
25937 * we do this the hard way.
25938 */
25939static int
25940fprint_ll(FILE *f, long long n)
25941{
25942 unsigned int i;
25943 int l[sizeof(long long) * 8];
25944
25945 if (n < 0)
25946 if (fprintf(f, "-") < 0)
25947 return -1;
25948 for (i = 0; n != 0; i++) {
25949 l[i] = my_abs(n % 10);
25950 n /= 10;
25951 }
25952 do {
25953 if (fprintf(f, "%d", l[--i]) < 0)
25954 return -1;
25955 } while (i != 0);
25956 if (fprintf(f, " ") < 0)
25957 return -1;
25958 return 0;
25959}
25960
25961int
25962main ()
25963{
25964
25965 FILE *f;
25966 long long i, llmin, llmax = 0;
25967
25968 if((f = fopen(DATA,"w")) == NULL)
25969 exit(1);
25970
25971#if defined(LLONG_MIN) && defined(LLONG_MAX)
25972 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
25973 llmin = LLONG_MIN;
25974 llmax = LLONG_MAX;
25975#else
25976 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
25977 /* This will work on one's complement and two's complement */
25978 for (i = 1; i > llmax; i <<= 1, i++)
25979 llmax = i;
25980 llmin = llmax + 1LL; /* wrap */
25981#endif
25982
25983 /* Sanity check */
25984 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
25985 || llmax - 1 > llmax || llmin == llmax || llmin == 0
25986 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
25987 fprintf(f, "unknown unknown\n");
25988 exit(2);
25989 }
25990
25991 if (fprint_ll(f, llmin) < 0)
25992 exit(3);
25993 if (fprint_ll(f, llmax) < 0)
25994 exit(4);
25995 if (fclose(f) < 0)
25996 exit(5);
25997 exit(0);
25998
25999 ;
26000 return 0;
26001}
26002_ACEOF
26003rm -f conftest$ac_exeext
26004if { (ac_try="$ac_link"
26005case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26008esac
26009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010 (eval "$ac_link") 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26014 { (case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017esac
26018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_try") 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; }; then
26023
26024 llong_min=`$AWK '{print $1}' conftest.llminmax`
26025 llong_max=`$AWK '{print $2}' conftest.llminmax`
26026
26027 { echo "$as_me:$LINENO: result: $llong_max" >&5
26028echo "${ECHO_T}$llong_max" >&6; }
26029
26030cat >>confdefs.h <<_ACEOF
26031#define LLONG_MAX ${llong_max}LL
26032_ACEOF
26033
26034 { echo "$as_me:$LINENO: checking for min value of long long" >&5
26035echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
26036 { echo "$as_me:$LINENO: result: $llong_min" >&5
26037echo "${ECHO_T}$llong_min" >&6; }
26038
26039cat >>confdefs.h <<_ACEOF
26040#define LLONG_MIN ${llong_min}LL
26041_ACEOF
26042
26043
26044else
26045 echo "$as_me: program exited with status $ac_status" >&5
26046echo "$as_me: failed program was:" >&5
26047sed 's/^/| /' conftest.$ac_ext >&5
26048
26049( exit $ac_status )
26050
26051 { echo "$as_me:$LINENO: result: not found" >&5
26052echo "${ECHO_T}not found" >&6; }
26053
26054fi
26055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26056fi
26057
26058
26059fi
26060
26061
26062# More checks for data types
26063{ echo "$as_me:$LINENO: checking for u_int type" >&5
26064echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26065if test "${ac_cv_have_u_int+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26067else
26068
26069 cat >conftest.$ac_ext <<_ACEOF
26070/* confdefs.h. */
26071_ACEOF
26072cat confdefs.h >>conftest.$ac_ext
26073cat >>conftest.$ac_ext <<_ACEOF
26074/* end confdefs.h. */
26075 #include <sys/types.h>
26076int
26077main ()
26078{
26079 u_int a; a = 1;
26080 ;
26081 return 0;
26082}
26083_ACEOF
26084rm -f conftest.$ac_objext
26085if { (ac_try="$ac_compile"
26086case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26089esac
26090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26091 (eval "$ac_compile") 2>conftest.er1
26092 ac_status=$?
26093 grep -v '^ *+' conftest.er1 >conftest.err
26094 rm -f conftest.er1
26095 cat conftest.err >&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } && {
26098 test -z "$ac_c_werror_flag" ||
26099 test ! -s conftest.err
26100 } && test -s conftest.$ac_objext; then
26101 ac_cv_have_u_int="yes"
26102else
26103 echo "$as_me: failed program was:" >&5
26104sed 's/^/| /' conftest.$ac_ext >&5
26105
26106 ac_cv_have_u_int="no"
26107
26108fi
26109
26110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111
26112fi
26113{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26114echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26115if test "x$ac_cv_have_u_int" = "xyes" ; then
26116
26117cat >>confdefs.h <<\_ACEOF
26118#define HAVE_U_INT 1
26119_ACEOF
26120
26121 have_u_int=1
26122fi
26123
26124{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
26125echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26126if test "${ac_cv_have_intxx_t+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26128else
26129
26130 cat >conftest.$ac_ext <<_ACEOF
26131/* confdefs.h. */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
26135/* end confdefs.h. */
26136 #include <sys/types.h>
26137int
26138main ()
26139{
26140 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26141 ;
26142 return 0;
26143}
26144_ACEOF
26145rm -f conftest.$ac_objext
26146if { (ac_try="$ac_compile"
26147case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150esac
26151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_compile") 2>conftest.er1
26153 ac_status=$?
26154 grep -v '^ *+' conftest.er1 >conftest.err
26155 rm -f conftest.er1
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } && {
26159 test -z "$ac_c_werror_flag" ||
26160 test ! -s conftest.err
26161 } && test -s conftest.$ac_objext; then
26162 ac_cv_have_intxx_t="yes"
26163else
26164 echo "$as_me: failed program was:" >&5
26165sed 's/^/| /' conftest.$ac_ext >&5
26166
26167 ac_cv_have_intxx_t="no"
26168
26169fi
26170
26171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26172
26173fi
26174{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26175echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26176if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26177
26178cat >>confdefs.h <<\_ACEOF
26179#define HAVE_INTXX_T 1
26180_ACEOF
26181
26182 have_intxx_t=1
26183fi
26184
26185if (test -z "$have_intxx_t" && \
26186 test "x$ac_cv_header_stdint_h" = "xyes")
26187then
26188 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
26189echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
26190 cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
26196 #include <stdint.h>
26197int
26198main ()
26199{
26200 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205rm -f conftest.$ac_objext
26206if { (ac_try="$ac_compile"
26207case "(($ac_try" in
26208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209 *) ac_try_echo=$ac_try;;
26210esac
26211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212 (eval "$ac_compile") 2>conftest.er1
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } && {
26219 test -z "$ac_c_werror_flag" ||
26220 test ! -s conftest.err
26221 } && test -s conftest.$ac_objext; then
26222
26223 cat >>confdefs.h <<\_ACEOF
26224#define HAVE_INTXX_T 1
26225_ACEOF
26226
26227 { echo "$as_me:$LINENO: result: yes" >&5
26228echo "${ECHO_T}yes" >&6; }
26229
26230else
26231 echo "$as_me: failed program was:" >&5
26232sed 's/^/| /' conftest.$ac_ext >&5
26233
26234 { echo "$as_me:$LINENO: result: no" >&5
26235echo "${ECHO_T}no" >&6; }
26236
26237fi
26238
26239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240fi
26241
26242{ echo "$as_me:$LINENO: checking for int64_t type" >&5
26243echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26244if test "${ac_cv_have_int64_t+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26246else
26247
26248 cat >conftest.$ac_ext <<_ACEOF
26249/* confdefs.h. */
26250_ACEOF
26251cat confdefs.h >>conftest.$ac_ext
26252cat >>conftest.$ac_ext <<_ACEOF
26253/* end confdefs.h. */
26254
26255#include <sys/types.h>
26256#ifdef HAVE_STDINT_H
26257# include <stdint.h>
26258#endif
26259#include <sys/socket.h>
26260#ifdef HAVE_SYS_BITYPES_H
26261# include <sys/bitypes.h>
26262#endif
26263
26264int
26265main ()
26266{
26267
26268int64_t a; a = 1;
26269
26270 ;
26271 return 0;
26272}
26273_ACEOF
26274rm -f conftest.$ac_objext
26275if { (ac_try="$ac_compile"
26276case "(($ac_try" in
26277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26279esac
26280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_compile") 2>conftest.er1
26282 ac_status=$?
26283 grep -v '^ *+' conftest.er1 >conftest.err
26284 rm -f conftest.er1
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } && {
26288 test -z "$ac_c_werror_flag" ||
26289 test ! -s conftest.err
26290 } && test -s conftest.$ac_objext; then
26291 ac_cv_have_int64_t="yes"
26292else
26293 echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 ac_cv_have_int64_t="no"
26297
26298fi
26299
26300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301
26302fi
26303{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26304echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26305if test "x$ac_cv_have_int64_t" = "xyes" ; then
26306
26307cat >>confdefs.h <<\_ACEOF
26308#define HAVE_INT64_T 1
26309_ACEOF
26310
26311fi
26312
26313{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26314echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26315if test "${ac_cv_have_u_intxx_t+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26317else
26318
26319 cat >conftest.$ac_ext <<_ACEOF
26320/* confdefs.h. */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h. */
26325 #include <sys/types.h>
26326int
26327main ()
26328{
26329 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334rm -f conftest.$ac_objext
26335if { (ac_try="$ac_compile"
26336case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26339esac
26340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_compile") 2>conftest.er1
26342 ac_status=$?
26343 grep -v '^ *+' conftest.er1 >conftest.err
26344 rm -f conftest.er1
26345 cat conftest.err >&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && {
26348 test -z "$ac_c_werror_flag" ||
26349 test ! -s conftest.err
26350 } && test -s conftest.$ac_objext; then
26351 ac_cv_have_u_intxx_t="yes"
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356 ac_cv_have_u_intxx_t="no"
26357
26358fi
26359
26360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361
26362fi
26363{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26364echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26365if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26366
26367cat >>confdefs.h <<\_ACEOF
26368#define HAVE_U_INTXX_T 1
26369_ACEOF
26370
26371 have_u_intxx_t=1
26372fi
26373
26374if test -z "$have_u_intxx_t" ; then
26375 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
26376echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
26377 cat >conftest.$ac_ext <<_ACEOF
26378/* confdefs.h. */
26379_ACEOF
26380cat confdefs.h >>conftest.$ac_ext
26381cat >>conftest.$ac_ext <<_ACEOF
26382/* end confdefs.h. */
26383 #include <sys/socket.h>
26384int
26385main ()
26386{
26387 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (ac_try="$ac_compile"
26394case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26397esac
26398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26400 ac_status=$?
26401 grep -v '^ *+' conftest.er1 >conftest.err
26402 rm -f conftest.er1
26403 cat conftest.err >&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } && {
26406 test -z "$ac_c_werror_flag" ||
26407 test ! -s conftest.err
26408 } && test -s conftest.$ac_objext; then
26409
26410 cat >>confdefs.h <<\_ACEOF
26411#define HAVE_U_INTXX_T 1
26412_ACEOF
26413
26414 { echo "$as_me:$LINENO: result: yes" >&5
26415echo "${ECHO_T}yes" >&6; }
26416
26417else
26418 echo "$as_me: failed program was:" >&5
26419sed 's/^/| /' conftest.$ac_ext >&5
26420
26421 { echo "$as_me:$LINENO: result: no" >&5
26422echo "${ECHO_T}no" >&6; }
26423
26424fi
26425
26426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26427fi
26428
26429{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26430echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26431if test "${ac_cv_have_u_int64_t+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26433else
26434
26435 cat >conftest.$ac_ext <<_ACEOF
26436/* confdefs.h. */
26437_ACEOF
26438cat confdefs.h >>conftest.$ac_ext
26439cat >>conftest.$ac_ext <<_ACEOF
26440/* end confdefs.h. */
26441 #include <sys/types.h>
26442int
26443main ()
26444{
26445 u_int64_t a; a = 1;
26446 ;
26447 return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext
26451if { (ac_try="$ac_compile"
26452case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26455esac
26456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_compile") 2>conftest.er1
26458 ac_status=$?
26459 grep -v '^ *+' conftest.er1 >conftest.err
26460 rm -f conftest.er1
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest.$ac_objext; then
26467 ac_cv_have_u_int64_t="yes"
26468else
26469 echo "$as_me: failed program was:" >&5
26470sed 's/^/| /' conftest.$ac_ext >&5
26471
26472 ac_cv_have_u_int64_t="no"
26473
26474fi
26475
26476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477
26478fi
26479{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26480echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26481if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26482
26483cat >>confdefs.h <<\_ACEOF
26484#define HAVE_U_INT64_T 1
26485_ACEOF
26486
26487 have_u_int64_t=1
26488fi
26489
26490if (test -z "$have_u_int64_t" && \
26491 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26492then
26493 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
26494echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
26495 cat >conftest.$ac_ext <<_ACEOF
26496/* confdefs.h. */
26497_ACEOF
26498cat confdefs.h >>conftest.$ac_ext
26499cat >>conftest.$ac_ext <<_ACEOF
26500/* end confdefs.h. */
26501 #include <sys/bitypes.h>
26502int
26503main ()
26504{
26505 u_int64_t a; a = 1
26506 ;
26507 return 0;
26508}
26509_ACEOF
26510rm -f conftest.$ac_objext
26511if { (ac_try="$ac_compile"
26512case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26515esac
26516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_compile") 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } && {
26524 test -z "$ac_c_werror_flag" ||
26525 test ! -s conftest.err
26526 } && test -s conftest.$ac_objext; then
26527
26528 cat >>confdefs.h <<\_ACEOF
26529#define HAVE_U_INT64_T 1
26530_ACEOF
26531
26532 { echo "$as_me:$LINENO: result: yes" >&5
26533echo "${ECHO_T}yes" >&6; }
26534
26535else
26536 echo "$as_me: failed program was:" >&5
26537sed 's/^/| /' conftest.$ac_ext >&5
26538
26539 { echo "$as_me:$LINENO: result: no" >&5
26540echo "${ECHO_T}no" >&6; }
26541
26542fi
26543
26544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26545fi
26546
26547if test -z "$have_u_intxx_t" ; then
26548 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26549echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26550if test "${ac_cv_have_uintxx_t+set}" = set; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26552else
26553
26554 cat >conftest.$ac_ext <<_ACEOF
26555/* confdefs.h. */
26556_ACEOF
26557cat confdefs.h >>conftest.$ac_ext
26558cat >>conftest.$ac_ext <<_ACEOF
26559/* end confdefs.h. */
26560
26561#include <sys/types.h>
26562
26563int
26564main ()
26565{
26566
26567 uint8_t a;
26568 uint16_t b;
26569 uint32_t c;
26570 a = b = c = 1;
26571
26572 ;
26573 return 0;
26574}
26575_ACEOF
26576rm -f conftest.$ac_objext
26577if { (ac_try="$ac_compile"
26578case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26581esac
26582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26583 (eval "$ac_compile") 2>conftest.er1
26584 ac_status=$?
26585 grep -v '^ *+' conftest.er1 >conftest.err
26586 rm -f conftest.er1
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && {
26590 test -z "$ac_c_werror_flag" ||
26591 test ! -s conftest.err
26592 } && test -s conftest.$ac_objext; then
26593 ac_cv_have_uintxx_t="yes"
26594else
26595 echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
26598 ac_cv_have_uintxx_t="no"
26599
26600fi
26601
26602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603
26604fi
26605{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26606echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26607 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26608
26609cat >>confdefs.h <<\_ACEOF
26610#define HAVE_UINTXX_T 1
26611_ACEOF
26612
26613 fi
26614fi
26615
26616if (test -z "$have_uintxx_t" && \
26617 test "x$ac_cv_header_stdint_h" = "xyes")
26618then
26619 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
26620echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
26621 cat >conftest.$ac_ext <<_ACEOF
26622/* confdefs.h. */
26623_ACEOF
26624cat confdefs.h >>conftest.$ac_ext
26625cat >>conftest.$ac_ext <<_ACEOF
26626/* end confdefs.h. */
26627 #include <stdint.h>
26628int
26629main ()
26630{
26631 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (ac_try="$ac_compile"
26638case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641esac
26642eval "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
26654 cat >>confdefs.h <<\_ACEOF
26655#define HAVE_UINTXX_T 1
26656_ACEOF
26657
26658 { echo "$as_me:$LINENO: result: yes" >&5
26659echo "${ECHO_T}yes" >&6; }
26660
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665 { echo "$as_me:$LINENO: result: no" >&5
26666echo "${ECHO_T}no" >&6; }
26667
26668fi
26669
26670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671fi
26672
26673if (test -z "$have_uintxx_t" && \
26674 test "x$ac_cv_header_inttypes_h" = "xyes")
26675then
26676 { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
26677echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
26678 cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684 #include <inttypes.h>
26685int
26686main ()
26687{
26688 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26689 ;
26690 return 0;
26691}
26692_ACEOF
26693rm -f conftest.$ac_objext
26694if { (ac_try="$ac_compile"
26695case "(($ac_try" in
26696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697 *) ac_try_echo=$ac_try;;
26698esac
26699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700 (eval "$ac_compile") 2>conftest.er1
26701 ac_status=$?
26702 grep -v '^ *+' conftest.er1 >conftest.err
26703 rm -f conftest.er1
26704 cat conftest.err >&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } && {
26707 test -z "$ac_c_werror_flag" ||
26708 test ! -s conftest.err
26709 } && test -s conftest.$ac_objext; then
26710
26711 cat >>confdefs.h <<\_ACEOF
26712#define HAVE_UINTXX_T 1
26713_ACEOF
26714
26715 { echo "$as_me:$LINENO: result: yes" >&5
26716echo "${ECHO_T}yes" >&6; }
26717
26718else
26719 echo "$as_me: failed program was:" >&5
26720sed 's/^/| /' conftest.$ac_ext >&5
26721
26722 { echo "$as_me:$LINENO: result: no" >&5
26723echo "${ECHO_T}no" >&6; }
26724
26725fi
26726
26727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728fi
26729
26730if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26731 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26732then
26733 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26734echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26735 cat >conftest.$ac_ext <<_ACEOF
26736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
26741
26742#include <sys/bitypes.h>
26743
26744int
26745main ()
26746{
26747
26748 int8_t a; int16_t b; int32_t c;
26749 u_int8_t e; u_int16_t f; u_int32_t g;
26750 a = b = c = e = f = g = 1;
26751
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756rm -f conftest.$ac_objext
26757if { (ac_try="$ac_compile"
26758case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26761esac
26762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763 (eval "$ac_compile") 2>conftest.er1
26764 ac_status=$?
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } && {
26770 test -z "$ac_c_werror_flag" ||
26771 test ! -s conftest.err
26772 } && test -s conftest.$ac_objext; then
26773
26774 cat >>confdefs.h <<\_ACEOF
26775#define HAVE_U_INTXX_T 1
26776_ACEOF
26777
26778 cat >>confdefs.h <<\_ACEOF
26779#define HAVE_INTXX_T 1
26780_ACEOF
26781
26782 { echo "$as_me:$LINENO: result: yes" >&5
26783echo "${ECHO_T}yes" >&6; }
26784
26785else
26786 echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788
26789 { echo "$as_me:$LINENO: result: no" >&5
26790echo "${ECHO_T}no" >&6; }
26791
26792fi
26793
26794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795fi
26796
26797
26798{ echo "$as_me:$LINENO: checking for u_char" >&5
26799echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
26800if test "${ac_cv_have_u_char+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803
26804 cat >conftest.$ac_ext <<_ACEOF
26805/* confdefs.h. */
26806_ACEOF
26807cat confdefs.h >>conftest.$ac_ext
26808cat >>conftest.$ac_ext <<_ACEOF
26809/* end confdefs.h. */
26810 #include <sys/types.h>
26811int
26812main ()
26813{
26814 u_char foo; foo = 125;
26815 ;
26816 return 0;
26817}
26818_ACEOF
26819rm -f conftest.$ac_objext
26820if { (ac_try="$ac_compile"
26821case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26824esac
26825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_compile") 2>conftest.er1
26827 ac_status=$?
26828 grep -v '^ *+' conftest.er1 >conftest.err
26829 rm -f conftest.er1
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest.$ac_objext; then
26836 ac_cv_have_u_char="yes"
26837else
26838 echo "$as_me: failed program was:" >&5
26839sed 's/^/| /' conftest.$ac_ext >&5
26840
26841 ac_cv_have_u_char="no"
26842
26843fi
26844
26845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26846
26847fi
26848{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
26849echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
26850if test "x$ac_cv_have_u_char" = "xyes" ; then
26851
26852cat >>confdefs.h <<\_ACEOF
26853#define HAVE_U_CHAR 1
26854_ACEOF
26855
26856fi
26857
26858{ echo "$as_me:$LINENO: checking for intmax_t" >&5
26859echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
26860if test "${ac_cv_type_intmax_t+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863 cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869
26870#include <sys/types.h>
26871#include <stdint.h>
26872
26873
26874typedef intmax_t ac__type_new_;
26875int
26876main ()
26877{
26878if ((ac__type_new_ *) 0)
26879 return 0;
26880if (sizeof (ac__type_new_))
26881 return 0;
26882 ;
26883 return 0;
26884}
26885_ACEOF
26886rm -f conftest.$ac_objext
26887if { (ac_try="$ac_compile"
26888case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26891esac
26892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_compile") 2>conftest.er1
26894 ac_status=$?
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest.$ac_objext; then
26903 ac_cv_type_intmax_t=yes
26904else
26905 echo "$as_me: failed program was:" >&5
26906sed 's/^/| /' conftest.$ac_ext >&5
26907
26908 ac_cv_type_intmax_t=no
26909fi
26910
26911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
26914echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
26915if test $ac_cv_type_intmax_t = yes; then
26916
26917cat >>confdefs.h <<_ACEOF
26918#define HAVE_INTMAX_T 1
26919_ACEOF
26920
26921
26922fi
26923{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
26924echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
26925if test "${ac_cv_type_uintmax_t+set}" = set; then
26926 echo $ECHO_N "(cached) $ECHO_C" >&6
26927else
26928 cat >conftest.$ac_ext <<_ACEOF
26929/* confdefs.h. */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h. */
26934
26935#include <sys/types.h>
26936#include <stdint.h>
26937
26938
26939typedef uintmax_t ac__type_new_;
26940int
26941main ()
26942{
26943if ((ac__type_new_ *) 0)
26944 return 0;
26945if (sizeof (ac__type_new_))
26946 return 0;
26947 ;
26948 return 0;
26949}
26950_ACEOF
26951rm -f conftest.$ac_objext
26952if { (ac_try="$ac_compile"
26953case "(($ac_try" in
26954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955 *) ac_try_echo=$ac_try;;
26956esac
26957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958 (eval "$ac_compile") 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } && {
26965 test -z "$ac_c_werror_flag" ||
26966 test ! -s conftest.err
26967 } && test -s conftest.$ac_objext; then
26968 ac_cv_type_uintmax_t=yes
26969else
26970 echo "$as_me: failed program was:" >&5
26971sed 's/^/| /' conftest.$ac_ext >&5
26972
26973 ac_cv_type_uintmax_t=no
26974fi
26975
26976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977fi
26978{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
26979echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
26980if test $ac_cv_type_uintmax_t = yes; then
26981
26982cat >>confdefs.h <<_ACEOF
26983#define HAVE_UINTMAX_T 1
26984_ACEOF
26985
26986
26987fi
26988
26989
26990
26991 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26992echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26993if test "${ac_cv_type_socklen_t+set}" = set; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26995else
26996 cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002#include <sys/types.h>
27003#include <sys/socket.h>
27004
27005typedef socklen_t ac__type_new_;
27006int
27007main ()
27008{
27009if ((ac__type_new_ *) 0)
27010 return 0;
27011if (sizeof (ac__type_new_))
27012 return 0;
27013 ;
27014 return 0;
27015}
27016_ACEOF
27017rm -f conftest.$ac_objext
27018if { (ac_try="$ac_compile"
27019case "(($ac_try" in
27020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27021 *) ac_try_echo=$ac_try;;
27022esac
27023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27024 (eval "$ac_compile") 2>conftest.er1
27025 ac_status=$?
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && {
27031 test -z "$ac_c_werror_flag" ||
27032 test ! -s conftest.err
27033 } && test -s conftest.$ac_objext; then
27034 ac_cv_type_socklen_t=yes
27035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_cv_type_socklen_t=no
27040fi
27041
27042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27043fi
27044{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27045echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27046if test $ac_cv_type_socklen_t = yes; then
27047 :
27048else
27049
27050 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27051echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
27052 if test "${curl_cv_socklen_t_equiv+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054else
27055
27056 # Systems have either "struct sockaddr *" or
27057 # "void *" as the second argument to getpeername
27058 curl_cv_socklen_t_equiv=
27059 for arg2 in "struct sockaddr" void; do
27060 for t in int size_t unsigned long "unsigned long"; do
27061 cat >conftest.$ac_ext <<_ACEOF
27062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
27067
27068 #include <sys/types.h>
27069 #include <sys/socket.h>
27070
27071 int getpeername (int, $arg2 *, $t *);
27072
27073int
27074main ()
27075{
27076
27077 $t len;
27078 getpeername(0,0,&len);
27079
27080 ;
27081 return 0;
27082}
27083_ACEOF
27084rm -f conftest.$ac_objext
27085if { (ac_try="$ac_compile"
27086case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27089esac
27090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_compile") 2>conftest.er1
27092 ac_status=$?
27093 grep -v '^ *+' conftest.er1 >conftest.err
27094 rm -f conftest.er1
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest.$ac_objext; then
27101
27102 curl_cv_socklen_t_equiv="$t"
27103 break
27104
27105else
27106 echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109
27110fi
27111
27112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 done
27114 done
27115
27116 if test "x$curl_cv_socklen_t_equiv" = x; then
27117 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27118echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27119 { (exit 1); exit 1; }; }
27120 fi
27121
27122fi
27123
27124 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
27125echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
27126
27127cat >>confdefs.h <<_ACEOF
27128#define socklen_t $curl_cv_socklen_t_equiv
27129_ACEOF
27130
27131fi
27132
27133
27134
27135{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27136echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
27137if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
27139else
27140 cat >conftest.$ac_ext <<_ACEOF
27141/* confdefs.h. */
27142_ACEOF
27143cat confdefs.h >>conftest.$ac_ext
27144cat >>conftest.$ac_ext <<_ACEOF
27145/* end confdefs.h. */
27146#include <signal.h>
27147
27148typedef sig_atomic_t ac__type_new_;
27149int
27150main ()
27151{
27152if ((ac__type_new_ *) 0)
27153 return 0;
27154if (sizeof (ac__type_new_))
27155 return 0;
27156 ;
27157 return 0;
27158}
27159_ACEOF
27160rm -f conftest.$ac_objext
27161if { (ac_try="$ac_compile"
27162case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165esac
27166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_compile") 2>conftest.er1
27168 ac_status=$?
27169 grep -v '^ *+' conftest.er1 >conftest.err
27170 rm -f conftest.er1
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest.$ac_objext; then
27177 ac_cv_type_sig_atomic_t=yes
27178else
27179 echo "$as_me: failed program was:" >&5
27180sed 's/^/| /' conftest.$ac_ext >&5
27181
27182 ac_cv_type_sig_atomic_t=no
27183fi
27184
27185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27186fi
27187{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27188echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27189if test $ac_cv_type_sig_atomic_t = yes; then
27190
27191cat >>confdefs.h <<_ACEOF
27192#define HAVE_SIG_ATOMIC_T 1
27193_ACEOF
27194
27195
27196fi
27197
27198{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27199echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27200if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203 cat >conftest.$ac_ext <<_ACEOF
27204/* confdefs.h. */
27205_ACEOF
27206cat confdefs.h >>conftest.$ac_ext
27207cat >>conftest.$ac_ext <<_ACEOF
27208/* end confdefs.h. */
27209
27210#include <sys/types.h>
27211#ifdef HAVE_SYS_BITYPES_H
27212#include <sys/bitypes.h>
27213#endif
27214#ifdef HAVE_SYS_STATFS_H
27215#include <sys/statfs.h>
27216#endif
27217#ifdef HAVE_SYS_STATVFS_H
27218#include <sys/statvfs.h>
27219#endif
27220
27221
27222typedef fsblkcnt_t ac__type_new_;
27223int
27224main ()
27225{
27226if ((ac__type_new_ *) 0)
27227 return 0;
27228if (sizeof (ac__type_new_))
27229 return 0;
27230 ;
27231 return 0;
27232}
27233_ACEOF
27234rm -f conftest.$ac_objext
27235if { (ac_try="$ac_compile"
27236case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27239esac
27240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_compile") 2>conftest.er1
27242 ac_status=$?
27243 grep -v '^ *+' conftest.er1 >conftest.err
27244 rm -f conftest.er1
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && {
27248 test -z "$ac_c_werror_flag" ||
27249 test ! -s conftest.err
27250 } && test -s conftest.$ac_objext; then
27251 ac_cv_type_fsblkcnt_t=yes
27252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 ac_cv_type_fsblkcnt_t=no
27257fi
27258
27259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260fi
27261{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27262echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27263if test $ac_cv_type_fsblkcnt_t = yes; then
27264
27265cat >>confdefs.h <<_ACEOF
27266#define HAVE_FSBLKCNT_T 1
27267_ACEOF
27268
27269
27270fi
27271{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27272echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27273if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275else
27276 cat >conftest.$ac_ext <<_ACEOF
27277/* confdefs.h. */
27278_ACEOF
27279cat confdefs.h >>conftest.$ac_ext
27280cat >>conftest.$ac_ext <<_ACEOF
27281/* end confdefs.h. */
27282
27283#include <sys/types.h>
27284#ifdef HAVE_SYS_BITYPES_H
27285#include <sys/bitypes.h>
27286#endif
27287#ifdef HAVE_SYS_STATFS_H
27288#include <sys/statfs.h>
27289#endif
27290#ifdef HAVE_SYS_STATVFS_H
27291#include <sys/statvfs.h>
27292#endif
27293
27294
27295typedef fsfilcnt_t ac__type_new_;
27296int
27297main ()
27298{
27299if ((ac__type_new_ *) 0)
27300 return 0;
27301if (sizeof (ac__type_new_))
27302 return 0;
27303 ;
27304 return 0;
27305}
27306_ACEOF
27307rm -f conftest.$ac_objext
27308if { (ac_try="$ac_compile"
27309case "(($ac_try" in
27310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311 *) ac_try_echo=$ac_try;;
27312esac
27313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314 (eval "$ac_compile") 2>conftest.er1
27315 ac_status=$?
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } && {
27321 test -z "$ac_c_werror_flag" ||
27322 test ! -s conftest.err
27323 } && test -s conftest.$ac_objext; then
27324 ac_cv_type_fsfilcnt_t=yes
27325else
27326 echo "$as_me: failed program was:" >&5
27327sed 's/^/| /' conftest.$ac_ext >&5
27328
27329 ac_cv_type_fsfilcnt_t=no
27330fi
27331
27332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27333fi
27334{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27335echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27336if test $ac_cv_type_fsfilcnt_t = yes; then
27337
27338cat >>confdefs.h <<_ACEOF
27339#define HAVE_FSFILCNT_T 1
27340_ACEOF
27341
27342
27343fi
27344
27345
27346{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27347echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27348if test "${ac_cv_type_in_addr_t+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
27351 cat >conftest.$ac_ext <<_ACEOF
27352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
27357#include <sys/types.h>
27358#include <netinet/in.h>
27359
27360typedef in_addr_t ac__type_new_;
27361int
27362main ()
27363{
27364if ((ac__type_new_ *) 0)
27365 return 0;
27366if (sizeof (ac__type_new_))
27367 return 0;
27368 ;
27369 return 0;
27370}
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_cv_type_in_addr_t=yes
27390else
27391 echo "$as_me: failed program was:" >&5
27392sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ac_cv_type_in_addr_t=no
27395fi
27396
27397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398fi
27399{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27400echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27401if test $ac_cv_type_in_addr_t = yes; then
27402
27403cat >>confdefs.h <<_ACEOF
27404#define HAVE_IN_ADDR_T 1
27405_ACEOF
27406
27407
27408fi
27409{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27410echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27411if test "${ac_cv_type_in_port_t+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27413else
27414 cat >conftest.$ac_ext <<_ACEOF
27415/* confdefs.h. */
27416_ACEOF
27417cat confdefs.h >>conftest.$ac_ext
27418cat >>conftest.$ac_ext <<_ACEOF
27419/* end confdefs.h. */
27420#include <sys/types.h>
27421#include <netinet/in.h>
27422
27423typedef in_port_t ac__type_new_;
27424int
27425main ()
27426{
27427if ((ac__type_new_ *) 0)
27428 return 0;
27429if (sizeof (ac__type_new_))
27430 return 0;
27431 ;
27432 return 0;
27433}
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (ac_try="$ac_compile"
27437case "(($ac_try" in
27438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439 *) ac_try_echo=$ac_try;;
27440esac
27441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442 (eval "$ac_compile") 2>conftest.er1
27443 ac_status=$?
27444 grep -v '^ *+' conftest.er1 >conftest.err
27445 rm -f conftest.er1
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } && {
27449 test -z "$ac_c_werror_flag" ||
27450 test ! -s conftest.err
27451 } && test -s conftest.$ac_objext; then
27452 ac_cv_type_in_port_t=yes
27453else
27454 echo "$as_me: failed program was:" >&5
27455sed 's/^/| /' conftest.$ac_ext >&5
27456
27457 ac_cv_type_in_port_t=no
27458fi
27459
27460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461fi
27462{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
27463echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
27464if test $ac_cv_type_in_port_t = yes; then
27465
27466cat >>confdefs.h <<_ACEOF
27467#define HAVE_IN_PORT_T 1
27468_ACEOF
27469
27470
27471fi
27472
27473
27474{ echo "$as_me:$LINENO: checking for size_t" >&5
27475echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27476if test "${ac_cv_have_size_t+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479
27480 cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h. */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h. */
27486 #include <sys/types.h>
27487int
27488main ()
27489{
27490 size_t foo; foo = 1235;
27491 ;
27492 return 0;
27493}
27494_ACEOF
27495rm -f conftest.$ac_objext
27496if { (ac_try="$ac_compile"
27497case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27500esac
27501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_compile") 2>conftest.er1
27503 ac_status=$?
27504 grep -v '^ *+' conftest.er1 >conftest.err
27505 rm -f conftest.er1
27506 cat conftest.err >&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } && {
27509 test -z "$ac_c_werror_flag" ||
27510 test ! -s conftest.err
27511 } && test -s conftest.$ac_objext; then
27512 ac_cv_have_size_t="yes"
27513else
27514 echo "$as_me: failed program was:" >&5
27515sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 ac_cv_have_size_t="no"
27518
27519fi
27520
27521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522
27523fi
27524{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
27525echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
27526if test "x$ac_cv_have_size_t" = "xyes" ; then
27527
27528cat >>confdefs.h <<\_ACEOF
27529#define HAVE_SIZE_T 1
27530_ACEOF
27531
27532fi
27533
27534{ echo "$as_me:$LINENO: checking for ssize_t" >&5
27535echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27536if test "${ac_cv_have_ssize_t+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27538else
27539
27540 cat >conftest.$ac_ext <<_ACEOF
27541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
27546 #include <sys/types.h>
27547int
27548main ()
27549{
27550 ssize_t foo; foo = 1235;
27551 ;
27552 return 0;
27553}
27554_ACEOF
27555rm -f conftest.$ac_objext
27556if { (ac_try="$ac_compile"
27557case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27560esac
27561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_compile") 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } && {
27569 test -z "$ac_c_werror_flag" ||
27570 test ! -s conftest.err
27571 } && test -s conftest.$ac_objext; then
27572 ac_cv_have_ssize_t="yes"
27573else
27574 echo "$as_me: failed program was:" >&5
27575sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 ac_cv_have_ssize_t="no"
27578
27579fi
27580
27581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582
27583fi
27584{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
27585echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
27586if test "x$ac_cv_have_ssize_t" = "xyes" ; then
27587
27588cat >>confdefs.h <<\_ACEOF
27589#define HAVE_SSIZE_T 1
27590_ACEOF
27591
27592fi
27593
27594{ echo "$as_me:$LINENO: checking for clock_t" >&5
27595echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27596if test "${ac_cv_have_clock_t+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598else
27599
27600 cat >conftest.$ac_ext <<_ACEOF
27601/* confdefs.h. */
27602_ACEOF
27603cat confdefs.h >>conftest.$ac_ext
27604cat >>conftest.$ac_ext <<_ACEOF
27605/* end confdefs.h. */
27606 #include <time.h>
27607int
27608main ()
27609{
27610 clock_t foo; foo = 1235;
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615rm -f conftest.$ac_objext
27616if { (ac_try="$ac_compile"
27617case "(($ac_try" in
27618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27619 *) ac_try_echo=$ac_try;;
27620esac
27621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27622 (eval "$ac_compile") 2>conftest.er1
27623 ac_status=$?
27624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } && {
27629 test -z "$ac_c_werror_flag" ||
27630 test ! -s conftest.err
27631 } && test -s conftest.$ac_objext; then
27632 ac_cv_have_clock_t="yes"
27633else
27634 echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637 ac_cv_have_clock_t="no"
27638
27639fi
27640
27641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27642
27643fi
27644{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
27645echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
27646if test "x$ac_cv_have_clock_t" = "xyes" ; then
27647
27648cat >>confdefs.h <<\_ACEOF
27649#define HAVE_CLOCK_T 1
27650_ACEOF
27651
27652fi
27653
27654{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
27655echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
27656if test "${ac_cv_have_sa_family_t+set}" = set; then
27657 echo $ECHO_N "(cached) $ECHO_C" >&6
27658else
27659
27660 cat >conftest.$ac_ext <<_ACEOF
27661/* confdefs.h. */
27662_ACEOF
27663cat confdefs.h >>conftest.$ac_ext
27664cat >>conftest.$ac_ext <<_ACEOF
27665/* end confdefs.h. */
27666
27667#include <sys/types.h>
27668#include <sys/socket.h>
27669
27670int
27671main ()
27672{
27673 sa_family_t foo; foo = 1235;
27674 ;
27675 return 0;
27676}
27677_ACEOF
27678rm -f conftest.$ac_objext
27679if { (ac_try="$ac_compile"
27680case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27683esac
27684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685 (eval "$ac_compile") 2>conftest.er1
27686 ac_status=$?
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } && {
27692 test -z "$ac_c_werror_flag" ||
27693 test ! -s conftest.err
27694 } && test -s conftest.$ac_objext; then
27695 ac_cv_have_sa_family_t="yes"
27696else
27697 echo "$as_me: failed program was:" >&5
27698sed 's/^/| /' conftest.$ac_ext >&5
27699
27700 cat >conftest.$ac_ext <<_ACEOF
27701/* confdefs.h. */
27702_ACEOF
27703cat confdefs.h >>conftest.$ac_ext
27704cat >>conftest.$ac_ext <<_ACEOF
27705/* end confdefs.h. */
27706
27707#include <sys/types.h>
27708#include <sys/socket.h>
27709#include <netinet/in.h>
27710
27711int
27712main ()
27713{
27714 sa_family_t foo; foo = 1235;
27715 ;
27716 return 0;
27717}
27718_ACEOF
27719rm -f conftest.$ac_objext
27720if { (ac_try="$ac_compile"
27721case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_compile") 2>conftest.er1
27727 ac_status=$?
27728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } && {
27733 test -z "$ac_c_werror_flag" ||
27734 test ! -s conftest.err
27735 } && test -s conftest.$ac_objext; then
27736 ac_cv_have_sa_family_t="yes"
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741 ac_cv_have_sa_family_t="no"
27742
27743fi
27744
27745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746
27747fi
27748
27749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750
27751fi
27752{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
27753echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
27754if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
27755
27756cat >>confdefs.h <<\_ACEOF
27757#define HAVE_SA_FAMILY_T 1
27758_ACEOF
27759
27760fi
27761
27762{ echo "$as_me:$LINENO: checking for pid_t" >&5
27763echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27764if test "${ac_cv_have_pid_t+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27766else
27767
27768 cat >conftest.$ac_ext <<_ACEOF
27769/* confdefs.h. */
27770_ACEOF
27771cat confdefs.h >>conftest.$ac_ext
27772cat >>conftest.$ac_ext <<_ACEOF
27773/* end confdefs.h. */
27774 #include <sys/types.h>
27775int
27776main ()
27777{
27778 pid_t foo; foo = 1235;
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext
27784if { (ac_try="$ac_compile"
27785case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788esac
27789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_compile") 2>conftest.er1
27791 ac_status=$?
27792 grep -v '^ *+' conftest.er1 >conftest.err
27793 rm -f conftest.er1
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } && {
27797 test -z "$ac_c_werror_flag" ||
27798 test ! -s conftest.err
27799 } && test -s conftest.$ac_objext; then
27800 ac_cv_have_pid_t="yes"
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
27805 ac_cv_have_pid_t="no"
27806
27807fi
27808
27809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27810
27811fi
27812{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
27813echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
27814if test "x$ac_cv_have_pid_t" = "xyes" ; then
27815
27816cat >>confdefs.h <<\_ACEOF
27817#define HAVE_PID_T 1
27818_ACEOF
27819
27820fi
27821
27822{ echo "$as_me:$LINENO: checking for mode_t" >&5
27823echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
27824if test "${ac_cv_have_mode_t+set}" = set; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27826else
27827
27828 cat >conftest.$ac_ext <<_ACEOF
27829/* confdefs.h. */
27830_ACEOF
27831cat confdefs.h >>conftest.$ac_ext
27832cat >>conftest.$ac_ext <<_ACEOF
27833/* end confdefs.h. */
27834 #include <sys/types.h>
27835int
27836main ()
27837{
27838 mode_t foo; foo = 1235;
27839 ;
27840 return 0;
27841}
27842_ACEOF
27843rm -f conftest.$ac_objext
27844if { (ac_try="$ac_compile"
27845case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27848esac
27849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850 (eval "$ac_compile") 2>conftest.er1
27851 ac_status=$?
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } && {
27857 test -z "$ac_c_werror_flag" ||
27858 test ! -s conftest.err
27859 } && test -s conftest.$ac_objext; then
27860 ac_cv_have_mode_t="yes"
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 ac_cv_have_mode_t="no"
27866
27867fi
27868
27869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870
27871fi
27872{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
27873echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
27874if test "x$ac_cv_have_mode_t" = "xyes" ; then
27875
27876cat >>confdefs.h <<\_ACEOF
27877#define HAVE_MODE_T 1
27878_ACEOF
27879
27880fi
27881
27882
27883{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27884echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
27885if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27887else
27888
27889 cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h. */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h. */
27895
27896#include <sys/types.h>
27897#include <sys/socket.h>
27898
27899int
27900main ()
27901{
27902 struct sockaddr_storage s;
27903 ;
27904 return 0;
27905}
27906_ACEOF
27907rm -f conftest.$ac_objext
27908if { (ac_try="$ac_compile"
27909case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27912esac
27913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_compile") 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest.$ac_objext; then
27924 ac_cv_have_struct_sockaddr_storage="yes"
27925else
27926 echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929 ac_cv_have_struct_sockaddr_storage="no"
27930
27931fi
27932
27933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27934
27935fi
27936{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
27937echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
27938if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
27939
27940cat >>confdefs.h <<\_ACEOF
27941#define HAVE_STRUCT_SOCKADDR_STORAGE 1
27942_ACEOF
27943
27944fi
27945
27946{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
27947echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
27948if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
27949 echo $ECHO_N "(cached) $ECHO_C" >&6
27950else
27951
27952 cat >conftest.$ac_ext <<_ACEOF
27953/* confdefs.h. */
27954_ACEOF
27955cat confdefs.h >>conftest.$ac_ext
27956cat >>conftest.$ac_ext <<_ACEOF
27957/* end confdefs.h. */
27958
27959#include <sys/types.h>
27960#include <netinet/in.h>
27961
27962int
27963main ()
27964{
27965 struct sockaddr_in6 s; s.sin6_family = 0;
27966 ;
27967 return 0;
27968}
27969_ACEOF
27970rm -f conftest.$ac_objext
27971if { (ac_try="$ac_compile"
27972case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27975esac
27976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_compile") 2>conftest.er1
27978 ac_status=$?
27979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } && {
27984 test -z "$ac_c_werror_flag" ||
27985 test ! -s conftest.err
27986 } && test -s conftest.$ac_objext; then
27987 ac_cv_have_struct_sockaddr_in6="yes"
27988else
27989 echo "$as_me: failed program was:" >&5
27990sed 's/^/| /' conftest.$ac_ext >&5
27991
27992 ac_cv_have_struct_sockaddr_in6="no"
27993
27994fi
27995
27996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997
27998fi
27999{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
28000echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
28001if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
28002
28003cat >>confdefs.h <<\_ACEOF
28004#define HAVE_STRUCT_SOCKADDR_IN6 1
28005_ACEOF
28006
28007fi
28008
28009{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
28010echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
28011if test "${ac_cv_have_struct_in6_addr+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014
28015 cat >conftest.$ac_ext <<_ACEOF
28016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
28021
28022#include <sys/types.h>
28023#include <netinet/in.h>
28024
28025int
28026main ()
28027{
28028 struct in6_addr s; s.s6_addr[0] = 0;
28029 ;
28030 return 0;
28031}
28032_ACEOF
28033rm -f conftest.$ac_objext
28034if { (ac_try="$ac_compile"
28035case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038esac
28039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_compile") 2>conftest.er1
28041 ac_status=$?
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } && {
28047 test -z "$ac_c_werror_flag" ||
28048 test ! -s conftest.err
28049 } && test -s conftest.$ac_objext; then
28050 ac_cv_have_struct_in6_addr="yes"
28051else
28052 echo "$as_me: failed program was:" >&5
28053sed 's/^/| /' conftest.$ac_ext >&5
28054
28055 ac_cv_have_struct_in6_addr="no"
28056
28057fi
28058
28059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28060
28061fi
28062{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
28063echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
28064if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
28065
28066cat >>confdefs.h <<\_ACEOF
28067#define HAVE_STRUCT_IN6_ADDR 1
28068_ACEOF
28069
28070
28071 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
28072echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
28073if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075else
28076 cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h. */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h. */
28082
28083#ifdef HAVE_SYS_TYPES_H
28084#include <sys/types.h>
28085#endif
28086#include <netinet/in.h>
28087
28088
28089int
28090main ()
28091{
28092static struct sockaddr_in6 ac_aggr;
28093if (ac_aggr.sin6_scope_id)
28094return 0;
28095 ;
28096 return 0;
28097}
28098_ACEOF
28099rm -f conftest.$ac_objext
28100if { (ac_try="$ac_compile"
28101case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28104esac
28105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_compile") 2>conftest.er1
28107 ac_status=$?
28108 grep -v '^ *+' conftest.er1 >conftest.err
28109 rm -f conftest.er1
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } && {
28113 test -z "$ac_c_werror_flag" ||
28114 test ! -s conftest.err
28115 } && test -s conftest.$ac_objext; then
28116 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28117else
28118 echo "$as_me: failed program was:" >&5
28119sed 's/^/| /' conftest.$ac_ext >&5
28120
28121 cat >conftest.$ac_ext <<_ACEOF
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
28127
28128#ifdef HAVE_SYS_TYPES_H
28129#include <sys/types.h>
28130#endif
28131#include <netinet/in.h>
28132
28133
28134int
28135main ()
28136{
28137static struct sockaddr_in6 ac_aggr;
28138if (sizeof ac_aggr.sin6_scope_id)
28139return 0;
28140 ;
28141 return 0;
28142}
28143_ACEOF
28144rm -f conftest.$ac_objext
28145if { (ac_try="$ac_compile"
28146case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_compile") 2>conftest.er1
28152 ac_status=$?
28153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } && {
28158 test -z "$ac_c_werror_flag" ||
28159 test ! -s conftest.err
28160 } && test -s conftest.$ac_objext; then
28161 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28162else
28163 echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28167fi
28168
28169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170fi
28171
28172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173fi
28174{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28175echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28176if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
28177
28178cat >>confdefs.h <<_ACEOF
28179#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
28180_ACEOF
28181
28182
28183fi
28184
28185fi
28186
28187{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28188echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
28189if test "${ac_cv_have_struct_addrinfo+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28191else
28192
28193 cat >conftest.$ac_ext <<_ACEOF
28194/* confdefs.h. */
28195_ACEOF
28196cat confdefs.h >>conftest.$ac_ext
28197cat >>conftest.$ac_ext <<_ACEOF
28198/* end confdefs.h. */
28199
28200#include <sys/types.h>
28201#include <sys/socket.h>
28202#include <netdb.h>
28203
28204int
28205main ()
28206{
28207 struct addrinfo s; s.ai_flags = AI_PASSIVE;
28208 ;
28209 return 0;
28210}
28211_ACEOF
28212rm -f conftest.$ac_objext
28213if { (ac_try="$ac_compile"
28214case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217esac
28218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_compile") 2>conftest.er1
28220 ac_status=$?
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } && {
28226 test -z "$ac_c_werror_flag" ||
28227 test ! -s conftest.err
28228 } && test -s conftest.$ac_objext; then
28229 ac_cv_have_struct_addrinfo="yes"
28230else
28231 echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234 ac_cv_have_struct_addrinfo="no"
28235
28236fi
28237
28238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239
28240fi
28241{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
28242echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
28243if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
28244
28245cat >>confdefs.h <<\_ACEOF
28246#define HAVE_STRUCT_ADDRINFO 1
28247_ACEOF
28248
28249fi
28250
28251{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28252echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28253if test "${ac_cv_have_struct_timeval+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28255else
28256
28257 cat >conftest.$ac_ext <<_ACEOF
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
28263 #include <sys/time.h>
28264int
28265main ()
28266{
28267 struct timeval tv; tv.tv_sec = 1;
28268 ;
28269 return 0;
28270}
28271_ACEOF
28272rm -f conftest.$ac_objext
28273if { (ac_try="$ac_compile"
28274case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_compile") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } && {
28286 test -z "$ac_c_werror_flag" ||
28287 test ! -s conftest.err
28288 } && test -s conftest.$ac_objext; then
28289 ac_cv_have_struct_timeval="yes"
28290else
28291 echo "$as_me: failed program was:" >&5
28292sed 's/^/| /' conftest.$ac_ext >&5
28293
28294 ac_cv_have_struct_timeval="no"
28295
28296fi
28297
28298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299
28300fi
28301{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
28302echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
28303if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
28304
28305cat >>confdefs.h <<\_ACEOF
28306#define HAVE_STRUCT_TIMEVAL 1
28307_ACEOF
28308
28309 have_struct_timeval=1
28310fi
28311
28312{ echo "$as_me:$LINENO: checking for struct timespec" >&5
28313echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28314if test "${ac_cv_type_struct_timespec+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316else
28317 cat >conftest.$ac_ext <<_ACEOF
28318/* confdefs.h. */
28319_ACEOF
28320cat confdefs.h >>conftest.$ac_ext
28321cat >>conftest.$ac_ext <<_ACEOF
28322/* end confdefs.h. */
28323$ac_includes_default
28324typedef struct timespec ac__type_new_;
28325int
28326main ()
28327{
28328if ((ac__type_new_ *) 0)
28329 return 0;
28330if (sizeof (ac__type_new_))
28331 return 0;
28332 ;
28333 return 0;
28334}
28335_ACEOF
28336rm -f conftest.$ac_objext
28337if { (ac_try="$ac_compile"
28338case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28341esac
28342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_compile") 2>conftest.er1
28344 ac_status=$?
28345 grep -v '^ *+' conftest.er1 >conftest.err
28346 rm -f conftest.er1
28347 cat conftest.err >&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } && {
28350 test -z "$ac_c_werror_flag" ||
28351 test ! -s conftest.err
28352 } && test -s conftest.$ac_objext; then
28353 ac_cv_type_struct_timespec=yes
28354else
28355 echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358 ac_cv_type_struct_timespec=no
28359fi
28360
28361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28362fi
28363{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28364echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28365if test $ac_cv_type_struct_timespec = yes; then
28366
28367cat >>confdefs.h <<_ACEOF
28368#define HAVE_STRUCT_TIMESPEC 1
28369_ACEOF
28370
28371
28372fi
28373
28374
28375# We need int64_t or else certian parts of the compile will fail.
28376if test "x$ac_cv_have_int64_t" = "xno" && \
28377 test "x$ac_cv_sizeof_long_int" != "x8" && \
28378 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
28379 echo "OpenSSH requires int64_t support. Contact your vendor or install"
28380 echo "an alternative compiler (I.E., GCC) before continuing."
28381 echo ""
28382 exit 1;
28383else
28384 if test "$cross_compiling" = yes; then
28385 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
28386echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
28387
28388else
28389 cat >conftest.$ac_ext <<_ACEOF
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
28395
28396#include <stdio.h>
28397#include <string.h>
28398#ifdef HAVE_SNPRINTF
28399main()
28400{
28401 char buf[50];
28402 char expected_out[50];
28403 int mazsize = 50 ;
28404#if (SIZEOF_LONG_INT == 8)
28405 long int num = 0x7fffffffffffffff;
28406#else
28407 long long num = 0x7fffffffffffffffll;
28408#endif
28409 strcpy(expected_out, "9223372036854775807");
28410 snprintf(buf, mazsize, "%lld", num);
28411 if(strcmp(buf, expected_out) != 0)
28412 exit(1);
28413 exit(0);
28414}
28415#else
28416main() { exit(0); }
28417#endif
28418
28419_ACEOF
28420rm -f conftest$ac_exeext
28421if { (ac_try="$ac_link"
28422case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28425esac
28426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_link") 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28431 { (case "(($ac_try" in
28432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28433 *) ac_try_echo=$ac_try;;
28434esac
28435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436 (eval "$ac_try") 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 true
28441else
28442 echo "$as_me: program exited with status $ac_status" >&5
28443echo "$as_me: failed program was:" >&5
28444sed 's/^/| /' conftest.$ac_ext >&5
28445
28446( exit $ac_status )
28447 cat >>confdefs.h <<\_ACEOF
28448#define BROKEN_SNPRINTF 1
28449_ACEOF
28450
28451fi
28452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28453fi
28454
28455
28456fi
28457
28458
28459# look for field 'ut_host' in header 'utmp.h'
28460 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28461 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28462 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
28463echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
28464 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467
28468 cat >conftest.$ac_ext <<_ACEOF
28469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
28474#include <utmp.h>
28475
28476_ACEOF
28477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28478 $EGREP "ut_host" >/dev/null 2>&1; then
28479 eval "$ossh_varname=yes"
28480else
28481 eval "$ossh_varname=no"
28482fi
28483rm -f conftest*
28484
28485fi
28486
28487 ossh_result=`eval 'echo $'"$ossh_varname"`
28488 if test -n "`echo $ossh_varname`"; then
28489 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28490echo "${ECHO_T}$ossh_result" >&6; }
28491 if test "x$ossh_result" = "xyes"; then
28492
28493cat >>confdefs.h <<\_ACEOF
28494#define HAVE_HOST_IN_UTMP 1
28495_ACEOF
28496
28497 fi
28498 else
28499 { echo "$as_me:$LINENO: result: no" >&5
28500echo "${ECHO_T}no" >&6; }
28501 fi
28502
28503
28504# look for field 'ut_host' in header 'utmpx.h'
28505 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28506 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28507 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
28508echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
28509 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512
28513 cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
28519#include <utmpx.h>
28520
28521_ACEOF
28522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28523 $EGREP "ut_host" >/dev/null 2>&1; then
28524 eval "$ossh_varname=yes"
28525else
28526 eval "$ossh_varname=no"
28527fi
28528rm -f conftest*
28529
28530fi
28531
28532 ossh_result=`eval 'echo $'"$ossh_varname"`
28533 if test -n "`echo $ossh_varname`"; then
28534 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28535echo "${ECHO_T}$ossh_result" >&6; }
28536 if test "x$ossh_result" = "xyes"; then
28537
28538cat >>confdefs.h <<\_ACEOF
28539#define HAVE_HOST_IN_UTMPX 1
28540_ACEOF
28541
28542 fi
28543 else
28544 { echo "$as_me:$LINENO: result: no" >&5
28545echo "${ECHO_T}no" >&6; }
28546 fi
28547
28548
28549# look for field 'syslen' in header 'utmpx.h'
28550 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28551 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
28552 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
28553echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
28554 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557
28558 cat >conftest.$ac_ext <<_ACEOF
28559/* confdefs.h. */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h. */
28564#include <utmpx.h>
28565
28566_ACEOF
28567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28568 $EGREP "syslen" >/dev/null 2>&1; then
28569 eval "$ossh_varname=yes"
28570else
28571 eval "$ossh_varname=no"
28572fi
28573rm -f conftest*
28574
28575fi
28576
28577 ossh_result=`eval 'echo $'"$ossh_varname"`
28578 if test -n "`echo $ossh_varname`"; then
28579 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28580echo "${ECHO_T}$ossh_result" >&6; }
28581 if test "x$ossh_result" = "xyes"; then
28582
28583cat >>confdefs.h <<\_ACEOF
28584#define HAVE_SYSLEN_IN_UTMPX 1
28585_ACEOF
28586
28587 fi
28588 else
28589 { echo "$as_me:$LINENO: result: no" >&5
28590echo "${ECHO_T}no" >&6; }
28591 fi
28592
28593
28594# look for field 'ut_pid' in header 'utmp.h'
28595 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28596 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
28597 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
28598echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
28599 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28601else
28602
28603 cat >conftest.$ac_ext <<_ACEOF
28604/* confdefs.h. */
28605_ACEOF
28606cat confdefs.h >>conftest.$ac_ext
28607cat >>conftest.$ac_ext <<_ACEOF
28608/* end confdefs.h. */
28609#include <utmp.h>
28610
28611_ACEOF
28612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28613 $EGREP "ut_pid" >/dev/null 2>&1; then
28614 eval "$ossh_varname=yes"
28615else
28616 eval "$ossh_varname=no"
28617fi
28618rm -f conftest*
28619
28620fi
28621
28622 ossh_result=`eval 'echo $'"$ossh_varname"`
28623 if test -n "`echo $ossh_varname`"; then
28624 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28625echo "${ECHO_T}$ossh_result" >&6; }
28626 if test "x$ossh_result" = "xyes"; then
28627
28628cat >>confdefs.h <<\_ACEOF
28629#define HAVE_PID_IN_UTMP 1
28630_ACEOF
28631
28632 fi
28633 else
28634 { echo "$as_me:$LINENO: result: no" >&5
28635echo "${ECHO_T}no" >&6; }
28636 fi
28637
28638
28639# look for field 'ut_type' in header 'utmp.h'
28640 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28641 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28642 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
28643echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
28644 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28645 echo $ECHO_N "(cached) $ECHO_C" >&6
28646else
28647
28648 cat >conftest.$ac_ext <<_ACEOF
28649/* confdefs.h. */
28650_ACEOF
28651cat confdefs.h >>conftest.$ac_ext
28652cat >>conftest.$ac_ext <<_ACEOF
28653/* end confdefs.h. */
28654#include <utmp.h>
28655
28656_ACEOF
28657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28658 $EGREP "ut_type" >/dev/null 2>&1; then
28659 eval "$ossh_varname=yes"
28660else
28661 eval "$ossh_varname=no"
28662fi
28663rm -f conftest*
28664
28665fi
28666
28667 ossh_result=`eval 'echo $'"$ossh_varname"`
28668 if test -n "`echo $ossh_varname`"; then
28669 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28670echo "${ECHO_T}$ossh_result" >&6; }
28671 if test "x$ossh_result" = "xyes"; then
28672
28673cat >>confdefs.h <<\_ACEOF
28674#define HAVE_TYPE_IN_UTMP 1
28675_ACEOF
28676
28677 fi
28678 else
28679 { echo "$as_me:$LINENO: result: no" >&5
28680echo "${ECHO_T}no" >&6; }
28681 fi
28682
28683
28684# look for field 'ut_type' in header 'utmpx.h'
28685 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28686 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28687 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
28688echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
28689 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691else
28692
28693 cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699#include <utmpx.h>
28700
28701_ACEOF
28702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28703 $EGREP "ut_type" >/dev/null 2>&1; then
28704 eval "$ossh_varname=yes"
28705else
28706 eval "$ossh_varname=no"
28707fi
28708rm -f conftest*
28709
28710fi
28711
28712 ossh_result=`eval 'echo $'"$ossh_varname"`
28713 if test -n "`echo $ossh_varname`"; then
28714 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28715echo "${ECHO_T}$ossh_result" >&6; }
28716 if test "x$ossh_result" = "xyes"; then
28717
28718cat >>confdefs.h <<\_ACEOF
28719#define HAVE_TYPE_IN_UTMPX 1
28720_ACEOF
28721
28722 fi
28723 else
28724 { echo "$as_me:$LINENO: result: no" >&5
28725echo "${ECHO_T}no" >&6; }
28726 fi
28727
28728
28729# look for field 'ut_tv' in header 'utmp.h'
28730 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28731 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
28732 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
28733echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
28734 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737
28738 cat >conftest.$ac_ext <<_ACEOF
28739/* confdefs.h. */
28740_ACEOF
28741cat confdefs.h >>conftest.$ac_ext
28742cat >>conftest.$ac_ext <<_ACEOF
28743/* end confdefs.h. */
28744#include <utmp.h>
28745
28746_ACEOF
28747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28748 $EGREP "ut_tv" >/dev/null 2>&1; then
28749 eval "$ossh_varname=yes"
28750else
28751 eval "$ossh_varname=no"
28752fi
28753rm -f conftest*
28754
28755fi
28756
28757 ossh_result=`eval 'echo $'"$ossh_varname"`
28758 if test -n "`echo $ossh_varname`"; then
28759 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28760echo "${ECHO_T}$ossh_result" >&6; }
28761 if test "x$ossh_result" = "xyes"; then
28762
28763cat >>confdefs.h <<\_ACEOF
28764#define HAVE_TV_IN_UTMP 1
28765_ACEOF
28766
28767 fi
28768 else
28769 { echo "$as_me:$LINENO: result: no" >&5
28770echo "${ECHO_T}no" >&6; }
28771 fi
28772
28773
28774# look for field 'ut_id' in header 'utmp.h'
28775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28777 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
28778echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
28779 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28781else
28782
28783 cat >conftest.$ac_ext <<_ACEOF
28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
28789#include <utmp.h>
28790
28791_ACEOF
28792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28793 $EGREP "ut_id" >/dev/null 2>&1; then
28794 eval "$ossh_varname=yes"
28795else
28796 eval "$ossh_varname=no"
28797fi
28798rm -f conftest*
28799
28800fi
28801
28802 ossh_result=`eval 'echo $'"$ossh_varname"`
28803 if test -n "`echo $ossh_varname`"; then
28804 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28805echo "${ECHO_T}$ossh_result" >&6; }
28806 if test "x$ossh_result" = "xyes"; then
28807
28808cat >>confdefs.h <<\_ACEOF
28809#define HAVE_ID_IN_UTMP 1
28810_ACEOF
28811
28812 fi
28813 else
28814 { echo "$as_me:$LINENO: result: no" >&5
28815echo "${ECHO_T}no" >&6; }
28816 fi
28817
28818
28819# look for field 'ut_id' in header 'utmpx.h'
28820 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28821 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28822 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
28823echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
28824 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827
28828 cat >conftest.$ac_ext <<_ACEOF
28829/* confdefs.h. */
28830_ACEOF
28831cat confdefs.h >>conftest.$ac_ext
28832cat >>conftest.$ac_ext <<_ACEOF
28833/* end confdefs.h. */
28834#include <utmpx.h>
28835
28836_ACEOF
28837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28838 $EGREP "ut_id" >/dev/null 2>&1; then
28839 eval "$ossh_varname=yes"
28840else
28841 eval "$ossh_varname=no"
28842fi
28843rm -f conftest*
28844
28845fi
28846
28847 ossh_result=`eval 'echo $'"$ossh_varname"`
28848 if test -n "`echo $ossh_varname`"; then
28849 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28850echo "${ECHO_T}$ossh_result" >&6; }
28851 if test "x$ossh_result" = "xyes"; then
28852
28853cat >>confdefs.h <<\_ACEOF
28854#define HAVE_ID_IN_UTMPX 1
28855_ACEOF
28856
28857 fi
28858 else
28859 { echo "$as_me:$LINENO: result: no" >&5
28860echo "${ECHO_T}no" >&6; }
28861 fi
28862
28863
28864# look for field 'ut_addr' in header 'utmp.h'
28865 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28866 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
28867 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
28868echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
28869 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872
28873 cat >conftest.$ac_ext <<_ACEOF
28874/* confdefs.h. */
28875_ACEOF
28876cat confdefs.h >>conftest.$ac_ext
28877cat >>conftest.$ac_ext <<_ACEOF
28878/* end confdefs.h. */
28879#include <utmp.h>
28880
28881_ACEOF
28882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28883 $EGREP "ut_addr" >/dev/null 2>&1; then
28884 eval "$ossh_varname=yes"
28885else
28886 eval "$ossh_varname=no"
28887fi
28888rm -f conftest*
28889
28890fi
28891
28892 ossh_result=`eval 'echo $'"$ossh_varname"`
28893 if test -n "`echo $ossh_varname`"; then
28894 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28895echo "${ECHO_T}$ossh_result" >&6; }
28896 if test "x$ossh_result" = "xyes"; then
28897
28898cat >>confdefs.h <<\_ACEOF
28899#define HAVE_ADDR_IN_UTMP 1
28900_ACEOF
28901
28902 fi
28903 else
28904 { echo "$as_me:$LINENO: result: no" >&5
28905echo "${ECHO_T}no" >&6; }
28906 fi
28907
28908
28909# look for field 'ut_addr' in header 'utmpx.h'
28910 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28911 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
28912 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
28913echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
28914 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917
28918 cat >conftest.$ac_ext <<_ACEOF
28919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
28924#include <utmpx.h>
28925
28926_ACEOF
28927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28928 $EGREP "ut_addr" >/dev/null 2>&1; then
28929 eval "$ossh_varname=yes"
28930else
28931 eval "$ossh_varname=no"
28932fi
28933rm -f conftest*
28934
28935fi
28936
28937 ossh_result=`eval 'echo $'"$ossh_varname"`
28938 if test -n "`echo $ossh_varname`"; then
28939 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28940echo "${ECHO_T}$ossh_result" >&6; }
28941 if test "x$ossh_result" = "xyes"; then
28942
28943cat >>confdefs.h <<\_ACEOF
28944#define HAVE_ADDR_IN_UTMPX 1
28945_ACEOF
28946
28947 fi
28948 else
28949 { echo "$as_me:$LINENO: result: no" >&5
28950echo "${ECHO_T}no" >&6; }
28951 fi
28952
28953
28954# look for field 'ut_addr_v6' in header 'utmp.h'
28955 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28956 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
28957 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
28958echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
28959 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961else
28962
28963 cat >conftest.$ac_ext <<_ACEOF
28964/* confdefs.h. */
28965_ACEOF
28966cat confdefs.h >>conftest.$ac_ext
28967cat >>conftest.$ac_ext <<_ACEOF
28968/* end confdefs.h. */
28969#include <utmp.h>
28970
28971_ACEOF
28972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28973 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
28974 eval "$ossh_varname=yes"
28975else
28976 eval "$ossh_varname=no"
28977fi
28978rm -f conftest*
28979
28980fi
28981
28982 ossh_result=`eval 'echo $'"$ossh_varname"`
28983 if test -n "`echo $ossh_varname`"; then
28984 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28985echo "${ECHO_T}$ossh_result" >&6; }
28986 if test "x$ossh_result" = "xyes"; then
28987
28988cat >>confdefs.h <<\_ACEOF
28989#define HAVE_ADDR_V6_IN_UTMP 1
28990_ACEOF
28991
28992 fi
28993 else
28994 { echo "$as_me:$LINENO: result: no" >&5
28995echo "${ECHO_T}no" >&6; }
28996 fi
28997
28998
28999# look for field 'ut_addr_v6' in header 'utmpx.h'
29000 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29001 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29002 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
29003echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
29004 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
29007
29008 cat >conftest.$ac_ext <<_ACEOF
29009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
29014#include <utmpx.h>
29015
29016_ACEOF
29017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29018 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29019 eval "$ossh_varname=yes"
29020else
29021 eval "$ossh_varname=no"
29022fi
29023rm -f conftest*
29024
29025fi
29026
29027 ossh_result=`eval 'echo $'"$ossh_varname"`
29028 if test -n "`echo $ossh_varname`"; then
29029 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29030echo "${ECHO_T}$ossh_result" >&6; }
29031 if test "x$ossh_result" = "xyes"; then
29032
29033cat >>confdefs.h <<\_ACEOF
29034#define HAVE_ADDR_V6_IN_UTMPX 1
29035_ACEOF
29036
29037 fi
29038 else
29039 { echo "$as_me:$LINENO: result: no" >&5
29040echo "${ECHO_T}no" >&6; }
29041 fi
29042
29043
29044# look for field 'ut_exit' in header 'utmp.h'
29045 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29046 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
29047 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
29048echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
29049 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052
29053 cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059#include <utmp.h>
29060
29061_ACEOF
29062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29063 $EGREP "ut_exit" >/dev/null 2>&1; then
29064 eval "$ossh_varname=yes"
29065else
29066 eval "$ossh_varname=no"
29067fi
29068rm -f conftest*
29069
29070fi
29071
29072 ossh_result=`eval 'echo $'"$ossh_varname"`
29073 if test -n "`echo $ossh_varname`"; then
29074 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29075echo "${ECHO_T}$ossh_result" >&6; }
29076 if test "x$ossh_result" = "xyes"; then
29077
29078cat >>confdefs.h <<\_ACEOF
29079#define HAVE_EXIT_IN_UTMP 1
29080_ACEOF
29081
29082 fi
29083 else
29084 { echo "$as_me:$LINENO: result: no" >&5
29085echo "${ECHO_T}no" >&6; }
29086 fi
29087
29088
29089# look for field 'ut_time' in header 'utmp.h'
29090 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29091 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29092 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
29093echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
29094 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096else
29097
29098 cat >conftest.$ac_ext <<_ACEOF
29099/* confdefs.h. */
29100_ACEOF
29101cat confdefs.h >>conftest.$ac_ext
29102cat >>conftest.$ac_ext <<_ACEOF
29103/* end confdefs.h. */
29104#include <utmp.h>
29105
29106_ACEOF
29107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29108 $EGREP "ut_time" >/dev/null 2>&1; then
29109 eval "$ossh_varname=yes"
29110else
29111 eval "$ossh_varname=no"
29112fi
29113rm -f conftest*
29114
29115fi
29116
29117 ossh_result=`eval 'echo $'"$ossh_varname"`
29118 if test -n "`echo $ossh_varname`"; then
29119 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29120echo "${ECHO_T}$ossh_result" >&6; }
29121 if test "x$ossh_result" = "xyes"; then
29122
29123cat >>confdefs.h <<\_ACEOF
29124#define HAVE_TIME_IN_UTMP 1
29125_ACEOF
29126
29127 fi
29128 else
29129 { echo "$as_me:$LINENO: result: no" >&5
29130echo "${ECHO_T}no" >&6; }
29131 fi
29132
29133
29134# look for field 'ut_time' in header 'utmpx.h'
29135 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29136 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29137 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
29138echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
29139 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142
29143 cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
29149#include <utmpx.h>
29150
29151_ACEOF
29152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29153 $EGREP "ut_time" >/dev/null 2>&1; then
29154 eval "$ossh_varname=yes"
29155else
29156 eval "$ossh_varname=no"
29157fi
29158rm -f conftest*
29159
29160fi
29161
29162 ossh_result=`eval 'echo $'"$ossh_varname"`
29163 if test -n "`echo $ossh_varname`"; then
29164 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29165echo "${ECHO_T}$ossh_result" >&6; }
29166 if test "x$ossh_result" = "xyes"; then
29167
29168cat >>confdefs.h <<\_ACEOF
29169#define HAVE_TIME_IN_UTMPX 1
29170_ACEOF
29171
29172 fi
29173 else
29174 { echo "$as_me:$LINENO: result: no" >&5
29175echo "${ECHO_T}no" >&6; }
29176 fi
29177
29178
29179# look for field 'ut_tv' in header 'utmpx.h'
29180 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29181 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29182 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
29183echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
29184 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29186else
29187
29188 cat >conftest.$ac_ext <<_ACEOF
29189/* confdefs.h. */
29190_ACEOF
29191cat confdefs.h >>conftest.$ac_ext
29192cat >>conftest.$ac_ext <<_ACEOF
29193/* end confdefs.h. */
29194#include <utmpx.h>
29195
29196_ACEOF
29197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29198 $EGREP "ut_tv" >/dev/null 2>&1; then
29199 eval "$ossh_varname=yes"
29200else
29201 eval "$ossh_varname=no"
29202fi
29203rm -f conftest*
29204
29205fi
29206
29207 ossh_result=`eval 'echo $'"$ossh_varname"`
29208 if test -n "`echo $ossh_varname`"; then
29209 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29210echo "${ECHO_T}$ossh_result" >&6; }
29211 if test "x$ossh_result" = "xyes"; then
29212
29213cat >>confdefs.h <<\_ACEOF
29214#define HAVE_TV_IN_UTMPX 1
29215_ACEOF
29216
29217 fi
29218 else
29219 { echo "$as_me:$LINENO: result: no" >&5
29220echo "${ECHO_T}no" >&6; }
29221 fi
29222
29223
29224{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29225echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29226if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29228else
29229 cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
29235$ac_includes_default
29236int
29237main ()
29238{
29239static struct stat ac_aggr;
29240if (ac_aggr.st_blksize)
29241return 0;
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext
29247if { (ac_try="$ac_compile"
29248case "(($ac_try" in
29249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250 *) ac_try_echo=$ac_try;;
29251esac
29252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253 (eval "$ac_compile") 2>conftest.er1
29254 ac_status=$?
29255 grep -v '^ *+' conftest.er1 >conftest.err
29256 rm -f conftest.er1
29257 cat conftest.err >&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } && {
29260 test -z "$ac_c_werror_flag" ||
29261 test ! -s conftest.err
29262 } && test -s conftest.$ac_objext; then
29263 ac_cv_member_struct_stat_st_blksize=yes
29264else
29265 echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268 cat >conftest.$ac_ext <<_ACEOF
29269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
29274$ac_includes_default
29275int
29276main ()
29277{
29278static struct stat ac_aggr;
29279if (sizeof ac_aggr.st_blksize)
29280return 0;
29281 ;
29282 return 0;
29283}
29284_ACEOF
29285rm -f conftest.$ac_objext
29286if { (ac_try="$ac_compile"
29287case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29290esac
29291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
29293 ac_status=$?
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); } && {
29299 test -z "$ac_c_werror_flag" ||
29300 test ! -s conftest.err
29301 } && test -s conftest.$ac_objext; then
29302 ac_cv_member_struct_stat_st_blksize=yes
29303else
29304 echo "$as_me: failed program was:" >&5
29305sed 's/^/| /' conftest.$ac_ext >&5
29306
29307 ac_cv_member_struct_stat_st_blksize=no
29308fi
29309
29310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29311fi
29312
29313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314fi
29315{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29316echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29317if test $ac_cv_member_struct_stat_st_blksize = yes; then
29318
29319cat >>confdefs.h <<_ACEOF
29320#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29321_ACEOF
29322
29323
29324fi
29325
29326{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29327echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29328if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
29331 cat >conftest.$ac_ext <<_ACEOF
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
29337
29338#include <sys/types.h>
29339#include <pwd.h>
29340
29341
29342int
29343main ()
29344{
29345static struct passwd ac_aggr;
29346if (ac_aggr.pw_gecos)
29347return 0;
29348 ;
29349 return 0;
29350}
29351_ACEOF
29352rm -f conftest.$ac_objext
29353if { (ac_try="$ac_compile"
29354case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29357esac
29358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_compile") 2>conftest.er1
29360 ac_status=$?
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } && {
29366 test -z "$ac_c_werror_flag" ||
29367 test ! -s conftest.err
29368 } && test -s conftest.$ac_objext; then
29369 ac_cv_member_struct_passwd_pw_gecos=yes
29370else
29371 echo "$as_me: failed program was:" >&5
29372sed 's/^/| /' conftest.$ac_ext >&5
29373
29374 cat >conftest.$ac_ext <<_ACEOF
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
29380
29381#include <sys/types.h>
29382#include <pwd.h>
29383
29384
29385int
29386main ()
29387{
29388static struct passwd ac_aggr;
29389if (sizeof ac_aggr.pw_gecos)
29390return 0;
29391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (ac_try="$ac_compile"
29397case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29400esac
29401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_compile") 2>conftest.er1
29403 ac_status=$?
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } && {
29409 test -z "$ac_c_werror_flag" ||
29410 test ! -s conftest.err
29411 } && test -s conftest.$ac_objext; then
29412 ac_cv_member_struct_passwd_pw_gecos=yes
29413else
29414 echo "$as_me: failed program was:" >&5
29415sed 's/^/| /' conftest.$ac_ext >&5
29416
29417 ac_cv_member_struct_passwd_pw_gecos=no
29418fi
29419
29420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29421fi
29422
29423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29424fi
29425{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29426echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29427if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
29428
29429cat >>confdefs.h <<_ACEOF
29430#define HAVE_STRUCT_PASSWD_PW_GECOS 1
29431_ACEOF
29432
29433
29434fi
29435{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29436echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29437if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
29446
29447#include <sys/types.h>
29448#include <pwd.h>
29449
29450
29451int
29452main ()
29453{
29454static struct passwd ac_aggr;
29455if (ac_aggr.pw_class)
29456return 0;
29457 ;
29458 return 0;
29459}
29460_ACEOF
29461rm -f conftest.$ac_objext
29462if { (ac_try="$ac_compile"
29463case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29466esac
29467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_compile") 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest.$ac_objext; then
29478 ac_cv_member_struct_passwd_pw_class=yes
29479else
29480 echo "$as_me: failed program was:" >&5
29481sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 cat >conftest.$ac_ext <<_ACEOF
29484/* confdefs.h. */
29485_ACEOF
29486cat confdefs.h >>conftest.$ac_ext
29487cat >>conftest.$ac_ext <<_ACEOF
29488/* end confdefs.h. */
29489
29490#include <sys/types.h>
29491#include <pwd.h>
29492
29493
29494int
29495main ()
29496{
29497static struct passwd ac_aggr;
29498if (sizeof ac_aggr.pw_class)
29499return 0;
29500 ;
29501 return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext
29505if { (ac_try="$ac_compile"
29506case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29509esac
29510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_compile") 2>conftest.er1
29512 ac_status=$?
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } && {
29518 test -z "$ac_c_werror_flag" ||
29519 test ! -s conftest.err
29520 } && test -s conftest.$ac_objext; then
29521 ac_cv_member_struct_passwd_pw_class=yes
29522else
29523 echo "$as_me: failed program was:" >&5
29524sed 's/^/| /' conftest.$ac_ext >&5
29525
29526 ac_cv_member_struct_passwd_pw_class=no
29527fi
29528
29529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29530fi
29531
29532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533fi
29534{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
29535echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
29536if test $ac_cv_member_struct_passwd_pw_class = yes; then
29537
29538cat >>confdefs.h <<_ACEOF
29539#define HAVE_STRUCT_PASSWD_PW_CLASS 1
29540_ACEOF
29541
29542
29543fi
29544{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
29545echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
29546if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 cat >conftest.$ac_ext <<_ACEOF
29550/* confdefs.h. */
29551_ACEOF
29552cat confdefs.h >>conftest.$ac_ext
29553cat >>conftest.$ac_ext <<_ACEOF
29554/* end confdefs.h. */
29555
29556#include <sys/types.h>
29557#include <pwd.h>
29558
29559
29560int
29561main ()
29562{
29563static struct passwd ac_aggr;
29564if (ac_aggr.pw_change)
29565return 0;
29566 ;
29567 return 0;
29568}
29569_ACEOF
29570rm -f conftest.$ac_objext
29571if { (ac_try="$ac_compile"
29572case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29575esac
29576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_compile") 2>conftest.er1
29578 ac_status=$?
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } && {
29584 test -z "$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29586 } && test -s conftest.$ac_objext; then
29587 ac_cv_member_struct_passwd_pw_change=yes
29588else
29589 echo "$as_me: failed program was:" >&5
29590sed 's/^/| /' conftest.$ac_ext >&5
29591
29592 cat >conftest.$ac_ext <<_ACEOF
29593/* confdefs.h. */
29594_ACEOF
29595cat confdefs.h >>conftest.$ac_ext
29596cat >>conftest.$ac_ext <<_ACEOF
29597/* end confdefs.h. */
29598
29599#include <sys/types.h>
29600#include <pwd.h>
29601
29602
29603int
29604main ()
29605{
29606static struct passwd ac_aggr;
29607if (sizeof ac_aggr.pw_change)
29608return 0;
29609 ;
29610 return 0;
29611}
29612_ACEOF
29613rm -f conftest.$ac_objext
29614if { (ac_try="$ac_compile"
29615case "(($ac_try" in
29616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617 *) ac_try_echo=$ac_try;;
29618esac
29619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620 (eval "$ac_compile") 2>conftest.er1
29621 ac_status=$?
29622 grep -v '^ *+' conftest.er1 >conftest.err
29623 rm -f conftest.er1
29624 cat conftest.err >&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && {
29627 test -z "$ac_c_werror_flag" ||
29628 test ! -s conftest.err
29629 } && test -s conftest.$ac_objext; then
29630 ac_cv_member_struct_passwd_pw_change=yes
29631else
29632 echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 ac_cv_member_struct_passwd_pw_change=no
29636fi
29637
29638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29639fi
29640
29641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642fi
29643{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
29644echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
29645if test $ac_cv_member_struct_passwd_pw_change = yes; then
29646
29647cat >>confdefs.h <<_ACEOF
29648#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
29649_ACEOF
29650
29651
29652fi
29653{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
29654echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
29655if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664
29665#include <sys/types.h>
29666#include <pwd.h>
29667
29668
29669int
29670main ()
29671{
29672static struct passwd ac_aggr;
29673if (ac_aggr.pw_expire)
29674return 0;
29675 ;
29676 return 0;
29677}
29678_ACEOF
29679rm -f conftest.$ac_objext
29680if { (ac_try="$ac_compile"
29681case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29684esac
29685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_compile") 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } && {
29693 test -z "$ac_c_werror_flag" ||
29694 test ! -s conftest.err
29695 } && test -s conftest.$ac_objext; then
29696 ac_cv_member_struct_passwd_pw_expire=yes
29697else
29698 echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701 cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
29707
29708#include <sys/types.h>
29709#include <pwd.h>
29710
29711
29712int
29713main ()
29714{
29715static struct passwd ac_aggr;
29716if (sizeof ac_aggr.pw_expire)
29717return 0;
29718 ;
29719 return 0;
29720}
29721_ACEOF
29722rm -f conftest.$ac_objext
29723if { (ac_try="$ac_compile"
29724case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29727esac
29728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_compile") 2>conftest.er1
29730 ac_status=$?
29731 grep -v '^ *+' conftest.er1 >conftest.err
29732 rm -f conftest.er1
29733 cat conftest.err >&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } && {
29736 test -z "$ac_c_werror_flag" ||
29737 test ! -s conftest.err
29738 } && test -s conftest.$ac_objext; then
29739 ac_cv_member_struct_passwd_pw_expire=yes
29740else
29741 echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744 ac_cv_member_struct_passwd_pw_expire=no
29745fi
29746
29747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748fi
29749
29750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29751fi
29752{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
29753echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
29754if test $ac_cv_member_struct_passwd_pw_expire = yes; then
29755
29756cat >>confdefs.h <<_ACEOF
29757#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
29758_ACEOF
29759
29760
29761fi
29762
29763
29764{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
29765echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
29766if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768else
29769 cat >conftest.$ac_ext <<_ACEOF
29770/* confdefs.h. */
29771_ACEOF
29772cat confdefs.h >>conftest.$ac_ext
29773cat >>conftest.$ac_ext <<_ACEOF
29774/* end confdefs.h. */
29775
29776#include <stdio.h>
29777#if HAVE_SYS_TYPES_H
29778# include <sys/types.h>
29779#endif
29780#include <netinet/in.h>
29781#include <arpa/nameser.h>
29782#include <resolv.h>
29783
29784
29785int
29786main ()
29787{
29788static struct __res_state ac_aggr;
29789if (ac_aggr.retrans)
29790return 0;
29791 ;
29792 return 0;
29793}
29794_ACEOF
29795rm -f conftest.$ac_objext
29796if { (ac_try="$ac_compile"
29797case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800esac
29801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_compile") 2>conftest.er1
29803 ac_status=$?
29804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } && {
29809 test -z "$ac_c_werror_flag" ||
29810 test ! -s conftest.err
29811 } && test -s conftest.$ac_objext; then
29812 ac_cv_member_struct___res_state_retrans=yes
29813else
29814 echo "$as_me: failed program was:" >&5
29815sed 's/^/| /' conftest.$ac_ext >&5
29816
29817 cat >conftest.$ac_ext <<_ACEOF
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823
29824#include <stdio.h>
29825#if HAVE_SYS_TYPES_H
29826# include <sys/types.h>
29827#endif
29828#include <netinet/in.h>
29829#include <arpa/nameser.h>
29830#include <resolv.h>
29831
29832
29833int
29834main ()
29835{
29836static struct __res_state ac_aggr;
29837if (sizeof ac_aggr.retrans)
29838return 0;
29839 ;
29840 return 0;
29841}
29842_ACEOF
29843rm -f conftest.$ac_objext
29844if { (ac_try="$ac_compile"
29845case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29848esac
29849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_compile") 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest.$ac_objext; then
29860 ac_cv_member_struct___res_state_retrans=yes
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_cv_member_struct___res_state_retrans=no
29866fi
29867
29868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869fi
29870
29871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29872fi
29873{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
29874echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
29875if test $ac_cv_member_struct___res_state_retrans = yes; then
29876 :
29877else
29878
29879cat >>confdefs.h <<\_ACEOF
29880#define __res_state state
29881_ACEOF
29882
29883fi
29884
29885
29886{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
29887echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
29888if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
29889 echo $ECHO_N "(cached) $ECHO_C" >&6
29890else
29891
29892 cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898
29899#include <sys/types.h>
29900#include <sys/socket.h>
29901
29902int
29903main ()
29904{
29905 struct sockaddr_storage s; s.ss_family = 1;
29906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (ac_try="$ac_compile"
29912case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_compile") 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } && {
29924 test -z "$ac_c_werror_flag" ||
29925 test ! -s conftest.err
29926 } && test -s conftest.$ac_objext; then
29927 ac_cv_have_ss_family_in_struct_ss="yes"
29928else
29929 echo "$as_me: failed program was:" >&5
29930sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 ac_cv_have_ss_family_in_struct_ss="no"
29933fi
29934
29935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29936
29937fi
29938{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
29939echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
29940if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
29941
29942cat >>confdefs.h <<\_ACEOF
29943#define HAVE_SS_FAMILY_IN_SS 1
29944_ACEOF
29945
29946fi
29947
29948{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
29949echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
29950if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953
29954 cat >conftest.$ac_ext <<_ACEOF
29955/* confdefs.h. */
29956_ACEOF
29957cat confdefs.h >>conftest.$ac_ext
29958cat >>conftest.$ac_ext <<_ACEOF
29959/* end confdefs.h. */
29960
29961#include <sys/types.h>
29962#include <sys/socket.h>
29963
29964int
29965main ()
29966{
29967 struct sockaddr_storage s; s.__ss_family = 1;
29968 ;
29969 return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (ac_try="$ac_compile"
29974case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29977esac
29978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_compile") 2>conftest.er1
29980 ac_status=$?
29981 grep -v '^ *+' conftest.er1 >conftest.err
29982 rm -f conftest.er1
29983 cat conftest.err >&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } && {
29986 test -z "$ac_c_werror_flag" ||
29987 test ! -s conftest.err
29988 } && test -s conftest.$ac_objext; then
29989 ac_cv_have___ss_family_in_struct_ss="yes"
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994 ac_cv_have___ss_family_in_struct_ss="no"
29995
29996fi
29997
29998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29999
30000fi
30001{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
30002echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
30003if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
30004
30005cat >>confdefs.h <<\_ACEOF
30006#define HAVE___SS_FAMILY_IN_SS 1
30007_ACEOF
30008
30009fi
30010
30011{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
30012echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
30013if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30015else
30016
30017 cat >conftest.$ac_ext <<_ACEOF
30018/* confdefs.h. */
30019_ACEOF
30020cat confdefs.h >>conftest.$ac_ext
30021cat >>conftest.$ac_ext <<_ACEOF
30022/* end confdefs.h. */
30023
30024#include <sys/types.h>
30025#include <sys/socket.h>
30026#include <sys/uio.h>
30027
30028int
30029main ()
30030{
30031
30032#ifdef msg_accrights
30033#error "msg_accrights is a macro"
30034exit(1);
30035#endif
30036struct msghdr m;
30037m.msg_accrights = 0;
30038exit(0);
30039
30040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext
30045if { (ac_try="$ac_compile"
30046case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_compile") 2>conftest.er1
30052 ac_status=$?
30053 grep -v '^ *+' conftest.er1 >conftest.err
30054 rm -f conftest.er1
30055 cat conftest.err >&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } && {
30058 test -z "$ac_c_werror_flag" ||
30059 test ! -s conftest.err
30060 } && test -s conftest.$ac_objext; then
30061 ac_cv_have_accrights_in_msghdr="yes"
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066 ac_cv_have_accrights_in_msghdr="no"
30067
30068fi
30069
30070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30071
30072fi
30073{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
30074echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
30075if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
30076
30077cat >>confdefs.h <<\_ACEOF
30078#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30079_ACEOF
30080
30081fi
30082
30083{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
30084echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
30085cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091
30092#include <sys/param.h>
30093#include <sys/stat.h>
30094#ifdef HAVE_SYS_TIME_H
30095# include <sys/time.h>
30096#endif
30097#ifdef HAVE_SYS_MOUNT_H
30098#include <sys/mount.h>
30099#endif
30100#ifdef HAVE_SYS_STATVFS_H
30101#include <sys/statvfs.h>
30102#endif
30103
30104int
30105main ()
30106{
30107 struct statvfs s; s.f_fsid = 0;
30108 ;
30109 return 0;
30110}
30111_ACEOF
30112rm -f conftest.$ac_objext
30113if { (ac_try="$ac_compile"
30114case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_compile") 2>conftest.er1
30120 ac_status=$?
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && {
30126 test -z "$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 } && test -s conftest.$ac_objext; then
30129 { echo "$as_me:$LINENO: result: yes" >&5
30130echo "${ECHO_T}yes" >&6; }
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
30135 { echo "$as_me:$LINENO: result: no" >&5
30136echo "${ECHO_T}no" >&6; }
30137
30138 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
30139echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
30140 cat >conftest.$ac_ext <<_ACEOF
30141/* confdefs.h. */
30142_ACEOF
30143cat confdefs.h >>conftest.$ac_ext
30144cat >>conftest.$ac_ext <<_ACEOF
30145/* end confdefs.h. */
30146
30147#include <sys/types.h>
30148#include <sys/statvfs.h>
30149
30150int
30151main ()
30152{
30153 fsid_t t; t.val[0] = 0;
30154 ;
30155 return 0;
30156}
30157_ACEOF
30158rm -f conftest.$ac_objext
30159if { (ac_try="$ac_compile"
30160case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30163esac
30164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_compile") 2>conftest.er1
30166 ac_status=$?
30167 grep -v '^ *+' conftest.er1 >conftest.err
30168 rm -f conftest.er1
30169 cat conftest.err >&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); } && {
30172 test -z "$ac_c_werror_flag" ||
30173 test ! -s conftest.err
30174 } && test -s conftest.$ac_objext; then
30175 { echo "$as_me:$LINENO: result: yes" >&5
30176echo "${ECHO_T}yes" >&6; }
30177
30178cat >>confdefs.h <<\_ACEOF
30179#define FSID_HAS_VAL 1
30180_ACEOF
30181
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 { echo "$as_me:$LINENO: result: no" >&5
30187echo "${ECHO_T}no" >&6; }
30188fi
30189
30190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30191
30192 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
30193echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
30194 cat >conftest.$ac_ext <<_ACEOF
30195/* confdefs.h. */
30196_ACEOF
30197cat confdefs.h >>conftest.$ac_ext
30198cat >>conftest.$ac_ext <<_ACEOF
30199/* end confdefs.h. */
30200
30201#include <sys/types.h>
30202#include <sys/statvfs.h>
30203
30204int
30205main ()
30206{
30207 fsid_t t; t.__val[0] = 0;
30208 ;
30209 return 0;
30210}
30211_ACEOF
30212rm -f conftest.$ac_objext
30213if { (ac_try="$ac_compile"
30214case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30217esac
30218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_compile") 2>conftest.er1
30220 ac_status=$?
30221 grep -v '^ *+' conftest.er1 >conftest.err
30222 rm -f conftest.er1
30223 cat conftest.err >&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } && {
30226 test -z "$ac_c_werror_flag" ||
30227 test ! -s conftest.err
30228 } && test -s conftest.$ac_objext; then
30229 { echo "$as_me:$LINENO: result: yes" >&5
30230echo "${ECHO_T}yes" >&6; }
30231
30232cat >>confdefs.h <<\_ACEOF
30233#define FSID_HAS___VAL 1
30234_ACEOF
30235
30236else
30237 echo "$as_me: failed program was:" >&5
30238sed 's/^/| /' conftest.$ac_ext >&5
30239
30240 { echo "$as_me:$LINENO: result: no" >&5
30241echo "${ECHO_T}no" >&6; }
30242fi
30243
30244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30245
30246fi
30247
30248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30249
30250{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
30251echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
30252if test "${ac_cv_have_control_in_msghdr+set}" = set; then
30253 echo $ECHO_N "(cached) $ECHO_C" >&6
30254else
30255
30256 cat >conftest.$ac_ext <<_ACEOF
30257/* confdefs.h. */
30258_ACEOF
30259cat confdefs.h >>conftest.$ac_ext
30260cat >>conftest.$ac_ext <<_ACEOF
30261/* end confdefs.h. */
30262
30263#include <sys/types.h>
30264#include <sys/socket.h>
30265#include <sys/uio.h>
30266
30267int
30268main ()
30269{
30270
30271#ifdef msg_control
30272#error "msg_control is a macro"
30273exit(1);
30274#endif
30275struct msghdr m;
30276m.msg_control = 0;
30277exit(0);
30278
30279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext
30284if { (ac_try="$ac_compile"
30285case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_compile") 2>conftest.er1
30291 ac_status=$?
30292 grep -v '^ *+' conftest.er1 >conftest.err
30293 rm -f conftest.er1
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } && {
30297 test -z "$ac_c_werror_flag" ||
30298 test ! -s conftest.err
30299 } && test -s conftest.$ac_objext; then
30300 ac_cv_have_control_in_msghdr="yes"
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305 ac_cv_have_control_in_msghdr="no"
30306
30307fi
30308
30309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310
30311fi
30312{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
30313echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
30314if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
30315
30316cat >>confdefs.h <<\_ACEOF
30317#define HAVE_CONTROL_IN_MSGHDR 1
30318_ACEOF
30319
30320fi
30321
30322{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
30323echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
30324if test "${ac_cv_libc_defines___progname+set}" = set; then
30325 echo $ECHO_N "(cached) $ECHO_C" >&6
30326else
30327
30328 cat >conftest.$ac_ext <<_ACEOF
30329/* confdefs.h. */
30330_ACEOF
30331cat confdefs.h >>conftest.$ac_ext
30332cat >>conftest.$ac_ext <<_ACEOF
30333/* end confdefs.h. */
30334
30335int
30336main ()
30337{
30338 extern char *__progname; printf("%s", __progname);
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (ac_try="$ac_link"
30345case "(($ac_try" in
30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347 *) ac_try_echo=$ac_try;;
30348esac
30349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350 (eval "$ac_link") 2>conftest.er1
30351 ac_status=$?
30352 grep -v '^ *+' conftest.er1 >conftest.err
30353 rm -f conftest.er1
30354 cat conftest.err >&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } && {
30357 test -z "$ac_c_werror_flag" ||
30358 test ! -s conftest.err
30359 } && test -s conftest$ac_exeext &&
30360 $as_test_x conftest$ac_exeext; then
30361 ac_cv_libc_defines___progname="yes"
30362else
30363 echo "$as_me: failed program was:" >&5
30364sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ac_cv_libc_defines___progname="no"
30367
30368fi
30369
30370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30371 conftest$ac_exeext conftest.$ac_ext
30372
30373fi
30374{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
30375echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
30376if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
30377
30378cat >>confdefs.h <<\_ACEOF
30379#define HAVE___PROGNAME 1
30380_ACEOF
30381
30382fi
30383
30384{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
30385echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
30386if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30388else
30389
30390 cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396 #include <stdio.h>
30397int
30398main ()
30399{
30400 printf("%s", __FUNCTION__);
30401 ;
30402 return 0;
30403}
30404_ACEOF
30405rm -f conftest.$ac_objext conftest$ac_exeext
30406if { (ac_try="$ac_link"
30407case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410esac
30411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_link") 2>conftest.er1
30413 ac_status=$?
30414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && {
30419 test -z "$ac_c_werror_flag" ||
30420 test ! -s conftest.err
30421 } && test -s conftest$ac_exeext &&
30422 $as_test_x conftest$ac_exeext; then
30423 ac_cv_cc_implements___FUNCTION__="yes"
30424else
30425 echo "$as_me: failed program was:" >&5
30426sed 's/^/| /' conftest.$ac_ext >&5
30427
30428 ac_cv_cc_implements___FUNCTION__="no"
30429
30430fi
30431
30432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30433 conftest$ac_exeext conftest.$ac_ext
30434
30435fi
30436{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
30437echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
30438if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
30439
30440cat >>confdefs.h <<\_ACEOF
30441#define HAVE___FUNCTION__ 1
30442_ACEOF
30443
30444fi
30445
30446{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
30447echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
30448if test "${ac_cv_cc_implements___func__+set}" = set; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30450else
30451
30452 cat >conftest.$ac_ext <<_ACEOF
30453/* confdefs.h. */
30454_ACEOF
30455cat confdefs.h >>conftest.$ac_ext
30456cat >>conftest.$ac_ext <<_ACEOF
30457/* end confdefs.h. */
30458 #include <stdio.h>
30459int
30460main ()
30461{
30462 printf("%s", __func__);
30463 ;
30464 return 0;
30465}
30466_ACEOF
30467rm -f conftest.$ac_objext conftest$ac_exeext
30468if { (ac_try="$ac_link"
30469case "(($ac_try" in
30470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30472esac
30473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_link") 2>conftest.er1
30475 ac_status=$?
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } && {
30481 test -z "$ac_c_werror_flag" ||
30482 test ! -s conftest.err
30483 } && test -s conftest$ac_exeext &&
30484 $as_test_x conftest$ac_exeext; then
30485 ac_cv_cc_implements___func__="yes"
30486else
30487 echo "$as_me: failed program was:" >&5
30488sed 's/^/| /' conftest.$ac_ext >&5
30489
30490 ac_cv_cc_implements___func__="no"
30491
30492fi
30493
30494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30495 conftest$ac_exeext conftest.$ac_ext
30496
30497fi
30498{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
30499echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
30500if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
30501
30502cat >>confdefs.h <<\_ACEOF
30503#define HAVE___func__ 1
30504_ACEOF
30505
30506fi
30507
30508{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
30509echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
30510if test "${ac_cv_have_va_copy+set}" = set; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30512else
30513
30514 cat >conftest.$ac_ext <<_ACEOF
30515/* confdefs.h. */
30516_ACEOF
30517cat confdefs.h >>conftest.$ac_ext
30518cat >>conftest.$ac_ext <<_ACEOF
30519/* end confdefs.h. */
30520
30521#include <stdarg.h>
30522va_list x,y;
30523
30524int
30525main ()
30526{
30527 va_copy(x,y);
30528 ;
30529 return 0;
30530}
30531_ACEOF
30532rm -f conftest.$ac_objext conftest$ac_exeext
30533if { (ac_try="$ac_link"
30534case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_link") 2>conftest.er1
30540 ac_status=$?
30541 grep -v '^ *+' conftest.er1 >conftest.err
30542 rm -f conftest.er1
30543 cat conftest.err >&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } && {
30546 test -z "$ac_c_werror_flag" ||
30547 test ! -s conftest.err
30548 } && test -s conftest$ac_exeext &&
30549 $as_test_x conftest$ac_exeext; then
30550 ac_cv_have_va_copy="yes"
30551else
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 ac_cv_have_va_copy="no"
30556
30557fi
30558
30559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30560 conftest$ac_exeext conftest.$ac_ext
30561
30562fi
30563{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
30564echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
30565if test "x$ac_cv_have_va_copy" = "xyes" ; then
30566
30567cat >>confdefs.h <<\_ACEOF
30568#define HAVE_VA_COPY 1
30569_ACEOF
30570
30571fi
30572
30573{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
30574echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
30575if test "${ac_cv_have___va_copy+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578
30579 cat >conftest.$ac_ext <<_ACEOF
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
30585
30586#include <stdarg.h>
30587va_list x,y;
30588
30589int
30590main ()
30591{
30592 __va_copy(x,y);
30593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext conftest$ac_exeext
30598if { (ac_try="$ac_link"
30599case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_link") 2>conftest.er1
30605 ac_status=$?
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } && {
30611 test -z "$ac_c_werror_flag" ||
30612 test ! -s conftest.err
30613 } && test -s conftest$ac_exeext &&
30614 $as_test_x conftest$ac_exeext; then
30615 ac_cv_have___va_copy="yes"
30616else
30617 echo "$as_me: failed program was:" >&5
30618sed 's/^/| /' conftest.$ac_ext >&5
30619
30620 ac_cv_have___va_copy="no"
30621
30622fi
30623
30624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30625 conftest$ac_exeext conftest.$ac_ext
30626
30627fi
30628{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
30629echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
30630if test "x$ac_cv_have___va_copy" = "xyes" ; then
30631
30632cat >>confdefs.h <<\_ACEOF
30633#define HAVE___VA_COPY 1
30634_ACEOF
30635
30636fi
30637
30638{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
30639echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
30640if test "${ac_cv_have_getopt_optreset+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642else
30643
30644 cat >conftest.$ac_ext <<_ACEOF
30645/* confdefs.h. */
30646_ACEOF
30647cat confdefs.h >>conftest.$ac_ext
30648cat >>conftest.$ac_ext <<_ACEOF
30649/* end confdefs.h. */
30650 #include <getopt.h>
30651int
30652main ()
30653{
30654 extern int optreset; optreset = 0;
30655 ;
30656 return 0;
30657}
30658_ACEOF
30659rm -f conftest.$ac_objext conftest$ac_exeext
30660if { (ac_try="$ac_link"
30661case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_link") 2>conftest.er1
30667 ac_status=$?
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } && {
30673 test -z "$ac_c_werror_flag" ||
30674 test ! -s conftest.err
30675 } && test -s conftest$ac_exeext &&
30676 $as_test_x conftest$ac_exeext; then
30677 ac_cv_have_getopt_optreset="yes"
30678else
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
30682 ac_cv_have_getopt_optreset="no"
30683
30684fi
30685
30686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30687 conftest$ac_exeext conftest.$ac_ext
30688
30689fi
30690{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
30691echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
30692if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
30693
30694cat >>confdefs.h <<\_ACEOF
30695#define HAVE_GETOPT_OPTRESET 1
30696_ACEOF
30697
30698fi
30699
30700{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
30701echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
30702if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705
30706 cat >conftest.$ac_ext <<_ACEOF
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
30712
30713int
30714main ()
30715{
30716 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext conftest$ac_exeext
30722if { (ac_try="$ac_link"
30723case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30726esac
30727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_link") 2>conftest.er1
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
30732 cat conftest.err >&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && {
30735 test -z "$ac_c_werror_flag" ||
30736 test ! -s conftest.err
30737 } && test -s conftest$ac_exeext &&
30738 $as_test_x conftest$ac_exeext; then
30739 ac_cv_libc_defines_sys_errlist="yes"
30740else
30741 echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744 ac_cv_libc_defines_sys_errlist="no"
30745
30746fi
30747
30748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30749 conftest$ac_exeext conftest.$ac_ext
30750
30751fi
30752{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
30753echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
30754if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
30755
30756cat >>confdefs.h <<\_ACEOF
30757#define HAVE_SYS_ERRLIST 1
30758_ACEOF
30759
30760fi
30761
30762
30763{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
30764echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
30765if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30767else
30768
30769 cat >conftest.$ac_ext <<_ACEOF
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
30775
30776int
30777main ()
30778{
30779 extern int sys_nerr; printf("%i", sys_nerr);
30780 ;
30781 return 0;
30782}
30783_ACEOF
30784rm -f conftest.$ac_objext conftest$ac_exeext
30785if { (ac_try="$ac_link"
30786case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30789esac
30790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_link") 2>conftest.er1
30792 ac_status=$?
30793 grep -v '^ *+' conftest.er1 >conftest.err
30794 rm -f conftest.er1
30795 cat conftest.err >&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } && {
30798 test -z "$ac_c_werror_flag" ||
30799 test ! -s conftest.err
30800 } && test -s conftest$ac_exeext &&
30801 $as_test_x conftest$ac_exeext; then
30802 ac_cv_libc_defines_sys_nerr="yes"
30803else
30804 echo "$as_me: failed program was:" >&5
30805sed 's/^/| /' conftest.$ac_ext >&5
30806
30807 ac_cv_libc_defines_sys_nerr="no"
30808
30809fi
30810
30811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30812 conftest$ac_exeext conftest.$ac_ext
30813
30814fi
30815{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
30816echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
30817if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
30818
30819cat >>confdefs.h <<\_ACEOF
30820#define HAVE_SYS_NERR 1
30821_ACEOF
30822
30823fi
30824
30825# Check libraries needed by DNS fingerprint support
30826{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
30827echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
30828if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830else
30831 ac_func_search_save_LIBS=$LIBS
30832cat >conftest.$ac_ext <<_ACEOF
30833/* confdefs.h. */
30834_ACEOF
30835cat confdefs.h >>conftest.$ac_ext
30836cat >>conftest.$ac_ext <<_ACEOF
30837/* end confdefs.h. */
30838
30839/* Override any GCC internal prototype to avoid an error.
30840 Use char because int might match the return type of a GCC
30841 builtin and then its argument prototype would still apply. */
30842#ifdef __cplusplus
30843extern "C"
30844#endif
30845char getrrsetbyname ();
30846int
30847main ()
30848{
30849return getrrsetbyname ();
30850 ;
30851 return 0;
30852}
30853_ACEOF
30854for ac_lib in '' resolv; do
30855 if test -z "$ac_lib"; then
30856 ac_res="none required"
30857 else
30858 ac_res=-l$ac_lib
30859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30860 fi
30861 rm -f conftest.$ac_objext conftest$ac_exeext
30862if { (ac_try="$ac_link"
30863case "(($ac_try" in
30864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865 *) ac_try_echo=$ac_try;;
30866esac
30867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868 (eval "$ac_link") 2>conftest.er1
30869 ac_status=$?
30870 grep -v '^ *+' conftest.er1 >conftest.err
30871 rm -f conftest.er1
30872 cat conftest.err >&5
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); } && {
30875 test -z "$ac_c_werror_flag" ||
30876 test ! -s conftest.err
30877 } && test -s conftest$ac_exeext &&
30878 $as_test_x conftest$ac_exeext; then
30879 ac_cv_search_getrrsetbyname=$ac_res
30880else
30881 echo "$as_me: failed program was:" >&5
30882sed 's/^/| /' conftest.$ac_ext >&5
30883
30884
30885fi
30886
30887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30888 conftest$ac_exeext
30889 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30890 break
30891fi
30892done
30893if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30894 :
30895else
30896 ac_cv_search_getrrsetbyname=no
30897fi
30898rm conftest.$ac_ext
30899LIBS=$ac_func_search_save_LIBS
30900fi
30901{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
30902echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
30903ac_res=$ac_cv_search_getrrsetbyname
30904if test "$ac_res" != no; then
30905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30906
30907cat >>confdefs.h <<\_ACEOF
30908#define HAVE_GETRRSETBYNAME 1
30909_ACEOF
30910
30911else
30912
30913 # Needed by our getrrsetbyname()
30914 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
30915echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
30916if test "${ac_cv_search_res_query+set}" = set; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918else
30919 ac_func_search_save_LIBS=$LIBS
30920cat >conftest.$ac_ext <<_ACEOF
30921/* confdefs.h. */
30922_ACEOF
30923cat confdefs.h >>conftest.$ac_ext
30924cat >>conftest.$ac_ext <<_ACEOF
30925/* end confdefs.h. */
30926
30927/* Override any GCC internal prototype to avoid an error.
30928 Use char because int might match the return type of a GCC
30929 builtin and then its argument prototype would still apply. */
30930#ifdef __cplusplus
30931extern "C"
30932#endif
30933char res_query ();
30934int
30935main ()
30936{
30937return res_query ();
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942for ac_lib in '' resolv; do
30943 if test -z "$ac_lib"; then
30944 ac_res="none required"
30945 else
30946 ac_res=-l$ac_lib
30947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30948 fi
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950if { (ac_try="$ac_link"
30951case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_link") 2>conftest.er1
30957 ac_status=$?
30958 grep -v '^ *+' conftest.er1 >conftest.err
30959 rm -f conftest.er1
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); } && {
30963 test -z "$ac_c_werror_flag" ||
30964 test ! -s conftest.err
30965 } && test -s conftest$ac_exeext &&
30966 $as_test_x conftest$ac_exeext; then
30967 ac_cv_search_res_query=$ac_res
30968else
30969 echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
30972
30973fi
30974
30975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30976 conftest$ac_exeext
30977 if test "${ac_cv_search_res_query+set}" = set; then
30978 break
30979fi
30980done
30981if test "${ac_cv_search_res_query+set}" = set; then
30982 :
30983else
30984 ac_cv_search_res_query=no
30985fi
30986rm conftest.$ac_ext
30987LIBS=$ac_func_search_save_LIBS
30988fi
30989{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
30990echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
30991ac_res=$ac_cv_search_res_query
30992if test "$ac_res" != no; then
30993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30994
30995fi
30996
30997 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
30998echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
30999if test "${ac_cv_search_dn_expand+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31001else
31002 ac_func_search_save_LIBS=$LIBS
31003cat >conftest.$ac_ext <<_ACEOF
31004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
31009
31010/* Override any GCC internal prototype to avoid an error.
31011 Use char because int might match the return type of a GCC
31012 builtin and then its argument prototype would still apply. */
31013#ifdef __cplusplus
31014extern "C"
31015#endif
31016char dn_expand ();
31017int
31018main ()
31019{
31020return dn_expand ();
31021 ;
31022 return 0;
31023}
31024_ACEOF
31025for ac_lib in '' resolv; do
31026 if test -z "$ac_lib"; then
31027 ac_res="none required"
31028 else
31029 ac_res=-l$ac_lib
31030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31031 fi
31032 rm -f conftest.$ac_objext conftest$ac_exeext
31033if { (ac_try="$ac_link"
31034case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31037esac
31038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_link") 2>conftest.er1
31040 ac_status=$?
31041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } && {
31046 test -z "$ac_c_werror_flag" ||
31047 test ! -s conftest.err
31048 } && test -s conftest$ac_exeext &&
31049 $as_test_x conftest$ac_exeext; then
31050 ac_cv_search_dn_expand=$ac_res
31051else
31052 echo "$as_me: failed program was:" >&5
31053sed 's/^/| /' conftest.$ac_ext >&5
31054
31055
31056fi
31057
31058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31059 conftest$ac_exeext
31060 if test "${ac_cv_search_dn_expand+set}" = set; then
31061 break
31062fi
31063done
31064if test "${ac_cv_search_dn_expand+set}" = set; then
31065 :
31066else
31067 ac_cv_search_dn_expand=no
31068fi
31069rm conftest.$ac_ext
31070LIBS=$ac_func_search_save_LIBS
31071fi
31072{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
31073echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
31074ac_res=$ac_cv_search_dn_expand
31075if test "$ac_res" != no; then
31076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31077
31078fi
31079
31080 { echo "$as_me:$LINENO: checking if res_query will link" >&5
31081echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31083/* confdefs.h. */
31084_ACEOF
31085cat confdefs.h >>conftest.$ac_ext
31086cat >>conftest.$ac_ext <<_ACEOF
31087/* end confdefs.h. */
31088
31089#include <sys/types.h>
31090#include <netinet/in.h>
31091#include <arpa/nameser.h>
31092#include <netdb.h>
31093#include <resolv.h>
31094
31095int
31096main ()
31097{
31098
31099 res_query (0, 0, 0, 0, 0);
31100
31101 ;
31102 return 0;
31103}
31104_ACEOF
31105rm -f conftest.$ac_objext conftest$ac_exeext
31106if { (ac_try="$ac_link"
31107case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31110esac
31111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_link") 2>conftest.er1
31113 ac_status=$?
31114 grep -v '^ *+' conftest.er1 >conftest.err
31115 rm -f conftest.er1
31116 cat conftest.err >&5
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); } && {
31119 test -z "$ac_c_werror_flag" ||
31120 test ! -s conftest.err
31121 } && test -s conftest$ac_exeext &&
31122 $as_test_x conftest$ac_exeext; then
31123 { echo "$as_me:$LINENO: result: yes" >&5
31124echo "${ECHO_T}yes" >&6; }
31125else
31126 echo "$as_me: failed program was:" >&5
31127sed 's/^/| /' conftest.$ac_ext >&5
31128
31129 { echo "$as_me:$LINENO: result: no" >&5
31130echo "${ECHO_T}no" >&6; }
31131 saved_LIBS="$LIBS"
31132 LIBS="$LIBS -lresolv"
31133 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
31134echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31136/* confdefs.h. */
31137_ACEOF
31138cat confdefs.h >>conftest.$ac_ext
31139cat >>conftest.$ac_ext <<_ACEOF
31140/* end confdefs.h. */
31141
31142#include <sys/types.h>
31143#include <netinet/in.h>
31144#include <arpa/nameser.h>
31145#include <netdb.h>
31146#include <resolv.h>
31147
31148int
31149main ()
31150{
31151
31152 res_query (0, 0, 0, 0, 0);
31153
31154 ;
31155 return 0;
31156}
31157_ACEOF
31158rm -f conftest.$ac_objext conftest$ac_exeext
31159if { (ac_try="$ac_link"
31160case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_link") 2>conftest.er1
31166 ac_status=$?
31167 grep -v '^ *+' conftest.er1 >conftest.err
31168 rm -f conftest.er1
31169 cat conftest.err >&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } && {
31172 test -z "$ac_c_werror_flag" ||
31173 test ! -s conftest.err
31174 } && test -s conftest$ac_exeext &&
31175 $as_test_x conftest$ac_exeext; then
31176 { echo "$as_me:$LINENO: result: yes" >&5
31177echo "${ECHO_T}yes" >&6; }
31178else
31179 echo "$as_me: failed program was:" >&5
31180sed 's/^/| /' conftest.$ac_ext >&5
31181
31182 LIBS="$saved_LIBS"
31183 { echo "$as_me:$LINENO: result: no" >&5
31184echo "${ECHO_T}no" >&6; }
31185fi
31186
31187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31188 conftest$ac_exeext conftest.$ac_ext
31189
31190fi
31191
31192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31193 conftest$ac_exeext conftest.$ac_ext
31194
31195
31196for ac_func in _getshort _getlong
31197do
31198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31201if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31203else
31204 cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31212#define $ac_func innocuous_$ac_func
31213
31214/* System header to define __stub macros and hopefully few prototypes,
31215 which can conflict with char $ac_func (); below.
31216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217 <limits.h> exists even on freestanding compilers. */
31218
31219#ifdef __STDC__
31220# include <limits.h>
31221#else
31222# include <assert.h>
31223#endif
31224
31225#undef $ac_func
31226
31227/* Override any GCC internal prototype to avoid an error.
31228 Use char because int might match the return type of a GCC
31229 builtin and then its argument prototype would still apply. */
31230#ifdef __cplusplus
31231extern "C"
31232#endif
31233char $ac_func ();
31234/* The GNU C library defines this for functions which it implements
31235 to always fail with ENOSYS. Some functions are actually named
31236 something starting with __ and the normal name is an alias. */
31237#if defined __stub_$ac_func || defined __stub___$ac_func
31238choke me
31239#endif
31240
31241int
31242main ()
31243{
31244return $ac_func ();
31245 ;
31246 return 0;
31247}
31248_ACEOF
31249rm -f conftest.$ac_objext conftest$ac_exeext
31250if { (ac_try="$ac_link"
31251case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31254esac
31255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_link") 2>conftest.er1
31257 ac_status=$?
31258 grep -v '^ *+' conftest.er1 >conftest.err
31259 rm -f conftest.er1
31260 cat conftest.err >&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } && {
31263 test -z "$ac_c_werror_flag" ||
31264 test ! -s conftest.err
31265 } && test -s conftest$ac_exeext &&
31266 $as_test_x conftest$ac_exeext; then
31267 eval "$as_ac_var=yes"
31268else
31269 echo "$as_me: failed program was:" >&5
31270sed 's/^/| /' conftest.$ac_ext >&5
31271
31272 eval "$as_ac_var=no"
31273fi
31274
31275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31276 conftest$ac_exeext conftest.$ac_ext
31277fi
31278ac_res=`eval echo '${'$as_ac_var'}'`
31279 { echo "$as_me:$LINENO: result: $ac_res" >&5
31280echo "${ECHO_T}$ac_res" >&6; }
31281if test `eval echo '${'$as_ac_var'}'` = yes; then
31282 cat >>confdefs.h <<_ACEOF
31283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31284_ACEOF
31285
31286fi
31287done
31288
31289 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31290echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31291if test "${ac_cv_have_decl__getshort+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294 cat >conftest.$ac_ext <<_ACEOF
31295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
31300#include <sys/types.h>
31301 #include <arpa/nameser.h>
31302
31303int
31304main ()
31305{
31306#ifndef _getshort
31307 (void) _getshort;
31308#endif
31309
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314rm -f conftest.$ac_objext
31315if { (ac_try="$ac_compile"
31316case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31319esac
31320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_compile") 2>conftest.er1
31322 ac_status=$?
31323 grep -v '^ *+' conftest.er1 >conftest.err
31324 rm -f conftest.er1
31325 cat conftest.err >&5
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); } && {
31328 test -z "$ac_c_werror_flag" ||
31329 test ! -s conftest.err
31330 } && test -s conftest.$ac_objext; then
31331 ac_cv_have_decl__getshort=yes
31332else
31333 echo "$as_me: failed program was:" >&5
31334sed 's/^/| /' conftest.$ac_ext >&5
31335
31336 ac_cv_have_decl__getshort=no
31337fi
31338
31339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340fi
31341{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31342echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31343if test $ac_cv_have_decl__getshort = yes; then
31344
31345cat >>confdefs.h <<_ACEOF
31346#define HAVE_DECL__GETSHORT 1
31347_ACEOF
31348
31349
31350else
31351 cat >>confdefs.h <<_ACEOF
31352#define HAVE_DECL__GETSHORT 0
31353_ACEOF
31354
31355
31356fi
31357{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31358echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31359if test "${ac_cv_have_decl__getlong+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31361else
31362 cat >conftest.$ac_ext <<_ACEOF
31363/* confdefs.h. */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h. */
31368#include <sys/types.h>
31369 #include <arpa/nameser.h>
31370
31371int
31372main ()
31373{
31374#ifndef _getlong
31375 (void) _getlong;
31376#endif
31377
31378 ;
31379 return 0;
31380}
31381_ACEOF
31382rm -f conftest.$ac_objext
31383if { (ac_try="$ac_compile"
31384case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31387esac
31388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_compile") 2>conftest.er1
31390 ac_status=$?
31391 grep -v '^ *+' conftest.er1 >conftest.err
31392 rm -f conftest.er1
31393 cat conftest.err >&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } && {
31396 test -z "$ac_c_werror_flag" ||
31397 test ! -s conftest.err
31398 } && test -s conftest.$ac_objext; then
31399 ac_cv_have_decl__getlong=yes
31400else
31401 echo "$as_me: failed program was:" >&5
31402sed 's/^/| /' conftest.$ac_ext >&5
31403
31404 ac_cv_have_decl__getlong=no
31405fi
31406
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408fi
31409{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31410echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31411if test $ac_cv_have_decl__getlong = yes; then
31412
31413cat >>confdefs.h <<_ACEOF
31414#define HAVE_DECL__GETLONG 1
31415_ACEOF
31416
31417
31418else
31419 cat >>confdefs.h <<_ACEOF
31420#define HAVE_DECL__GETLONG 0
31421_ACEOF
31422
31423
31424fi
31425
31426
31427 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31428echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31429if test "${ac_cv_member_HEADER_ad+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 cat >conftest.$ac_ext <<_ACEOF
31433/* confdefs.h. */
31434_ACEOF
31435cat confdefs.h >>conftest.$ac_ext
31436cat >>conftest.$ac_ext <<_ACEOF
31437/* end confdefs.h. */
31438#include <arpa/nameser.h>
31439
31440int
31441main ()
31442{
31443static HEADER ac_aggr;
31444if (ac_aggr.ad)
31445return 0;
31446 ;
31447 return 0;
31448}
31449_ACEOF
31450rm -f conftest.$ac_objext
31451if { (ac_try="$ac_compile"
31452case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31455esac
31456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_compile") 2>conftest.er1
31458 ac_status=$?
31459 grep -v '^ *+' conftest.er1 >conftest.err
31460 rm -f conftest.er1
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } && {
31464 test -z "$ac_c_werror_flag" ||
31465 test ! -s conftest.err
31466 } && test -s conftest.$ac_objext; then
31467 ac_cv_member_HEADER_ad=yes
31468else
31469 echo "$as_me: failed program was:" >&5
31470sed 's/^/| /' conftest.$ac_ext >&5
31471
31472 cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478#include <arpa/nameser.h>
31479
31480int
31481main ()
31482{
31483static HEADER ac_aggr;
31484if (sizeof ac_aggr.ad)
31485return 0;
31486 ;
31487 return 0;
31488}
31489_ACEOF
31490rm -f conftest.$ac_objext
31491if { (ac_try="$ac_compile"
31492case "(($ac_try" in
31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31494 *) ac_try_echo=$ac_try;;
31495esac
31496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31497 (eval "$ac_compile") 2>conftest.er1
31498 ac_status=$?
31499 grep -v '^ *+' conftest.er1 >conftest.err
31500 rm -f conftest.er1
31501 cat conftest.err >&5
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); } && {
31504 test -z "$ac_c_werror_flag" ||
31505 test ! -s conftest.err
31506 } && test -s conftest.$ac_objext; then
31507 ac_cv_member_HEADER_ad=yes
31508else
31509 echo "$as_me: failed program was:" >&5
31510sed 's/^/| /' conftest.$ac_ext >&5
31511
31512 ac_cv_member_HEADER_ad=no
31513fi
31514
31515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31516fi
31517
31518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519fi
31520{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
31521echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
31522if test $ac_cv_member_HEADER_ad = yes; then
31523
31524cat >>confdefs.h <<\_ACEOF
31525#define HAVE_HEADER_AD 1
31526_ACEOF
31527
31528fi
31529
31530
31531fi
31532
31533
31534{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
31535echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
31536cat >conftest.$ac_ext <<_ACEOF
31537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
31542
31543#include <stdio.h>
31544#if HAVE_SYS_TYPES_H
31545# include <sys/types.h>
31546#endif
31547#include <netinet/in.h>
31548#include <arpa/nameser.h>
31549#include <resolv.h>
31550extern struct __res_state _res;
31551
31552int
31553main ()
31554{
31555
31556 ;
31557 return 0;
31558}
31559_ACEOF
31560rm -f conftest.$ac_objext conftest$ac_exeext
31561if { (ac_try="$ac_link"
31562case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565esac
31566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_link") 2>conftest.er1
31568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } && {
31574 test -z "$ac_c_werror_flag" ||
31575 test ! -s conftest.err
31576 } && test -s conftest$ac_exeext &&
31577 $as_test_x conftest$ac_exeext; then
31578 { echo "$as_me:$LINENO: result: yes" >&5
31579echo "${ECHO_T}yes" >&6; }
31580
31581cat >>confdefs.h <<\_ACEOF
31582#define HAVE__RES_EXTERN 1
31583_ACEOF
31584
31585
31586else
31587 echo "$as_me: failed program was:" >&5
31588sed 's/^/| /' conftest.$ac_ext >&5
31589
31590 { echo "$as_me:$LINENO: result: no" >&5
31591echo "${ECHO_T}no" >&6; }
31592
31593fi
31594
31595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31596 conftest$ac_exeext conftest.$ac_ext
31597
31598# Check whether user wants SELinux support
31599SELINUX_MSG="no"
31600LIBSELINUX=""
31601
31602# Check whether --with-selinux was given.
31603if test "${with_selinux+set}" = set; then
31604 withval=$with_selinux; if test "x$withval" != "xno" ; then
31605 save_LIBS="$LIBS"
31606
31607cat >>confdefs.h <<\_ACEOF
31608#define WITH_SELINUX 1
31609_ACEOF
31610
31611 SELINUX_MSG="yes"
31612 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31613 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31614echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31615if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617fi
31618{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31619echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31620else
31621 # Is the header compilable?
31622{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
31623echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
31624cat >conftest.$ac_ext <<_ACEOF
31625/* confdefs.h. */
31626_ACEOF
31627cat confdefs.h >>conftest.$ac_ext
31628cat >>conftest.$ac_ext <<_ACEOF
31629/* end confdefs.h. */
31630$ac_includes_default
31631#include <selinux/selinux.h>
31632_ACEOF
31633rm -f conftest.$ac_objext
31634if { (ac_try="$ac_compile"
31635case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31638esac
31639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_compile") 2>conftest.er1
31641 ac_status=$?
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && {
31647 test -z "$ac_c_werror_flag" ||
31648 test ! -s conftest.err
31649 } && test -s conftest.$ac_objext; then
31650 ac_header_compiler=yes
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655 ac_header_compiler=no
31656fi
31657
31658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31659{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31660echo "${ECHO_T}$ac_header_compiler" >&6; }
31661
31662# Is the header present?
31663{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
31664echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
31665cat >conftest.$ac_ext <<_ACEOF
31666/* confdefs.h. */
31667_ACEOF
31668cat confdefs.h >>conftest.$ac_ext
31669cat >>conftest.$ac_ext <<_ACEOF
31670/* end confdefs.h. */
31671#include <selinux/selinux.h>
31672_ACEOF
31673if { (ac_try="$ac_cpp conftest.$ac_ext"
31674case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677esac
31678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31680 ac_status=$?
31681 grep -v '^ *+' conftest.er1 >conftest.err
31682 rm -f conftest.er1
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } >/dev/null && {
31686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31687 test ! -s conftest.err
31688 }; then
31689 ac_header_preproc=yes
31690else
31691 echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
31694 ac_header_preproc=no
31695fi
31696
31697rm -f conftest.err conftest.$ac_ext
31698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31699echo "${ECHO_T}$ac_header_preproc" >&6; }
31700
31701# So? What about this header?
31702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31703 yes:no: )
31704 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
31705echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31706 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
31707echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
31708 ac_header_preproc=yes
31709 ;;
31710 no:yes:* )
31711 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
31712echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
31713 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
31714echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
31715 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
31716echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
31717 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
31718echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
31719 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
31720echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
31721 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
31722echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
31723 ( cat <<\_ASBOX
31724## ------------------------------------------- ##
31725## Report this to openssh-unix-dev@mindrot.org ##
31726## ------------------------------------------- ##
31727_ASBOX
31728 ) | sed "s/^/$as_me: WARNING: /" >&2
31729 ;;
31730esac
31731{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31732echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31733if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31735else
31736 ac_cv_header_selinux_selinux_h=$ac_header_preproc
31737fi
31738{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31739echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31740
31741fi
31742if test $ac_cv_header_selinux_selinux_h = yes; then
31743 :
31744else
31745 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
31746echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
31747 { (exit 1); exit 1; }; }
31748fi
31749
31750
31751 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
31752echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
31753if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
31754 echo $ECHO_N "(cached) $ECHO_C" >&6
31755else
31756 ac_check_lib_save_LIBS=$LIBS
31757LIBS="-lselinux $LIBS"
31758cat >conftest.$ac_ext <<_ACEOF
31759/* confdefs.h. */
31760_ACEOF
31761cat confdefs.h >>conftest.$ac_ext
31762cat >>conftest.$ac_ext <<_ACEOF
31763/* end confdefs.h. */
31764
31765/* Override any GCC internal prototype to avoid an error.
31766 Use char because int might match the return type of a GCC
31767 builtin and then its argument prototype would still apply. */
31768#ifdef __cplusplus
31769extern "C"
31770#endif
31771char setexeccon ();
31772int
31773main ()
31774{
31775return setexeccon ();
31776 ;
31777 return 0;
31778}
31779_ACEOF
31780rm -f conftest.$ac_objext conftest$ac_exeext
31781if { (ac_try="$ac_link"
31782case "(($ac_try" in
31783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31784 *) ac_try_echo=$ac_try;;
31785esac
31786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31787 (eval "$ac_link") 2>conftest.er1
31788 ac_status=$?
31789 grep -v '^ *+' conftest.er1 >conftest.err
31790 rm -f conftest.er1
31791 cat conftest.err >&5
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); } && {
31794 test -z "$ac_c_werror_flag" ||
31795 test ! -s conftest.err
31796 } && test -s conftest$ac_exeext &&
31797 $as_test_x conftest$ac_exeext; then
31798 ac_cv_lib_selinux_setexeccon=yes
31799else
31800 echo "$as_me: failed program was:" >&5
31801sed 's/^/| /' conftest.$ac_ext >&5
31802
31803 ac_cv_lib_selinux_setexeccon=no
31804fi
31805
31806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31807 conftest$ac_exeext conftest.$ac_ext
31808LIBS=$ac_check_lib_save_LIBS
31809fi
31810{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
31811echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
31812if test $ac_cv_lib_selinux_setexeccon = yes; then
31813 LIBSELINUX="-lselinux"
31814 LIBS="$LIBS -lselinux"
31815
31816else
31817 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
31818echo "$as_me: error: SELinux support requires libselinux library" >&2;}
31819 { (exit 1); exit 1; }; }
31820fi
31821
31822 SSHLIBS="$SSHLIBS $LIBSELINUX"
31823 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
31824
31825
31826for ac_func in getseuserbyname get_default_context_with_level
31827do
31828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31833else
31834 cat >conftest.$ac_ext <<_ACEOF
31835/* confdefs.h. */
31836_ACEOF
31837cat confdefs.h >>conftest.$ac_ext
31838cat >>conftest.$ac_ext <<_ACEOF
31839/* end confdefs.h. */
31840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31842#define $ac_func innocuous_$ac_func
31843
31844/* System header to define __stub macros and hopefully few prototypes,
31845 which can conflict with char $ac_func (); below.
31846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31847 <limits.h> exists even on freestanding compilers. */
31848
31849#ifdef __STDC__
31850# include <limits.h>
31851#else
31852# include <assert.h>
31853#endif
31854
31855#undef $ac_func
31856
31857/* Override any GCC internal prototype to avoid an error.
31858 Use char because int might match the return type of a GCC
31859 builtin and then its argument prototype would still apply. */
31860#ifdef __cplusplus
31861extern "C"
31862#endif
31863char $ac_func ();
31864/* The GNU C library defines this for functions which it implements
31865 to always fail with ENOSYS. Some functions are actually named
31866 something starting with __ and the normal name is an alias. */
31867#if defined __stub_$ac_func || defined __stub___$ac_func
31868choke me
31869#endif
31870
31871int
31872main ()
31873{
31874return $ac_func ();
31875 ;
31876 return 0;
31877}
31878_ACEOF
31879rm -f conftest.$ac_objext conftest$ac_exeext
31880if { (ac_try="$ac_link"
31881case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31884esac
31885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_link") 2>conftest.er1
31887 ac_status=$?
31888 grep -v '^ *+' conftest.er1 >conftest.err
31889 rm -f conftest.er1
31890 cat conftest.err >&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); } && {
31893 test -z "$ac_c_werror_flag" ||
31894 test ! -s conftest.err
31895 } && test -s conftest$ac_exeext &&
31896 $as_test_x conftest$ac_exeext; then
31897 eval "$as_ac_var=yes"
31898else
31899 echo "$as_me: failed program was:" >&5
31900sed 's/^/| /' conftest.$ac_ext >&5
31901
31902 eval "$as_ac_var=no"
31903fi
31904
31905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31906 conftest$ac_exeext conftest.$ac_ext
31907fi
31908ac_res=`eval echo '${'$as_ac_var'}'`
31909 { echo "$as_me:$LINENO: result: $ac_res" >&5
31910echo "${ECHO_T}$ac_res" >&6; }
31911if test `eval echo '${'$as_ac_var'}'` = yes; then
31912 cat >>confdefs.h <<_ACEOF
31913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31914_ACEOF
31915
31916fi
31917done
31918
31919 LIBS="$save_LIBS"
31920 fi
31921
31922fi
31923
31924
31925
31926
31927# Check whether user wants Kerberos 5 support
31928KRB5_MSG="no"
31929
31930# Check whether --with-kerberos5 was given.
31931if test "${with_kerberos5+set}" = set; then
31932 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
31933 if test "x$withval" = "xyes" ; then
31934 KRB5ROOT="/usr/local"
31935 else
31936 KRB5ROOT=${withval}
31937 fi
31938
31939
31940cat >>confdefs.h <<\_ACEOF
31941#define KRB5 1
31942_ACEOF
31943
31944 KRB5_MSG="yes"
31945
31946 # Extract the first word of "krb5-config", so it can be a program name with args.
31947set dummy krb5-config; ac_word=$2
31948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31950if test "${ac_cv_path_KRB5CONF+set}" = set; then
31951 echo $ECHO_N "(cached) $ECHO_C" >&6
31952else
31953 case $KRB5CONF in
31954 [\\/]* | ?:[\\/]*)
31955 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
31956 ;;
31957 *)
31958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31959as_dummy="$KRB5ROOT/bin:$PATH"
31960for as_dir in $as_dummy
31961do
31962 IFS=$as_save_IFS
31963 test -z "$as_dir" && as_dir=.
31964 for ac_exec_ext in '' $ac_executable_extensions; do
31965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31966 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
31967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31968 break 2
31969 fi
31970done
31971done
31972IFS=$as_save_IFS
31973
31974 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
31975 ;;
31976esac
31977fi
31978KRB5CONF=$ac_cv_path_KRB5CONF
31979if test -n "$KRB5CONF"; then
31980 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
31981echo "${ECHO_T}$KRB5CONF" >&6; }
31982else
31983 { echo "$as_me:$LINENO: result: no" >&5
31984echo "${ECHO_T}no" >&6; }
31985fi
31986
31987
31988 if test -x $KRB5CONF ; then
31989 K5CFLAGS="`$KRB5CONF --cflags`"
31990 K5LIBS="`$KRB5CONF --libs`"
31991 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
31992
31993 { echo "$as_me:$LINENO: checking for gssapi support" >&5
31994echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
31995 if $KRB5CONF | grep gssapi >/dev/null ; then
31996 { echo "$as_me:$LINENO: result: yes" >&5
31997echo "${ECHO_T}yes" >&6; }
31998
31999cat >>confdefs.h <<\_ACEOF
32000#define GSSAPI 1
32001_ACEOF
32002
32003 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
32004 GSSLIBS="`$KRB5CONF --libs gssapi`"
32005 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
32006 else
32007 { echo "$as_me:$LINENO: result: no" >&5
32008echo "${ECHO_T}no" >&6; }
32009 fi
32010 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32011echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32012 cat >conftest.$ac_ext <<_ACEOF
32013/* confdefs.h. */
32014_ACEOF
32015cat confdefs.h >>conftest.$ac_ext
32016cat >>conftest.$ac_ext <<_ACEOF
32017/* end confdefs.h. */
32018 #include <krb5.h>
32019
32020int
32021main ()
32022{
32023 char *tmp = heimdal_version;
32024 ;
32025 return 0;
32026}
32027_ACEOF
32028rm -f conftest.$ac_objext
32029if { (ac_try="$ac_compile"
32030case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_compile") 2>conftest.er1
32036 ac_status=$?
32037 grep -v '^ *+' conftest.er1 >conftest.err
32038 rm -f conftest.er1
32039 cat conftest.err >&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } && {
32042 test -z "$ac_c_werror_flag" ||
32043 test ! -s conftest.err
32044 } && test -s conftest.$ac_objext; then
32045 { echo "$as_me:$LINENO: result: yes" >&5
32046echo "${ECHO_T}yes" >&6; }
32047
32048cat >>confdefs.h <<\_ACEOF
32049#define HEIMDAL 1
32050_ACEOF
32051
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056 { echo "$as_me:$LINENO: result: no" >&5
32057echo "${ECHO_T}no" >&6; }
32058
32059fi
32060
32061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32062 else
32063 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
32064 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
32065 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32066echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32067 cat >conftest.$ac_ext <<_ACEOF
32068/* confdefs.h. */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h. */
32073 #include <krb5.h>
32074
32075int
32076main ()
32077{
32078 char *tmp = heimdal_version;
32079 ;
32080 return 0;
32081}
32082_ACEOF
32083rm -f conftest.$ac_objext
32084if { (ac_try="$ac_compile"
32085case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32088esac
32089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_compile") 2>conftest.er1
32091 ac_status=$?
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } && {
32097 test -z "$ac_c_werror_flag" ||
32098 test ! -s conftest.err
32099 } && test -s conftest.$ac_objext; then
32100 { echo "$as_me:$LINENO: result: yes" >&5
32101echo "${ECHO_T}yes" >&6; }
32102 cat >>confdefs.h <<\_ACEOF
32103#define HEIMDAL 1
32104_ACEOF
32105
32106 K5LIBS="-lkrb5"
32107 K5LIBS="$K5LIBS -lcom_err -lasn1"
32108 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
32109echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
32110if test "${ac_cv_lib_roken_net_write+set}" = set; then
32111 echo $ECHO_N "(cached) $ECHO_C" >&6
32112else
32113 ac_check_lib_save_LIBS=$LIBS
32114LIBS="-lroken $LIBS"
32115cat >conftest.$ac_ext <<_ACEOF
32116/* confdefs.h. */
32117_ACEOF
32118cat confdefs.h >>conftest.$ac_ext
32119cat >>conftest.$ac_ext <<_ACEOF
32120/* end confdefs.h. */
32121
32122/* Override any GCC internal prototype to avoid an error.
32123 Use char because int might match the return type of a GCC
32124 builtin and then its argument prototype would still apply. */
32125#ifdef __cplusplus
32126extern "C"
32127#endif
32128char net_write ();
32129int
32130main ()
32131{
32132return net_write ();
32133 ;
32134 return 0;
32135}
32136_ACEOF
32137rm -f conftest.$ac_objext conftest$ac_exeext
32138if { (ac_try="$ac_link"
32139case "(($ac_try" in
32140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32141 *) ac_try_echo=$ac_try;;
32142esac
32143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32144 (eval "$ac_link") 2>conftest.er1
32145 ac_status=$?
32146 grep -v '^ *+' conftest.er1 >conftest.err
32147 rm -f conftest.er1
32148 cat conftest.err >&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } && {
32151 test -z "$ac_c_werror_flag" ||
32152 test ! -s conftest.err
32153 } && test -s conftest$ac_exeext &&
32154 $as_test_x conftest$ac_exeext; then
32155 ac_cv_lib_roken_net_write=yes
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 ac_cv_lib_roken_net_write=no
32161fi
32162
32163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32164 conftest$ac_exeext conftest.$ac_ext
32165LIBS=$ac_check_lib_save_LIBS
32166fi
32167{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
32168echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
32169if test $ac_cv_lib_roken_net_write = yes; then
32170 K5LIBS="$K5LIBS -lroken"
32171fi
32172
32173 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
32174echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
32175if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178 ac_check_lib_save_LIBS=$LIBS
32179LIBS="-ldes $LIBS"
32180cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186
32187/* Override any GCC internal prototype to avoid an error.
32188 Use char because int might match the return type of a GCC
32189 builtin and then its argument prototype would still apply. */
32190#ifdef __cplusplus
32191extern "C"
32192#endif
32193char des_cbc_encrypt ();
32194int
32195main ()
32196{
32197return des_cbc_encrypt ();
32198 ;
32199 return 0;
32200}
32201_ACEOF
32202rm -f conftest.$ac_objext conftest$ac_exeext
32203if { (ac_try="$ac_link"
32204case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32207esac
32208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209 (eval "$ac_link") 2>conftest.er1
32210 ac_status=$?
32211 grep -v '^ *+' conftest.er1 >conftest.err
32212 rm -f conftest.er1
32213 cat conftest.err >&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } && {
32216 test -z "$ac_c_werror_flag" ||
32217 test ! -s conftest.err
32218 } && test -s conftest$ac_exeext &&
32219 $as_test_x conftest$ac_exeext; then
32220 ac_cv_lib_des_des_cbc_encrypt=yes
32221else
32222 echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 ac_cv_lib_des_des_cbc_encrypt=no
32226fi
32227
32228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32229 conftest$ac_exeext conftest.$ac_ext
32230LIBS=$ac_check_lib_save_LIBS
32231fi
32232{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
32233echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
32234if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
32235 K5LIBS="$K5LIBS -ldes"
32236fi
32237
32238
32239else
32240 echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
32243 { echo "$as_me:$LINENO: result: no" >&5
32244echo "${ECHO_T}no" >&6; }
32245 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
32246
32247
32248fi
32249
32250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
32252echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
32253if test "${ac_cv_search_dn_expand+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32255else
32256 ac_func_search_save_LIBS=$LIBS
32257cat >conftest.$ac_ext <<_ACEOF
32258/* confdefs.h. */
32259_ACEOF
32260cat confdefs.h >>conftest.$ac_ext
32261cat >>conftest.$ac_ext <<_ACEOF
32262/* end confdefs.h. */
32263
32264/* Override any GCC internal prototype to avoid an error.
32265 Use char because int might match the return type of a GCC
32266 builtin and then its argument prototype would still apply. */
32267#ifdef __cplusplus
32268extern "C"
32269#endif
32270char dn_expand ();
32271int
32272main ()
32273{
32274return dn_expand ();
32275 ;
32276 return 0;
32277}
32278_ACEOF
32279for ac_lib in '' resolv; do
32280 if test -z "$ac_lib"; then
32281 ac_res="none required"
32282 else
32283 ac_res=-l$ac_lib
32284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32285 fi
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287if { (ac_try="$ac_link"
32288case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32291esac
32292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_link") 2>conftest.er1
32294 ac_status=$?
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } && {
32300 test -z "$ac_c_werror_flag" ||
32301 test ! -s conftest.err
32302 } && test -s conftest$ac_exeext &&
32303 $as_test_x conftest$ac_exeext; then
32304 ac_cv_search_dn_expand=$ac_res
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309
32310fi
32311
32312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32313 conftest$ac_exeext
32314 if test "${ac_cv_search_dn_expand+set}" = set; then
32315 break
32316fi
32317done
32318if test "${ac_cv_search_dn_expand+set}" = set; then
32319 :
32320else
32321 ac_cv_search_dn_expand=no
32322fi
32323rm conftest.$ac_ext
32324LIBS=$ac_func_search_save_LIBS
32325fi
32326{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
32327echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
32328ac_res=$ac_cv_search_dn_expand
32329if test "$ac_res" != no; then
32330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32331
32332fi
32333
32334
32335 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
32336echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
32337if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
32338 echo $ECHO_N "(cached) $ECHO_C" >&6
32339else
32340 ac_check_lib_save_LIBS=$LIBS
32341LIBS="-lgssapi_krb5 $LIBS"
32342cat >conftest.$ac_ext <<_ACEOF
32343/* confdefs.h. */
32344_ACEOF
32345cat confdefs.h >>conftest.$ac_ext
32346cat >>conftest.$ac_ext <<_ACEOF
32347/* end confdefs.h. */
32348
32349/* Override any GCC internal prototype to avoid an error.
32350 Use char because int might match the return type of a GCC
32351 builtin and then its argument prototype would still apply. */
32352#ifdef __cplusplus
32353extern "C"
32354#endif
32355char gss_init_sec_context ();
32356int
32357main ()
32358{
32359return gss_init_sec_context ();
32360 ;
32361 return 0;
32362}
32363_ACEOF
32364rm -f conftest.$ac_objext conftest$ac_exeext
32365if { (ac_try="$ac_link"
32366case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32369esac
32370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_link") 2>conftest.er1
32372 ac_status=$?
32373 grep -v '^ *+' conftest.er1 >conftest.err
32374 rm -f conftest.er1
32375 cat conftest.err >&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } && {
32378 test -z "$ac_c_werror_flag" ||
32379 test ! -s conftest.err
32380 } && test -s conftest$ac_exeext &&
32381 $as_test_x conftest$ac_exeext; then
32382 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
32383else
32384 echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
32388fi
32389
32390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32391 conftest$ac_exeext conftest.$ac_ext
32392LIBS=$ac_check_lib_save_LIBS
32393fi
32394{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
32395echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
32396if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
32397 cat >>confdefs.h <<\_ACEOF
32398#define GSSAPI 1
32399_ACEOF
32400
32401 GSSLIBS="-lgssapi_krb5"
32402else
32403 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
32404echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
32405if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32407else
32408 ac_check_lib_save_LIBS=$LIBS
32409LIBS="-lgssapi $LIBS"
32410cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
32416
32417/* Override any GCC internal prototype to avoid an error.
32418 Use char because int might match the return type of a GCC
32419 builtin and then its argument prototype would still apply. */
32420#ifdef __cplusplus
32421extern "C"
32422#endif
32423char gss_init_sec_context ();
32424int
32425main ()
32426{
32427return gss_init_sec_context ();
32428 ;
32429 return 0;
32430}
32431_ACEOF
32432rm -f conftest.$ac_objext conftest$ac_exeext
32433if { (ac_try="$ac_link"
32434case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32437esac
32438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439 (eval "$ac_link") 2>conftest.er1
32440 ac_status=$?
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } && {
32446 test -z "$ac_c_werror_flag" ||
32447 test ! -s conftest.err
32448 } && test -s conftest$ac_exeext &&
32449 $as_test_x conftest$ac_exeext; then
32450 ac_cv_lib_gssapi_gss_init_sec_context=yes
32451else
32452 echo "$as_me: failed program was:" >&5
32453sed 's/^/| /' conftest.$ac_ext >&5
32454
32455 ac_cv_lib_gssapi_gss_init_sec_context=no
32456fi
32457
32458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32459 conftest$ac_exeext conftest.$ac_ext
32460LIBS=$ac_check_lib_save_LIBS
32461fi
32462{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
32463echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
32464if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
32465 cat >>confdefs.h <<\_ACEOF
32466#define GSSAPI 1
32467_ACEOF
32468
32469 GSSLIBS="-lgssapi"
32470else
32471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
32472echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
32473if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32475else
32476 ac_check_lib_save_LIBS=$LIBS
32477LIBS="-lgss $LIBS"
32478cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h. */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h. */
32484
32485/* Override any GCC internal prototype to avoid an error.
32486 Use char because int might match the return type of a GCC
32487 builtin and then its argument prototype would still apply. */
32488#ifdef __cplusplus
32489extern "C"
32490#endif
32491char gss_init_sec_context ();
32492int
32493main ()
32494{
32495return gss_init_sec_context ();
32496 ;
32497 return 0;
32498}
32499_ACEOF
32500rm -f conftest.$ac_objext conftest$ac_exeext
32501if { (ac_try="$ac_link"
32502case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_link") 2>conftest.er1
32508 ac_status=$?
32509 grep -v '^ *+' conftest.er1 >conftest.err
32510 rm -f conftest.er1
32511 cat conftest.err >&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } && {
32514 test -z "$ac_c_werror_flag" ||
32515 test ! -s conftest.err
32516 } && test -s conftest$ac_exeext &&
32517 $as_test_x conftest$ac_exeext; then
32518 ac_cv_lib_gss_gss_init_sec_context=yes
32519else
32520 echo "$as_me: failed program was:" >&5
32521sed 's/^/| /' conftest.$ac_ext >&5
32522
32523 ac_cv_lib_gss_gss_init_sec_context=no
32524fi
32525
32526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32527 conftest$ac_exeext conftest.$ac_ext
32528LIBS=$ac_check_lib_save_LIBS
32529fi
32530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
32531echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
32532if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
32533 cat >>confdefs.h <<\_ACEOF
32534#define GSSAPI 1
32535_ACEOF
32536
32537 GSSLIBS="-lgss"
32538else
32539 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
32540echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
32541fi
32542
32543
32544fi
32545
32546
32547fi
32548
32549
32550 if test "${ac_cv_header_gssapi_h+set}" = set; then
32551 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
32552echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32553if test "${ac_cv_header_gssapi_h+set}" = set; then
32554 echo $ECHO_N "(cached) $ECHO_C" >&6
32555fi
32556{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32557echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32558else
32559 # Is the header compilable?
32560{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
32561echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
32562cat >conftest.$ac_ext <<_ACEOF
32563/* confdefs.h. */
32564_ACEOF
32565cat confdefs.h >>conftest.$ac_ext
32566cat >>conftest.$ac_ext <<_ACEOF
32567/* end confdefs.h. */
32568$ac_includes_default
32569#include <gssapi.h>
32570_ACEOF
32571rm -f conftest.$ac_objext
32572if { (ac_try="$ac_compile"
32573case "(($ac_try" in
32574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575 *) ac_try_echo=$ac_try;;
32576esac
32577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578 (eval "$ac_compile") 2>conftest.er1
32579 ac_status=$?
32580 grep -v '^ *+' conftest.er1 >conftest.err
32581 rm -f conftest.er1
32582 cat conftest.err >&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); } && {
32585 test -z "$ac_c_werror_flag" ||
32586 test ! -s conftest.err
32587 } && test -s conftest.$ac_objext; then
32588 ac_header_compiler=yes
32589else
32590 echo "$as_me: failed program was:" >&5
32591sed 's/^/| /' conftest.$ac_ext >&5
32592
32593 ac_header_compiler=no
32594fi
32595
32596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32597{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32598echo "${ECHO_T}$ac_header_compiler" >&6; }
32599
32600# Is the header present?
32601{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
32602echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
32603cat >conftest.$ac_ext <<_ACEOF
32604/* confdefs.h. */
32605_ACEOF
32606cat confdefs.h >>conftest.$ac_ext
32607cat >>conftest.$ac_ext <<_ACEOF
32608/* end confdefs.h. */
32609#include <gssapi.h>
32610_ACEOF
32611if { (ac_try="$ac_cpp conftest.$ac_ext"
32612case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32615esac
32616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32618 ac_status=$?
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } >/dev/null && {
32624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32625 test ! -s conftest.err
32626 }; then
32627 ac_header_preproc=yes
32628else
32629 echo "$as_me: failed program was:" >&5
32630sed 's/^/| /' conftest.$ac_ext >&5
32631
32632 ac_header_preproc=no
32633fi
32634
32635rm -f conftest.err conftest.$ac_ext
32636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32637echo "${ECHO_T}$ac_header_preproc" >&6; }
32638
32639# So? What about this header?
32640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32641 yes:no: )
32642 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
32643echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32644 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
32645echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
32646 ac_header_preproc=yes
32647 ;;
32648 no:yes:* )
32649 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
32650echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
32651 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
32652echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
32653 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
32654echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
32655 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
32656echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
32657 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
32658echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
32659 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
32660echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
32661 ( cat <<\_ASBOX
32662## ------------------------------------------- ##
32663## Report this to openssh-unix-dev@mindrot.org ##
32664## ------------------------------------------- ##
32665_ASBOX
32666 ) | sed "s/^/$as_me: WARNING: /" >&2
32667 ;;
32668esac
32669{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
32670echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32671if test "${ac_cv_header_gssapi_h+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
32674 ac_cv_header_gssapi_h=$ac_header_preproc
32675fi
32676{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32677echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32678
32679fi
32680if test $ac_cv_header_gssapi_h = yes; then
32681 :
32682else
32683 unset ac_cv_header_gssapi_h
32684 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32685
32686for ac_header in gssapi.h
32687do
32688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694fi
32695ac_res=`eval echo '${'$as_ac_Header'}'`
32696 { echo "$as_me:$LINENO: result: $ac_res" >&5
32697echo "${ECHO_T}$ac_res" >&6; }
32698else
32699 # Is the header compilable?
32700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32702cat >conftest.$ac_ext <<_ACEOF
32703/* confdefs.h. */
32704_ACEOF
32705cat confdefs.h >>conftest.$ac_ext
32706cat >>conftest.$ac_ext <<_ACEOF
32707/* end confdefs.h. */
32708$ac_includes_default
32709#include <$ac_header>
32710_ACEOF
32711rm -f conftest.$ac_objext
32712if { (ac_try="$ac_compile"
32713case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_compile") 2>conftest.er1
32719 ac_status=$?
32720 grep -v '^ *+' conftest.er1 >conftest.err
32721 rm -f conftest.er1
32722 cat conftest.err >&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } && {
32725 test -z "$ac_c_werror_flag" ||
32726 test ! -s conftest.err
32727 } && test -s conftest.$ac_objext; then
32728 ac_header_compiler=yes
32729else
32730 echo "$as_me: failed program was:" >&5
32731sed 's/^/| /' conftest.$ac_ext >&5
32732
32733 ac_header_compiler=no
32734fi
32735
32736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32738echo "${ECHO_T}$ac_header_compiler" >&6; }
32739
32740# Is the header present?
32741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32743cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749#include <$ac_header>
32750_ACEOF
32751if { (ac_try="$ac_cpp conftest.$ac_ext"
32752case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32755esac
32756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32758 ac_status=$?
32759 grep -v '^ *+' conftest.er1 >conftest.err
32760 rm -f conftest.er1
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } >/dev/null && {
32764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32765 test ! -s conftest.err
32766 }; then
32767 ac_header_preproc=yes
32768else
32769 echo "$as_me: failed program was:" >&5
32770sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 ac_header_preproc=no
32773fi
32774
32775rm -f conftest.err conftest.$ac_ext
32776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32777echo "${ECHO_T}$ac_header_preproc" >&6; }
32778
32779# So? What about this header?
32780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32781 yes:no: )
32782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32786 ac_header_preproc=yes
32787 ;;
32788 no:yes:* )
32789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32801 ( cat <<\_ASBOX
32802## ------------------------------------------- ##
32803## Report this to openssh-unix-dev@mindrot.org ##
32804## ------------------------------------------- ##
32805_ASBOX
32806 ) | sed "s/^/$as_me: WARNING: /" >&2
32807 ;;
32808esac
32809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32813else
32814 eval "$as_ac_Header=\$ac_header_preproc"
32815fi
32816ac_res=`eval echo '${'$as_ac_Header'}'`
32817 { echo "$as_me:$LINENO: result: $ac_res" >&5
32818echo "${ECHO_T}$ac_res" >&6; }
32819
32820fi
32821if test `eval echo '${'$as_ac_Header'}'` = yes; then
32822 cat >>confdefs.h <<_ACEOF
32823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32824_ACEOF
32825
32826else
32827 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
32828echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
32829
32830fi
32831
32832done
32833
32834
32835
32836fi
32837
32838
32839
32840 oldCPP="$CPPFLAGS"
32841 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32842 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32843 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32844echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32845if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847fi
32848{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32849echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
32850else
32851 # Is the header compilable?
32852{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
32853echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
32854cat >conftest.$ac_ext <<_ACEOF
32855/* confdefs.h. */
32856_ACEOF
32857cat confdefs.h >>conftest.$ac_ext
32858cat >>conftest.$ac_ext <<_ACEOF
32859/* end confdefs.h. */
32860$ac_includes_default
32861#include <gssapi_krb5.h>
32862_ACEOF
32863rm -f conftest.$ac_objext
32864if { (ac_try="$ac_compile"
32865case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32868esac
32869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
32871 ac_status=$?
32872 grep -v '^ *+' conftest.er1 >conftest.err
32873 rm -f conftest.er1
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } && {
32877 test -z "$ac_c_werror_flag" ||
32878 test ! -s conftest.err
32879 } && test -s conftest.$ac_objext; then
32880 ac_header_compiler=yes
32881else
32882 echo "$as_me: failed program was:" >&5
32883sed 's/^/| /' conftest.$ac_ext >&5
32884
32885 ac_header_compiler=no
32886fi
32887
32888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32890echo "${ECHO_T}$ac_header_compiler" >&6; }
32891
32892# Is the header present?
32893{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
32894echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
32895cat >conftest.$ac_ext <<_ACEOF
32896/* confdefs.h. */
32897_ACEOF
32898cat confdefs.h >>conftest.$ac_ext
32899cat >>conftest.$ac_ext <<_ACEOF
32900/* end confdefs.h. */
32901#include <gssapi_krb5.h>
32902_ACEOF
32903if { (ac_try="$ac_cpp conftest.$ac_ext"
32904case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32910 ac_status=$?
32911 grep -v '^ *+' conftest.er1 >conftest.err
32912 rm -f conftest.er1
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } >/dev/null && {
32916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32917 test ! -s conftest.err
32918 }; then
32919 ac_header_preproc=yes
32920else
32921 echo "$as_me: failed program was:" >&5
32922sed 's/^/| /' conftest.$ac_ext >&5
32923
32924 ac_header_preproc=no
32925fi
32926
32927rm -f conftest.err conftest.$ac_ext
32928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32929echo "${ECHO_T}$ac_header_preproc" >&6; }
32930
32931# So? What about this header?
32932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32933 yes:no: )
32934 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
32935echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32936 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
32937echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
32938 ac_header_preproc=yes
32939 ;;
32940 no:yes:* )
32941 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
32942echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
32943 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
32944echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
32945 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
32946echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
32947 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
32948echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
32949 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
32950echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
32951 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
32952echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
32953 ( cat <<\_ASBOX
32954## ------------------------------------------- ##
32955## Report this to openssh-unix-dev@mindrot.org ##
32956## ------------------------------------------- ##
32957_ASBOX
32958 ) | sed "s/^/$as_me: WARNING: /" >&2
32959 ;;
32960esac
32961{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32962echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32963if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32964 echo $ECHO_N "(cached) $ECHO_C" >&6
32965else
32966 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
32967fi
32968{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32969echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
32970
32971fi
32972if test $ac_cv_header_gssapi_krb5_h = yes; then
32973 :
32974else
32975 CPPFLAGS="$oldCPP"
32976fi
32977
32978
32979
32980 fi
32981 if test ! -z "$need_dash_r" ; then
32982 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
32983 fi
32984 if test ! -z "$blibpath" ; then
32985 blibpath="$blibpath:${KRB5ROOT}/lib"
32986 fi
32987
32988
32989
32990for ac_header in gssapi.h gssapi/gssapi.h
32991do
32992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
32998fi
32999ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001echo "${ECHO_T}$ac_res" >&6; }
33002else
33003 # Is the header compilable?
33004{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33006cat >conftest.$ac_ext <<_ACEOF
33007/* confdefs.h. */
33008_ACEOF
33009cat confdefs.h >>conftest.$ac_ext
33010cat >>conftest.$ac_ext <<_ACEOF
33011/* end confdefs.h. */
33012$ac_includes_default
33013#include <$ac_header>
33014_ACEOF
33015rm -f conftest.$ac_objext
33016if { (ac_try="$ac_compile"
33017case "(($ac_try" in
33018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33019 *) ac_try_echo=$ac_try;;
33020esac
33021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022 (eval "$ac_compile") 2>conftest.er1
33023 ac_status=$?
33024 grep -v '^ *+' conftest.er1 >conftest.err
33025 rm -f conftest.er1
33026 cat conftest.err >&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } && {
33029 test -z "$ac_c_werror_flag" ||
33030 test ! -s conftest.err
33031 } && test -s conftest.$ac_objext; then
33032 ac_header_compiler=yes
33033else
33034 echo "$as_me: failed program was:" >&5
33035sed 's/^/| /' conftest.$ac_ext >&5
33036
33037 ac_header_compiler=no
33038fi
33039
33040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33042echo "${ECHO_T}$ac_header_compiler" >&6; }
33043
33044# Is the header present?
33045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33047cat >conftest.$ac_ext <<_ACEOF
33048/* confdefs.h. */
33049_ACEOF
33050cat confdefs.h >>conftest.$ac_ext
33051cat >>conftest.$ac_ext <<_ACEOF
33052/* end confdefs.h. */
33053#include <$ac_header>
33054_ACEOF
33055if { (ac_try="$ac_cpp conftest.$ac_ext"
33056case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33059esac
33060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33062 ac_status=$?
33063 grep -v '^ *+' conftest.er1 >conftest.err
33064 rm -f conftest.er1
33065 cat conftest.err >&5
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); } >/dev/null && {
33068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33069 test ! -s conftest.err
33070 }; then
33071 ac_header_preproc=yes
33072else
33073 echo "$as_me: failed program was:" >&5
33074sed 's/^/| /' conftest.$ac_ext >&5
33075
33076 ac_header_preproc=no
33077fi
33078
33079rm -f conftest.err conftest.$ac_ext
33080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33081echo "${ECHO_T}$ac_header_preproc" >&6; }
33082
33083# So? What about this header?
33084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33085 yes:no: )
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33090 ac_header_preproc=yes
33091 ;;
33092 no:yes:* )
33093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33105 ( cat <<\_ASBOX
33106## ------------------------------------------- ##
33107## Report this to openssh-unix-dev@mindrot.org ##
33108## ------------------------------------------- ##
33109_ASBOX
33110 ) | sed "s/^/$as_me: WARNING: /" >&2
33111 ;;
33112esac
33113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33117else
33118 eval "$as_ac_Header=\$ac_header_preproc"
33119fi
33120ac_res=`eval echo '${'$as_ac_Header'}'`
33121 { echo "$as_me:$LINENO: result: $ac_res" >&5
33122echo "${ECHO_T}$ac_res" >&6; }
33123
33124fi
33125if test `eval echo '${'$as_ac_Header'}'` = yes; then
33126 cat >>confdefs.h <<_ACEOF
33127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33128_ACEOF
33129
33130fi
33131
33132done
33133
33134
33135
33136for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
33137do
33138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144fi
33145ac_res=`eval echo '${'$as_ac_Header'}'`
33146 { echo "$as_me:$LINENO: result: $ac_res" >&5
33147echo "${ECHO_T}$ac_res" >&6; }
33148else
33149 # Is the header compilable?
33150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33152cat >conftest.$ac_ext <<_ACEOF
33153/* confdefs.h. */
33154_ACEOF
33155cat confdefs.h >>conftest.$ac_ext
33156cat >>conftest.$ac_ext <<_ACEOF
33157/* end confdefs.h. */
33158$ac_includes_default
33159#include <$ac_header>
33160_ACEOF
33161rm -f conftest.$ac_objext
33162if { (ac_try="$ac_compile"
33163case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33166esac
33167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_compile") 2>conftest.er1
33169 ac_status=$?
33170 grep -v '^ *+' conftest.er1 >conftest.err
33171 rm -f conftest.er1
33172 cat conftest.err >&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } && {
33175 test -z "$ac_c_werror_flag" ||
33176 test ! -s conftest.err
33177 } && test -s conftest.$ac_objext; then
33178 ac_header_compiler=yes
33179else
33180 echo "$as_me: failed program was:" >&5
33181sed 's/^/| /' conftest.$ac_ext >&5
33182
33183 ac_header_compiler=no
33184fi
33185
33186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33188echo "${ECHO_T}$ac_header_compiler" >&6; }
33189
33190# Is the header present?
33191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33193cat >conftest.$ac_ext <<_ACEOF
33194/* confdefs.h. */
33195_ACEOF
33196cat confdefs.h >>conftest.$ac_ext
33197cat >>conftest.$ac_ext <<_ACEOF
33198/* end confdefs.h. */
33199#include <$ac_header>
33200_ACEOF
33201if { (ac_try="$ac_cpp conftest.$ac_ext"
33202case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33205esac
33206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33208 ac_status=$?
33209 grep -v '^ *+' conftest.er1 >conftest.err
33210 rm -f conftest.er1
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } >/dev/null && {
33214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33215 test ! -s conftest.err
33216 }; then
33217 ac_header_preproc=yes
33218else
33219 echo "$as_me: failed program was:" >&5
33220sed 's/^/| /' conftest.$ac_ext >&5
33221
33222 ac_header_preproc=no
33223fi
33224
33225rm -f conftest.err conftest.$ac_ext
33226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33227echo "${ECHO_T}$ac_header_preproc" >&6; }
33228
33229# So? What about this header?
33230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33231 yes:no: )
33232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33236 ac_header_preproc=yes
33237 ;;
33238 no:yes:* )
33239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33251 ( cat <<\_ASBOX
33252## ------------------------------------------- ##
33253## Report this to openssh-unix-dev@mindrot.org ##
33254## ------------------------------------------- ##
33255_ASBOX
33256 ) | sed "s/^/$as_me: WARNING: /" >&2
33257 ;;
33258esac
33259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264 eval "$as_ac_Header=\$ac_header_preproc"
33265fi
33266ac_res=`eval echo '${'$as_ac_Header'}'`
33267 { echo "$as_me:$LINENO: result: $ac_res" >&5
33268echo "${ECHO_T}$ac_res" >&6; }
33269
33270fi
33271if test `eval echo '${'$as_ac_Header'}'` = yes; then
33272 cat >>confdefs.h <<_ACEOF
33273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33274_ACEOF
33275
33276fi
33277
33278done
33279
33280
33281
33282for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
33283do
33284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33289 echo $ECHO_N "(cached) $ECHO_C" >&6
33290fi
33291ac_res=`eval echo '${'$as_ac_Header'}'`
33292 { echo "$as_me:$LINENO: result: $ac_res" >&5
33293echo "${ECHO_T}$ac_res" >&6; }
33294else
33295 # Is the header compilable?
33296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33298cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h. */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h. */
33304$ac_includes_default
33305#include <$ac_header>
33306_ACEOF
33307rm -f conftest.$ac_objext
33308if { (ac_try="$ac_compile"
33309case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33312esac
33313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_compile") 2>conftest.er1
33315 ac_status=$?
33316 grep -v '^ *+' conftest.er1 >conftest.err
33317 rm -f conftest.er1
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } && {
33321 test -z "$ac_c_werror_flag" ||
33322 test ! -s conftest.err
33323 } && test -s conftest.$ac_objext; then
33324 ac_header_compiler=yes
33325else
33326 echo "$as_me: failed program was:" >&5
33327sed 's/^/| /' conftest.$ac_ext >&5
33328
33329 ac_header_compiler=no
33330fi
33331
33332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33334echo "${ECHO_T}$ac_header_compiler" >&6; }
33335
33336# Is the header present?
33337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33339cat >conftest.$ac_ext <<_ACEOF
33340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
33345#include <$ac_header>
33346_ACEOF
33347if { (ac_try="$ac_cpp conftest.$ac_ext"
33348case "(($ac_try" in
33349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33350 *) ac_try_echo=$ac_try;;
33351esac
33352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33354 ac_status=$?
33355 grep -v '^ *+' conftest.er1 >conftest.err
33356 rm -f conftest.er1
33357 cat conftest.err >&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); } >/dev/null && {
33360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33361 test ! -s conftest.err
33362 }; then
33363 ac_header_preproc=yes
33364else
33365 echo "$as_me: failed program was:" >&5
33366sed 's/^/| /' conftest.$ac_ext >&5
33367
33368 ac_header_preproc=no
33369fi
33370
33371rm -f conftest.err conftest.$ac_ext
33372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33373echo "${ECHO_T}$ac_header_preproc" >&6; }
33374
33375# So? What about this header?
33376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33377 yes:no: )
33378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33382 ac_header_preproc=yes
33383 ;;
33384 no:yes:* )
33385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33397 ( cat <<\_ASBOX
33398## ------------------------------------------- ##
33399## Report this to openssh-unix-dev@mindrot.org ##
33400## ------------------------------------------- ##
33401_ASBOX
33402 ) | sed "s/^/$as_me: WARNING: /" >&2
33403 ;;
33404esac
33405{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33408 echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410 eval "$as_ac_Header=\$ac_header_preproc"
33411fi
33412ac_res=`eval echo '${'$as_ac_Header'}'`
33413 { echo "$as_me:$LINENO: result: $ac_res" >&5
33414echo "${ECHO_T}$ac_res" >&6; }
33415
33416fi
33417if test `eval echo '${'$as_ac_Header'}'` = yes; then
33418 cat >>confdefs.h <<_ACEOF
33419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33420_ACEOF
33421
33422fi
33423
33424done
33425
33426
33427 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
33428echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
33429if test "${ac_cv_search_k_hasafs+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432 ac_func_search_save_LIBS=$LIBS
33433cat >conftest.$ac_ext <<_ACEOF
33434/* confdefs.h. */
33435_ACEOF
33436cat confdefs.h >>conftest.$ac_ext
33437cat >>conftest.$ac_ext <<_ACEOF
33438/* end confdefs.h. */
33439
33440/* Override any GCC internal prototype to avoid an error.
33441 Use char because int might match the return type of a GCC
33442 builtin and then its argument prototype would still apply. */
33443#ifdef __cplusplus
33444extern "C"
33445#endif
33446char k_hasafs ();
33447int
33448main ()
33449{
33450return k_hasafs ();
33451 ;
33452 return 0;
33453}
33454_ACEOF
33455for ac_lib in '' kafs; do
33456 if test -z "$ac_lib"; then
33457 ac_res="none required"
33458 else
33459 ac_res=-l$ac_lib
33460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33461 fi
33462 rm -f conftest.$ac_objext conftest$ac_exeext
33463if { (ac_try="$ac_link"
33464case "(($ac_try" in
33465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33466 *) ac_try_echo=$ac_try;;
33467esac
33468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33469 (eval "$ac_link") 2>conftest.er1
33470 ac_status=$?
33471 grep -v '^ *+' conftest.er1 >conftest.err
33472 rm -f conftest.er1
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } && {
33476 test -z "$ac_c_werror_flag" ||
33477 test ! -s conftest.err
33478 } && test -s conftest$ac_exeext &&
33479 $as_test_x conftest$ac_exeext; then
33480 ac_cv_search_k_hasafs=$ac_res
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485
33486fi
33487
33488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33489 conftest$ac_exeext
33490 if test "${ac_cv_search_k_hasafs+set}" = set; then
33491 break
33492fi
33493done
33494if test "${ac_cv_search_k_hasafs+set}" = set; then
33495 :
33496else
33497 ac_cv_search_k_hasafs=no
33498fi
33499rm conftest.$ac_ext
33500LIBS=$ac_func_search_save_LIBS
33501fi
33502{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
33503echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
33504ac_res=$ac_cv_search_k_hasafs
33505if test "$ac_res" != no; then
33506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33507
33508cat >>confdefs.h <<\_ACEOF
33509#define USE_AFS 1
33510_ACEOF
33511
33512fi
33513
33514
33515 { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
33516echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
33517if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
33520 cat >conftest.$ac_ext <<_ACEOF
33521/* confdefs.h. */
33522_ACEOF
33523cat confdefs.h >>conftest.$ac_ext
33524cat >>conftest.$ac_ext <<_ACEOF
33525/* end confdefs.h. */
33526
33527#ifdef HAVE_GSSAPI_H
33528# include <gssapi.h>
33529#elif defined(HAVE_GSSAPI_GSSAPI_H)
33530# include <gssapi/gssapi.h>
33531#endif
33532
33533#ifdef HAVE_GSSAPI_GENERIC_H
33534# include <gssapi_generic.h>
33535#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
33536# include <gssapi/gssapi_generic.h>
33537#endif
33538
33539
33540int
33541main ()
33542{
33543#ifndef GSS_C_NT_HOSTBASED_SERVICE
33544 (void) GSS_C_NT_HOSTBASED_SERVICE;
33545#endif
33546
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } && {
33565 test -z "$ac_c_werror_flag" ||
33566 test ! -s conftest.err
33567 } && test -s conftest.$ac_objext; then
33568 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
33569else
33570 echo "$as_me: failed program was:" >&5
33571sed 's/^/| /' conftest.$ac_ext >&5
33572
33573 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
33574fi
33575
33576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33577fi
33578{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
33579echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
33580if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
33581
33582cat >>confdefs.h <<_ACEOF
33583#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
33584_ACEOF
33585
33586
33587else
33588 cat >>confdefs.h <<_ACEOF
33589#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
33590_ACEOF
33591
33592
33593fi
33594
33595
33596 saved_LIBS="$LIBS"
33597 LIBS="$LIBS $K5LIBS"
33598
33599
33600
33601for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
33602do
33603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33607 echo $ECHO_N "(cached) $ECHO_C" >&6
33608else
33609 cat >conftest.$ac_ext <<_ACEOF
33610/* confdefs.h. */
33611_ACEOF
33612cat confdefs.h >>conftest.$ac_ext
33613cat >>conftest.$ac_ext <<_ACEOF
33614/* end confdefs.h. */
33615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33617#define $ac_func innocuous_$ac_func
33618
33619/* System header to define __stub macros and hopefully few prototypes,
33620 which can conflict with char $ac_func (); below.
33621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33622 <limits.h> exists even on freestanding compilers. */
33623
33624#ifdef __STDC__
33625# include <limits.h>
33626#else
33627# include <assert.h>
33628#endif
33629
33630#undef $ac_func
33631
33632/* Override any GCC internal prototype to avoid an error.
33633 Use char because int might match the return type of a GCC
33634 builtin and then its argument prototype would still apply. */
33635#ifdef __cplusplus
33636extern "C"
33637#endif
33638char $ac_func ();
33639/* The GNU C library defines this for functions which it implements
33640 to always fail with ENOSYS. Some functions are actually named
33641 something starting with __ and the normal name is an alias. */
33642#if defined __stub_$ac_func || defined __stub___$ac_func
33643choke me
33644#endif
33645
33646int
33647main ()
33648{
33649return $ac_func ();
33650 ;
33651 return 0;
33652}
33653_ACEOF
33654rm -f conftest.$ac_objext conftest$ac_exeext
33655if { (ac_try="$ac_link"
33656case "(($ac_try" in
33657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33658 *) ac_try_echo=$ac_try;;
33659esac
33660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33661 (eval "$ac_link") 2>conftest.er1
33662 ac_status=$?
33663 grep -v '^ *+' conftest.er1 >conftest.err
33664 rm -f conftest.er1
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } && {
33668 test -z "$ac_c_werror_flag" ||
33669 test ! -s conftest.err
33670 } && test -s conftest$ac_exeext &&
33671 $as_test_x conftest$ac_exeext; then
33672 eval "$as_ac_var=yes"
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677 eval "$as_ac_var=no"
33678fi
33679
33680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33681 conftest$ac_exeext conftest.$ac_ext
33682fi
33683ac_res=`eval echo '${'$as_ac_var'}'`
33684 { echo "$as_me:$LINENO: result: $ac_res" >&5
33685echo "${ECHO_T}$ac_res" >&6; }
33686if test `eval echo '${'$as_ac_var'}'` = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33689_ACEOF
33690
33691fi
33692done
33693
33694 LIBS="$saved_LIBS"
33695
33696 fi
33697
33698
33699fi
33700
33701
33702
33703
33704# Looking for programs, paths and files
33705
33706PRIVSEP_PATH=/var/empty
33707
33708# Check whether --with-privsep-path was given.
33709if test "${with_privsep_path+set}" = set; then
33710 withval=$with_privsep_path;
33711 if test -n "$withval" && test "x$withval" != "xno" && \
33712 test "x${withval}" != "xyes"; then
33713 PRIVSEP_PATH=$withval
33714 fi
33715
33716
33717fi
33718
33719
33720
33721
33722# Check whether --with-xauth was given.
33723if test "${with_xauth+set}" = set; then
33724 withval=$with_xauth;
33725 if test -n "$withval" && test "x$withval" != "xno" && \
33726 test "x${withval}" != "xyes"; then
33727 xauth_path=$withval
33728 fi
33729
33730else
33731
33732 TestPath="$PATH"
33733 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
33734 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
33735 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
33736 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
33737 # Extract the first word of "xauth", so it can be a program name with args.
33738set dummy xauth; ac_word=$2
33739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33741if test "${ac_cv_path_xauth_path+set}" = set; then
33742 echo $ECHO_N "(cached) $ECHO_C" >&6
33743else
33744 case $xauth_path in
33745 [\\/]* | ?:[\\/]*)
33746 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
33747 ;;
33748 *)
33749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33750for as_dir in $TestPath
33751do
33752 IFS=$as_save_IFS
33753 test -z "$as_dir" && as_dir=.
33754 for ac_exec_ext in '' $ac_executable_extensions; do
33755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33756 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
33757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33758 break 2
33759 fi
33760done
33761done
33762IFS=$as_save_IFS
33763
33764 ;;
33765esac
33766fi
33767xauth_path=$ac_cv_path_xauth_path
33768if test -n "$xauth_path"; then
33769 { echo "$as_me:$LINENO: result: $xauth_path" >&5
33770echo "${ECHO_T}$xauth_path" >&6; }
33771else
33772 { echo "$as_me:$LINENO: result: no" >&5
33773echo "${ECHO_T}no" >&6; }
33774fi
33775
33776
33777 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
33778 xauth_path="/usr/openwin/bin/xauth"
33779 fi
33780
33781
33782fi
33783
33784
33785STRIP_OPT=-s
33786# Check whether --enable-strip was given.
33787if test "${enable_strip+set}" = set; then
33788 enableval=$enable_strip;
33789 if test "x$enableval" = "xno" ; then
33790 STRIP_OPT=
33791 fi
33792
33793
33794fi
33795
33796
33797
33798if test -z "$xauth_path" ; then
33799 XAUTH_PATH="undefined"
33800
33801else
33802
33803cat >>confdefs.h <<_ACEOF
33804#define XAUTH_PATH "$xauth_path"
33805_ACEOF
33806
33807 XAUTH_PATH=$xauth_path
33808
33809fi
33810
33811# Check for mail directory
33812
33813# Check whether --with-maildir was given.
33814if test "${with_maildir+set}" = set; then
33815 withval=$with_maildir;
33816 if test "X$withval" != X && test "x$withval" != xno && \
33817 test "x${withval}" != xyes; then
33818
33819cat >>confdefs.h <<_ACEOF
33820#define MAIL_DIRECTORY "$withval"
33821_ACEOF
33822
33823 fi
33824
33825else
33826
33827 if test "X$maildir" != "X"; then
33828 cat >>confdefs.h <<_ACEOF
33829#define MAIL_DIRECTORY "$maildir"
33830_ACEOF
33831
33832 else
33833 { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
33834echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
33835 if test "$cross_compiling" = yes; then
33836
33837 { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
33838echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
33839
33840
33841else
33842 cat >conftest.$ac_ext <<_ACEOF
33843/* confdefs.h. */
33844_ACEOF
33845cat confdefs.h >>conftest.$ac_ext
33846cat >>conftest.$ac_ext <<_ACEOF
33847/* end confdefs.h. */
33848
33849#include <stdio.h>
33850#include <string.h>
33851#ifdef HAVE_PATHS_H
33852#include <paths.h>
33853#endif
33854#ifdef HAVE_MAILLOCK_H
33855#include <maillock.h>
33856#endif
33857#define DATA "conftest.maildir"
33858
33859int
33860main ()
33861{
33862
33863 FILE *fd;
33864 int rc;
33865
33866 fd = fopen(DATA,"w");
33867 if(fd == NULL)
33868 exit(1);
33869
33870#if defined (_PATH_MAILDIR)
33871 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
33872 exit(1);
33873#elif defined (MAILDIR)
33874 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
33875 exit(1);
33876#elif defined (_PATH_MAIL)
33877 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
33878 exit(1);
33879#else
33880 exit (2);
33881#endif
33882
33883 exit(0);
33884
33885 ;
33886 return 0;
33887}
33888_ACEOF
33889rm -f conftest$ac_exeext
33890if { (ac_try="$ac_link"
33891case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33894esac
33895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_link") 2>&5
33897 ac_status=$?
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33900 { (case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33903esac
33904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_try") 2>&5
33906 ac_status=$?
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); }; }; then
33909
33910 maildir_what=`awk -F: '{print $1}' conftest.maildir`
33911 maildir=`awk -F: '{print $2}' conftest.maildir \
33912 | sed 's|/$||'`
33913 { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
33914echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
33915 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
33916 cat >>confdefs.h <<_ACEOF
33917#define MAIL_DIRECTORY "$maildir"
33918_ACEOF
33919
33920 fi
33921
33922else
33923 echo "$as_me: program exited with status $ac_status" >&5
33924echo "$as_me: failed program was:" >&5
33925sed 's/^/| /' conftest.$ac_ext >&5
33926
33927( exit $ac_status )
33928
33929 if test "X$ac_status" = "X2";then
33930# our test program didn't find it. Default to /var/spool/mail
33931 { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
33932echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
33933 cat >>confdefs.h <<_ACEOF
33934#define MAIL_DIRECTORY "/var/spool/mail"
33935_ACEOF
33936
33937 else
33938 { echo "$as_me:$LINENO: result: *** not found ***" >&5
33939echo "${ECHO_T}*** not found ***" >&6; }
33940 fi
33941
33942fi
33943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33944fi
33945
33946
33947 fi
33948
33949
33950fi
33951 # maildir
33952
33953if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
33954 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
33955echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
33956 disable_ptmx_check=yes
33957fi
33958if test -z "$no_dev_ptmx" ; then
33959 if test "x$disable_ptmx_check" != "xyes" ; then
33960 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
33961echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
33962if test "${ac_cv_file___dev_ptmx_+set}" = set; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33964else
33965 test "$cross_compiling" = yes &&
33966 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
33967echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
33968 { (exit 1); exit 1; }; }
33969if test -r ""/dev/ptmx""; then
33970 ac_cv_file___dev_ptmx_=yes
33971else
33972 ac_cv_file___dev_ptmx_=no
33973fi
33974fi
33975{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
33976echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
33977if test $ac_cv_file___dev_ptmx_ = yes; then
33978
33979
33980cat >>confdefs.h <<_ACEOF
33981#define HAVE_DEV_PTMX 1
33982_ACEOF
33983
33984 have_dev_ptmx=1
33985
33986
33987fi
33988
33989 fi
33990fi
33991
33992if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
33993 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
33994echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
33995if test "${ac_cv_file___dev_ptc_+set}" = set; then
33996 echo $ECHO_N "(cached) $ECHO_C" >&6
33997else
33998 test "$cross_compiling" = yes &&
33999 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34000echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34001 { (exit 1); exit 1; }; }
34002if test -r ""/dev/ptc""; then
34003 ac_cv_file___dev_ptc_=yes
34004else
34005 ac_cv_file___dev_ptc_=no
34006fi
34007fi
34008{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
34009echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
34010if test $ac_cv_file___dev_ptc_ = yes; then
34011
34012
34013cat >>confdefs.h <<_ACEOF
34014#define HAVE_DEV_PTS_AND_PTC 1
34015_ACEOF
34016
34017 have_dev_ptc=1
34018
34019
34020fi
34021
34022else
34023 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
34024echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
34025fi
34026
34027# Options from here on. Some of these are preset by platform above
34028
34029# Check whether --with-mantype was given.
34030if test "${with_mantype+set}" = set; then
34031 withval=$with_mantype;
34032 case "$withval" in
34033 man|cat|doc)
34034 MANTYPE=$withval
34035 ;;
34036 *)
34037 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
34038echo "$as_me: error: invalid man type: $withval" >&2;}
34039 { (exit 1); exit 1; }; }
34040 ;;
34041 esac
34042
34043
34044fi
34045
34046if test -z "$MANTYPE"; then
34047 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
34048 for ac_prog in nroff awf
34049do
34050 # Extract the first word of "$ac_prog", so it can be a program name with args.
34051set dummy $ac_prog; ac_word=$2
34052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34054if test "${ac_cv_path_NROFF+set}" = set; then
34055 echo $ECHO_N "(cached) $ECHO_C" >&6
34056else
34057 case $NROFF in
34058 [\\/]* | ?:[\\/]*)
34059 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34060 ;;
34061 *)
34062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34063for as_dir in $TestPath
34064do
34065 IFS=$as_save_IFS
34066 test -z "$as_dir" && as_dir=.
34067 for ac_exec_ext in '' $ac_executable_extensions; do
34068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34069 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34071 break 2
34072 fi
34073done
34074done
34075IFS=$as_save_IFS
34076
34077 ;;
34078esac
34079fi
34080NROFF=$ac_cv_path_NROFF
34081if test -n "$NROFF"; then
34082 { echo "$as_me:$LINENO: result: $NROFF" >&5
34083echo "${ECHO_T}$NROFF" >&6; }
34084else
34085 { echo "$as_me:$LINENO: result: no" >&5
34086echo "${ECHO_T}no" >&6; }
34087fi
34088
34089
34090 test -n "$NROFF" && break
34091done
34092test -n "$NROFF" || NROFF="/bin/false"
34093
34094 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
34095 MANTYPE=doc
34096 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
34097 MANTYPE=man
34098 else
34099 MANTYPE=cat
34100 fi
34101fi
34102
34103if test "$MANTYPE" = "doc"; then
34104 mansubdir=man;
34105else
34106 mansubdir=$MANTYPE;
34107fi
34108
34109
34110# Check whether to enable MD5 passwords
34111MD5_MSG="no"
34112
34113# Check whether --with-md5-passwords was given.
34114if test "${with_md5_passwords+set}" = set; then
34115 withval=$with_md5_passwords;
34116 if test "x$withval" != "xno" ; then
34117
34118cat >>confdefs.h <<\_ACEOF
34119#define HAVE_MD5_PASSWORDS 1
34120_ACEOF
34121
34122 MD5_MSG="yes"
34123 fi
34124
34125
34126fi
34127
34128
34129# Whether to disable shadow password support
34130
34131# Check whether --with-shadow was given.
34132if test "${with_shadow+set}" = set; then
34133 withval=$with_shadow;
34134 if test "x$withval" = "xno" ; then
34135 cat >>confdefs.h <<\_ACEOF
34136#define DISABLE_SHADOW 1
34137_ACEOF
34138
34139 disable_shadow=yes
34140 fi
34141
34142
34143fi
34144
34145
34146if test -z "$disable_shadow" ; then
34147 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
34148echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
34149 cat >conftest.$ac_ext <<_ACEOF
34150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
34155
34156#include <sys/types.h>
34157#include <shadow.h>
34158struct spwd sp;
34159
34160int
34161main ()
34162{
34163 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
34164 ;
34165 return 0;
34166}
34167_ACEOF
34168rm -f conftest.$ac_objext
34169if { (ac_try="$ac_compile"
34170case "(($ac_try" in
34171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34172 *) ac_try_echo=$ac_try;;
34173esac
34174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34175 (eval "$ac_compile") 2>conftest.er1
34176 ac_status=$?
34177 grep -v '^ *+' conftest.er1 >conftest.err
34178 rm -f conftest.er1
34179 cat conftest.err >&5
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); } && {
34182 test -z "$ac_c_werror_flag" ||
34183 test ! -s conftest.err
34184 } && test -s conftest.$ac_objext; then
34185 sp_expire_available=yes
34186else
34187 echo "$as_me: failed program was:" >&5
34188sed 's/^/| /' conftest.$ac_ext >&5
34189
34190
34191
34192fi
34193
34194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34195
34196 if test "x$sp_expire_available" = "xyes" ; then
34197 { echo "$as_me:$LINENO: result: yes" >&5
34198echo "${ECHO_T}yes" >&6; }
34199
34200cat >>confdefs.h <<\_ACEOF
34201#define HAS_SHADOW_EXPIRE 1
34202_ACEOF
34203
34204 else
34205 { echo "$as_me:$LINENO: result: no" >&5
34206echo "${ECHO_T}no" >&6; }
34207 fi
34208fi
34209
34210# Use ip address instead of hostname in $DISPLAY
34211if test ! -z "$IPADDR_IN_DISPLAY" ; then
34212 DISPLAY_HACK_MSG="yes"
34213
34214cat >>confdefs.h <<\_ACEOF
34215#define IPADDR_IN_DISPLAY 1
34216_ACEOF
34217
34218else
34219 DISPLAY_HACK_MSG="no"
34220
34221# Check whether --with-ipaddr-display was given.
34222if test "${with_ipaddr_display+set}" = set; then
34223 withval=$with_ipaddr_display;
34224 if test "x$withval" != "xno" ; then
34225 cat >>confdefs.h <<\_ACEOF
34226#define IPADDR_IN_DISPLAY 1
34227_ACEOF
34228
34229 DISPLAY_HACK_MSG="yes"
34230 fi
34231
34232
34233fi
34234
34235fi
34236
34237# check for /etc/default/login and use it if present.
34238# Check whether --enable-etc-default-login was given.
34239if test "${enable_etc_default_login+set}" = set; then
34240 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
34241 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
34242echo "$as_me: /etc/default/login handling disabled" >&6;}
34243 etc_default_login=no
34244 else
34245 etc_default_login=yes
34246 fi
34247else
34248 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
34249 then
34250 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
34251echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
34252 etc_default_login=no
34253 else
34254 etc_default_login=yes
34255 fi
34256
34257fi
34258
34259
34260if test "x$etc_default_login" != "xno"; then
34261 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
34262echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
34263if test "${ac_cv_file___etc_default_login_+set}" = set; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 test "$cross_compiling" = yes &&
34267 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34268echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34269 { (exit 1); exit 1; }; }
34270if test -r ""/etc/default/login""; then
34271 ac_cv_file___etc_default_login_=yes
34272else
34273 ac_cv_file___etc_default_login_=no
34274fi
34275fi
34276{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
34277echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
34278if test $ac_cv_file___etc_default_login_ = yes; then
34279 external_path_file=/etc/default/login
34280fi
34281
34282 if test "x$external_path_file" = "x/etc/default/login"; then
34283
34284cat >>confdefs.h <<\_ACEOF
34285#define HAVE_ETC_DEFAULT_LOGIN 1
34286_ACEOF
34287
34288 fi
34289fi
34290
34291if test $ac_cv_func_login_getcapbool = "yes" && \
34292 test $ac_cv_header_login_cap_h = "yes" ; then
34293 external_path_file=/etc/login.conf
34294fi
34295
34296# Whether to mess with the default path
34297SERVER_PATH_MSG="(default)"
34298
34299# Check whether --with-default-path was given.
34300if test "${with_default_path+set}" = set; then
34301 withval=$with_default_path;
34302 if test "x$external_path_file" = "x/etc/login.conf" ; then
34303 { echo "$as_me:$LINENO: WARNING:
34304--with-default-path=PATH has no effect on this system.
34305Edit /etc/login.conf instead." >&5
34306echo "$as_me: WARNING:
34307--with-default-path=PATH has no effect on this system.
34308Edit /etc/login.conf instead." >&2;}
34309 elif test "x$withval" != "xno" ; then
34310 if test ! -z "$external_path_file" ; then
34311 { echo "$as_me:$LINENO: WARNING:
34312--with-default-path=PATH will only be used if PATH is not defined in
34313$external_path_file ." >&5
34314echo "$as_me: WARNING:
34315--with-default-path=PATH will only be used if PATH is not defined in
34316$external_path_file ." >&2;}
34317 fi
34318 user_path="$withval"
34319 SERVER_PATH_MSG="$withval"
34320 fi
34321
34322else
34323 if test "x$external_path_file" = "x/etc/login.conf" ; then
34324 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
34325echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
34326 else
34327 if test ! -z "$external_path_file" ; then
34328 { echo "$as_me:$LINENO: WARNING:
34329If PATH is defined in $external_path_file, ensure the path to scp is included,
34330otherwise scp will not work." >&5
34331echo "$as_me: WARNING:
34332If PATH is defined in $external_path_file, ensure the path to scp is included,
34333otherwise scp will not work." >&2;}
34334 fi
34335 if test "$cross_compiling" = yes; then
34336 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34337
34338else
34339 cat >conftest.$ac_ext <<_ACEOF
34340/* confdefs.h. */
34341_ACEOF
34342cat confdefs.h >>conftest.$ac_ext
34343cat >>conftest.$ac_ext <<_ACEOF
34344/* end confdefs.h. */
34345
34346/* find out what STDPATH is */
34347#include <stdio.h>
34348#ifdef HAVE_PATHS_H
34349# include <paths.h>
34350#endif
34351#ifndef _PATH_STDPATH
34352# ifdef _PATH_USERPATH /* Irix */
34353# define _PATH_STDPATH _PATH_USERPATH
34354# else
34355# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
34356# endif
34357#endif
34358#include <sys/types.h>
34359#include <sys/stat.h>
34360#include <fcntl.h>
34361#define DATA "conftest.stdpath"
34362
34363int
34364main ()
34365{
34366
34367 FILE *fd;
34368 int rc;
34369
34370 fd = fopen(DATA,"w");
34371 if(fd == NULL)
34372 exit(1);
34373
34374 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
34375 exit(1);
34376
34377 exit(0);
34378
34379 ;
34380 return 0;
34381}
34382_ACEOF
34383rm -f conftest$ac_exeext
34384if { (ac_try="$ac_link"
34385case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388esac
34389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_link") 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34394 { (case "(($ac_try" in
34395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396 *) ac_try_echo=$ac_try;;
34397esac
34398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_try") 2>&5
34400 ac_status=$?
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; }; then
34403 user_path=`cat conftest.stdpath`
34404else
34405 echo "$as_me: program exited with status $ac_status" >&5
34406echo "$as_me: failed program was:" >&5
34407sed 's/^/| /' conftest.$ac_ext >&5
34408
34409( exit $ac_status )
34410 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34411fi
34412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34413fi
34414
34415
34416# make sure $bindir is in USER_PATH so scp will work
34417 t_bindir="${bindir}"
34418 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
34419 t_bindir=`eval echo ${t_bindir}`
34420 case $t_bindir in
34421 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
34422 esac
34423 case $t_bindir in
34424 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
34425 esac
34426 done
34427 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
34428 if test $? -ne 0 ; then
34429 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
34430 if test $? -ne 0 ; then
34431 user_path=$user_path:$t_bindir
34432 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
34433echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
34434 fi
34435 fi
34436 fi
34437
34438fi
34439
34440if test "x$external_path_file" != "x/etc/login.conf" ; then
34441
34442cat >>confdefs.h <<_ACEOF
34443#define USER_PATH "$user_path"
34444_ACEOF
34445
34446
34447fi
34448
34449# Set superuser path separately to user path
34450
34451# Check whether --with-superuser-path was given.
34452if test "${with_superuser_path+set}" = set; then
34453 withval=$with_superuser_path;
34454 if test -n "$withval" && test "x$withval" != "xno" && \
34455 test "x${withval}" != "xyes"; then
34456
34457cat >>confdefs.h <<_ACEOF
34458#define SUPERUSER_PATH "$withval"
34459_ACEOF
34460
34461 superuser_path=$withval
34462 fi
34463
34464
34465fi
34466
34467
34468
34469{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
34470echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
34471IPV4_IN6_HACK_MSG="no"
34472
34473# Check whether --with-4in6 was given.
34474if test "${with_4in6+set}" = set; then
34475 withval=$with_4in6;
34476 if test "x$withval" != "xno" ; then
34477 { echo "$as_me:$LINENO: result: yes" >&5
34478echo "${ECHO_T}yes" >&6; }
34479
34480cat >>confdefs.h <<\_ACEOF
34481#define IPV4_IN_IPV6 1
34482_ACEOF
34483
34484 IPV4_IN6_HACK_MSG="yes"
34485 else
34486 { echo "$as_me:$LINENO: result: no" >&5
34487echo "${ECHO_T}no" >&6; }
34488 fi
34489
34490else
34491
34492 if test "x$inet6_default_4in6" = "xyes"; then
34493 { echo "$as_me:$LINENO: result: yes (default)" >&5
34494echo "${ECHO_T}yes (default)" >&6; }
34495 cat >>confdefs.h <<\_ACEOF
34496#define IPV4_IN_IPV6 1
34497_ACEOF
34498
34499 IPV4_IN6_HACK_MSG="yes"
34500 else
34501 { echo "$as_me:$LINENO: result: no (default)" >&5
34502echo "${ECHO_T}no (default)" >&6; }
34503 fi
34504
34505
34506fi
34507
34508
34509# Whether to enable BSD auth support
34510BSD_AUTH_MSG=no
34511
34512# Check whether --with-bsd-auth was given.
34513if test "${with_bsd_auth+set}" = set; then
34514 withval=$with_bsd_auth;
34515 if test "x$withval" != "xno" ; then
34516
34517cat >>confdefs.h <<\_ACEOF
34518#define BSD_AUTH 1
34519_ACEOF
34520
34521 BSD_AUTH_MSG=yes
34522 fi
34523
34524
34525fi
34526
34527
34528# Where to place sshd.pid
34529piddir=/var/run
34530# make sure the directory exists
34531if test ! -d $piddir ; then
34532 piddir=`eval echo ${sysconfdir}`
34533 case $piddir in
34534 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
34535 esac
34536fi
34537
34538
34539# Check whether --with-pid-dir was given.
34540if test "${with_pid_dir+set}" = set; then
34541 withval=$with_pid_dir;
34542 if test -n "$withval" && test "x$withval" != "xno" && \
34543 test "x${withval}" != "xyes"; then
34544 piddir=$withval
34545 if test ! -d $piddir ; then
34546 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
34547echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
34548 fi
34549 fi
34550
34551
34552fi
34553
34554
34555
34556cat >>confdefs.h <<_ACEOF
34557#define _PATH_SSH_PIDDIR "$piddir"
34558_ACEOF
34559
34560
34561
34562# Check whether --enable-lastlog was given.
34563if test "${enable_lastlog+set}" = set; then
34564 enableval=$enable_lastlog;
34565 if test "x$enableval" = "xno" ; then
34566 cat >>confdefs.h <<\_ACEOF
34567#define DISABLE_LASTLOG 1
34568_ACEOF
34569
34570 fi
34571
34572
34573fi
34574
34575# Check whether --enable-utmp was given.
34576if test "${enable_utmp+set}" = set; then
34577 enableval=$enable_utmp;
34578 if test "x$enableval" = "xno" ; then
34579 cat >>confdefs.h <<\_ACEOF
34580#define DISABLE_UTMP 1
34581_ACEOF
34582
34583 fi
34584
34585
34586fi
34587
34588# Check whether --enable-utmpx was given.
34589if test "${enable_utmpx+set}" = set; then
34590 enableval=$enable_utmpx;
34591 if test "x$enableval" = "xno" ; then
34592
34593cat >>confdefs.h <<\_ACEOF
34594#define DISABLE_UTMPX 1
34595_ACEOF
34596
34597 fi
34598
34599
34600fi
34601
34602# Check whether --enable-wtmp was given.
34603if test "${enable_wtmp+set}" = set; then
34604 enableval=$enable_wtmp;
34605 if test "x$enableval" = "xno" ; then
34606 cat >>confdefs.h <<\_ACEOF
34607#define DISABLE_WTMP 1
34608_ACEOF
34609
34610 fi
34611
34612
34613fi
34614
34615# Check whether --enable-wtmpx was given.
34616if test "${enable_wtmpx+set}" = set; then
34617 enableval=$enable_wtmpx;
34618 if test "x$enableval" = "xno" ; then
34619
34620cat >>confdefs.h <<\_ACEOF
34621#define DISABLE_WTMPX 1
34622_ACEOF
34623
34624 fi
34625
34626
34627fi
34628
34629# Check whether --enable-libutil was given.
34630if test "${enable_libutil+set}" = set; then
34631 enableval=$enable_libutil;
34632 if test "x$enableval" = "xno" ; then
34633 cat >>confdefs.h <<\_ACEOF
34634#define DISABLE_LOGIN 1
34635_ACEOF
34636
34637 fi
34638
34639
34640fi
34641
34642# Check whether --enable-pututline was given.
34643if test "${enable_pututline+set}" = set; then
34644 enableval=$enable_pututline;
34645 if test "x$enableval" = "xno" ; then
34646
34647cat >>confdefs.h <<\_ACEOF
34648#define DISABLE_PUTUTLINE 1
34649_ACEOF
34650
34651 fi
34652
34653
34654fi
34655
34656# Check whether --enable-pututxline was given.
34657if test "${enable_pututxline+set}" = set; then
34658 enableval=$enable_pututxline;
34659 if test "x$enableval" = "xno" ; then
34660
34661cat >>confdefs.h <<\_ACEOF
34662#define DISABLE_PUTUTXLINE 1
34663_ACEOF
34664
34665 fi
34666
34667
34668fi
34669
34670
34671# Check whether --with-lastlog was given.
34672if test "${with_lastlog+set}" = set; then
34673 withval=$with_lastlog;
34674 if test "x$withval" = "xno" ; then
34675 cat >>confdefs.h <<\_ACEOF
34676#define DISABLE_LASTLOG 1
34677_ACEOF
34678
34679 elif test -n "$withval" && test "x${withval}" != "xyes"; then
34680 conf_lastlog_location=$withval
34681 fi
34682
34683
34684fi
34685
34686
34687
34688{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
34689echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
34690cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h. */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h. */
34696
34697#include <sys/types.h>
34698#include <utmp.h>
34699#ifdef HAVE_LASTLOG_H
34700# include <lastlog.h>
34701#endif
34702#ifdef HAVE_PATHS_H
34703# include <paths.h>
34704#endif
34705#ifdef HAVE_LOGIN_H
34706# include <login.h>
34707#endif
34708
34709int
34710main ()
34711{
34712 char *lastlog = LASTLOG_FILE;
34713 ;
34714 return 0;
34715}
34716_ACEOF
34717rm -f conftest.$ac_objext
34718if { (ac_try="$ac_compile"
34719case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34722esac
34723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_compile") 2>conftest.er1
34725 ac_status=$?
34726 grep -v '^ *+' conftest.er1 >conftest.err
34727 rm -f conftest.er1
34728 cat conftest.err >&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } && {
34731 test -z "$ac_c_werror_flag" ||
34732 test ! -s conftest.err
34733 } && test -s conftest.$ac_objext; then
34734 { echo "$as_me:$LINENO: result: yes" >&5
34735echo "${ECHO_T}yes" >&6; }
34736else
34737 echo "$as_me: failed program was:" >&5
34738sed 's/^/| /' conftest.$ac_ext >&5
34739
34740
34741 { echo "$as_me:$LINENO: result: no" >&5
34742echo "${ECHO_T}no" >&6; }
34743 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
34744echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
34745 cat >conftest.$ac_ext <<_ACEOF
34746/* confdefs.h. */
34747_ACEOF
34748cat confdefs.h >>conftest.$ac_ext
34749cat >>conftest.$ac_ext <<_ACEOF
34750/* end confdefs.h. */
34751
34752#include <sys/types.h>
34753#include <utmp.h>
34754#ifdef HAVE_LASTLOG_H
34755# include <lastlog.h>
34756#endif
34757#ifdef HAVE_PATHS_H
34758# include <paths.h>
34759#endif
34760
34761int
34762main ()
34763{
34764 char *lastlog = _PATH_LASTLOG;
34765 ;
34766 return 0;
34767}
34768_ACEOF
34769rm -f conftest.$ac_objext
34770if { (ac_try="$ac_compile"
34771case "(($ac_try" in
34772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34773 *) ac_try_echo=$ac_try;;
34774esac
34775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34776 (eval "$ac_compile") 2>conftest.er1
34777 ac_status=$?
34778 grep -v '^ *+' conftest.er1 >conftest.err
34779 rm -f conftest.er1
34780 cat conftest.err >&5
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); } && {
34783 test -z "$ac_c_werror_flag" ||
34784 test ! -s conftest.err
34785 } && test -s conftest.$ac_objext; then
34786 { echo "$as_me:$LINENO: result: yes" >&5
34787echo "${ECHO_T}yes" >&6; }
34788else
34789 echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792
34793 { echo "$as_me:$LINENO: result: no" >&5
34794echo "${ECHO_T}no" >&6; }
34795 system_lastlog_path=no
34796
34797fi
34798
34799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800
34801fi
34802
34803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34804
34805if test -z "$conf_lastlog_location"; then
34806 if test x"$system_lastlog_path" = x"no" ; then
34807 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
34808 if (test -d "$f" || test -f "$f") ; then
34809 conf_lastlog_location=$f
34810 fi
34811 done
34812 if test -z "$conf_lastlog_location"; then
34813 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
34814echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
34815 fi
34816 fi
34817fi
34818
34819if test -n "$conf_lastlog_location"; then
34820
34821cat >>confdefs.h <<_ACEOF
34822#define CONF_LASTLOG_FILE "$conf_lastlog_location"
34823_ACEOF
34824
34825fi
34826
34827{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
34828echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
34829cat >conftest.$ac_ext <<_ACEOF
34830/* confdefs.h. */
34831_ACEOF
34832cat confdefs.h >>conftest.$ac_ext
34833cat >>conftest.$ac_ext <<_ACEOF
34834/* end confdefs.h. */
34835
34836#include <sys/types.h>
34837#include <utmp.h>
34838#ifdef HAVE_PATHS_H
34839# include <paths.h>
34840#endif
34841
34842int
34843main ()
34844{
34845 char *utmp = UTMP_FILE;
34846 ;
34847 return 0;
34848}
34849_ACEOF
34850rm -f conftest.$ac_objext
34851if { (ac_try="$ac_compile"
34852case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855esac
34856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_compile") 2>conftest.er1
34858 ac_status=$?
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } && {
34864 test -z "$ac_c_werror_flag" ||
34865 test ! -s conftest.err
34866 } && test -s conftest.$ac_objext; then
34867 { echo "$as_me:$LINENO: result: yes" >&5
34868echo "${ECHO_T}yes" >&6; }
34869else
34870 echo "$as_me: failed program was:" >&5
34871sed 's/^/| /' conftest.$ac_ext >&5
34872
34873 { echo "$as_me:$LINENO: result: no" >&5
34874echo "${ECHO_T}no" >&6; }
34875 system_utmp_path=no
34876
34877fi
34878
34879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880if test -z "$conf_utmp_location"; then
34881 if test x"$system_utmp_path" = x"no" ; then
34882 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
34883 if test -f $f ; then
34884 conf_utmp_location=$f
34885 fi
34886 done
34887 if test -z "$conf_utmp_location"; then
34888 cat >>confdefs.h <<\_ACEOF
34889#define DISABLE_UTMP 1
34890_ACEOF
34891
34892 fi
34893 fi
34894fi
34895if test -n "$conf_utmp_location"; then
34896
34897cat >>confdefs.h <<_ACEOF
34898#define CONF_UTMP_FILE "$conf_utmp_location"
34899_ACEOF
34900
34901fi
34902
34903{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
34904echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
34905cat >conftest.$ac_ext <<_ACEOF
34906/* confdefs.h. */
34907_ACEOF
34908cat confdefs.h >>conftest.$ac_ext
34909cat >>conftest.$ac_ext <<_ACEOF
34910/* end confdefs.h. */
34911
34912#include <sys/types.h>
34913#include <utmp.h>
34914#ifdef HAVE_PATHS_H
34915# include <paths.h>
34916#endif
34917
34918int
34919main ()
34920{
34921 char *wtmp = WTMP_FILE;
34922 ;
34923 return 0;
34924}
34925_ACEOF
34926rm -f conftest.$ac_objext
34927if { (ac_try="$ac_compile"
34928case "(($ac_try" in
34929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930 *) ac_try_echo=$ac_try;;
34931esac
34932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933 (eval "$ac_compile") 2>conftest.er1
34934 ac_status=$?
34935 grep -v '^ *+' conftest.er1 >conftest.err
34936 rm -f conftest.er1
34937 cat conftest.err >&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); } && {
34940 test -z "$ac_c_werror_flag" ||
34941 test ! -s conftest.err
34942 } && test -s conftest.$ac_objext; then
34943 { echo "$as_me:$LINENO: result: yes" >&5
34944echo "${ECHO_T}yes" >&6; }
34945else
34946 echo "$as_me: failed program was:" >&5
34947sed 's/^/| /' conftest.$ac_ext >&5
34948
34949 { echo "$as_me:$LINENO: result: no" >&5
34950echo "${ECHO_T}no" >&6; }
34951 system_wtmp_path=no
34952
34953fi
34954
34955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34956if test -z "$conf_wtmp_location"; then
34957 if test x"$system_wtmp_path" = x"no" ; then
34958 for f in /usr/adm/wtmp /var/log/wtmp; do
34959 if test -f $f ; then
34960 conf_wtmp_location=$f
34961 fi
34962 done
34963 if test -z "$conf_wtmp_location"; then
34964 cat >>confdefs.h <<\_ACEOF
34965#define DISABLE_WTMP 1
34966_ACEOF
34967
34968 fi
34969 fi
34970fi
34971if test -n "$conf_wtmp_location"; then
34972
34973cat >>confdefs.h <<_ACEOF
34974#define CONF_WTMP_FILE "$conf_wtmp_location"
34975_ACEOF
34976
34977fi
34978
34979{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
34980echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
34981cat >conftest.$ac_ext <<_ACEOF
34982/* confdefs.h. */
34983_ACEOF
34984cat confdefs.h >>conftest.$ac_ext
34985cat >>conftest.$ac_ext <<_ACEOF
34986/* end confdefs.h. */
34987
34988#include <sys/types.h>
34989#include <utmp.h>
34990#ifdef HAVE_UTMPX_H
34991#include <utmpx.h>
34992#endif
34993#ifdef HAVE_PATHS_H
34994# include <paths.h>
34995#endif
34996
34997int
34998main ()
34999{
35000 char *wtmpx = WTMPX_FILE;
35001 ;
35002 return 0;
35003}
35004_ACEOF
35005rm -f conftest.$ac_objext
35006if { (ac_try="$ac_compile"
35007case "(($ac_try" in
35008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35009 *) ac_try_echo=$ac_try;;
35010esac
35011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35012 (eval "$ac_compile") 2>conftest.er1
35013 ac_status=$?
35014 grep -v '^ *+' conftest.er1 >conftest.err
35015 rm -f conftest.er1
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } && {
35019 test -z "$ac_c_werror_flag" ||
35020 test ! -s conftest.err
35021 } && test -s conftest.$ac_objext; then
35022 { echo "$as_me:$LINENO: result: yes" >&5
35023echo "${ECHO_T}yes" >&6; }
35024else
35025 echo "$as_me: failed program was:" >&5
35026sed 's/^/| /' conftest.$ac_ext >&5
35027
35028 { echo "$as_me:$LINENO: result: no" >&5
35029echo "${ECHO_T}no" >&6; }
35030 system_wtmpx_path=no
35031
35032fi
35033
35034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35035if test -z "$conf_wtmpx_location"; then
35036 if test x"$system_wtmpx_path" = x"no" ; then
35037 cat >>confdefs.h <<\_ACEOF
35038#define DISABLE_WTMPX 1
35039_ACEOF
35040
35041 fi
35042else
35043
35044cat >>confdefs.h <<_ACEOF
35045#define CONF_WTMPX_FILE "$conf_wtmpx_location"
35046_ACEOF
35047
35048fi
35049
35050
35051if test ! -z "$blibpath" ; then
35052 LDFLAGS="$LDFLAGS $blibflags$blibpath"
35053 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
35054echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
35055fi
35056
35057{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
35058echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
35059if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061else
35062 cat >conftest.$ac_ext <<_ACEOF
35063/* confdefs.h. */
35064_ACEOF
35065cat confdefs.h >>conftest.$ac_ext
35066cat >>conftest.$ac_ext <<_ACEOF
35067/* end confdefs.h. */
35068
35069#ifdef HAVE_SYS_TYPES_H
35070#include <sys/types.h>
35071#endif
35072#ifdef HAVE_UTMP_H
35073#include <utmp.h>
35074#endif
35075#ifdef HAVE_UTMPX_H
35076#include <utmpx.h>
35077#endif
35078#ifdef HAVE_LASTLOG_H
35079#include <lastlog.h>
35080#endif
35081
35082
35083int
35084main ()
35085{
35086static struct lastlog ac_aggr;
35087if (ac_aggr.ll_line)
35088return 0;
35089 ;
35090 return 0;
35091}
35092_ACEOF
35093rm -f conftest.$ac_objext
35094if { (ac_try="$ac_compile"
35095case "(($ac_try" in
35096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35097 *) ac_try_echo=$ac_try;;
35098esac
35099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35100 (eval "$ac_compile") 2>conftest.er1
35101 ac_status=$?
35102 grep -v '^ *+' conftest.er1 >conftest.err
35103 rm -f conftest.er1
35104 cat conftest.err >&5
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); } && {
35107 test -z "$ac_c_werror_flag" ||
35108 test ! -s conftest.err
35109 } && test -s conftest.$ac_objext; then
35110 ac_cv_member_struct_lastlog_ll_line=yes
35111else
35112 echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115 cat >conftest.$ac_ext <<_ACEOF
35116/* confdefs.h. */
35117_ACEOF
35118cat confdefs.h >>conftest.$ac_ext
35119cat >>conftest.$ac_ext <<_ACEOF
35120/* end confdefs.h. */
35121
35122#ifdef HAVE_SYS_TYPES_H
35123#include <sys/types.h>
35124#endif
35125#ifdef HAVE_UTMP_H
35126#include <utmp.h>
35127#endif
35128#ifdef HAVE_UTMPX_H
35129#include <utmpx.h>
35130#endif
35131#ifdef HAVE_LASTLOG_H
35132#include <lastlog.h>
35133#endif
35134
35135
35136int
35137main ()
35138{
35139static struct lastlog ac_aggr;
35140if (sizeof ac_aggr.ll_line)
35141return 0;
35142 ;
35143 return 0;
35144}
35145_ACEOF
35146rm -f conftest.$ac_objext
35147if { (ac_try="$ac_compile"
35148case "(($ac_try" in
35149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35150 *) ac_try_echo=$ac_try;;
35151esac
35152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35153 (eval "$ac_compile") 2>conftest.er1
35154 ac_status=$?
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } && {
35160 test -z "$ac_c_werror_flag" ||
35161 test ! -s conftest.err
35162 } && test -s conftest.$ac_objext; then
35163 ac_cv_member_struct_lastlog_ll_line=yes
35164else
35165 echo "$as_me: failed program was:" >&5
35166sed 's/^/| /' conftest.$ac_ext >&5
35167
35168 ac_cv_member_struct_lastlog_ll_line=no
35169fi
35170
35171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172fi
35173
35174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35175fi
35176{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35177echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35178if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35179 :
35180else
35181
35182 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
35183 cat >>confdefs.h <<\_ACEOF
35184#define DISABLE_LASTLOG 1
35185_ACEOF
35186
35187 fi
35188
35189fi
35190
35191
35192{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35193echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35194if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35196else
35197 cat >conftest.$ac_ext <<_ACEOF
35198/* confdefs.h. */
35199_ACEOF
35200cat confdefs.h >>conftest.$ac_ext
35201cat >>conftest.$ac_ext <<_ACEOF
35202/* end confdefs.h. */
35203
35204#ifdef HAVE_SYS_TYPES_H
35205#include <sys/types.h>
35206#endif
35207#ifdef HAVE_UTMP_H
35208#include <utmp.h>
35209#endif
35210#ifdef HAVE_UTMPX_H
35211#include <utmpx.h>
35212#endif
35213#ifdef HAVE_LASTLOG_H
35214#include <lastlog.h>
35215#endif
35216
35217
35218int
35219main ()
35220{
35221static struct utmp ac_aggr;
35222if (ac_aggr.ut_line)
35223return 0;
35224 ;
35225 return 0;
35226}
35227_ACEOF
35228rm -f conftest.$ac_objext
35229if { (ac_try="$ac_compile"
35230case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233esac
35234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_compile") 2>conftest.er1
35236 ac_status=$?
35237 grep -v '^ *+' conftest.er1 >conftest.err
35238 rm -f conftest.er1
35239 cat conftest.err >&5
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); } && {
35242 test -z "$ac_c_werror_flag" ||
35243 test ! -s conftest.err
35244 } && test -s conftest.$ac_objext; then
35245 ac_cv_member_struct_utmp_ut_line=yes
35246else
35247 echo "$as_me: failed program was:" >&5
35248sed 's/^/| /' conftest.$ac_ext >&5
35249
35250 cat >conftest.$ac_ext <<_ACEOF
35251/* confdefs.h. */
35252_ACEOF
35253cat confdefs.h >>conftest.$ac_ext
35254cat >>conftest.$ac_ext <<_ACEOF
35255/* end confdefs.h. */
35256
35257#ifdef HAVE_SYS_TYPES_H
35258#include <sys/types.h>
35259#endif
35260#ifdef HAVE_UTMP_H
35261#include <utmp.h>
35262#endif
35263#ifdef HAVE_UTMPX_H
35264#include <utmpx.h>
35265#endif
35266#ifdef HAVE_LASTLOG_H
35267#include <lastlog.h>
35268#endif
35269
35270
35271int
35272main ()
35273{
35274static struct utmp ac_aggr;
35275if (sizeof ac_aggr.ut_line)
35276return 0;
35277 ;
35278 return 0;
35279}
35280_ACEOF
35281rm -f conftest.$ac_objext
35282if { (ac_try="$ac_compile"
35283case "(($ac_try" in
35284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35285 *) ac_try_echo=$ac_try;;
35286esac
35287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35288 (eval "$ac_compile") 2>conftest.er1
35289 ac_status=$?
35290 grep -v '^ *+' conftest.er1 >conftest.err
35291 rm -f conftest.er1
35292 cat conftest.err >&5
35293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294 (exit $ac_status); } && {
35295 test -z "$ac_c_werror_flag" ||
35296 test ! -s conftest.err
35297 } && test -s conftest.$ac_objext; then
35298 ac_cv_member_struct_utmp_ut_line=yes
35299else
35300 echo "$as_me: failed program was:" >&5
35301sed 's/^/| /' conftest.$ac_ext >&5
35302
35303 ac_cv_member_struct_utmp_ut_line=no
35304fi
35305
35306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307fi
35308
35309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310fi
35311{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35312echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35313if test $ac_cv_member_struct_utmp_ut_line = yes; then
35314 :
35315else
35316
35317 cat >>confdefs.h <<\_ACEOF
35318#define DISABLE_UTMP 1
35319_ACEOF
35320
35321 cat >>confdefs.h <<\_ACEOF
35322#define DISABLE_WTMP 1
35323_ACEOF
35324
35325
35326fi
35327
35328
35329CFLAGS="$CFLAGS $werror_flags"
35330
35331if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
35332 TEST_SSH_IPV6=no
35333else
35334 TEST_SSH_IPV6=yes
35335fi
35336{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
35337echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35338if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35339 echo $ECHO_N "(cached) $ECHO_C" >&6
35340else
35341 cat >conftest.$ac_ext <<_ACEOF
35342/* confdefs.h. */
35343_ACEOF
35344cat confdefs.h >>conftest.$ac_ext
35345cat >>conftest.$ac_ext <<_ACEOF
35346/* end confdefs.h. */
35347$ac_includes_default
35348int
35349main ()
35350{
35351#ifndef BROKEN_GETADDRINFO
35352 (void) BROKEN_GETADDRINFO;
35353#endif
35354
35355 ;
35356 return 0;
35357}
35358_ACEOF
35359rm -f conftest.$ac_objext
35360if { (ac_try="$ac_compile"
35361case "(($ac_try" in
35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363 *) ac_try_echo=$ac_try;;
35364esac
35365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366 (eval "$ac_compile") 2>conftest.er1
35367 ac_status=$?
35368 grep -v '^ *+' conftest.er1 >conftest.err
35369 rm -f conftest.er1
35370 cat conftest.err >&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } && {
35373 test -z "$ac_c_werror_flag" ||
35374 test ! -s conftest.err
35375 } && test -s conftest.$ac_objext; then
35376 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35377else
35378 echo "$as_me: failed program was:" >&5
35379sed 's/^/| /' conftest.$ac_ext >&5
35380
35381 ac_cv_have_decl_BROKEN_GETADDRINFO=no
35382fi
35383
35384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35385fi
35386{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35387echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35388if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
35389 TEST_SSH_IPV6=no
35390fi
35391
35392TEST_SSH_IPV6=$TEST_SSH_IPV6
35393
35394TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
35395
35396UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
35397
35398
35399
35400ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
35401
35402cat >confcache <<\_ACEOF
35403# This file is a shell script that caches the results of configure
35404# tests run on this system so they can be shared between configure
35405# scripts and configure runs, see configure's option --config-cache.
35406# It is not useful on other systems. If it contains results you don't
35407# want to keep, you may remove or edit it.
35408#
35409# config.status only pays attention to the cache file if you give it
35410# the --recheck option to rerun configure.
35411#
35412# `ac_cv_env_foo' variables (set or unset) will be overridden when
35413# loading this file, other *unset* `ac_cv_foo' will be assigned the
35414# following values.
35415
35416_ACEOF
35417
35418# The following way of writing the cache mishandles newlines in values,
35419# but we know of no workaround that is simple, portable, and efficient.
35420# So, we kill variables containing newlines.
35421# Ultrix sh set writes to stderr and can't be redirected directly,
35422# and sets the high bit in the cache file unless we assign to the vars.
35423(
35424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35425 eval ac_val=\$$ac_var
35426 case $ac_val in #(
35427 *${as_nl}*)
35428 case $ac_var in #(
35429 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35430echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35431 esac
35432 case $ac_var in #(
35433 _ | IFS | as_nl) ;; #(
35434 *) $as_unset $ac_var ;;
35435 esac ;;
35436 esac
35437 done
35438
35439 (set) 2>&1 |
35440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35441 *${as_nl}ac_space=\ *)
35442 # `set' does not quote correctly, so add quotes (double-quote
35443 # substitution turns \\\\ into \\, and sed turns \\ into \).
35444 sed -n \
35445 "s/'/'\\\\''/g;
35446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35447 ;; #(
35448 *)
35449 # `set' quotes correctly as required by POSIX, so do not add quotes.
35450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35451 ;;
35452 esac |
35453 sort
35454) |
35455 sed '
35456 /^ac_cv_env_/b end
35457 t clear
35458 :clear
35459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35460 t end
35461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35462 :end' >>confcache
35463if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35464 if test -w "$cache_file"; then
35465 test "x$cache_file" != "x/dev/null" &&
35466 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35467echo "$as_me: updating cache $cache_file" >&6;}
35468 cat confcache >$cache_file
35469 else
35470 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35471echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35472 fi
35473fi
35474rm -f confcache
35475
35476test "x$prefix" = xNONE && prefix=$ac_default_prefix
35477# Let make expand exec_prefix.
35478test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35479
35480DEFS=-DHAVE_CONFIG_H
35481
35482ac_libobjs=
35483ac_ltlibobjs=
35484for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35485 # 1. Remove the extension, and $U if already installed.
35486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35487 ac_i=`echo "$ac_i" | sed "$ac_script"`
35488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35489 # will be set to the directory where LIBOBJS objects are built.
35490 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35491 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35492done
35493LIBOBJS=$ac_libobjs
35494
35495LTLIBOBJS=$ac_ltlibobjs
35496
35497
35498
35499: ${CONFIG_STATUS=./config.status}
35500ac_clean_files_save=$ac_clean_files
35501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35502{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35503echo "$as_me: creating $CONFIG_STATUS" >&6;}
35504cat >$CONFIG_STATUS <<_ACEOF
35505#! $SHELL
35506# Generated by $as_me.
35507# Run this file to recreate the current configuration.
35508# Compiler output produced by configure, useful for debugging
35509# configure, is in config.log if it exists.
35510
35511debug=false
35512ac_cs_recheck=false
35513ac_cs_silent=false
35514SHELL=\${CONFIG_SHELL-$SHELL}
35515_ACEOF
35516
35517cat >>$CONFIG_STATUS <<\_ACEOF
35518## --------------------- ##
35519## M4sh Initialization. ##
35520## --------------------- ##
35521
35522# Be more Bourne compatible
35523DUALCASE=1; export DUALCASE # for MKS sh
35524if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35525 emulate sh
35526 NULLCMD=:
35527 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35528 # is contrary to our usage. Disable this feature.
35529 alias -g '${1+"$@"}'='"$@"'
35530 setopt NO_GLOB_SUBST
35531else
35532 case `(set -o) 2>/dev/null` in
35533 *posix*) set -o posix ;;
35534esac
35535
35536fi
35537
35538
35539
35540
35541# PATH needs CR
35542# Avoid depending upon Character Ranges.
35543as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35544as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35545as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35546as_cr_digits='0123456789'
35547as_cr_alnum=$as_cr_Letters$as_cr_digits
35548
35549# The user is always right.
35550if test "${PATH_SEPARATOR+set}" != set; then
35551 echo "#! /bin/sh" >conf$$.sh
35552 echo "exit 0" >>conf$$.sh
35553 chmod +x conf$$.sh
35554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35555 PATH_SEPARATOR=';'
35556 else
35557 PATH_SEPARATOR=:
35558 fi
35559 rm -f conf$$.sh
35560fi
35561
35562# Support unset when possible.
35563if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35564 as_unset=unset
35565else
35566 as_unset=false
35567fi
35568
35569
35570# IFS
35571# We need space, tab and new line, in precisely that order. Quoting is
35572# there to prevent editors from complaining about space-tab.
35573# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35574# splitting by setting IFS to empty value.)
35575as_nl='
35576'
35577IFS=" "" $as_nl"
35578
35579# Find who we are. Look in the path if we contain no directory separator.
35580case $0 in
35581 *[\\/]* ) as_myself=$0 ;;
35582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35583for as_dir in $PATH
35584do
35585 IFS=$as_save_IFS
35586 test -z "$as_dir" && as_dir=.
35587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35588done
35589IFS=$as_save_IFS
35590
35591 ;;
35592esac
35593# We did not find ourselves, most probably we were run as `sh COMMAND'
35594# in which case we are not to be found in the path.
35595if test "x$as_myself" = x; then
35596 as_myself=$0
35597fi
35598if test ! -f "$as_myself"; then
35599 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35600 { (exit 1); exit 1; }
35601fi
35602
35603# Work around bugs in pre-3.0 UWIN ksh.
35604for as_var in ENV MAIL MAILPATH
35605do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35606done
35607PS1='$ '
35608PS2='> '
35609PS4='+ '
35610
35611# NLS nuisances.
35612for as_var in \
35613 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35614 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35615 LC_TELEPHONE LC_TIME
35616do
35617 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35618 eval $as_var=C; export $as_var
35619 else
35620 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35621 fi
35622done
35623
35624# Required to use basename.
35625if expr a : '\(a\)' >/dev/null 2>&1 &&
35626 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35627 as_expr=expr
35628else
35629 as_expr=false
35630fi
35631
35632if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35633 as_basename=basename
35634else
35635 as_basename=false
35636fi
35637
35638
35639# Name of the executable.
35640as_me=`$as_basename -- "$0" ||
35641$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35642 X"$0" : 'X\(//\)$' \| \
35643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35644echo X/"$0" |
35645 sed '/^.*\/\([^/][^/]*\)\/*$/{
35646 s//\1/
35647 q
35648 }
35649 /^X\/\(\/\/\)$/{
35650 s//\1/
35651 q
35652 }
35653 /^X\/\(\/\).*/{
35654 s//\1/
35655 q
35656 }
35657 s/.*/./; q'`
35658
35659# CDPATH.
35660$as_unset CDPATH
35661
35662
35663
35664 as_lineno_1=$LINENO
35665 as_lineno_2=$LINENO
35666 test "x$as_lineno_1" != "x$as_lineno_2" &&
35667 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35668
35669 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35670 # uniformly replaced by the line number. The first 'sed' inserts a
35671 # line-number line after each line using $LINENO; the second 'sed'
35672 # does the real work. The second script uses 'N' to pair each
35673 # line-number line with the line containing $LINENO, and appends
35674 # trailing '-' during substitution so that $LINENO is not a special
35675 # case at line end.
35676 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35677 # scripts with optimization help from Paolo Bonzini. Blame Lee
35678 # E. McMahon (1931-1989) for sed's syntax. :-)
35679 sed -n '
35680 p
35681 /[$]LINENO/=
35682 ' <$as_myself |
35683 sed '
35684 s/[$]LINENO.*/&-/
35685 t lineno
35686 b
35687 :lineno
35688 N
35689 :loop
35690 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35691 t loop
35692 s/-\n.*//
35693 ' >$as_me.lineno &&
35694 chmod +x "$as_me.lineno" ||
35695 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35696 { (exit 1); exit 1; }; }
35697
35698 # Don't try to exec as it changes $[0], causing all sort of problems
35699 # (the dirname of $[0] is not the place where we might find the
35700 # original and so on. Autoconf is especially sensitive to this).
35701 . "./$as_me.lineno"
35702 # Exit status is that of the last command.
35703 exit
35704}
35705
35706
35707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35708 as_dirname=dirname
35709else
35710 as_dirname=false
35711fi
35712
35713ECHO_C= ECHO_N= ECHO_T=
35714case `echo -n x` in
35715-n*)
35716 case `echo 'x\c'` in
35717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35718 *) ECHO_C='\c';;
35719 esac;;
35720*)
35721 ECHO_N='-n';;
35722esac
35723
35724if expr a : '\(a\)' >/dev/null 2>&1 &&
35725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35726 as_expr=expr
35727else
35728 as_expr=false
35729fi
35730
35731rm -f conf$$ conf$$.exe conf$$.file
35732if test -d conf$$.dir; then
35733 rm -f conf$$.dir/conf$$.file
35734else
35735 rm -f conf$$.dir
35736 mkdir conf$$.dir
35737fi
35738echo >conf$$.file
35739if ln -s conf$$.file conf$$ 2>/dev/null; then
35740 as_ln_s='ln -s'
35741 # ... but there are two gotchas:
35742 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35743 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35744 # In both cases, we have to default to `cp -p'.
35745 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35746 as_ln_s='cp -p'
35747elif ln conf$$.file conf$$ 2>/dev/null; then
35748 as_ln_s=ln
35749else
35750 as_ln_s='cp -p'
35751fi
35752rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35753rmdir conf$$.dir 2>/dev/null
35754
35755if mkdir -p . 2>/dev/null; then
35756 as_mkdir_p=:
35757else
35758 test -d ./-p && rmdir ./-p
35759 as_mkdir_p=false
35760fi
35761
35762if test -x / >/dev/null 2>&1; then
35763 as_test_x='test -x'
35764else
35765 if ls -dL / >/dev/null 2>&1; then
35766 as_ls_L_option=L
35767 else
35768 as_ls_L_option=
35769 fi
35770 as_test_x='
35771 eval sh -c '\''
35772 if test -d "$1"; then
35773 test -d "$1/.";
35774 else
35775 case $1 in
35776 -*)set "./$1";;
35777 esac;
35778 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35779 ???[sx]*):;;*)false;;esac;fi
35780 '\'' sh
35781 '
35782fi
35783as_executable_p=$as_test_x
35784
35785# Sed expression to map a string onto a valid CPP name.
35786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35787
35788# Sed expression to map a string onto a valid variable name.
35789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35790
35791
35792exec 6>&1
35793
35794# Save the log message, to keep $[0] and so on meaningful, and to
35795# report actual input values of CONFIG_FILES etc. instead of their
35796# values after options handling.
35797ac_log="
35798This file was extended by OpenSSH $as_me Portable, which was
35799generated by GNU Autoconf 2.61. Invocation command line was
35800
35801 CONFIG_FILES = $CONFIG_FILES
35802 CONFIG_HEADERS = $CONFIG_HEADERS
35803 CONFIG_LINKS = $CONFIG_LINKS
35804 CONFIG_COMMANDS = $CONFIG_COMMANDS
35805 $ $0 $@
35806
35807on `(hostname || uname -n) 2>/dev/null | sed 1q`
35808"
35809
35810_ACEOF
35811
35812cat >>$CONFIG_STATUS <<_ACEOF
35813# Files that config.status was made for.
35814config_files="$ac_config_files"
35815config_headers="$ac_config_headers"
35816
35817_ACEOF
35818
35819cat >>$CONFIG_STATUS <<\_ACEOF
35820ac_cs_usage="\
35821\`$as_me' instantiates files from templates according to the
35822current configuration.
35823
35824Usage: $0 [OPTIONS] [FILE]...
35825
35826 -h, --help print this help, then exit
35827 -V, --version print version number and configuration settings, then exit
35828 -q, --quiet do not print progress messages
35829 -d, --debug don't remove temporary files
35830 --recheck update $as_me by reconfiguring in the same conditions
35831 --file=FILE[:TEMPLATE]
35832 instantiate the configuration file FILE
35833 --header=FILE[:TEMPLATE]
35834 instantiate the configuration header FILE
35835
35836Configuration files:
35837$config_files
35838
35839Configuration headers:
35840$config_headers
35841
35842Report bugs to <bug-autoconf@gnu.org>."
35843
35844_ACEOF
35845cat >>$CONFIG_STATUS <<_ACEOF
35846ac_cs_version="\\
35847OpenSSH config.status Portable
35848configured by $0, generated by GNU Autoconf 2.61,
35849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35850
35851Copyright (C) 2006 Free Software Foundation, Inc.
35852This config.status script is free software; the Free Software Foundation
35853gives unlimited permission to copy, distribute and modify it."
35854
35855ac_pwd='$ac_pwd'
35856srcdir='$srcdir'
35857INSTALL='$INSTALL'
35858_ACEOF
35859
35860cat >>$CONFIG_STATUS <<\_ACEOF
35861# If no file are specified by the user, then we need to provide default
35862# value. By we need to know if files were specified by the user.
35863ac_need_defaults=:
35864while test $# != 0
35865do
35866 case $1 in
35867 --*=*)
35868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35870 ac_shift=:
35871 ;;
35872 *)
35873 ac_option=$1
35874 ac_optarg=$2
35875 ac_shift=shift
35876 ;;
35877 esac
35878
35879 case $ac_option in
35880 # Handling of the options.
35881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35882 ac_cs_recheck=: ;;
35883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35884 echo "$ac_cs_version"; exit ;;
35885 --debug | --debu | --deb | --de | --d | -d )
35886 debug=: ;;
35887 --file | --fil | --fi | --f )
35888 $ac_shift
35889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35890 ac_need_defaults=false;;
35891 --header | --heade | --head | --hea )
35892 $ac_shift
35893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35894 ac_need_defaults=false;;
35895 --he | --h)
35896 # Conflict between --help and --header
35897 { echo "$as_me: error: ambiguous option: $1
35898Try \`$0 --help' for more information." >&2
35899 { (exit 1); exit 1; }; };;
35900 --help | --hel | -h )
35901 echo "$ac_cs_usage"; exit ;;
35902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35904 ac_cs_silent=: ;;
35905
35906 # This is an error.
35907 -*) { echo "$as_me: error: unrecognized option: $1
35908Try \`$0 --help' for more information." >&2
35909 { (exit 1); exit 1; }; } ;;
35910
35911 *) ac_config_targets="$ac_config_targets $1"
35912 ac_need_defaults=false ;;
35913
35914 esac
35915 shift
35916done
35917
35918ac_configure_extra_args=
35919
35920if $ac_cs_silent; then
35921 exec 6>/dev/null
35922 ac_configure_extra_args="$ac_configure_extra_args --silent"
35923fi
35924
35925_ACEOF
35926cat >>$CONFIG_STATUS <<_ACEOF
35927if \$ac_cs_recheck; then
35928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35929 CONFIG_SHELL=$SHELL
35930 export CONFIG_SHELL
35931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35932fi
35933
35934_ACEOF
35935cat >>$CONFIG_STATUS <<\_ACEOF
35936exec 5>>config.log
35937{
35938 echo
35939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35940## Running $as_me. ##
35941_ASBOX
35942 echo "$ac_log"
35943} >&5
35944
35945_ACEOF
35946cat >>$CONFIG_STATUS <<_ACEOF
35947_ACEOF
35948
35949cat >>$CONFIG_STATUS <<\_ACEOF
35950
35951# Handling of arguments.
35952for ac_config_target in $ac_config_targets
35953do
35954 case $ac_config_target in
35955 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35957 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
35958 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
35959 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
35960 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
35961 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
35962 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
35963
35964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35965echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35966 { (exit 1); exit 1; }; };;
35967 esac
35968done
35969
35970
35971# If the user did not use the arguments to specify the items to instantiate,
35972# then the envvar interface is used. Set only those that are not.
35973# We use the long form for the default assignment because of an extremely
35974# bizarre bug on SunOS 4.1.3.
35975if $ac_need_defaults; then
35976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35978fi
35979
35980# Have a temporary directory for convenience. Make it in the build tree
35981# simply because there is no reason against having it here, and in addition,
35982# creating and moving files from /tmp can sometimes cause problems.
35983# Hook for its removal unless debugging.
35984# Note that there is a small window in which the directory will not be cleaned:
35985# after its creation but before its name has been assigned to `$tmp'.
35986$debug ||
35987{
35988 tmp=
35989 trap 'exit_status=$?
35990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35991' 0
35992 trap '{ (exit 1); exit 1; }' 1 2 13 15
35993}
35994# Create a (secure) tmp directory for tmp files.
35995
35996{
35997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35998 test -n "$tmp" && test -d "$tmp"
35999} ||
36000{
36001 tmp=./conf$$-$RANDOM
36002 (umask 077 && mkdir "$tmp")
36003} ||
36004{
36005 echo "$me: cannot create a temporary directory in ." >&2
36006 { (exit 1); exit 1; }
36007}
36008
36009#
36010# Set up the sed scripts for CONFIG_FILES section.
36011#
36012
36013# No need to generate the scripts if there are no CONFIG_FILES.
36014# This happens for instance when ./config.status config.h
36015if test -n "$CONFIG_FILES"; then
36016
36017_ACEOF
36018
36019
36020
36021ac_delim='%!_!# '
36022for ac_last_try in false false false false false :; do
36023 cat >conf$$subs.sed <<_ACEOF
36024SHELL!$SHELL$ac_delim
36025PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36026PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36027PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36028PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36029PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36030PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36031exec_prefix!$exec_prefix$ac_delim
36032prefix!$prefix$ac_delim
36033program_transform_name!$program_transform_name$ac_delim
36034bindir!$bindir$ac_delim
36035sbindir!$sbindir$ac_delim
36036libexecdir!$libexecdir$ac_delim
36037datarootdir!$datarootdir$ac_delim
36038datadir!$datadir$ac_delim
36039sysconfdir!$sysconfdir$ac_delim
36040sharedstatedir!$sharedstatedir$ac_delim
36041localstatedir!$localstatedir$ac_delim
36042includedir!$includedir$ac_delim
36043oldincludedir!$oldincludedir$ac_delim
36044docdir!$docdir$ac_delim
36045infodir!$infodir$ac_delim
36046htmldir!$htmldir$ac_delim
36047dvidir!$dvidir$ac_delim
36048pdfdir!$pdfdir$ac_delim
36049psdir!$psdir$ac_delim
36050libdir!$libdir$ac_delim
36051localedir!$localedir$ac_delim
36052mandir!$mandir$ac_delim
36053DEFS!$DEFS$ac_delim
36054ECHO_C!$ECHO_C$ac_delim
36055ECHO_N!$ECHO_N$ac_delim
36056ECHO_T!$ECHO_T$ac_delim
36057LIBS!$LIBS$ac_delim
36058build_alias!$build_alias$ac_delim
36059host_alias!$host_alias$ac_delim
36060target_alias!$target_alias$ac_delim
36061CC!$CC$ac_delim
36062CFLAGS!$CFLAGS$ac_delim
36063LDFLAGS!$LDFLAGS$ac_delim
36064CPPFLAGS!$CPPFLAGS$ac_delim
36065ac_ct_CC!$ac_ct_CC$ac_delim
36066EXEEXT!$EXEEXT$ac_delim
36067OBJEXT!$OBJEXT$ac_delim
36068build!$build$ac_delim
36069build_cpu!$build_cpu$ac_delim
36070build_vendor!$build_vendor$ac_delim
36071build_os!$build_os$ac_delim
36072host!$host$ac_delim
36073host_cpu!$host_cpu$ac_delim
36074host_vendor!$host_vendor$ac_delim
36075host_os!$host_os$ac_delim
36076CPP!$CPP$ac_delim
36077GREP!$GREP$ac_delim
36078EGREP!$EGREP$ac_delim
36079AWK!$AWK$ac_delim
36080RANLIB!$RANLIB$ac_delim
36081INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36082INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36083INSTALL_DATA!$INSTALL_DATA$ac_delim
36084AR!$AR$ac_delim
36085ac_ct_AR!$ac_ct_AR$ac_delim
36086CAT!$CAT$ac_delim
36087KILL!$KILL$ac_delim
36088PERL!$PERL$ac_delim
36089SED!$SED$ac_delim
36090ENT!$ENT$ac_delim
36091TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36092SH!$SH$ac_delim
36093GROFF!$GROFF$ac_delim
36094NROFF!$NROFF$ac_delim
36095MANDOC!$MANDOC$ac_delim
36096TEST_SHELL!$TEST_SHELL$ac_delim
36097MANFMT!$MANFMT$ac_delim
36098PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36099PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36100MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36101STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36102LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36103PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36104LD!$LD$ac_delim
36105PKGCONFIG!$PKGCONFIG$ac_delim
36106LIBEDIT!$LIBEDIT$ac_delim
36107TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36108COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36109SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36110SSHLIBS!$SSHLIBS$ac_delim
36111SSHDLIBS!$SSHDLIBS$ac_delim
36112KRB5CONF!$KRB5CONF$ac_delim
36113GSSLIBS!$GSSLIBS$ac_delim
36114K5LIBS!$K5LIBS$ac_delim
36115PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36116xauth_path!$xauth_path$ac_delim
36117STRIP_OPT!$STRIP_OPT$ac_delim
36118XAUTH_PATH!$XAUTH_PATH$ac_delim
36119MANTYPE!$MANTYPE$ac_delim
36120mansubdir!$mansubdir$ac_delim
36121_ACEOF
36122
36123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36124 break
36125 elif $ac_last_try; then
36126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36127echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36128 { (exit 1); exit 1; }; }
36129 else
36130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36131 fi
36132done
36133
36134ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36135if test -n "$ac_eof"; then
36136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36137 ac_eof=`expr $ac_eof + 1`
36138fi
36139
36140cat >>$CONFIG_STATUS <<_ACEOF
36141cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36143_ACEOF
36144sed '
36145s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36146s/^/s,@/; s/!/@,|#_!!_#|/
36147:n
36148t n
36149s/'"$ac_delim"'$/,g/; t
36150s/$/\\/; p
36151N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36152' >>$CONFIG_STATUS <conf$$subs.sed
36153rm -f conf$$subs.sed
36154cat >>$CONFIG_STATUS <<_ACEOF
36155CEOF$ac_eof
36156_ACEOF
36157
36158
36159ac_delim='%!_!# '
36160for ac_last_try in false false false false false :; do
36161 cat >conf$$subs.sed <<_ACEOF
36162user_path!$user_path$ac_delim
36163piddir!$piddir$ac_delim
36164TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36165TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36166UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36167LIBOBJS!$LIBOBJS$ac_delim
36168LTLIBOBJS!$LTLIBOBJS$ac_delim
36169_ACEOF
36170
36171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
36172 break
36173 elif $ac_last_try; then
36174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36175echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36176 { (exit 1); exit 1; }; }
36177 else
36178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36179 fi
36180done
36181
36182ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36183if test -n "$ac_eof"; then
36184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36185 ac_eof=`expr $ac_eof + 1`
36186fi
36187
36188cat >>$CONFIG_STATUS <<_ACEOF
36189cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36191_ACEOF
36192sed '
36193s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36194s/^/s,@/; s/!/@,|#_!!_#|/
36195:n
36196t n
36197s/'"$ac_delim"'$/,g/; t
36198s/$/\\/; p
36199N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36200' >>$CONFIG_STATUS <conf$$subs.sed
36201rm -f conf$$subs.sed
36202cat >>$CONFIG_STATUS <<_ACEOF
36203:end
36204s/|#_!!_#|//g
36205CEOF$ac_eof
36206_ACEOF
36207
36208
36209# VPATH may cause trouble with some makes, so we remove $(srcdir),
36210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36211# trailing colons and then remove the whole line if VPATH becomes empty
36212# (actually we leave an empty line to preserve line numbers).
36213if test "x$srcdir" = x.; then
36214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36215s/:*\$(srcdir):*/:/
36216s/:*\${srcdir}:*/:/
36217s/:*@srcdir@:*/:/
36218s/^\([^=]*=[ ]*\):*/\1/
36219s/:*$//
36220s/^[^=]*=[ ]*$//
36221}'
36222fi
36223
36224cat >>$CONFIG_STATUS <<\_ACEOF
36225fi # test -n "$CONFIG_FILES"
36226
36227
36228for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36229do
36230 case $ac_tag in
36231 :[FHLC]) ac_mode=$ac_tag; continue;;
36232 esac
36233 case $ac_mode$ac_tag in
36234 :[FHL]*:*);;
36235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36236echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36237 { (exit 1); exit 1; }; };;
36238 :[FH]-) ac_tag=-:-;;
36239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36240 esac
36241 ac_save_IFS=$IFS
36242 IFS=:
36243 set x $ac_tag
36244 IFS=$ac_save_IFS
36245 shift
36246 ac_file=$1
36247 shift
36248
36249 case $ac_mode in
36250 :L) ac_source=$1;;
36251 :[FH])
36252 ac_file_inputs=
36253 for ac_f
36254 do
36255 case $ac_f in
36256 -) ac_f="$tmp/stdin";;
36257 *) # Look for the file first in the build tree, then in the source tree
36258 # (if the path is not absolute). The absolute path cannot be DOS-style,
36259 # because $ac_f cannot contain `:'.
36260 test -f "$ac_f" ||
36261 case $ac_f in
36262 [\\/$]*) false;;
36263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36264 esac ||
36265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36266echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36267 { (exit 1); exit 1; }; };;
36268 esac
36269 ac_file_inputs="$ac_file_inputs $ac_f"
36270 done
36271
36272 # Let's still pretend it is `configure' which instantiates (i.e., don't
36273 # use $as_me), people would be surprised to read:
36274 # /* config.h. Generated by config.status. */
36275 configure_input="Generated from "`IFS=:
36276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36277 if test x"$ac_file" != x-; then
36278 configure_input="$ac_file. $configure_input"
36279 { echo "$as_me:$LINENO: creating $ac_file" >&5
36280echo "$as_me: creating $ac_file" >&6;}
36281 fi
36282
36283 case $ac_tag in
36284 *:-:* | *:-) cat >"$tmp/stdin";;
36285 esac
36286 ;;
36287 esac
36288
36289 ac_dir=`$as_dirname -- "$ac_file" ||
36290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36291 X"$ac_file" : 'X\(//\)[^/]' \| \
36292 X"$ac_file" : 'X\(//\)$' \| \
36293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36294echo X"$ac_file" |
36295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36296 s//\1/
36297 q
36298 }
36299 /^X\(\/\/\)[^/].*/{
36300 s//\1/
36301 q
36302 }
36303 /^X\(\/\/\)$/{
36304 s//\1/
36305 q
36306 }
36307 /^X\(\/\).*/{
36308 s//\1/
36309 q
36310 }
36311 s/.*/./; q'`
36312 { as_dir="$ac_dir"
36313 case $as_dir in #(
36314 -*) as_dir=./$as_dir;;
36315 esac
36316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36317 as_dirs=
36318 while :; do
36319 case $as_dir in #(
36320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36321 *) as_qdir=$as_dir;;
36322 esac
36323 as_dirs="'$as_qdir' $as_dirs"
36324 as_dir=`$as_dirname -- "$as_dir" ||
36325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36326 X"$as_dir" : 'X\(//\)[^/]' \| \
36327 X"$as_dir" : 'X\(//\)$' \| \
36328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36329echo X"$as_dir" |
36330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36331 s//\1/
36332 q
36333 }
36334 /^X\(\/\/\)[^/].*/{
36335 s//\1/
36336 q
36337 }
36338 /^X\(\/\/\)$/{
36339 s//\1/
36340 q
36341 }
36342 /^X\(\/\).*/{
36343 s//\1/
36344 q
36345 }
36346 s/.*/./; q'`
36347 test -d "$as_dir" && break
36348 done
36349 test -z "$as_dirs" || eval "mkdir $as_dirs"
36350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36351echo "$as_me: error: cannot create directory $as_dir" >&2;}
36352 { (exit 1); exit 1; }; }; }
36353 ac_builddir=.
36354
36355case "$ac_dir" in
36356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36357*)
36358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36359 # A ".." for each directory in $ac_dir_suffix.
36360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36361 case $ac_top_builddir_sub in
36362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36364 esac ;;
36365esac
36366ac_abs_top_builddir=$ac_pwd
36367ac_abs_builddir=$ac_pwd$ac_dir_suffix
36368# for backward compatibility:
36369ac_top_builddir=$ac_top_build_prefix
36370
36371case $srcdir in
36372 .) # We are building in place.
36373 ac_srcdir=.
36374 ac_top_srcdir=$ac_top_builddir_sub
36375 ac_abs_top_srcdir=$ac_pwd ;;
36376 [\\/]* | ?:[\\/]* ) # Absolute name.
36377 ac_srcdir=$srcdir$ac_dir_suffix;
36378 ac_top_srcdir=$srcdir
36379 ac_abs_top_srcdir=$srcdir ;;
36380 *) # Relative name.
36381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36382 ac_top_srcdir=$ac_top_build_prefix$srcdir
36383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36384esac
36385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36386
36387
36388 case $ac_mode in
36389 :F)
36390 #
36391 # CONFIG_FILE
36392 #
36393
36394 case $INSTALL in
36395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36397 esac
36398_ACEOF
36399
36400cat >>$CONFIG_STATUS <<\_ACEOF
36401# If the template does not know about datarootdir, expand it.
36402# FIXME: This hack should be removed a few years after 2.60.
36403ac_datarootdir_hack=; ac_datarootdir_seen=
36404
36405case `sed -n '/datarootdir/ {
36406 p
36407 q
36408}
36409/@datadir@/p
36410/@docdir@/p
36411/@infodir@/p
36412/@localedir@/p
36413/@mandir@/p
36414' $ac_file_inputs` in
36415*datarootdir*) ac_datarootdir_seen=yes;;
36416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36418echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36419_ACEOF
36420cat >>$CONFIG_STATUS <<_ACEOF
36421 ac_datarootdir_hack='
36422 s&@datadir@&$datadir&g
36423 s&@docdir@&$docdir&g
36424 s&@infodir@&$infodir&g
36425 s&@localedir@&$localedir&g
36426 s&@mandir@&$mandir&g
36427 s&\\\${datarootdir}&$datarootdir&g' ;;
36428esac
36429_ACEOF
36430
36431# Neutralize VPATH when `$srcdir' = `.'.
36432# Shell code in configure.ac might set extrasub.
36433# FIXME: do we really want to maintain this feature?
36434cat >>$CONFIG_STATUS <<_ACEOF
36435 sed "$ac_vpsub
36436$extrasub
36437_ACEOF
36438cat >>$CONFIG_STATUS <<\_ACEOF
36439:t
36440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36441s&@configure_input@&$configure_input&;t t
36442s&@top_builddir@&$ac_top_builddir_sub&;t t
36443s&@srcdir@&$ac_srcdir&;t t
36444s&@abs_srcdir@&$ac_abs_srcdir&;t t
36445s&@top_srcdir@&$ac_top_srcdir&;t t
36446s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36447s&@builddir@&$ac_builddir&;t t
36448s&@abs_builddir@&$ac_abs_builddir&;t t
36449s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36450s&@INSTALL@&$ac_INSTALL&;t t
36451$ac_datarootdir_hack
36452" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36453
36454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36458which seems to be undefined. Please make sure it is defined." >&5
36459echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36460which seems to be undefined. Please make sure it is defined." >&2;}
36461
36462 rm -f "$tmp/stdin"
36463 case $ac_file in
36464 -) cat "$tmp/out"; rm -f "$tmp/out";;
36465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36466 esac
36467 ;;
36468 :H)
36469 #
36470 # CONFIG_HEADER
36471 #
36472_ACEOF
36473
36474# Transform confdefs.h into a sed script `conftest.defines', that
36475# substitutes the proper values into config.h.in to produce config.h.
36476rm -f conftest.defines conftest.tail
36477# First, append a space to every undef/define line, to ease matching.
36478echo 's/$/ /' >conftest.defines
36479# Then, protect against being on the right side of a sed subst, or in
36480# an unquoted here document, in config.status. If some macros were
36481# called several times there might be several #defines for the same
36482# symbol, which is useless. But do not sort them, since the last
36483# AC_DEFINE must be honored.
36484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36485# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36486# NAME is the cpp macro being defined, VALUE is the value it is being given.
36487# PARAMS is the parameter list in the macro definition--in most cases, it's
36488# just an empty string.
36489ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36490ac_dB='\\)[ (].*,\\1define\\2'
36491ac_dC=' '
36492ac_dD=' ,'
36493
36494uniq confdefs.h |
36495 sed -n '
36496 t rset
36497 :rset
36498 s/^[ ]*#[ ]*define[ ][ ]*//
36499 t ok
36500 d
36501 :ok
36502 s/[\\&,]/\\&/g
36503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36505 ' >>conftest.defines
36506
36507# Remove the space that was appended to ease matching.
36508# Then replace #undef with comments. This is necessary, for
36509# example, in the case of _POSIX_SOURCE, which is predefined and required
36510# on some systems where configure will not decide to define it.
36511# (The regexp can be short, since the line contains either #define or #undef.)
36512echo 's/ $//
36513s,^[ #]*u.*,/* & */,' >>conftest.defines
36514
36515# Break up conftest.defines:
36516ac_max_sed_lines=50
36517
36518# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36519# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36520# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36521# et cetera.
36522ac_in='$ac_file_inputs'
36523ac_out='"$tmp/out1"'
36524ac_nxt='"$tmp/out2"'
36525
36526while :
36527do
36528 # Write a here document:
36529 cat >>$CONFIG_STATUS <<_ACEOF
36530 # First, check the format of the line:
36531 cat >"\$tmp/defines.sed" <<\\CEOF
36532/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36533/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36534b
36535:def
36536_ACEOF
36537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36538 echo 'CEOF
36539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36542 grep . conftest.tail >/dev/null || break
36543 rm -f conftest.defines
36544 mv conftest.tail conftest.defines
36545done
36546rm -f conftest.defines conftest.tail
36547
36548echo "ac_result=$ac_in" >>$CONFIG_STATUS
36549cat >>$CONFIG_STATUS <<\_ACEOF
36550 if test x"$ac_file" != x-; then
36551 echo "/* $configure_input */" >"$tmp/config.h"
36552 cat "$ac_result" >>"$tmp/config.h"
36553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36555echo "$as_me: $ac_file is unchanged" >&6;}
36556 else
36557 rm -f $ac_file
36558 mv "$tmp/config.h" $ac_file
36559 fi
36560 else
36561 echo "/* $configure_input */"
36562 cat "$ac_result"
36563 fi
36564 rm -f "$tmp/out12"
36565 ;;
36566
36567
36568 esac
36569
36570done # for ac_tag
36571
36572
36573{ (exit 0); exit 0; }
36574_ACEOF
36575chmod +x $CONFIG_STATUS
36576ac_clean_files=$ac_clean_files_save
36577
36578
36579# configure is writing to config.log, and then calls config.status.
36580# config.status does its own redirection, appending to config.log.
36581# Unfortunately, on DOS this fails, as config.log is still kept open
36582# by configure, so config.status won't be able to write to it; its
36583# output is simply discarded. So we exec the FD to /dev/null,
36584# effectively closing config.log, so it can be properly (re)opened and
36585# appended to by config.status. When coming back to configure, we
36586# need to make the FD available again.
36587if test "$no_create" != yes; then
36588 ac_cs_success=:
36589 ac_config_status_args=
36590 test "$silent" = yes &&
36591 ac_config_status_args="$ac_config_status_args --quiet"
36592 exec 5>/dev/null
36593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36594 exec 5>>config.log
36595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36596 # would make configure fail if this is the last instruction.
36597 $ac_cs_success || { (exit 1); exit 1; }
36598fi
36599
36600
36601# Print summary of options
36602
36603# Someone please show me a better way :)
36604A=`eval echo ${prefix}` ; A=`eval echo ${A}`
36605B=`eval echo ${bindir}` ; B=`eval echo ${B}`
36606C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
36607D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
36608E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
36609F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
36610G=`eval echo ${piddir}` ; G=`eval echo ${G}`
36611H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
36612I=`eval echo ${user_path}` ; I=`eval echo ${I}`
36613J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
36614
36615echo ""
36616echo "OpenSSH has been configured with the following options:"
36617echo " User binaries: $B"
36618echo " System binaries: $C"
36619echo " Configuration files: $D"
36620echo " Askpass program: $E"
36621echo " Manual pages: $F"
36622echo " PID file: $G"
36623echo " Privilege separation chroot path: $H"
36624if test "x$external_path_file" = "x/etc/login.conf" ; then
36625echo " At runtime, sshd will use the path defined in $external_path_file"
36626echo " Make sure the path to scp is present, otherwise scp will not work"
36627else
36628echo " sshd default user PATH: $I"
36629 if test ! -z "$external_path_file"; then
36630echo " (If PATH is set in $external_path_file it will be used instead. If"
36631echo " used, ensure the path to scp is present, otherwise scp will not work.)"
36632 fi
36633fi
36634if test ! -z "$superuser_path" ; then
36635echo " sshd superuser user PATH: $J"
36636fi
36637echo " Manpage format: $MANTYPE"
36638echo " PAM support: $PAM_MSG"
36639echo " OSF SIA support: $SIA_MSG"
36640echo " KerberosV support: $KRB5_MSG"
36641echo " SELinux support: $SELINUX_MSG"
36642echo " Smartcard support: $SCARD_MSG"
36643echo " S/KEY support: $SKEY_MSG"
36644echo " MD5 password support: $MD5_MSG"
36645echo " libedit support: $LIBEDIT_MSG"
36646echo " Solaris process contract support: $SPC_MSG"
36647echo " Solaris project support: $SP_MSG"
36648echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
36649echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
36650echo " BSD Auth support: $BSD_AUTH_MSG"
36651echo " Random number source: $RAND_MSG"
36652echo " Privsep sandbox style: $SANDBOX_STYLE"
36653
36654echo ""
36655
36656echo " Host: ${host}"
36657echo " Compiler: ${CC}"
36658echo " Compiler flags: ${CFLAGS}"
36659echo "Preprocessor flags: ${CPPFLAGS}"
36660echo " Linker flags: ${LDFLAGS}"
36661echo " Libraries: ${LIBS}"
36662if test ! -z "${SSHDLIBS}"; then
36663echo " +for sshd: ${SSHDLIBS}"
36664fi
36665if test ! -z "${SSHLIBS}"; then
36666echo " +for ssh: ${SSHLIBS}"
36667fi
36668
36669echo ""
36670
36671if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
36672 echo "SVR4 style packages are supported with \"make package\""
36673 echo ""
36674fi
36675
36676if test "x$PAM_MSG" = "xyes" ; then
36677 echo "PAM is enabled. You may need to install a PAM control file "
36678 echo "for sshd, otherwise password authentication may fail. "
36679 echo "Example PAM control files can be found in the contrib/ "
36680 echo "subdirectory"
36681 echo ""
36682fi
36683
36684if test ! -z "$NO_PEERCHECK" ; then
36685 echo "WARNING: the operating system that you are using does not"
36686 echo "appear to support getpeereid(), getpeerucred() or the"
36687 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
36688 echo "enforce security checks to prevent unauthorised connections to"
36689 echo "ssh-agent. Their absence increases the risk that a malicious"
36690 echo "user can connect to your agent."
36691 echo ""
36692fi
36693
36694if test "$AUDIT_MODULE" = "bsm" ; then
36695 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
36696 echo "See the Solaris section in README.platform for details."
36697fi
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..1c580d46c
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,74 @@
1MODULI(5) File Formats Manual MODULI(5)
2
3NAME
4 moduli M-bM-^@M-^S Diffie-Hellman moduli
5
6DESCRIPTION
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,
18 containing seven space-separated fields. These fields are as follows:
19
20 timestamp The time that the modulus was last processed as
21 YYYYMMDDHHMMSS.
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; 2p+1 is also prime.
29
30 Moduli candidates initially produced by ssh-keygen(1)
31 are Sophie Germain primes (type 4). Further 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 M-bM-^@M-^S not prime.
42 0x02 Sieve of Eratosthenes.
43 0x04 Probabilistic 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 the number of primality
51 trials that 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
66SEE ALSO
67 ssh-keygen(1), sshd(8)
68
69STANDARDS
70 M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for
71 the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006,
72 2006.
73
74OpenBSD 5.7 September 26, 2012 OpenBSD 5.7
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..3f309fe03
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,164 @@
1SCP(1) General Commands Manual SCP(1)
2
3NAME
4 scp M-bM-^@M-^S secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-12346BCpqrv] [-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
11DESCRIPTION
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). scp will ask for passwords or passphrases if they are needed
15 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
19 explicit using absolute or relative pathnames to avoid scp treating file
20 names containing M-bM-^@M-^X:M-bM-^@M-^Y 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 -3 Copies between two remote hosts are transferred through the local
30 host. Without this option the data is copied directly between
31 the two remote hosts. Note that this option disables the
32 progress meter.
33
34 -4 Forces scp to use IPv4 addresses only.
35
36 -6 Forces scp to use IPv6 addresses only.
37
38 -B Selects batch mode (prevents asking for passwords or
39 passphrases).
40
41 -C Compression enable. Passes the -C flag to ssh(1) to enable
42 compression.
43
44 -c cipher
45 Selects the cipher to use for encrypting the data transfer. This
46 option is directly passed to ssh(1).
47
48 -F ssh_config
49 Specifies an alternative per-user configuration file for ssh.
50 This option is directly passed to ssh(1).
51
52 -i identity_file
53 Selects the file from which the identity (private key) for public
54 key authentication is read. This option is directly passed to
55 ssh(1).
56
57 -l limit
58 Limits the used bandwidth, specified in Kbit/s.
59
60 -o ssh_option
61 Can be used to pass options to ssh in the format used in
62 ssh_config(5). This is useful for specifying options for which
63 there is no separate scp command-line flag. For full details of
64 the options listed below, and their possible values, see
65 ssh_config(5).
66
67 AddressFamily
68 BatchMode
69 BindAddress
70 CanonicalDomains
71 CanonicalizeFallbackLocal
72 CanonicalizeHostname
73 CanonicalizeMaxDots
74 CanonicalizePermittedCNAMEs
75 ChallengeResponseAuthentication
76 CheckHostIP
77 Cipher
78 Ciphers
79 Compression
80 CompressionLevel
81 ConnectionAttempts
82 ConnectTimeout
83 ControlMaster
84 ControlPath
85 ControlPersist
86 GlobalKnownHostsFile
87 GSSAPIAuthentication
88 GSSAPIDelegateCredentials
89 HashKnownHosts
90 Host
91 HostbasedAuthentication
92 HostbasedKeyTypes
93 HostKeyAlgorithms
94 HostKeyAlias
95 HostName
96 IdentityFile
97 IdentitiesOnly
98 IPQoS
99 KbdInteractiveAuthentication
100 KbdInteractiveDevices
101 KexAlgorithms
102 LogLevel
103 MACs
104 NoHostAuthenticationForLocalhost
105 NumberOfPasswordPrompts
106 PasswordAuthentication
107 PKCS11Provider
108 Port
109 PreferredAuthentications
110 Protocol
111 ProxyCommand
112 PubkeyAuthentication
113 RekeyLimit
114 RhostsRSAAuthentication
115 RSAAuthentication
116 SendEnv
117 ServerAliveInterval
118 ServerAliveCountMax
119 StrictHostKeyChecking
120 TCPKeepAlive
121 UpdateHostKeys
122 UsePrivilegedPort
123 User
124 UserKnownHostsFile
125 VerifyHostKeyDNS
126
127 -P port
128 Specifies the port to connect to on the remote host. Note that
129 this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already
130 reserved for preserving the times and modes of the file.
131
132 -p Preserves modification times, access times, and modes from the
133 original file.
134
135 -q Quiet mode: disables the progress meter as well as warning and
136 diagnostic messages from ssh(1).
137
138 -r Recursively copy entire directories. Note that scp follows
139 symbolic links encountered in the tree traversal.
140
141 -S program
142 Name of program to use for the encrypted connection. The program
143 must understand ssh(1) options.
144
145 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
146 about their progress. This is helpful in debugging connection,
147 authentication, and configuration problems.
148
149EXIT STATUS
150 The scp utility exitsM-BM- 0 on success, andM-BM- >0 if an error occurs.
151
152SEE ALSO
153 sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5),
154 sshd(8)
155
156HISTORY
157 scp is based on the rcp program in BSD source code from the Regents of
158 the University of California.
159
160AUTHORS
161 Timo Rinne <tri@iki.fi>
162 Tatu Ylonen <ylo@cs.hut.fi>
163
164OpenBSD 5.7 January 30, 2015 OpenBSD 5.7
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..77b6bb509
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,96 @@
1SFTP-SERVER(8) System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server M-bM-^@M-^S SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-ehR] [-d start_directory] [-f log_facility] [-l log_level]
8 [-P blacklisted_requests] [-p whitelisted_requests]
9 [-u umask]
10 sftp-server -Q protocol_feature
11
12DESCRIPTION
13 sftp-server is a program that speaks the server side of SFTP protocol to
14 stdout and expects client requests from stdin. sftp-server is not
15 intended to be called directly, but from sshd(8) using the Subsystem
16 option.
17
18 Command-line flags to sftp-server should be specified in the Subsystem
19 declaration. See sshd_config(5) for more information.
20
21 Valid options are:
22
23 -d start_directory
24 specifies an alternate starting directory for users. The
25 pathname may contain the following tokens that are expanded at
26 runtime: %% is replaced by a literal '%', %d is replaced by the
27 home directory of the user being authenticated, and %u is
28 replaced by the username of that user. The default is to use the
29 user's home directory. This option is useful in conjunction with
30 the sshd_config(5) ChrootDirectory option.
31
32 -e Causes sftp-server to print logging information to stderr instead
33 of syslog for debugging.
34
35 -f log_facility
36 Specifies the facility code that is used when logging messages
37 from sftp-server. The possible values are: DAEMON, USER, AUTH,
38 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
39 The default is AUTH.
40
41 -h Displays sftp-server usage information.
42
43 -l log_level
44 Specifies which messages will be logged by sftp-server. The
45 possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG,
46 DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions
47 that sftp-server performs on behalf of the client. DEBUG and
48 DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher
49 levels of debugging output. The default is ERROR.
50
51 -P blacklisted_requests
52 Specify a comma-separated list of SFTP protocol requests that are
53 banned by the server. sftp-server will reply to any blacklisted
54 request with a failure. The -Q flag can be used to determine the
55 supported request types. If both a blacklist and a whitelist are
56 specified, then the blacklist is applied before the whitelist.
57
58 -p whitelisted_requests
59 Specify a comma-separated list of SFTP protocol requests that are
60 permitted by the server. All request types that are not on the
61 whitelist will be logged and replied to with a failure message.
62
63 Care must be taken when using this feature to ensure that
64 requests made implicitly by SFTP clients are permitted.
65
66 -Q protocol_feature
67 Query protocol features supported by sftp-server. At present the
68 only feature that may be queried is M-bM-^@M-^\requestsM-bM-^@M-^], which may be used
69 for black or whitelisting (flags -P and -p respectively).
70
71 -R Places this instance of sftp-server into a read-only mode.
72 Attempts to open files for writing, as well as other operations
73 that change the state of the filesystem, will be denied.
74
75 -u umask
76 Sets an explicit umask(2) to be applied to newly-created files
77 and directories, instead of the user's default mask.
78
79 On some systems, sftp-server must be able to access /dev/log for logging
80 to work, and use of sftp-server in a chroot configuration therefore
81 requires that syslogd(8) establish a logging socket inside the chroot
82 directory.
83
84SEE ALSO
85 sftp(1), ssh(1), sshd_config(5), sshd(8)
86
87 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
88 filexfer-02.txt, October 2001, work in progress material.
89
90HISTORY
91 sftp-server first appeared in OpenBSD 2.8.
92
93AUTHORS
94 Markus Friedl <markus@openbsd.org>
95
96OpenBSD 5.7 December 11, 2014 OpenBSD 5.7
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..24fd9916d
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,383 @@
1SFTP(1) General Commands Manual SFTP(1)
2
3NAME
4 sftp M-bM-^@M-^S secure file transfer program
5
6SYNOPSIS
7 sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
8 [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
9 [-o ssh_option] [-P port] [-R num_requests] [-S program]
10 [-s subsystem | sftp_server] host
11 sftp [user@]host[:file ...]
12 sftp [user@]host[:dir[/]]
13 sftp -b batchfile [user@]host
14
15DESCRIPTION
16 sftp is an interactive file transfer program, similar to ftp(1), which
17 performs all operations over an encrypted ssh(1) transport. It may also
18 use many features of ssh, such as public key authentication and
19 compression. sftp connects and logs into the specified host, then enters
20 an interactive command mode.
21
22 The second usage format will retrieve files automatically if a non-
23 interactive authentication method is used; otherwise it will do so after
24 successful interactive authentication.
25
26 The third usage format allows sftp to start in a remote directory.
27
28 The final usage format allows for automated sessions using the -b option.
29 In such cases, it is necessary to configure non-interactive
30 authentication to obviate the need to enter a password at connection time
31 (see sshd(8) and ssh-keygen(1) for details).
32
33 Since some usage formats use colon characters to delimit host names from
34 path names, IPv6 addresses must be enclosed in square brackets to avoid
35 ambiguity.
36
37 The options are as follows:
38
39 -1 Specify the use of protocol version 1.
40
41 -2 Specify the use of protocol version 2.
42
43 -4 Forces sftp to use IPv4 addresses only.
44
45 -6 Forces sftp to use IPv6 addresses only.
46
47 -a Attempt to continue interrupted transfers rather than overwriting
48 existing partial or complete copies of files. If the partial
49 contents differ from those being transferred, then the resultant
50 file is likely to be corrupt.
51
52 -B buffer_size
53 Specify the size of the buffer that sftp uses when transferring
54 files. Larger buffers require fewer round trips at the cost of
55 higher memory consumption. The default is 32768 bytes.
56
57 -b batchfile
58 Batch mode reads a series of commands from an input batchfile
59 instead of stdin. Since it lacks user interaction it should be
60 used in conjunction with non-interactive authentication. A
61 batchfile of M-bM-^@M-^X-M-bM-^@M-^Y may be used to indicate standard input. sftp
62 will abort if any of the following commands fail: get, put,
63 reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod,
64 chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on
65 error can be suppressed on a command by command basis by
66 prefixing the command with a M-bM-^@M-^X-M-bM-^@M-^Y character (for example, -rm
67 /tmp/blah*).
68
69 -C Enables compression (via ssh's -C flag).
70
71 -c cipher
72 Selects the cipher to use for encrypting the data transfers.
73 This option is directly passed to ssh(1).
74
75 -D sftp_server_path
76 Connect directly to a local sftp server (rather than via ssh(1)).
77 This option may be useful in debugging the client and server.
78
79 -F ssh_config
80 Specifies an alternative per-user configuration file for ssh(1).
81 This option is directly passed to ssh(1).
82
83 -f Requests that files be flushed to disk immediately after
84 transfer. When uploading files, this feature is only enabled if
85 the server implements the "fsync@openssh.com" extension.
86
87 -i identity_file
88 Selects the file from which the identity (private key) for public
89 key authentication is read. This option is directly passed to
90 ssh(1).
91
92 -l limit
93 Limits the used bandwidth, specified in Kbit/s.
94
95 -o ssh_option
96 Can be used to pass options to ssh in the format used in
97 ssh_config(5). This is useful for specifying options for which
98 there is no separate sftp command-line flag. For example, to
99 specify an alternate port use: sftp -oPort=24. For full details
100 of the options listed below, and their possible values, see
101 ssh_config(5).
102
103 AddressFamily
104 BatchMode
105 BindAddress
106 CanonicalDomains
107 CanonicalizeFallbackLocal
108 CanonicalizeHostname
109 CanonicalizeMaxDots
110 CanonicalizePermittedCNAMEs
111 ChallengeResponseAuthentication
112 CheckHostIP
113 Cipher
114 Ciphers
115 Compression
116 CompressionLevel
117 ConnectionAttempts
118 ConnectTimeout
119 ControlMaster
120 ControlPath
121 ControlPersist
122 GlobalKnownHostsFile
123 GSSAPIAuthentication
124 GSSAPIDelegateCredentials
125 HashKnownHosts
126 Host
127 HostbasedAuthentication
128 HostbasedKeyTypes
129 HostKeyAlgorithms
130 HostKeyAlias
131 HostName
132 IdentityFile
133 IdentitiesOnly
134 IPQoS
135 KbdInteractiveAuthentication
136 KbdInteractiveDevices
137 KexAlgorithms
138 LogLevel
139 MACs
140 NoHostAuthenticationForLocalhost
141 NumberOfPasswordPrompts
142 PasswordAuthentication
143 PKCS11Provider
144 Port
145 PreferredAuthentications
146 Protocol
147 ProxyCommand
148 PubkeyAuthentication
149 RekeyLimit
150 RhostsRSAAuthentication
151 RSAAuthentication
152 SendEnv
153 ServerAliveInterval
154 ServerAliveCountMax
155 StrictHostKeyChecking
156 TCPKeepAlive
157 UpdateHostKeys
158 UsePrivilegedPort
159 User
160 UserKnownHostsFile
161 VerifyHostKeyDNS
162
163 -P port
164 Specifies the port to connect to on the remote host.
165
166 -p Preserves modification times, access times, and modes from the
167 original files transferred.
168
169 -q Quiet mode: disables the progress meter as well as warning and
170 diagnostic messages from ssh(1).
171
172 -R num_requests
173 Specify how many requests may be outstanding at any one time.
174 Increasing this may slightly improve file transfer speed but will
175 increase memory usage. The default is 64 outstanding requests.
176
177 -r Recursively copy entire directories when uploading and
178 downloading. Note that sftp does not follow symbolic links
179 encountered in the tree traversal.
180
181 -S program
182 Name of the program to use for the encrypted connection. The
183 program must understand ssh(1) options.
184
185 -s subsystem | sftp_server
186 Specifies the SSH2 subsystem or the path for an sftp server on
187 the remote host. A path is useful for using sftp over protocol
188 version 1, or when the remote sshd(8) does not have an sftp
189 subsystem configured.
190
191 -v Raise logging level. This option is also passed to ssh.
192
193INTERACTIVE COMMANDS
194 Once in interactive mode, sftp understands a set of commands similar to
195 those of ftp(1). Commands are case insensitive. Pathnames that contain
196 spaces must be enclosed in quotes. Any special characters contained
197 within pathnames that are recognized by glob(3) must be escaped with
198 backslashes (M-bM-^@M-^X\M-bM-^@M-^Y).
199
200 bye Quit sftp.
201
202 cd path
203 Change remote directory to path.
204
205 chgrp grp path
206 Change group of file path to grp. path may contain glob(3)
207 characters and may match multiple files. grp must be a numeric
208 GID.
209
210 chmod mode path
211 Change permissions of file path to mode. path may contain
212 glob(3) characters and may match multiple files.
213
214 chown own path
215 Change owner of file path to own. path may contain glob(3)
216 characters and may match multiple files. own must be a numeric
217 UID.
218
219 df [-hi] [path]
220 Display usage information for the filesystem holding the current
221 directory (or path if specified). If the -h flag is specified,
222 the capacity information will be displayed using "human-readable"
223 suffixes. The -i flag requests display of inode information in
224 addition to capacity information. This command is only supported
225 on servers that implement the M-bM-^@M-^\statvfs@openssh.comM-bM-^@M-^] extension.
226
227 exit Quit sftp.
228
229 get [-afPpr] remote-path [local-path]
230 Retrieve the remote-path and store it on the local machine. If
231 the local path name is not specified, it is given the same name
232 it has on the remote machine. remote-path may contain glob(3)
233 characters and may match multiple files. If it does and
234 local-path is specified, then local-path must specify a
235 directory.
236
237 If the -a flag is specified, then attempt to resume partial
238 transfers of existing files. Note that resumption assumes that
239 any partial copy of the local file matches the remote copy. If
240 the remote file contents differ from the partial local copy then
241 the resultant file is likely to be corrupt.
242
243 If the -f flag is specified, then fsync(2) will be called after
244 the file transfer has completed to flush the file to disk.
245
246 If either the -P or -p flag is specified, then full file
247 permissions and access times are copied too.
248
249 If the -r flag is specified then directories will be copied
250 recursively. Note that sftp does not follow symbolic links when
251 performing recursive transfers.
252
253 help Display help text.
254
255 lcd path
256 Change local directory to path.
257
258 lls [ls-options [path]]
259 Display local directory listing of either path or current
260 directory if path is not specified. ls-options may contain any
261 flags supported by the local system's ls(1) command. path may
262 contain glob(3) characters and may match multiple files.
263
264 lmkdir path
265 Create local directory specified by path.
266
267 ln [-s] oldpath newpath
268 Create a link from oldpath to newpath. If the -s flag is
269 specified the created link is a symbolic link, otherwise it is a
270 hard link.
271
272 lpwd Print local working directory.
273
274 ls [-1afhlnrSt] [path]
275 Display a remote directory listing of either path or the current
276 directory if path is not specified. path may contain glob(3)
277 characters and may match multiple files.
278
279 The following flags are recognized and alter the behaviour of ls
280 accordingly:
281
282 -1 Produce single columnar output.
283
284 -a List files beginning with a dot (M-bM-^@M-^X.M-bM-^@M-^Y).
285
286 -f Do not sort the listing. The default sort order is
287 lexicographical.
288
289 -h When used with a long format option, use unit suffixes:
290 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
291 and Exabyte in order to reduce the number of digits to
292 four or fewer using powers of 2 for sizes (K=1024,
293 M=1048576, etc.).
294
295 -l Display additional details including permissions and
296 ownership information.
297
298 -n Produce a long listing with user and group information
299 presented numerically.
300
301 -r Reverse the sort order of the listing.
302
303 -S Sort the listing by file size.
304
305 -t Sort the listing by last modification time.
306
307 lumask umask
308 Set local umask to umask.
309
310 mkdir path
311 Create remote directory specified by path.
312
313 progress
314 Toggle display of progress meter.
315
316 put [-afPpr] local-path [remote-path]
317 Upload local-path and store it on the remote machine. If the
318 remote path name is not specified, it is given the same name it
319 has on the local machine. local-path may contain glob(3)
320 characters and may match multiple files. If it does and
321 remote-path is specified, then remote-path must specify a
322 directory.
323
324 If the -a flag is specified, then attempt to resume partial
325 transfers of existing files. Note that resumption assumes that
326 any partial copy of the remote file matches the local copy. If
327 the local file contents differ from the remote local copy then
328 the resultant file is likely to be corrupt.
329
330 If the -f flag is specified, then a request will be sent to the
331 server to call fsync(2) after the file has been transferred.
332 Note that this is only supported by servers that implement the
333 "fsync@openssh.com" extension.
334
335 If either the -P or -p flag is specified, then full file
336 permissions and access times are copied too.
337
338 If the -r flag is specified then directories will be copied
339 recursively. Note that sftp does not follow symbolic links when
340 performing recursive transfers.
341
342 pwd Display remote working directory.
343
344 quit Quit sftp.
345
346 reget [-Ppr] remote-path [local-path]
347 Resume download of remote-path. Equivalent to get with the -a
348 flag set.
349
350 reput [-Ppr] [local-path] remote-path
351 Resume upload of [local-path]. Equivalent to put with the -a
352 flag set.
353
354 rename oldpath newpath
355 Rename remote file from oldpath to newpath.
356
357 rm path
358 Delete remote file specified by path.
359
360 rmdir path
361 Remove remote directory specified by path.
362
363 symlink oldpath newpath
364 Create a symbolic link from oldpath to newpath.
365
366 version
367 Display the sftp protocol version.
368
369 !command
370 Execute command in local shell.
371
372 ! Escape to local shell.
373
374 ? Synonym for help.
375
376SEE ALSO
377 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
378 ssh_config(5), sftp-server(8), sshd(8)
379
380 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
381 filexfer-00.txt, January 2001, work in progress material.
382
383OpenBSD 5.7 January 30, 2015 OpenBSD 5.7
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..66493f141
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,129 @@
1SSH-ADD(1) General Commands Manual SSH-ADD(1)
2
3NAME
4 ssh-add M-bM-^@M-^S adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdkLlXx] [-E fingerprint_hash] [-t life] [file ...]
8 ssh-add -s pkcs11
9 ssh-add -e pkcs11
10
11DESCRIPTION
12 ssh-add adds private key identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and
15 ~/.ssh/identity. After loading a private key, ssh-add will try to load
16 corresponding certificate information from the filename obtained by
17 appending -cert.pub to the name of the private key file. Alternative
18 file names can be given on the command line.
19
20 If any file requires a passphrase, ssh-add asks for the passphrase from
21 the user. The passphrase is read from the user's tty. ssh-add retries
22 the last passphrase if multiple identity files are given.
23
24 The authentication agent must be running and the SSH_AUTH_SOCK
25 environment variable must contain the name of its socket for ssh-add to
26 work.
27
28 The options are as follows:
29
30 -c Indicates that added identities should be subject to confirmation
31 before being used for authentication. Confirmation is performed
32 by ssh-askpass(1). Successful confirmation is signaled by a zero
33 exit status from ssh-askpass(1), rather than text entered into
34 the requester.
35
36 -D Deletes all identities from the agent.
37
38 -d Instead of adding identities, removes identities from the agent.
39 If ssh-add has been run without arguments, the keys for the
40 default identities and their corresponding certificates will be
41 removed. Otherwise, the argument list will be interpreted as a
42 list of paths to public key files to specify keys and
43 certificates to be removed from the agent. If no public key is
44 found at a given path, ssh-add will append .pub and retry.
45
46 -E fingerprint_hash
47 Specifies the hash algorithm used when displaying key
48 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
49 default is M-bM-^@M-^\sha256M-bM-^@M-^].
50
51 -e pkcs11
52 Remove keys provided by the PKCS#11 shared library pkcs11.
53
54 -k When loading keys into or deleting keys from the agent, process
55 plain private keys only and skip certificates.
56
57 -L Lists public key parameters of all identities currently
58 represented by the agent.
59
60 -l Lists fingerprints of all identities currently represented by the
61 agent.
62
63 -s pkcs11
64 Add keys provided by the PKCS#11 shared library pkcs11.
65
66 -t life
67 Set a maximum lifetime when adding identities to an agent. The
68 lifetime may be specified in seconds or in a time format
69 specified in sshd_config(5).
70
71 -X Unlock the agent.
72
73 -x Lock the agent with a password.
74
75ENVIRONMENT
76 DISPLAY and SSH_ASKPASS
77 If ssh-add needs a passphrase, it will read the passphrase from
78 the current terminal if it was run from a terminal. If ssh-add
79 does not have a terminal associated with it but DISPLAY and
80 SSH_ASKPASS are set, it will execute the program specified by
81 SSH_ASKPASS (by default M-bM-^@M-^\ssh-askpassM-bM-^@M-^]) and open an X11 window to
82 read the passphrase. This is particularly useful when calling
83 ssh-add from a .xsession or related script. (Note that on some
84 machines it may be necessary to redirect the input from /dev/null
85 to make this work.)
86
87 SSH_AUTH_SOCK
88 Identifies the path of a UNIX-domain socket used to communicate
89 with the agent.
90
91FILES
92 ~/.ssh/identity
93 Contains the protocol version 1 RSA authentication identity of
94 the user.
95
96 ~/.ssh/id_dsa
97 Contains the protocol version 2 DSA authentication identity of
98 the user.
99
100 ~/.ssh/id_ecdsa
101 Contains the protocol version 2 ECDSA authentication identity of
102 the user.
103
104 ~/.ssh/id_ed25519
105 Contains the protocol version 2 Ed25519 authentication identity
106 of the user.
107
108 ~/.ssh/id_rsa
109 Contains the protocol version 2 RSA authentication identity of
110 the user.
111
112 Identity files should not be readable by anyone but the user. Note that
113 ssh-add ignores identity files if they are accessible by others.
114
115EXIT STATUS
116 Exit status is 0 on success, 1 if the specified command fails, and 2 if
117 ssh-add is unable to contact the authentication agent.
118
119SEE ALSO
120 ssh(1), ssh-agent(1), ssh-askpass(1), ssh-keygen(1), sshd(8)
121
122AUTHORS
123 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
124 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
125 de Raadt and Dug Song removed many bugs, re-added newer features and
126 created OpenSSH. Markus Friedl contributed the support for SSH protocol
127 versions 1.5 and 2.0.
128
129OpenBSD 5.7 March 30, 2015 OpenBSD 5.7
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..eb892811c
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,112 @@
1SSH-AGENT(1) General Commands Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent M-bM-^@M-^S authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-Dd] [-a bind_address] [-E fingerprint_hash]
8 [-t life] [command [arg ...]]
9 ssh-agent [-c | -s] -k
10
11DESCRIPTION
12 ssh-agent is a program to hold private keys used for public key
13 authentication (RSA, DSA, ECDSA, Ed25519). ssh-agent is usually started
14 in the beginning of an X-session or a login session, and all other
15 windows or programs are started as clients to the ssh-agent program.
16 Through use of environment variables the agent can be located and
17 automatically used for authentication when logging in to other machines
18 using ssh(1).
19
20 The agent initially does not have any private keys. Keys are added using
21 ssh-add(1). Multiple identities may be stored in ssh-agent concurrently
22 and ssh(1) will automatically use them if present. ssh-add(1) is also
23 used to remove keys from ssh-agent and to query the keys that are held in
24 one.
25
26 The options are as follows:
27
28 -a bind_address
29 Bind the agent to the UNIX-domain socket bind_address. The
30 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
31
32 -c Generate C-shell commands on stdout. This is the default if
33 SHELL looks like it's a csh style of shell.
34
35 -D Foreground mode. When this option is specified ssh-agent will
36 not fork.
37
38 -d Debug mode. When this option is specified ssh-agent will not
39 fork and will write debug information to standard error.
40
41 -E fingerprint_hash
42 Specifies the hash algorithm used when displaying key
43 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
44 default is M-bM-^@M-^\sha256M-bM-^@M-^].
45
46 -k Kill the current agent (given by the SSH_AGENT_PID environment
47 variable).
48
49 -s Generate Bourne shell commands on stdout. This is the default if
50 SHELL does not look like it's a csh style of shell.
51
52 -t life
53 Set a default value for the maximum lifetime of identities added
54 to the agent. The lifetime may be specified in seconds or in a
55 time format specified in sshd_config(5). A lifetime specified
56 for an identity with ssh-add(1) overrides this value. Without
57 this option the default maximum lifetime is forever.
58
59 If a commandline is given, this is executed as a subprocess of the agent.
60 When the command dies, so does the agent.
61
62 The idea is that the agent is run in the user's local PC, laptop, or
63 terminal. Authentication data need not be stored on any other machine,
64 and authentication passphrases never go over the network. However, the
65 connection to the agent is forwarded over SSH remote logins, and the user
66 can thus use the privileges given by the identities anywhere in the
67 network in a secure way.
68
69 There are two main ways to get an agent set up: The first is that the
70 agent starts a new subcommand into which some environment variables are
71 exported, eg ssh-agent xterm &. The second is that the agent prints the
72 needed shell commands (either sh(1) or csh(1) syntax can be generated)
73 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
74 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
75 csh(1) and derivatives.
76
77 Later ssh(1) looks at these variables and uses them to establish a
78 connection to the agent.
79
80 The agent will never send a private key over its request channel.
81 Instead, operations that require a private key will be performed by the
82 agent, and the result will be returned to the requester. This way,
83 private keys are not exposed to clients using the agent.
84
85 A UNIX-domain socket is created and the name of this socket is stored in
86 the SSH_AUTH_SOCK environment variable. The socket is made accessible
87 only to the current user. This method is easily abused by root or
88 another instance of the same user.
89
90 The SSH_AGENT_PID environment variable holds the agent's process ID.
91
92 The agent exits automatically when the command given on the command line
93 terminates.
94
95FILES
96 $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
97 UNIX-domain sockets used to contain the connection to the
98 authentication agent. These sockets should only be readable by
99 the owner. The sockets should get automatically removed when the
100 agent exits.
101
102SEE ALSO
103 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
104
105AUTHORS
106 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
107 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
108 de Raadt and Dug Song removed many bugs, re-added newer features and
109 created OpenSSH. Markus Friedl contributed the support for SSH protocol
110 versions 1.5 and 2.0.
111
112OpenBSD 5.7 April 24, 2015 OpenBSD 5.7
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..784ad032f
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,566 @@
1SSH-KEYGEN(1) General Commands Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen M-bM-^@M-^S authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1]
8 [-N new_passphrase] [-C comment] [-f output_keyfile]
9 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
10 ssh-keygen -i [-m key_format] [-f input_keyfile]
11 ssh-keygen -e [-m key_format] [-f input_keyfile]
12 ssh-keygen -y [-f input_keyfile]
13 ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
14 ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]
15 ssh-keygen -B [-f input_keyfile]
16 ssh-keygen -D pkcs11
17 ssh-keygen -F hostname [-f known_hosts_file] [-l]
18 ssh-keygen -H [-f known_hosts_file]
19 ssh-keygen -R hostname [-f known_hosts_file]
20 ssh-keygen -r hostname [-f input_keyfile] [-g]
21 ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
22 ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines]
23 [-j start_line] [-K checkpt] [-W generator]
24 ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals]
25 [-O option] [-V validity_interval] [-z serial_number] file ...
26 ssh-keygen -L [-f input_keyfile]
27 ssh-keygen -A
28 ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number]
29 file ...
30 ssh-keygen -Q -f krl_file file ...
31
32DESCRIPTION
33 ssh-keygen generates, manages and converts authentication keys for
34 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
35 and DSA, ECDSA, Ed25519 or RSA keys for use by SSH protocol version 2.
36 The type of key to be generated is specified with the -t option. If
37 invoked without any arguments, ssh-keygen will generate an RSA key for
38 use in SSH protocol 2 connections.
39
40 ssh-keygen is also used to generate groups for use in Diffie-Hellman
41 group exchange (DH-GEX). See the MODULI GENERATION section for details.
42
43 Finally, ssh-keygen can be used to generate and update Key Revocation
44 Lists, and to test whether given keys have been revoked by one. See the
45 KEY REVOCATION LISTS section for details.
46
47 Normally each user wishing to use SSH with public key authentication runs
48 this once to create the authentication key in ~/.ssh/identity,
49 ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa.
50 Additionally, the system administrator may use this to generate host
51 keys, as seen in /etc/rc.
52
53 Normally this program generates the key and asks for a file in which to
54 store the private key. The public key is stored in a file with the same
55 name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The
56 passphrase may be empty to indicate no passphrase (host keys must have an
57 empty passphrase), or it may be a string of arbitrary length. A
58 passphrase is similar to a password, except it can be a phrase with a
59 series of words, punctuation, numbers, whitespace, or any string of
60 characters you want. Good passphrases are 10-30 characters long, are not
61 simple sentences or otherwise easily guessable (English prose has only
62 1-2 bits of entropy per character, and provides very bad passphrases),
63 and contain a mix of upper and lowercase letters, numbers, and non-
64 alphanumeric characters. The passphrase can be changed later by using
65 the -p option.
66
67 There is no way to recover a lost passphrase. If the passphrase is lost
68 or forgotten, a new key must be generated and the corresponding public
69 key copied to other machines.
70
71 For RSA1 keys, there is also a comment field in the key file that is only
72 for convenience to the user to help identify the key. The comment can
73 tell what the key is for, or whatever is useful. The comment is
74 initialized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the key is created, but can be changed
75 using the -c option.
76
77 After a key is generated, instructions below detail where the keys should
78 be placed to be activated.
79
80 The options are as follows:
81
82 -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for
83 which host keys do not exist, generate the host keys with the
84 default key file path, an empty passphrase, default bits for the
85 key type, and default comment. This is used by /etc/rc to
86 generate new host keys.
87
88 -a rounds
89 When saving a new-format private key (i.e. an ed25519 key or any
90 SSH protocol 2 key when the -o flag is set), this option
91 specifies the number of KDF (key derivation function) rounds
92 used. Higher numbers result in slower passphrase verification
93 and increased resistance to brute-force password cracking (should
94 the keys be stolen).
95
96 When screening DH-GEX candidates ( using the -T command). This
97 option specifies the number of primality tests to perform.
98
99 -B Show the bubblebabble digest of specified private or public key
100 file.
101
102 -b bits
103 Specifies the number of bits in the key to create. For RSA keys,
104 the minimum size is 768 bits and the default is 2048 bits.
105 Generally, 2048 bits is considered sufficient. DSA keys must be
106 exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
107 the -b flag determines the key length by selecting from one of
108 three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
109 use bit lengths other than these three values for ECDSA keys will
110 fail. Ed25519 keys have a fixed length and the -b flag will be
111 ignored.
112
113 -C comment
114 Provides a new comment.
115
116 -c Requests changing the comment in the private and public key
117 files. This operation is only supported for RSA1 keys. The
118 program will prompt for the file containing the private keys, for
119 the passphrase if the key has one, and for the new comment.
120
121 -D pkcs11
122 Download the RSA public keys provided by the PKCS#11 shared
123 library pkcs11. When used in combination with -s, this option
124 indicates that a CA key resides in a PKCS#11 token (see the
125 CERTIFICATES section for details).
126
127 -E fingerprint_hash
128 Specifies the hash algorithm used when displaying key
129 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
130 default is M-bM-^@M-^\sha256M-bM-^@M-^].
131
132 -e This option will read a private or public OpenSSH key file and
133 print to stdout the key in one of the formats specified by the -m
134 option. The default export format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. This option
135 allows exporting OpenSSH keys for use by other programs,
136 including several commercial SSH implementations.
137
138 -F hostname
139 Search for the specified hostname in a known_hosts file, listing
140 any occurrences found. This option is useful to find hashed host
141 names or addresses and may also be used in conjunction with the
142 -H option to print found keys in a hashed format.
143
144 -f filename
145 Specifies the filename of the key file.
146
147 -G output_file
148 Generate candidate primes for DH-GEX. These primes must be
149 screened for safety (using the -T option) before use.
150
151 -g Use generic DNS format when printing fingerprint resource records
152 using the -r command.
153
154 -H Hash a known_hosts file. This replaces all hostnames and
155 addresses with hashed representations within the specified file;
156 the original content is moved to a file with a .old suffix.
157 These hashes may be used normally by ssh and sshd, but they do
158 not reveal identifying information should the file's contents be
159 disclosed. This option will not modify existing hashed hostnames
160 and is therefore safe to use on files that mix hashed and non-
161 hashed names.
162
163 -h When signing a key, create a host certificate instead of a user
164 certificate. Please see the CERTIFICATES section for details.
165
166 -I certificate_identity
167 Specify the key identity when signing a public key. Please see
168 the CERTIFICATES section for details.
169
170 -i This option will read an unencrypted private (or public) key file
171 in the format specified by the -m option and print an OpenSSH
172 compatible private (or public) key to stdout. This option allows
173 importing keys from other software, including several commercial
174 SSH implementations. The default import format is M-bM-^@M-^\RFC4716M-bM-^@M-^].
175
176 -J num_lines
177 Exit after screening the specified number of lines while
178 performing DH candidate screening using the -T option.
179
180 -j start_line
181 Start screening at the specified line number while performing DH
182 candidate screening using the -T option.
183
184 -K checkpt
185 Write the last line processed to the file checkpt while
186 performing DH candidate screening using the -T option. This will
187 be used to skip lines in the input file that have already been
188 processed if the job is restarted.
189
190 -k Generate a KRL file. In this mode, ssh-keygen will generate a
191 KRL file at the location specified via the -f flag that revokes
192 every key or certificate presented on the command line.
193 Keys/certificates to be revoked may be specified by public key
194 file or using the format described in the KEY REVOCATION LISTS
195 section.
196
197 -L Prints the contents of a certificate.
198
199 -l Show fingerprint of specified public key file. Private RSA1 keys
200 are also supported. For RSA and DSA keys ssh-keygen tries to
201 find the matching public key file and prints its fingerprint. If
202 combined with -v, an ASCII art representation of the key is
203 supplied with the fingerprint.
204
205 -M memory
206 Specify the amount of memory to use (in megabytes) when
207 generating candidate moduli for DH-GEX.
208
209 -m key_format
210 Specify a key format for the -i (import) or -e (export)
211 conversion options. The supported key formats are: M-bM-^@M-^\RFC4716M-bM-^@M-^]
212 (RFC 4716/SSH2 public or private key), M-bM-^@M-^\PKCS8M-bM-^@M-^] (PEM PKCS8 public
213 key) or M-bM-^@M-^\PEMM-bM-^@M-^] (PEM public key). The default conversion format is
214 M-bM-^@M-^\RFC4716M-bM-^@M-^].
215
216 -N new_passphrase
217 Provides the new passphrase.
218
219 -n principals
220 Specify one or more principals (user or host names) to be
221 included in a certificate when signing a key. Multiple
222 principals may be specified, separated by commas. Please see the
223 CERTIFICATES section for details.
224
225 -O option
226 Specify a certificate option when signing a key. This option may
227 be specified multiple times. Please see the CERTIFICATES section
228 for details. The options that are valid for user certificates
229 are:
230
231 clear Clear all enabled permissions. This is useful for
232 clearing the default set of permissions so permissions
233 may be added individually.
234
235 force-command=command
236 Forces the execution of command instead of any shell or
237 command specified by the user when the certificate is
238 used for authentication.
239
240 no-agent-forwarding
241 Disable ssh-agent(1) forwarding (permitted by default).
242
243 no-port-forwarding
244 Disable port forwarding (permitted by default).
245
246 no-pty Disable PTY allocation (permitted by default).
247
248 no-user-rc
249 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
250 default).
251
252 no-x11-forwarding
253 Disable X11 forwarding (permitted by default).
254
255 permit-agent-forwarding
256 Allows ssh-agent(1) forwarding.
257
258 permit-port-forwarding
259 Allows port forwarding.
260
261 permit-pty
262 Allows PTY allocation.
263
264 permit-user-rc
265 Allows execution of ~/.ssh/rc by sshd(8).
266
267 permit-x11-forwarding
268 Allows X11 forwarding.
269
270 source-address=address_list
271 Restrict the source addresses from which the certificate
272 is considered valid. The address_list is a comma-
273 separated list of one or more address/netmask pairs in
274 CIDR format.
275
276 At present, no options are valid for host keys.
277
278 -o Causes ssh-keygen to save SSH protocol 2 private keys using the
279 new OpenSSH format rather than the more compatible PEM format.
280 The new format has increased resistance to brute-force password
281 cracking but is not supported by versions of OpenSSH prior to
282 6.5. Ed25519 keys always use the new private key format.
283
284 -P passphrase
285 Provides the (old) passphrase.
286
287 -p Requests changing the passphrase of a private key file instead of
288 creating a new private key. The program will prompt for the file
289 containing the private key, for the old passphrase, and twice for
290 the new passphrase.
291
292 -Q Test whether keys have been revoked in a KRL.
293
294 -q Silence ssh-keygen.
295
296 -R hostname
297 Removes all keys belonging to hostname from a known_hosts file.
298 This option is useful to delete hashed hosts (see the -H option
299 above).
300
301 -r hostname
302 Print the SSHFP fingerprint resource record named hostname for
303 the specified public key file.
304
305 -S start
306 Specify start point (in hex) when generating candidate moduli for
307 DH-GEX.
308
309 -s ca_key
310 Certify (sign) a public key using the specified CA key. Please
311 see the CERTIFICATES section for details.
312
313 When generating a KRL, -s specifies a path to a CA public key
314 file used to revoke certificates directly by key ID or serial
315 number. See the KEY REVOCATION LISTS section for details.
316
317 -T output_file
318 Test DH group exchange candidate primes (generated using the -G
319 option) for safety.
320
321 -t dsa | ecdsa | ed25519 | rsa | rsa1
322 Specifies the type of key to create. The possible values are
323 M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or
324 M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2.
325
326 -u Update a KRL. When specified with -k, keys listed via the
327 command line are added to the existing KRL rather than a new KRL
328 being created.
329
330 -V validity_interval
331 Specify a validity interval when signing a certificate. A
332 validity interval may consist of a single time, indicating that
333 the certificate is valid beginning now and expiring at that time,
334 or may consist of two times separated by a colon to indicate an
335 explicit time interval. The start time may be specified as a
336 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
337 relative time (to the current time) consisting of a minus sign
338 followed by a relative time in the format described in the TIME
339 FORMATS section of sshd_config(5). The end time may be specified
340 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
341 starting with a plus character.
342
343 For example: M-bM-^@M-^\+52w1dM-bM-^@M-^] (valid from now to 52 weeks and one day
344 from now), M-bM-^@M-^\-4w:+4wM-bM-^@M-^] (valid from four weeks ago to four weeks
345 from now), M-bM-^@M-^\20100101123000:20110101123000M-bM-^@M-^] (valid from 12:30 PM,
346 January 1st, 2010 to 12:30 PM, January 1st, 2011), M-bM-^@M-^\-1d:20110101M-bM-^@M-^]
347 (valid from yesterday to midnight, January 1st, 2011).
348
349 -v Verbose mode. Causes ssh-keygen to print debugging messages
350 about its progress. This is helpful for debugging moduli
351 generation. Multiple -v options increase the verbosity. The
352 maximum is 3.
353
354 -W generator
355 Specify desired generator when testing candidate moduli for DH-
356 GEX.
357
358 -y This option will read a private OpenSSH format file and print an
359 OpenSSH public key to stdout.
360
361 -z serial_number
362 Specifies a serial number to be embedded in the certificate to
363 distinguish this certificate from others from the same CA. The
364 default serial number is zero.
365
366 When generating a KRL, the -z flag is used to specify a KRL
367 version number.
368
369MODULI GENERATION
370 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
371 Exchange (DH-GEX) protocol. Generating these groups is a two-step
372 process: first, candidate primes are generated using a fast, but memory
373 intensive process. These candidate primes are then tested for
374 suitability (a CPU-intensive process).
375
376 Generation of primes is performed using the -G option. The desired
377 length of the primes may be specified by the -b option. For example:
378
379 # ssh-keygen -G moduli-2048.candidates -b 2048
380
381 By default, the search for primes begins at a random point in the desired
382 length range. This may be overridden using the -S option, which
383 specifies a different start point (in hex).
384
385 Once a set of candidates have been generated, they must be screened for
386 suitability. This may be performed using the -T option. In this mode
387 ssh-keygen will read candidates from standard input (or a file specified
388 using the -f option). For example:
389
390 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
391
392 By default, each candidate will be subjected to 100 primality tests.
393 This may be overridden using the -a option. The DH generator value will
394 be chosen automatically for the prime under consideration. If a specific
395 generator is desired, it may be requested using the -W option. Valid
396 generator values are 2, 3, and 5.
397
398 Screened DH groups may be installed in /etc/moduli. It is important that
399 this file contains moduli of a range of bit lengths and that both ends of
400 a connection share common moduli.
401
402CERTIFICATES
403 ssh-keygen supports signing of keys to produce certificates that may be
404 used for user or host authentication. Certificates consist of a public
405 key, some identity information, zero or more principal (user or host)
406 names and a set of options that are signed by a Certification Authority
407 (CA) key. Clients or servers may then trust only the CA key and verify
408 its signature on a certificate rather than trusting many user/host keys.
409 Note that OpenSSH certificates are a different, and much simpler, format
410 to the X.509 certificates used in ssl(8).
411
412 ssh-keygen supports two types of certificates: user and host. User
413 certificates authenticate users to servers, whereas host certificates
414 authenticate server hosts to users. To generate a user certificate:
415
416 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
417
418 The resultant certificate will be placed in /path/to/user_key-cert.pub.
419 A host certificate requires the -h option:
420
421 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
422
423 The host certificate will be output to /path/to/host_key-cert.pub.
424
425 It is possible to sign using a CA key stored in a PKCS#11 token by
426 providing the token library using -D and identifying the CA key by
427 providing its public half as an argument to -s:
428
429 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub
430
431 In all cases, key_id is a "key identifier" that is logged by the server
432 when the certificate is used for authentication.
433
434 Certificates may be limited to be valid for a set of principal
435 (user/host) names. By default, generated certificates are valid for all
436 users or hosts. To generate a certificate for a specified set of
437 principals:
438
439 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
440 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
441
442 Additional limitations on the validity and use of user certificates may
443 be specified through certificate options. A certificate option may
444 disable features of the SSH session, may be valid only when presented
445 from particular source addresses or may force the use of a specific
446 command. For a list of valid certificate options, see the documentation
447 for the -O option above.
448
449 Finally, certificates may be defined with a validity lifetime. The -V
450 option allows specification of certificate start and end times. A
451 certificate that is presented at a time outside this range will not be
452 considered valid. By default, certificates are valid from UNIX Epoch to
453 the distant future.
454
455 For certificates to be used for user or host authentication, the CA
456 public key must be trusted by sshd(8) or ssh(1). Please refer to those
457 manual pages for details.
458
459KEY REVOCATION LISTS
460 ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs).
461 These binary files specify keys or certificates to be revoked using a
462 compact format, taking as little as one bit per certificate if they are
463 being revoked by serial number.
464
465 KRLs may be generated using the -k flag. This option reads one or more
466 files from the command line and generates a new KRL. The files may
467 either contain a KRL specification (see below) or public keys, listed one
468 per line. Plain public keys are revoked by listing their hash or
469 contents in the KRL and certificates revoked by serial number or key ID
470 (if the serial is zero or not available).
471
472 Revoking keys using a KRL specification offers explicit control over the
473 types of record used to revoke keys and may be used to directly revoke
474 certificates by serial number or key ID without having the complete
475 original certificate on hand. A KRL specification consists of lines
476 containing one of the following directives followed by a colon and some
477 directive-specific information.
478
479 serial: serial_number[-serial_number]
480 Revokes a certificate with the specified serial number. Serial
481 numbers are 64-bit values, not including zero and may be
482 expressed in decimal, hex or octal. If two serial numbers are
483 specified separated by a hyphen, then the range of serial numbers
484 including and between each is revoked. The CA key must have been
485 specified on the ssh-keygen command line using the -s option.
486
487 id: key_id
488 Revokes a certificate with the specified key ID string. The CA
489 key must have been specified on the ssh-keygen command line using
490 the -s option.
491
492 key: public_key
493 Revokes the specified key. If a certificate is listed, then it
494 is revoked as a plain public key.
495
496 sha1: public_key
497 Revokes the specified key by its SHA1 hash.
498
499 KRLs may be updated using the -u flag in addition to -k. When this
500 option is specified, keys listed via the command line are merged into the
501 KRL, adding to those already there.
502
503 It is also possible, given a KRL, to test whether it revokes a particular
504 key (or keys). The -Q flag will query an existing KRL, testing each key
505 specified on the commandline. If any key listed on the command line has
506 been revoked (or an error encountered) then ssh-keygen will exit with a
507 non-zero exit status. A zero exit status will only be returned if no key
508 was revoked.
509
510FILES
511 ~/.ssh/identity
512 Contains the protocol version 1 RSA authentication identity of
513 the user. This file should not be readable by anyone but the
514 user. It is possible to specify a passphrase when generating the
515 key; that passphrase will be used to encrypt the private part of
516 this file using 3DES. This file is not automatically accessed by
517 ssh-keygen but it is offered as the default file for the private
518 key. ssh(1) will read this file when a login attempt is made.
519
520 ~/.ssh/identity.pub
521 Contains the protocol version 1 RSA public key for
522 authentication. The contents of this file should be added to
523 ~/.ssh/authorized_keys on all machines where the user wishes to
524 log in using RSA authentication. There is no need to keep the
525 contents of this file secret.
526
527 ~/.ssh/id_dsa
528 ~/.ssh/id_ecdsa
529 ~/.ssh/id_ed25519
530 ~/.ssh/id_rsa
531 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA
532 authentication identity of the user. This file should not be
533 readable by anyone but the user. It is possible to specify a
534 passphrase when generating the key; that passphrase will be used
535 to encrypt the private part of this file using 128-bit AES. This
536 file is not automatically accessed by ssh-keygen but it is
537 offered as the default file for the private key. ssh(1) will
538 read this file when a login attempt is made.
539
540 ~/.ssh/id_dsa.pub
541 ~/.ssh/id_ecdsa.pub
542 ~/.ssh/id_ed25519.pub
543 ~/.ssh/id_rsa.pub
544 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA public
545 key for authentication. The contents of this file should be
546 added to ~/.ssh/authorized_keys on all machines where the user
547 wishes to log in using public key authentication. There is no
548 need to keep the contents of this file secret.
549
550 /etc/moduli
551 Contains Diffie-Hellman groups used for DH-GEX. The file format
552 is described in moduli(5).
553
554SEE ALSO
555 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
556
557 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
558
559AUTHORS
560 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
561 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
562 de Raadt and Dug Song removed many bugs, re-added newer features and
563 created OpenSSH. Markus Friedl contributed the support for SSH protocol
564 versions 1.5 and 2.0.
565
566OpenBSD 5.7 February 24, 2015 OpenBSD 5.7
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..fe7aa8559
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,109 @@
1SSH-KEYSCAN(1) General Commands Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan M-bM-^@M-^S gather ssh public keys
5
6SYNOPSIS
7 ssh-keyscan [-46Hv] [-f file] [-p port] [-T timeout] [-t type]
8 [host | addrlist namelist] ...
9
10DESCRIPTION
11 ssh-keyscan is a utility for gathering the public ssh host keys of a
12 number 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
17 possible 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
21 process 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 M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from file, one per line.
31 If - is supplied instead of a filename, ssh-keyscan will read
32 hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] 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
36 identifying 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.
46 Default 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 M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^],
51 M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. Multiple
52 values may be specified by separating them with commas. The
53 default is to fetch M-bM-^@M-^\rsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], and M-bM-^@M-^\ed25519M-bM-^@M-^] keys.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without
60 verifying the keys, users will be vulnerable to man in the middle
61 attacks. On the other hand, if the security model allows such a risk,
62 ssh-keyscan can help in the detection of tampered keyfiles or man in the
63 middle attacks which have begun after the ssh_known_hosts file was
64 created.
65
66FILES
67 Input format:
68
69 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
70
71 Output format for RSA1 keys:
72
73 host-or-namelist bits exponent modulus
74
75 Output format for RSA, DSA, ECDSA, and Ed25519 keys:
76
77 host-or-namelist keytype base64-encoded-key
78
79 Where keytype is either M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^],
80 M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or M-bM-^@M-^\ssh-rsaM-bM-^@M-^].
81
82 /etc/ssh/ssh_known_hosts
83
84EXAMPLES
85 Print the rsa host key for machine hostname:
86
87 $ ssh-keyscan hostname
88
89 Find all hosts from the file ssh_hosts which have new or different keys
90 from those in the sorted file ssh_known_hosts:
91
92 $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \
93 sort -u - ssh_known_hosts | diff ssh_known_hosts -
94
95SEE ALSO
96 ssh(1), sshd(8)
97
98AUTHORS
99 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
100 Davison <wayned@users.sourceforge.net> added support for protocol version
101 2.
102
103BUGS
104 It generates "Connection closed by remote host" messages on the consoles
105 of all the machines it scans if the server is older than version 2.9.
106 This is because it opens a connection to the ssh port, reads the public
107 key, and drops the connection as soon as it gets the key.
108
109OpenBSD 5.7 August 30, 2014 OpenBSD 5.7
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..b06107617
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,53 @@
1SSH-KEYSIGN(8) System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign M-bM-^@M-^S ssh helper program for host-based authentication
5
6SYNOPSIS
7 ssh-keysign
8
9DESCRIPTION
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 M-bM-^@M-^\yesM-bM-^@M-^].
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
20 authentication.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key
27 /etc/ssh/ssh_host_ecdsa_key
28 /etc/ssh/ssh_host_ed25519_key
29 /etc/ssh/ssh_host_rsa_key
30 These files contain the private parts of the host keys used to
31 generate the digital signature. They should be owned by root,
32 readable only by root, and not accessible to others. Since they
33 are readable only by root, ssh-keysign must be set-uid root if
34 host-based authentication is used.
35
36 /etc/ssh/ssh_host_dsa_key-cert.pub
37 /etc/ssh/ssh_host_ecdsa_key-cert.pub
38 /etc/ssh/ssh_host_ed25519_key-cert.pub
39 /etc/ssh/ssh_host_rsa_key-cert.pub
40 If these files exist they are assumed to contain public
41 certificate information corresponding with the private keys
42 above.
43
44SEE ALSO
45 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
46
47HISTORY
48 ssh-keysign first appeared in OpenBSD 3.2.
49
50AUTHORS
51 Markus Friedl <markus@openbsd.org>
52
53OpenBSD 5.7 December 7, 2013 OpenBSD 5.7
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..a4d6dd4c0
--- /dev/null
+++ b/ssh-pkcs11-helper.0
@@ -0,0 +1,25 @@
1SSH-PKCS11-HELPER(8) System Manager's Manual SSH-PKCS11-HELPER(8)
2
3NAME
4 ssh-pkcs11-helper M-bM-^@M-^S ssh-agent helper program for PKCS#11 support
5
6SYNOPSIS
7 ssh-pkcs11-helper
8
9DESCRIPTION
10 ssh-pkcs11-helper is used by ssh-agent(1) to access keys provided by a
11 PKCS#11 token.
12
13 ssh-pkcs11-helper is not intended to be invoked by the user, but from
14 ssh-agent(1).
15
16SEE ALSO
17 ssh(1), ssh-add(1), ssh-agent(1)
18
19HISTORY
20 ssh-pkcs11-helper first appeared in OpenBSD 4.7.
21
22AUTHORS
23 Markus Friedl <markus@openbsd.org>
24
25OpenBSD 5.7 July 16, 2013 OpenBSD 5.7
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..5aaeb8d13
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,960 @@
1SSH(1) General Commands Manual SSH(1)
2
3NAME
4 ssh M-bM-^@M-^S OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
8 [-D [bind_address:]port] [-E log_file] [-e escape_char]
9 [-F configfile] [-I pkcs11] [-i identity_file]
10 [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]
11 [-O ctl_cmd] [-o option] [-p port]
12 [-Q cipher | cipher-auth | mac | kex | key | protocol-version]
13 [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
14 [-w local_tun[:remote_tun]] [user@]hostname [command]
15
16DESCRIPTION
17 ssh (SSH client) is a program for logging into a remote machine and for
18 executing commands on a remote machine. It is intended to replace rlogin
19 and rsh, and provide secure encrypted communications between two
20 untrusted hosts over an insecure network. X11 connections, arbitrary TCP
21 ports and UNIX-domain sockets can also be forwarded over the secure
22 channel.
23
24 ssh connects and logs into the specified hostname (with optional user
25 name). The user must prove his/her identity to the remote machine using
26 one of several methods depending on the protocol version used (see
27 below).
28
29 If command is specified, it is executed on the remote host instead of a
30 login shell.
31
32 The options are as follows:
33
34 -1 Forces ssh to try protocol version 1 only.
35
36 -2 Forces ssh to try protocol version 2 only.
37
38 -4 Forces ssh to use IPv4 addresses only.
39
40 -6 Forces ssh to use IPv6 addresses only.
41
42 -A Enables forwarding of the authentication agent connection. This
43 can also be specified on a per-host basis in a configuration
44 file.
45
46 Agent forwarding should be enabled with caution. Users with the
47 ability to bypass file permissions on the remote host (for the
48 agent's UNIX-domain socket) can access the local agent through
49 the forwarded connection. An attacker cannot obtain key material
50 from the agent, however they can perform operations on the keys
51 that enable them to authenticate using the identities loaded into
52 the agent.
53
54 -a Disables forwarding of the authentication agent connection.
55
56 -b bind_address
57 Use bind_address on the local machine as the source address of
58 the connection. Only useful on systems with more than one
59 address.
60
61 -C Requests compression of all data (including stdin, stdout,
62 stderr, and data for forwarded X11, TCP and UNIX-domain
63 connections). The compression algorithm is the same used by
64 gzip(1), and the M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the
65 CompressionLevel option for protocol version 1. Compression is
66 desirable on modem lines and other slow connections, but will
67 only slow down things on fast networks. The default value can be
68 set on a host-by-host basis in the configuration files; see the
69 Compression option.
70
71 -c cipher_spec
72 Selects the cipher specification for encrypting the session.
73
74 Protocol version 1 allows specification of a single cipher. The
75 supported values are M-bM-^@M-^\3desM-bM-^@M-^], M-bM-^@M-^\blowfishM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^]. For protocol
76 version 2, cipher_spec is a comma-separated list of ciphers
77 listed in order of preference. See the Ciphers keyword in
78 ssh_config(5) for more information.
79
80 -D [bind_address:]port
81 Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] application-level port forwarding.
82 This works by allocating a socket to listen to port on the local
83 side, optionally bound to the specified bind_address. Whenever a
84 connection is made to this port, the connection is forwarded over
85 the secure channel, and the application protocol is then used to
86 determine where to connect to from the remote machine. Currently
87 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
88 as a SOCKS server. Only root can forward privileged ports.
89 Dynamic port forwardings can also be specified in the
90 configuration file.
91
92 IPv6 addresses can be specified by enclosing the address in
93 square brackets. Only the superuser can forward privileged
94 ports. By default, the local port is bound in accordance with
95 the GatewayPorts setting. However, an explicit bind_address may
96 be used to bind the connection to a specific address. The
97 bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be
98 bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates
99 that the port should be available from all interfaces.
100
101 -E log_file
102 Append debug logs to log_file instead of standard error.
103
104 -e escape_char
105 Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y).
106 The escape character is only recognized at the beginning of a
107 line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the
108 connection; followed by control-Z suspends the connection; and
109 followed by itself sends the escape character once. Setting the
110 character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session
111 fully transparent.
112
113 -F configfile
114 Specifies an alternative per-user configuration file. If a
115 configuration file is given on the command line, the system-wide
116 configuration file (/etc/ssh/ssh_config) will be ignored. The
117 default for the per-user configuration file is ~/.ssh/config.
118
119 -f Requests ssh to go to background just before command execution.
120 This is useful if ssh is going to ask for passwords or
121 passphrases, but the user wants it in the background. This
122 implies -n. The recommended way to start X11 programs at a
123 remote site is with something like ssh -f host xterm.
124
125 If the ExitOnForwardFailure configuration option is set to M-bM-^@M-^\yesM-bM-^@M-^],
126 then a client started with -f will wait for all remote port
127 forwards to be successfully established before placing itself in
128 the background.
129
130 -G Causes ssh to print its configuration after evaluating Host and
131 Match blocks and exit.
132
133 -g Allows remote hosts to connect to local forwarded ports. If used
134 on a multiplexed connection, then this option must be specified
135 on the master process.
136
137 -I pkcs11
138 Specify the PKCS#11 shared library ssh should use to communicate
139 with a PKCS#11 token providing the user's private RSA key.
140
141 -i identity_file
142 Selects a file from which the identity (private key) for public
143 key authentication is read. The default is ~/.ssh/identity for
144 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
145 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
146 Identity files may also be specified on a per-host basis in the
147 configuration file. It is possible to have multiple -i options
148 (and multiple identities specified in configuration files). ssh
149 will also try to load certificate information from the filename
150 obtained by appending -cert.pub to identity filenames.
151
152 -K Enables GSSAPI-based authentication and forwarding (delegation)
153 of GSSAPI credentials to the server.
154
155 -k Disables forwarding (delegation) of GSSAPI credentials to the
156 server.
157
158 -L [bind_address:]port:host:hostport
159 Specifies that the given port on the local (client) host is to be
160 forwarded to the given host and port on the remote side. This
161 works by allocating a socket to listen to port on the local side,
162 optionally bound to the specified bind_address. Whenever a
163 connection is made to this port, the connection is forwarded over
164 the secure channel, and a connection is made to host port
165 hostport from the remote machine. Port forwardings can also be
166 specified in the configuration file. IPv6 addresses can be
167 specified by enclosing the address in square brackets. Only the
168 superuser can forward privileged ports. By default, the local
169 port is bound in accordance with the GatewayPorts setting.
170 However, an explicit bind_address may be used to bind the
171 connection to a specific address. The bind_address of
172 M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local
173 use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port
174 should be available from all interfaces.
175
176 -l login_name
177 Specifies the user to log in as on the remote machine. This also
178 may be specified on a per-host basis in the configuration file.
179
180 -M Places the ssh client into M-bM-^@M-^\masterM-bM-^@M-^] mode for connection sharing.
181 Multiple -M options places ssh into M-bM-^@M-^\masterM-bM-^@M-^] mode with
182 confirmation required before slave connections are accepted.
183 Refer to the description of ControlMaster in ssh_config(5) for
184 details.
185
186 -m mac_spec
187 Additionally, for protocol version 2 a comma-separated list of
188 MAC (message authentication code) algorithms can be specified in
189 order of preference. See the MACs keyword for more information.
190
191 -N Do not execute a remote command. This is useful for just
192 forwarding ports (protocol version 2 only).
193
194 -n Redirects stdin from /dev/null (actually, prevents reading from
195 stdin). This must be used when ssh is run in the background. A
196 common trick is to use this to run X11 programs on a remote
197 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
198 start an emacs on shadows.cs.hut.fi, and the X11 connection will
199 be automatically forwarded over an encrypted channel. The ssh
200 program will be put in the background. (This does not work if
201 ssh needs to ask for a password or passphrase; see also the -f
202 option.)
203
204 -O ctl_cmd
205 Control an active connection multiplexing master process. When
206 the -O option is specified, the ctl_cmd argument is interpreted
207 and passed to the master process. Valid commands are: M-bM-^@M-^\checkM-bM-^@M-^]
208 (check that the master process is running), M-bM-^@M-^\forwardM-bM-^@M-^] (request
209 forwardings without command execution), M-bM-^@M-^\cancelM-bM-^@M-^] (cancel
210 forwardings), M-bM-^@M-^\exitM-bM-^@M-^] (request the master to exit), and M-bM-^@M-^\stopM-bM-^@M-^]
211 (request the master to stop accepting further multiplexing
212 requests).
213
214 -o option
215 Can be used to give options in the format used in the
216 configuration file. This is useful for specifying options for
217 which there is no separate command-line flag. For full details
218 of the options listed below, and their possible values, see
219 ssh_config(5).
220
221 AddressFamily
222 BatchMode
223 BindAddress
224 CanonicalDomains
225 CanonicalizeFallbackLocal
226 CanonicalizeHostname
227 CanonicalizeMaxDots
228 CanonicalizePermittedCNAMEs
229 ChallengeResponseAuthentication
230 CheckHostIP
231 Cipher
232 Ciphers
233 ClearAllForwardings
234 Compression
235 CompressionLevel
236 ConnectionAttempts
237 ConnectTimeout
238 ControlMaster
239 ControlPath
240 ControlPersist
241 DynamicForward
242 EscapeChar
243 ExitOnForwardFailure
244 FingerprintHash
245 ForwardAgent
246 ForwardX11
247 ForwardX11Timeout
248 ForwardX11Trusted
249 GatewayPorts
250 GlobalKnownHostsFile
251 GSSAPIAuthentication
252 GSSAPIDelegateCredentials
253 HashKnownHosts
254 Host
255 HostbasedAuthentication
256 HostbasedKeyTypes
257 HostKeyAlgorithms
258 HostKeyAlias
259 HostName
260 IdentityFile
261 IdentitiesOnly
262 IPQoS
263 KbdInteractiveAuthentication
264 KbdInteractiveDevices
265 KexAlgorithms
266 LocalCommand
267 LocalForward
268 LogLevel
269 MACs
270 Match
271 NoHostAuthenticationForLocalhost
272 NumberOfPasswordPrompts
273 PasswordAuthentication
274 PermitLocalCommand
275 PKCS11Provider
276 Port
277 PreferredAuthentications
278 Protocol
279 ProxyCommand
280 ProxyUseFdpass
281 PubkeyAuthentication
282 RekeyLimit
283 RemoteForward
284 RequestTTY
285 RhostsRSAAuthentication
286 RSAAuthentication
287 SendEnv
288 ServerAliveInterval
289 ServerAliveCountMax
290 StreamLocalBindMask
291 StreamLocalBindUnlink
292 StrictHostKeyChecking
293 TCPKeepAlive
294 Tunnel
295 TunnelDevice
296 UpdateHostKeys
297 UsePrivilegedPort
298 User
299 UserKnownHostsFile
300 VerifyHostKeyDNS
301 VisualHostKey
302 XAuthLocation
303
304 -p port
305 Port to connect to on the remote host. This can be specified on
306 a per-host basis in the configuration file.
307
308 -Q cipher | cipher-auth | mac | kex | key | protocol-version
309 Queries ssh for the algorithms supported for the specified
310 version 2. The available features are: cipher (supported
311 symmetric ciphers), cipher-auth (supported symmetric ciphers that
312 support authenticated encryption), mac (supported message
313 integrity codes), kex (key exchange algorithms), key (key types)
314 and protocol-version (supported SSH protocol versions).
315
316 -q Quiet mode. Causes most warning and diagnostic messages to be
317 suppressed.
318
319 -R [bind_address:]port:host:hostport
320 Specifies that the given port on the remote (server) host is to
321 be forwarded to the given host and port on the local side. This
322 works by allocating a socket to listen to port on the remote
323 side, and whenever a connection is made to this port, the
324 connection is forwarded over the secure channel, and a connection
325 is made to host port hostport from the local machine.
326
327 Port forwardings can also be specified in the configuration file.
328 Privileged ports can be forwarded only when logging in as root on
329 the remote machine. IPv6 addresses can be specified by enclosing
330 the address in square brackets.
331
332 By default, the listening socket on the server will be bound to
333 the loopback interface only. This may be overridden by
334 specifying a bind_address. An empty bind_address, or the address
335 M-bM-^@M-^X*M-bM-^@M-^Y, indicates that the remote socket should listen on all
336 interfaces. Specifying a remote bind_address will only succeed
337 if the server's GatewayPorts option is enabled (see
338 sshd_config(5)).
339
340 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
341 allocated on the server and reported to the client at run time.
342 When used together with -O forward the allocated port will be
343 printed to the standard output.
344
345 -S ctl_path
346 Specifies the location of a control socket for connection
347 sharing, or the string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing.
348 Refer to the description of ControlPath and ControlMaster in
349 ssh_config(5) for details.
350
351 -s May be used to request invocation of a subsystem on the remote
352 system. Subsystems are a feature of the SSH2 protocol which
353 facilitate the use of SSH as a secure transport for other
354 applications (eg. sftp(1)). The subsystem is specified as the
355 remote command.
356
357 -T Disable pseudo-terminal allocation.
358
359 -t Force pseudo-terminal allocation. This can be used to execute
360 arbitrary screen-based programs on a remote machine, which can be
361 very useful, e.g. when implementing menu services. Multiple -t
362 options force tty allocation, even if ssh has no local tty.
363
364 -V Display the version number and exit.
365
366 -v Verbose mode. Causes ssh to print debugging messages about its
367 progress. This is helpful in debugging connection,
368 authentication, and configuration problems. Multiple -v options
369 increase the verbosity. The maximum is 3.
370
371 -W host:port
372 Requests that standard input and output on the client be
373 forwarded to host on port over the secure channel. Implies -N,
374 -T, ExitOnForwardFailure and ClearAllForwardings. Works with
375 Protocol version 2 only.
376
377 -w local_tun[:remote_tun]
378 Requests tunnel device forwarding with the specified tun(4)
379 devices between the client (local_tun) and the server
380 (remote_tun).
381
382 The devices may be specified by numerical ID or the keyword
383 M-bM-^@M-^\anyM-bM-^@M-^], which uses the next available tunnel device. If
384 remote_tun is not specified, it defaults to M-bM-^@M-^\anyM-bM-^@M-^]. See also the
385 Tunnel and TunnelDevice directives in ssh_config(5). If the
386 Tunnel directive is unset, it is set to the default tunnel mode,
387 which is M-bM-^@M-^\point-to-pointM-bM-^@M-^].
388
389 -X Enables X11 forwarding. This can also be specified on a per-host
390 basis in a configuration file.
391
392 X11 forwarding should be enabled with caution. Users with the
393 ability to bypass file permissions on the remote host (for the
394 user's X authorization database) can access the local X11 display
395 through the forwarded connection. An attacker may then be able
396 to perform activities such as keystroke monitoring.
397
398 For this reason, X11 forwarding is subjected to X11 SECURITY
399 extension restrictions by default. Please refer to the ssh -Y
400 option and the ForwardX11Trusted directive in ssh_config(5) for
401 more information.
402
403 -x Disables X11 forwarding.
404
405 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
406 subjected to the X11 SECURITY extension controls.
407
408 -y Send log information using the syslog(3) system module. By
409 default this information is sent to stderr.
410
411 ssh may additionally obtain configuration data from a per-user
412 configuration file and a system-wide configuration file. The file format
413 and configuration options are described in ssh_config(5).
414
415AUTHENTICATION
416 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
417 use protocol 2 only, though this can be changed via the Protocol option
418 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
419 support similar authentication methods, but protocol 2 is the default
420 since it provides additional mechanisms for confidentiality (the traffic
421 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
422 integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64,
423 umac-128, hmac-ripemd160). Protocol 1 lacks a strong mechanism for
424 ensuring the integrity of the connection.
425
426 The methods available for authentication are: GSSAPI-based
427 authentication, host-based authentication, public key authentication,
428 challenge-response authentication, and password authentication.
429 Authentication methods are tried in the order specified above, though
430 protocol 2 has a configuration option to change the default order:
431 PreferredAuthentications.
432
433 Host-based authentication works as follows: If the machine the user logs
434 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
435 machine, and the user names are the same on both sides, or if the files
436 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
437 machine and contain a line containing the name of the client machine and
438 the name of the user on that machine, the user is considered for login.
439 Additionally, the server must be able to verify the client's host key
440 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
441 below) for login to be permitted. This authentication method closes
442 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
443 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
444 rlogin/rsh protocol in general, are inherently insecure and should be
445 disabled if security is desired.]
446
447 Public key authentication works as follows: The scheme is based on
448 public-key cryptography, using cryptosystems where encryption and
449 decryption are done using separate keys, and it is unfeasible to derive
450 the decryption key from the encryption key. The idea is that each user
451 creates a public/private key pair for authentication purposes. The
452 server knows the public key, and only the user knows the private key.
453 ssh implements public key authentication protocol automatically, using
454 one of the DSA, ECDSA, Ed25519 or RSA algorithms. Protocol 1 is
455 restricted to using only RSA keys, but protocol 2 may use any. The
456 HISTORY section of ssl(8) contains a brief discussion of the DSA and RSA
457 algorithms.
458
459 The file ~/.ssh/authorized_keys lists the public keys that are permitted
460 for logging in. When the user logs in, the ssh program tells the server
461 which key pair it would like to use for authentication. The client
462 proves that it has access to the private key and the server checks that
463 the corresponding public key is authorized to accept the account.
464
465 The user creates his/her key pair by running ssh-keygen(1). This stores
466 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
467 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), ~/.ssh/id_ed25519 (protocol 2
468 Ed25519), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
469 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA),
470 ~/.ssh/id_ecdsa.pub (protocol 2 ECDSA), ~/.ssh/id_ed25519.pub (protocol 2
471 Ed25519), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
472 directory. The user should then copy the public key to
473 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
474 The authorized_keys file corresponds to the conventional ~/.rhosts file,
475 and has one key per line, though the lines can be very long. After this,
476 the user can log in without giving the password.
477
478 A variation on public key authentication is available in the form of
479 certificate authentication: instead of a set of public/private keys,
480 signed certificates are used. This has the advantage that a single
481 trusted certification authority can be used in place of many
482 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
483 more information.
484
485 The most convenient way to use public key or certificate authentication
486 may be with an authentication agent. See ssh-agent(1) for more
487 information.
488
489 Challenge-response authentication works as follows: The server sends an
490 arbitrary "challenge" text, and prompts for a response. Protocol 2
491 allows multiple challenges and responses; protocol 1 is restricted to
492 just one challenge/response. Examples of challenge-response
493 authentication include BSD Authentication (see login.conf(5)) and PAM
494 (some non-OpenBSD systems).
495
496 Finally, if other authentication methods fail, ssh prompts the user for a
497 password. The password is sent to the remote host for checking; however,
498 since all communications are encrypted, the password cannot be seen by
499 someone listening on the network.
500
501 ssh automatically maintains and checks a database containing
502 identification for all hosts it has ever been used with. Host keys are
503 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
504 the file /etc/ssh/ssh_known_hosts is automatically checked for known
505 hosts. Any new hosts are automatically added to the user's file. If a
506 host's identification ever changes, ssh warns about this and disables
507 password authentication to prevent server spoofing or man-in-the-middle
508 attacks, which could otherwise be used to circumvent the encryption. The
509 StrictHostKeyChecking option can be used to control logins to machines
510 whose host key is not known or has changed.
511
512 When the user's identity has been accepted by the server, the server
513 either executes the given command in a non-interactive session or, if no
514 command has been specified, logs into the machine and gives the user a
515 normal shell as an interactive session. All communication with the
516 remote command or shell will be automatically encrypted.
517
518 If an interactive session is requested ssh by default will only request a
519 pseudo-terminal (pty) for interactive sessions when the client has one.
520 The flags -T and -t can be used to override this behaviour.
521
522 If a pseudo-terminal has been allocated the user may use the escape
523 characters noted below.
524
525 If no pseudo-terminal has been allocated, the session is transparent and
526 can be used to reliably transfer binary data. On most systems, setting
527 the escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent
528 even if a tty is used.
529
530 The session terminates when the command or shell on the remote machine
531 exits and all X11 and TCP connections have been closed.
532
533ESCAPE CHARACTERS
534 When a pseudo-terminal has been requested, ssh supports a number of
535 functions through the use of an escape character.
536
537 A single tilde character can be sent as ~~ or by following the tilde by a
538 character other than those described below. The escape character must
539 always follow a newline to be interpreted as special. The escape
540 character can be changed in configuration files using the EscapeChar
541 configuration directive or on the command line by the -e option.
542
543 The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are:
544
545 ~. Disconnect.
546
547 ~^Z Background ssh.
548
549 ~# List forwarded connections.
550
551 ~& Background ssh at logout when waiting for forwarded connection /
552 X11 sessions to terminate.
553
554 ~? Display a list of escape characters.
555
556 ~B Send a BREAK to the remote system (only useful for SSH protocol
557 version 2 and if the peer supports it).
558
559 ~C Open command line. Currently this allows the addition of port
560 forwardings using the -L, -R and -D options (see above). It also
561 allows the cancellation of existing port-forwardings with
562 -KL[bind_address:]port for local, -KR[bind_address:]port for
563 remote and -KD[bind_address:]port for dynamic port-forwardings.
564 !command allows the user to execute a local command if the
565 PermitLocalCommand option is enabled in ssh_config(5). Basic
566 help is available, using the -h option.
567
568 ~R Request rekeying of the connection (only useful for SSH protocol
569 version 2 and if the peer supports it).
570
571 ~V Decrease the verbosity (LogLevel) when errors are being written
572 to stderr.
573
574 ~v Increase the verbosity (LogLevel) when errors are being written
575 to stderr.
576
577TCP FORWARDING
578 Forwarding of arbitrary TCP connections over the secure channel can be
579 specified either on the command line or in a configuration file. One
580 possible application of TCP forwarding is a secure connection to a mail
581 server; another is going through firewalls.
582
583 In the example below, we look at encrypting communication between an IRC
584 client and server, even though the IRC server does not directly support
585 encrypted communications. This works as follows: the user connects to
586 the remote host using ssh, specifying a port to be used to forward
587 connections to the remote server. After that it is possible to start the
588 service which is to be encrypted on the client machine, connecting to the
589 same local port, and ssh will encrypt and forward the connection.
590
591 The following example tunnels an IRC session from client machine
592 M-bM-^@M-^\127.0.0.1M-bM-^@M-^] (localhost) to remote server M-bM-^@M-^\server.example.comM-bM-^@M-^]:
593
594 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
595 $ irc -c '#users' -p 1234 pinky 127.0.0.1
596
597 This tunnels a connection to IRC server M-bM-^@M-^\server.example.comM-bM-^@M-^], joining
598 channel M-bM-^@M-^\#usersM-bM-^@M-^], nickname M-bM-^@M-^\pinkyM-bM-^@M-^], using port 1234. It doesn't matter
599 which port is used, as long as it's greater than 1023 (remember, only
600 root can open sockets on privileged ports) and doesn't conflict with any
601 ports already in use. The connection is forwarded to port 6667 on the
602 remote server, since that's the standard port for IRC services.
603
604 The -f option backgrounds ssh and the remote command M-bM-^@M-^\sleep 10M-bM-^@M-^] is
605 specified to allow an amount of time (10 seconds, in the example) to
606 start the service which is to be tunnelled. If no connections are made
607 within the time specified, ssh will exit.
608
609X11 FORWARDING
610 If the ForwardX11 variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of the
611 -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
612 environment variable is set), the connection to the X11 display is
613 automatically forwarded to the remote side in such a way that any X11
614 programs started from the shell (or command) will go through the
615 encrypted channel, and the connection to the real X server will be made
616 from the local machine. The user should not manually set DISPLAY.
617 Forwarding of X11 connections can be configured on the command line or in
618 configuration files.
619
620 The DISPLAY value set by ssh will point to the server machine, but with a
621 display number greater than zero. This is normal, and happens because
622 ssh creates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the
623 connections over the encrypted channel.
624
625 ssh will also automatically set up Xauthority data on the server machine.
626 For this purpose, it will generate a random authorization cookie, store
627 it in Xauthority on the server, and verify that any forwarded connections
628 carry this cookie and replace it by the real cookie when the connection
629 is opened. The real authentication cookie is never sent to the server
630 machine (and no cookies are sent in the plain).
631
632 If the ForwardAgent variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of
633 the -A and -a options above) and the user is using an authentication
634 agent, the connection to the agent is automatically forwarded to the
635 remote side.
636
637VERIFYING HOST KEYS
638 When connecting to a server for the first time, a fingerprint of the
639 server's public key is presented to the user (unless the option
640 StrictHostKeyChecking has been disabled). Fingerprints can be determined
641 using ssh-keygen(1):
642
643 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
644
645 If the fingerprint is already known, it can be matched and the key can be
646 accepted or rejected. If only legacy (MD5) fingerprints for the server
647 are available, the ssh-keygen(1) -E option may be used to downgrade the
648 fingerprint algorithm to match.
649
650 Because of the difficulty of comparing host keys just by looking at
651 fingerprint strings, there is also support to compare host keys visually,
652 using random art. By setting the VisualHostKey option to M-bM-^@M-^\yesM-bM-^@M-^], a small
653 ASCII graphic gets displayed on every login to a server, no matter if the
654 session itself is interactive or not. By learning the pattern a known
655 server produces, a user can easily find out that the host key has changed
656 when a completely different pattern is displayed. Because these patterns
657 are not unambiguous however, a pattern that looks similar to the pattern
658 remembered only gives a good probability that the host key is the same,
659 not guaranteed proof.
660
661 To get a listing of the fingerprints along with their random art for all
662 known hosts, the following command line can be used:
663
664 $ ssh-keygen -lv -f ~/.ssh/known_hosts
665
666 If the fingerprint is unknown, an alternative method of verification is
667 available: SSH fingerprints verified by DNS. An additional resource
668 record (RR), SSHFP, is added to a zonefile and the connecting client is
669 able to match the fingerprint with that of the key presented.
670
671 In this example, we are connecting a client to a server,
672 M-bM-^@M-^\host.example.comM-bM-^@M-^]. The SSHFP resource records should first be added to
673 the zonefile for host.example.com:
674
675 $ ssh-keygen -r host.example.com.
676
677 The output lines will have to be added to the zonefile. To check that
678 the zone is answering fingerprint queries:
679
680 $ dig -t SSHFP host.example.com
681
682 Finally the client connects:
683
684 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
685 [...]
686 Matching host key fingerprint found in DNS.
687 Are you sure you want to continue connecting (yes/no)?
688
689 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
690
691SSH-BASED VIRTUAL PRIVATE NETWORKS
692 ssh contains support for Virtual Private Network (VPN) tunnelling using
693 the tun(4) network pseudo-device, allowing two networks to be joined
694 securely. The sshd_config(5) configuration option PermitTunnel controls
695 whether the server supports this, and at what level (layer 2 or 3
696 traffic).
697
698 The following example would connect client network 10.0.50.0/24 with
699 remote network 10.0.99.0/24 using a point-to-point connection from
700 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
701 to the remote network, at 192.168.1.15, allows it.
702
703 On the client:
704
705 # ssh -f -w 0:1 192.168.1.15 true
706 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
707 # route add 10.0.99.0/24 10.1.1.2
708
709 On the server:
710
711 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
712 # route add 10.0.50.0/24 10.1.1.1
713
714 Client access may be more finely tuned via the /root/.ssh/authorized_keys
715 file (see below) and the PermitRootLogin server option. The following
716 entry would permit connections on tun(4) device 1 from user M-bM-^@M-^\janeM-bM-^@M-^] and on
717 tun device 2 from user M-bM-^@M-^\johnM-bM-^@M-^], if PermitRootLogin is set to
718 M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^]:
719
720 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
721 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
722
723 Since an SSH-based setup entails a fair amount of overhead, it may be
724 more suited to temporary setups, such as for wireless VPNs. More
725 permanent VPNs are better provided by tools such as ipsecctl(8) and
726 isakmpd(8).
727
728ENVIRONMENT
729 ssh will normally set the following environment variables:
730
731 DISPLAY The DISPLAY variable indicates the location of the
732 X11 server. It is automatically set by ssh to
733 point to a value of the form M-bM-^@M-^\hostname:nM-bM-^@M-^], where
734 M-bM-^@M-^\hostnameM-bM-^@M-^] indicates the host where the shell runs,
735 and M-bM-^@M-^XnM-bM-^@M-^Y is an integer M-bM-^IM-% 1. ssh uses this special
736 value to forward X11 connections over the secure
737 channel. The user should normally not set DISPLAY
738 explicitly, as that will render the X11 connection
739 insecure (and will require the user to manually
740 copy any required authorization cookies).
741
742 HOME Set to the path of the user's home directory.
743
744 LOGNAME Synonym for USER; set for compatibility with
745 systems that use this variable.
746
747 MAIL Set to the path of the user's mailbox.
748
749 PATH Set to the default PATH, as specified when
750 compiling ssh.
751
752 SSH_ASKPASS If ssh needs a passphrase, it will read the
753 passphrase from the current terminal if it was run
754 from a terminal. If ssh does not have a terminal
755 associated with it but DISPLAY and SSH_ASKPASS are
756 set, it will execute the program specified by
757 SSH_ASKPASS and open an X11 window to read the
758 passphrase. This is particularly useful when
759 calling ssh from a .xsession or related script.
760 (Note that on some machines it may be necessary to
761 redirect the input from /dev/null to make this
762 work.)
763
764 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
765 communicate with the agent.
766
767 SSH_CONNECTION Identifies the client and server ends of the
768 connection. The variable contains four space-
769 separated values: client IP address, client port
770 number, server IP address, and server port number.
771
772 SSH_ORIGINAL_COMMAND This variable contains the original command line if
773 a forced command is executed. It can be used to
774 extract the original arguments.
775
776 SSH_TTY This is set to the name of the tty (path to the
777 device) associated with the current shell or
778 command. If the current session has no tty, this
779 variable is not set.
780
781 TZ This variable is set to indicate the present time
782 zone if it was set when the daemon was started
783 (i.e. the daemon passes the value on to new
784 connections).
785
786 USER Set to the name of the user logging in.
787
788 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
789 M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and users are
790 allowed to change their environment. For more information, see the
791 PermitUserEnvironment option in sshd_config(5).
792
793FILES
794 ~/.rhosts
795 This file is used for host-based authentication (see above). On
796 some machines this file may need to be world-readable if the
797 user's home directory is on an NFS partition, because sshd(8)
798 reads it as root. Additionally, this file must be owned by the
799 user, and must not have write permissions for anyone else. The
800 recommended permission for most machines is read/write for the
801 user, and not accessible by others.
802
803 ~/.shosts
804 This file is used in exactly the same way as .rhosts, but allows
805 host-based authentication without permitting login with
806 rlogin/rsh.
807
808 ~/.ssh/
809 This directory is the default location for all user-specific
810 configuration and authentication information. There is no
811 general requirement to keep the entire contents of this directory
812 secret, but the recommended permissions are read/write/execute
813 for the user, and not accessible by others.
814
815 ~/.ssh/authorized_keys
816 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
817 for logging in as this user. The format of this file is
818 described in the sshd(8) manual page. This file is not highly
819 sensitive, but the recommended permissions are read/write for the
820 user, and not accessible by others.
821
822 ~/.ssh/config
823 This is the per-user configuration file. The file format and
824 configuration options are described in ssh_config(5). Because of
825 the potential for abuse, this file must have strict permissions:
826 read/write for the user, and not writable by others.
827
828 ~/.ssh/environment
829 Contains additional definitions for environment variables; see
830 ENVIRONMENT, above.
831
832 ~/.ssh/identity
833 ~/.ssh/id_dsa
834 ~/.ssh/id_ecdsa
835 ~/.ssh/id_ed25519
836 ~/.ssh/id_rsa
837 Contains the private key for authentication. These files contain
838 sensitive data and should be readable by the user but not
839 accessible by others (read/write/execute). ssh will simply
840 ignore a private key file if it is accessible by others. It is
841 possible to specify a passphrase when generating the key which
842 will be used to encrypt the sensitive part of this file using
843 3DES.
844
845 ~/.ssh/identity.pub
846 ~/.ssh/id_dsa.pub
847 ~/.ssh/id_ecdsa.pub
848 ~/.ssh/id_ed25519.pub
849 ~/.ssh/id_rsa.pub
850 Contains the public key for authentication. These files are not
851 sensitive and can (but need not) be readable by anyone.
852
853 ~/.ssh/known_hosts
854 Contains a list of host keys for all hosts the user has logged
855 into that are not already in the systemwide list of known host
856 keys. See sshd(8) for further details of the format of this
857 file.
858
859 ~/.ssh/rc
860 Commands in this file are executed by ssh when the user logs in,
861 just before the user's shell (or command) is started. See the
862 sshd(8) manual page for more information.
863
864 /etc/hosts.equiv
865 This file is for host-based authentication (see above). It
866 should only be writable by root.
867
868 /etc/shosts.equiv
869 This file is used in exactly the same way as hosts.equiv, but
870 allows host-based authentication without permitting login with
871 rlogin/rsh.
872
873 /etc/ssh/ssh_config
874 Systemwide configuration file. The file format and configuration
875 options are described in ssh_config(5).
876
877 /etc/ssh/ssh_host_key
878 /etc/ssh/ssh_host_dsa_key
879 /etc/ssh/ssh_host_ecdsa_key
880 /etc/ssh/ssh_host_ed25519_key
881 /etc/ssh/ssh_host_rsa_key
882 These files contain the private parts of the host keys and are
883 used for host-based authentication. If protocol version 1 is
884 used, ssh must be setuid root, since the host key is readable
885 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
886 access the host keys, eliminating the requirement that ssh be
887 setuid root when host-based authentication is used. By default
888 ssh is not setuid root.
889
890 /etc/ssh/ssh_known_hosts
891 Systemwide list of known host keys. This file should be prepared
892 by the system administrator to contain the public host keys of
893 all machines in the organization. It should be world-readable.
894 See sshd(8) for further details of the format of this file.
895
896 /etc/ssh/sshrc
897 Commands in this file are executed by ssh when the user logs in,
898 just before the user's shell (or command) is started. See the
899 sshd(8) manual page for more information.
900
901EXIT STATUS
902 ssh exits with the exit status of the remote command or with 255 if an
903 error occurred.
904
905SEE ALSO
906 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
907 tun(4), ssh_config(5), ssh-keysign(8), sshd(8)
908
909STANDARDS
910 S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned
911 Numbers, RFC 4250, January 2006.
912
913 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture,
914 RFC 4251, January 2006.
915
916 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol,
917 RFC 4252, January 2006.
918
919 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer
920 Protocol, RFC 4253, January 2006.
921
922 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC
923 4254, January 2006.
924
925 J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell
926 (SSH) Key Fingerprints, RFC 4255, January 2006.
927
928 F. Cusack and M. Forssen, Generic Message Exchange Authentication for the
929 Secure Shell Protocol (SSH), RFC 4256, January 2006.
930
931 J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break
932 Extension, RFC 4335, January 2006.
933
934 M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport
935 Layer Encryption Modes, RFC 4344, January 2006.
936
937 B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport
938 Layer Protocol, RFC 4345, January 2006.
939
940 M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for
941 the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006.
942
943 J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File
944 Format, RFC 4716, November 2006.
945
946 D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the
947 Secure Shell Transport Layer, RFC 5656, December 2009.
948
949 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
950 Real-World Security, 1999, International Workshop on Cryptographic
951 Techniques and E-Commerce (CrypTEC '99).
952
953AUTHORS
954 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
955 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
956 de Raadt and Dug Song removed many bugs, re-added newer features and
957 created OpenSSH. Markus Friedl contributed the support for SSH protocol
958 versions 1.5 and 2.0.
959
960OpenBSD 5.7 May 22, 2015 OpenBSD 5.7
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..b0a614b8a
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,985 @@
1SSH_CONFIG(5) File Formats Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config M-bM-^@M-^S OpenSSH SSH client configuration files
5
6SYNOPSIS
7 ~/.ssh/config
8 /etc/ssh/ssh_config
9
10DESCRIPTION
11 ssh(1) obtains configuration data from the following sources in the
12 following 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
19 configuration files contain sections separated by M-bM-^@M-^\HostM-bM-^@M-^] specifications,
20 and that section is only applied for hosts that match one of the patterns
21 given in the specification. The matched host name is usually the one
22 given on the command line (see the CanonicalizeHostname option for
23 exceptions.)
24
25 Since the first obtained value for each parameter is used, more host-
26 specific declarations should be given near the beginning of the file, and
27 general defaults at the end.
28
29 The configuration file has the following format:
30
31 Empty lines and lines starting with M-bM-^@M-^X#M-bM-^@M-^Y are comments. Otherwise a line
32 is of the format M-bM-^@M-^\keyword argumentsM-bM-^@M-^]. Configuration options may be
33 separated by whitespace or optional whitespace and exactly one M-bM-^@M-^X=M-bM-^@M-^Y; the
34 latter format is useful to avoid the need to quote whitespace when
35 specifying configuration options using the ssh, scp, and sftp -o option.
36 Arguments may optionally be enclosed in double quotes (") in order to
37 represent arguments containing spaces.
38
39 The possible keywords and their meanings are as follows (note that
40 keywords are case-insensitive and arguments are case-sensitive):
41
42 Host Restricts the following declarations (up to the next Host or
43 Match keyword) to be only for those hosts that match one of the
44 patterns given after the keyword. If more than one pattern is
45 provided, they should be separated by whitespace. A single M-bM-^@M-^X*M-bM-^@M-^Y
46 as a pattern can be used to provide global defaults for all
47 hosts. The host is usually the hostname argument given on the
48 command line (see the CanonicalizeHostname option for
49 exceptions.)
50
51 A pattern entry may be negated by prefixing it with an
52 exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y). If a negated entry is matched, then the
53 Host entry is ignored, regardless of whether any other patterns
54 on the line match. Negated matches are therefore useful to
55 provide exceptions for wildcard matches.
56
57 See PATTERNS for more information on patterns.
58
59 Match Restricts the following declarations (up to the next Host or
60 Match keyword) to be used only when the conditions following the
61 Match keyword are satisfied. Match conditions are specified
62 using one or more critera or the single token all which always
63 matches. The available criteria keywords are: canonical, exec,
64 host, originalhost, user, and localuser. The all criteria must
65 appear alone or immediately after canonical. Other criteria may
66 be combined arbitrarily. All criteria but all and canonical
67 require an argument. Criteria may be negated by prepending an
68 exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y).
69
70 The canonical keyword matches only when the configuration file is
71 being re-parsed after hostname canonicalization (see the
72 CanonicalizeHostname option.) This may be useful to specify
73 conditions that work with canonical host names only. The exec
74 keyword executes the specified command under the user's shell.
75 If the command returns a zero exit status then the condition is
76 considered true. Commands containing whitespace characters must
77 be quoted. The following character sequences in the command will
78 be expanded prior to execution: M-bM-^@M-^X%LM-bM-^@M-^Y will be substituted by the
79 first component of the local host name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted
80 by the local host name (including any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be
81 substituted by the target host name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by
82 the original target host name specified on the command-line, M-bM-^@M-^X%pM-bM-^@M-^Y
83 the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by the remote login username, and M-bM-^@M-^X%uM-bM-^@M-^Y
84 by the username of the user running ssh(1).
85
86 The other keywords' criteria must be single entries or comma-
87 separated lists and may use the wildcard and negation operators
88 described in the PATTERNS section. The criteria for the host
89 keyword are matched against the target hostname, after any
90 substitution by the Hostname or CanonicalizeHostname options.
91 The originalhost keyword matches against the hostname as it was
92 specified on the command-line. The user keyword matches against
93 the target username on the remote host. The localuser keyword
94 matches against the name of the local user running ssh(1) (this
95 keyword may be useful in system-wide ssh_config files).
96
97 AddressFamily
98 Specifies which address family to use when connecting. Valid
99 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
100 only).
101
102 BatchMode
103 If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled.
104 This option is useful in scripts and other batch jobs where no
105 user is present to supply the password. The argument must be
106 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
107
108 BindAddress
109 Use the specified address on the local machine as the source
110 address of the connection. Only useful on systems with more than
111 one address. Note that this option does not work if
112 UsePrivilegedPort is set to M-bM-^@M-^\yesM-bM-^@M-^].
113
114 CanonicalDomains
115 When CanonicalizeHostname is enabled, this option specifies the
116 list of domain suffixes in which to search for the specified
117 destination host.
118
119 CanonicalizeFallbackLocal
120 Specifies whether to fail with an error when hostname
121 canonicalization fails. The default, M-bM-^@M-^\yesM-bM-^@M-^], will attempt to look
122 up the unqualified hostname using the system resolver's search
123 rules. A value of M-bM-^@M-^\noM-bM-^@M-^] will cause ssh(1) to fail instantly if
124 CanonicalizeHostname is enabled and the target hostname cannot be
125 found in any of the domains specified by CanonicalDomains.
126
127 CanonicalizeHostname
128 Controls whether explicit hostname canonicalization is performed.
129 The default, M-bM-^@M-^\noM-bM-^@M-^], is not to perform any name rewriting and let
130 the system resolver handle all hostname lookups. If set to M-bM-^@M-^\yesM-bM-^@M-^]
131 then, for connections that do not use a ProxyCommand, ssh(1) will
132 attempt to canonicalize the hostname specified on the command
133 line using the CanonicalDomains suffixes and
134 CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is
135 set to M-bM-^@M-^\alwaysM-bM-^@M-^], then canonicalization is applied to proxied
136 connections too.
137
138 If this option is enabled, then the configuration files are
139 processed again using the new target name to pick up any new
140 configuration in matching Host and Match stanzas.
141
142 CanonicalizeMaxDots
143 Specifies the maximum number of dot characters in a hostname
144 before canonicalization is disabled. The default, M-bM-^@M-^\1M-bM-^@M-^], allows a
145 single dot (i.e. hostname.subdomain).
146
147 CanonicalizePermittedCNAMEs
148 Specifies rules to determine whether CNAMEs should be followed
149 when canonicalizing hostnames. The rules consist of one or more
150 arguments of source_domain_list:target_domain_list, where
151 source_domain_list is a pattern-list of domains that may follow
152 CNAMEs in canonicalization, and target_domain_list is a pattern-
153 list of domains that they may resolve to.
154
155 For example, M-bM-^@M-^\*.a.example.com:*.b.example.com,*.c.example.comM-bM-^@M-^]
156 will allow hostnames matching M-bM-^@M-^\*.a.example.comM-bM-^@M-^] to be
157 canonicalized to names in the M-bM-^@M-^\*.b.example.comM-bM-^@M-^] or
158 M-bM-^@M-^\*.c.example.comM-bM-^@M-^] domains.
159
160 ChallengeResponseAuthentication
161 Specifies whether to use challenge-response authentication. The
162 argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
163 M-bM-^@M-^\yesM-bM-^@M-^].
164
165 CheckHostIP
166 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will additionally check the
167 host IP address in the known_hosts file. This allows ssh to
168 detect if a host key changed due to DNS spoofing and will add
169 addresses of destination hosts to ~/.ssh/known_hosts in the
170 process, regardless of the setting of StrictHostKeyChecking. If
171 the option is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The
172 default is M-bM-^@M-^\yesM-bM-^@M-^].
173
174 Cipher Specifies the cipher to use for encrypting the session in
175 protocol version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are
176 supported. des is only supported in the ssh(1) client for
177 interoperability with legacy protocol 1 implementations that do
178 not support the 3des cipher. Its use is strongly discouraged due
179 to cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^].
180
181 Ciphers
182 Specifies the ciphers allowed for protocol version 2 in order of
183 preference. Multiple ciphers must be comma-separated. The
184 supported ciphers are:
185
186 3des-cbc
187 aes128-cbc
188 aes192-cbc
189 aes256-cbc
190 aes128-ctr
191 aes192-ctr
192 aes256-ctr
193 aes128-gcm@openssh.com
194 aes256-gcm@openssh.com
195 arcfour
196 arcfour128
197 arcfour256
198 blowfish-cbc
199 cast128-cbc
200 chacha20-poly1305@openssh.com
201
202 The default is:
203
204 aes128-ctr,aes192-ctr,aes256-ctr,
205 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
206 chacha20-poly1305@openssh.com,
207 arcfour256,arcfour128,
208 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,
209 aes192-cbc,aes256-cbc,arcfour
210
211 The list of available ciphers may also be obtained using the -Q
212 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
213
214 ClearAllForwardings
215 Specifies that all local, remote, and dynamic port forwardings
216 specified in the configuration files or on the command line be
217 cleared. This option is primarily useful when used from the
218 ssh(1) command line to clear port forwardings set in
219 configuration files, and is automatically set by scp(1) and
220 sftp(1). The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
221 M-bM-^@M-^\noM-bM-^@M-^].
222
223 Compression
224 Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^]
225 or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
226
227 CompressionLevel
228 Specifies the compression level to use if compression is enabled.
229 The argument must be an integer from 1 (fast) to 9 (slow, best).
230 The default level is 6, which is good for most applications. The
231 meaning of the values is the same as in gzip(1). Note that this
232 option applies to protocol version 1 only.
233
234 ConnectionAttempts
235 Specifies the number of tries (one per second) to make before
236 exiting. The argument must be an integer. This may be useful in
237 scripts if the connection sometimes fails. The default is 1.
238
239 ConnectTimeout
240 Specifies the timeout (in seconds) used when connecting to the
241 SSH server, instead of using the default system TCP timeout.
242 This value is used only when the target is down or really
243 unreachable, not when it refuses the connection.
244
245 ControlMaster
246 Enables the sharing of multiple sessions over a single network
247 connection. When set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will listen for
248 connections on a control socket specified using the ControlPath
249 argument. Additional sessions can connect to this socket using
250 the same ControlPath with ControlMaster set to M-bM-^@M-^\noM-bM-^@M-^] (the
251 default). These sessions will try to reuse the master instance's
252 network connection rather than initiating new ones, but will fall
253 back to connecting normally if the control socket does not exist,
254 or is not listening.
255
256 Setting this to M-bM-^@M-^\askM-bM-^@M-^] will cause ssh to listen for control
257 connections, but require confirmation using ssh-askpass(1). If
258 the ControlPath cannot be opened, ssh will continue without
259 connecting to a master instance.
260
261 X11 and ssh-agent(1) forwarding is supported over these
262 multiplexed connections, however the display and agent forwarded
263 will be the one belonging to the master connection i.e. it is not
264 possible to forward multiple displays or agents.
265
266 Two additional options allow for opportunistic multiplexing: try
267 to use a master connection but fall back to creating a new one if
268 one does not already exist. These options are: M-bM-^@M-^\autoM-bM-^@M-^] and
269 M-bM-^@M-^\autoaskM-bM-^@M-^]. The latter requires confirmation like the M-bM-^@M-^\askM-bM-^@M-^]
270 option.
271
272 ControlPath
273 Specify the path to the control socket used for connection
274 sharing as described in the ControlMaster section above or the
275 string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. In the path, M-bM-^@M-^X%LM-bM-^@M-^Y
276 will be substituted by the first component of the local host
277 name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted by the local host name (including
278 any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the target host
279 name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by the original target host name
280 specified on the command line, M-bM-^@M-^X%pM-bM-^@M-^Y the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by
281 the remote login username, M-bM-^@M-^X%uM-bM-^@M-^Y by the username of the user
282 running ssh(1), and M-bM-^@M-^X%CM-bM-^@M-^Y by a hash of the concatenation:
283 %l%h%p%r. It is recommended that any ControlPath used for
284 opportunistic connection sharing include at least %h, %p, and %r
285 (or alternatively %C) and be placed in a directory that is not
286 writable by other users. This ensures that shared connections
287 are uniquely identified.
288
289 ControlPersist
290 When used in conjunction with ControlMaster, specifies that the
291 master connection should remain open in the background (waiting
292 for future client connections) after the initial client
293 connection has been closed. If set to M-bM-^@M-^\noM-bM-^@M-^], then the master
294 connection will not be placed into the background, and will close
295 as soon as the initial client connection is closed. If set to
296 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\0M-bM-^@M-^], then the master connection will remain in the
297 background indefinitely (until killed or closed via a mechanism
298 such as the ssh(1) M-bM-^@M-^\-O exitM-bM-^@M-^] option). If set to a time in
299 seconds, or a time in any of the formats documented in
300 sshd_config(5), then the backgrounded master connection will
301 automatically terminate after it has remained idle (with no
302 client connections) for the specified time.
303
304 DynamicForward
305 Specifies that a TCP port on the local machine be forwarded over
306 the secure channel, and the application protocol is then used to
307 determine where to connect to from the remote machine.
308
309 The argument must be [bind_address:]port. IPv6 addresses can be
310 specified by enclosing addresses in square brackets. By default,
311 the local port is bound in accordance with the GatewayPorts
312 setting. However, an explicit bind_address may be used to bind
313 the connection to a specific address. The bind_address of
314 M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local
315 use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port
316 should be available from all interfaces.
317
318 Currently the SOCKS4 and SOCKS5 protocols are supported, and
319 ssh(1) will act as a SOCKS server. Multiple forwardings may be
320 specified, and additional forwardings can be given on the command
321 line. Only the superuser can forward privileged ports.
322
323 EnableSSHKeysign
324 Setting this option to M-bM-^@M-^\yesM-bM-^@M-^] in the global client configuration
325 file /etc/ssh/ssh_config enables the use of the helper program
326 ssh-keysign(8) during HostbasedAuthentication. The argument must
327 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. This option should be
328 placed in the non-hostspecific section. See ssh-keysign(8) for
329 more information.
330
331 EscapeChar
332 Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character
333 can also be set on the command line. The argument should be a
334 single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable
335 the escape character entirely (making the connection transparent
336 for binary data).
337
338 ExitOnForwardFailure
339 Specifies whether ssh(1) should terminate the connection if it
340 cannot set up all requested dynamic, tunnel, local, and remote
341 port forwardings. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
342 default is M-bM-^@M-^\noM-bM-^@M-^].
343
344 FingerprintHash
345 Specifies the hash algorithm used when displaying key
346 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
347 default is M-bM-^@M-^\sha256M-bM-^@M-^].
348
349 ForwardAgent
350 Specifies whether the connection to the authentication agent (if
351 any) will be forwarded to the remote machine. The argument must
352 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
353
354 Agent forwarding should be enabled with caution. Users with the
355 ability to bypass file permissions on the remote host (for the
356 agent's Unix-domain socket) can access the local agent through
357 the forwarded connection. An attacker cannot obtain key material
358 from the agent, however they can perform operations on the keys
359 that enable them to authenticate using the identities loaded into
360 the agent.
361
362 ForwardX11
363 Specifies whether X11 connections will be automatically
364 redirected over the secure channel and DISPLAY set. The argument
365 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
366
367 X11 forwarding should be enabled with caution. Users with the
368 ability to bypass file permissions on the remote host (for the
369 user's X11 authorization database) can access the local X11
370 display through the forwarded connection. An attacker may then
371 be able to perform activities such as keystroke monitoring if the
372 ForwardX11Trusted option is also enabled.
373
374 ForwardX11Timeout
375 Specify a timeout for untrusted X11 forwarding using the format
376 described in the TIME FORMATS section of sshd_config(5). X11
377 connections received by ssh(1) after this time will be refused.
378 The default is to disable untrusted X11 forwarding after twenty
379 minutes has elapsed.
380
381 ForwardX11Trusted
382 If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], remote X11 clients will have full
383 access to the original X11 display.
384
385 If this option is set to M-bM-^@M-^\noM-bM-^@M-^], remote X11 clients will be
386 considered untrusted and prevented from stealing or tampering
387 with data belonging to trusted X11 clients. Furthermore, the
388 xauth(1) token used for the session will be set to expire after
389 20 minutes. Remote clients will be refused access after this
390 time.
391
392 The default is M-bM-^@M-^\noM-bM-^@M-^].
393
394 See the X11 SECURITY extension specification for full details on
395 the restrictions imposed on untrusted clients.
396
397 GatewayPorts
398 Specifies whether remote hosts are allowed to connect to local
399 forwarded ports. By default, ssh(1) binds local port forwardings
400 to the loopback address. This prevents other remote hosts from
401 connecting to forwarded ports. GatewayPorts can be used to
402 specify that ssh should bind local port forwardings to the
403 wildcard address, thus allowing remote hosts to connect to
404 forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
405 default is M-bM-^@M-^\noM-bM-^@M-^].
406
407 GlobalKnownHostsFile
408 Specifies one or more files to use for the global host key
409 database, separated by whitespace. The default is
410 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
411
412 GSSAPIAuthentication
413 Specifies whether user authentication based on GSSAPI is allowed.
414 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol
415 version 2 only.
416
417 GSSAPIDelegateCredentials
418 Forward (delegate) credentials to the server. The default is
419 M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2 only.
420
421 HashKnownHosts
422 Indicates that ssh(1) should hash host names and addresses when
423 they are added to ~/.ssh/known_hosts. These hashed names may be
424 used normally by ssh(1) and sshd(8), but they do not reveal
425 identifying information should the file's contents be disclosed.
426 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that existing names and addresses in
427 known hosts files will not be converted automatically, but may be
428 manually hashed using ssh-keygen(1).
429
430 HostbasedAuthentication
431 Specifies whether to try rhosts based authentication with public
432 key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
433 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 2 only
434 and is similar to RhostsRSAAuthentication.
435
436 HostbasedKeyTypes
437 Specifies the key types that will be used for hostbased
438 authentication as a comma-separated pattern list. The default
439 M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be
440 used to list supported key types.
441
442 HostKeyAlgorithms
443 Specifies the protocol version 2 host key algorithms that the
444 client wants to use in order of preference. The default for this
445 option is:
446
447 ecdsa-sha2-nistp256-cert-v01@openssh.com,
448 ecdsa-sha2-nistp384-cert-v01@openssh.com,
449 ecdsa-sha2-nistp521-cert-v01@openssh.com,
450 ssh-ed25519-cert-v01@openssh.com,
451 ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
452 ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
453 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
454 ssh-ed25519,ssh-rsa,ssh-dss
455
456 If hostkeys are known for the destination host then this default
457 is modified to prefer their algorithms.
458
459 The list of available key types may also be obtained using the -Q
460 option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^].
461
462 HostKeyAlias
463 Specifies an alias that should be used instead of the real host
464 name when looking up or saving the host key in the host key
465 database files. This option is useful for tunneling SSH
466 connections or for multiple servers running on a single host.
467
468 HostName
469 Specifies the real host name to log into. This can be used to
470 specify nicknames or abbreviations for hosts. If the hostname
471 contains the character sequence M-bM-^@M-^X%hM-bM-^@M-^Y, then this will be replaced
472 with the host name specified on the command line (this is useful
473 for manipulating unqualified names). The character sequence M-bM-^@M-^X%%M-bM-^@M-^Y
474 will be replaced by a single M-bM-^@M-^X%M-bM-^@M-^Y character, which may be used
475 when specifying IPv6 link-local addresses.
476
477 The default is the name given on the command line. Numeric IP
478 addresses are also permitted (both on the command line and in
479 HostName specifications).
480
481 IdentitiesOnly
482 Specifies that ssh(1) should only use the authentication identity
483 files configured in the ssh_config files, even if ssh-agent(1) or
484 a PKCS11Provider offers more identities. The argument to this
485 keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option is intended for
486 situations where ssh-agent offers many different identities. The
487 default is M-bM-^@M-^\noM-bM-^@M-^].
488
489 IdentityFile
490 Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA
491 authentication identity is read. The default is ~/.ssh/identity
492 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
493 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
494 Additionally, any identities represented by the authentication
495 agent will be used for authentication unless IdentitiesOnly is
496 set. ssh(1) will try to load certificate information from the
497 filename obtained by appending -cert.pub to the path of a
498 specified IdentityFile.
499
500 The file name may use the tilde syntax to refer to a user's home
501 directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local
502 user's home directory), M-bM-^@M-^X%uM-bM-^@M-^Y (local user name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host
503 name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name).
504
505 It is possible to have multiple identity files specified in
506 configuration files; all these identities will be tried in
507 sequence. Multiple IdentityFile directives will add to the list
508 of identities tried (this behaviour differs from that of other
509 configuration directives).
510
511 IdentityFile may be used in conjunction with IdentitiesOnly to
512 select which identities in an agent are offered during
513 authentication.
514
515 IgnoreUnknown
516 Specifies a pattern-list of unknown options to be ignored if they
517 are encountered in configuration parsing. This may be used to
518 suppress errors if ssh_config contains options that are
519 unrecognised by ssh(1). It is recommended that IgnoreUnknown be
520 listed early in the configuration file as it will not be applied
521 to unknown options that appear before it.
522
523 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
524 Accepted values are M-bM-^@M-^\af11M-bM-^@M-^], M-bM-^@M-^\af12M-bM-^@M-^], M-bM-^@M-^\af13M-bM-^@M-^], M-bM-^@M-^\af21M-bM-^@M-^], M-bM-^@M-^\af22M-bM-^@M-^],
525 M-bM-^@M-^\af23M-bM-^@M-^], M-bM-^@M-^\af31M-bM-^@M-^], M-bM-^@M-^\af32M-bM-^@M-^], M-bM-^@M-^\af33M-bM-^@M-^], M-bM-^@M-^\af41M-bM-^@M-^], M-bM-^@M-^\af42M-bM-^@M-^], M-bM-^@M-^\af43M-bM-^@M-^], M-bM-^@M-^\cs0M-bM-^@M-^],
526 M-bM-^@M-^\cs1M-bM-^@M-^], M-bM-^@M-^\cs2M-bM-^@M-^], M-bM-^@M-^\cs3M-bM-^@M-^], M-bM-^@M-^\cs4M-bM-^@M-^], M-bM-^@M-^\cs5M-bM-^@M-^], M-bM-^@M-^\cs6M-bM-^@M-^], M-bM-^@M-^\cs7M-bM-^@M-^], M-bM-^@M-^\efM-bM-^@M-^],
527 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
528 This option may take one or two arguments, separated by
529 whitespace. If one argument is specified, it is used as the
530 packet class unconditionally. If two values are specified, the
531 first is automatically selected for interactive sessions and the
532 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
533 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
534 sessions.
535
536 KbdInteractiveAuthentication
537 Specifies whether to use keyboard-interactive authentication.
538 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
539 is M-bM-^@M-^\yesM-bM-^@M-^].
540
541 KbdInteractiveDevices
542 Specifies the list of methods to use in keyboard-interactive
543 authentication. Multiple method names must be comma-separated.
544 The default is to use the server specified list. The methods
545 available vary depending on what the server supports. For an
546 OpenSSH server, it may be zero or more of: M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], and
547 M-bM-^@M-^\skeyM-bM-^@M-^].
548
549 KexAlgorithms
550 Specifies the available KEX (Key Exchange) algorithms. Multiple
551 algorithms must be comma-separated. The default is:
552
553 curve25519-sha256@libssh.org,
554 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
555 diffie-hellman-group-exchange-sha256,
556 diffie-hellman-group-exchange-sha1,
557 diffie-hellman-group14-sha1,
558 diffie-hellman-group1-sha1
559
560 The list of available key exchange algorithms may also be
561 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
562
563 LocalCommand
564 Specifies a command to execute on the local machine after
565 successfully connecting to the server. The command string
566 extends to the end of the line, and is executed with the user's
567 shell. The following escape character substitutions will be
568 performed: M-bM-^@M-^X%dM-bM-^@M-^Y (local user's home directory), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host
569 name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host name), M-bM-^@M-^X%nM-bM-^@M-^Y (host name as provided on the
570 command line), M-bM-^@M-^X%pM-bM-^@M-^Y (remote port), M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name) or
571 M-bM-^@M-^X%uM-bM-^@M-^Y (local user name) or M-bM-^@M-^X%CM-bM-^@M-^Y by a hash of the concatenation:
572 %l%h%p%r.
573
574 The command is run synchronously and does not have access to the
575 session of the ssh(1) that spawned it. It should not be used for
576 interactive commands.
577
578 This directive is ignored unless PermitLocalCommand has been
579 enabled.
580
581 LocalForward
582 Specifies that a TCP port on the local machine be forwarded over
583 the secure channel to the specified host and port from the remote
584 machine. The first argument must be [bind_address:]port and the
585 second argument must be host:hostport. IPv6 addresses can be
586 specified by enclosing addresses in square brackets. Multiple
587 forwardings may be specified, and additional forwardings can be
588 given on the command line. Only the superuser can forward
589 privileged ports. By default, the local port is bound in
590 accordance with the GatewayPorts setting. However, an explicit
591 bind_address may be used to bind the connection to a specific
592 address. The bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the
593 listening port be bound for local use only, while an empty
594 address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port should be available from
595 all interfaces.
596
597 LogLevel
598 Gives the verbosity level that is used when logging messages from
599 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
600 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
601 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
602 higher levels of verbose output.
603
604 MACs Specifies the MAC (message authentication code) algorithms in
605 order of preference. The MAC algorithm is used in protocol
606 version 2 for data integrity protection. Multiple algorithms
607 must be comma-separated. The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^]
608 calculate the MAC after encryption (encrypt-then-mac). These are
609 considered safer and their use recommended. The default is:
610
611 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
612 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
613 umac-64@openssh.com,umac-128@openssh.com,
614 hmac-sha2-256,hmac-sha2-512,
615 hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,
616 hmac-ripemd160-etm@openssh.com,
617 hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,
618 hmac-md5,hmac-sha1,hmac-ripemd160,
619 hmac-sha1-96,hmac-md5-96
620
621 The list of available MAC algorithms may also be obtained using
622 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
623
624 NoHostAuthenticationForLocalhost
625 This option can be used if the home directory is shared across
626 machines. In this case localhost will refer to a different
627 machine on each of the machines and the user will get many
628 warnings about changed host keys. However, this option disables
629 host authentication for localhost. The argument to this keyword
630 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for
631 localhost.
632
633 NumberOfPasswordPrompts
634 Specifies the number of password prompts before giving up. The
635 argument to this keyword must be an integer. The default is 3.
636
637 PasswordAuthentication
638 Specifies whether to use password authentication. The argument
639 to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^].
640
641 PermitLocalCommand
642 Allow local command execution via the LocalCommand option or
643 using the !command escape sequence in ssh(1). The argument must
644 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
645
646 PKCS11Provider
647 Specifies which PKCS#11 provider to use. The argument to this
648 keyword is the PKCS#11 shared library ssh(1) should use to
649 communicate with a PKCS#11 token providing the user's private RSA
650 key.
651
652 Port Specifies the port number to connect on the remote host. The
653 default is 22.
654
655 PreferredAuthentications
656 Specifies the order in which the client should try protocol 2
657 authentication methods. This allows a client to prefer one
658 method (e.g. keyboard-interactive) over another method (e.g.
659 password). The default is:
660
661 gssapi-with-mic,hostbased,publickey,
662 keyboard-interactive,password
663
664 Protocol
665 Specifies the protocol versions ssh(1) should support in order of
666 preference. The possible values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple
667 versions must be comma-separated. When this option is set to
668 M-bM-^@M-^\2,1M-bM-^@M-^] ssh will try version 2 and fall back to version 1 if
669 version 2 is not available. The default is M-bM-^@M-^X2M-bM-^@M-^Y.
670
671 ProxyCommand
672 Specifies the command to use to connect to the server. The
673 command string extends to the end of the line, and is executed
674 using the user's shell M-bM-^@M-^XexecM-bM-^@M-^Y directive to avoid a lingering
675 shell process.
676
677 In the command string, any occurrence of M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted
678 by the host name to connect, M-bM-^@M-^X%pM-bM-^@M-^Y by the port, and M-bM-^@M-^X%rM-bM-^@M-^Y by the
679 remote user name. The command can be basically anything, and
680 should read from its standard input and write to its standard
681 output. It should eventually connect an sshd(8) server running
682 on some machine, or execute sshd -i somewhere. Host key
683 management will be done using the HostName of the host being
684 connected (defaulting to the name typed by the user). Setting
685 the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option entirely. Note that
686 CheckHostIP is not available for connects with a proxy command.
687
688 This directive is useful in conjunction with nc(1) and its proxy
689 support. For example, the following directive would connect via
690 an HTTP proxy at 192.0.2.0:
691
692 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
693
694 ProxyUseFdpass
695 Specifies that ProxyCommand will pass a connected file descriptor
696 back to ssh(1) instead of continuing to execute and pass data.
697 The default is M-bM-^@M-^\noM-bM-^@M-^].
698
699 PubkeyAuthentication
700 Specifies whether to try public key authentication. The argument
701 to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^].
702 This option applies to protocol version 2 only.
703
704 RekeyLimit
705 Specifies the maximum amount of data that may be transmitted
706 before the session key is renegotiated, optionally followed a
707 maximum amount of time that may pass before the session key is
708 renegotiated. The first argument is specified in bytes and may
709 have a suffix of M-bM-^@M-^XKM-bM-^@M-^Y, M-bM-^@M-^XMM-bM-^@M-^Y, or M-bM-^@M-^XGM-bM-^@M-^Y to indicate Kilobytes,
710 Megabytes, or Gigabytes, respectively. The default is between
711 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
712 value is specified in seconds and may use any of the units
713 documented in the TIME FORMATS section of sshd_config(5). The
714 default value for RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that
715 rekeying is performed after the cipher's default amount of data
716 has been sent or received and no time based rekeying is done.
717 This option applies to protocol version 2 only.
718
719 RemoteForward
720 Specifies that a TCP port on the remote machine be forwarded over
721 the secure channel to the specified host and port from the local
722 machine. The first argument must be [bind_address:]port and the
723 second argument must be host:hostport. IPv6 addresses can be
724 specified by enclosing addresses in square brackets. Multiple
725 forwardings may be specified, and additional forwardings can be
726 given on the command line. Privileged ports can be forwarded
727 only when logging in as root on the remote machine.
728
729 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
730 allocated on the server and reported to the client at run time.
731
732 If the bind_address is not specified, the default is to only bind
733 to loopback addresses. If the bind_address is M-bM-^@M-^X*M-bM-^@M-^Y or an empty
734 string, then the forwarding is requested to listen on all
735 interfaces. Specifying a remote bind_address will only succeed
736 if the server's GatewayPorts option is enabled (see
737 sshd_config(5)).
738
739 RequestTTY
740 Specifies whether to request a pseudo-tty for the session. The
741 argument may be one of: M-bM-^@M-^\noM-bM-^@M-^] (never request a TTY), M-bM-^@M-^\yesM-bM-^@M-^] (always
742 request a TTY when standard input is a TTY), M-bM-^@M-^\forceM-bM-^@M-^] (always
743 request a TTY) or M-bM-^@M-^\autoM-bM-^@M-^] (request a TTY when opening a login
744 session). This option mirrors the -t and -T flags for ssh(1).
745
746 RevokedHostKeys
747 Specifies revoked host public keys. Keys listed in this file
748 will be refused for host authentication. Note that if this file
749 does not exist or is not readable, then host authentication will
750 be refused for all hosts. Keys may be specified as a text file,
751 listing one public key per line, or as an OpenSSH Key Revocation
752 List (KRL) as generated by ssh-keygen(1). For more information
753 on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen(1).
754
755 RhostsRSAAuthentication
756 Specifies whether to try rhosts based authentication with RSA
757 host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
758 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only
759 and requires ssh(1) to be setuid root.
760
761 RSAAuthentication
762 Specifies whether to try RSA authentication. The argument to
763 this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only
764 be attempted if the identity file exists, or an authentication
765 agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option
766 applies to protocol version 1 only.
767
768 SendEnv
769 Specifies what variables from the local environ(7) should be sent
770 to the server. Note that environment passing is only supported
771 for protocol 2. The server must also support it, and the server
772 must be configured to accept these environment variables. Note
773 that the TERM environment variable is always sent whenever a
774 pseudo-terminal is requested as it is required by the protocol.
775 Refer to AcceptEnv in sshd_config(5) for how to configure the
776 server. Variables are specified by name, which may contain
777 wildcard characters. Multiple environment variables may be
778 separated by whitespace or spread across multiple SendEnv
779 directives. The default is not to send any environment
780 variables.
781
782 See PATTERNS for more information on patterns.
783
784 ServerAliveCountMax
785 Sets the number of server alive messages (see below) which may be
786 sent without ssh(1) receiving any messages back from the server.
787 If this threshold is reached while server alive messages are
788 being sent, ssh will disconnect from the server, terminating the
789 session. It is important to note that the use of server alive
790 messages is very different from TCPKeepAlive (below). The server
791 alive messages are sent through the encrypted channel and
792 therefore will not be spoofable. The TCP keepalive option
793 enabled by TCPKeepAlive is spoofable. The server alive mechanism
794 is valuable when the client or server depend on knowing when a
795 connection has become inactive.
796
797 The default value is 3. If, for example, ServerAliveInterval
798 (see below) is set to 15 and ServerAliveCountMax is left at the
799 default, if the server becomes unresponsive, ssh will disconnect
800 after approximately 45 seconds. This option applies to protocol
801 version 2 only.
802
803 ServerAliveInterval
804 Sets a timeout interval in seconds after which if no data has
805 been received from the server, ssh(1) will send a message through
806 the encrypted channel to request a response from the server. The
807 default is 0, indicating that these messages will not be sent to
808 the server. This option applies to protocol version 2 only.
809
810 StreamLocalBindMask
811 Sets the octal file creation mode mask (umask) used when creating
812 a Unix-domain socket file for local or remote port forwarding.
813 This option is only used for port forwarding to a Unix-domain
814 socket file.
815
816 The default value is 0177, which creates a Unix-domain socket
817 file that is readable and writable only by the owner. Note that
818 not all operating systems honor the file mode on Unix-domain
819 socket files.
820
821 StreamLocalBindUnlink
822 Specifies whether to remove an existing Unix-domain socket file
823 for local or remote port forwarding before creating a new one.
824 If the socket file already exists and StreamLocalBindUnlink is
825 not enabled, ssh will be unable to forward the port to the Unix-
826 domain socket file. This option is only used for port forwarding
827 to a Unix-domain socket file.
828
829 The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
830
831 StrictHostKeyChecking
832 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will never automatically add
833 host keys to the ~/.ssh/known_hosts file, and refuses to connect
834 to hosts whose host key has changed. This provides maximum
835 protection against trojan horse attacks, though it can be
836 annoying when the /etc/ssh/ssh_known_hosts file is poorly
837 maintained or when connections to new hosts are frequently made.
838 This option forces the user to manually add all new hosts. If
839 this flag is set to M-bM-^@M-^\noM-bM-^@M-^], ssh will automatically add new host
840 keys to the user known hosts files. If this flag is set to
841 M-bM-^@M-^\askM-bM-^@M-^], new host keys will be added to the user known host files
842 only after the user has confirmed that is what they really want
843 to do, and ssh will refuse to connect to hosts whose host key has
844 changed. The host keys of known hosts will be verified
845 automatically in all cases. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or
846 M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^].
847
848 TCPKeepAlive
849 Specifies whether the system should send TCP keepalive messages
850 to the other side. If they are sent, death of the connection or
851 crash of one of the machines will be properly noticed. However,
852 this means that connections will die if the route is down
853 temporarily, and some people find it annoying.
854
855 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
856 client will notice if the network goes down or the remote host
857 dies. This is important in scripts, and many users want it too.
858
859 To disable TCP keepalive messages, the value should be set to
860 M-bM-^@M-^\noM-bM-^@M-^].
861
862 Tunnel Request tun(4) device forwarding between the client and the
863 server. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3),
864 M-bM-^@M-^\ethernetM-bM-^@M-^] (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] requests the
865 default tunnel mode, which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. The default is
866 M-bM-^@M-^\noM-bM-^@M-^].
867
868 TunnelDevice
869 Specifies the tun(4) devices to open on the client (local_tun)
870 and the server (remote_tun).
871
872 The argument must be local_tun[:remote_tun]. The devices may be
873 specified by numerical ID or the keyword M-bM-^@M-^\anyM-bM-^@M-^], which uses the
874 next available tunnel device. If remote_tun is not specified, it
875 defaults to M-bM-^@M-^\anyM-bM-^@M-^]. The default is M-bM-^@M-^\any:anyM-bM-^@M-^].
876
877 UpdateHostKeys
878 Specifies whether ssh(1) should accept notifications of
879 additional hostkeys from the server sent after authentication has
880 completed and add them to UserKnownHostsFile. The argument must
881 be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^] (the default) or M-bM-^@M-^\askM-bM-^@M-^]. Enabling this option
882 allows learning alternate hostkeys for a server and supports
883 graceful key rotation by allowing a server to send replacement
884 public keys before old ones are removed. Additional hostkeys are
885 only accepted if the key used to authenticate the host was
886 already trusted or explicity accepted by the user. If
887 UpdateHostKeys is set to M-bM-^@M-^\askM-bM-^@M-^], then the user is asked to confirm
888 the modifications to the known_hosts file. Confirmation is
889 currently incompatible with ControlPersist, and will be disabled
890 if it is enabled.
891
892 Presently, only sshd(8) from OpenSSH 6.8 and greater support the
893 M-bM-^@M-^\hostkeys@openssh.comM-bM-^@M-^] protocol extension used to inform the
894 client of all the server's hostkeys.
895
896 UsePrivilegedPort
897 Specifies whether to use a privileged port for outgoing
898 connections. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
899 M-bM-^@M-^\noM-bM-^@M-^]. If set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) must be setuid root. Note that
900 this option must be set to M-bM-^@M-^\yesM-bM-^@M-^] for RhostsRSAAuthentication with
901 older servers.
902
903 User Specifies the user to log in as. This can be useful when a
904 different user name is used on different machines. This saves
905 the trouble of having to remember to give the user name on the
906 command line.
907
908 UserKnownHostsFile
909 Specifies one or more files to use for the user host key
910 database, separated by whitespace. The default is
911 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
912
913 VerifyHostKeyDNS
914 Specifies whether to verify the remote key using DNS and SSHFP
915 resource records. If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], the client
916 will implicitly trust keys that match a secure fingerprint from
917 DNS. Insecure fingerprints will be handled as if this option was
918 set to M-bM-^@M-^\askM-bM-^@M-^]. If this option is set to M-bM-^@M-^\askM-bM-^@M-^], information on
919 fingerprint match will be displayed, but the user will still need
920 to confirm new host keys according to the StrictHostKeyChecking
921 option. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or M-bM-^@M-^\askM-bM-^@M-^]. The default
922 is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2
923 only.
924
925 See also VERIFYING HOST KEYS in ssh(1).
926
927 VisualHostKey
928 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], an ASCII art representation of the
929 remote host key fingerprint is printed in addition to the
930 fingerprint string at login and for unknown host keys. If this
931 flag is set to M-bM-^@M-^\noM-bM-^@M-^], no fingerprint strings are printed at login
932 and only the fingerprint string will be printed for unknown host
933 keys. The default is M-bM-^@M-^\noM-bM-^@M-^].
934
935 XAuthLocation
936 Specifies the full pathname of the xauth(1) program. The default
937 is /usr/X11R6/bin/xauth.
938
939PATTERNS
940 A pattern consists of zero or more non-whitespace characters, M-bM-^@M-^X*M-bM-^@M-^Y (a
941 wildcard that matches zero or more characters), or M-bM-^@M-^X?M-bM-^@M-^Y (a wildcard that
942 matches exactly one character). For example, to specify a set of
943 declarations for any host in the M-bM-^@M-^\.co.ukM-bM-^@M-^] set of domains, the following
944 pattern could be used:
945
946 Host *.co.uk
947
948 The following pattern would match any host in the 192.168.0.[0-9] network
949 range:
950
951 Host 192.168.0.?
952
953 A pattern-list is a comma-separated list of patterns. Patterns within
954 pattern-lists may be negated by preceding them with an exclamation mark
955 (M-bM-^@M-^X!M-bM-^@M-^Y). For example, to allow a key to be used from anywhere within an
956 organization except from the M-bM-^@M-^\dialupM-bM-^@M-^] pool, the following entry (in
957 authorized_keys) could be used:
958
959 from="!*.dialup.example.com,*.example.com"
960
961FILES
962 ~/.ssh/config
963 This is the per-user configuration file. The format of this file
964 is described above. This file is used by the SSH client.
965 Because of the potential for abuse, this file must have strict
966 permissions: read/write for the user, and not accessible by
967 others.
968
969 /etc/ssh/ssh_config
970 Systemwide configuration file. This file provides defaults for
971 those values that are not specified in the user's configuration
972 file, and for those users who do not have a configuration file.
973 This file must be world-readable.
974
975SEE ALSO
976 ssh(1)
977
978AUTHORS
979 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
980 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
981 de Raadt and Dug Song removed many bugs, re-added newer features and
982 created OpenSSH. Markus Friedl contributed the support for SSH protocol
983 versions 1.5 and 2.0.
984
985OpenBSD 5.7 June 2, 2015 OpenBSD 5.7
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..33a9392f9
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,636 @@
1SSHD(8) System Manager's Manual SSHD(8)
2
3NAME
4 sshd M-bM-^@M-^S OpenSSH SSH daemon
5
6SYNOPSIS
7 sshd [-46DdeiqTt] [-b bits] [-C connection_spec]
8 [-c host_certificate_file] [-E log_file] [-f config_file]
9 [-g login_grace_time] [-h host_key_file] [-k key_gen_time]
10 [-o option] [-p port] [-u len]
11
12DESCRIPTION
13 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
14 programs replace rlogin and rsh, and provide secure encrypted
15 communications between two untrusted hosts over an insecure network.
16
17 sshd listens for connections from clients. It is normally started at
18 boot from /etc/rc. It forks a new daemon for each incoming connection.
19 The forked daemons handle key exchange, encryption, authentication,
20 command execution, and data exchange.
21
22 sshd can be configured using command-line options or a configuration file
23 (by default sshd_config(5)); command-line options override values
24 specified in the configuration file. sshd rereads its configuration file
25 when it receives a hangup signal, SIGHUP, by executing itself with the
26 name and options it was started with, e.g. /usr/sbin/sshd.
27
28 The options are as follows:
29
30 -4 Forces sshd to use IPv4 addresses only.
31
32 -6 Forces sshd to use IPv6 addresses only.
33
34 -b bits
35 Specifies the number of bits in the ephemeral protocol version 1
36 server key (default 1024).
37
38 -C connection_spec
39 Specify the connection parameters to use for the -T extended test
40 mode. If provided, any Match directives in the configuration
41 file that would apply to the specified user, host, and address
42 will be set before the configuration is written to standard
43 output. The connection parameters are supplied as keyword=value
44 pairs. The keywords are M-bM-^@M-^\userM-bM-^@M-^], M-bM-^@M-^\hostM-bM-^@M-^], M-bM-^@M-^\laddrM-bM-^@M-^], M-bM-^@M-^\lportM-bM-^@M-^], and
45 M-bM-^@M-^\addrM-bM-^@M-^]. All are required and may be supplied in any order,
46 either with multiple -C options or as a comma-separated list.
47
48 -c host_certificate_file
49 Specifies a path to a certificate file to identify sshd during
50 key exchange. The certificate file must match a host key file
51 specified using the -h option or the HostKey configuration
52 directive.
53
54 -D When this option is specified, sshd will not detach and does not
55 become a daemon. This allows easy monitoring of sshd.
56
57 -d Debug mode. The server sends verbose debug output to standard
58 error, and does not put itself in the background. The server
59 also will not fork and will only process one connection. This
60 option is only intended for debugging for the server. Multiple
61 -d options increase the debugging level. Maximum is 3.
62
63 -E log_file
64 Append debug logs to log_file instead of the system log.
65
66 -e Write debug logs to standard error instead of the system log.
67
68 -f config_file
69 Specifies the name of the configuration file. The default is
70 /etc/ssh/sshd_config. sshd refuses to start if there is no
71 configuration file.
72
73 -g login_grace_time
74 Gives the grace time for clients to authenticate themselves
75 (default 120 seconds). If the client fails to authenticate the
76 user within this many seconds, the server disconnects and exits.
77 A value of zero indicates no limit.
78
79 -h host_key_file
80 Specifies a file from which a host key is read. This option must
81 be given if sshd is not run as root (as the normal host key files
82 are normally not readable by anyone but root). The default is
83 /etc/ssh/ssh_host_key for protocol version 1, and
84 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key.
85 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
86 protocol version 2. It is possible to have multiple host key
87 files for the different protocol versions and host key
88 algorithms.
89
90 -i Specifies that sshd is being run from inetd(8). sshd is normally
91 not run from inetd because it needs to generate the server key
92 before it can respond to the client, and this may take tens of
93 seconds. Clients would have to wait too long if the key was
94 regenerated every time. However, with small key sizes (e.g. 512)
95 using sshd from inetd may be feasible.
96
97 -k key_gen_time
98 Specifies how often the ephemeral protocol version 1 server key
99 is regenerated (default 3600 seconds, or one hour). The
100 motivation for regenerating the key fairly often is that the key
101 is not stored anywhere, and after about an hour it becomes
102 impossible to recover the key for decrypting intercepted
103 communications even if the machine is cracked into or physically
104 seized. A value of zero indicates that the key will never be
105 regenerated.
106
107 -o option
108 Can be used to give options in the format used in the
109 configuration file. This is useful for specifying options for
110 which there is no separate command-line flag. For full details
111 of the options, and their values, see sshd_config(5).
112
113 -p port
114 Specifies the port on which the server listens for connections
115 (default 22). Multiple port options are permitted. Ports
116 specified in the configuration file with the Port option are
117 ignored when a command-line port is specified. Ports specified
118 using the ListenAddress option override command-line ports.
119
120 -q Quiet mode. Nothing is sent to the system log. Normally the
121 beginning, authentication, and termination of each connection is
122 logged.
123
124 -T Extended test mode. Check the validity of the configuration
125 file, output the effective configuration to stdout and then exit.
126 Optionally, Match rules may be applied by specifying the
127 connection parameters using one or more -C options.
128
129 -t Test mode. Only check the validity of the configuration file and
130 sanity of the keys. This is useful for updating sshd reliably as
131 configuration options may change.
132
133 -u len This option is used to specify the size of the field in the utmp
134 structure that holds the remote host name. If the resolved host
135 name is longer than len, the dotted decimal value will be used
136 instead. This allows hosts with very long host names that
137 overflow this field to still be uniquely identified. Specifying
138 -u0 indicates that only dotted decimal addresses should be put
139 into the utmp file. -u0 may also be used to prevent sshd from
140 making DNS requests unless the authentication mechanism or
141 configuration requires it. Authentication mechanisms that may
142 require DNS include RhostsRSAAuthentication,
143 HostbasedAuthentication, and using a from="pattern-list" option
144 in a key file. Configuration options that require DNS include
145 using a USER@HOST pattern in AllowUsers or DenyUsers.
146
147AUTHENTICATION
148 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
149 use protocol 2 only, though this can be changed via the Protocol option
150 in sshd_config(5). Protocol 2 supports DSA, ECDSA, Ed25519 and RSA keys;
151 protocol 1 only supports RSA keys. For both protocols, each host has a
152 host-specific key, normally 2048 bits, used to identify the host.
153
154 Forward security for protocol 1 is provided through an additional server
155 key, normally 768 bits, generated when the server starts. This key is
156 normally regenerated every hour if it has been used, and is never stored
157 on disk. Whenever a client connects, the daemon responds with its public
158 host and server keys. The client compares the RSA host key against its
159 own database to verify that it has not changed. The client then
160 generates a 256-bit random number. It encrypts this random number using
161 both the host key and the server key, and sends the encrypted number to
162 the server. Both sides then use this random number as a session key
163 which is used to encrypt all further communications in the session. The
164 rest of the session is encrypted using a conventional cipher, currently
165 Blowfish or 3DES, with 3DES being used by default. The client selects
166 the encryption algorithm to use from those offered by the server.
167
168 For protocol 2, forward security is provided through a Diffie-Hellman key
169 agreement. This key agreement results in a shared session key. The rest
170 of the session is encrypted using a symmetric cipher, currently 128-bit
171 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
172 client selects the encryption algorithm to use from those offered by the
173 server. Additionally, session integrity is provided through a
174 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64,
175 umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512).
176
177 Finally, the server and the client enter an authentication dialog. The
178 client tries to authenticate itself using host-based authentication,
179 public key authentication, challenge-response authentication, or password
180 authentication.
181
182 Regardless of the authentication type, the account is checked to ensure
183 that it is accessible. An account is not accessible if it is locked,
184 listed in DenyUsers or its group is listed in DenyGroups . The
185 definition of a locked account is system dependant. Some platforms have
186 their own account database (eg AIX) and some modify the passwd field (
187 M-bM-^@M-^X*LK*M-bM-^@M-^Y on Solaris and UnixWare, M-bM-^@M-^X*M-bM-^@M-^Y on HP-UX, containing M-bM-^@M-^XNologinM-bM-^@M-^Y on
188 Tru64, a leading M-bM-^@M-^X*LOCKED*M-bM-^@M-^Y on FreeBSD and a leading M-bM-^@M-^X!M-bM-^@M-^Y on most
189 Linuxes). If there is a requirement to disable password authentication
190 for the account while allowing still public-key, then the passwd field
191 should be set to something other than these values (eg M-bM-^@M-^XNPM-bM-^@M-^Y or M-bM-^@M-^X*NP*M-bM-^@M-^Y ).
192
193 If the client successfully authenticates itself, a dialog for preparing
194 the session is entered. At this time the client may request things like
195 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
196 connections, or forwarding the authentication agent connection over the
197 secure channel.
198
199 After this, the client either requests a shell or execution of a command.
200 The sides then enter session mode. In this mode, either side may send
201 data at any time, and such data is forwarded to/from the shell or command
202 on the server side, and the user terminal in the client side.
203
204 When the user program terminates and all forwarded X11 and other
205 connections have been closed, the server sends command exit status to the
206 client, and both sides exit.
207
208LOGIN PROCESS
209 When a user successfully logs in, sshd does the following:
210
211 1. If the login is on a tty, and no command has been specified,
212 prints last login time and /etc/motd (unless prevented in the
213 configuration file or by ~/.hushlogin; see the FILES section).
214
215 2. If the login is on a tty, records login time.
216
217 3. Checks /etc/nologin; if it exists, prints contents and quits
218 (unless root).
219
220 4. Changes to run with normal user privileges.
221
222 5. Sets up basic environment.
223
224 6. Reads the file ~/.ssh/environment, if it exists, and users are
225 allowed to change their environment. See the
226 PermitUserEnvironment option in sshd_config(5).
227
228 7. Changes to user's home directory.
229
230 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option
231 is set, runs it; else if /etc/ssh/sshrc exists, runs it;
232 otherwise runs xauth. The M-bM-^@M-^\rcM-bM-^@M-^] files are given the X11
233 authentication protocol and cookie in standard input. See
234 SSHRC, below.
235
236 9. Runs user's shell or command. All commands are run under the
237 user's login shell as specified in the system password
238 database.
239
240SSHRC
241 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
242 files but before starting the user's shell or command. It must not
243 produce any output on stdout; stderr must be used instead. If X11
244 forwarding is in use, it will receive the "proto cookie" pair in its
245 standard input (and DISPLAY in its environment). The script must call
246 xauth(1) because sshd will not run xauth automatically to add X11
247 cookies.
248
249 The primary purpose of this file is to run any initialization routines
250 which may be needed before the user's home directory becomes accessible;
251 AFS is a particular example of such an environment.
252
253 This file will probably contain some initialization code followed by
254 something similar to:
255
256 if read proto cookie && [ -n "$DISPLAY" ]; then
257 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
258 # X11UseLocalhost=yes
259 echo add unix:`echo $DISPLAY |
260 cut -c11-` $proto $cookie
261 else
262 # X11UseLocalhost=no
263 echo add $DISPLAY $proto $cookie
264 fi | xauth -q -
265 fi
266
267 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
268 exist either, xauth is used to add the cookie.
269
270AUTHORIZED_KEYS FILE FORMAT
271 AuthorizedKeysFile specifies the files containing public keys for public
272 key authentication; if none is specified, the default is
273 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the
274 file contains one key (empty lines and lines starting with a M-bM-^@M-^X#M-bM-^@M-^Y are
275 ignored as comments). Protocol 1 public keys consist of the following
276 space-separated fields: options, bits, exponent, modulus, comment.
277 Protocol 2 public key consist of: options, keytype, base64-encoded key,
278 comment. The options field is optional; its presence is determined by
279 whether the line starts with a number or not (the options field never
280 starts with a number). The bits, exponent, modulus, and comment fields
281 give the RSA key for protocol version 1; the comment field is not used
282 for anything (but may be convenient for the user to identify the key).
283 For protocol version 2 the keytype is M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^],
284 M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or
285 M-bM-^@M-^\ssh-rsaM-bM-^@M-^].
286
287 Note that lines in this file are usually several hundred bytes long
288 (because of the size of the public key encoding) up to a limit of 8
289 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
290 kilobits. You don't want to type them in; instead, copy the
291 identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub
292 file and edit it.
293
294 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
295 2 keys of 768 bits.
296
297 The options (if present) consist of comma-separated option
298 specifications. No spaces are permitted, except within double quotes.
299 The following option specifications are supported (note that option
300 keywords are case-insensitive):
301
302 cert-authority
303 Specifies that the listed key is a certification authority (CA)
304 that is trusted to validate signed certificates for user
305 authentication.
306
307 Certificates may encode access restrictions similar to these key
308 options. If both certificate restrictions and key options are
309 present, the most restrictive union of the two is applied.
310
311 command="command"
312 Specifies that the command is executed whenever this key is used
313 for authentication. The command supplied by the user (if any) is
314 ignored. The command is run on a pty if the client requests a
315 pty; otherwise it is run without a tty. If an 8-bit clean
316 channel is required, one must not request a pty or should specify
317 no-pty. A quote may be included in the command by quoting it
318 with a backslash. This option might be useful to restrict
319 certain public keys to perform just a specific operation. An
320 example might be a key that permits remote backups but nothing
321 else. Note that the client may specify TCP and/or X11 forwarding
322 unless they are explicitly prohibited. The command originally
323 supplied by the client is available in the SSH_ORIGINAL_COMMAND
324 environment variable. Note that this option applies to shell,
325 command or subsystem execution. Also note that this command may
326 be superseded by either a sshd_config(5) ForceCommand directive
327 or a command embedded in a certificate.
328
329 environment="NAME=value"
330 Specifies that the string is to be added to the environment when
331 logging in using this key. Environment variables set this way
332 override other default environment values. Multiple options of
333 this type are permitted. Environment processing is disabled by
334 default and is controlled via the PermitUserEnvironment option.
335 This option is automatically disabled if UseLogin is enabled.
336
337 from="pattern-list"
338 Specifies that in addition to public key authentication, either
339 the canonical name of the remote host or its IP address must be
340 present in the comma-separated list of patterns. See PATTERNS in
341 ssh_config(5) for more information on patterns.
342
343 In addition to the wildcard matching that may be applied to
344 hostnames or addresses, a from stanza may match IP addresses
345 using CIDR address/masklen notation.
346
347 The purpose of this option is to optionally increase security:
348 public key authentication by itself does not trust the network or
349 name servers or anything (but the key); however, if somebody
350 somehow steals the key, the key permits an intruder to log in
351 from anywhere in the world. This additional option makes using a
352 stolen key more difficult (name servers and/or routers would have
353 to be compromised in addition to just the key).
354
355 no-agent-forwarding
356 Forbids authentication agent forwarding when this key is used for
357 authentication.
358
359 no-port-forwarding
360 Forbids TCP forwarding when this key is used for authentication.
361 Any port forward requests by the client will return an error.
362 This might be used, e.g. in connection with the command option.
363
364 no-pty Prevents tty allocation (a request to allocate a pty will fail).
365
366 no-user-rc
367 Disables execution of ~/.ssh/rc.
368
369 no-X11-forwarding
370 Forbids X11 forwarding when this key is used for authentication.
371 Any X11 forward requests by the client will return an error.
372
373 permitopen="host:port"
374 Limit local port forwarding with ssh(1) -L such that it may only
375 connect to the specified host and port. IPv6 addresses can be
376 specified by enclosing the address in square brackets. Multiple
377 permitopen options may be applied separated by commas. No
378 pattern matching is performed on the specified hostnames, they
379 must be literal domains or addresses. A port specification of *
380 matches any port.
381
382 principals="principals"
383 On a cert-authority line, specifies allowed principals for
384 certificate authentication as a comma-separated list. At least
385 one name from the list must appear in the certificate's list of
386 principals for the certificate to be accepted. This option is
387 ignored for keys that are not marked as trusted certificate
388 signers using the cert-authority option.
389
390 tunnel="n"
391 Force a tun(4) device on the server. Without this option, the
392 next available device will be used if the client requests a
393 tunnel.
394
395 An example authorized_keys file:
396
397 # Comments allowed at start of line
398 ssh-rsa AAAAB3Nza...LiPk== user@example.net
399 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
400 AAAAB2...19Q== john@example.net
401 command="dump /home",no-pty,no-port-forwarding ssh-dss
402 AAAAC3...51R== example.net
403 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
404 AAAAB5...21S==
405 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
406 jane@example.net
407
408SSH_KNOWN_HOSTS FILE FORMAT
409 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
410 public keys for all known hosts. The global file should be prepared by
411 the administrator (optional), and the per-user file is maintained
412 automatically: whenever the user connects from an unknown host, its key
413 is added to the per-user file.
414
415 Each line in these files contains the following fields: markers
416 (optional), hostnames, bits, exponent, modulus, comment. The fields are
417 separated by spaces.
418
419 The marker is optional, but if it is present then it must be one of
420 M-bM-^@M-^\@cert-authorityM-bM-^@M-^], to indicate that the line contains a certification
421 authority (CA) key, or M-bM-^@M-^\@revokedM-bM-^@M-^], to indicate that the key contained on
422 the line is revoked and must not ever be accepted. Only one marker
423 should be used on a key line.
424
425 Hostnames is a comma-separated list of patterns (M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y act as
426 wildcards); each pattern in turn is matched against the canonical host
427 name (when authenticating a client) or against the user-supplied name
428 (when authenticating a server). A pattern may also be preceded by M-bM-^@M-^X!M-bM-^@M-^Y to
429 indicate negation: if the host name matches a negated pattern, it is not
430 accepted (by that line) even if it matched another pattern on the line.
431 A hostname or address may optionally be enclosed within M-bM-^@M-^X[M-bM-^@M-^Y and M-bM-^@M-^X]M-bM-^@M-^Y
432 brackets then followed by M-bM-^@M-^X:M-bM-^@M-^Y and a non-standard port number.
433
434 Alternately, hostnames may be stored in a hashed form which hides host
435 names and addresses should the file's contents be disclosed. Hashed
436 hostnames start with a M-bM-^@M-^X|M-bM-^@M-^Y character. Only one hashed hostname may
437 appear on a single line and none of the above negation or wildcard
438 operators may be applied.
439
440 Bits, exponent, and modulus are taken directly from the RSA host key;
441 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
442 optional comment field continues to the end of the line, and is not used.
443
444 Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments.
445
446 When performing host authentication, authentication is accepted if any
447 matching line has the proper key; either one that matches exactly or, if
448 the server has presented a certificate for authentication, the key of the
449 certification authority that signed the certificate. For a key to be
450 trusted as a certification authority, it must use the M-bM-^@M-^\@cert-authorityM-bM-^@M-^]
451 marker described above.
452
453 The known hosts file also provides a facility to mark keys as revoked,
454 for example when it is known that the associated private key has been
455 stolen. Revoked keys are specified by including the M-bM-^@M-^\@revokedM-bM-^@M-^] marker at
456 the beginning of the key line, and are never accepted for authentication
457 or as certification authorities, but instead will produce a warning from
458 ssh(1) when they are encountered.
459
460 It is permissible (but not recommended) to have several lines or
461 different host keys for the same names. This will inevitably happen when
462 short forms of host names from different domains are put in the file. It
463 is possible that the files contain conflicting information;
464 authentication is accepted if valid information can be found from either
465 file.
466
467 Note that the lines in these files are typically hundreds of characters
468 long, and you definitely don't want to type in the host keys by hand.
469 Rather, generate them by a script, ssh-keyscan(1) or by taking
470 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
471 ssh-keygen(1) also offers some basic automated editing for
472 ~/.ssh/known_hosts including removing hosts matching a host name and
473 converting all host names to their hashed representations.
474
475 An example ssh_known_hosts file:
476
477 # Comments allowed at start of line
478 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
479 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
480 # A hashed hostname
481 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
482 AAAA1234.....=
483 # A revoked key
484 @revoked * ssh-rsa AAAAB5W...
485 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
486 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
487
488FILES
489 ~/.hushlogin
490 This file is used to suppress printing the last login time and
491 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
492 enabled. It does not suppress printing of the banner specified
493 by Banner.
494
495 ~/.rhosts
496 This file is used for host-based authentication (see ssh(1) for
497 more information). On some machines this file may need to be
498 world-readable if the user's home directory is on an NFS
499 partition, because sshd reads it as root. Additionally, this
500 file must be owned by the user, and must not have write
501 permissions for anyone else. The recommended permission for most
502 machines is read/write for the user, and not accessible by
503 others.
504
505 ~/.shosts
506 This file is used in exactly the same way as .rhosts, but allows
507 host-based authentication without permitting login with
508 rlogin/rsh.
509
510 ~/.ssh/
511 This directory is the default location for all user-specific
512 configuration and authentication information. There is no
513 general requirement to keep the entire contents of this directory
514 secret, but the recommended permissions are read/write/execute
515 for the user, and not accessible by others.
516
517 ~/.ssh/authorized_keys
518 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
519 for logging in as this user. The format of this file is
520 described above. The content of the file is not highly
521 sensitive, but the recommended permissions are read/write for the
522 user, and not accessible by others.
523
524 If this file, the ~/.ssh directory, or the user's home directory
525 are writable by other users, then the file could be modified or
526 replaced by unauthorized users. In this case, sshd will not
527 allow it to be used unless the StrictModes option has been set to
528 M-bM-^@M-^\noM-bM-^@M-^].
529
530 ~/.ssh/environment
531 This file is read into the environment at login (if it exists).
532 It can only contain empty lines, comment lines (that start with
533 M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file
534 should be writable only by the user; it need not be readable by
535 anyone else. Environment processing is disabled by default and
536 is controlled via the PermitUserEnvironment option.
537
538 ~/.ssh/known_hosts
539 Contains a list of host keys for all hosts the user has logged
540 into that are not already in the systemwide list of known host
541 keys. The format of this file is described above. This file
542 should be writable only by root/the owner and can, but need not
543 be, world-readable.
544
545 ~/.ssh/rc
546 Contains initialization routines to be run before the user's home
547 directory becomes accessible. This file should be writable only
548 by the user, and need not be readable by anyone else.
549
550 /etc/hosts.equiv
551 This file is for host-based authentication (see ssh(1)). It
552 should only be writable by root.
553
554 /etc/moduli
555 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
556 Exchange". The file format is described in moduli(5).
557
558 /etc/motd
559 See motd(5).
560
561 /etc/nologin
562 If this file exists, sshd refuses to let anyone except root log
563 in. The contents of the file are displayed to anyone trying to
564 log in, and non-root connections are refused. The file should be
565 world-readable.
566
567 /etc/shosts.equiv
568 This file is used in exactly the same way as hosts.equiv, but
569 allows host-based authentication without permitting login with
570 rlogin/rsh.
571
572 /etc/ssh/ssh_host_key
573 /etc/ssh/ssh_host_dsa_key
574 /etc/ssh/ssh_host_ecdsa_key
575 /etc/ssh/ssh_host_ed25519_key
576 /etc/ssh/ssh_host_rsa_key
577 These files contain the private parts of the host keys. These
578 files should only be owned by root, readable only by root, and
579 not accessible to others. Note that sshd does not start if these
580 files are group/world-accessible.
581
582 /etc/ssh/ssh_host_key.pub
583 /etc/ssh/ssh_host_dsa_key.pub
584 /etc/ssh/ssh_host_ecdsa_key.pub
585 /etc/ssh/ssh_host_ed25519_key.pub
586 /etc/ssh/ssh_host_rsa_key.pub
587 These files contain the public parts of the host keys. These
588 files should be world-readable but writable only by root. Their
589 contents should match the respective private parts. These files
590 are not really used for anything; they are provided for the
591 convenience of the user so their contents can be copied to known
592 hosts files. These files are created using ssh-keygen(1).
593
594 /etc/ssh/ssh_known_hosts
595 Systemwide list of known host keys. This file should be prepared
596 by the system administrator to contain the public host keys of
597 all machines in the organization. The format of this file is
598 described above. This file should be writable only by root/the
599 owner and should be world-readable.
600
601 /etc/ssh/sshd_config
602 Contains configuration data for sshd. The file format and
603 configuration options are described in sshd_config(5).
604
605 /etc/ssh/sshrc
606 Similar to ~/.ssh/rc, it can be used to specify machine-specific
607 login-time initializations globally. This file should be
608 writable only by root, and should be world-readable.
609
610 /var/empty
611 chroot(2) directory used by sshd during privilege separation in
612 the pre-authentication phase. The directory should not contain
613 any files and must be owned by root and not group or world-
614 writable.
615
616 /var/run/sshd.pid
617 Contains the process ID of the sshd listening for connections (if
618 there are several daemons running concurrently for different
619 ports, this contains the process ID of the one started last).
620 The content of this file is not sensitive; it can be world-
621 readable.
622
623SEE ALSO
624 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
625 ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5),
626 inetd(8), sftp-server(8)
627
628AUTHORS
629 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
630 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
631 de Raadt and Dug Song removed many bugs, re-added newer features and
632 created OpenSSH. Markus Friedl contributed the support for SSH protocol
633 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
634 for privilege separation.
635
636OpenBSD 5.7 May 1, 2015 OpenBSD 5.7
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..641041852
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,995 @@
1SSHD_CONFIG(5) File Formats Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config M-bM-^@M-^S OpenSSH SSH daemon configuration file
5
6SYNOPSIS
7 /etc/ssh/sshd_config
8
9DESCRIPTION
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-
12 argument pairs, one per line. Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines
13 are interpreted as comments. Arguments may optionally be enclosed in
14 double quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that
17 keywords 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
23 environment passing is only supported for protocol 2, and that
24 the TERM environment variable is always sent whenever the client
25 requests a pseudo-terminal as it is required by the protocol.
26 Variables are specified by name, which may contain the wildcard
27 characters M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y. Multiple environment variables may be
28 separated by whitespace or spread across multiple AcceptEnv
29 directives. Be warned that some environment variables could be
30 used to bypass restricted user environments. For this reason,
31 care should be taken in the use of this directive. The default
32 is not to accept any environment variables.
33
34 AddressFamily
35 Specifies which address family should be used by sshd(8). Valid
36 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
37 only). The default is M-bM-^@M-^\anyM-bM-^@M-^].
38
39 AllowAgentForwarding
40 Specifies whether ssh-agent(1) forwarding is permitted. The
41 default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling agent forwarding does not
42 improve security unless users are also denied shell access, as
43 they can always install their own forwarders.
44
45 AllowGroups
46 This keyword can be followed by a list of group name patterns,
47 separated by spaces. If specified, login is allowed only for
48 users whose primary group or supplementary group list matches one
49 of the patterns. Only group names are valid; a numerical group
50 ID is not recognized. By default, login is allowed for all
51 groups. The allow/deny directives are processed in the following
52 order: DenyUsers, AllowUsers, DenyGroups, and finally
53 AllowGroups.
54
55 See PATTERNS in ssh_config(5) for more information on patterns.
56
57 AllowTcpForwarding
58 Specifies whether TCP forwarding is permitted. The available
59 options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow TCP forwarding, M-bM-^@M-^\noM-bM-^@M-^] to
60 prevent all TCP forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the
61 perspective of ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow
62 remote forwarding only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that
63 disabling TCP forwarding does not improve security unless users
64 are also denied shell access, as they can always install their
65 own forwarders.
66
67 AllowStreamLocalForwarding
68 Specifies whether StreamLocal (Unix-domain socket) forwarding is
69 permitted. The available options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow
70 StreamLocal forwarding, M-bM-^@M-^\noM-bM-^@M-^] to prevent all StreamLocal
71 forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the perspective of
72 ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow remote forwarding
73 only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling StreamLocal
74 forwarding does not improve security unless users are also denied
75 shell access, as they can always install their own forwarders.
76
77 AllowUsers
78 This keyword can be followed by a list of user name patterns,
79 separated by spaces. If specified, login is allowed only for
80 user names that match one of the patterns. Only user names are
81 valid; a numerical user ID is not recognized. By default, login
82 is allowed for all users. If the pattern takes the form
83 USER@HOST then USER and HOST are separately checked, restricting
84 logins to particular users from particular hosts. The allow/deny
85 directives are processed in the following order: DenyUsers,
86 AllowUsers, DenyGroups, and finally AllowGroups.
87
88 See PATTERNS in ssh_config(5) for more information on patterns.
89
90 AuthenticationMethods
91 Specifies the authentication methods that must be successfully
92 completed for a user to be granted access. This option must be
93 followed by one or more comma-separated lists of authentication
94 method names. Successful authentication requires completion of
95 every method in at least one of these lists.
96
97 For example, an argument of M-bM-^@M-^\publickey,password
98 publickey,keyboard-interactiveM-bM-^@M-^] would require the user to
99 complete public key authentication, followed by either password
100 or keyboard interactive authentication. Only methods that are
101 next in one or more lists are offered at each stage, so for this
102 example, it would not be possible to attempt password or
103 keyboard-interactive authentication before public key.
104
105 For keyboard interactive authentication it is also possible to
106 restrict authentication to a specific device by appending a colon
107 followed by the device identifier M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], or M-bM-^@M-^\skeyM-bM-^@M-^],
108 depending on the server configuration. For example,
109 M-bM-^@M-^\keyboard-interactive:bsdauthM-bM-^@M-^] would restrict keyboard
110 interactive authentication to the M-bM-^@M-^\bsdauthM-bM-^@M-^] device.
111
112 If the M-bM-^@M-^\publickeyM-bM-^@M-^] method is listed more than once, sshd(8)
113 verifies that keys that have been used successfully are not
114 reused for subsequent authentications. For example, an
115 AuthenticationMethods of M-bM-^@M-^\publickey,publickeyM-bM-^@M-^] will require
116 successful authentication using two different public keys.
117
118 This option is only available for SSH protocol 2 and will yield a
119 fatal error if enabled if protocol 1 is also enabled. Note that
120 each authentication method listed should also be explicitly
121 enabled in the configuration. The default is not to require
122 multiple authentication; successful completion of a single
123 authentication method is sufficient.
124
125 AuthorizedKeysCommand
126 Specifies a program to be used to look up the user's public keys.
127 The program must be owned by root, not writable by group or
128 others and specified by an absolute path.
129
130 Arguments to AuthorizedKeysCommand may be provided using the
131 following tokens, which will be expanded at runtime: %% is
132 replaced by a literal '%', %u is replaced by the username being
133 authenticated, %h is replaced by the home directory of the user
134 being authenticated, %t is replaced with the key type offered for
135 authentication, %f is replaced with the fingerprint of the key,
136 and %k is replaced with the key being offered for authentication.
137 If no arguments are specified then the username of the target
138 user will be supplied.
139
140 The program should produce on standard output zero or more lines
141 of authorized_keys output (see AUTHORIZED_KEYS in sshd(8)). If a
142 key supplied by AuthorizedKeysCommand does not successfully
143 authenticate and authorize the user then public key
144 authentication continues using the usual AuthorizedKeysFile
145 files. By default, no AuthorizedKeysCommand is run.
146
147 AuthorizedKeysCommandUser
148 Specifies the user under whose account the AuthorizedKeysCommand
149 is run. It is recommended to use a dedicated user that has no
150 other role on the host than running authorized keys commands. If
151 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser
152 is not, then sshd(8) will refuse to start.
153
154 AuthorizedKeysFile
155 Specifies the file that contains the public keys that can be used
156 for user authentication. The format is described in the
157 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
158 AuthorizedKeysFile may contain tokens of the form %T which are
159 substituted during connection setup. The following tokens are
160 defined: %% is replaced by a literal '%', %h is replaced by the
161 home directory of the user being authenticated, and %u is
162 replaced by the username of that user. After expansion,
163 AuthorizedKeysFile is taken to be an absolute path or one
164 relative to the user's home directory. Multiple files may be
165 listed, separated by whitespace. The default is
166 M-bM-^@M-^\.ssh/authorized_keys .ssh/authorized_keys2M-bM-^@M-^].
167
168 AuthorizedPrincipalsCommand
169 Specifies a program to be used to generate the list of allowed
170 certificate principals as per AuthorizedPrincipalsFile. The
171 program must be owned by root, not writable by group or others
172 and specified by an absolute path.
173
174 Arguments to AuthorizedPrincipalsCommand may be provided using
175 the following tokens, which will be expanded at runtime: %% is
176 replaced by a literal '%', %u is replaced by the username being
177 authenticated and %h is replaced by the home directory of the
178 user being authenticated.
179
180 The program should produce on standard output zero or more lines
181 of AuthorizedPrincipalsFile output. If either
182 AuthorizedPrincipalsCommand or AuthorizedPrincipalsFile is
183 specified, then certificates offered by the client for
184 authentication must contain a principal that is listed. By
185 default, no AuthorizedPrincipalsCommand is run.
186
187 AuthorizedPrincipalsCommandUser
188 Specifies the user under whose account the
189 AuthorizedPrincipalsCommand is run. It is recommended to use a
190 dedicated user that has no other role on the host than running
191 authorized principals commands. If AuthorizedPrincipalsCommand
192 is specified but AuthorizedPrincipalsCommandUser is not, then
193 sshd(8) will refuse to start.
194
195 AuthorizedPrincipalsFile
196 Specifies a file that lists principal names that are accepted for
197 certificate authentication. When using certificates signed by a
198 key listed in TrustedUserCAKeys, this file lists names, one of
199 which must appear in the certificate for it to be accepted for
200 authentication. Names are listed one per line preceded by key
201 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
202 Empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are ignored.
203
204 AuthorizedPrincipalsFile may contain tokens of the form %T which
205 are substituted during connection setup. The following tokens
206 are defined: %% is replaced by a literal '%', %h is replaced by
207 the home directory of the user being authenticated, and %u is
208 replaced by the username of that user. After expansion,
209 AuthorizedPrincipalsFile is taken to be an absolute path or one
210 relative to the user's home directory.
211
212 The default is M-bM-^@M-^\noneM-bM-^@M-^], i.e. not to use a principals file M-bM-^@M-^S in
213 this case, the username of the user must appear in a
214 certificate's principals list for it to be accepted. Note that
215 AuthorizedPrincipalsFile is only used when authentication
216 proceeds using a CA listed in TrustedUserCAKeys and is not
217 consulted for certification authorities trusted via
218 ~/.ssh/authorized_keys, though the principals= key option offers
219 a similar facility (see sshd(8) for details).
220
221 Banner The contents of the specified file are sent to the remote user
222 before authentication is allowed. If the argument is M-bM-^@M-^\noneM-bM-^@M-^] then
223 no banner is displayed. This option is only available for
224 protocol version 2. By default, no banner is displayed.
225
226 ChallengeResponseAuthentication
227 Specifies whether challenge-response authentication is allowed
228 (e.g. via PAM or through authentication styles supported in
229 login.conf(5)) The default is M-bM-^@M-^\yesM-bM-^@M-^].
230
231 ChrootDirectory
232 Specifies the pathname of a directory to chroot(2) to after
233 authentication. At session startup sshd(8) checks that all
234 components of the pathname are root-owned directories which are
235 not writable by any other user or group. After the chroot,
236 sshd(8) changes the working directory to the user's home
237 directory.
238
239 The pathname may contain the following tokens that are expanded
240 at runtime once the connecting user has been authenticated: %% is
241 replaced by a literal '%', %h is replaced by the home directory
242 of the user being authenticated, and %u is replaced by the
243 username of that user.
244
245 The ChrootDirectory must contain the necessary files and
246 directories to support the user's session. For an interactive
247 session this requires at least a shell, typically sh(1), and
248 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
249 stderr(4), and tty(4) devices. For file transfer sessions using
250 M-bM-^@M-^\sftpM-bM-^@M-^], no additional configuration of the environment is
251 necessary if the in-process sftp server is used, though sessions
252 which use logging may require /dev/log inside the chroot
253 directory on some operating systems (see sftp-server(8) for
254 details).
255
256 For safety, it is very important that the directory hierarchy be
257 prevented from modification by other processes on the system
258 (especially those outside the jail). Misconfiguration can lead
259 to unsafe environments which sshd(8) cannot detect.
260
261 The default is not to chroot(2).
262
263 Ciphers
264 Specifies the ciphers allowed for protocol version 2. Multiple
265 ciphers must be comma-separated. The supported ciphers are:
266
267 3des-cbc
268 aes128-cbc
269 aes192-cbc
270 aes256-cbc
271 aes128-ctr
272 aes192-ctr
273 aes256-ctr
274 aes128-gcm@openssh.com
275 aes256-gcm@openssh.com
276 arcfour
277 arcfour128
278 arcfour256
279 blowfish-cbc
280 cast128-cbc
281 chacha20-poly1305@openssh.com
282
283 The default is:
284
285 aes128-ctr,aes192-ctr,aes256-ctr,
286 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
287 chacha20-poly1305@openssh.com
288
289 The list of available ciphers may also be obtained using the -Q
290 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
291
292 ClientAliveCountMax
293 Sets the number of client alive messages (see below) which may be
294 sent without sshd(8) receiving any messages back from the client.
295 If this threshold is reached while client alive messages are
296 being sent, sshd will disconnect the client, terminating the
297 session. It is important to note that the use of client alive
298 messages is very different from TCPKeepAlive (below). The client
299 alive messages are sent through the encrypted channel and
300 therefore will not be spoofable. The TCP keepalive option
301 enabled by TCPKeepAlive is spoofable. The client alive mechanism
302 is valuable when the client or server depend on knowing when a
303 connection has become inactive.
304
305 The default value is 3. If ClientAliveInterval (see below) is
306 set to 15, and ClientAliveCountMax is left at the default,
307 unresponsive SSH clients will be disconnected after approximately
308 45 seconds. This option applies to protocol version 2 only.
309
310 ClientAliveInterval
311 Sets a timeout interval in seconds after which if no data has
312 been received from the client, sshd(8) will send a message
313 through the encrypted channel to request a response from the
314 client. The default is 0, indicating that these messages will
315 not be sent to the client. This option applies to protocol
316 version 2 only.
317
318 Compression
319 Specifies whether compression is allowed, or delayed until the
320 user has authenticated successfully. The argument must be M-bM-^@M-^\yesM-bM-^@M-^],
321 M-bM-^@M-^\delayedM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\delayedM-bM-^@M-^].
322
323 DenyGroups
324 This keyword can be followed by a list of group name patterns,
325 separated by spaces. Login is disallowed for users whose primary
326 group or supplementary group list matches one of the patterns.
327 Only group names are valid; a numerical group ID is not
328 recognized. By default, login is allowed for all groups. The
329 allow/deny directives are processed in the following order:
330 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
331
332 See PATTERNS in ssh_config(5) for more information on patterns.
333
334 DenyUsers
335 This keyword can be followed by a list of user name patterns,
336 separated by spaces. Login is disallowed for user names that
337 match one of the patterns. Only user names are valid; a
338 numerical user ID is not recognized. By default, login is
339 allowed for all users. If the pattern takes the form USER@HOST
340 then USER and HOST are separately checked, restricting logins to
341 particular users from particular hosts. The allow/deny
342 directives are processed in the following order: DenyUsers,
343 AllowUsers, DenyGroups, and finally AllowGroups.
344
345 See PATTERNS in ssh_config(5) for more information on patterns.
346
347 FingerprintHash
348 Specifies the hash algorithm used when logging key fingerprints.
349 Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The default is M-bM-^@M-^\sha256M-bM-^@M-^].
350
351 ForceCommand
352 Forces the execution of the command specified by ForceCommand,
353 ignoring any command supplied by the client and ~/.ssh/rc if
354 present. The command is invoked by using the user's login shell
355 with the -c option. This applies to shell, command, or subsystem
356 execution. It is most useful inside a Match block. The command
357 originally supplied by the client is available in the
358 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
359 of M-bM-^@M-^\internal-sftpM-bM-^@M-^] will force the use of an in-process sftp
360 server that requires no support files when used with
361 ChrootDirectory.
362
363 GatewayPorts
364 Specifies whether remote hosts are allowed to connect to ports
365 forwarded for the client. By default, sshd(8) binds remote port
366 forwardings to the loopback address. This prevents other remote
367 hosts from connecting to forwarded ports. GatewayPorts can be
368 used to specify that sshd should allow remote port forwardings to
369 bind to non-loopback addresses, thus allowing other hosts to
370 connect. The argument may be M-bM-^@M-^\noM-bM-^@M-^] to force remote port
371 forwardings to be available to the local host only, M-bM-^@M-^\yesM-bM-^@M-^] to
372 force remote port forwardings to bind to the wildcard address, or
373 M-bM-^@M-^\clientspecifiedM-bM-^@M-^] to allow the client to select the address to
374 which the forwarding is bound. The default is M-bM-^@M-^\noM-bM-^@M-^].
375
376 GSSAPIAuthentication
377 Specifies whether user authentication based on GSSAPI is allowed.
378 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol
379 version 2 only.
380
381 GSSAPICleanupCredentials
382 Specifies whether to automatically destroy the user's credentials
383 cache on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option
384 applies to protocol version 2 only.
385
386 GSSAPIStrictAcceptorCheck
387 Determines whether to be strict about the identity of the GSSAPI
388 acceptor a client authenticates against. If set to M-bM-^@M-^\yesM-bM-^@M-^] then
389 the client must authenticate against the host service on the
390 current hostname. If set to M-bM-^@M-^\noM-bM-^@M-^] then the client may
391 authenticate against any service key stored in the machine's
392 default store. This facility is provided to assist with
393 operation on multi homed machines. The default is M-bM-^@M-^\yesM-bM-^@M-^].
394
395 HostbasedAcceptedKeyTypes
396 Specifies the key types that will be accepted for hostbased
397 authentication as a comma-separated pattern list. The default
398 M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be
399 used to list supported key types.
400
401 HostbasedAuthentication
402 Specifies whether rhosts or /etc/hosts.equiv authentication
403 together with successful public key client host authentication is
404 allowed (host-based authentication). This option is similar to
405 RhostsRSAAuthentication and applies to protocol version 2 only.
406 The default is M-bM-^@M-^\noM-bM-^@M-^].
407
408 HostbasedUsesNameFromPacketOnly
409 Specifies whether or not the server will attempt to perform a
410 reverse name lookup when matching the name in the ~/.shosts,
411 ~/.rhosts, and /etc/hosts.equiv files during
412 HostbasedAuthentication. A setting of M-bM-^@M-^\yesM-bM-^@M-^] means that sshd(8)
413 uses the name supplied by the client rather than attempting to
414 resolve the name from the TCP connection itself. The default is
415 M-bM-^@M-^\noM-bM-^@M-^].
416
417 HostCertificate
418 Specifies a file containing a public host certificate. The
419 certificate's public key must match a private host key already
420 specified by HostKey. The default behaviour of sshd(8) is not to
421 load any certificates.
422
423 HostKey
424 Specifies a file containing a private host key used by SSH. The
425 default is /etc/ssh/ssh_host_key for protocol version 1, and
426 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key,
427 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
428 protocol version 2. Note that sshd(8) will refuse to use a file
429 if it is group/world-accessible. It is possible to have multiple
430 host key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^],
431 M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] are used for version 2 of the SSH
432 protocol. It is also possible to specify public host key files
433 instead. In this case operations on the private key will be
434 delegated to an ssh-agent(1).
435
436 HostKeyAgent
437 Identifies the UNIX-domain socket used to communicate with an
438 agent that has access to the private host keys. If
439 M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the socket will be
440 read from the SSH_AUTH_SOCK environment variable.
441
442 IgnoreRhosts
443 Specifies that .rhosts and .shosts files will not be used in
444 RhostsRSAAuthentication or HostbasedAuthentication.
445
446 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
447 default is M-bM-^@M-^\yesM-bM-^@M-^].
448
449 IgnoreUserKnownHosts
450 Specifies whether sshd(8) should ignore the user's
451 ~/.ssh/known_hosts during RhostsRSAAuthentication or
452 HostbasedAuthentication. The default is M-bM-^@M-^\noM-bM-^@M-^].
453
454 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
455 connection. Accepted values are M-bM-^@M-^\af11M-bM-^@M-^], M-bM-^@M-^\af12M-bM-^@M-^], M-bM-^@M-^\af13M-bM-^@M-^], M-bM-^@M-^\af21M-bM-^@M-^],
456 M-bM-^@M-^\af22M-bM-^@M-^], M-bM-^@M-^\af23M-bM-^@M-^], M-bM-^@M-^\af31M-bM-^@M-^], M-bM-^@M-^\af32M-bM-^@M-^], M-bM-^@M-^\af33M-bM-^@M-^], M-bM-^@M-^\af41M-bM-^@M-^], M-bM-^@M-^\af42M-bM-^@M-^], M-bM-^@M-^\af43M-bM-^@M-^],
457 M-bM-^@M-^\cs0M-bM-^@M-^], M-bM-^@M-^\cs1M-bM-^@M-^], M-bM-^@M-^\cs2M-bM-^@M-^], M-bM-^@M-^\cs3M-bM-^@M-^], M-bM-^@M-^\cs4M-bM-^@M-^], M-bM-^@M-^\cs5M-bM-^@M-^], M-bM-^@M-^\cs6M-bM-^@M-^], M-bM-^@M-^\cs7M-bM-^@M-^], M-bM-^@M-^\efM-bM-^@M-^],
458 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
459 This option may take one or two arguments, separated by
460 whitespace. If one argument is specified, it is used as the
461 packet class unconditionally. If two values are specified, the
462 first is automatically selected for interactive sessions and the
463 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
464 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
465 sessions.
466
467 KbdInteractiveAuthentication
468 Specifies whether to allow keyboard-interactive authentication.
469 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
470 is to use whatever value ChallengeResponseAuthentication is set
471 to (by default M-bM-^@M-^\yesM-bM-^@M-^]).
472
473 KerberosAuthentication
474 Specifies whether the password provided by the user for
475 PasswordAuthentication will be validated through the Kerberos
476 KDC. To use this option, the server needs a Kerberos servtab
477 which allows the verification of the KDC's identity. The default
478 is M-bM-^@M-^\noM-bM-^@M-^].
479
480 KerberosGetAFSToken
481 If AFS is active and the user has a Kerberos 5 TGT, attempt to
482 acquire an AFS token before accessing the user's home directory.
483 The default is M-bM-^@M-^\noM-bM-^@M-^].
484
485 KerberosOrLocalPasswd
486 If password authentication through Kerberos fails then the
487 password will be validated via any additional local mechanism
488 such as /etc/passwd. The default is M-bM-^@M-^\yesM-bM-^@M-^].
489
490 KerberosTicketCleanup
491 Specifies whether to automatically destroy the user's ticket
492 cache file on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^].
493
494 KexAlgorithms
495 Specifies the available KEX (Key Exchange) algorithms. Multiple
496 algorithms must be comma-separated. The supported algorithms
497 are:
498
499 curve25519-sha256@libssh.org
500 diffie-hellman-group1-sha1
501 diffie-hellman-group14-sha1
502 diffie-hellman-group-exchange-sha1
503 diffie-hellman-group-exchange-sha256
504 ecdh-sha2-nistp256
505 ecdh-sha2-nistp384
506 ecdh-sha2-nistp521
507
508 The default is:
509
510 curve25519-sha256@libssh.org,
511 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
512 diffie-hellman-group-exchange-sha256,
513 diffie-hellman-group14-sha1
514
515 The list of available key exchange algorithms may also be
516 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
517
518 KeyRegenerationInterval
519 In protocol version 1, the ephemeral server key is automatically
520 regenerated after this many seconds (if it has been used). The
521 purpose of regeneration is to prevent decrypting captured
522 sessions by later breaking into the machine and stealing the
523 keys. The key is never stored anywhere. If the value is 0, the
524 key is never regenerated. The default is 3600 (seconds).
525
526 ListenAddress
527 Specifies the local addresses sshd(8) should listen on. The
528 following forms may be used:
529
530 ListenAddress host|IPv4_addr|IPv6_addr
531 ListenAddress host|IPv4_addr:port
532 ListenAddress [host|IPv6_addr]:port
533
534 If port is not specified, sshd will listen on the address and all
535 Port options specified. The default is to listen on all local
536 addresses. Multiple ListenAddress options are permitted.
537
538 LoginGraceTime
539 The server disconnects after this time if the user has not
540 successfully logged in. If the value is 0, there is no time
541 limit. The default is 120 seconds.
542
543 LogLevel
544 Gives the verbosity level that is used when logging messages from
545 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
546 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
547 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
548 higher levels of debugging output. Logging with a DEBUG level
549 violates the privacy of users and is not recommended.
550
551 MACs Specifies the available MAC (message authentication code)
552 algorithms. The MAC algorithm is used in protocol version 2 for
553 data integrity protection. Multiple algorithms must be comma-
554 separated. The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC
555 after encryption (encrypt-then-mac). These are considered safer
556 and their use recommended. The supported MACs are:
557
558 hmac-md5
559 hmac-md5-96
560 hmac-ripemd160
561 hmac-sha1
562 hmac-sha1-96
563 hmac-sha2-256
564 hmac-sha2-512
565 umac-64@openssh.com
566 umac-128@openssh.com
567 hmac-md5-etm@openssh.com
568 hmac-md5-96-etm@openssh.com
569 hmac-ripemd160-etm@openssh.com
570 hmac-sha1-etm@openssh.com
571 hmac-sha1-96-etm@openssh.com
572 hmac-sha2-256-etm@openssh.com
573 hmac-sha2-512-etm@openssh.com
574 umac-64-etm@openssh.com
575 umac-128-etm@openssh.com
576
577 The default is:
578
579 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
580 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
581 umac-64@openssh.com,umac-128@openssh.com,
582 hmac-sha2-256,hmac-sha2-512
583
584 The list of available MAC algorithms may also be obtained using
585 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
586
587 Match Introduces a conditional block. If all of the criteria on the
588 Match line are satisfied, the keywords on the following lines
589 override those set in the global section of the config file,
590 until either another Match line or the end of the file. If a
591 keyword appears in multiple Match blocks that are satisfied, only
592 the first instance of the keyword is applied.
593
594 The arguments to Match are one or more criteria-pattern pairs or
595 the single token All which matches all criteria. The available
596 criteria are User, Group, Host, LocalAddress, LocalPort, and
597 Address. The match patterns may consist of single entries or
598 comma-separated lists and may use the wildcard and negation
599 operators described in the PATTERNS section of ssh_config(5).
600
601 The patterns in an Address criteria may additionally contain
602 addresses to match in CIDR address/masklen format, e.g.
603 M-bM-^@M-^\192.0.2.0/24M-bM-^@M-^] or M-bM-^@M-^\3ffe:ffff::/32M-bM-^@M-^]. Note that the mask length
604 provided must be consistent with the address - it is an error to
605 specify a mask length that is too long for the address or one
606 with bits set in this host portion of the address. For example,
607 M-bM-^@M-^\192.0.2.0/33M-bM-^@M-^] and M-bM-^@M-^\192.0.2.0/8M-bM-^@M-^] respectively.
608
609 Only a subset of keywords may be used on the lines following a
610 Match keyword. Available keywords are AcceptEnv,
611 AllowAgentForwarding, AllowGroups, AllowStreamLocalForwarding,
612 AllowTcpForwarding, AllowUsers, AuthenticationMethods,
613 AuthorizedKeysCommand, AuthorizedKeysCommandUser,
614 AuthorizedKeysFile, AuthorizedPrincipalsFile, Banner,
615 ChrootDirectory, DenyGroups, DenyUsers, ForceCommand,
616 GatewayPorts, GSSAPIAuthentication, HostbasedAcceptedKeyTypes,
617 HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, IPQoS,
618 KbdInteractiveAuthentication, KerberosAuthentication,
619 MaxAuthTries, MaxSessions, PasswordAuthentication,
620 PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY,
621 PermitTunnel, PermitUserRC, PubkeyAcceptedKeyTypes,
622 PubkeyAuthentication, RekeyLimit, RevokedKeys,
623 RhostsRSAAuthentication, RSAAuthentication, StreamLocalBindMask,
624 StreamLocalBindUnlink, TrustedUserCAKeys, X11DisplayOffset,
625 X11Forwarding and X11UseLocalHost.
626
627 MaxAuthTries
628 Specifies the maximum number of authentication attempts permitted
629 per connection. Once the number of failures reaches half this
630 value, additional failures are logged. The default is 6.
631
632 MaxSessions
633 Specifies the maximum number of open sessions permitted per
634 network connection. The default is 10.
635
636 MaxStartups
637 Specifies the maximum number of concurrent unauthenticated
638 connections to the SSH daemon. Additional connections will be
639 dropped until authentication succeeds or the LoginGraceTime
640 expires for a connection. The default is 10:30:100.
641
642 Alternatively, random early drop can be enabled by specifying the
643 three colon separated values M-bM-^@M-^\start:rate:fullM-bM-^@M-^] (e.g. "10:30:60").
644 sshd(8) will refuse connection attempts with a probability of
645 M-bM-^@M-^\rate/100M-bM-^@M-^] (30%) if there are currently M-bM-^@M-^\startM-bM-^@M-^] (10)
646 unauthenticated connections. The probability increases linearly
647 and all connection attempts are refused if the number of
648 unauthenticated connections reaches M-bM-^@M-^\fullM-bM-^@M-^] (60).
649
650 PasswordAuthentication
651 Specifies whether password authentication is allowed. The
652 default is M-bM-^@M-^\yesM-bM-^@M-^].
653
654 PermitEmptyPasswords
655 When password authentication is allowed, it specifies whether the
656 server allows login to accounts with empty password strings. The
657 default is M-bM-^@M-^\noM-bM-^@M-^].
658
659 PermitOpen
660 Specifies the destinations to which TCP port forwarding is
661 permitted. The forwarding specification must be one of the
662 following forms:
663
664 PermitOpen host:port
665 PermitOpen IPv4_addr:port
666 PermitOpen [IPv6_addr]:port
667
668 Multiple forwards may be specified by separating them with
669 whitespace. An argument of M-bM-^@M-^\anyM-bM-^@M-^] can be used to remove all
670 restrictions and permit any forwarding requests. An argument of
671 M-bM-^@M-^\noneM-bM-^@M-^] can be used to prohibit all forwarding requests. By
672 default all port forwarding requests are permitted.
673
674 PermitRootLogin
675 Specifies whether root can log in using ssh(1). The argument
676 must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\without-passwordM-bM-^@M-^], M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], or
677 M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
678
679 If this option is set to M-bM-^@M-^\without-passwordM-bM-^@M-^], password
680 authentication is disabled for root.
681
682 If this option is set to M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], root login with
683 public key authentication will be allowed, but only if the
684 command option has been specified (which may be useful for taking
685 remote backups even if root login is normally not allowed). All
686 other authentication methods are disabled for root.
687
688 If this option is set to M-bM-^@M-^\noM-bM-^@M-^], root is not allowed to log in.
689
690 PermitTunnel
691 Specifies whether tun(4) device forwarding is allowed. The
692 argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3), M-bM-^@M-^\ethernetM-bM-^@M-^]
693 (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] permits both
694 M-bM-^@M-^\point-to-pointM-bM-^@M-^] and M-bM-^@M-^\ethernetM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
695
696 Independent of this setting, the permissions of the selected
697 tun(4) device must allow access to the user.
698
699 PermitTTY
700 Specifies whether pty(4) allocation is permitted. The default is
701 M-bM-^@M-^\yesM-bM-^@M-^].
702
703 PermitUserEnvironment
704 Specifies whether ~/.ssh/environment and environment= options in
705 ~/.ssh/authorized_keys are processed by sshd(8). The default is
706 M-bM-^@M-^\noM-bM-^@M-^]. Enabling environment processing may enable users to bypass
707 access restrictions in some configurations using mechanisms such
708 as LD_PRELOAD.
709
710 PermitUserRC
711 Specifies whether any ~/.ssh/rc file is executed. The default is
712 M-bM-^@M-^\yesM-bM-^@M-^].
713
714 PidFile
715 Specifies the file that contains the process ID of the SSH
716 daemon, or M-bM-^@M-^\noneM-bM-^@M-^] to not write one. The default is
717 /var/run/sshd.pid.
718
719 Port Specifies the port number that sshd(8) listens on. The default
720 is 22. Multiple options of this type are permitted. See also
721 ListenAddress.
722
723 PrintLastLog
724 Specifies whether sshd(8) should print the date and time of the
725 last user login when a user logs in interactively. The default
726 is M-bM-^@M-^\yesM-bM-^@M-^].
727
728 PrintMotd
729 Specifies whether sshd(8) should print /etc/motd when a user logs
730 in interactively. (On some systems it is also printed by the
731 shell, /etc/profile, or equivalent.) The default is M-bM-^@M-^\yesM-bM-^@M-^].
732
733 Protocol
734 Specifies the protocol versions sshd(8) supports. The possible
735 values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple versions must be comma-
736 separated. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Note that the order of the
737 protocol list does not indicate preference, because the client
738 selects among multiple protocol versions offered by the server.
739 Specifying M-bM-^@M-^\2,1M-bM-^@M-^] is identical to M-bM-^@M-^\1,2M-bM-^@M-^].
740
741 PubkeyAcceptedKeyTypes
742 Specifies the key types that will be accepted for public key
743 authentication as a comma-separated pattern list. The default
744 M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be
745 used to list supported key types.
746
747 PubkeyAuthentication
748 Specifies whether public key authentication is allowed. The
749 default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option applies to protocol
750 version 2 only.
751
752 RekeyLimit
753 Specifies the maximum amount of data that may be transmitted
754 before the session key is renegotiated, optionally followed a
755 maximum amount of time that may pass before the session key is
756 renegotiated. The first argument is specified in bytes and may
757 have a suffix of M-bM-^@M-^XKM-bM-^@M-^Y, M-bM-^@M-^XMM-bM-^@M-^Y, or M-bM-^@M-^XGM-bM-^@M-^Y to indicate Kilobytes,
758 Megabytes, or Gigabytes, respectively. The default is between
759 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
760 value is specified in seconds and may use any of the units
761 documented in the TIME FORMATS section. The default value for
762 RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that rekeying is
763 performed after the cipher's default amount of data has been sent
764 or received and no time based rekeying is done. This option
765 applies to protocol version 2 only.
766
767 RevokedKeys
768 Specifies revoked public keys file, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one.
769 Keys listed in this file will be refused for public key
770 authentication. Note that if this file is not readable, then
771 public key authentication will be refused for all users. Keys
772 may be specified as a text file, listing one public key per line,
773 or as an OpenSSH Key Revocation List (KRL) as generated by
774 ssh-keygen(1). For more information on KRLs, see the KEY
775 REVOCATION LISTS section in ssh-keygen(1).
776
777 RhostsRSAAuthentication
778 Specifies whether rhosts or /etc/hosts.equiv authentication
779 together with successful RSA host authentication is allowed. The
780 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only.
781
782 RSAAuthentication
783 Specifies whether pure RSA authentication is allowed. The
784 default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1
785 only.
786
787 ServerKeyBits
788 Defines the number of bits in the ephemeral protocol version 1
789 server key. The minimum value is 512, and the default is 1024.
790
791 StreamLocalBindMask
792 Sets the octal file creation mode mask (umask) used when creating
793 a Unix-domain socket file for local or remote port forwarding.
794 This option is only used for port forwarding to a Unix-domain
795 socket file.
796
797 The default value is 0177, which creates a Unix-domain socket
798 file that is readable and writable only by the owner. Note that
799 not all operating systems honor the file mode on Unix-domain
800 socket files.
801
802 StreamLocalBindUnlink
803 Specifies whether to remove an existing Unix-domain socket file
804 for local or remote port forwarding before creating a new one.
805 If the socket file already exists and StreamLocalBindUnlink is
806 not enabled, sshd will be unable to forward the port to the Unix-
807 domain socket file. This option is only used for port forwarding
808 to a Unix-domain socket file.
809
810 The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
811
812 StrictModes
813 Specifies whether sshd(8) should check file modes and ownership
814 of the user's files and home directory before accepting login.
815 This is normally desirable because novices sometimes accidentally
816 leave their directory or files world-writable. The default is
817 M-bM-^@M-^\yesM-bM-^@M-^]. Note that this does not apply to ChrootDirectory, whose
818 permissions and ownership are checked unconditionally.
819
820 Subsystem
821 Configures an external subsystem (e.g. file transfer daemon).
822 Arguments should be a subsystem name and a command (with optional
823 arguments) to execute upon subsystem request.
824
825 The command sftp-server(8) implements the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer
826 subsystem.
827
828 Alternately the name M-bM-^@M-^\internal-sftpM-bM-^@M-^] implements an in-process
829 M-bM-^@M-^\sftpM-bM-^@M-^] server. This may simplify configurations using
830 ChrootDirectory to force a different filesystem root on clients.
831
832 By default no subsystems are defined. Note that this option
833 applies to protocol version 2 only.
834
835 SyslogFacility
836 Gives the facility code that is used when logging messages from
837 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
838 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
839 default is AUTH.
840
841 TCPKeepAlive
842 Specifies whether the system should send TCP keepalive messages
843 to the other side. If they are sent, death of the connection or
844 crash of one of the machines will be properly noticed. However,
845 this means that connections will die if the route is down
846 temporarily, and some people find it annoying. On the other
847 hand, if TCP keepalives are not sent, sessions may hang
848 indefinitely on the server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming
849 server resources.
850
851 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
852 server will notice if the network goes down or the client host
853 crashes. This avoids infinitely hanging sessions.
854
855 To disable TCP keepalive messages, the value should be set to
856 M-bM-^@M-^\noM-bM-^@M-^].
857
858 TrustedUserCAKeys
859 Specifies a file containing public keys of certificate
860 authorities that are trusted to sign user certificates for
861 authentication, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. Keys are listed one
862 per line; empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are allowed.
863 If a certificate is presented for authentication and has its
864 signing CA key listed in this file, then it may be used for
865 authentication for any user listed in the certificate's
866 principals list. Note that certificates that lack a list of
867 principals will not be permitted for authentication using
868 TrustedUserCAKeys. For more details on certificates, see the
869 CERTIFICATES section in ssh-keygen(1).
870
871 UseDNS Specifies whether sshd(8) should look up the remote host name and
872 check that the resolved host name for the remote IP address maps
873 back to the very same IP address. The default is M-bM-^@M-^\noM-bM-^@M-^].
874
875 UseLogin
876 Specifies whether login(1) is used for interactive login
877 sessions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used
878 for remote command execution. Note also, that if this is
879 enabled, X11Forwarding will be disabled because login(1) does not
880 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
881 is specified, it will be disabled after authentication.
882
883 UsePAM Enables the Pluggable Authentication Module interface. If set to
884 M-bM-^@M-^\yesM-bM-^@M-^] this will enable PAM authentication using
885 ChallengeResponseAuthentication and PasswordAuthentication in
886 addition to PAM account and session module processing for all
887 authentication types.
888
889 Because PAM challenge-response authentication usually serves an
890 equivalent role to password authentication, you should disable
891 either PasswordAuthentication or ChallengeResponseAuthentication.
892
893 If UsePAM is enabled, you will not be able to run sshd(8) as a
894 non-root user. The default is M-bM-^@M-^\noM-bM-^@M-^].
895
896 UsePrivilegeSeparation
897 Specifies whether sshd(8) separates privileges by creating an
898 unprivileged child process to deal with incoming network traffic.
899 After successful authentication, another process will be created
900 that has the privilege of the authenticated user. The goal of
901 privilege separation is to prevent privilege escalation by
902 containing any corruption within the unprivileged processes. The
903 default is M-bM-^@M-^\yesM-bM-^@M-^]. If UsePrivilegeSeparation is set to M-bM-^@M-^\sandboxM-bM-^@M-^]
904 then the pre-authentication unprivileged process is subject to
905 additional restrictions.
906
907 VersionAddendum
908 Optionally specifies additional text to append to the SSH
909 protocol banner sent by the server upon connection. The default
910 is M-bM-^@M-^\noneM-bM-^@M-^].
911
912 X11DisplayOffset
913 Specifies the first display number available for sshd(8)'s X11
914 forwarding. This prevents sshd from interfering with real X11
915 servers. The default is 10.
916
917 X11Forwarding
918 Specifies whether X11 forwarding is permitted. The argument must
919 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
920
921 When X11 forwarding is enabled, there may be additional exposure
922 to the server and to client displays if the sshd(8) proxy display
923 is configured to listen on the wildcard address (see
924 X11UseLocalhost below), though this is not the default.
925 Additionally, the authentication spoofing and authentication data
926 verification and substitution occur on the client side. The
927 security risk of using X11 forwarding is that the client's X11
928 display server may be exposed to attack when the SSH client
929 requests forwarding (see the warnings for ForwardX11 in
930 ssh_config(5)). A system administrator may have a stance in
931 which they want to protect clients that may expose themselves to
932 attack by unwittingly requesting X11 forwarding, which can
933 warrant a M-bM-^@M-^\noM-bM-^@M-^] setting.
934
935 Note that disabling X11 forwarding does not prevent users from
936 forwarding X11 traffic, as users can always install their own
937 forwarders. X11 forwarding is automatically disabled if UseLogin
938 is enabled.
939
940 X11UseLocalhost
941 Specifies whether sshd(8) should bind the X11 forwarding server
942 to the loopback address or to the wildcard address. By default,
943 sshd binds the forwarding server to the loopback address and sets
944 the hostname part of the DISPLAY environment variable to
945 M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the
946 proxy display. However, some older X11 clients may not function
947 with this configuration. X11UseLocalhost may be set to M-bM-^@M-^\noM-bM-^@M-^] to
948 specify that the forwarding server should be bound to the
949 wildcard address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
950 default is M-bM-^@M-^\yesM-bM-^@M-^].
951
952 XAuthLocation
953 Specifies the full pathname of the xauth(1) program, or M-bM-^@M-^\noneM-bM-^@M-^] to
954 not use one. The default is /usr/X11R6/bin/xauth.
955
956TIME FORMATS
957 sshd(8) command-line arguments and configuration file options that
958 specify time may be expressed using a sequence of the form:
959 time[qualifier], where time is a positive integer value and qualifier is
960 one of the following:
961
962 M-bM-^_M-(noneM-bM-^_M-) seconds
963 s | S seconds
964 m | M minutes
965 h | H hours
966 d | D days
967 w | W weeks
968
969 Each member of the sequence is added together to calculate the total time
970 value.
971
972 Time format examples:
973
974 600 600 seconds (10 minutes)
975 10m 10 minutes
976 1h30m 1 hour 30 minutes (90 minutes)
977
978FILES
979 /etc/ssh/sshd_config
980 Contains configuration data for sshd(8). This file should be
981 writable by root only, but it is recommended (though not
982 necessary) that it be world-readable.
983
984SEE ALSO
985 sshd(8)
986
987AUTHORS
988 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
989 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
990 de Raadt and Dug Song removed many bugs, re-added newer features and
991 created OpenSSH. Markus Friedl contributed the support for SSH protocol
992 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
993 for privilege separation.
994
995OpenBSD 5.7 June 5, 2015 OpenBSD 5.7