summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore28
-rw-r--r--ChangeLog1
-rw-r--r--config.h.in1714
-rwxr-xr-xconfigure19734
-rw-r--r--moduli.074
-rw-r--r--openbsd-compat/.cvsignore1
-rw-r--r--openbsd-compat/regress/.cvsignore6
-rw-r--r--regress/.cvsignore31
-rw-r--r--scard/.cvsignore2
-rw-r--r--scp.0162
-rw-r--r--sftp-server.096
-rw-r--r--sftp.0381
-rw-r--r--ssh-add.0123
-rw-r--r--ssh-agent.0103
-rw-r--r--ssh-keygen.0562
-rw-r--r--ssh-keyscan.0111
-rw-r--r--ssh-keysign.053
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh.0944
-rw-r--r--ssh_config.0930
-rw-r--r--sshd.0635
-rw-r--r--sshd_config.0906
22 files changed, 26553 insertions, 69 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 9baaa3b4e..000000000
--- a/.cvsignore
+++ /dev/null
@@ -1,28 +0,0 @@
1*.0
2*.out
3Makefile
4autom4te.cache
5buildit.sh
6buildpkg.sh
7config.cache
8config.h
9config.h.in
10config.log
11config.status
12configure
13openssh.xml
14opensshd.init
15scp
16sftp
17sftp-server
18ssh
19ssh-add
20ssh-agent
21ssh-keygen
22ssh-keyscan
23ssh-keysign
24ssh-pkcs11-helper
25sshd
26stamp-h.in
27survey
28survey.sh
diff --git a/ChangeLog b/ChangeLog
index 94e8dd47b..63aeae556 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3815,4 +3815,3 @@
3815 [contrib/suse/openssh.spec] Update for release 6.0 3815 [contrib/suse/openssh.spec] Update for release 6.0
3816 - (djm) [README] Update URL to release notes. 3816 - (djm) [README] Update URL to release notes.
3817 - (djm) Release openssh-6.0 3817 - (djm) Release openssh-6.0
3818
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..16d620615
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1714 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if building universal (internal helper macro) */
4#undef AC_APPLE_UNIVERSAL_BUILD
5
6/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
7 */
8#undef AIX_GETNAMEINFO_HACK
9
10/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
11#undef AIX_LOGINFAILED_4ARG
12
13/* System only supports IPv4 audit records */
14#undef AU_IPv4
15
16/* Define if your resolver libs need this for getrrsetbyname */
17#undef BIND_8_COMPAT
18
19/* The system has incomplete BSM API */
20#undef BROKEN_BSM_API
21
22/* Define if cmsg_type is not passed correctly */
23#undef BROKEN_CMSG_TYPE
24
25/* getaddrinfo is broken (if present) */
26#undef BROKEN_GETADDRINFO
27
28/* getgroups(0,NULL) will return -1 */
29#undef BROKEN_GETGROUPS
30
31/* FreeBSD glob does not do what we need */
32#undef BROKEN_GLOB
33
34/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
35#undef BROKEN_INET_NTOA
36
37/* ia_uinfo routines not supported by OS yet */
38#undef BROKEN_LIBIAF
39
40/* Ultrix mmap can't map files */
41#undef BROKEN_MMAP
42
43/* Define if your struct dirent expects you to allocate extra space for d_name
44 */
45#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
46
47/* Can't do comparisons on readv */
48#undef BROKEN_READV_COMPARISON
49
50/* NetBSD read function is sometimes redirected, breaking atomicio comparisons
51 against it */
52#undef BROKEN_READ_COMPARISON
53
54/* Define if you have a broken realpath. */
55#undef BROKEN_REALPATH
56
57/* Needed for NeXT */
58#undef BROKEN_SAVED_UIDS
59
60/* Define if your setregid() is broken */
61#undef BROKEN_SETREGID
62
63/* Define if your setresgid() is broken */
64#undef BROKEN_SETRESGID
65
66/* Define if your setresuid() is broken */
67#undef BROKEN_SETRESUID
68
69/* Define if your setreuid() is broken */
70#undef BROKEN_SETREUID
71
72/* LynxOS has broken setvbuf() implementation */
73#undef BROKEN_SETVBUF
74
75/* QNX shadow support is broken */
76#undef BROKEN_SHADOW_EXPIRE
77
78/* Define if your snprintf is busted */
79#undef BROKEN_SNPRINTF
80
81/* FreeBSD strnvis argument order is swapped compared to OpenBSD */
82#undef BROKEN_STRNVIS
83
84/* tcgetattr with ICANON may hang */
85#undef BROKEN_TCGETATTR_ICANON
86
87/* updwtmpx is broken (if present) */
88#undef BROKEN_UPDWTMPX
89
90/* Define if you have BSD auth support */
91#undef BSD_AUTH
92
93/* Define if you want to specify the path to your lastlog file */
94#undef CONF_LASTLOG_FILE
95
96/* Define if you want to specify the path to your utmp file */
97#undef CONF_UTMP_FILE
98
99/* Define if you want to specify the path to your wtmpx file */
100#undef CONF_WTMPX_FILE
101
102/* Define if you want to specify the path to your wtmp file */
103#undef CONF_WTMP_FILE
104
105/* Define if your platform needs to skip post auth file descriptor passing */
106#undef DISABLE_FD_PASSING
107
108/* Define if you don't want to use lastlog */
109#undef DISABLE_LASTLOG
110
111/* Define if you don't want to use your system's login() call */
112#undef DISABLE_LOGIN
113
114/* Define if you don't want to use pututline() etc. to write [uw]tmp */
115#undef DISABLE_PUTUTLINE
116
117/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
118#undef DISABLE_PUTUTXLINE
119
120/* Define if you want to disable shadow passwords */
121#undef DISABLE_SHADOW
122
123/* Define if you don't want to use utmp */
124#undef DISABLE_UTMP
125
126/* Define if you don't want to use utmpx */
127#undef DISABLE_UTMPX
128
129/* Define if you don't want to use wtmp */
130#undef DISABLE_WTMP
131
132/* Define if you don't want to use wtmpx */
133#undef DISABLE_WTMPX
134
135/* Enable for PKCS#11 support */
136#undef ENABLE_PKCS11
137
138/* File names may not contain backslash characters */
139#undef FILESYSTEM_NO_BACKSLASH
140
141/* fsid_t has member val */
142#undef FSID_HAS_VAL
143
144/* fsid_t has member __val */
145#undef FSID_HAS___VAL
146
147/* Define to 1 if the `getpgrp' function requires zero arguments. */
148#undef GETPGRP_VOID
149
150/* Conflicting defs for getspnam */
151#undef GETSPNAM_CONFLICTING_DEFS
152
153/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
154#undef GLOB_HAS_ALTDIRFUNC
155
156/* Define if your system glob() function has gl_matchc options in glob_t */
157#undef GLOB_HAS_GL_MATCHC
158
159/* Define if your system glob() function has gl_statv options in glob_t */
160#undef GLOB_HAS_GL_STATV
161
162/* Define this if you want GSSAPI support in the version 2 protocol */
163#undef GSSAPI
164
165/* Define if you want to use shadow password expire field */
166#undef HAS_SHADOW_EXPIRE
167
168/* Define if your system uses access rights style file descriptor passing */
169#undef HAVE_ACCRIGHTS_IN_MSGHDR
170
171/* Define if you have ut_addr in utmp.h */
172#undef HAVE_ADDR_IN_UTMP
173
174/* Define if you have ut_addr in utmpx.h */
175#undef HAVE_ADDR_IN_UTMPX
176
177/* Define if you have ut_addr_v6 in utmp.h */
178#undef HAVE_ADDR_V6_IN_UTMP
179
180/* Define if you have ut_addr_v6 in utmpx.h */
181#undef HAVE_ADDR_V6_IN_UTMPX
182
183/* Define to 1 if you have the `arc4random' function. */
184#undef HAVE_ARC4RANDOM
185
186/* Define to 1 if you have the `arc4random_buf' function. */
187#undef HAVE_ARC4RANDOM_BUF
188
189/* Define to 1 if you have the `arc4random_stir' function. */
190#undef HAVE_ARC4RANDOM_STIR
191
192/* Define to 1 if you have the `arc4random_uniform' function. */
193#undef HAVE_ARC4RANDOM_UNIFORM
194
195/* Define to 1 if you have the `asprintf' function. */
196#undef HAVE_ASPRINTF
197
198/* OpenBSD's gcc has bounded */
199#undef HAVE_ATTRIBUTE__BOUNDED__
200
201/* Have attribute nonnull */
202#undef HAVE_ATTRIBUTE__NONNULL__
203
204/* OpenBSD's gcc has sentinel */
205#undef HAVE_ATTRIBUTE__SENTINEL__
206
207/* Define to 1 if you have the `aug_get_machine' function. */
208#undef HAVE_AUG_GET_MACHINE
209
210/* Define to 1 if you have the `b64_ntop' function. */
211#undef HAVE_B64_NTOP
212
213/* Define to 1 if you have the `b64_pton' function. */
214#undef HAVE_B64_PTON
215
216/* Define if you have the basename function. */
217#undef HAVE_BASENAME
218
219/* Define to 1 if you have the `bcopy' function. */
220#undef HAVE_BCOPY
221
222/* Define to 1 if you have the `bcrypt_pbkdf' function. */
223#undef HAVE_BCRYPT_PBKDF
224
225/* Define to 1 if you have the `bindresvport_sa' function. */
226#undef HAVE_BINDRESVPORT_SA
227
228/* Define to 1 if you have the `blf_enc' function. */
229#undef HAVE_BLF_ENC
230
231/* Define to 1 if you have the <blf.h> header file. */
232#undef HAVE_BLF_H
233
234/* Define to 1 if you have the `Blowfish_expand0state' function. */
235#undef HAVE_BLOWFISH_EXPAND0STATE
236
237/* Define to 1 if you have the `Blowfish_expandstate' function. */
238#undef HAVE_BLOWFISH_EXPANDSTATE
239
240/* Define to 1 if you have the `Blowfish_initstate' function. */
241#undef HAVE_BLOWFISH_INITSTATE
242
243/* Define to 1 if you have the `Blowfish_stream2word' function. */
244#undef HAVE_BLOWFISH_STREAM2WORD
245
246/* Define to 1 if you have the `BN_is_prime_ex' function. */
247#undef HAVE_BN_IS_PRIME_EX
248
249/* Define to 1 if you have the <bsd/libutil.h> header file. */
250#undef HAVE_BSD_LIBUTIL_H
251
252/* Define to 1 if you have the <bsm/audit.h> header file. */
253#undef HAVE_BSM_AUDIT_H
254
255/* Define to 1 if you have the <bstring.h> header file. */
256#undef HAVE_BSTRING_H
257
258/* Define to 1 if you have the `cap_rights_limit' function. */
259#undef HAVE_CAP_RIGHTS_LIMIT
260
261/* Define to 1 if you have the `clock' function. */
262#undef HAVE_CLOCK
263
264/* Have clock_gettime */
265#undef HAVE_CLOCK_GETTIME
266
267/* define if you have clock_t data type */
268#undef HAVE_CLOCK_T
269
270/* Define to 1 if you have the `closefrom' function. */
271#undef HAVE_CLOSEFROM
272
273/* Define if gai_strerror() returns const char * */
274#undef HAVE_CONST_GAI_STRERROR_PROTO
275
276/* Define if your system uses ancillary data style file descriptor passing */
277#undef HAVE_CONTROL_IN_MSGHDR
278
279/* Define to 1 if you have the `crypt' function. */
280#undef HAVE_CRYPT
281
282/* Define to 1 if you have the <crypto/sha2.h> header file. */
283#undef HAVE_CRYPTO_SHA2_H
284
285/* Define to 1 if you have the <crypt.h> header file. */
286#undef HAVE_CRYPT_H
287
288/* Define if you are on Cygwin */
289#undef HAVE_CYGWIN
290
291/* Define if your libraries define daemon() */
292#undef HAVE_DAEMON
293
294/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
295 don't. */
296#undef HAVE_DECL_AUTHENTICATE
297
298/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
299 don't. */
300#undef HAVE_DECL_GLOB_NOMATCH
301
302/* Define to 1 if you have the declaration of `GSS_C_NT_HOSTBASED_SERVICE',
303 and to 0 if you don't. */
304#undef HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE
305
306/* Define to 1 if you have the declaration of `howmany', and to 0 if you
307 don't. */
308#undef HAVE_DECL_HOWMANY
309
310/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
311 don't. */
312#undef HAVE_DECL_H_ERRNO
313
314/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
315 don't. */
316#undef HAVE_DECL_LOGINFAILED
317
318/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
319 you don't. */
320#undef HAVE_DECL_LOGINRESTRICTIONS
321
322/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
323 don't. */
324#undef HAVE_DECL_LOGINSUCCESS
325
326/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
327 don't. */
328#undef HAVE_DECL_MAXSYMLINKS
329
330/* Define to 1 if you have the declaration of `NFDBITS', and to 0 if you
331 don't. */
332#undef HAVE_DECL_NFDBITS
333
334/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
335 don't. */
336#undef HAVE_DECL_OFFSETOF
337
338/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
339 don't. */
340#undef HAVE_DECL_O_NONBLOCK
341
342/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
343 don't. */
344#undef HAVE_DECL_PASSWDEXPIRED
345
346/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
347 don't. */
348#undef HAVE_DECL_SETAUTHDB
349
350/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
351 don't. */
352#undef HAVE_DECL_SHUT_RD
353
354/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
355 */
356#undef HAVE_DECL_WRITEV
357
358/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
359 don't. */
360#undef HAVE_DECL__GETLONG
361
362/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
363 don't. */
364#undef HAVE_DECL__GETSHORT
365
366/* Define to 1 if you have the `DES_crypt' function. */
367#undef HAVE_DES_CRYPT
368
369/* Define if you have /dev/ptmx */
370#undef HAVE_DEV_PTMX
371
372/* Define if you have /dev/ptc */
373#undef HAVE_DEV_PTS_AND_PTC
374
375/* Define to 1 if you have the <dirent.h> header file. */
376#undef HAVE_DIRENT_H
377
378/* Define to 1 if you have the `dirfd' function. */
379#undef HAVE_DIRFD
380
381/* Define to 1 if you have the `dirname' function. */
382#undef HAVE_DIRNAME
383
384/* Define to 1 if you have the `DSA_generate_parameters_ex' function. */
385#undef HAVE_DSA_GENERATE_PARAMETERS_EX
386
387/* Define to 1 if you have the <elf.h> header file. */
388#undef HAVE_ELF_H
389
390/* Define to 1 if you have the `endgrent' function. */
391#undef HAVE_ENDGRENT
392
393/* Define to 1 if you have the <endian.h> header file. */
394#undef HAVE_ENDIAN_H
395
396/* Define to 1 if you have the `endutent' function. */
397#undef HAVE_ENDUTENT
398
399/* Define to 1 if you have the `endutxent' function. */
400#undef HAVE_ENDUTXENT
401
402/* Define if your system has /etc/default/login */
403#undef HAVE_ETC_DEFAULT_LOGIN
404
405/* Define if libcrypto has EVP_CIPHER_CTX_ctrl */
406#undef HAVE_EVP_CIPHER_CTX_CTRL
407
408/* Define to 1 if you have the `EVP_DigestFinal_ex' function. */
409#undef HAVE_EVP_DIGESTFINAL_EX
410
411/* Define to 1 if you have the `EVP_DigestInit_ex' function. */
412#undef HAVE_EVP_DIGESTINIT_EX
413
414/* Define to 1 if you have the `EVP_MD_CTX_cleanup' function. */
415#undef HAVE_EVP_MD_CTX_CLEANUP
416
417/* Define to 1 if you have the `EVP_MD_CTX_copy_ex' function. */
418#undef HAVE_EVP_MD_CTX_COPY_EX
419
420/* Define to 1 if you have the `EVP_MD_CTX_init' function. */
421#undef HAVE_EVP_MD_CTX_INIT
422
423/* Define to 1 if you have the `EVP_ripemd160' function. */
424#undef HAVE_EVP_RIPEMD160
425
426/* Define to 1 if you have the `EVP_sha256' function. */
427#undef HAVE_EVP_SHA256
428
429/* Define if you have ut_exit in utmp.h */
430#undef HAVE_EXIT_IN_UTMP
431
432/* Define to 1 if you have the `explicit_bzero' function. */
433#undef HAVE_EXPLICIT_BZERO
434
435/* Define to 1 if you have the `fchmod' function. */
436#undef HAVE_FCHMOD
437
438/* Define to 1 if you have the `fchown' function. */
439#undef HAVE_FCHOWN
440
441/* Use F_CLOSEM fcntl for closefrom */
442#undef HAVE_FCNTL_CLOSEM
443
444/* Define to 1 if you have the <fcntl.h> header file. */
445#undef HAVE_FCNTL_H
446
447/* Define to 1 if the system has the type `fd_mask'. */
448#undef HAVE_FD_MASK
449
450/* Define to 1 if you have the <features.h> header file. */
451#undef HAVE_FEATURES_H
452
453/* Define to 1 if you have the <floatingpoint.h> header file. */
454#undef HAVE_FLOATINGPOINT_H
455
456/* Define to 1 if you have the `fmt_scaled' function. */
457#undef HAVE_FMT_SCALED
458
459/* Define to 1 if you have the `freeaddrinfo' function. */
460#undef HAVE_FREEADDRINFO
461
462/* Define to 1 if the system has the type `fsblkcnt_t'. */
463#undef HAVE_FSBLKCNT_T
464
465/* Define to 1 if the system has the type `fsfilcnt_t'. */
466#undef HAVE_FSFILCNT_T
467
468/* Define to 1 if you have the `fstatfs' function. */
469#undef HAVE_FSTATFS
470
471/* Define to 1 if you have the `fstatvfs' function. */
472#undef HAVE_FSTATVFS
473
474/* Define to 1 if you have the `futimes' function. */
475#undef HAVE_FUTIMES
476
477/* Define to 1 if you have the `gai_strerror' function. */
478#undef HAVE_GAI_STRERROR
479
480/* Define to 1 if you have the `getaddrinfo' function. */
481#undef HAVE_GETADDRINFO
482
483/* Define to 1 if you have the `getaudit' function. */
484#undef HAVE_GETAUDIT
485
486/* Define to 1 if you have the `getaudit_addr' function. */
487#undef HAVE_GETAUDIT_ADDR
488
489/* Define to 1 if you have the `getcwd' function. */
490#undef HAVE_GETCWD
491
492/* Define to 1 if you have the `getgrouplist' function. */
493#undef HAVE_GETGROUPLIST
494
495/* Define to 1 if you have the `getgrset' function. */
496#undef HAVE_GETGRSET
497
498/* Define to 1 if you have the `getlastlogxbyname' function. */
499#undef HAVE_GETLASTLOGXBYNAME
500
501/* Define to 1 if you have the `getluid' function. */
502#undef HAVE_GETLUID
503
504/* Define to 1 if you have the `getnameinfo' function. */
505#undef HAVE_GETNAMEINFO
506
507/* Define to 1 if you have the `getopt' function. */
508#undef HAVE_GETOPT
509
510/* Define to 1 if you have the <getopt.h> header file. */
511#undef HAVE_GETOPT_H
512
513/* Define if your getopt(3) defines and uses optreset */
514#undef HAVE_GETOPT_OPTRESET
515
516/* Define if your libraries define getpagesize() */
517#undef HAVE_GETPAGESIZE
518
519/* Define to 1 if you have the `getpeereid' function. */
520#undef HAVE_GETPEEREID
521
522/* Define to 1 if you have the `getpeerucred' function. */
523#undef HAVE_GETPEERUCRED
524
525/* Define to 1 if you have the `getpgid' function. */
526#undef HAVE_GETPGID
527
528/* Define to 1 if you have the `getpgrp' function. */
529#undef HAVE_GETPGRP
530
531/* Define to 1 if you have the `getpwanam' function. */
532#undef HAVE_GETPWANAM
533
534/* Define to 1 if you have the `getrlimit' function. */
535#undef HAVE_GETRLIMIT
536
537/* Define if getrrsetbyname() exists */
538#undef HAVE_GETRRSETBYNAME
539
540/* Define to 1 if you have the `getrusage' function. */
541#undef HAVE_GETRUSAGE
542
543/* Define to 1 if you have the `getseuserbyname' function. */
544#undef HAVE_GETSEUSERBYNAME
545
546/* Define to 1 if you have the `gettimeofday' function. */
547#undef HAVE_GETTIMEOFDAY
548
549/* Define to 1 if you have the `getttyent' function. */
550#undef HAVE_GETTTYENT
551
552/* Define to 1 if you have the `getutent' function. */
553#undef HAVE_GETUTENT
554
555/* Define to 1 if you have the `getutid' function. */
556#undef HAVE_GETUTID
557
558/* Define to 1 if you have the `getutline' function. */
559#undef HAVE_GETUTLINE
560
561/* Define to 1 if you have the `getutxent' function. */
562#undef HAVE_GETUTXENT
563
564/* Define to 1 if you have the `getutxid' function. */
565#undef HAVE_GETUTXID
566
567/* Define to 1 if you have the `getutxline' function. */
568#undef HAVE_GETUTXLINE
569
570/* Define to 1 if you have the `getutxuser' function. */
571#undef HAVE_GETUTXUSER
572
573/* Define to 1 if you have the `get_default_context_with_level' function. */
574#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
575
576/* Define to 1 if you have the `glob' function. */
577#undef HAVE_GLOB
578
579/* Define to 1 if you have the <glob.h> header file. */
580#undef HAVE_GLOB_H
581
582/* Define to 1 if you have the `group_from_gid' function. */
583#undef HAVE_GROUP_FROM_GID
584
585/* Define to 1 if you have the <gssapi_generic.h> header file. */
586#undef HAVE_GSSAPI_GENERIC_H
587
588/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
589#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
590
591/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
592#undef HAVE_GSSAPI_GSSAPI_H
593
594/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
595#undef HAVE_GSSAPI_GSSAPI_KRB5_H
596
597/* Define to 1 if you have the <gssapi.h> header file. */
598#undef HAVE_GSSAPI_H
599
600/* Define to 1 if you have the <gssapi_krb5.h> header file. */
601#undef HAVE_GSSAPI_KRB5_H
602
603/* Define if HEADER.ad exists in arpa/nameser.h */
604#undef HAVE_HEADER_AD
605
606/* Define to 1 if you have the `HMAC_CTX_init' function. */
607#undef HAVE_HMAC_CTX_INIT
608
609/* Define if you have ut_host in utmp.h */
610#undef HAVE_HOST_IN_UTMP
611
612/* Define if you have ut_host in utmpx.h */
613#undef HAVE_HOST_IN_UTMPX
614
615/* Define to 1 if you have the <iaf.h> header file. */
616#undef HAVE_IAF_H
617
618/* Define to 1 if you have the <ia.h> header file. */
619#undef HAVE_IA_H
620
621/* Define if you have ut_id in utmp.h */
622#undef HAVE_ID_IN_UTMP
623
624/* Define if you have ut_id in utmpx.h */
625#undef HAVE_ID_IN_UTMPX
626
627/* Define to 1 if you have the `inet_aton' function. */
628#undef HAVE_INET_ATON
629
630/* Define to 1 if you have the `inet_ntoa' function. */
631#undef HAVE_INET_NTOA
632
633/* Define to 1 if you have the `inet_ntop' function. */
634#undef HAVE_INET_NTOP
635
636/* Define to 1 if you have the `innetgr' function. */
637#undef HAVE_INNETGR
638
639/* define if you have int64_t data type */
640#undef HAVE_INT64_T
641
642/* Define to 1 if the system has the type `intmax_t'. */
643#undef HAVE_INTMAX_T
644
645/* Define to 1 if you have the <inttypes.h> header file. */
646#undef HAVE_INTTYPES_H
647
648/* define if you have intxx_t data type */
649#undef HAVE_INTXX_T
650
651/* Define to 1 if the system has the type `in_addr_t'. */
652#undef HAVE_IN_ADDR_T
653
654/* Define to 1 if the system has the type `in_port_t'. */
655#undef HAVE_IN_PORT_T
656
657/* Define if you have isblank(3C). */
658#undef HAVE_ISBLANK
659
660/* Define to 1 if you have the `krb5_cc_new_unique' function. */
661#undef HAVE_KRB5_CC_NEW_UNIQUE
662
663/* Define to 1 if you have the `krb5_free_error_message' function. */
664#undef HAVE_KRB5_FREE_ERROR_MESSAGE
665
666/* Define to 1 if you have the `krb5_get_error_message' function. */
667#undef HAVE_KRB5_GET_ERROR_MESSAGE
668
669/* Define to 1 if you have the <lastlog.h> header file. */
670#undef HAVE_LASTLOG_H
671
672/* Define if you want ldns support */
673#undef HAVE_LDNS
674
675/* Define to 1 if you have the <libaudit.h> header file. */
676#undef HAVE_LIBAUDIT_H
677
678/* Define to 1 if you have the `bsm' library (-lbsm). */
679#undef HAVE_LIBBSM
680
681/* Define to 1 if you have the `crypt' library (-lcrypt). */
682#undef HAVE_LIBCRYPT
683
684/* Define to 1 if you have the `dl' library (-ldl). */
685#undef HAVE_LIBDL
686
687/* Define to 1 if you have the <libgen.h> header file. */
688#undef HAVE_LIBGEN_H
689
690/* Define if system has libiaf that supports set_id */
691#undef HAVE_LIBIAF
692
693/* Define to 1 if you have the `network' library (-lnetwork). */
694#undef HAVE_LIBNETWORK
695
696/* Define to 1 if you have the `nsl' library (-lnsl). */
697#undef HAVE_LIBNSL
698
699/* Define to 1 if you have the `pam' library (-lpam). */
700#undef HAVE_LIBPAM
701
702/* Define to 1 if you have the `socket' library (-lsocket). */
703#undef HAVE_LIBSOCKET
704
705/* Define to 1 if you have the <libutil.h> header file. */
706#undef HAVE_LIBUTIL_H
707
708/* Define to 1 if you have the `xnet' library (-lxnet). */
709#undef HAVE_LIBXNET
710
711/* Define to 1 if you have the `z' library (-lz). */
712#undef HAVE_LIBZ
713
714/* Define to 1 if you have the <limits.h> header file. */
715#undef HAVE_LIMITS_H
716
717/* Define to 1 if you have the <linux/audit.h> header file. */
718#undef HAVE_LINUX_AUDIT_H
719
720/* Define to 1 if you have the <linux/filter.h> header file. */
721#undef HAVE_LINUX_FILTER_H
722
723/* Define to 1 if you have the <linux/if_tun.h> header file. */
724#undef HAVE_LINUX_IF_TUN_H
725
726/* Define to 1 if you have the <linux/seccomp.h> header file. */
727#undef HAVE_LINUX_SECCOMP_H
728
729/* Define to 1 if you have the <locale.h> header file. */
730#undef HAVE_LOCALE_H
731
732/* Define to 1 if you have the `login' function. */
733#undef HAVE_LOGIN
734
735/* Define to 1 if you have the <login_cap.h> header file. */
736#undef HAVE_LOGIN_CAP_H
737
738/* Define to 1 if you have the `login_getcapbool' function. */
739#undef HAVE_LOGIN_GETCAPBOOL
740
741/* Define to 1 if you have the <login.h> header file. */
742#undef HAVE_LOGIN_H
743
744/* Define to 1 if you have the `logout' function. */
745#undef HAVE_LOGOUT
746
747/* Define to 1 if you have the `logwtmp' function. */
748#undef HAVE_LOGWTMP
749
750/* Define to 1 if the system has the type `long double'. */
751#undef HAVE_LONG_DOUBLE
752
753/* Define to 1 if the system has the type `long long'. */
754#undef HAVE_LONG_LONG
755
756/* Define to 1 if you have the <maillock.h> header file. */
757#undef HAVE_MAILLOCK_H
758
759/* Define to 1 if you have the `mblen' function. */
760#undef HAVE_MBLEN
761
762/* Define to 1 if you have the `md5_crypt' function. */
763#undef HAVE_MD5_CRYPT
764
765/* Define if you want to allow MD5 passwords */
766#undef HAVE_MD5_PASSWORDS
767
768/* Define to 1 if you have the `memmove' function. */
769#undef HAVE_MEMMOVE
770
771/* Define to 1 if you have the <memory.h> header file. */
772#undef HAVE_MEMORY_H
773
774/* Define to 1 if you have the `memset_s' function. */
775#undef HAVE_MEMSET_S
776
777/* Define to 1 if you have the `mkdtemp' function. */
778#undef HAVE_MKDTEMP
779
780/* Define to 1 if you have the `mmap' function. */
781#undef HAVE_MMAP
782
783/* define if you have mode_t data type */
784#undef HAVE_MODE_T
785
786/* Some systems put nanosleep outside of libc */
787#undef HAVE_NANOSLEEP
788
789/* Define to 1 if you have the <ndir.h> header file. */
790#undef HAVE_NDIR_H
791
792/* Define to 1 if you have the <netdb.h> header file. */
793#undef HAVE_NETDB_H
794
795/* Define to 1 if you have the <netgroup.h> header file. */
796#undef HAVE_NETGROUP_H
797
798/* Define to 1 if you have the <net/if_tun.h> header file. */
799#undef HAVE_NET_IF_TUN_H
800
801/* Define if you are on NeXT */
802#undef HAVE_NEXT
803
804/* Define to 1 if you have the `ngetaddrinfo' function. */
805#undef HAVE_NGETADDRINFO
806
807/* Define to 1 if you have the `nsleep' function. */
808#undef HAVE_NSLEEP
809
810/* Define to 1 if you have the `ogetaddrinfo' function. */
811#undef HAVE_OGETADDRINFO
812
813/* Define if you have an old version of PAM which takes only one argument to
814 pam_strerror */
815#undef HAVE_OLD_PAM
816
817/* Define to 1 if you have the `openlog_r' function. */
818#undef HAVE_OPENLOG_R
819
820/* Define to 1 if you have the `openpty' function. */
821#undef HAVE_OPENPTY
822
823/* Define if your ssl headers are included with #include <openssl/header.h> */
824#undef HAVE_OPENSSL
825
826/* Define if you have Digital Unix Security Integration Architecture */
827#undef HAVE_OSF_SIA
828
829/* Define to 1 if you have the `pam_getenvlist' function. */
830#undef HAVE_PAM_GETENVLIST
831
832/* Define to 1 if you have the <pam/pam_appl.h> header file. */
833#undef HAVE_PAM_PAM_APPL_H
834
835/* Define to 1 if you have the `pam_putenv' function. */
836#undef HAVE_PAM_PUTENV
837
838/* Define to 1 if you have the <paths.h> header file. */
839#undef HAVE_PATHS_H
840
841/* Define if you have ut_pid in utmp.h */
842#undef HAVE_PID_IN_UTMP
843
844/* define if you have pid_t data type */
845#undef HAVE_PID_T
846
847/* Define to 1 if you have the `poll' function. */
848#undef HAVE_POLL
849
850/* Define to 1 if you have the <poll.h> header file. */
851#undef HAVE_POLL_H
852
853/* Define to 1 if you have the `prctl' function. */
854#undef HAVE_PRCTL
855
856/* Define if you have /proc/$pid/fd */
857#undef HAVE_PROC_PID
858
859/* Define to 1 if you have the `pstat' function. */
860#undef HAVE_PSTAT
861
862/* Define to 1 if you have the <pty.h> header file. */
863#undef HAVE_PTY_H
864
865/* Define to 1 if you have the `pututline' function. */
866#undef HAVE_PUTUTLINE
867
868/* Define to 1 if you have the `pututxline' function. */
869#undef HAVE_PUTUTXLINE
870
871/* Define to 1 if you have the `readpassphrase' function. */
872#undef HAVE_READPASSPHRASE
873
874/* Define to 1 if you have the <readpassphrase.h> header file. */
875#undef HAVE_READPASSPHRASE_H
876
877/* Define to 1 if you have the `realpath' function. */
878#undef HAVE_REALPATH
879
880/* Define to 1 if you have the `recvmsg' function. */
881#undef HAVE_RECVMSG
882
883/* sys/resource.h has RLIMIT_NPROC */
884#undef HAVE_RLIMIT_NPROC
885
886/* Define to 1 if you have the <rpc/types.h> header file. */
887#undef HAVE_RPC_TYPES_H
888
889/* Define to 1 if you have the `rresvport_af' function. */
890#undef HAVE_RRESVPORT_AF
891
892/* Define to 1 if you have the `RSA_generate_key_ex' function. */
893#undef HAVE_RSA_GENERATE_KEY_EX
894
895/* Define to 1 if you have the `RSA_get_default_method' function. */
896#undef HAVE_RSA_GET_DEFAULT_METHOD
897
898/* Define to 1 if you have the <sandbox.h> header file. */
899#undef HAVE_SANDBOX_H
900
901/* Define to 1 if you have the `sandbox_init' function. */
902#undef HAVE_SANDBOX_INIT
903
904/* define if you have sa_family_t data type */
905#undef HAVE_SA_FAMILY_T
906
907/* Define to 1 if you have the `scan_scaled' function. */
908#undef HAVE_SCAN_SCALED
909
910/* Define if you have SecureWare-based protected password database */
911#undef HAVE_SECUREWARE
912
913/* Define to 1 if you have the <security/pam_appl.h> header file. */
914#undef HAVE_SECURITY_PAM_APPL_H
915
916/* Define to 1 if you have the `sendmsg' function. */
917#undef HAVE_SENDMSG
918
919/* Define to 1 if you have the `setauthdb' function. */
920#undef HAVE_SETAUTHDB
921
922/* Define to 1 if you have the `setdtablesize' function. */
923#undef HAVE_SETDTABLESIZE
924
925/* Define to 1 if you have the `setegid' function. */
926#undef HAVE_SETEGID
927
928/* Define to 1 if you have the `setenv' function. */
929#undef HAVE_SETENV
930
931/* Define to 1 if you have the `seteuid' function. */
932#undef HAVE_SETEUID
933
934/* Define to 1 if you have the `setgroupent' function. */
935#undef HAVE_SETGROUPENT
936
937/* Define to 1 if you have the `setgroups' function. */
938#undef HAVE_SETGROUPS
939
940/* Define to 1 if you have the `setlinebuf' function. */
941#undef HAVE_SETLINEBUF
942
943/* Define to 1 if you have the `setlogin' function. */
944#undef HAVE_SETLOGIN
945
946/* Define to 1 if you have the `setluid' function. */
947#undef HAVE_SETLUID
948
949/* Define to 1 if you have the `setpassent' function. */
950#undef HAVE_SETPASSENT
951
952/* Define to 1 if you have the `setpcred' function. */
953#undef HAVE_SETPCRED
954
955/* Define to 1 if you have the `setproctitle' function. */
956#undef HAVE_SETPROCTITLE
957
958/* Define to 1 if you have the `setregid' function. */
959#undef HAVE_SETREGID
960
961/* Define to 1 if you have the `setresgid' function. */
962#undef HAVE_SETRESGID
963
964/* Define to 1 if you have the `setresuid' function. */
965#undef HAVE_SETRESUID
966
967/* Define to 1 if you have the `setreuid' function. */
968#undef HAVE_SETREUID
969
970/* Define to 1 if you have the `setrlimit' function. */
971#undef HAVE_SETRLIMIT
972
973/* Define to 1 if you have the `setsid' function. */
974#undef HAVE_SETSID
975
976/* Define to 1 if you have the `setutent' function. */
977#undef HAVE_SETUTENT
978
979/* Define to 1 if you have the `setutxdb' function. */
980#undef HAVE_SETUTXDB
981
982/* Define to 1 if you have the `setutxent' function. */
983#undef HAVE_SETUTXENT
984
985/* Define to 1 if you have the `setvbuf' function. */
986#undef HAVE_SETVBUF
987
988/* Define to 1 if you have the `set_id' function. */
989#undef HAVE_SET_ID
990
991/* Define to 1 if you have the `SHA256_Update' function. */
992#undef HAVE_SHA256_UPDATE
993
994/* Define to 1 if you have the <sha2.h> header file. */
995#undef HAVE_SHA2_H
996
997/* Define to 1 if you have the <shadow.h> header file. */
998#undef HAVE_SHADOW_H
999
1000/* Define to 1 if you have the `sigaction' function. */
1001#undef HAVE_SIGACTION
1002
1003/* Define to 1 if you have the `sigvec' function. */
1004#undef HAVE_SIGVEC
1005
1006/* Define to 1 if the system has the type `sig_atomic_t'. */
1007#undef HAVE_SIG_ATOMIC_T
1008
1009/* define if you have size_t data type */
1010#undef HAVE_SIZE_T
1011
1012/* Define to 1 if you have the `snprintf' function. */
1013#undef HAVE_SNPRINTF
1014
1015/* Define to 1 if you have the `socketpair' function. */
1016#undef HAVE_SOCKETPAIR
1017
1018/* Have PEERCRED socket option */
1019#undef HAVE_SO_PEERCRED
1020
1021/* define if you have ssize_t data type */
1022#undef HAVE_SSIZE_T
1023
1024/* Fields in struct sockaddr_storage */
1025#undef HAVE_SS_FAMILY_IN_SS
1026
1027/* Define to 1 if you have the `statfs' function. */
1028#undef HAVE_STATFS
1029
1030/* Define to 1 if you have the `statvfs' function. */
1031#undef HAVE_STATVFS
1032
1033/* Define to 1 if you have the <stddef.h> header file. */
1034#undef HAVE_STDDEF_H
1035
1036/* Define to 1 if you have the <stdint.h> header file. */
1037#undef HAVE_STDINT_H
1038
1039/* Define to 1 if you have the <stdlib.h> header file. */
1040#undef HAVE_STDLIB_H
1041
1042/* Define to 1 if you have the `strdup' function. */
1043#undef HAVE_STRDUP
1044
1045/* Define to 1 if you have the `strerror' function. */
1046#undef HAVE_STRERROR
1047
1048/* Define to 1 if you have the `strftime' function. */
1049#undef HAVE_STRFTIME
1050
1051/* Silly mkstemp() */
1052#undef HAVE_STRICT_MKSTEMP
1053
1054/* Define to 1 if you have the <strings.h> header file. */
1055#undef HAVE_STRINGS_H
1056
1057/* Define to 1 if you have the <string.h> header file. */
1058#undef HAVE_STRING_H
1059
1060/* Define to 1 if you have the `strlcat' function. */
1061#undef HAVE_STRLCAT
1062
1063/* Define to 1 if you have the `strlcpy' function. */
1064#undef HAVE_STRLCPY
1065
1066/* Define to 1 if you have the `strmode' function. */
1067#undef HAVE_STRMODE
1068
1069/* Define to 1 if you have the `strnlen' function. */
1070#undef HAVE_STRNLEN
1071
1072/* Define to 1 if you have the `strnvis' function. */
1073#undef HAVE_STRNVIS
1074
1075/* Define to 1 if you have the `strptime' function. */
1076#undef HAVE_STRPTIME
1077
1078/* Define to 1 if you have the `strsep' function. */
1079#undef HAVE_STRSEP
1080
1081/* Define to 1 if you have the `strtoll' function. */
1082#undef HAVE_STRTOLL
1083
1084/* Define to 1 if you have the `strtonum' function. */
1085#undef HAVE_STRTONUM
1086
1087/* Define to 1 if you have the `strtoul' function. */
1088#undef HAVE_STRTOUL
1089
1090/* Define to 1 if you have the `strtoull' function. */
1091#undef HAVE_STRTOULL
1092
1093/* define if you have struct addrinfo data type */
1094#undef HAVE_STRUCT_ADDRINFO
1095
1096/* define if you have struct in6_addr data type */
1097#undef HAVE_STRUCT_IN6_ADDR
1098
1099/* Define to 1 if `pw_change' is a member of `struct passwd'. */
1100#undef HAVE_STRUCT_PASSWD_PW_CHANGE
1101
1102/* Define to 1 if `pw_class' is a member of `struct passwd'. */
1103#undef HAVE_STRUCT_PASSWD_PW_CLASS
1104
1105/* Define to 1 if `pw_expire' is a member of `struct passwd'. */
1106#undef HAVE_STRUCT_PASSWD_PW_EXPIRE
1107
1108/* Define to 1 if `pw_gecos' is a member of `struct passwd'. */
1109#undef HAVE_STRUCT_PASSWD_PW_GECOS
1110
1111/* define if you have struct sockaddr_in6 data type */
1112#undef HAVE_STRUCT_SOCKADDR_IN6
1113
1114/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
1115#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
1116
1117/* define if you have struct sockaddr_storage data type */
1118#undef HAVE_STRUCT_SOCKADDR_STORAGE
1119
1120/* Define to 1 if `st_blksize' is a member of `struct stat'. */
1121#undef HAVE_STRUCT_STAT_ST_BLKSIZE
1122
1123/* Define to 1 if the system has the type `struct timespec'. */
1124#undef HAVE_STRUCT_TIMESPEC
1125
1126/* define if you have struct timeval */
1127#undef HAVE_STRUCT_TIMEVAL
1128
1129/* Define to 1 if you have the `swap32' function. */
1130#undef HAVE_SWAP32
1131
1132/* Define to 1 if you have the `sysconf' function. */
1133#undef HAVE_SYSCONF
1134
1135/* Define if you have syslen in utmpx.h */
1136#undef HAVE_SYSLEN_IN_UTMPX
1137
1138/* Define to 1 if you have the <sys/audit.h> header file. */
1139#undef HAVE_SYS_AUDIT_H
1140
1141/* Define to 1 if you have the <sys/bitypes.h> header file. */
1142#undef HAVE_SYS_BITYPES_H
1143
1144/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1145#undef HAVE_SYS_BSDTTY_H
1146
1147/* Define to 1 if you have the <sys/capability.h> header file. */
1148#undef HAVE_SYS_CAPABILITY_H
1149
1150/* Define to 1 if you have the <sys/cdefs.h> header file. */
1151#undef HAVE_SYS_CDEFS_H
1152
1153/* Define to 1 if you have the <sys/dir.h> header file. */
1154#undef HAVE_SYS_DIR_H
1155
1156/* Define if your system defines sys_errlist[] */
1157#undef HAVE_SYS_ERRLIST
1158
1159/* Define to 1 if you have the <sys/mman.h> header file. */
1160#undef HAVE_SYS_MMAN_H
1161
1162/* Define to 1 if you have the <sys/mount.h> header file. */
1163#undef HAVE_SYS_MOUNT_H
1164
1165/* Define to 1 if you have the <sys/ndir.h> header file. */
1166#undef HAVE_SYS_NDIR_H
1167
1168/* Define if your system defines sys_nerr */
1169#undef HAVE_SYS_NERR
1170
1171/* Define to 1 if you have the <sys/poll.h> header file. */
1172#undef HAVE_SYS_POLL_H
1173
1174/* Define to 1 if you have the <sys/prctl.h> header file. */
1175#undef HAVE_SYS_PRCTL_H
1176
1177/* Define to 1 if you have the <sys/pstat.h> header file. */
1178#undef HAVE_SYS_PSTAT_H
1179
1180/* Define to 1 if you have the <sys/ptms.h> header file. */
1181#undef HAVE_SYS_PTMS_H
1182
1183/* Define to 1 if you have the <sys/select.h> header file. */
1184#undef HAVE_SYS_SELECT_H
1185
1186/* Define to 1 if you have the <sys/statvfs.h> header file. */
1187#undef HAVE_SYS_STATVFS_H
1188
1189/* Define to 1 if you have the <sys/stat.h> header file. */
1190#undef HAVE_SYS_STAT_H
1191
1192/* Define to 1 if you have the <sys/stream.h> header file. */
1193#undef HAVE_SYS_STREAM_H
1194
1195/* Define to 1 if you have the <sys/stropts.h> header file. */
1196#undef HAVE_SYS_STROPTS_H
1197
1198/* Define to 1 if you have the <sys/strtio.h> header file. */
1199#undef HAVE_SYS_STRTIO_H
1200
1201/* Force use of sys/syslog.h on Ultrix */
1202#undef HAVE_SYS_SYSLOG_H
1203
1204/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1205#undef HAVE_SYS_SYSMACROS_H
1206
1207/* Define to 1 if you have the <sys/timers.h> header file. */
1208#undef HAVE_SYS_TIMERS_H
1209
1210/* Define to 1 if you have the <sys/time.h> header file. */
1211#undef HAVE_SYS_TIME_H
1212
1213/* Define to 1 if you have the <sys/types.h> header file. */
1214#undef HAVE_SYS_TYPES_H
1215
1216/* Define to 1 if you have the <sys/un.h> header file. */
1217#undef HAVE_SYS_UN_H
1218
1219/* Define to 1 if you have the `tcgetpgrp' function. */
1220#undef HAVE_TCGETPGRP
1221
1222/* Define to 1 if you have the `tcsendbreak' function. */
1223#undef HAVE_TCSENDBREAK
1224
1225/* Define to 1 if you have the `time' function. */
1226#undef HAVE_TIME
1227
1228/* Define to 1 if you have the <time.h> header file. */
1229#undef HAVE_TIME_H
1230
1231/* Define if you have ut_time in utmp.h */
1232#undef HAVE_TIME_IN_UTMP
1233
1234/* Define if you have ut_time in utmpx.h */
1235#undef HAVE_TIME_IN_UTMPX
1236
1237/* Define to 1 if you have the `timingsafe_bcmp' function. */
1238#undef HAVE_TIMINGSAFE_BCMP
1239
1240/* Define to 1 if you have the <tmpdir.h> header file. */
1241#undef HAVE_TMPDIR_H
1242
1243/* Define to 1 if you have the `truncate' function. */
1244#undef HAVE_TRUNCATE
1245
1246/* Define to 1 if you have the <ttyent.h> header file. */
1247#undef HAVE_TTYENT_H
1248
1249/* Define if you have ut_tv in utmp.h */
1250#undef HAVE_TV_IN_UTMP
1251
1252/* Define if you have ut_tv in utmpx.h */
1253#undef HAVE_TV_IN_UTMPX
1254
1255/* Define if you have ut_type in utmp.h */
1256#undef HAVE_TYPE_IN_UTMP
1257
1258/* Define if you have ut_type in utmpx.h */
1259#undef HAVE_TYPE_IN_UTMPX
1260
1261/* Define to 1 if you have the <ucred.h> header file. */
1262#undef HAVE_UCRED_H
1263
1264/* Define to 1 if the system has the type `uintmax_t'. */
1265#undef HAVE_UINTMAX_T
1266
1267/* define if you have uintxx_t data type */
1268#undef HAVE_UINTXX_T
1269
1270/* Define to 1 if you have the <unistd.h> header file. */
1271#undef HAVE_UNISTD_H
1272
1273/* Define to 1 if you have the `unsetenv' function. */
1274#undef HAVE_UNSETENV
1275
1276/* Define to 1 if the system has the type `unsigned long long'. */
1277#undef HAVE_UNSIGNED_LONG_LONG
1278
1279/* Define to 1 if you have the `updwtmp' function. */
1280#undef HAVE_UPDWTMP
1281
1282/* Define to 1 if you have the `updwtmpx' function. */
1283#undef HAVE_UPDWTMPX
1284
1285/* Define to 1 if you have the <usersec.h> header file. */
1286#undef HAVE_USERSEC_H
1287
1288/* Define to 1 if you have the `user_from_uid' function. */
1289#undef HAVE_USER_FROM_UID
1290
1291/* Define to 1 if you have the `usleep' function. */
1292#undef HAVE_USLEEP
1293
1294/* Define to 1 if you have the <util.h> header file. */
1295#undef HAVE_UTIL_H
1296
1297/* Define to 1 if you have the `utimes' function. */
1298#undef HAVE_UTIMES
1299
1300/* Define to 1 if you have the <utime.h> header file. */
1301#undef HAVE_UTIME_H
1302
1303/* Define to 1 if you have the `utmpname' function. */
1304#undef HAVE_UTMPNAME
1305
1306/* Define to 1 if you have the `utmpxname' function. */
1307#undef HAVE_UTMPXNAME
1308
1309/* Define to 1 if you have the <utmpx.h> header file. */
1310#undef HAVE_UTMPX_H
1311
1312/* Define to 1 if you have the <utmp.h> header file. */
1313#undef HAVE_UTMP_H
1314
1315/* define if you have u_char data type */
1316#undef HAVE_U_CHAR
1317
1318/* define if you have u_int data type */
1319#undef HAVE_U_INT
1320
1321/* define if you have u_int64_t data type */
1322#undef HAVE_U_INT64_T
1323
1324/* define if you have u_intxx_t data type */
1325#undef HAVE_U_INTXX_T
1326
1327/* Define to 1 if you have the `vasprintf' function. */
1328#undef HAVE_VASPRINTF
1329
1330/* Define if va_copy exists */
1331#undef HAVE_VA_COPY
1332
1333/* Define to 1 if you have the <vis.h> header file. */
1334#undef HAVE_VIS_H
1335
1336/* Define to 1 if you have the `vsnprintf' function. */
1337#undef HAVE_VSNPRINTF
1338
1339/* Define to 1 if you have the `waitpid' function. */
1340#undef HAVE_WAITPID
1341
1342/* Define to 1 if you have the `_getlong' function. */
1343#undef HAVE__GETLONG
1344
1345/* Define to 1 if you have the `_getpty' function. */
1346#undef HAVE__GETPTY
1347
1348/* Define to 1 if you have the `_getshort' function. */
1349#undef HAVE__GETSHORT
1350
1351/* Define if you have struct __res_state _res as an extern */
1352#undef HAVE__RES_EXTERN
1353
1354/* Define to 1 if you have the `__b64_ntop' function. */
1355#undef HAVE___B64_NTOP
1356
1357/* Define to 1 if you have the `__b64_pton' function. */
1358#undef HAVE___B64_PTON
1359
1360/* Define if compiler implements __FUNCTION__ */
1361#undef HAVE___FUNCTION__
1362
1363/* Define if libc defines __progname */
1364#undef HAVE___PROGNAME
1365
1366/* Fields in struct sockaddr_storage */
1367#undef HAVE___SS_FAMILY_IN_SS
1368
1369/* Define if __va_copy exists */
1370#undef HAVE___VA_COPY
1371
1372/* Define if compiler implements __func__ */
1373#undef HAVE___func__
1374
1375/* Define this if you are using the Heimdal version of Kerberos V5 */
1376#undef HEIMDAL
1377
1378/* Define if you need to use IP address instead of hostname in $DISPLAY */
1379#undef IPADDR_IN_DISPLAY
1380
1381/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1382#undef IPV4_IN_IPV6
1383
1384/* Define if your system choked on IP TOS setting */
1385#undef IP_TOS_IS_BROKEN
1386
1387/* Define if you want Kerberos 5 support */
1388#undef KRB5
1389
1390/* Define if pututxline updates lastlog too */
1391#undef LASTLOG_WRITE_PUTUTXLINE
1392
1393/* Define to whatever link() returns for "not supported" if it doesn't return
1394 EOPNOTSUPP. */
1395#undef LINK_OPNOTSUPP_ERRNO
1396
1397/* Adjust Linux out-of-memory killer */
1398#undef LINUX_OOM_ADJUST
1399
1400/* max value of long long calculated by configure */
1401#undef LLONG_MAX
1402
1403/* min value of long long calculated by configure */
1404#undef LLONG_MIN
1405
1406/* Account locked with pw(1) */
1407#undef LOCKED_PASSWD_PREFIX
1408
1409/* String used in /etc/passwd to denote locked account */
1410#undef LOCKED_PASSWD_STRING
1411
1412/* String used in /etc/passwd to denote locked account */
1413#undef LOCKED_PASSWD_SUBSTR
1414
1415/* Some versions of /bin/login need the TERM supplied on the commandline */
1416#undef LOGIN_NEEDS_TERM
1417
1418/* Some systems need a utmpx entry for /bin/login to work */
1419#undef LOGIN_NEEDS_UTMPX
1420
1421/* Define if your login program cannot handle end of options ("--") */
1422#undef LOGIN_NO_ENDOPT
1423
1424/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1425 from environment and PATH */
1426#undef LOGIN_PROGRAM_FALLBACK
1427
1428/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1429#undef MAIL_DIRECTORY
1430
1431/* Need setpgrp to acquire controlling tty */
1432#undef NEED_SETPGRP
1433
1434/* compiler does not accept __attribute__ on return types */
1435#undef NO_ATTRIBUTE_ON_RETURN_TYPE
1436
1437/* Define if the concept of ports only accessible to superusers isn't known */
1438#undef NO_IPPORT_RESERVED_CONCEPT
1439
1440/* Define if you don't want to use lastlog in session.c */
1441#undef NO_SSH_LASTLOG
1442
1443/* Define if X11 doesn't support AF_UNIX sockets on that system */
1444#undef NO_X11_UNIX_SOCKETS
1445
1446/* Define if EVP_DigestUpdate returns void */
1447#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1448
1449/* OpenSSL has ECC */
1450#undef OPENSSL_HAS_ECC
1451
1452/* libcrypto has NID_X9_62_prime256v1 */
1453#undef OPENSSL_HAS_NISTP256
1454
1455/* libcrypto has NID_secp384r1 */
1456#undef OPENSSL_HAS_NISTP384
1457
1458/* libcrypto has NID_secp521r1 */
1459#undef OPENSSL_HAS_NISTP521
1460
1461/* libcrypto has EVP AES CTR */
1462#undef OPENSSL_HAVE_EVPCTR
1463
1464/* libcrypto has EVP AES GCM */
1465#undef OPENSSL_HAVE_EVPGCM
1466
1467/* libcrypto is missing AES 192 and 256 bit functions */
1468#undef OPENSSL_LOBOTOMISED_AES
1469
1470/* Define if you want OpenSSL's internally seeded PRNG only */
1471#undef OPENSSL_PRNG_ONLY
1472
1473/* Define to the address where bug reports for this package should be sent. */
1474#undef PACKAGE_BUGREPORT
1475
1476/* Define to the full name of this package. */
1477#undef PACKAGE_NAME
1478
1479/* Define to the full name and version of this package. */
1480#undef PACKAGE_STRING
1481
1482/* Define to the one symbol short name of this package. */
1483#undef PACKAGE_TARNAME
1484
1485/* Define to the home page for this package. */
1486#undef PACKAGE_URL
1487
1488/* Define to the version of this package. */
1489#undef PACKAGE_VERSION
1490
1491/* Define if you are using Solaris-derived PAM which passes pam_messages to
1492 the conversation function with an extra level of indirection */
1493#undef PAM_SUN_CODEBASE
1494
1495/* Work around problematic Linux PAM modules handling of PAM_TTY */
1496#undef PAM_TTY_KLUDGE
1497
1498/* must supply username to passwd */
1499#undef PASSWD_NEEDS_USERNAME
1500
1501/* System dirs owned by bin (uid 2) */
1502#undef PLATFORM_SYS_DIR_UID
1503
1504/* Port number of PRNGD/EGD random number socket */
1505#undef PRNGD_PORT
1506
1507/* Location of PRNGD/EGD random number socket */
1508#undef PRNGD_SOCKET
1509
1510/* read(1) can return 0 for a non-closed fd */
1511#undef PTY_ZEROREAD
1512
1513/* Sandbox using capsicum */
1514#undef SANDBOX_CAPSICUM
1515
1516/* Sandbox using Darwin sandbox_init(3) */
1517#undef SANDBOX_DARWIN
1518
1519/* no privsep sandboxing */
1520#undef SANDBOX_NULL
1521
1522/* Sandbox using setrlimit(2) */
1523#undef SANDBOX_RLIMIT
1524
1525/* Sandbox using seccomp filter */
1526#undef SANDBOX_SECCOMP_FILTER
1527
1528/* setrlimit RLIMIT_FSIZE works */
1529#undef SANDBOX_SKIP_RLIMIT_FSIZE
1530
1531/* define if setrlimit RLIMIT_NOFILE breaks things */
1532#undef SANDBOX_SKIP_RLIMIT_NOFILE
1533
1534/* Sandbox using systrace(4) */
1535#undef SANDBOX_SYSTRACE
1536
1537/* Specify the system call convention in use */
1538#undef SECCOMP_AUDIT_ARCH
1539
1540/* Define if your platform breaks doing a seteuid before a setuid */
1541#undef SETEUID_BREAKS_SETUID
1542
1543/* The size of `int', as computed by sizeof. */
1544#undef SIZEOF_INT
1545
1546/* The size of `long int', as computed by sizeof. */
1547#undef SIZEOF_LONG_INT
1548
1549/* The size of `long long int', as computed by sizeof. */
1550#undef SIZEOF_LONG_LONG_INT
1551
1552/* The size of `short int', as computed by sizeof. */
1553#undef SIZEOF_SHORT_INT
1554
1555/* Define if you want S/Key support */
1556#undef SKEY
1557
1558/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1559#undef SKEYCHALLENGE_4ARG
1560
1561/* Define as const if snprintf() can declare const char *fmt */
1562#undef SNPRINTF_CONST
1563
1564/* Define to a Set Process Title type if your system is supported by
1565 bsd-setproctitle.c */
1566#undef SPT_TYPE
1567
1568/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1569#undef SSHD_ACQUIRES_CTTY
1570
1571/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1572#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1573
1574/* Use audit debugging module */
1575#undef SSH_AUDIT_EVENTS
1576
1577/* Windows is sensitive to read buffer size */
1578#undef SSH_IOBUFSZ
1579
1580/* non-privileged user for privilege separation */
1581#undef SSH_PRIVSEP_USER
1582
1583/* Use tunnel device compatibility to OpenBSD */
1584#undef SSH_TUN_COMPAT_AF
1585
1586/* Open tunnel devices the FreeBSD way */
1587#undef SSH_TUN_FREEBSD
1588
1589/* Open tunnel devices the Linux tun/tap way */
1590#undef SSH_TUN_LINUX
1591
1592/* No layer 2 tunnel support */
1593#undef SSH_TUN_NO_L2
1594
1595/* Open tunnel devices the OpenBSD way */
1596#undef SSH_TUN_OPENBSD
1597
1598/* Prepend the address family to IP tunnel traffic */
1599#undef SSH_TUN_PREPEND_AF
1600
1601/* Define to 1 if you have the ANSI C header files. */
1602#undef STDC_HEADERS
1603
1604/* Define if you want a different $PATH for the superuser */
1605#undef SUPERUSER_PATH
1606
1607/* syslog_r function is safe to use in in a signal handler */
1608#undef SYSLOG_R_SAFE_IN_SIGHAND
1609
1610/* Support passwords > 8 chars */
1611#undef UNIXWARE_LONG_PASSWORDS
1612
1613/* Specify default $PATH */
1614#undef USER_PATH
1615
1616/* Define this if you want to use libkafs' AFS support */
1617#undef USE_AFS
1618
1619/* Use BSM audit module */
1620#undef USE_BSM_AUDIT
1621
1622/* Use btmp to log bad logins */
1623#undef USE_BTMP
1624
1625/* Use libedit for sftp */
1626#undef USE_LIBEDIT
1627
1628/* Use Linux audit module */
1629#undef USE_LINUX_AUDIT
1630
1631/* Enable OpenSSL engine support */
1632#undef USE_OPENSSL_ENGINE
1633
1634/* Define if you want to enable PAM support */
1635#undef USE_PAM
1636
1637/* Use PIPES instead of a socketpair() */
1638#undef USE_PIPES
1639
1640/* Define if you have Solaris process contracts */
1641#undef USE_SOLARIS_PROCESS_CONTRACTS
1642
1643/* Define if you have Solaris projects */
1644#undef USE_SOLARIS_PROJECTS
1645
1646/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1647#undef WITH_ABBREV_NO_TTY
1648
1649/* Define if you want to enable AIX4's authenticate function */
1650#undef WITH_AIXAUTHENTICATE
1651
1652/* Define if you have/want arrays (cluster-wide session managment, not C
1653 arrays) */
1654#undef WITH_IRIX_ARRAY
1655
1656/* Define if you want IRIX audit trails */
1657#undef WITH_IRIX_AUDIT
1658
1659/* Define if you want IRIX kernel jobs */
1660#undef WITH_IRIX_JOBS
1661
1662/* Define if you want IRIX project management */
1663#undef WITH_IRIX_PROJECT
1664
1665/* use libcrypto for cryptography */
1666#undef WITH_OPENSSL
1667
1668/* Define if you want SELinux support. */
1669#undef WITH_SELINUX
1670
1671/* include SSH protocol version 1 support */
1672#undef WITH_SSH1
1673
1674/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
1675 significant byte first (like Motorola and SPARC, unlike Intel). */
1676#if defined AC_APPLE_UNIVERSAL_BUILD
1677# if defined __BIG_ENDIAN__
1678# define WORDS_BIGENDIAN 1
1679# endif
1680#else
1681# ifndef WORDS_BIGENDIAN
1682# undef WORDS_BIGENDIAN
1683# endif
1684#endif
1685
1686/* Define if xauth is found in your path */
1687#undef XAUTH_PATH
1688
1689/* Number of bits in a file offset, on hosts where this is settable. */
1690#undef _FILE_OFFSET_BITS
1691
1692/* Define for large files, on AIX-style hosts. */
1693#undef _LARGE_FILES
1694
1695/* log for bad login attempts */
1696#undef _PATH_BTMP
1697
1698/* Full path of your "passwd" program */
1699#undef _PATH_PASSWD_PROG
1700
1701/* Specify location of ssh.pid */
1702#undef _PATH_SSH_PIDDIR
1703
1704/* Define if we don't have struct __res_state in resolv.h */
1705#undef __res_state
1706
1707/* Define to `__inline__' or `__inline' if that's what the C compiler
1708 calls it, or to nothing if 'inline' is not supported under any name. */
1709#ifndef __cplusplus
1710#undef inline
1711#endif
1712
1713/* type to use in place of socklen_t if not defined */
1714#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..6815388cc
--- /dev/null
+++ b/configure
@@ -0,0 +1,19734 @@
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.68 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order. Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105IFS=$as_save_IFS
106
107 ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there. '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: openssh-unix-dev@mindrot.org about your system,
244$0: including any error possibly output before this
245$0: message. Then install a modern shell, or manually run
246$0: the script under such a shell if you do have one."
247 fi
248 exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275 return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283 set +e
284 as_fn_set_status $1
285 exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390else
391 as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396else
397 as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402else
403 as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498else
499 as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='OpenSSH'
563PACKAGE_TARNAME='openssh'
564PACKAGE_VERSION='Portable'
565PACKAGE_STRING='OpenSSH Portable'
566PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567PACKAGE_URL=''
568
569ac_unique_file="ssh.c"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='LTLIBOBJS
607LIBOBJS
608UNSUPPORTED_ALGORITHMS
609TEST_MALLOC_OPTIONS
610TEST_SSH_IPV6
611piddir
612user_path
613mansubdir
614MANTYPE
615XAUTH_PATH
616STRIP_OPT
617xauth_path
618PRIVSEP_PATH
619K5LIBS
620GSSLIBS
621KRB5CONF
622SSHDLIBS
623SSHLIBS
624SSH_PRIVSEP_USER
625COMMENT_OUT_ECC
626TEST_SSH_ECC
627LIBEDIT
628PKGCONFIG
629LD
630PATH_PASSWD_PROG
631LOGIN_PROGRAM_FALLBACK
632STARTUP_SCRIPT_SHELL
633MAKE_PACKAGE_SUPPORTED
634PATH_USERADD_PROG
635PATH_GROUPADD_PROG
636MANFMT
637TEST_SHELL
638MANDOC
639NROFF
640GROFF
641SH
642TEST_MINUS_S_SH
643ENT
644SED
645PERL
646KILL
647CAT
648AR
649INSTALL_DATA
650INSTALL_SCRIPT
651INSTALL_PROGRAM
652RANLIB
653AWK
654EGREP
655GREP
656CPP
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672target_alias
673host_alias
674build_alias
675LIBS
676ECHO_T
677ECHO_N
678ECHO_C
679DEFS
680mandir
681localedir
682libdir
683psdir
684pdfdir
685dvidir
686htmldir
687infodir
688docdir
689oldincludedir
690includedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
710ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_largefile
714with_stackprotect
715with_hardening
716with_rpath
717with_cflags
718with_cppflags
719with_ldflags
720with_libs
721with_Werror
722with_solaris_contracts
723with_solaris_projects
724with_osfsia
725with_zlib
726with_zlib_version_check
727with_skey
728with_ldns
729with_libedit
730with_audit
731with_pie
732with_ssl_dir
733with_openssl_header_check
734with_ssl_engine
735with_prngd_port
736with_prngd_socket
737with_pam
738with_privsep_user
739with_sandbox
740with_selinux
741with_kerberos5
742with_privsep_path
743with_xauth
744enable_strip
745with_maildir
746with_mantype
747with_md5_passwords
748with_shadow
749with_ipaddr_display
750enable_etc_default_login
751with_default_path
752with_superuser_path
753with_4in6
754with_bsd_auth
755with_pid_dir
756enable_lastlog
757enable_utmp
758enable_utmpx
759enable_wtmp
760enable_wtmpx
761enable_libutil
762enable_pututline
763enable_pututxline
764with_lastlog
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
774CPP'
775
776
777# Initialize some variables set by options.
778ac_init_help=
779ac_init_version=false
780ac_unrecognized_opts=
781ac_unrecognized_sep=
782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
804# (The list follows the same order as the GNU Coding Standards.)
805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
813includedir='${prefix}/include'
814oldincludedir='/usr/include'
815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
824
825ac_prev=
826ac_dashdash=
827for ac_option
828do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information"
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 ;;
1181
1182 esac
1183done
1184
1185if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1188fi
1189
1190if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
1199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used" >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1383 esac
1384 cat <<\_ACEOF
1385
1386Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --disable-largefile omit support for large files
1391 --disable-strip Disable calling strip(1) on install
1392 --disable-etc-default-login Disable using PATH from /etc/default/login no
1393 --disable-lastlog disable use of lastlog even if detected no
1394 --disable-utmp disable use of utmp even if detected no
1395 --disable-utmpx disable use of utmpx even if detected no
1396 --disable-wtmp disable use of wtmp even if detected no
1397 --disable-wtmpx disable use of wtmpx even if detected no
1398 --disable-libutil disable use of libutil (login() etc.) no
1399 --disable-pututline disable use of pututline() etc. (uwtmp) no
1400 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1401
1402Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --without-stackprotect Don't use compiler's stack protection
1406 --without-hardening Don't use toolchain hardening flags
1407 --without-rpath Disable auto-added -R linker paths
1408 --with-cflags Specify additional flags to pass to compiler
1409 --with-cppflags Specify additional flags to pass to preprocessor
1410 --with-ldflags Specify additional flags to pass to linker
1411 --with-libs Specify additional libraries to link with
1412 --with-Werror Build main code with -Werror
1413 --with-solaris-contracts Enable Solaris process contracts (experimental)
1414 --with-solaris-projects Enable Solaris projects (experimental)
1415 --with-osfsia Enable Digital Unix SIA
1416 --with-zlib=PATH Use zlib in PATH
1417 --without-zlib-version-check Disable zlib version check
1418 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1419 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1420 --with-libedit[=PATH] Enable libedit support for sftp
1421 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1422 --with-pie Build Position Independent Executables if possible
1423 --with-ssl-dir=PATH Specify path to OpenSSL installation
1424 --without-openssl-header-check Disable OpenSSL version consistency check
1425 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1426 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1427 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1428 --with-pam Enable PAM support
1429 --with-privsep-user=user Specify non-privileged user for privilege separation
1430 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1431 --with-selinux Enable SELinux support
1432 --with-kerberos5=PATH Enable Kerberos 5 support
1433 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1434 --with-xauth=PATH Specify path to xauth program
1435 --with-maildir=/path/to/mail Specify your system mail directory
1436 --with-mantype=man|cat|doc Set man page type
1437 --with-md5-passwords Enable use of MD5 passwords
1438 --without-shadow Disable shadow password support
1439 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1440 --with-default-path= Specify default \$PATH environment for server
1441 --with-superuser-path= Specify different path for super-user
1442 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1443 --with-bsd-auth Enable BSD auth support
1444 --with-pid-dir=PATH Specify location of ssh.pid file
1445 --with-lastlog=FILE|DIR specify lastlog location common locations
1446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to <openssh-unix-dev@mindrot.org>.
1461_ACEOF
1462ac_status=$?
1463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
1488
1489case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502esac
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518fi
1519
1520test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then
1522 cat <<\_ACEOF
1523OpenSSH configure Portable
1524generated by GNU Autoconf 2.68
1525
1526Copyright (C) 2010 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
1530 exit
1531fi
1532
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
1536
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_try_run LINENO
1576# ----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578# that executables *can* be run.
1579ac_fn_c_try_run ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=$ac_status
1610fi
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_run
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673else
1674 eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1686# ---------------------------------------------
1687# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1688# accordingly.
1689ac_fn_c_check_decl ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 as_decl_name=`echo $2|sed 's/ *(.*//'`
1693 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1695$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1696if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701$4
1702int
1703main ()
1704{
1705#ifndef $as_decl_name
1706#ifdef __cplusplus
1707 (void) $as_decl_use;
1708#else
1709 (void) $as_decl_name;
1710#endif
1711#endif
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_decl
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847( $as_echo "## ------------------------------------------- ##
1848## Report this to openssh-unix-dev@mindrot.org ##
1849## ------------------------------------------- ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936# -------------------------------------------
1937# Tests whether TYPE exists after having included INCLUDES, setting cache
1938# variable VAR accordingly.
1939ac_fn_c_check_type ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 eval "$3=no"
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954if (sizeof ($2))
1955 return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964int
1965main ()
1966{
1967if (sizeof (($2)))
1968 return 0;
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974
1975else
1976 eval "$3=yes"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_type
1988
1989# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990# --------------------------------------------
1991# Tries to find the compile-time value of EXPR in a program that includes
1992# INCLUDES, setting VAR accordingly. Returns whether the value could be
1993# computed
1994ac_fn_c_compute_int ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if test "$cross_compiling" = yes; then
1998 # Depending upon the size, compute the lo and hi bounds.
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($2) >= 0)];
2006test_array [0] = 0
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=0 ac_mid=0
2014 while :; do
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022test_array [0] = 0
2023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2030else
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2033 ac_lo= ac_hi=
2034 break
2035 fi
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 done
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
2048test_array [0] = 0
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=-1 ac_mid=-1
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064test_array [0] = 0
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2072else
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 ac_lo= ac_hi=
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088# Binary search between lo and hi bounds.
2089while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098test_array [0] = 0
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid
2106else
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110done
2111case $ac_lo in #((
2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113'') ac_retval=1 ;;
2114esac
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119static long int longval () { return $2; }
2120static unsigned long int ulongval () { return $2; }
2121#include <stdio.h>
2122#include <stdlib.h>
2123int
2124main ()
2125{
2126
2127 FILE *f = fopen ("conftest.val", "w");
2128 if (! f)
2129 return 1;
2130 if (($2) < 0)
2131 {
2132 long int i = longval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%ld", i);
2136 }
2137 else
2138 {
2139 unsigned long int i = ulongval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%lu", i);
2143 }
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_run "$LINENO"; then :
2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154else
2155 ac_retval=1
2156fi
2157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159rm -f conftest.val
2160
2161 fi
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_compute_int
2166
2167# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168# ----------------------------------------------------
2169# Tries to find if the field MEMBER exists in type AGGR, after including
2170# INCLUDES, setting cache variable VAR accordingly.
2171ac_fn_c_check_member ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175$as_echo_n "checking for $2.$3... " >&6; }
2176if eval \${$4+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$5
2182int
2183main ()
2184{
2185static $2 ac_aggr;
2186if (ac_aggr.$3)
2187return 0;
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$4=yes"
2194else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$5
2198int
2199main ()
2200{
2201static $2 ac_aggr;
2202if (sizeof ac_aggr.$3)
2203return 0;
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 eval "$4=yes"
2210else
2211 eval "$4=no"
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217eval ac_res=\$$4
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_member
2223cat >config.log <<_ACEOF
2224This file contains any messages produced by compilers while
2225running configure, to aid debugging if configure makes a mistake.
2226
2227It was created by OpenSSH $as_me Portable, which was
2228generated by GNU Autoconf 2.68. Invocation command line was
2229
2230 $ $0 $@
2231
2232_ACEOF
2233exec 5>>config.log
2234{
2235cat <<_ASUNAME
2236## --------- ##
2237## Platform. ##
2238## --------- ##
2239
2240hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2241uname -m = `(uname -m) 2>/dev/null || echo unknown`
2242uname -r = `(uname -r) 2>/dev/null || echo unknown`
2243uname -s = `(uname -s) 2>/dev/null || echo unknown`
2244uname -v = `(uname -v) 2>/dev/null || echo unknown`
2245
2246/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2247/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2248
2249/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2250/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2251/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2252/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2253/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2254/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2255/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2256
2257_ASUNAME
2258
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 $as_echo "PATH: $as_dir"
2265 done
2266IFS=$as_save_IFS
2267
2268} >&5
2269
2270cat >&5 <<_ACEOF
2271
2272
2273## ----------- ##
2274## Core tests. ##
2275## ----------- ##
2276
2277_ACEOF
2278
2279
2280# Keep a trace of the command line.
2281# Strip out --no-create and --no-recursion so they do not pile up.
2282# Strip out --silent because we don't want to record it for future runs.
2283# Also quote any args containing shell meta-characters.
2284# Make two passes to allow for proper duplicate-argument suppression.
2285ac_configure_args=
2286ac_configure_args0=
2287ac_configure_args1=
2288ac_must_keep_next=false
2289for ac_pass in 1 2
2290do
2291 for ac_arg
2292 do
2293 case $ac_arg in
2294 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2296 | -silent | --silent | --silen | --sile | --sil)
2297 continue ;;
2298 *\'*)
2299 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 esac
2301 case $ac_pass in
2302 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2303 2)
2304 as_fn_append ac_configure_args1 " '$ac_arg'"
2305 if test $ac_must_keep_next = true; then
2306 ac_must_keep_next=false # Got value, back to normal.
2307 else
2308 case $ac_arg in
2309 *=* | --config-cache | -C | -disable-* | --disable-* \
2310 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2311 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2312 | -with-* | --with-* | -without-* | --without-* | --x)
2313 case "$ac_configure_args0 " in
2314 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 esac
2316 ;;
2317 -* ) ac_must_keep_next=true ;;
2318 esac
2319 fi
2320 as_fn_append ac_configure_args " '$ac_arg'"
2321 ;;
2322 esac
2323 done
2324done
2325{ ac_configure_args0=; unset ac_configure_args0;}
2326{ ac_configure_args1=; unset ac_configure_args1;}
2327
2328# When interrupted or exit'd, cleanup temporary files, and complete
2329# config.log. We remove comments because anyway the quotes in there
2330# would cause problems or look ugly.
2331# WARNING: Use '\'' to represent an apostrophe within the trap.
2332# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2333trap 'exit_status=$?
2334 # Save into config.log some information that might help in debugging.
2335 {
2336 echo
2337
2338 $as_echo "## ---------------- ##
2339## Cache variables. ##
2340## ---------------- ##"
2341 echo
2342 # The following way of writing the cache mishandles newlines in values,
2343(
2344 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in #(
2347 *${as_nl}*)
2348 case $ac_var in #(
2349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 esac
2352 case $ac_var in #(
2353 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355 *) { eval $ac_var=; unset $ac_var;} ;;
2356 esac ;;
2357 esac
2358 done
2359 (set) 2>&1 |
2360 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361 *${as_nl}ac_space=\ *)
2362 sed -n \
2363 "s/'\''/'\''\\\\'\'''\''/g;
2364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 ;; #(
2366 *)
2367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2368 ;;
2369 esac |
2370 sort
2371)
2372 echo
2373
2374 $as_echo "## ----------------- ##
2375## Output variables. ##
2376## ----------------- ##"
2377 echo
2378 for ac_var in $ac_subst_vars
2379 do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 esac
2384 $as_echo "$ac_var='\''$ac_val'\''"
2385 done | sort
2386 echo
2387
2388 if test -n "$ac_subst_files"; then
2389 $as_echo "## ------------------- ##
2390## File substitutions. ##
2391## ------------------- ##"
2392 echo
2393 for ac_var in $ac_subst_files
2394 do
2395 eval ac_val=\$$ac_var
2396 case $ac_val in
2397 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 esac
2399 $as_echo "$ac_var='\''$ac_val'\''"
2400 done | sort
2401 echo
2402 fi
2403
2404 if test -s confdefs.h; then
2405 $as_echo "## ----------- ##
2406## confdefs.h. ##
2407## ----------- ##"
2408 echo
2409 cat confdefs.h
2410 echo
2411 fi
2412 test "$ac_signal" != 0 &&
2413 $as_echo "$as_me: caught signal $ac_signal"
2414 $as_echo "$as_me: exit $exit_status"
2415 } >&5
2416 rm -f core *.core core.conftest.* &&
2417 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 exit $exit_status
2419' 0
2420for ac_signal in 1 2 13 15; do
2421 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422done
2423ac_signal=0
2424
2425# confdefs.h avoids OS command line length limits that DEFS can exceed.
2426rm -f -r conftest* confdefs.h
2427
2428$as_echo "/* confdefs.h */" > confdefs.h
2429
2430# Predefined preprocessor variables.
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_NAME "$PACKAGE_NAME"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_VERSION "$PACKAGE_VERSION"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_STRING "$PACKAGE_STRING"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_URL "$PACKAGE_URL"
2454_ACEOF
2455
2456
2457# Let the site file select an alternate cache file if it wants to.
2458# Prefer an explicitly selected file to automatically selected ones.
2459ac_site_file1=NONE
2460ac_site_file2=NONE
2461if test -n "$CONFIG_SITE"; then
2462 # We do not want a PATH search for config.site.
2463 case $CONFIG_SITE in #((
2464 -*) ac_site_file1=./$CONFIG_SITE;;
2465 */*) ac_site_file1=$CONFIG_SITE;;
2466 *) ac_site_file1=./$CONFIG_SITE;;
2467 esac
2468elif test "x$prefix" != xNONE; then
2469 ac_site_file1=$prefix/share/config.site
2470 ac_site_file2=$prefix/etc/config.site
2471else
2472 ac_site_file1=$ac_default_prefix/share/config.site
2473 ac_site_file2=$ac_default_prefix/etc/config.site
2474fi
2475for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476do
2477 test "x$ac_site_file" = xNONE && continue
2478 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5
2482 . "$ac_site_file" \
2483 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485as_fn_error $? "failed to load site script $ac_site_file
2486See \`config.log' for more details" "$LINENO" 5; }
2487 fi
2488done
2489
2490if test -r "$cache_file"; then
2491 # Some versions of bash will fail to source /dev/null (special files
2492 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2493 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2495$as_echo "$as_me: loading cache $cache_file" >&6;}
2496 case $cache_file in
2497 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2498 *) . "./$cache_file";;
2499 esac
2500 fi
2501else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2503$as_echo "$as_me: creating cache $cache_file" >&6;}
2504 >$cache_file
2505fi
2506
2507# Check that the precious variables saved in the cache have kept the same
2508# value.
2509ac_cache_corrupted=false
2510for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2516 set,)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,set)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2522$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,);;
2525 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2532$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 fi;;
2544 esac
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2547 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 esac
2555 fi
2556done
2557if $ac_cache_corrupted; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2563fi
2564## -------------------- ##
2565## Main body of script. ##
2566## -------------------- ##
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573
2574
2575
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584ac_config_headers="$ac_config_headers config.h"
2585
2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614 done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622$as_echo "$CC" >&6; }
2623else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629fi
2630if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if ${ac_cv_prog_ac_ct_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654 done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2662$as_echo "$ac_ct_CC" >&6; }
2663else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 CC=$ac_ct_CC
2678 fi
2679else
2680 CC="$ac_cv_prog_CC"
2681fi
2682
2683if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}cc; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_CC="${ac_tool_prefix}cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722 fi
2723fi
2724if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args.
2726set dummy cc; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735 ac_prog_rejected=no
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744 ac_prog_rejected=yes
2745 continue
2746 fi
2747 ac_cv_prog_CC="cc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
2754
2755if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy $ac_cv_prog_CC
2758 shift
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2763 shift
2764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 fi
2766fi
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772$as_echo "$CC" >&6; }
2773else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in cl.exe
2783 do
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814$as_echo "$CC" >&6; }
2815else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821 test -n "$CC" && break
2822 done
2823fi
2824if test -z "$CC"; then
2825 ac_ct_CC=$CC
2826 for ac_prog in cl.exe
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850 done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858$as_echo "$ac_ct_CC" >&6; }
2859else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865 test -n "$ac_ct_CC" && break
2866done
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877 CC=$ac_ct_CC
2878 fi
2879fi
2880
2881fi
2882
2883
2884test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886as_fn_error $? "no acceptable C compiler found in \$PATH
2887See \`config.log' for more details" "$LINENO" 5; }
2888
2889# Provide some information about the compiler.
2890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2891set X $ac_compile
2892ac_compiler=$2
2893for ac_option in --version -v -V -qversion; do
2894 { { ac_try="$ac_compiler $ac_option >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2902 ac_status=$?
2903 if test -s conftest.err; then
2904 sed '10a\
2905... rest of stderr output deleted ...
2906 10q' conftest.err >conftest.er1
2907 cat conftest.er1 >&5
2908 fi
2909 rm -f conftest.er1 conftest.err
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }
2912done
2913
2914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925ac_clean_files_save=$ac_clean_files
2926ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2927# Try to create an executable without -o first, disregard a.out.
2928# It will help us diagnose broken compilers, and finding out an intuition
2929# of exeext.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2931$as_echo_n "checking whether the C compiler works... " >&6; }
2932ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933
2934# The possible output files:
2935ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2936
2937ac_rmfiles=
2938for ac_file in $ac_files
2939do
2940 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2943 esac
2944done
2945rm -f $ac_rmfiles
2946
2947if { { ac_try="$ac_link_default"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link_default") 2>&5
2955 ac_status=$?
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960# in a Makefile. We should not override ac_cv_exeext if it was cached,
2961# so that the user can short-circuit this test for compilers unknown to
2962# Autoconf.
2963for ac_file in $ac_files ''
2964do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2968 ;;
2969 [ab].out )
2970 # We found the default executable, but exeext='' is most
2971 # certainly right.
2972 break;;
2973 *.* )
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
2983 break;;
2984 * )
2985 break;;
2986 esac
2987done
2988test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
2990else
2991 ac_file=''
2992fi
2993if test -z "$ac_file"; then :
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996$as_echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001as_fn_error 77 "C compiler cannot create executables
3002See \`config.log' for more details" "$LINENO" 5; }
3003else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005$as_echo "yes" >&6; }
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3008$as_echo_n "checking for C compiler default output file name... " >&6; }
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010$as_echo "$ac_file" >&6; }
3011ac_exeext=$ac_cv_exeext
3012
3013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3014ac_clean_files=$ac_clean_files_save
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016$as_echo_n "checking for suffix of executables... " >&6; }
3017if { { ac_try="$ac_link"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030# work properly (i.e., refer to `conftest.exe'), while it won't with
3031# `rm'.
3032for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 break;;
3038 * ) break;;
3039 esac
3040done
3041else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3045See \`config.log' for more details" "$LINENO" 5; }
3046fi
3047rm -f conftest conftest$ac_cv_exeext
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049$as_echo "$ac_cv_exeext" >&6; }
3050
3051rm -f conftest.$ac_ext
3052EXEEXT=$ac_cv_exeext
3053ac_exeext=$EXEEXT
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056#include <stdio.h>
3057int
3058main ()
3059{
3060FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067ac_clean_files="$ac_clean_files conftest.out"
3068# Check that the compiler produces executables we can run. If not, either
3069# the compiler is broken, or we cross compile.
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3071$as_echo_n "checking whether we are cross compiling... " >&6; }
3072if test "$cross_compiling" != yes; then
3073 { { ac_try="$ac_link"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 if { ac_try='./conftest$ac_cv_exeext'
3085 { { case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
3095 cross_compiling=no
3096 else
3097 if test "$cross_compiling" = maybe; then
3098 cross_compiling=yes
3099 else
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error $? "cannot run C compiled programs.
3103If you meant to cross compile, use \`--host'.
3104See \`config.log' for more details" "$LINENO" 5; }
3105 fi
3106 fi
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109$as_echo "$cross_compiling" >&6; }
3110
3111rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3112ac_clean_files=$ac_clean_files_save
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3114$as_echo_n "checking for suffix of object files... " >&6; }
3115if ${ac_cv_objext+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117else
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.o conftest.obj
3130if { { ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;;
3147 esac
3148done
3149else
3150 $as_echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error $? "cannot compute suffix of object files: cannot compile
3156See \`config.log' for more details" "$LINENO" 5; }
3157fi
3158rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; }
3162OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3166if ${ac_cv_c_compiler_gnu+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175#ifndef __GNUC__
3176 choke me
3177#endif
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_compiler_gnu=yes
3185else
3186 ac_compiler_gnu=no
3187fi
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196else
3197 GCC=
3198fi
3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; }
3203if ${ac_cv_prog_cc_g+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
3223else
3224 CFLAGS=""
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then :
3237
3238else
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254fi
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3263$as_echo "$ac_cv_prog_cc_g" >&6; }
3264if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3268 CFLAGS="-g -O2"
3269 else
3270 CFLAGS="-g"
3271 fi
3272else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3277 fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3280$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3281if ${ac_cv_prog_cc_c89+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 ac_cv_prog_cc_c89=no
3285ac_save_CC=$CC
3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288#include <stdarg.h>
3289#include <stdio.h>
3290#include <sys/types.h>
3291#include <sys/stat.h>
3292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3293struct buf { int x; };
3294FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295static char *e (p, i)
3296 char **p;
3297 int i;
3298{
3299 return p[i];
3300}
3301static char *f (char * (*g) (char **, int), char **p, ...)
3302{
3303 char *s;
3304 va_list v;
3305 va_start (v,p);
3306 s = g (p, va_arg (v,int));
3307 va_end (v);
3308 return s;
3309}
3310
3311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3312 function prototypes and stuff, but not '\xHH' hex character constants.
3313 These don't provoke an error unfortunately, instead are silently treated
3314 as 'x'. The following induces an error, until -std is added to get
3315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3316 array size at least. It's necessary to write '\x00'==0 to get something
3317 that's true only with -std. */
3318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319
3320/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3321 inside strings and character constants. */
3322#define FOO(x) 'x'
3323int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324
3325int test (int i, double x);
3326struct s1 {int (*f) (int a);};
3327struct s2 {int (*f) (double a);};
3328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329int argc;
3330char **argv;
3331int
3332main ()
3333{
3334return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341do
3342 CC="$ac_save_CC $ac_arg"
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_c89=$ac_arg
3345fi
3346rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348done
3349rm -f conftest.$ac_ext
3350CC=$ac_save_CC
3351
3352fi
3353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355 x)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3357$as_echo "none needed" >&6; } ;;
3358 xno)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3360$as_echo "unsupported" >&6; } ;;
3361 *)
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3364$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3365esac
3366if test "x$ac_cv_prog_cc_c89" != xno; then :
3367
3368fi
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376ac_aux_dir=
3377for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3378 if test -f "$ac_dir/install-sh"; then
3379 ac_aux_dir=$ac_dir
3380 ac_install_sh="$ac_aux_dir/install-sh -c"
3381 break
3382 elif test -f "$ac_dir/install.sh"; then
3383 ac_aux_dir=$ac_dir
3384 ac_install_sh="$ac_aux_dir/install.sh -c"
3385 break
3386 elif test -f "$ac_dir/shtool"; then
3387 ac_aux_dir=$ac_dir
3388 ac_install_sh="$ac_aux_dir/shtool install -c"
3389 break
3390 fi
3391done
3392if test -z "$ac_aux_dir"; then
3393 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3394fi
3395
3396# These three variables are undocumented and unsupported,
3397# and are intended to be withdrawn in a future Autoconf release.
3398# They can cause serious problems if a builder's source tree is in a directory
3399# whose full name contains unusual characters.
3400ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3401ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3402ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3403
3404
3405# Make sure we can run config.sub.
3406$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3407 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3408
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3410$as_echo_n "checking build system type... " >&6; }
3411if ${ac_cv_build+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413else
3414 ac_build_alias=$build_alias
3415test "x$ac_build_alias" = x &&
3416 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3417test "x$ac_build_alias" = x &&
3418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3419ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3421
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3424$as_echo "$ac_cv_build" >&6; }
3425case $ac_cv_build in
3426*-*-*) ;;
3427*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3428esac
3429build=$ac_cv_build
3430ac_save_IFS=$IFS; IFS='-'
3431set x $ac_cv_build
3432shift
3433build_cpu=$1
3434build_vendor=$2
3435shift; shift
3436# Remember, the first character of IFS is used to create $*,
3437# except with old shells:
3438build_os=$*
3439IFS=$ac_save_IFS
3440case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3441
3442
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3444$as_echo_n "checking host system type... " >&6; }
3445if ${ac_cv_host+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 if test "x$host_alias" = x; then
3449 ac_cv_host=$ac_cv_build
3450else
3451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3453fi
3454
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3457$as_echo "$ac_cv_host" >&6; }
3458case $ac_cv_host in
3459*-*-*) ;;
3460*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3461esac
3462host=$ac_cv_host
3463ac_save_IFS=$IFS; IFS='-'
3464set x $ac_cv_host
3465shift
3466host_cpu=$1
3467host_vendor=$2
3468shift; shift
3469# Remember, the first character of IFS is used to create $*,
3470# except with old shells:
3471host_os=$*
3472IFS=$ac_save_IFS
3473case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3474
3475
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3483$as_echo_n "checking how to run the C preprocessor... " >&6; }
3484# On Suns, sometimes $CPP names a directory.
3485if test -n "$CPP" && test -d "$CPP"; then
3486 CPP=
3487fi
3488if test -z "$CPP"; then
3489 if ${ac_cv_prog_CPP+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491else
3492 # Double quotes because CPP needs to be expanded
3493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3494 do
3495 ac_preproc_ok=false
3496for ac_c_preproc_warn_flag in '' yes
3497do
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h. */
3506#ifdef __STDC__
3507# include <limits.h>
3508#else
3509# include <assert.h>
3510#endif
3511 Syntax error
3512_ACEOF
3513if ac_fn_c_try_cpp "$LINENO"; then :
3514
3515else
3516 # Broken: fails on valid input.
3517continue
3518fi
3519rm -f conftest.err conftest.i conftest.$ac_ext
3520
3521 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how.
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525#include <ac_nonexistent.h>
3526_ACEOF
3527if ac_fn_c_try_cpp "$LINENO"; then :
3528 # Broken: success on invalid input.
3529continue
3530else
3531 # Passes both tests.
3532ac_preproc_ok=:
3533break
3534fi
3535rm -f conftest.err conftest.i conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.i conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then :
3541 break
3542fi
3543
3544 done
3545 ac_cv_prog_CPP=$CPP
3546
3547fi
3548 CPP=$ac_cv_prog_CPP
3549else
3550 ac_cv_prog_CPP=$CPP
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3553$as_echo "$CPP" >&6; }
3554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h. */
3565#ifdef __STDC__
3566# include <limits.h>
3567#else
3568# include <assert.h>
3569#endif
3570 Syntax error
3571_ACEOF
3572if ac_fn_c_try_cpp "$LINENO"; then :
3573
3574else
3575 # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.i conftest.$ac_ext
3579
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h. */
3584#include <ac_nonexistent.h>
3585_ACEOF
3586if ac_fn_c_try_cpp "$LINENO"; then :
3587 # Broken: success on invalid input.
3588continue
3589else
3590 # Passes both tests.
3591ac_preproc_ok=:
3592break
3593fi
3594rm -f conftest.err conftest.i conftest.$ac_ext
3595
3596done
3597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598rm -f conftest.i conftest.err conftest.$ac_ext
3599if $ac_preproc_ok; then :
3600
3601else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3616$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3617if ${ac_cv_path_GREP+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 if test -z "$GREP"; then
3621 ac_path_GREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in grep ggrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3632# Check for GNU ac_path_GREP and select it if it is found.
3633 # Check for GNU $ac_path_GREP
3634case `"$ac_path_GREP" --version 2>&1` in
3635*GNU*)
3636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3637*)
3638 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in"
3640 while :
3641 do
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'GREP' >> "conftest.nl"
3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 as_fn_arith $ac_count + 1 && ac_count=$as_val
3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_GREP="$ac_path_GREP"
3652 ac_path_GREP_max=$ac_count
3653 fi
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658esac
3659
3660 $ac_path_GREP_found && break 3
3661 done
3662 done
3663 done
3664IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_GREP"; then
3666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 fi
3668else
3669 ac_cv_path_GREP=$GREP
3670fi
3671
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3674$as_echo "$ac_cv_path_GREP" >&6; }
3675 GREP="$ac_cv_path_GREP"
3676
3677
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3679$as_echo_n "checking for egrep... " >&6; }
3680if ${ac_cv_path_EGREP+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682else
3683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3684 then ac_cv_path_EGREP="$GREP -E"
3685 else
3686 if test -z "$EGREP"; then
3687 ac_path_EGREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in egrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3698# Check for GNU ac_path_EGREP and select it if it is found.
3699 # Check for GNU $ac_path_EGREP
3700case `"$ac_path_EGREP" --version 2>&1` in
3701*GNU*)
3702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3703*)
3704 ac_count=0
3705 $as_echo_n 0123456789 >"conftest.in"
3706 while :
3707 do
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 $as_echo 'EGREP' >> "conftest.nl"
3712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 as_fn_arith $ac_count + 1 && ac_count=$as_val
3715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_EGREP="$ac_path_EGREP"
3718 ac_path_EGREP_max=$ac_count
3719 fi
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3722 done
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724esac
3725
3726 $ac_path_EGREP_found && break 3
3727 done
3728 done
3729 done
3730IFS=$as_save_IFS
3731 if test -z "$ac_cv_path_EGREP"; then
3732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3733 fi
3734else
3735 ac_cv_path_EGREP=$EGREP
3736fi
3737
3738 fi
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3741$as_echo "$ac_cv_path_EGREP" >&6; }
3742 EGREP="$ac_cv_path_EGREP"
3743
3744
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3746$as_echo_n "checking for ANSI C header files... " >&6; }
3747if ${ac_cv_header_stdc+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752#include <stdlib.h>
3753#include <stdarg.h>
3754#include <string.h>
3755#include <float.h>
3756
3757int
3758main ()
3759{
3760
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_header_stdc=yes
3767else
3768 ac_cv_header_stdc=no
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771
3772if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h. */
3776#include <string.h>
3777
3778_ACEOF
3779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "memchr" >/dev/null 2>&1; then :
3781
3782else
3783 ac_cv_header_stdc=no
3784fi
3785rm -f conftest*
3786
3787fi
3788
3789if test $ac_cv_header_stdc = yes; then
3790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793#include <stdlib.h>
3794
3795_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "free" >/dev/null 2>&1; then :
3798
3799else
3800 ac_cv_header_stdc=no
3801fi
3802rm -f conftest*
3803
3804fi
3805
3806if test $ac_cv_header_stdc = yes; then
3807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3808 if test "$cross_compiling" = yes; then :
3809 :
3810else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
3813#include <ctype.h>
3814#include <stdlib.h>
3815#if ((' ' & 0x0FF) == 0x020)
3816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3818#else
3819# define ISLOWER(c) \
3820 (('a' <= (c) && (c) <= 'i') \
3821 || ('j' <= (c) && (c) <= 'r') \
3822 || ('s' <= (c) && (c) <= 'z'))
3823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3824#endif
3825
3826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3827int
3828main ()
3829{
3830 int i;
3831 for (i = 0; i < 256; i++)
3832 if (XOR (islower (i), ISLOWER (i))
3833 || toupper (i) != TOUPPER (i))
3834 return 2;
3835 return 0;
3836}
3837_ACEOF
3838if ac_fn_c_try_run "$LINENO"; then :
3839
3840else
3841 ac_cv_header_stdc=no
3842fi
3843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3844 conftest.$ac_objext conftest.beam conftest.$ac_ext
3845fi
3846
3847fi
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3850$as_echo "$ac_cv_header_stdc" >&6; }
3851if test $ac_cv_header_stdc = yes; then
3852
3853$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3854
3855fi
3856
3857# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3859 inttypes.h stdint.h unistd.h
3860do :
3861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3863"
3864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3865 cat >>confdefs.h <<_ACEOF
3866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3867_ACEOF
3868
3869fi
3870
3871done
3872
3873
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3875$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3876if ${ac_cv_c_bigendian+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878else
3879 ac_cv_c_bigendian=unknown
3880 # See if we're dealing with a universal compiler.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#ifndef __APPLE_CC__
3884 not a universal capable compiler
3885 #endif
3886 typedef int dummy;
3887
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891 # Check for potential -arch flags. It is not universal unless
3892 # there are at least two -arch flags with different values.
3893 ac_arch=
3894 ac_prev=
3895 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3896 if test -n "$ac_prev"; then
3897 case $ac_word in
3898 i?86 | x86_64 | ppc | ppc64)
3899 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3900 ac_arch=$ac_word
3901 else
3902 ac_cv_c_bigendian=universal
3903 break
3904 fi
3905 ;;
3906 esac
3907 ac_prev=
3908 elif test "x$ac_word" = "x-arch"; then
3909 ac_prev=arch
3910 fi
3911 done
3912fi
3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 if test $ac_cv_c_bigendian = unknown; then
3915 # See if sys/param.h defines the BYTE_ORDER macro.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918#include <sys/types.h>
3919 #include <sys/param.h>
3920
3921int
3922main ()
3923{
3924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3925 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3926 && LITTLE_ENDIAN)
3927 bogus endian macros
3928 #endif
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
3934if ac_fn_c_try_compile "$LINENO"; then :
3935 # It does; now see whether it defined to BIG_ENDIAN or not.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938#include <sys/types.h>
3939 #include <sys/param.h>
3940
3941int
3942main ()
3943{
3944#if BYTE_ORDER != BIG_ENDIAN
3945 not big endian
3946 #endif
3947
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_c_bigendian=yes
3954else
3955 ac_cv_c_bigendian=no
3956fi
3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 if test $ac_cv_c_bigendian = unknown; then
3962 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965#include <limits.h>
3966
3967int
3968main ()
3969{
3970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3971 bogus endian macros
3972 #endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then :
3979 # It does; now see whether it defined to _BIG_ENDIAN or not.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */
3982#include <limits.h>
3983
3984int
3985main ()
3986{
3987#ifndef _BIG_ENDIAN
3988 not big endian
3989 #endif
3990
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_c_bigendian=yes
3997else
3998 ac_cv_c_bigendian=no
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001fi
4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004 if test $ac_cv_c_bigendian = unknown; then
4005 # Compile a test program.
4006 if test "$cross_compiling" = yes; then :
4007 # Try to guess by grepping values from an object file.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010short int ascii_mm[] =
4011 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4012 short int ascii_ii[] =
4013 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4014 int use_ascii (int i) {
4015 return ascii_mm[i] + ascii_ii[i];
4016 }
4017 short int ebcdic_ii[] =
4018 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4019 short int ebcdic_mm[] =
4020 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4021 int use_ebcdic (int i) {
4022 return ebcdic_mm[i] + ebcdic_ii[i];
4023 }
4024 extern int foo;
4025
4026int
4027main ()
4028{
4029return use_ascii (foo) == use_ebcdic (foo);
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4036 ac_cv_c_bigendian=yes
4037 fi
4038 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4039 if test "$ac_cv_c_bigendian" = unknown; then
4040 ac_cv_c_bigendian=no
4041 else
4042 # finding both strings is unlikely to happen, but who knows?
4043 ac_cv_c_bigendian=unknown
4044 fi
4045 fi
4046fi
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051$ac_includes_default
4052int
4053main ()
4054{
4055
4056 /* Are we little or big endian? From Harbison&Steele. */
4057 union
4058 {
4059 long int l;
4060 char c[sizeof (long int)];
4061 } u;
4062 u.l = 1;
4063 return u.c[sizeof (long int) - 1] == 1;
4064
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_run "$LINENO"; then :
4070 ac_cv_c_bigendian=no
4071else
4072 ac_cv_c_bigendian=yes
4073fi
4074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4075 conftest.$ac_objext conftest.beam conftest.$ac_ext
4076fi
4077
4078 fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4081$as_echo "$ac_cv_c_bigendian" >&6; }
4082 case $ac_cv_c_bigendian in #(
4083 yes)
4084 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4085;; #(
4086 no)
4087 ;; #(
4088 universal)
4089
4090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4091
4092 ;; #(
4093 *)
4094 as_fn_error $? "unknown endianness
4095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4096 esac
4097
4098
4099# Checks for programs.
4100for ac_prog in gawk mawk nawk awk
4101do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
4106if ${ac_cv_prog_AWK+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108else
4109 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_AWK="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123done
4124 done
4125IFS=$as_save_IFS
4126
4127fi
4128fi
4129AWK=$ac_cv_prog_AWK
4130if test -n "$AWK"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4132$as_echo "$AWK" >&6; }
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136fi
4137
4138
4139 test -n "$AWK" && break
4140done
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4148$as_echo_n "checking how to run the C preprocessor... " >&6; }
4149# On Suns, sometimes $CPP names a directory.
4150if test -n "$CPP" && test -d "$CPP"; then
4151 CPP=
4152fi
4153if test -z "$CPP"; then
4154 if ${ac_cv_prog_CPP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 do
4160 ac_preproc_ok=false
4161for ac_c_preproc_warn_flag in '' yes
4162do
4163 # Use a header file that comes with gcc, so configuring glibc
4164 # with a fresh cross-compiler works.
4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171#ifdef __STDC__
4172# include <limits.h>
4173#else
4174# include <assert.h>
4175#endif
4176 Syntax error
4177_ACEOF
4178if ac_fn_c_try_cpp "$LINENO"; then :
4179
4180else
4181 # Broken: fails on valid input.
4182continue
4183fi
4184rm -f conftest.err conftest.i conftest.$ac_ext
4185
4186 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h. */
4190#include <ac_nonexistent.h>
4191_ACEOF
4192if ac_fn_c_try_cpp "$LINENO"; then :
4193 # Broken: success on invalid input.
4194continue
4195else
4196 # Passes both tests.
4197ac_preproc_ok=:
4198break
4199fi
4200rm -f conftest.err conftest.i conftest.$ac_ext
4201
4202done
4203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204rm -f conftest.i conftest.err conftest.$ac_ext
4205if $ac_preproc_ok; then :
4206 break
4207fi
4208
4209 done
4210 ac_cv_prog_CPP=$CPP
4211
4212fi
4213 CPP=$ac_cv_prog_CPP
4214else
4215 ac_cv_prog_CPP=$CPP
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4218$as_echo "$CPP" >&6; }
4219ac_preproc_ok=false
4220for ac_c_preproc_warn_flag in '' yes
4221do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230#ifdef __STDC__
4231# include <limits.h>
4232#else
4233# include <assert.h>
4234#endif
4235 Syntax error
4236_ACEOF
4237if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239else
4240 # Broken: fails on valid input.
4241continue
4242fi
4243rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h. */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253continue
4254else
4255 # Passes both tests.
4256ac_preproc_ok=:
4257break
4258fi
4259rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.i conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then :
4265
4266else
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4270See \`config.log' for more details" "$LINENO" 5; }
4271fi
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if ${ac_cv_prog_RANLIB+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286else
4287 if test -n "$RANLIB"; then
4288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4289else
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301done
4302 done
4303IFS=$as_save_IFS
4304
4305fi
4306fi
4307RANLIB=$ac_cv_prog_RANLIB
4308if test -n "$RANLIB"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4310$as_echo "$RANLIB" >&6; }
4311else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
4314fi
4315
4316
4317fi
4318if test -z "$ac_cv_prog_RANLIB"; then
4319 ac_ct_RANLIB=$RANLIB
4320 # Extract the first word of "ranlib", so it can be a program name with args.
4321set dummy ranlib; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326else
4327 if test -n "$ac_ct_RANLIB"; then
4328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_ac_ct_RANLIB="ranlib"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341done
4342 done
4343IFS=$as_save_IFS
4344
4345fi
4346fi
4347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4348if test -n "$ac_ct_RANLIB"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4350$as_echo "$ac_ct_RANLIB" >&6; }
4351else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
4355
4356 if test "x$ac_ct_RANLIB" = x; then
4357 RANLIB=":"
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360yes:)
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363ac_tool_warned=yes ;;
4364esac
4365 RANLIB=$ac_ct_RANLIB
4366 fi
4367else
4368 RANLIB="$ac_cv_prog_RANLIB"
4369fi
4370
4371# Find a good install program. We prefer a C program (faster),
4372# so one script is as good as another. But avoid the broken or
4373# incompatible versions:
4374# SysV /etc/install, /usr/sbin/install
4375# SunOS /usr/etc/install
4376# IRIX /sbin/install
4377# AIX /bin/install
4378# AmigaOS /C/install, which installs bootblocks on floppy discs
4379# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4380# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4381# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4382# OS/2's system install, which has a completely different semantic
4383# ./install, which can be erroneously created by make from ./install.sh.
4384# Reject install programs that cannot install multiple files.
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4386$as_echo_n "checking for a BSD-compatible install... " >&6; }
4387if test -z "$INSTALL"; then
4388if ${ac_cv_path_install+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 # Account for people who put trailing slashes in PATH elements.
4397case $as_dir/ in #((
4398 ./ | .// | /[cC]/* | \
4399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4400 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4401 /usr/ucb/* ) ;;
4402 *)
4403 # OSF1 and SCO ODT 3.0 have their own names for install.
4404 # Don't use installbsd from OSF since it installs stuff as root
4405 # by default.
4406 for ac_prog in ginstall scoinst install; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4409 if test $ac_prog = install &&
4410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4411 # AIX install. It has an incompatible calling convention.
4412 :
4413 elif test $ac_prog = install &&
4414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # program-specific install script used by HP pwplus--don't use.
4416 :
4417 else
4418 rm -rf conftest.one conftest.two conftest.dir
4419 echo one > conftest.one
4420 echo two > conftest.two
4421 mkdir conftest.dir
4422 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4423 test -s conftest.one && test -s conftest.two &&
4424 test -s conftest.dir/conftest.one &&
4425 test -s conftest.dir/conftest.two
4426 then
4427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4428 break 3
4429 fi
4430 fi
4431 fi
4432 done
4433 done
4434 ;;
4435esac
4436
4437 done
4438IFS=$as_save_IFS
4439
4440rm -rf conftest.one conftest.two conftest.dir
4441
4442fi
4443 if test "${ac_cv_path_install+set}" = set; then
4444 INSTALL=$ac_cv_path_install
4445 else
4446 # As a last resort, use the slow shell script. Don't cache a
4447 # value for INSTALL within a source directory, because that will
4448 # break other packages using the cache if that directory is
4449 # removed, or if the value is a relative name.
4450 INSTALL=$ac_install_sh
4451 fi
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4454$as_echo "$INSTALL" >&6; }
4455
4456# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4457# It thinks the first close brace ends the variable substitution.
4458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4459
4460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4461
4462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4465$as_echo_n "checking for egrep... " >&6; }
4466if ${ac_cv_path_EGREP+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468else
4469 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4470 then ac_cv_path_EGREP="$GREP -E"
4471 else
4472 if test -z "$EGREP"; then
4473 ac_path_EGREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in egrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4484# Check for GNU ac_path_EGREP and select it if it is found.
4485 # Check for GNU $ac_path_EGREP
4486case `"$ac_path_EGREP" --version 2>&1` in
4487*GNU*)
4488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4489*)
4490 ac_count=0
4491 $as_echo_n 0123456789 >"conftest.in"
4492 while :
4493 do
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo 'EGREP' >> "conftest.nl"
4498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_EGREP="$ac_path_EGREP"
4504 ac_path_EGREP_max=$ac_count
4505 fi
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4508 done
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510esac
4511
4512 $ac_path_EGREP_found && break 3
4513 done
4514 done
4515 done
4516IFS=$as_save_IFS
4517 if test -z "$ac_cv_path_EGREP"; then
4518 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 fi
4520else
4521 ac_cv_path_EGREP=$EGREP
4522fi
4523
4524 fi
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4527$as_echo "$ac_cv_path_EGREP" >&6; }
4528 EGREP="$ac_cv_path_EGREP"
4529
4530
4531# Extract the first word of "ar", so it can be a program name with args.
4532set dummy ar; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
4535if ${ac_cv_path_AR+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 case $AR in
4539 [\\/]* | ?:[\\/]*)
4540 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4541 ;;
4542 *)
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554done
4555 done
4556IFS=$as_save_IFS
4557
4558 ;;
4559esac
4560fi
4561AR=$ac_cv_path_AR
4562if test -n "$AR"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4564$as_echo "$AR" >&6; }
4565else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568fi
4569
4570
4571# Extract the first word of "cat", so it can be a program name with args.
4572set dummy cat; ac_word=$2
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574$as_echo_n "checking for $ac_word... " >&6; }
4575if ${ac_cv_path_CAT+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 case $CAT in
4579 [\\/]* | ?:[\\/]*)
4580 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4581 ;;
4582 *)
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH
4585do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594done
4595 done
4596IFS=$as_save_IFS
4597
4598 ;;
4599esac
4600fi
4601CAT=$ac_cv_path_CAT
4602if test -n "$CAT"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4604$as_echo "$CAT" >&6; }
4605else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607$as_echo "no" >&6; }
4608fi
4609
4610
4611# Extract the first word of "kill", so it can be a program name with args.
4612set dummy kill; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if ${ac_cv_path_KILL+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 case $KILL in
4619 [\\/]* | ?:[\\/]*)
4620 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4621 ;;
4622 *)
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
4635 done
4636IFS=$as_save_IFS
4637
4638 ;;
4639esac
4640fi
4641KILL=$ac_cv_path_KILL
4642if test -n "$KILL"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4644$as_echo "$KILL" >&6; }
4645else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648fi
4649
4650
4651for ac_prog in perl5 perl
4652do
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if ${ac_cv_path_PERL+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659else
4660 case $PERL in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677 done
4678IFS=$as_save_IFS
4679
4680 ;;
4681esac
4682fi
4683PERL=$ac_cv_path_PERL
4684if test -n "$PERL"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4686$as_echo "$PERL" >&6; }
4687else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693 test -n "$PERL" && break
4694done
4695
4696# Extract the first word of "sed", so it can be a program name with args.
4697set dummy sed; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_path_SED+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 case $SED in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720 done
4721IFS=$as_save_IFS
4722
4723 ;;
4724esac
4725fi
4726SED=$ac_cv_path_SED
4727if test -n "$SED"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4729$as_echo "$SED" >&6; }
4730else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736
4737# Extract the first word of "ent", so it can be a program name with args.
4738set dummy ent; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if ${ac_cv_path_ENT+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 case $ENT in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761 done
4762IFS=$as_save_IFS
4763
4764 ;;
4765esac
4766fi
4767ENT=$ac_cv_path_ENT
4768if test -n "$ENT"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4770$as_echo "$ENT" >&6; }
4771else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777
4778# Extract the first word of "bash", so it can be a program name with args.
4779set dummy bash; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; }
4782if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 case $TEST_MINUS_S_SH in
4786 [\\/]* | ?:[\\/]*)
4787 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4788 ;;
4789 *)
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805 ;;
4806esac
4807fi
4808TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4809if test -n "$TEST_MINUS_S_SH"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4811$as_echo "$TEST_MINUS_S_SH" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818# Extract the first word of "ksh", so it can be a program name with args.
4819set dummy ksh; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824else
4825 case $TEST_MINUS_S_SH in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842 done
4843IFS=$as_save_IFS
4844
4845 ;;
4846esac
4847fi
4848TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4849if test -n "$TEST_MINUS_S_SH"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4851$as_echo "$TEST_MINUS_S_SH" >&6; }
4852else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858# Extract the first word of "sh", so it can be a program name with args.
4859set dummy sh; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864else
4865 case $TEST_MINUS_S_SH in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882 done
4883IFS=$as_save_IFS
4884
4885 ;;
4886esac
4887fi
4888TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4889if test -n "$TEST_MINUS_S_SH"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4891$as_echo "$TEST_MINUS_S_SH" >&6; }
4892else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898# Extract the first word of "sh", so it can be a program name with args.
4899set dummy sh; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_path_SH+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 case $SH in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922 done
4923IFS=$as_save_IFS
4924
4925 ;;
4926esac
4927fi
4928SH=$ac_cv_path_SH
4929if test -n "$SH"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4931$as_echo "$SH" >&6; }
4932else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938# Extract the first word of "groff", so it can be a program name with args.
4939set dummy groff; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_path_GROFF+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944else
4945 case $GROFF in
4946 [\\/]* | ?:[\\/]*)
4947 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4948 ;;
4949 *)
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962 done
4963IFS=$as_save_IFS
4964
4965 ;;
4966esac
4967fi
4968GROFF=$ac_cv_path_GROFF
4969if test -n "$GROFF"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4971$as_echo "$GROFF" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978# Extract the first word of "nroff", so it can be a program name with args.
4979set dummy nroff; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_path_NROFF+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 case $NROFF in
4986 [\\/]* | ?:[\\/]*)
4987 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4988 ;;
4989 *)
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002 done
5003IFS=$as_save_IFS
5004
5005 ;;
5006esac
5007fi
5008NROFF=$ac_cv_path_NROFF
5009if test -n "$NROFF"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5011$as_echo "$NROFF" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018# Extract the first word of "mandoc", so it can be a program name with args.
5019set dummy mandoc; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if ${ac_cv_path_MANDOC+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 case $MANDOC in
5026 [\\/]* | ?:[\\/]*)
5027 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5028 ;;
5029 *)
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
5044
5045 ;;
5046esac
5047fi
5048MANDOC=$ac_cv_path_MANDOC
5049if test -n "$MANDOC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5051$as_echo "$MANDOC" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058TEST_SHELL=sh
5059
5060
5061if test "x$MANDOC" != "x" ; then
5062 MANFMT="$MANDOC"
5063elif test "x$NROFF" != "x" ; then
5064 MANFMT="$NROFF -mandoc"
5065elif test "x$GROFF" != "x" ; then
5066 MANFMT="$GROFF -mandoc -Tascii"
5067else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5069$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5070 MANFMT="false"
5071fi
5072
5073
5074# Extract the first word of "groupadd", so it can be a program name with args.
5075set dummy groupadd; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $PATH_GROUPADD_PROG in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5102 ;;
5103esac
5104fi
5105PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5106if test -n "$PATH_GROUPADD_PROG"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5108$as_echo "$PATH_GROUPADD_PROG" >&6; }
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113
5114
5115# Extract the first word of "useradd", so it can be a program name with args.
5116set dummy useradd; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 case $PATH_USERADD_PROG in
5123 [\\/]* | ?:[\\/]*)
5124 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5125 ;;
5126 *)
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138done
5139 done
5140IFS=$as_save_IFS
5141
5142 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5143 ;;
5144esac
5145fi
5146PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5147if test -n "$PATH_USERADD_PROG"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5149$as_echo "$PATH_USERADD_PROG" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156# Extract the first word of "pkgmk", so it can be a program name with args.
5157set dummy pkgmk; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162else
5163 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5164 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5182fi
5183fi
5184MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5185if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5187$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5188else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
5191fi
5192
5193
5194if test -x /sbin/sh; then
5195 STARTUP_SCRIPT_SHELL=/sbin/sh
5196
5197else
5198 STARTUP_SCRIPT_SHELL=/bin/sh
5199
5200fi
5201
5202# System features
5203# Check whether --enable-largefile was given.
5204if test "${enable_largefile+set}" = set; then :
5205 enableval=$enable_largefile;
5206fi
5207
5208if test "$enable_largefile" != no; then
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5211$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5212if ${ac_cv_sys_largefile_CC+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 ac_cv_sys_largefile_CC=no
5216 if test "$GCC" != yes; then
5217 ac_save_CC=$CC
5218 while :; do
5219 # IRIX 6.2 and later do not support large files by default,
5220 # so use the C compiler's -n32 option if that helps.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#include <sys/types.h>
5224 /* Check that off_t can represent 2**63 - 1 correctly.
5225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5226 since some C++ compilers masquerading as C compilers
5227 incorrectly reject 9223372036854775807. */
5228#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5230 && LARGE_OFF_T % 2147483647 == 1)
5231 ? 1 : -1];
5232int
5233main ()
5234{
5235
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 break
5242fi
5243rm -f core conftest.err conftest.$ac_objext
5244 CC="$CC -n32"
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_sys_largefile_CC=' -n32'; break
5247fi
5248rm -f core conftest.err conftest.$ac_objext
5249 break
5250 done
5251 CC=$ac_save_CC
5252 rm -f conftest.$ac_ext
5253 fi
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5256$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5257 if test "$ac_cv_sys_largefile_CC" != no; then
5258 CC=$CC$ac_cv_sys_largefile_CC
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5262$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5263if ${ac_cv_sys_file_offset_bits+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265else
5266 while :; do
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h. */
5269#include <sys/types.h>
5270 /* Check that off_t can represent 2**63 - 1 correctly.
5271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5272 since some C++ compilers masquerading as C compilers
5273 incorrectly reject 9223372036854775807. */
5274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5276 && LARGE_OFF_T % 2147483647 == 1)
5277 ? 1 : -1];
5278int
5279main ()
5280{
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_sys_file_offset_bits=no; break
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h. */
5292#define _FILE_OFFSET_BITS 64
5293#include <sys/types.h>
5294 /* Check that off_t can represent 2**63 - 1 correctly.
5295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296 since some C++ compilers masquerading as C compilers
5297 incorrectly reject 9223372036854775807. */
5298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300 && LARGE_OFF_T % 2147483647 == 1)
5301 ? 1 : -1];
5302int
5303main ()
5304{
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_file_offset_bits=64; break
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_sys_file_offset_bits=unknown
5315 break
5316done
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5319$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5320case $ac_cv_sys_file_offset_bits in #(
5321 no | unknown) ;;
5322 *)
5323cat >>confdefs.h <<_ACEOF
5324#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5325_ACEOF
5326;;
5327esac
5328rm -rf conftest*
5329 if test $ac_cv_sys_file_offset_bits = unknown; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5331$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5332if ${ac_cv_sys_large_files+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 while :; do
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h. */
5338#include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5346 ? 1 : -1];
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_compile "$LINENO"; then :
5356 ac_cv_sys_large_files=no; break
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361#define _LARGE_FILES 1
5362#include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_large_files=1; break
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_sys_large_files=unknown
5384 break
5385done
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5388$as_echo "$ac_cv_sys_large_files" >&6; }
5389case $ac_cv_sys_large_files in #(
5390 no | unknown) ;;
5391 *)
5392cat >>confdefs.h <<_ACEOF
5393#define _LARGE_FILES $ac_cv_sys_large_files
5394_ACEOF
5395;;
5396esac
5397rm -rf conftest*
5398 fi
5399fi
5400
5401
5402if test -z "$AR" ; then
5403 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5404fi
5405
5406# Use LOGIN_PROGRAM from environment if possible
5407if test ! -z "$LOGIN_PROGRAM" ; then
5408
5409cat >>confdefs.h <<_ACEOF
5410#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5411_ACEOF
5412
5413else
5414 # Search for login
5415 # Extract the first word of "login", so it can be a program name with args.
5416set dummy login; ac_word=$2
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; }
5419if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421else
5422 case $LOGIN_PROGRAM_FALLBACK in
5423 [\\/]* | ?:[\\/]*)
5424 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5425 ;;
5426 *)
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438done
5439 done
5440IFS=$as_save_IFS
5441
5442 ;;
5443esac
5444fi
5445LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5446if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5448$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5449else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
5452fi
5453
5454
5455 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5456 cat >>confdefs.h <<_ACEOF
5457#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5458_ACEOF
5459
5460 fi
5461fi
5462
5463# Extract the first word of "passwd", so it can be a program name with args.
5464set dummy passwd; ac_word=$2
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
5467if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469else
5470 case $PATH_PASSWD_PROG in
5471 [\\/]* | ?:[\\/]*)
5472 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486done
5487 done
5488IFS=$as_save_IFS
5489
5490 ;;
5491esac
5492fi
5493PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5494if test -n "$PATH_PASSWD_PROG"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5496$as_echo "$PATH_PASSWD_PROG" >&6; }
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502
5503if test ! -z "$PATH_PASSWD_PROG" ; then
5504
5505cat >>confdefs.h <<_ACEOF
5506#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5507_ACEOF
5508
5509fi
5510
5511if test -z "$LD" ; then
5512 LD=$CC
5513fi
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5517$as_echo_n "checking for inline... " >&6; }
5518if ${ac_cv_c_inline+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 ac_cv_c_inline=no
5522for ac_kw in inline __inline__ __inline; do
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h. */
5525#ifndef __cplusplus
5526typedef int foo_t;
5527static $ac_kw foo_t static_foo () {return 0; }
5528$ac_kw foo_t foo () {return 0; }
5529#endif
5530
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_c_inline=$ac_kw
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 test "$ac_cv_c_inline" != no && break
5537done
5538
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5541$as_echo "$ac_cv_c_inline" >&6; }
5542
5543case $ac_cv_c_inline in
5544 inline | yes) ;;
5545 *)
5546 case $ac_cv_c_inline in
5547 no) ac_val=;;
5548 *) ac_val=$ac_cv_c_inline;;
5549 esac
5550 cat >>confdefs.h <<_ACEOF
5551#ifndef __cplusplus
5552#define inline $ac_val
5553#endif
5554_ACEOF
5555 ;;
5556esac
5557
5558
5559ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5560"
5561if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5562 have_llong_max=1
5563fi
5564
5565ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5566 #include <sys/types.h>
5567 #include <sys/param.h>
5568 #include <dev/systrace.h>
5569
5570"
5571if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5572 have_systr_policy_kill=1
5573fi
5574
5575ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5576 #include <sys/types.h>
5577 #include <sys/resource.h>
5578
5579"
5580if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5581
5582$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5583
5584fi
5585
5586ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5587 #include <sys/types.h>
5588 #include <linux/prctl.h>
5589
5590"
5591if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5592 have_linux_no_new_privs=1
5593fi
5594
5595
5596use_stack_protector=1
5597use_toolchain_hardening=1
5598
5599# Check whether --with-stackprotect was given.
5600if test "${with_stackprotect+set}" = set; then :
5601 withval=$with_stackprotect;
5602 if test "x$withval" = "xno"; then
5603 use_stack_protector=0
5604 fi
5605fi
5606
5607
5608# Check whether --with-hardening was given.
5609if test "${with_hardening+set}" = set; then :
5610 withval=$with_hardening;
5611 if test "x$withval" = "xno"; then
5612 use_toolchain_hardening=0
5613 fi
5614fi
5615
5616
5617# We use -Werror for the tests only so that we catch warnings like "this is
5618# on by default" for things like -fPIE.
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5620$as_echo_n "checking if $CC supports -Werror... " >&6; }
5621saved_CFLAGS="$CFLAGS"
5622CFLAGS="$CFLAGS -Werror"
5623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h. */
5625int main(void) { return 0; }
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629$as_echo "yes" >&6; }
5630 WERROR="-Werror"
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 WERROR=""
5635
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638CFLAGS="$saved_CFLAGS"
5639
5640if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5641 {
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5643$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5646 _define_flag=""
5647 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650
5651#include <stdlib.h>
5652#include <stdio.h>
5653int main(int argc, char **argv) {
5654 /* Some math to catch -ftrapv problems in the toolchain */
5655 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5656 float l = i * 2.1;
5657 double m = l / 0.5;
5658 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5659 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5660 exit(0);
5661}
5662
5663_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then :
5665
5666if `grep -i "unrecognized option" conftest.err >/dev/null`
5667then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670 CFLAGS="$saved_CFLAGS"
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673$as_echo "yes" >&6; }
5674 CFLAGS="$saved_CFLAGS $_define_flag"
5675fi
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679 CFLAGS="$saved_CFLAGS"
5680
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683}
5684 {
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5687 saved_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5689 _define_flag=""
5690 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h. */
5693
5694#include <stdlib.h>
5695#include <stdio.h>
5696int main(int argc, char **argv) {
5697 /* Some math to catch -ftrapv problems in the toolchain */
5698 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5699 float l = i * 2.1;
5700 double m = l / 0.5;
5701 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5702 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5703 exit(0);
5704}
5705
5706_ACEOF
5707if ac_fn_c_try_compile "$LINENO"; then :
5708
5709if `grep -i "unrecognized option" conftest.err >/dev/null`
5710then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713 CFLAGS="$saved_CFLAGS"
5714else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716$as_echo "yes" >&6; }
5717 CFLAGS="$saved_CFLAGS $_define_flag"
5718fi
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722 CFLAGS="$saved_CFLAGS"
5723
5724fi
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726}
5727 {
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5729$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5730 saved_CFLAGS="$CFLAGS"
5731 CFLAGS="$CFLAGS $WERROR -Wall"
5732 _define_flag=""
5733 test "x$_define_flag" = "x" && _define_flag="-Wall"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */
5736
5737#include <stdlib.h>
5738#include <stdio.h>
5739int main(int argc, char **argv) {
5740 /* Some math to catch -ftrapv problems in the toolchain */
5741 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5742 float l = i * 2.1;
5743 double m = l / 0.5;
5744 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5745 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5746 exit(0);
5747}
5748
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then :
5751
5752if `grep -i "unrecognized option" conftest.err >/dev/null`
5753then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756 CFLAGS="$saved_CFLAGS"
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759$as_echo "yes" >&6; }
5760 CFLAGS="$saved_CFLAGS $_define_flag"
5761fi
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765 CFLAGS="$saved_CFLAGS"
5766
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769}
5770 {
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5772$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5773 saved_CFLAGS="$CFLAGS"
5774 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5775 _define_flag=""
5776 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h. */
5779
5780#include <stdlib.h>
5781#include <stdio.h>
5782int main(int argc, char **argv) {
5783 /* Some math to catch -ftrapv problems in the toolchain */
5784 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5785 float l = i * 2.1;
5786 double m = l / 0.5;
5787 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5788 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5789 exit(0);
5790}
5791
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794
5795if `grep -i "unrecognized option" conftest.err >/dev/null`
5796then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799 CFLAGS="$saved_CFLAGS"
5800else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802$as_echo "yes" >&6; }
5803 CFLAGS="$saved_CFLAGS $_define_flag"
5804fi
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808 CFLAGS="$saved_CFLAGS"
5809
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812}
5813 {
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5815$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5816 saved_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5818 _define_flag=""
5819 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822
5823#include <stdlib.h>
5824#include <stdio.h>
5825int main(int argc, char **argv) {
5826 /* Some math to catch -ftrapv problems in the toolchain */
5827 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5828 float l = i * 2.1;
5829 double m = l / 0.5;
5830 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5831 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5832 exit(0);
5833}
5834
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837
5838if `grep -i "unrecognized option" conftest.err >/dev/null`
5839then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842 CFLAGS="$saved_CFLAGS"
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845$as_echo "yes" >&6; }
5846 CFLAGS="$saved_CFLAGS $_define_flag"
5847fi
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851 CFLAGS="$saved_CFLAGS"
5852
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855}
5856 {
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5858$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5859 saved_CFLAGS="$CFLAGS"
5860 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5861 _define_flag=""
5862 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866#include <stdlib.h>
5867#include <stdio.h>
5868int main(int argc, char **argv) {
5869 /* Some math to catch -ftrapv problems in the toolchain */
5870 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5871 float l = i * 2.1;
5872 double m = l / 0.5;
5873 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5874 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5875 exit(0);
5876}
5877
5878_ACEOF
5879if ac_fn_c_try_compile "$LINENO"; then :
5880
5881if `grep -i "unrecognized option" conftest.err >/dev/null`
5882then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885 CFLAGS="$saved_CFLAGS"
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5888$as_echo "yes" >&6; }
5889 CFLAGS="$saved_CFLAGS $_define_flag"
5890fi
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894 CFLAGS="$saved_CFLAGS"
5895
5896fi
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898}
5899 {
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
5901$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5902 saved_CFLAGS="$CFLAGS"
5903 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5904 _define_flag=""
5905 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h. */
5908
5909#include <stdlib.h>
5910#include <stdio.h>
5911int main(int argc, char **argv) {
5912 /* Some math to catch -ftrapv problems in the toolchain */
5913 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5914 float l = i * 2.1;
5915 double m = l / 0.5;
5916 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5917 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5918 exit(0);
5919}
5920
5921_ACEOF
5922if ac_fn_c_try_compile "$LINENO"; then :
5923
5924if `grep -i "unrecognized option" conftest.err >/dev/null`
5925then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928 CFLAGS="$saved_CFLAGS"
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5931$as_echo "yes" >&6; }
5932 CFLAGS="$saved_CFLAGS $_define_flag"
5933fi
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937 CFLAGS="$saved_CFLAGS"
5938
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941}
5942 {
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5944$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
5945 saved_CFLAGS="$CFLAGS"
5946 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5947 _define_flag=""
5948 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951
5952#include <stdlib.h>
5953#include <stdio.h>
5954int main(int argc, char **argv) {
5955 /* Some math to catch -ftrapv problems in the toolchain */
5956 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5957 float l = i * 2.1;
5958 double m = l / 0.5;
5959 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5960 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5961 exit(0);
5962}
5963
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then :
5966
5967if `grep -i "unrecognized option" conftest.err >/dev/null`
5968then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970$as_echo "no" >&6; }
5971 CFLAGS="$saved_CFLAGS"
5972else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974$as_echo "yes" >&6; }
5975 CFLAGS="$saved_CFLAGS $_define_flag"
5976fi
5977else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979$as_echo "no" >&6; }
5980 CFLAGS="$saved_CFLAGS"
5981
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984}
5985 {
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
5987$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
5988 saved_CFLAGS="$CFLAGS"
5989 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
5990 _define_flag="-Wno-pointer-sign"
5991 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h. */
5994
5995#include <stdlib.h>
5996#include <stdio.h>
5997int main(int argc, char **argv) {
5998 /* Some math to catch -ftrapv problems in the toolchain */
5999 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6000 float l = i * 2.1;
6001 double m = l / 0.5;
6002 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6003 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6004 exit(0);
6005}
6006
6007_ACEOF
6008if ac_fn_c_try_compile "$LINENO"; then :
6009
6010if `grep -i "unrecognized option" conftest.err >/dev/null`
6011then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014 CFLAGS="$saved_CFLAGS"
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6017$as_echo "yes" >&6; }
6018 CFLAGS="$saved_CFLAGS $_define_flag"
6019fi
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023 CFLAGS="$saved_CFLAGS"
6024
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027}
6028 {
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6030$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6031 saved_CFLAGS="$CFLAGS"
6032 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6033 _define_flag="-Wno-unused-result"
6034 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h. */
6037
6038#include <stdlib.h>
6039#include <stdio.h>
6040int main(int argc, char **argv) {
6041 /* Some math to catch -ftrapv problems in the toolchain */
6042 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6043 float l = i * 2.1;
6044 double m = l / 0.5;
6045 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6046 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6047 exit(0);
6048}
6049
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052
6053if `grep -i "unrecognized option" conftest.err >/dev/null`
6054then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057 CFLAGS="$saved_CFLAGS"
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6060$as_echo "yes" >&6; }
6061 CFLAGS="$saved_CFLAGS $_define_flag"
6062fi
6063else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066 CFLAGS="$saved_CFLAGS"
6067
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070}
6071 {
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6073$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6074 saved_CFLAGS="$CFLAGS"
6075 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6076 _define_flag=""
6077 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080
6081#include <stdlib.h>
6082#include <stdio.h>
6083int main(int argc, char **argv) {
6084 /* Some math to catch -ftrapv problems in the toolchain */
6085 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6086 float l = i * 2.1;
6087 double m = l / 0.5;
6088 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6089 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6090 exit(0);
6091}
6092
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095
6096if `grep -i "unrecognized option" conftest.err >/dev/null`
6097then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100 CFLAGS="$saved_CFLAGS"
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103$as_echo "yes" >&6; }
6104 CFLAGS="$saved_CFLAGS $_define_flag"
6105fi
6106else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109 CFLAGS="$saved_CFLAGS"
6110
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113}
6114 {
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6116$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6117 saved_CFLAGS="$CFLAGS"
6118 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6119 _define_flag=""
6120 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123
6124#include <stdlib.h>
6125#include <stdio.h>
6126int main(int argc, char **argv) {
6127 /* Some math to catch -ftrapv problems in the toolchain */
6128 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6129 float l = i * 2.1;
6130 double m = l / 0.5;
6131 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6132 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6133 exit(0);
6134}
6135
6136_ACEOF
6137if ac_fn_c_try_compile "$LINENO"; then :
6138
6139if `grep -i "unrecognized option" conftest.err >/dev/null`
6140then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143 CFLAGS="$saved_CFLAGS"
6144else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146$as_echo "yes" >&6; }
6147 CFLAGS="$saved_CFLAGS $_define_flag"
6148fi
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152 CFLAGS="$saved_CFLAGS"
6153
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156}
6157 if test "x$use_toolchain_hardening" = "x1"; then
6158 {
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6160$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6161 saved_LDFLAGS="$LDFLAGS"
6162 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6163 _define_flag=""
6164 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h. */
6167
6168#include <stdlib.h>
6169#include <stdio.h>
6170int main(int argc, char **argv) {
6171 /* Some math to catch -ftrapv problems in the toolchain */
6172 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6173 float l = i * 2.1;
6174 double m = l / 0.5;
6175 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6176 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6177 exit(0);
6178}
6179
6180_ACEOF
6181if ac_fn_c_try_link "$LINENO"; then :
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183$as_echo "yes" >&6; }
6184 LDFLAGS="$saved_LDFLAGS $_define_flag"
6185else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188 LDFLAGS="$saved_LDFLAGS"
6189
6190fi
6191rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193}
6194 {
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6196$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6197 saved_LDFLAGS="$LDFLAGS"
6198 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6199 _define_flag=""
6200 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h. */
6203
6204#include <stdlib.h>
6205#include <stdio.h>
6206int main(int argc, char **argv) {
6207 /* Some math to catch -ftrapv problems in the toolchain */
6208 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6209 float l = i * 2.1;
6210 double m = l / 0.5;
6211 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6212 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6213 exit(0);
6214}
6215
6216_ACEOF
6217if ac_fn_c_try_link "$LINENO"; then :
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219$as_echo "yes" >&6; }
6220 LDFLAGS="$saved_LDFLAGS $_define_flag"
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224 LDFLAGS="$saved_LDFLAGS"
6225
6226fi
6227rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229}
6230 {
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6232$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6233 saved_LDFLAGS="$LDFLAGS"
6234 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6235 _define_flag=""
6236 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239
6240#include <stdlib.h>
6241#include <stdio.h>
6242int main(int argc, char **argv) {
6243 /* Some math to catch -ftrapv problems in the toolchain */
6244 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6245 float l = i * 2.1;
6246 double m = l / 0.5;
6247 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6248 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6249 exit(0);
6250}
6251
6252_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then :
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6255$as_echo "yes" >&6; }
6256 LDFLAGS="$saved_LDFLAGS $_define_flag"
6257else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260 LDFLAGS="$saved_LDFLAGS"
6261
6262fi
6263rm -f core conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265}
6266 # NB. -ftrapv expects certain support functions to be present in
6267 # the compiler library (libgcc or similar) to detect integer operations
6268 # that can overflow. We must check that the result of enabling it
6269 # actually links. The test program compiled/linked includes a number
6270 # of integer operations that should exercise this.
6271 {
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6273$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6274 saved_CFLAGS="$CFLAGS"
6275 CFLAGS="$CFLAGS $WERROR -ftrapv"
6276 _define_flag=""
6277 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h. */
6280
6281#include <stdlib.h>
6282#include <stdio.h>
6283int main(int argc, char **argv) {
6284 /* Some math to catch -ftrapv problems in the toolchain */
6285 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6286 float l = i * 2.1;
6287 double m = l / 0.5;
6288 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6289 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6290 exit(0);
6291}
6292
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295
6296if `grep -i "unrecognized option" conftest.err >/dev/null`
6297then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299$as_echo "no" >&6; }
6300 CFLAGS="$saved_CFLAGS"
6301else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303$as_echo "yes" >&6; }
6304 CFLAGS="$saved_CFLAGS $_define_flag"
6305fi
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309 CFLAGS="$saved_CFLAGS"
6310
6311fi
6312rm -f core conftest.err conftest.$ac_objext \
6313 conftest$ac_exeext conftest.$ac_ext
6314}
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6317$as_echo_n "checking gcc version... " >&6; }
6318 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6319 case $GCC_VER in
6320 1.*) no_attrib_nonnull=1 ;;
6321 2.8* | 2.9*)
6322 no_attrib_nonnull=1
6323 ;;
6324 2.*) no_attrib_nonnull=1 ;;
6325 *) ;;
6326 esac
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6328$as_echo "$GCC_VER" >&6; }
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6331$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6332 saved_CFLAGS="$CFLAGS"
6333 CFLAGS="$CFLAGS -fno-builtin-memset"
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336 #include <string.h>
6337int
6338main ()
6339{
6340 char b[10]; memset(b, 0, sizeof(b));
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345if ac_fn_c_try_link "$LINENO"; then :
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6347$as_echo "yes" >&6; }
6348else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351 CFLAGS="$saved_CFLAGS"
6352
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356
6357 # -fstack-protector-all doesn't always work for some GCC versions
6358 # and/or platforms, so we test if we can. If it's not supported
6359 # on a given platform gcc will emit a warning so we use -Werror.
6360 if test "x$use_stack_protector" = "x1"; then
6361 for t in -fstack-protector-strong -fstack-protector-all \
6362 -fstack-protector; do
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6364$as_echo_n "checking if $CC supports $t... " >&6; }
6365 saved_CFLAGS="$CFLAGS"
6366 saved_LDFLAGS="$LDFLAGS"
6367 CFLAGS="$CFLAGS $t -Werror"
6368 LDFLAGS="$LDFLAGS $t -Werror"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371 #include <stdio.h>
6372int
6373main ()
6374{
6375
6376 char x[256];
6377 snprintf(x, sizeof(x), "XXX");
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385$as_echo "yes" >&6; }
6386 CFLAGS="$saved_CFLAGS $t"
6387 LDFLAGS="$saved_LDFLAGS $t"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6389$as_echo_n "checking if $t works... " >&6; }
6390 if test "$cross_compiling" = yes; then :
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6392$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6393 break
6394
6395else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h. */
6398 #include <stdio.h>
6399int
6400main ()
6401{
6402
6403 char x[256];
6404 snprintf(x, sizeof(x), "XXX");
6405
6406 ;
6407 return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_run "$LINENO"; then :
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6412$as_echo "yes" >&6; }
6413 break
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420fi
6421
6422
6423else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426
6427fi
6428rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6430 CFLAGS="$saved_CFLAGS"
6431 LDFLAGS="$saved_LDFLAGS"
6432 done
6433 fi
6434
6435 if test -z "$have_llong_max"; then
6436 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6437 unset ac_cv_have_decl_LLONG_MAX
6438 saved_CFLAGS="$CFLAGS"
6439 CFLAGS="$CFLAGS -std=gnu99"
6440 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6441
6442"
6443if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6444 have_llong_max=1
6445else
6446 CFLAGS="$saved_CFLAGS"
6447fi
6448
6449 fi
6450fi
6451
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6453$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h. */
6456
6457#include <stdlib.h>
6458__attribute__((__unused__)) static void foo(void){return;}
6459int
6460main ()
6461{
6462 exit(0);
6463 ;
6464 return 0;
6465}
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469$as_echo "yes" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473
6474$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6475
6476
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480if test "x$no_attrib_nonnull" != "x1" ; then
6481
6482$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6483
6484fi
6485
6486
6487# Check whether --with-rpath was given.
6488if test "${with_rpath+set}" = set; then :
6489 withval=$with_rpath;
6490 if test "x$withval" = "xno" ; then
6491 need_dash_r=""
6492 fi
6493 if test "x$withval" = "xyes" ; then
6494 need_dash_r=1
6495 fi
6496
6497
6498fi
6499
6500
6501# Allow user to specify flags
6502
6503# Check whether --with-cflags was given.
6504if test "${with_cflags+set}" = set; then :
6505 withval=$with_cflags;
6506 if test -n "$withval" && test "x$withval" != "xno" && \
6507 test "x${withval}" != "xyes"; then
6508 CFLAGS="$CFLAGS $withval"
6509 fi
6510
6511
6512fi
6513
6514
6515# Check whether --with-cppflags was given.
6516if test "${with_cppflags+set}" = set; then :
6517 withval=$with_cppflags;
6518 if test -n "$withval" && test "x$withval" != "xno" && \
6519 test "x${withval}" != "xyes"; then
6520 CPPFLAGS="$CPPFLAGS $withval"
6521 fi
6522
6523
6524fi
6525
6526
6527# Check whether --with-ldflags was given.
6528if test "${with_ldflags+set}" = set; then :
6529 withval=$with_ldflags;
6530 if test -n "$withval" && test "x$withval" != "xno" && \
6531 test "x${withval}" != "xyes"; then
6532 LDFLAGS="$LDFLAGS $withval"
6533 fi
6534
6535
6536fi
6537
6538
6539# Check whether --with-libs was given.
6540if test "${with_libs+set}" = set; then :
6541 withval=$with_libs;
6542 if test -n "$withval" && test "x$withval" != "xno" && \
6543 test "x${withval}" != "xyes"; then
6544 LIBS="$LIBS $withval"
6545 fi
6546
6547
6548fi
6549
6550
6551# Check whether --with-Werror was given.
6552if test "${with_Werror+set}" = set; then :
6553 withval=$with_Werror;
6554 if test -n "$withval" && test "x$withval" != "xno"; then
6555 werror_flags="-Werror"
6556 if test "x${withval}" != "xyes"; then
6557 werror_flags="$withval"
6558 fi
6559 fi
6560
6561
6562fi
6563
6564
6565for ac_header in \
6566 blf.h \
6567 bstring.h \
6568 crypt.h \
6569 crypto/sha2.h \
6570 dirent.h \
6571 endian.h \
6572 elf.h \
6573 features.h \
6574 fcntl.h \
6575 floatingpoint.h \
6576 getopt.h \
6577 glob.h \
6578 ia.h \
6579 iaf.h \
6580 inttypes.h \
6581 limits.h \
6582 locale.h \
6583 login.h \
6584 maillock.h \
6585 ndir.h \
6586 net/if_tun.h \
6587 netdb.h \
6588 netgroup.h \
6589 pam/pam_appl.h \
6590 paths.h \
6591 poll.h \
6592 pty.h \
6593 readpassphrase.h \
6594 rpc/types.h \
6595 security/pam_appl.h \
6596 sha2.h \
6597 shadow.h \
6598 stddef.h \
6599 stdint.h \
6600 string.h \
6601 strings.h \
6602 sys/audit.h \
6603 sys/bitypes.h \
6604 sys/bsdtty.h \
6605 sys/capability.h \
6606 sys/cdefs.h \
6607 sys/dir.h \
6608 sys/mman.h \
6609 sys/ndir.h \
6610 sys/poll.h \
6611 sys/prctl.h \
6612 sys/pstat.h \
6613 sys/select.h \
6614 sys/stat.h \
6615 sys/stream.h \
6616 sys/stropts.h \
6617 sys/strtio.h \
6618 sys/statvfs.h \
6619 sys/sysmacros.h \
6620 sys/time.h \
6621 sys/timers.h \
6622 time.h \
6623 tmpdir.h \
6624 ttyent.h \
6625 ucred.h \
6626 unistd.h \
6627 usersec.h \
6628 util.h \
6629 utime.h \
6630 utmp.h \
6631 utmpx.h \
6632 vis.h \
6633
6634do :
6635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6638 cat >>confdefs.h <<_ACEOF
6639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640_ACEOF
6641
6642fi
6643
6644done
6645
6646
6647# lastlog.h requires sys/time.h to be included first on Solaris
6648for ac_header in lastlog.h
6649do :
6650 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6651#ifdef HAVE_SYS_TIME_H
6652# include <sys/time.h>
6653#endif
6654
6655"
6656if test "x$ac_cv_header_lastlog_h" = xyes; then :
6657 cat >>confdefs.h <<_ACEOF
6658#define HAVE_LASTLOG_H 1
6659_ACEOF
6660
6661fi
6662
6663done
6664
6665
6666# sys/ptms.h requires sys/stream.h to be included first on Solaris
6667for ac_header in sys/ptms.h
6668do :
6669 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6670#ifdef HAVE_SYS_STREAM_H
6671# include <sys/stream.h>
6672#endif
6673
6674"
6675if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677#define HAVE_SYS_PTMS_H 1
6678_ACEOF
6679
6680fi
6681
6682done
6683
6684
6685# login_cap.h requires sys/types.h on NetBSD
6686for ac_header in login_cap.h
6687do :
6688 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6689#include <sys/types.h>
6690
6691"
6692if test "x$ac_cv_header_login_cap_h" = xyes; then :
6693 cat >>confdefs.h <<_ACEOF
6694#define HAVE_LOGIN_CAP_H 1
6695_ACEOF
6696
6697fi
6698
6699done
6700
6701
6702# older BSDs need sys/param.h before sys/mount.h
6703for ac_header in sys/mount.h
6704do :
6705 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6706#include <sys/param.h>
6707
6708"
6709if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6710 cat >>confdefs.h <<_ACEOF
6711#define HAVE_SYS_MOUNT_H 1
6712_ACEOF
6713
6714fi
6715
6716done
6717
6718
6719# Android requires sys/socket.h to be included before sys/un.h
6720for ac_header in sys/un.h
6721do :
6722 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6723#include <sys/types.h>
6724#include <sys/socket.h>
6725
6726"
6727if test "x$ac_cv_header_sys_un_h" = xyes; then :
6728 cat >>confdefs.h <<_ACEOF
6729#define HAVE_SYS_UN_H 1
6730_ACEOF
6731
6732fi
6733
6734done
6735
6736
6737# Messages for features tested for in target-specific section
6738SIA_MSG="no"
6739SPC_MSG="no"
6740SP_MSG="no"
6741
6742# Check for some target-specific stuff
6743case "$host" in
6744*-*-aix*)
6745 # Some versions of VAC won't allow macro redefinitions at
6746 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6747 # particularly with older versions of vac or xlc.
6748 # It also throws errors about null macro argments, but these are
6749 # not fatal.
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6751$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h. */
6754
6755#define testmacro foo
6756#define testmacro bar
6757int
6758main ()
6759{
6760 exit(0);
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_c_try_compile "$LINENO"; then :
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6767$as_echo "yes" >&6; }
6768else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6772 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6773 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6774 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6775
6776
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6781$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6782 if (test -z "$blibpath"); then
6783 blibpath="/usr/lib:/lib"
6784 fi
6785 saved_LDFLAGS="$LDFLAGS"
6786 if test "$GCC" = "yes"; then
6787 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6788 else
6789 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6790 fi
6791 for tryflags in $flags ;do
6792 if (test -z "$blibflags"); then
6793 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h. */
6796
6797int
6798main ()
6799{
6800
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_link "$LINENO"; then :
6806 blibflags=$tryflags
6807fi
6808rm -f core conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811 done
6812 if (test -z "$blibflags"); then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6814$as_echo "not found" >&6; }
6815 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6818$as_echo "$blibflags" >&6; }
6819 fi
6820 LDFLAGS="$saved_LDFLAGS"
6821 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6822if test "x$ac_cv_func_authenticate" = xyes; then :
6823
6824$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6825
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6828$as_echo_n "checking for authenticate in -ls... " >&6; }
6829if ${ac_cv_lib_s_authenticate+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831else
6832 ac_check_lib_save_LIBS=$LIBS
6833LIBS="-ls $LIBS"
6834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837/* Override any GCC internal prototype to avoid an error.
6838 Use char because int might match the return type of a GCC
6839 builtin and then its argument prototype would still apply. */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843char authenticate ();
6844int
6845main ()
6846{
6847return authenticate ();
6848 ;
6849 return 0;
6850}
6851_ACEOF
6852if ac_fn_c_try_link "$LINENO"; then :
6853 ac_cv_lib_s_authenticate=yes
6854else
6855 ac_cv_lib_s_authenticate=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859LIBS=$ac_check_lib_save_LIBS
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6862$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6863if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6864 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6865
6866 LIBS="$LIBS -ls"
6867
6868fi
6869
6870
6871fi
6872
6873 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6874"
6875if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6876 ac_have_decl=1
6877else
6878 ac_have_decl=0
6879fi
6880
6881cat >>confdefs.h <<_ACEOF
6882#define HAVE_DECL_AUTHENTICATE $ac_have_decl
6883_ACEOF
6884ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6885"
6886if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6887 ac_have_decl=1
6888else
6889 ac_have_decl=0
6890fi
6891
6892cat >>confdefs.h <<_ACEOF
6893#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6894_ACEOF
6895ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6896"
6897if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6898 ac_have_decl=1
6899else
6900 ac_have_decl=0
6901fi
6902
6903cat >>confdefs.h <<_ACEOF
6904#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6905_ACEOF
6906ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6907"
6908if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6909 ac_have_decl=1
6910else
6911 ac_have_decl=0
6912fi
6913
6914cat >>confdefs.h <<_ACEOF
6915#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6916_ACEOF
6917ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6918"
6919if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6920 ac_have_decl=1
6921else
6922 ac_have_decl=0
6923fi
6924
6925cat >>confdefs.h <<_ACEOF
6926#define HAVE_DECL_SETAUTHDB $ac_have_decl
6927_ACEOF
6928
6929 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6930
6931"
6932if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6933 ac_have_decl=1
6934else
6935 ac_have_decl=0
6936fi
6937
6938cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED $ac_have_decl
6940_ACEOF
6941if test $ac_have_decl = 1; then :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6943$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h. */
6946 #include <usersec.h>
6947int
6948main ()
6949{
6950 (void)loginfailed("user","host","tty",0);
6951 ;
6952 return 0;
6953}
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then :
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6957$as_echo "yes" >&6; }
6958
6959$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6960
6961else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964
6965fi
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967fi
6968
6969 for ac_func in getgrset setauthdb
6970do :
6971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6974 cat >>confdefs.h <<_ACEOF
6975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976_ACEOF
6977
6978fi
6979done
6980
6981 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6982 #include <fcntl.h>
6983
6984"
6985if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6986
6987$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6988
6989fi
6990
6991 check_for_aix_broken_getaddrinfo=1
6992
6993$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6994
6995
6996$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6997
6998
6999$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7000
7001
7002$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7003
7004
7005$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7006
7007
7008$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7009
7010
7011$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7012
7013
7014$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7015
7016
7017$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7018
7019
7020$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7021
7022 ;;
7023*-*-android*)
7024
7025$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7026
7027
7028$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7029
7030 ;;
7031*-*-cygwin*)
7032 check_for_libcrypt_later=1
7033 LIBS="$LIBS /usr/lib/textreadmode.o"
7034
7035$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7036
7037
7038$as_echo "#define USE_PIPES 1" >>confdefs.h
7039
7040
7041$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7042
7043
7044$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7045
7046
7047$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
7048
7049
7050$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7051
7052
7053$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7054
7055
7056$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7057
7058 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7059 # reasons which cause compile warnings, so we disable those warnings.
7060 {
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7062$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7063 saved_CFLAGS="$CFLAGS"
7064 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7065 _define_flag=""
7066 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069
7070#include <stdlib.h>
7071#include <stdio.h>
7072int main(int argc, char **argv) {
7073 /* Some math to catch -ftrapv problems in the toolchain */
7074 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7075 float l = i * 2.1;
7076 double m = l / 0.5;
7077 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7078 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7079 exit(0);
7080}
7081
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084
7085if `grep -i "unrecognized option" conftest.err >/dev/null`
7086then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089 CFLAGS="$saved_CFLAGS"
7090else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7092$as_echo "yes" >&6; }
7093 CFLAGS="$saved_CFLAGS $_define_flag"
7094fi
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098 CFLAGS="$saved_CFLAGS"
7099
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102}
7103 ;;
7104*-*-dgux*)
7105
7106$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7107
7108 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7109
7110 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7111
7112 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7113
7114 ;;
7115*-*-darwin*)
7116 use_pie=auto
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7118$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7119 if test "$cross_compiling" = yes; then :
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7121$as_echo "assume it is working" >&6; }
7122else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h. */
7125 #include <mach-o/dyld.h>
7126main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7127 exit(0);
7128 else
7129 exit(1);
7130}
7131
7132_ACEOF
7133if ac_fn_c_try_run "$LINENO"; then :
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7135$as_echo "working" >&6; }
7136else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7138$as_echo "buggy" >&6; }
7139
7140$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7141
7142
7143fi
7144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7145 conftest.$ac_objext conftest.beam conftest.$ac_ext
7146fi
7147
7148 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7149
7150 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7151
7152 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7153
7154
7155$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7156
7157
7158cat >>confdefs.h <<_ACEOF
7159#define BIND_8_COMPAT 1
7160_ACEOF
7161
7162
7163$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7164
7165
7166$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7167
7168
7169$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7170
7171
7172 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7173if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7174
7175else
7176
7177$as_echo "#define AU_IPv4 0" >>confdefs.h
7178
7179 #include <bsm/audit.h>
7180
7181$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7182
7183
7184fi
7185
7186
7187$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7188
7189 for ac_func in sandbox_init
7190do :
7191 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7192if test "x$ac_cv_func_sandbox_init" = xyes; then :
7193 cat >>confdefs.h <<_ACEOF
7194#define HAVE_SANDBOX_INIT 1
7195_ACEOF
7196
7197fi
7198done
7199
7200 for ac_header in sandbox.h
7201do :
7202 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7203if test "x$ac_cv_header_sandbox_h" = xyes; then :
7204 cat >>confdefs.h <<_ACEOF
7205#define HAVE_SANDBOX_H 1
7206_ACEOF
7207
7208fi
7209
7210done
7211
7212 ;;
7213*-*-dragonfly*)
7214 SSHDLIBS="$SSHDLIBS -lcrypt"
7215 TEST_MALLOC_OPTIONS="AFGJPRX"
7216 ;;
7217*-*-haiku*)
7218 LIBS="$LIBS -lbsd "
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7220$as_echo_n "checking for socket in -lnetwork... " >&6; }
7221if ${ac_cv_lib_network_socket+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223else
7224 ac_check_lib_save_LIBS=$LIBS
7225LIBS="-lnetwork $LIBS"
7226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h. */
7228
7229/* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
7232#ifdef __cplusplus
7233extern "C"
7234#endif
7235char socket ();
7236int
7237main ()
7238{
7239return socket ();
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_c_try_link "$LINENO"; then :
7245 ac_cv_lib_network_socket=yes
7246else
7247 ac_cv_lib_network_socket=no
7248fi
7249rm -f core conftest.err conftest.$ac_objext \
7250 conftest$ac_exeext conftest.$ac_ext
7251LIBS=$ac_check_lib_save_LIBS
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7254$as_echo "$ac_cv_lib_network_socket" >&6; }
7255if test "x$ac_cv_lib_network_socket" = xyes; then :
7256 cat >>confdefs.h <<_ACEOF
7257#define HAVE_LIBNETWORK 1
7258_ACEOF
7259
7260 LIBS="-lnetwork $LIBS"
7261
7262fi
7263
7264 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7265
7266 MANTYPE=man
7267 ;;
7268*-*-hpux*)
7269 # first we define all of the options common to all HP-UX releases
7270 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7271 IPADDR_IN_DISPLAY=yes
7272 $as_echo "#define USE_PIPES 1" >>confdefs.h
7273
7274
7275$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
7276
7277 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7278
7279
7280$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7281
7282 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7283
7284
7285$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7286
7287 maildir="/var/mail"
7288 LIBS="$LIBS -lsec"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7290$as_echo_n "checking for t_error in -lxnet... " >&6; }
7291if ${ac_cv_lib_xnet_t_error+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293else
7294 ac_check_lib_save_LIBS=$LIBS
7295LIBS="-lxnet $LIBS"
7296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h. */
7298
7299/* Override any GCC internal prototype to avoid an error.
7300 Use char because int might match the return type of a GCC
7301 builtin and then its argument prototype would still apply. */
7302#ifdef __cplusplus
7303extern "C"
7304#endif
7305char t_error ();
7306int
7307main ()
7308{
7309return t_error ();
7310 ;
7311 return 0;
7312}
7313_ACEOF
7314if ac_fn_c_try_link "$LINENO"; then :
7315 ac_cv_lib_xnet_t_error=yes
7316else
7317 ac_cv_lib_xnet_t_error=no
7318fi
7319rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
7321LIBS=$ac_check_lib_save_LIBS
7322fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7324$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7325if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7326 cat >>confdefs.h <<_ACEOF
7327#define HAVE_LIBXNET 1
7328_ACEOF
7329
7330 LIBS="-lxnet $LIBS"
7331
7332else
7333 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7334fi
7335
7336
7337 # next, we define all of the options specific to major releases
7338 case "$host" in
7339 *-*-hpux10*)
7340 if test -z "$GCC"; then
7341 CFLAGS="$CFLAGS -Ae"
7342 fi
7343 ;;
7344 *-*-hpux11*)
7345
7346$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7347
7348
7349$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7350
7351
7352$as_echo "#define USE_BTMP 1" >>confdefs.h
7353
7354 check_for_hpux_broken_getaddrinfo=1
7355 check_for_conflicting_getspnam=1
7356 ;;
7357 esac
7358
7359 # lastly, we define options specific to minor releases
7360 case "$host" in
7361 *-*-hpux10.26)
7362
7363$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7364
7365 disable_ptmx_check=yes
7366 LIBS="$LIBS -lsecpw"
7367 ;;
7368 esac
7369 ;;
7370*-*-irix5*)
7371 PATH="$PATH:/usr/etc"
7372
7373$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7374
7375 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7376
7377 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7378
7379 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7380
7381
7382$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7383
7384 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7385
7386 ;;
7387*-*-irix6*)
7388 PATH="$PATH:/usr/etc"
7389
7390$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7391
7392
7393$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7394
7395
7396$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7397
7398 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7399if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7400
7401$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7402
7403fi
7404
7405 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7406
7407 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7408
7409 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7410
7411 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7412
7413
7414$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7415
7416 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7417
7418 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7419
7420 ;;
7421*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7422 check_for_libcrypt_later=1
7423 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7424
7425 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7426
7427 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7428
7429
7430$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7431
7432
7433$as_echo "#define USE_BTMP 1" >>confdefs.h
7434
7435 ;;
7436*-*-linux*)
7437 no_dev_ptmx=1
7438 use_pie=auto
7439 check_for_libcrypt_later=1
7440 check_for_openpty_ctty_bug=1
7441
7442$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7443
7444
7445$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7446
7447 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7448
7449
7450$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7451
7452
7453$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7454
7455 $as_echo "#define USE_BTMP 1" >>confdefs.h
7456
7457
7458$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7459
7460 inet6_default_4in6=yes
7461 case `uname -r` in
7462 1.*|2.0.*)
7463
7464$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7465
7466 ;;
7467 esac
7468 # tun(4) forwarding compat code
7469 for ac_header in linux/if_tun.h
7470do :
7471 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7472if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7473 cat >>confdefs.h <<_ACEOF
7474#define HAVE_LINUX_IF_TUN_H 1
7475_ACEOF
7476
7477fi
7478
7479done
7480
7481 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7482
7483$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7484
7485
7486$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7487
7488
7489$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7490
7491 fi
7492 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7493do :
7494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7496"
7497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7498 cat >>confdefs.h <<_ACEOF
7499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500_ACEOF
7501
7502fi
7503
7504done
7505
7506 for ac_func in prctl
7507do :
7508 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
7509if test "x$ac_cv_func_prctl" = xyes; then :
7510 cat >>confdefs.h <<_ACEOF
7511#define HAVE_PRCTL 1
7512_ACEOF
7513
7514fi
7515done
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7518$as_echo_n "checking for seccomp architecture... " >&6; }
7519 seccomp_audit_arch=
7520 case "$host" in
7521 x86_64-*)
7522 seccomp_audit_arch=AUDIT_ARCH_X86_64
7523 ;;
7524 i*86-*)
7525 seccomp_audit_arch=AUDIT_ARCH_I386
7526 ;;
7527 arm*-*)
7528 seccomp_audit_arch=AUDIT_ARCH_ARM
7529 ;;
7530 esac
7531 if test "x$seccomp_audit_arch" != "x" ; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7533$as_echo "\"$seccomp_audit_arch\"" >&6; }
7534
7535cat >>confdefs.h <<_ACEOF
7536#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7537_ACEOF
7538
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7541$as_echo "architecture not supported" >&6; }
7542 fi
7543 ;;
7544mips-sony-bsd|mips-sony-newsos4)
7545
7546$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7547
7548 SONY=1
7549 ;;
7550*-*-netbsd*)
7551 check_for_libcrypt_before=1
7552 if test "x$withval" != "xno" ; then
7553 need_dash_r=1
7554 fi
7555
7556$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7557
7558 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7559if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7560
7561else
7562
7563$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7564
7565fi
7566
7567
7568
7569$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7570
7571 TEST_MALLOC_OPTIONS="AJRX"
7572
7573$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7574
7575
7576$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7577
7578 ;;
7579*-*-freebsd*)
7580 check_for_libcrypt_later=1
7581
7582$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7583
7584
7585$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7586
7587 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7588if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7589
7590else
7591
7592$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7593
7594fi
7595
7596
7597
7598$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7599
7600
7601$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7602
7603 TEST_MALLOC_OPTIONS="AJRX"
7604 # Preauth crypto occasionally uses file descriptors for crypto offload
7605 # and will crash if they cannot be opened.
7606
7607$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7608
7609 ;;
7610*-*-bsdi*)
7611 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7612
7613 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7614
7615 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7616
7617 ;;
7618*-next-*)
7619 conf_lastlog_location="/usr/adm/lastlog"
7620 conf_utmp_location=/etc/utmp
7621 conf_wtmp_location=/usr/adm/wtmp
7622 maildir=/usr/spool/mail
7623
7624$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7625
7626 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7627
7628 $as_echo "#define USE_PIPES 1" >>confdefs.h
7629
7630
7631$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7632
7633 ;;
7634*-*-openbsd*)
7635 use_pie=auto
7636
7637$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7638
7639
7640$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7641
7642
7643$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7644
7645
7646$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7647
7648 TEST_MALLOC_OPTIONS="AFGJPRX"
7649 ;;
7650*-*-solaris*)
7651 if test "x$withval" != "xno" ; then
7652 need_dash_r=1
7653 fi
7654 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7655
7656 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7657
7658
7659$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7660
7661 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7662
7663
7664$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7665
7666 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7667
7668 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7669
7670$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7671
7672
7673$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7674
7675
7676$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7677
7678 external_path_file=/etc/default/login
7679 # hardwire lastlog location (can't detect it on some versions)
7680 conf_lastlog_location="/var/adm/lastlog"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7682$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7683 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7684 if test "$sol2ver" -ge 8; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686$as_echo "yes" >&6; }
7687 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7688
7689
7690$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7691
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695 fi
7696
7697# Check whether --with-solaris-contracts was given.
7698if test "${with_solaris_contracts+set}" = set; then :
7699 withval=$with_solaris_contracts;
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7701$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7702if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704else
7705 ac_check_lib_save_LIBS=$LIBS
7706LIBS="-lcontract $LIBS"
7707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h. */
7709
7710/* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713#ifdef __cplusplus
7714extern "C"
7715#endif
7716char ct_tmpl_activate ();
7717int
7718main ()
7719{
7720return ct_tmpl_activate ();
7721 ;
7722 return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_contract_ct_tmpl_activate=yes
7727else
7728 ac_cv_lib_contract_ct_tmpl_activate=no
7729fi
7730rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732LIBS=$ac_check_lib_save_LIBS
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7735$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7736if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7737
7738$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7739
7740 SSHDLIBS="$SSHDLIBS -lcontract"
7741 SPC_MSG="yes"
7742fi
7743
7744
7745fi
7746
7747
7748# Check whether --with-solaris-projects was given.
7749if test "${with_solaris_projects+set}" = set; then :
7750 withval=$with_solaris_projects;
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7752$as_echo_n "checking for setproject in -lproject... " >&6; }
7753if ${ac_cv_lib_project_setproject+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755else
7756 ac_check_lib_save_LIBS=$LIBS
7757LIBS="-lproject $LIBS"
7758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h. */
7760
7761/* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7764#ifdef __cplusplus
7765extern "C"
7766#endif
7767char setproject ();
7768int
7769main ()
7770{
7771return setproject ();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then :
7777 ac_cv_lib_project_setproject=yes
7778else
7779 ac_cv_lib_project_setproject=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783LIBS=$ac_check_lib_save_LIBS
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7786$as_echo "$ac_cv_lib_project_setproject" >&6; }
7787if test "x$ac_cv_lib_project_setproject" = xyes; then :
7788
7789$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7790
7791 SSHDLIBS="$SSHDLIBS -lproject"
7792 SP_MSG="yes"
7793fi
7794
7795
7796fi
7797
7798 TEST_SHELL=$SHELL # let configure find us a capable shell
7799 ;;
7800*-*-sunos4*)
7801 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7802 for ac_func in getpwanam
7803do :
7804 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7805if test "x$ac_cv_func_getpwanam" = xyes; then :
7806 cat >>confdefs.h <<_ACEOF
7807#define HAVE_GETPWANAM 1
7808_ACEOF
7809
7810fi
7811done
7812
7813 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7814
7815 conf_utmp_location=/etc/utmp
7816 conf_wtmp_location=/var/adm/wtmp
7817 conf_lastlog_location=/var/adm/lastlog
7818 $as_echo "#define USE_PIPES 1" >>confdefs.h
7819
7820 ;;
7821*-ncr-sysv*)
7822 LIBS="$LIBS -lc89"
7823 $as_echo "#define USE_PIPES 1" >>confdefs.h
7824
7825 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7826
7827 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7828
7829 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7830
7831 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7832
7833 ;;
7834*-sni-sysv*)
7835 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7837$as_echo_n "checking for dlsym in -ldl... " >&6; }
7838if ${ac_cv_lib_dl_dlsym+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840else
7841 ac_check_lib_save_LIBS=$LIBS
7842LIBS="-ldl $LIBS"
7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845
7846/* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849#ifdef __cplusplus
7850extern "C"
7851#endif
7852char dlsym ();
7853int
7854main ()
7855{
7856return dlsym ();
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862 ac_cv_lib_dl_dlsym=yes
7863else
7864 ac_cv_lib_dl_dlsym=no
7865fi
7866rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868LIBS=$ac_check_lib_save_LIBS
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7871$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7872if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7873 cat >>confdefs.h <<_ACEOF
7874#define HAVE_LIBDL 1
7875_ACEOF
7876
7877 LIBS="-ldl $LIBS"
7878
7879fi
7880
7881 # -lresolv needs to be at the end of LIBS or DNS lookups break
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7883$as_echo_n "checking for res_query in -lresolv... " >&6; }
7884if ${ac_cv_lib_resolv_res_query+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886else
7887 ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lresolv $LIBS"
7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h. */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char res_query ();
7899int
7900main ()
7901{
7902return res_query ();
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908 ac_cv_lib_resolv_res_query=yes
7909else
7910 ac_cv_lib_resolv_res_query=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7917$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7918if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7919 LIBS="$LIBS -lresolv"
7920fi
7921
7922 IPADDR_IN_DISPLAY=yes
7923 $as_echo "#define USE_PIPES 1" >>confdefs.h
7924
7925 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7926
7927 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7928
7929 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7930
7931 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7932
7933 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7934
7935 external_path_file=/etc/default/login
7936 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7937 # Attention: always take care to bind libsocket and libnsl before libc,
7938 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7939 ;;
7940# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7941*-*-sysv4.2*)
7942 $as_echo "#define USE_PIPES 1" >>confdefs.h
7943
7944 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7945
7946 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7947
7948 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7949
7950
7951$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7952
7953 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7954
7955 TEST_SHELL=$SHELL # let configure find us a capable shell
7956 ;;
7957# UnixWare 7.x, OpenUNIX 8
7958*-*-sysv5*)
7959 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7960
7961$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7962
7963 $as_echo "#define USE_PIPES 1" >>confdefs.h
7964
7965 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7966
7967 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7968
7969 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7970
7971 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7972
7973 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7974
7975 TEST_SHELL=$SHELL # let configure find us a capable shell
7976 case "$host" in
7977 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7978 maildir=/var/spool/mail
7979
7980$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7981
7982 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7985$as_echo_n "checking for getluid in -lprot... " >&6; }
7986if ${ac_cv_lib_prot_getluid+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988else
7989 ac_check_lib_save_LIBS=$LIBS
7990LIBS="-lprot $LIBS"
7991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h. */
7993
7994/* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
7997#ifdef __cplusplus
7998extern "C"
7999#endif
8000char getluid ();
8001int
8002main ()
8003{
8004return getluid ();
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_link "$LINENO"; then :
8010 ac_cv_lib_prot_getluid=yes
8011else
8012 ac_cv_lib_prot_getluid=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016LIBS=$ac_check_lib_save_LIBS
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8019$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8020if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8021 LIBS="$LIBS -lprot"
8022 for ac_func in getluid setluid
8023do :
8024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8026if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8027 cat >>confdefs.h <<_ACEOF
8028#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8029_ACEOF
8030
8031fi
8032done
8033
8034 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8035
8036 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8037
8038
8039fi
8040
8041 ;;
8042 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8043
8044 check_for_libcrypt_later=1
8045 ;;
8046 esac
8047 ;;
8048*-*-sysv*)
8049 ;;
8050# SCO UNIX and OEM versions of SCO UNIX
8051*-*-sco3.2v4*)
8052 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8053 ;;
8054# SCO OpenServer 5.x
8055*-*-sco3.2v5*)
8056 if test -z "$GCC"; then
8057 CFLAGS="$CFLAGS -belf"
8058 fi
8059 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8060 no_dev_ptmx=1
8061 $as_echo "#define USE_PIPES 1" >>confdefs.h
8062
8063 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8064
8065 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8066
8067 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8068
8069 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8070
8071 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8072
8073 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8074
8075 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8076
8077 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8078
8079 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8080
8081 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8082
8083 for ac_func in getluid setluid
8084do :
8085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8088 cat >>confdefs.h <<_ACEOF
8089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8090_ACEOF
8091
8092fi
8093done
8094
8095 MANTYPE=man
8096 TEST_SHELL=$SHELL # let configure find us a capable shell
8097 SKIP_DISABLE_LASTLOG_DEFINE=yes
8098 ;;
8099*-*-unicosmk*)
8100
8101$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8102
8103 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8104
8105 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8106
8107 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8108
8109 $as_echo "#define USE_PIPES 1" >>confdefs.h
8110
8111 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8112
8113 LDFLAGS="$LDFLAGS"
8114 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8115 MANTYPE=cat
8116 ;;
8117*-*-unicosmp*)
8118 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8119
8120 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8121
8122 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8123
8124 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8125
8126 $as_echo "#define USE_PIPES 1" >>confdefs.h
8127
8128 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8129
8130 LDFLAGS="$LDFLAGS"
8131 LIBS="$LIBS -lgen -lacid -ldb"
8132 MANTYPE=cat
8133 ;;
8134*-*-unicos*)
8135 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8136
8137 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8138
8139 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8140
8141 $as_echo "#define USE_PIPES 1" >>confdefs.h
8142
8143 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8144
8145 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8146
8147 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8148 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8149 MANTYPE=cat
8150 ;;
8151*-dec-osf*)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8153$as_echo_n "checking for Digital Unix SIA... " >&6; }
8154 no_osfsia=""
8155
8156# Check whether --with-osfsia was given.
8157if test "${with_osfsia+set}" = set; then :
8158 withval=$with_osfsia;
8159 if test "x$withval" = "xno" ; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8161$as_echo "disabled" >&6; }
8162 no_osfsia=1
8163 fi
8164
8165fi
8166
8167 if test -z "$no_osfsia" ; then
8168 if test -f /etc/sia/matrix.conf; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170$as_echo "yes" >&6; }
8171
8172$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8173
8174
8175$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8176
8177 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8178
8179 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8180 SIA_MSG="yes"
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
8184
8185$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8186
8187 fi
8188 fi
8189 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8190
8191 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8192
8193 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8194
8195 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8196
8197
8198$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8199
8200 ;;
8201
8202*-*-nto-qnx*)
8203 $as_echo "#define USE_PIPES 1" >>confdefs.h
8204
8205 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8206
8207 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8208
8209 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8210
8211
8212$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8213
8214 enable_etc_default_login=no # has incompatible /etc/default/login
8215 case "$host" in
8216 *-*-nto-qnx6*)
8217 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8218
8219 ;;
8220 esac
8221 ;;
8222
8223*-*-ultrix*)
8224
8225$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8226
8227
8228$as_echo "#define BROKEN_MMAP 1" >>confdefs.h
8229
8230 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8231
8232
8233$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8234
8235 ;;
8236
8237*-*-lynxos)
8238 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8239
8240$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8241
8242 ;;
8243esac
8244
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8246$as_echo_n "checking compiler and flags for sanity... " >&6; }
8247if test "$cross_compiling" = yes; then :
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8249$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8250
8251else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h. */
8254 #include <stdio.h>
8255int
8256main ()
8257{
8258 exit(0);
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_run "$LINENO"; then :
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265$as_echo "yes" >&6; }
8266else
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269$as_echo "no" >&6; }
8270 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8271
8272fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276
8277
8278# Checks for libraries.
8279ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
8280if test "x$ac_cv_func_yp_match" = xyes; then :
8281
8282else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
8284$as_echo_n "checking for yp_match in -lnsl... " >&6; }
8285if ${ac_cv_lib_nsl_yp_match+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287else
8288 ac_check_lib_save_LIBS=$LIBS
8289LIBS="-lnsl $LIBS"
8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292
8293/* Override any GCC internal prototype to avoid an error.
8294 Use char because int might match the return type of a GCC
8295 builtin and then its argument prototype would still apply. */
8296#ifdef __cplusplus
8297extern "C"
8298#endif
8299char yp_match ();
8300int
8301main ()
8302{
8303return yp_match ();
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_link "$LINENO"; then :
8309 ac_cv_lib_nsl_yp_match=yes
8310else
8311 ac_cv_lib_nsl_yp_match=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315LIBS=$ac_check_lib_save_LIBS
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
8318$as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
8319if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
8320 cat >>confdefs.h <<_ACEOF
8321#define HAVE_LIBNSL 1
8322_ACEOF
8323
8324 LIBS="-lnsl $LIBS"
8325
8326fi
8327
8328fi
8329
8330ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8331if test "x$ac_cv_func_setsockopt" = xyes; then :
8332
8333else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8335$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8336if ${ac_cv_lib_socket_setsockopt+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339 ac_check_lib_save_LIBS=$LIBS
8340LIBS="-lsocket $LIBS"
8341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343
8344/* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8347#ifdef __cplusplus
8348extern "C"
8349#endif
8350char setsockopt ();
8351int
8352main ()
8353{
8354return setsockopt ();
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359if ac_fn_c_try_link "$LINENO"; then :
8360 ac_cv_lib_socket_setsockopt=yes
8361else
8362 ac_cv_lib_socket_setsockopt=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366LIBS=$ac_check_lib_save_LIBS
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8369$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8370if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372#define HAVE_LIBSOCKET 1
8373_ACEOF
8374
8375 LIBS="-lsocket $LIBS"
8376
8377fi
8378
8379fi
8380
8381
8382for ac_func in dirname
8383do :
8384 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8385if test "x$ac_cv_func_dirname" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387#define HAVE_DIRNAME 1
8388_ACEOF
8389 for ac_header in libgen.h
8390do :
8391 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8392if test "x$ac_cv_header_libgen_h" = xyes; then :
8393 cat >>confdefs.h <<_ACEOF
8394#define HAVE_LIBGEN_H 1
8395_ACEOF
8396
8397fi
8398
8399done
8400
8401else
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8404$as_echo_n "checking for dirname in -lgen... " >&6; }
8405if ${ac_cv_lib_gen_dirname+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407else
8408 ac_check_lib_save_LIBS=$LIBS
8409LIBS="-lgen $LIBS"
8410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h. */
8412
8413/* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8416#ifdef __cplusplus
8417extern "C"
8418#endif
8419char dirname ();
8420int
8421main ()
8422{
8423return dirname ();
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_link "$LINENO"; then :
8429 ac_cv_lib_gen_dirname=yes
8430else
8431 ac_cv_lib_gen_dirname=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435LIBS=$ac_check_lib_save_LIBS
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8438$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8439if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8440
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8442$as_echo_n "checking for broken dirname... " >&6; }
8443if ${ac_cv_have_broken_dirname+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445else
8446
8447 save_LIBS="$LIBS"
8448 LIBS="$LIBS -lgen"
8449 if test "$cross_compiling" = yes; then :
8450 ac_cv_have_broken_dirname="no"
8451else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454
8455#include <libgen.h>
8456#include <string.h>
8457
8458int main(int argc, char **argv) {
8459 char *s, buf[32];
8460
8461 strncpy(buf,"/etc", 32);
8462 s = dirname(buf);
8463 if (!s || strncmp(s, "/", 32) != 0) {
8464 exit(1);
8465 } else {
8466 exit(0);
8467 }
8468}
8469
8470_ACEOF
8471if ac_fn_c_try_run "$LINENO"; then :
8472 ac_cv_have_broken_dirname="no"
8473else
8474 ac_cv_have_broken_dirname="yes"
8475fi
8476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8477 conftest.$ac_objext conftest.beam conftest.$ac_ext
8478fi
8479
8480 LIBS="$save_LIBS"
8481
8482fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8484$as_echo "$ac_cv_have_broken_dirname" >&6; }
8485 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8486 LIBS="$LIBS -lgen"
8487 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8488
8489 for ac_header in libgen.h
8490do :
8491 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8492if test "x$ac_cv_header_libgen_h" = xyes; then :
8493 cat >>confdefs.h <<_ACEOF
8494#define HAVE_LIBGEN_H 1
8495_ACEOF
8496
8497fi
8498
8499done
8500
8501 fi
8502
8503fi
8504
8505
8506fi
8507done
8508
8509
8510ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8511if test "x$ac_cv_func_getspnam" = xyes; then :
8512
8513else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8515$as_echo_n "checking for getspnam in -lgen... " >&6; }
8516if ${ac_cv_lib_gen_getspnam+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518else
8519 ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lgen $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h. */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char getspnam ();
8531int
8532main ()
8533{
8534return getspnam ();
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540 ac_cv_lib_gen_getspnam=yes
8541else
8542 ac_cv_lib_gen_getspnam=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8549$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8550if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8551 LIBS="$LIBS -lgen"
8552fi
8553
8554fi
8555
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8557$as_echo_n "checking for library containing basename... " >&6; }
8558if ${ac_cv_search_basename+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560else
8561 ac_func_search_save_LIBS=$LIBS
8562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char basename ();
8572int
8573main ()
8574{
8575return basename ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580for ac_lib in '' gen; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8583 else
8584 ac_res=-l$ac_lib
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8586 fi
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 ac_cv_search_basename=$ac_res
8589fi
8590rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext
8592 if ${ac_cv_search_basename+:} false; then :
8593 break
8594fi
8595done
8596if ${ac_cv_search_basename+:} false; then :
8597
8598else
8599 ac_cv_search_basename=no
8600fi
8601rm conftest.$ac_ext
8602LIBS=$ac_func_search_save_LIBS
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8605$as_echo "$ac_cv_search_basename" >&6; }
8606ac_res=$ac_cv_search_basename
8607if test "$ac_res" != no; then :
8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8609
8610$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8611
8612fi
8613
8614
8615
8616# Check whether --with-zlib was given.
8617if test "${with_zlib+set}" = set; then :
8618 withval=$with_zlib; if test "x$withval" = "xno" ; then
8619 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8620 elif test "x$withval" != "xyes"; then
8621 if test -d "$withval/lib"; then
8622 if test -n "${need_dash_r}"; then
8623 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8624 else
8625 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8626 fi
8627 else
8628 if test -n "${need_dash_r}"; then
8629 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8630 else
8631 LDFLAGS="-L${withval} ${LDFLAGS}"
8632 fi
8633 fi
8634 if test -d "$withval/include"; then
8635 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8636 else
8637 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8638 fi
8639 fi
8640
8641fi
8642
8643
8644ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8645if test "x$ac_cv_header_zlib_h" = xyes; then :
8646
8647else
8648 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8649fi
8650
8651
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8653$as_echo_n "checking for deflate in -lz... " >&6; }
8654if ${ac_cv_lib_z_deflate+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 ac_check_lib_save_LIBS=$LIBS
8658LIBS="-lz $LIBS"
8659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h. */
8661
8662/* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8665#ifdef __cplusplus
8666extern "C"
8667#endif
8668char deflate ();
8669int
8670main ()
8671{
8672return deflate ();
8673 ;
8674 return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_link "$LINENO"; then :
8678 ac_cv_lib_z_deflate=yes
8679else
8680 ac_cv_lib_z_deflate=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8687$as_echo "$ac_cv_lib_z_deflate" >&6; }
8688if test "x$ac_cv_lib_z_deflate" = xyes; then :
8689 cat >>confdefs.h <<_ACEOF
8690#define HAVE_LIBZ 1
8691_ACEOF
8692
8693 LIBS="-lz $LIBS"
8694
8695else
8696
8697 saved_CPPFLAGS="$CPPFLAGS"
8698 saved_LDFLAGS="$LDFLAGS"
8699 save_LIBS="$LIBS"
8700 if test -n "${need_dash_r}"; then
8701 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8702 else
8703 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8704 fi
8705 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8706 LIBS="$LIBS -lz"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h. */
8709
8710/* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8713#ifdef __cplusplus
8714extern "C"
8715#endif
8716char deflate ();
8717int
8718main ()
8719{
8720return deflate ();
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8727
8728else
8729
8730 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8731
8732
8733fi
8734rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736
8737
8738fi
8739
8740
8741
8742# Check whether --with-zlib-version-check was given.
8743if test "${with_zlib_version_check+set}" = set; then :
8744 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8745 zlib_check_nonfatal=1
8746 fi
8747
8748
8749fi
8750
8751
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8753$as_echo_n "checking for possibly buggy zlib... " >&6; }
8754if test "$cross_compiling" = yes; then :
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8756$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8757
8758else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h. */
8761
8762#include <stdio.h>
8763#include <stdlib.h>
8764#include <zlib.h>
8765
8766int
8767main ()
8768{
8769
8770 int a=0, b=0, c=0, d=0, n, v;
8771 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8772 if (n != 3 && n != 4)
8773 exit(1);
8774 v = a*1000000 + b*10000 + c*100 + d;
8775 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8776
8777 /* 1.1.4 is OK */
8778 if (a == 1 && b == 1 && c >= 4)
8779 exit(0);
8780
8781 /* 1.2.3 and up are OK */
8782 if (v >= 1020300)
8783 exit(0);
8784
8785 exit(2);
8786
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_run "$LINENO"; then :
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
8794else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8796$as_echo "yes" >&6; }
8797 if test -z "$zlib_check_nonfatal" ; then
8798 as_fn_error $? "*** zlib too old - check config.log ***
8799Your reported zlib version has known security problems. It's possible your
8800vendor has fixed these problems without changing the version number. If you
8801are sure this is the case, you can disable the check by running
8802\"./configure --without-zlib-version-check\".
8803If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8804See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8807$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8808 fi
8809
8810fi
8811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8812 conftest.$ac_objext conftest.beam conftest.$ac_ext
8813fi
8814
8815
8816ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8817if test "x$ac_cv_func_strcasecmp" = xyes; then :
8818
8819else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8821$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8822if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824else
8825 ac_check_lib_save_LIBS=$LIBS
8826LIBS="-lresolv $LIBS"
8827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h. */
8829
8830/* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833#ifdef __cplusplus
8834extern "C"
8835#endif
8836char strcasecmp ();
8837int
8838main ()
8839{
8840return strcasecmp ();
8841 ;
8842 return 0;
8843}
8844_ACEOF
8845if ac_fn_c_try_link "$LINENO"; then :
8846 ac_cv_lib_resolv_strcasecmp=yes
8847else
8848 ac_cv_lib_resolv_strcasecmp=no
8849fi
8850rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852LIBS=$ac_check_lib_save_LIBS
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8855$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8856if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8857 LIBS="$LIBS -lresolv"
8858fi
8859
8860
8861fi
8862
8863for ac_func in utimes
8864do :
8865 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8866if test "x$ac_cv_func_utimes" = xyes; then :
8867 cat >>confdefs.h <<_ACEOF
8868#define HAVE_UTIMES 1
8869_ACEOF
8870
8871else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8873$as_echo_n "checking for utimes in -lc89... " >&6; }
8874if ${ac_cv_lib_c89_utimes+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876else
8877 ac_check_lib_save_LIBS=$LIBS
8878LIBS="-lc89 $LIBS"
8879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h. */
8881
8882/* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888char utimes ();
8889int
8890main ()
8891{
8892return utimes ();
8893 ;
8894 return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then :
8898 ac_cv_lib_c89_utimes=yes
8899else
8900 ac_cv_lib_c89_utimes=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904LIBS=$ac_check_lib_save_LIBS
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8907$as_echo "$ac_cv_lib_c89_utimes" >&6; }
8908if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8909 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8910
8911 LIBS="$LIBS -lc89"
8912fi
8913
8914
8915fi
8916done
8917
8918
8919for ac_header in bsd/libutil.h libutil.h
8920do :
8921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8924 cat >>confdefs.h <<_ACEOF
8925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8926_ACEOF
8927
8928fi
8929
8930done
8931
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8933$as_echo_n "checking for library containing fmt_scaled... " >&6; }
8934if ${ac_cv_search_fmt_scaled+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936else
8937 ac_func_search_save_LIBS=$LIBS
8938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h. */
8940
8941/* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944#ifdef __cplusplus
8945extern "C"
8946#endif
8947char fmt_scaled ();
8948int
8949main ()
8950{
8951return fmt_scaled ();
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956for ac_lib in '' util bsd; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 fi
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_fmt_scaled=$ac_res
8965fi
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if ${ac_cv_search_fmt_scaled+:} false; then :
8969 break
8970fi
8971done
8972if ${ac_cv_search_fmt_scaled+:} false; then :
8973
8974else
8975 ac_cv_search_fmt_scaled=no
8976fi
8977rm conftest.$ac_ext
8978LIBS=$ac_func_search_save_LIBS
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8981$as_echo "$ac_cv_search_fmt_scaled" >&6; }
8982ac_res=$ac_cv_search_fmt_scaled
8983if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985
8986fi
8987
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
8989$as_echo_n "checking for library containing scan_scaled... " >&6; }
8990if ${ac_cv_search_scan_scaled+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992else
8993 ac_func_search_save_LIBS=$LIBS
8994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h. */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char scan_scaled ();
9004int
9005main ()
9006{
9007return scan_scaled ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012for ac_lib in '' util bsd; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_search_scan_scaled=$ac_res
9021fi
9022rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext
9024 if ${ac_cv_search_scan_scaled+:} false; then :
9025 break
9026fi
9027done
9028if ${ac_cv_search_scan_scaled+:} false; then :
9029
9030else
9031 ac_cv_search_scan_scaled=no
9032fi
9033rm conftest.$ac_ext
9034LIBS=$ac_func_search_save_LIBS
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9037$as_echo "$ac_cv_search_scan_scaled" >&6; }
9038ac_res=$ac_cv_search_scan_scaled
9039if test "$ac_res" != no; then :
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041
9042fi
9043
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9045$as_echo_n "checking for library containing login... " >&6; }
9046if ${ac_cv_search_login+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048else
9049 ac_func_search_save_LIBS=$LIBS
9050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h. */
9052
9053/* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9056#ifdef __cplusplus
9057extern "C"
9058#endif
9059char login ();
9060int
9061main ()
9062{
9063return login ();
9064 ;
9065 return 0;
9066}
9067_ACEOF
9068for ac_lib in '' util bsd; do
9069 if test -z "$ac_lib"; then
9070 ac_res="none required"
9071 else
9072 ac_res=-l$ac_lib
9073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9074 fi
9075 if ac_fn_c_try_link "$LINENO"; then :
9076 ac_cv_search_login=$ac_res
9077fi
9078rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext
9080 if ${ac_cv_search_login+:} false; then :
9081 break
9082fi
9083done
9084if ${ac_cv_search_login+:} false; then :
9085
9086else
9087 ac_cv_search_login=no
9088fi
9089rm conftest.$ac_ext
9090LIBS=$ac_func_search_save_LIBS
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9093$as_echo "$ac_cv_search_login" >&6; }
9094ac_res=$ac_cv_search_login
9095if test "$ac_res" != no; then :
9096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097
9098fi
9099
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9101$as_echo_n "checking for library containing logout... " >&6; }
9102if ${ac_cv_search_logout+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104else
9105 ac_func_search_save_LIBS=$LIBS
9106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108
9109/* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112#ifdef __cplusplus
9113extern "C"
9114#endif
9115char logout ();
9116int
9117main ()
9118{
9119return logout ();
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124for ac_lib in '' util bsd; do
9125 if test -z "$ac_lib"; then
9126 ac_res="none required"
9127 else
9128 ac_res=-l$ac_lib
9129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9130 fi
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_search_logout=$ac_res
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext
9136 if ${ac_cv_search_logout+:} false; then :
9137 break
9138fi
9139done
9140if ${ac_cv_search_logout+:} false; then :
9141
9142else
9143 ac_cv_search_logout=no
9144fi
9145rm conftest.$ac_ext
9146LIBS=$ac_func_search_save_LIBS
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9149$as_echo "$ac_cv_search_logout" >&6; }
9150ac_res=$ac_cv_search_logout
9151if test "$ac_res" != no; then :
9152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9153
9154fi
9155
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9157$as_echo_n "checking for library containing logwtmp... " >&6; }
9158if ${ac_cv_search_logwtmp+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160else
9161 ac_func_search_save_LIBS=$LIBS
9162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
9164
9165/* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9168#ifdef __cplusplus
9169extern "C"
9170#endif
9171char logwtmp ();
9172int
9173main ()
9174{
9175return logwtmp ();
9176 ;
9177 return 0;
9178}
9179_ACEOF
9180for ac_lib in '' util bsd; do
9181 if test -z "$ac_lib"; then
9182 ac_res="none required"
9183 else
9184 ac_res=-l$ac_lib
9185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9186 fi
9187 if ac_fn_c_try_link "$LINENO"; then :
9188 ac_cv_search_logwtmp=$ac_res
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext
9192 if ${ac_cv_search_logwtmp+:} false; then :
9193 break
9194fi
9195done
9196if ${ac_cv_search_logwtmp+:} false; then :
9197
9198else
9199 ac_cv_search_logwtmp=no
9200fi
9201rm conftest.$ac_ext
9202LIBS=$ac_func_search_save_LIBS
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9205$as_echo "$ac_cv_search_logwtmp" >&6; }
9206ac_res=$ac_cv_search_logwtmp
9207if test "$ac_res" != no; then :
9208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9209
9210fi
9211
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9213$as_echo_n "checking for library containing openpty... " >&6; }
9214if ${ac_cv_search_openpty+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 ac_func_search_save_LIBS=$LIBS
9218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h. */
9220
9221/* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224#ifdef __cplusplus
9225extern "C"
9226#endif
9227char openpty ();
9228int
9229main ()
9230{
9231return openpty ();
9232 ;
9233 return 0;
9234}
9235_ACEOF
9236for ac_lib in '' util bsd; do
9237 if test -z "$ac_lib"; then
9238 ac_res="none required"
9239 else
9240 ac_res=-l$ac_lib
9241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9242 fi
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 ac_cv_search_openpty=$ac_res
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext
9248 if ${ac_cv_search_openpty+:} false; then :
9249 break
9250fi
9251done
9252if ${ac_cv_search_openpty+:} false; then :
9253
9254else
9255 ac_cv_search_openpty=no
9256fi
9257rm conftest.$ac_ext
9258LIBS=$ac_func_search_save_LIBS
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9261$as_echo "$ac_cv_search_openpty" >&6; }
9262ac_res=$ac_cv_search_openpty
9263if test "$ac_res" != no; then :
9264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265
9266fi
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9269$as_echo_n "checking for library containing updwtmp... " >&6; }
9270if ${ac_cv_search_updwtmp+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272else
9273 ac_func_search_save_LIBS=$LIBS
9274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h. */
9276
9277/* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280#ifdef __cplusplus
9281extern "C"
9282#endif
9283char updwtmp ();
9284int
9285main ()
9286{
9287return updwtmp ();
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292for ac_lib in '' util bsd; do
9293 if test -z "$ac_lib"; then
9294 ac_res="none required"
9295 else
9296 ac_res=-l$ac_lib
9297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 fi
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 ac_cv_search_updwtmp=$ac_res
9301fi
9302rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext
9304 if ${ac_cv_search_updwtmp+:} false; then :
9305 break
9306fi
9307done
9308if ${ac_cv_search_updwtmp+:} false; then :
9309
9310else
9311 ac_cv_search_updwtmp=no
9312fi
9313rm conftest.$ac_ext
9314LIBS=$ac_func_search_save_LIBS
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9317$as_echo "$ac_cv_search_updwtmp" >&6; }
9318ac_res=$ac_cv_search_updwtmp
9319if test "$ac_res" != no; then :
9320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9321
9322fi
9323
9324for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9325do :
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9328if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9329 cat >>confdefs.h <<_ACEOF
9330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331_ACEOF
9332
9333fi
9334done
9335
9336
9337# On some platforms, inet_ntop may be found in libresolv or libnsl.
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9339$as_echo_n "checking for library containing inet_ntop... " >&6; }
9340if ${ac_cv_search_inet_ntop+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342else
9343 ac_func_search_save_LIBS=$LIBS
9344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h. */
9346
9347/* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9350#ifdef __cplusplus
9351extern "C"
9352#endif
9353char inet_ntop ();
9354int
9355main ()
9356{
9357return inet_ntop ();
9358 ;
9359 return 0;
9360}
9361_ACEOF
9362for ac_lib in '' resolv nsl; do
9363 if test -z "$ac_lib"; then
9364 ac_res="none required"
9365 else
9366 ac_res=-l$ac_lib
9367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 fi
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 ac_cv_search_inet_ntop=$ac_res
9371fi
9372rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext
9374 if ${ac_cv_search_inet_ntop+:} false; then :
9375 break
9376fi
9377done
9378if ${ac_cv_search_inet_ntop+:} false; then :
9379
9380else
9381 ac_cv_search_inet_ntop=no
9382fi
9383rm conftest.$ac_ext
9384LIBS=$ac_func_search_save_LIBS
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9387$as_echo "$ac_cv_search_inet_ntop" >&6; }
9388ac_res=$ac_cv_search_inet_ntop
9389if test "$ac_res" != no; then :
9390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9391
9392fi
9393
9394
9395for ac_func in strftime
9396do :
9397 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9398if test "x$ac_cv_func_strftime" = xyes; then :
9399 cat >>confdefs.h <<_ACEOF
9400#define HAVE_STRFTIME 1
9401_ACEOF
9402
9403else
9404 # strftime is in -lintl on SCO UNIX.
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9406$as_echo_n "checking for strftime in -lintl... " >&6; }
9407if ${ac_cv_lib_intl_strftime+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409else
9410 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lintl $LIBS"
9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h. */
9414
9415/* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418#ifdef __cplusplus
9419extern "C"
9420#endif
9421char strftime ();
9422int
9423main ()
9424{
9425return strftime ();
9426 ;
9427 return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then :
9431 ac_cv_lib_intl_strftime=yes
9432else
9433 ac_cv_lib_intl_strftime=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9440$as_echo "$ac_cv_lib_intl_strftime" >&6; }
9441if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9442 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9443
9444LIBS="-lintl $LIBS"
9445fi
9446
9447fi
9448done
9449
9450
9451# Check for ALTDIRFUNC glob() extension
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9453$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h. */
9456
9457 #include <glob.h>
9458 #ifdef GLOB_ALTDIRFUNC
9459 FOUNDIT
9460 #endif
9461
9462_ACEOF
9463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9465
9466
9467$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470$as_echo "yes" >&6; }
9471
9472else
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9476
9477
9478fi
9479rm -f conftest*
9480
9481
9482# Check for g.gl_matchc glob() extension
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9484$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h. */
9487 #include <glob.h>
9488int
9489main ()
9490{
9491 glob_t g; g.gl_matchc = 1;
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then :
9497
9498
9499$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9502$as_echo "yes" >&6; }
9503
9504else
9505
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9508
9509fi
9510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511
9512# Check for g.gl_statv glob() extension
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9514$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h. */
9517 #include <glob.h>
9518int
9519main ()
9520{
9521
9522#ifndef GLOB_KEEPSTAT
9523#error "glob does not support GLOB_KEEPSTAT extension"
9524#endif
9525glob_t g;
9526g.gl_statv = NULL;
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_compile "$LINENO"; then :
9533
9534
9535$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9536
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9538$as_echo "yes" >&6; }
9539
9540else
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544
9545
9546fi
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548
9549ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9550"
9551if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9552 ac_have_decl=1
9553else
9554 ac_have_decl=0
9555fi
9556
9557cat >>confdefs.h <<_ACEOF
9558#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9559_ACEOF
9560
9561
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9563$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9564if test "$cross_compiling" = yes; then :
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9567$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9568 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9569
9570
9571
9572else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h. */
9575
9576#include <sys/types.h>
9577#include <dirent.h>
9578int
9579main ()
9580{
9581
9582 struct dirent d;
9583 exit(sizeof(d.d_name)<=sizeof(char));
9584
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_run "$LINENO"; then :
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591$as_echo "yes" >&6; }
9592else
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
9596
9597$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9598
9599
9600fi
9601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9602 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603fi
9604
9605
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9607$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9608if test -d "/proc/$$/fd" ; then
9609
9610$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9613$as_echo "yes" >&6; }
9614else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9617fi
9618
9619# Check whether user wants S/Key support
9620SKEY_MSG="no"
9621
9622# Check whether --with-skey was given.
9623if test "${with_skey+set}" = set; then :
9624 withval=$with_skey;
9625 if test "x$withval" != "xno" ; then
9626
9627 if test "x$withval" != "xyes" ; then
9628 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9629 LDFLAGS="$LDFLAGS -L${withval}/lib"
9630 fi
9631
9632
9633$as_echo "#define SKEY 1" >>confdefs.h
9634
9635 LIBS="-lskey $LIBS"
9636 SKEY_MSG="yes"
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9639$as_echo_n "checking for s/key support... " >&6; }
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h. */
9642
9643#include <stdio.h>
9644#include <skey.h>
9645
9646int
9647main ()
9648{
9649
9650 char *ff = skey_keyinfo(""); ff="";
9651 exit(0);
9652
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_link "$LINENO"; then :
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659$as_echo "yes" >&6; }
9660else
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
9664 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9665
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9670$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h. */
9673
9674#include <stdio.h>
9675#include <skey.h>
9676
9677int
9678main ()
9679{
9680
9681 (void)skeychallenge(NULL,"name","",0);
9682
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9690$as_echo "yes" >&6; }
9691
9692$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9693
9694else
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
9698
9699fi
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702
9703
9704fi
9705
9706
9707# Check whether user wants to use ldns
9708LDNS_MSG="no"
9709
9710# Check whether --with-ldns was given.
9711if test "${with_ldns+set}" = set; then :
9712 withval=$with_ldns;
9713 if test "x$withval" != "xno" ; then
9714
9715 if test "x$withval" != "xyes" ; then
9716 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9717 LDFLAGS="$LDFLAGS -L${withval}/lib"
9718 fi
9719
9720
9721$as_echo "#define HAVE_LDNS 1" >>confdefs.h
9722
9723 LIBS="-lldns $LIBS"
9724 LDNS_MSG="yes"
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9727$as_echo_n "checking for ldns support... " >&6; }
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729/* end confdefs.h. */
9730
9731#include <stdio.h>
9732#include <stdlib.h>
9733#include <stdint.h>
9734#include <ldns/ldns.h>
9735int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9736
9737
9738_ACEOF
9739if ac_fn_c_try_link "$LINENO"; then :
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9741$as_echo "yes" >&6; }
9742else
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745$as_echo "no" >&6; }
9746 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9747
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752
9753
9754fi
9755
9756
9757# Check whether user wants libedit support
9758LIBEDIT_MSG="no"
9759
9760# Check whether --with-libedit was given.
9761if test "${with_libedit+set}" = set; then :
9762 withval=$with_libedit; if test "x$withval" != "xno" ; then
9763 if test "x$withval" = "xyes" ; then
9764 if test -n "$ac_tool_prefix"; then
9765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9766set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768$as_echo_n "checking for $ac_word... " >&6; }
9769if ${ac_cv_path_PKGCONFIG+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771else
9772 case $PKGCONFIG in
9773 [\\/]* | ?:[\\/]*)
9774 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9775 ;;
9776 *)
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789 done
9790IFS=$as_save_IFS
9791
9792 ;;
9793esac
9794fi
9795PKGCONFIG=$ac_cv_path_PKGCONFIG
9796if test -n "$PKGCONFIG"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9798$as_echo "$PKGCONFIG" >&6; }
9799else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803
9804
9805fi
9806if test -z "$ac_cv_path_PKGCONFIG"; then
9807 ac_pt_PKGCONFIG=$PKGCONFIG
9808 # Extract the first word of "pkg-config", so it can be a program name with args.
9809set dummy pkg-config; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814else
9815 case $ac_pt_PKGCONFIG in
9816 [\\/]* | ?:[\\/]*)
9817 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9818 ;;
9819 *)
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831done
9832 done
9833IFS=$as_save_IFS
9834
9835 ;;
9836esac
9837fi
9838ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9839if test -n "$ac_pt_PKGCONFIG"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9841$as_echo "$ac_pt_PKGCONFIG" >&6; }
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846
9847 if test "x$ac_pt_PKGCONFIG" = x; then
9848 PKGCONFIG="no"
9849 else
9850 case $cross_compiling:$ac_tool_warned in
9851yes:)
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9854ac_tool_warned=yes ;;
9855esac
9856 PKGCONFIG=$ac_pt_PKGCONFIG
9857 fi
9858else
9859 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9860fi
9861
9862 if test "x$PKGCONFIG" != "xno"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9864$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9865 if "$PKGCONFIG" libedit; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9867$as_echo "yes" >&6; }
9868 use_pkgconfig_for_libedit=yes
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872 fi
9873 fi
9874 else
9875 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9876 if test -n "${need_dash_r}"; then
9877 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9878 else
9879 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9880 fi
9881 fi
9882 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9883 LIBEDIT=`$PKGCONFIG --libs libedit`
9884 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9885 else
9886 LIBEDIT="-ledit -lcurses"
9887 fi
9888 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9890$as_echo_n "checking for el_init in -ledit... " >&6; }
9891if ${ac_cv_lib_edit_el_init+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 ac_check_lib_save_LIBS=$LIBS
9895LIBS="-ledit $OTHERLIBS
9896 $LIBS"
9897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
9899
9900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903#ifdef __cplusplus
9904extern "C"
9905#endif
9906char el_init ();
9907int
9908main ()
9909{
9910return el_init ();
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916 ac_cv_lib_edit_el_init=yes
9917else
9918 ac_cv_lib_edit_el_init=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
9925$as_echo "$ac_cv_lib_edit_el_init" >&6; }
9926if test "x$ac_cv_lib_edit_el_init" = xyes; then :
9927
9928$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
9929
9930 LIBEDIT_MSG="yes"
9931
9932
9933else
9934 as_fn_error $? "libedit not found" "$LINENO" 5
9935fi
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
9938$as_echo_n "checking if libedit version is compatible... " >&6; }
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h. */
9941 #include <histedit.h>
9942int
9943main ()
9944{
9945
9946 int i = H_SETSIZE;
9947 el_init("", NULL, NULL, NULL);
9948 exit(0);
9949
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9956$as_echo "yes" >&6; }
9957else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
9960 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
9961
9962fi
9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965
9966fi
9967
9968
9969AUDIT_MODULE=none
9970
9971# Check whether --with-audit was given.
9972if test "${with_audit+set}" = set; then :
9973 withval=$with_audit;
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
9975$as_echo_n "checking for supported audit module... " >&6; }
9976 case "$withval" in
9977 bsm)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
9979$as_echo "bsm" >&6; }
9980 AUDIT_MODULE=bsm
9981 for ac_header in bsm/audit.h
9982do :
9983 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
9984#ifdef HAVE_TIME_H
9985# include <time.h>
9986#endif
9987
9988
9989"
9990if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
9991 cat >>confdefs.h <<_ACEOF
9992#define HAVE_BSM_AUDIT_H 1
9993_ACEOF
9994
9995else
9996 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
9997fi
9998
9999done
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10002$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10003if ${ac_cv_lib_bsm_getaudit+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005else
10006 ac_check_lib_save_LIBS=$LIBS
10007LIBS="-lbsm $LIBS"
10008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h. */
10010
10011/* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017char getaudit ();
10018int
10019main ()
10020{
10021return getaudit ();
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027 ac_cv_lib_bsm_getaudit=yes
10028else
10029 ac_cv_lib_bsm_getaudit=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10036$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10037if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10038 cat >>confdefs.h <<_ACEOF
10039#define HAVE_LIBBSM 1
10040_ACEOF
10041
10042 LIBS="-lbsm $LIBS"
10043
10044else
10045 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10046fi
10047
10048 for ac_func in getaudit
10049do :
10050 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10051if test "x$ac_cv_func_getaudit" = xyes; then :
10052 cat >>confdefs.h <<_ACEOF
10053#define HAVE_GETAUDIT 1
10054_ACEOF
10055
10056else
10057 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10058fi
10059done
10060
10061 # These are optional
10062 for ac_func in getaudit_addr aug_get_machine
10063do :
10064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10067 cat >>confdefs.h <<_ACEOF
10068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069_ACEOF
10070
10071fi
10072done
10073
10074
10075$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10076
10077 if test "$sol2ver" -ge 11; then
10078 SSHDLIBS="$SSHDLIBS -lscf"
10079
10080$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10081
10082 fi
10083 ;;
10084 linux)
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10086$as_echo "linux" >&6; }
10087 AUDIT_MODULE=linux
10088 for ac_header in libaudit.h
10089do :
10090 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10091if test "x$ac_cv_header_libaudit_h" = xyes; then :
10092 cat >>confdefs.h <<_ACEOF
10093#define HAVE_LIBAUDIT_H 1
10094_ACEOF
10095
10096fi
10097
10098done
10099
10100 SSHDLIBS="$SSHDLIBS -laudit"
10101
10102$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10103
10104 ;;
10105 debug)
10106 AUDIT_MODULE=debug
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10108$as_echo "debug" >&6; }
10109
10110$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10111
10112 ;;
10113 no)
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115$as_echo "no" >&6; }
10116 ;;
10117 *)
10118 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10119 ;;
10120 esac
10121
10122fi
10123
10124
10125
10126# Check whether --with-pie was given.
10127if test "${with_pie+set}" = set; then :
10128 withval=$with_pie;
10129 if test "x$withval" = "xno"; then
10130 use_pie=no
10131 fi
10132 if test "x$withval" = "xyes"; then
10133 use_pie=yes
10134 fi
10135
10136
10137fi
10138
10139if test "x$use_pie" = "x"; then
10140 use_pie=no
10141fi
10142if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10143 # Turn off automatic PIE when toolchain hardening is off.
10144 use_pie=no
10145fi
10146if test "x$use_pie" = "xauto"; then
10147 # Automatic PIE requires gcc >= 4.x
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10149$as_echo_n "checking for gcc >= 4.x... " >&6; }
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h. */
10152
10153#if !defined(__GNUC__) || __GNUC__ < 4
10154#error gcc is too old
10155#endif
10156
10157_ACEOF
10158if ac_fn_c_try_compile "$LINENO"; then :
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10160$as_echo "yes" >&6; }
10161else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164 use_pie=no
10165
10166fi
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169if test "x$use_pie" != "xno"; then
10170 SAVED_CFLAGS="$CFLAGS"
10171 SAVED_LDFLAGS="$LDFLAGS"
10172 {
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10174$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10175 saved_CFLAGS="$CFLAGS"
10176 CFLAGS="$CFLAGS $WERROR -fPIE"
10177 _define_flag=""
10178 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h. */
10181
10182#include <stdlib.h>
10183#include <stdio.h>
10184int main(int argc, char **argv) {
10185 /* Some math to catch -ftrapv problems in the toolchain */
10186 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10187 float l = i * 2.1;
10188 double m = l / 0.5;
10189 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10190 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10191 exit(0);
10192}
10193
10194_ACEOF
10195if ac_fn_c_try_compile "$LINENO"; then :
10196
10197if `grep -i "unrecognized option" conftest.err >/dev/null`
10198then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
10201 CFLAGS="$saved_CFLAGS"
10202else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204$as_echo "yes" >&6; }
10205 CFLAGS="$saved_CFLAGS $_define_flag"
10206fi
10207else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
10210 CFLAGS="$saved_CFLAGS"
10211
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214}
10215 {
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10217$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10218 saved_LDFLAGS="$LDFLAGS"
10219 LDFLAGS="$LDFLAGS $WERROR -pie"
10220 _define_flag=""
10221 test "x$_define_flag" = "x" && _define_flag="-pie"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h. */
10224
10225#include <stdlib.h>
10226#include <stdio.h>
10227int main(int argc, char **argv) {
10228 /* Some math to catch -ftrapv problems in the toolchain */
10229 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10230 float l = i * 2.1;
10231 double m = l / 0.5;
10232 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10233 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10234 exit(0);
10235}
10236
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10240$as_echo "yes" >&6; }
10241 LDFLAGS="$saved_LDFLAGS $_define_flag"
10242else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245 LDFLAGS="$saved_LDFLAGS"
10246
10247fi
10248rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250}
10251 # We use both -fPIE and -pie or neither.
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10253$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10254 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10255 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257$as_echo "yes" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
10261 CFLAGS="$SAVED_CFLAGS"
10262 LDFLAGS="$SAVED_LDFLAGS"
10263 fi
10264fi
10265
10266for ac_func in \
10267 Blowfish_initstate \
10268 Blowfish_expandstate \
10269 Blowfish_expand0state \
10270 Blowfish_stream2word \
10271 asprintf \
10272 b64_ntop \
10273 __b64_ntop \
10274 b64_pton \
10275 __b64_pton \
10276 bcopy \
10277 bcrypt_pbkdf \
10278 bindresvport_sa \
10279 blf_enc \
10280 cap_rights_limit \
10281 clock \
10282 closefrom \
10283 dirfd \
10284 endgrent \
10285 explicit_bzero \
10286 fchmod \
10287 fchown \
10288 freeaddrinfo \
10289 fstatfs \
10290 fstatvfs \
10291 futimes \
10292 getaddrinfo \
10293 getcwd \
10294 getgrouplist \
10295 getnameinfo \
10296 getopt \
10297 getpeereid \
10298 getpeerucred \
10299 getpgid \
10300 getpgrp \
10301 _getpty \
10302 getrlimit \
10303 getttyent \
10304 glob \
10305 group_from_gid \
10306 inet_aton \
10307 inet_ntoa \
10308 inet_ntop \
10309 innetgr \
10310 login_getcapbool \
10311 mblen \
10312 md5_crypt \
10313 memmove \
10314 memset_s \
10315 mkdtemp \
10316 mmap \
10317 ngetaddrinfo \
10318 nsleep \
10319 ogetaddrinfo \
10320 openlog_r \
10321 poll \
10322 prctl \
10323 pstat \
10324 readpassphrase \
10325 realpath \
10326 recvmsg \
10327 rresvport_af \
10328 sendmsg \
10329 setdtablesize \
10330 setegid \
10331 setenv \
10332 seteuid \
10333 setgroupent \
10334 setgroups \
10335 setlinebuf \
10336 setlogin \
10337 setpassent\
10338 setpcred \
10339 setproctitle \
10340 setregid \
10341 setreuid \
10342 setrlimit \
10343 setsid \
10344 setvbuf \
10345 sigaction \
10346 sigvec \
10347 snprintf \
10348 socketpair \
10349 statfs \
10350 statvfs \
10351 strdup \
10352 strerror \
10353 strlcat \
10354 strlcpy \
10355 strmode \
10356 strnlen \
10357 strnvis \
10358 strptime \
10359 strtonum \
10360 strtoll \
10361 strtoul \
10362 strtoull \
10363 swap32 \
10364 sysconf \
10365 tcgetpgrp \
10366 timingsafe_bcmp \
10367 truncate \
10368 unsetenv \
10369 updwtmpx \
10370 user_from_uid \
10371 usleep \
10372 vasprintf \
10373 vsnprintf \
10374 waitpid \
10375
10376do :
10377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10379if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10380 cat >>confdefs.h <<_ACEOF
10381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382_ACEOF
10383
10384fi
10385done
10386
10387
10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h. */
10390 #include <ctype.h>
10391int
10392main ()
10393{
10394 return (isblank('a'));
10395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400
10401$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
10402
10403
10404fi
10405rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407
10408# PKCS#11 support requires dlopen() and co
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10410$as_echo_n "checking for library containing dlopen... " >&6; }
10411if ${ac_cv_search_dlopen+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 ac_func_search_save_LIBS=$LIBS
10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h. */
10417
10418/* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421#ifdef __cplusplus
10422extern "C"
10423#endif
10424char dlopen ();
10425int
10426main ()
10427{
10428return dlopen ();
10429 ;
10430 return 0;
10431}
10432_ACEOF
10433for ac_lib in '' dl; do
10434 if test -z "$ac_lib"; then
10435 ac_res="none required"
10436 else
10437 ac_res=-l$ac_lib
10438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10439 fi
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 ac_cv_search_dlopen=$ac_res
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext
10445 if ${ac_cv_search_dlopen+:} false; then :
10446 break
10447fi
10448done
10449if ${ac_cv_search_dlopen+:} false; then :
10450
10451else
10452 ac_cv_search_dlopen=no
10453fi
10454rm conftest.$ac_ext
10455LIBS=$ac_func_search_save_LIBS
10456fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10458$as_echo "$ac_cv_search_dlopen" >&6; }
10459ac_res=$ac_cv_search_dlopen
10460if test "$ac_res" != no; then :
10461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10462
10463$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
10464
10465
10466fi
10467
10468
10469# IRIX has a const char return value for gai_strerror()
10470for ac_func in gai_strerror
10471do :
10472 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
10473if test "x$ac_cv_func_gai_strerror" = xyes; then :
10474 cat >>confdefs.h <<_ACEOF
10475#define HAVE_GAI_STRERROR 1
10476_ACEOF
10477
10478 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
10479
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h. */
10482
10483#include <sys/types.h>
10484#include <sys/socket.h>
10485#include <netdb.h>
10486
10487const char *gai_strerror(int);
10488
10489int
10490main ()
10491{
10492
10493 char *str;
10494 str = gai_strerror(0);
10495
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_compile "$LINENO"; then :
10501
10502
10503$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10504
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi
10508done
10509
10510
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10512$as_echo_n "checking for library containing nanosleep... " >&6; }
10513if ${ac_cv_search_nanosleep+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 ac_func_search_save_LIBS=$LIBS
10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h. */
10519
10520/* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523#ifdef __cplusplus
10524extern "C"
10525#endif
10526char nanosleep ();
10527int
10528main ()
10529{
10530return nanosleep ();
10531 ;
10532 return 0;
10533}
10534_ACEOF
10535for ac_lib in '' rt posix4; do
10536 if test -z "$ac_lib"; then
10537 ac_res="none required"
10538 else
10539 ac_res=-l$ac_lib
10540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10541 fi
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_search_nanosleep=$ac_res
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext
10547 if ${ac_cv_search_nanosleep+:} false; then :
10548 break
10549fi
10550done
10551if ${ac_cv_search_nanosleep+:} false; then :
10552
10553else
10554 ac_cv_search_nanosleep=no
10555fi
10556rm conftest.$ac_ext
10557LIBS=$ac_func_search_save_LIBS
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10560$as_echo "$ac_cv_search_nanosleep" >&6; }
10561ac_res=$ac_cv_search_nanosleep
10562if test "$ac_res" != no; then :
10563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10564
10565$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10566
10567fi
10568
10569
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10571$as_echo_n "checking for library containing clock_gettime... " >&6; }
10572if ${ac_cv_search_clock_gettime+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574else
10575 ac_func_search_save_LIBS=$LIBS
10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h. */
10578
10579/* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582#ifdef __cplusplus
10583extern "C"
10584#endif
10585char clock_gettime ();
10586int
10587main ()
10588{
10589return clock_gettime ();
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594for ac_lib in '' rt; do
10595 if test -z "$ac_lib"; then
10596 ac_res="none required"
10597 else
10598 ac_res=-l$ac_lib
10599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10600 fi
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_search_clock_gettime=$ac_res
10603fi
10604rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext
10606 if ${ac_cv_search_clock_gettime+:} false; then :
10607 break
10608fi
10609done
10610if ${ac_cv_search_clock_gettime+:} false; then :
10611
10612else
10613 ac_cv_search_clock_gettime=no
10614fi
10615rm conftest.$ac_ext
10616LIBS=$ac_func_search_save_LIBS
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10619$as_echo "$ac_cv_search_clock_gettime" >&6; }
10620ac_res=$ac_cv_search_clock_gettime
10621if test "$ac_res" != no; then :
10622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10623
10624$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10625
10626fi
10627
10628
10629ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10630if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10631 for ac_func in getrusage
10632do :
10633 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10634if test "x$ac_cv_func_getrusage" = xyes; then :
10635 cat >>confdefs.h <<_ACEOF
10636#define HAVE_GETRUSAGE 1
10637_ACEOF
10638
10639fi
10640done
10641
10642fi
10643
10644ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10645#ifdef HAVE_STRING_H
10646# include <string.h>
10647#endif
10648
10649"
10650if test "x$ac_cv_have_decl_strsep" = xyes; then :
10651 for ac_func in strsep
10652do :
10653 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10654if test "x$ac_cv_func_strsep" = xyes; then :
10655 cat >>confdefs.h <<_ACEOF
10656#define HAVE_STRSEP 1
10657_ACEOF
10658
10659fi
10660done
10661
10662fi
10663
10664
10665ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10666
10667"
10668if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10669 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10670
10671else
10672 for ac_func in tcsendbreak
10673do :
10674 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10675if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10676 cat >>confdefs.h <<_ACEOF
10677#define HAVE_TCSENDBREAK 1
10678_ACEOF
10679
10680fi
10681done
10682
10683fi
10684
10685
10686ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
10687"
10688if test "x$ac_cv_have_decl_h_errno" = xyes; then :
10689 ac_have_decl=1
10690else
10691 ac_have_decl=0
10692fi
10693
10694cat >>confdefs.h <<_ACEOF
10695#define HAVE_DECL_H_ERRNO $ac_have_decl
10696_ACEOF
10697
10698
10699ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
10700#include <sys/types.h>
10701#include <sys/socket.h>
10702
10703"
10704if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
10705 ac_have_decl=1
10706else
10707 ac_have_decl=0
10708fi
10709
10710cat >>confdefs.h <<_ACEOF
10711#define HAVE_DECL_SHUT_RD $ac_have_decl
10712_ACEOF
10713
10714
10715ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10716#include <sys/types.h>
10717#ifdef HAVE_SYS_STAT_H
10718# include <sys/stat.h>
10719#endif
10720#ifdef HAVE_FCNTL_H
10721# include <fcntl.h>
10722#endif
10723
10724"
10725if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
10726 ac_have_decl=1
10727else
10728 ac_have_decl=0
10729fi
10730
10731cat >>confdefs.h <<_ACEOF
10732#define HAVE_DECL_O_NONBLOCK $ac_have_decl
10733_ACEOF
10734
10735
10736ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
10737#include <sys/types.h>
10738#include <sys/uio.h>
10739#include <unistd.h>
10740
10741"
10742if test "x$ac_cv_have_decl_writev" = xyes; then :
10743 ac_have_decl=1
10744else
10745 ac_have_decl=0
10746fi
10747
10748cat >>confdefs.h <<_ACEOF
10749#define HAVE_DECL_WRITEV $ac_have_decl
10750_ACEOF
10751
10752
10753ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
10754#include <sys/param.h>
10755
10756"
10757if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
10758 ac_have_decl=1
10759else
10760 ac_have_decl=0
10761fi
10762
10763cat >>confdefs.h <<_ACEOF
10764#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
10765_ACEOF
10766
10767
10768ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
10769#include <stddef.h>
10770
10771"
10772if test "x$ac_cv_have_decl_offsetof" = xyes; then :
10773 ac_have_decl=1
10774else
10775 ac_have_decl=0
10776fi
10777
10778cat >>confdefs.h <<_ACEOF
10779#define HAVE_DECL_OFFSETOF $ac_have_decl
10780_ACEOF
10781
10782
10783# extra bits for select(2)
10784ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10785#include <sys/param.h>
10786#include <sys/types.h>
10787#ifdef HAVE_SYS_SYSMACROS_H
10788#include <sys/sysmacros.h>
10789#endif
10790#ifdef HAVE_SYS_SELECT_H
10791#include <sys/select.h>
10792#endif
10793#ifdef HAVE_SYS_TIME_H
10794#include <sys/time.h>
10795#endif
10796#ifdef HAVE_UNISTD_H
10797#include <unistd.h>
10798#endif
10799
10800"
10801if test "x$ac_cv_have_decl_howmany" = xyes; then :
10802 ac_have_decl=1
10803else
10804 ac_have_decl=0
10805fi
10806
10807cat >>confdefs.h <<_ACEOF
10808#define HAVE_DECL_HOWMANY $ac_have_decl
10809_ACEOF
10810ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10811#include <sys/param.h>
10812#include <sys/types.h>
10813#ifdef HAVE_SYS_SYSMACROS_H
10814#include <sys/sysmacros.h>
10815#endif
10816#ifdef HAVE_SYS_SELECT_H
10817#include <sys/select.h>
10818#endif
10819#ifdef HAVE_SYS_TIME_H
10820#include <sys/time.h>
10821#endif
10822#ifdef HAVE_UNISTD_H
10823#include <unistd.h>
10824#endif
10825
10826"
10827if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10828 ac_have_decl=1
10829else
10830 ac_have_decl=0
10831fi
10832
10833cat >>confdefs.h <<_ACEOF
10834#define HAVE_DECL_NFDBITS $ac_have_decl
10835_ACEOF
10836
10837ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10838#include <sys/param.h>
10839#include <sys/types.h>
10840#ifdef HAVE_SYS_SELECT_H
10841#include <sys/select.h>
10842#endif
10843#ifdef HAVE_SYS_TIME_H
10844#include <sys/time.h>
10845#endif
10846#ifdef HAVE_UNISTD_H
10847#include <unistd.h>
10848#endif
10849
10850"
10851if test "x$ac_cv_type_fd_mask" = xyes; then :
10852
10853cat >>confdefs.h <<_ACEOF
10854#define HAVE_FD_MASK 1
10855_ACEOF
10856
10857
10858fi
10859
10860
10861for ac_func in setresuid
10862do :
10863 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10864if test "x$ac_cv_func_setresuid" = xyes; then :
10865 cat >>confdefs.h <<_ACEOF
10866#define HAVE_SETRESUID 1
10867_ACEOF
10868
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
10870$as_echo_n "checking if setresuid seems to work... " >&6; }
10871 if test "$cross_compiling" = yes; then :
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10873$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10874
10875else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h. */
10878
10879#include <stdlib.h>
10880#include <errno.h>
10881
10882int
10883main ()
10884{
10885
10886 errno=0;
10887 setresuid(0,0,0);
10888 if (errno==ENOSYS)
10889 exit(1);
10890 else
10891 exit(0);
10892
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897if ac_fn_c_try_run "$LINENO"; then :
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10899$as_echo "yes" >&6; }
10900else
10901
10902$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
10903
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10905$as_echo "not implemented" >&6; }
10906fi
10907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10908 conftest.$ac_objext conftest.beam conftest.$ac_ext
10909fi
10910
10911
10912fi
10913done
10914
10915
10916for ac_func in setresgid
10917do :
10918 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10919if test "x$ac_cv_func_setresgid" = xyes; then :
10920 cat >>confdefs.h <<_ACEOF
10921#define HAVE_SETRESGID 1
10922_ACEOF
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
10925$as_echo_n "checking if setresgid seems to work... " >&6; }
10926 if test "$cross_compiling" = yes; then :
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10928$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10929
10930else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h. */
10933
10934#include <stdlib.h>
10935#include <errno.h>
10936
10937int
10938main ()
10939{
10940
10941 errno=0;
10942 setresgid(0,0,0);
10943 if (errno==ENOSYS)
10944 exit(1);
10945 else
10946 exit(0);
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_run "$LINENO"; then :
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954$as_echo "yes" >&6; }
10955else
10956
10957$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
10958
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10960$as_echo "not implemented" >&6; }
10961fi
10962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10963 conftest.$ac_objext conftest.beam conftest.$ac_ext
10964fi
10965
10966
10967fi
10968done
10969
10970
10971for ac_func in gettimeofday time
10972do :
10973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10975if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10976 cat >>confdefs.h <<_ACEOF
10977#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10978_ACEOF
10979
10980fi
10981done
10982
10983for ac_func in endutent getutent getutid getutline pututline setutent
10984do :
10985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10987if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10988 cat >>confdefs.h <<_ACEOF
10989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990_ACEOF
10991
10992fi
10993done
10994
10995for ac_func in utmpname
10996do :
10997 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
10998if test "x$ac_cv_func_utmpname" = xyes; then :
10999 cat >>confdefs.h <<_ACEOF
11000#define HAVE_UTMPNAME 1
11001_ACEOF
11002
11003fi
11004done
11005
11006for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11007do :
11008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11010if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11011 cat >>confdefs.h <<_ACEOF
11012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013_ACEOF
11014
11015fi
11016done
11017
11018for ac_func in setutxdb setutxent utmpxname
11019do :
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11023 cat >>confdefs.h <<_ACEOF
11024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025_ACEOF
11026
11027fi
11028done
11029
11030for ac_func in getlastlogxbyname
11031do :
11032 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11033if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11034 cat >>confdefs.h <<_ACEOF
11035#define HAVE_GETLASTLOGXBYNAME 1
11036_ACEOF
11037
11038fi
11039done
11040
11041
11042ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11043if test "x$ac_cv_func_daemon" = xyes; then :
11044
11045$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11046
11047else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11049$as_echo_n "checking for daemon in -lbsd... " >&6; }
11050if ${ac_cv_lib_bsd_daemon+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lbsd $LIBS"
11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char daemon ();
11065int
11066main ()
11067{
11068return daemon ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_bsd_daemon=yes
11075else
11076 ac_cv_lib_bsd_daemon=no
11077fi
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080LIBS=$ac_check_lib_save_LIBS
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11083$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11084if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11085 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11086
11087fi
11088
11089
11090fi
11091
11092
11093ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11094if test "x$ac_cv_func_getpagesize" = xyes; then :
11095
11096$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11097
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11100$as_echo_n "checking for getpagesize in -lucb... " >&6; }
11101if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103else
11104 ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lucb $LIBS"
11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h. */
11108
11109/* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char getpagesize ();
11116int
11117main ()
11118{
11119return getpagesize ();
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_ucb_getpagesize=yes
11126else
11127 ac_cv_lib_ucb_getpagesize=no
11128fi
11129rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131LIBS=$ac_check_lib_save_LIBS
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11134$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11135if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11136 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11137
11138fi
11139
11140
11141fi
11142
11143
11144# Check for broken snprintf
11145if test "x$ac_cv_func_snprintf" = "xyes" ; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11147$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11148 if test "$cross_compiling" = yes; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11150$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11151
11152else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
11155 #include <stdio.h>
11156int
11157main ()
11158{
11159
11160 char b[5];
11161 snprintf(b,5,"123456789");
11162 exit(b[4]!='\0');
11163
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_run "$LINENO"; then :
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170$as_echo "yes" >&6; }
11171else
11172
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
11175
11176$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11177
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11179$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11180
11181fi
11182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11183 conftest.$ac_objext conftest.beam conftest.$ac_ext
11184fi
11185
11186fi
11187
11188# We depend on vsnprintf returning the right thing on overflow: the
11189# number of characters it tried to create (as per SUSv3)
11190if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11192$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11193 if test "$cross_compiling" = yes; then :
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11195$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11196
11197else
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h. */
11200
11201#include <sys/types.h>
11202#include <stdio.h>
11203#include <stdarg.h>
11204
11205int x_snprintf(char *str, size_t count, const char *fmt, ...)
11206{
11207 size_t ret;
11208 va_list ap;
11209
11210 va_start(ap, fmt);
11211 ret = vsnprintf(str, count, fmt, ap);
11212 va_end(ap);
11213 return ret;
11214}
11215
11216int
11217main ()
11218{
11219
11220char x[1];
11221if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
11222 return 1;
11223if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
11224 return 1;
11225return 0;
11226
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231if ac_fn_c_try_run "$LINENO"; then :
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233$as_echo "yes" >&6; }
11234else
11235
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
11238
11239$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11242$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11243
11244fi
11245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11246 conftest.$ac_objext conftest.beam conftest.$ac_ext
11247fi
11248
11249fi
11250
11251# On systems where [v]snprintf is broken, but is declared in stdio,
11252# check that the fmt argument is const char * or just char *.
11253# This is only useful for when BROKEN_SNPRINTF
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11255$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h. */
11258
11259#include <stdio.h>
11260int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11261
11262int
11263main ()
11264{
11265
11266 snprintf(0, 0, 0);
11267
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272if ac_fn_c_try_compile "$LINENO"; then :
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274$as_echo "yes" >&6; }
11275
11276$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11277
11278else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
11281 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11282
11283fi
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
11286# Check for missing getpeereid (or equiv) support
11287NO_PEERCHECK=""
11288if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11290$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h. */
11293
11294#include <sys/types.h>
11295#include <sys/socket.h>
11296int
11297main ()
11298{
11299int i = SO_PEERCRED;
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304if ac_fn_c_try_compile "$LINENO"; then :
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306$as_echo "yes" >&6; }
11307
11308$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11309
11310
11311else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314 NO_PEERCHECK=1
11315
11316fi
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318fi
11319
11320if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
11322$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
11323if test "$cross_compiling" = yes; then :
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326$as_echo "yes" >&6; }
11327 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11328
11329
11330
11331else
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333/* end confdefs.h. */
11334
11335#include <stdlib.h>
11336
11337int
11338main ()
11339{
11340
11341 char template[]="conftest.mkstemp-test";
11342 if (mkstemp(template) == -1)
11343 exit(1);
11344 unlink(template);
11345 exit(0);
11346
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_run "$LINENO"; then :
11352
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355
11356else
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359$as_echo "yes" >&6; }
11360
11361$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11362
11363
11364fi
11365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11366 conftest.$ac_objext conftest.beam conftest.$ac_ext
11367fi
11368
11369fi
11370
11371if test ! -z "$check_for_openpty_ctty_bug"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
11373$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
11374 if test "$cross_compiling" = yes; then :
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11377$as_echo "cross-compiling, assuming yes" >&6; }
11378
11379
11380else
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383
11384#include <stdio.h>
11385#include <sys/fcntl.h>
11386#include <sys/types.h>
11387#include <sys/wait.h>
11388
11389int
11390main ()
11391{
11392
11393 pid_t pid;
11394 int fd, ptyfd, ttyfd, status;
11395
11396 pid = fork();
11397 if (pid < 0) { /* failed */
11398 exit(1);
11399 } else if (pid > 0) { /* parent */
11400 waitpid(pid, &status, 0);
11401 if (WIFEXITED(status))
11402 exit(WEXITSTATUS(status));
11403 else
11404 exit(2);
11405 } else { /* child */
11406 close(0); close(1); close(2);
11407 setsid();
11408 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
11409 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
11410 if (fd >= 0)
11411 exit(3); /* Acquired ctty: broken */
11412 else
11413 exit(0); /* Did not acquire ctty: OK */
11414 }
11415
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420if ac_fn_c_try_run "$LINENO"; then :
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423$as_echo "yes" >&6; }
11424
11425else
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
11430
11431
11432fi
11433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11434 conftest.$ac_objext conftest.beam conftest.$ac_ext
11435fi
11436
11437fi
11438
11439if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11440 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11442$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11443 if test "$cross_compiling" = yes; then :
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11446$as_echo "cross-compiling, assuming yes" >&6; }
11447
11448
11449else
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h. */
11452
11453#include <stdio.h>
11454#include <sys/socket.h>
11455#include <netdb.h>
11456#include <errno.h>
11457#include <netinet/in.h>
11458
11459#define TEST_PORT "2222"
11460
11461int
11462main ()
11463{
11464
11465 int err, sock;
11466 struct addrinfo *gai_ai, *ai, hints;
11467 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11468
11469 memset(&hints, 0, sizeof(hints));
11470 hints.ai_family = PF_UNSPEC;
11471 hints.ai_socktype = SOCK_STREAM;
11472 hints.ai_flags = AI_PASSIVE;
11473
11474 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11475 if (err != 0) {
11476 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11477 exit(1);
11478 }
11479
11480 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11481 if (ai->ai_family != AF_INET6)
11482 continue;
11483
11484 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11485 sizeof(ntop), strport, sizeof(strport),
11486 NI_NUMERICHOST|NI_NUMERICSERV);
11487
11488 if (err != 0) {
11489 if (err == EAI_SYSTEM)
11490 perror("getnameinfo EAI_SYSTEM");
11491 else
11492 fprintf(stderr, "getnameinfo failed: %s\n",
11493 gai_strerror(err));
11494 exit(2);
11495 }
11496
11497 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
11498 if (sock < 0)
11499 perror("socket");
11500 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
11501 if (errno == EBADF)
11502 exit(3);
11503 }
11504 }
11505 exit(0);
11506
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511if ac_fn_c_try_run "$LINENO"; then :
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514$as_echo "yes" >&6; }
11515
11516else
11517
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11521
11522
11523fi
11524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11525 conftest.$ac_objext conftest.beam conftest.$ac_ext
11526fi
11527
11528fi
11529
11530if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11531 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11533$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11534 if test "$cross_compiling" = yes; then :
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
11537$as_echo "cross-compiling, assuming no" >&6; }
11538
11539
11540else
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h. */
11543
11544#include <stdio.h>
11545#include <sys/socket.h>
11546#include <netdb.h>
11547#include <errno.h>
11548#include <netinet/in.h>
11549
11550#define TEST_PORT "2222"
11551
11552int
11553main ()
11554{
11555
11556 int err, sock;
11557 struct addrinfo *gai_ai, *ai, hints;
11558 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11559
11560 memset(&hints, 0, sizeof(hints));
11561 hints.ai_family = PF_UNSPEC;
11562 hints.ai_socktype = SOCK_STREAM;
11563 hints.ai_flags = AI_PASSIVE;
11564
11565 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11566 if (err != 0) {
11567 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11568 exit(1);
11569 }
11570
11571 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11572 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11573 continue;
11574
11575 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11576 sizeof(ntop), strport, sizeof(strport),
11577 NI_NUMERICHOST|NI_NUMERICSERV);
11578
11579 if (ai->ai_family == AF_INET && err != 0) {
11580 perror("getnameinfo");
11581 exit(2);
11582 }
11583 }
11584 exit(0);
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_run "$LINENO"; then :
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593$as_echo "yes" >&6; }
11594
11595$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11596
11597
11598else
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
11602 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11603
11604
11605fi
11606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11607 conftest.$ac_objext conftest.beam conftest.$ac_ext
11608fi
11609
11610fi
11611
11612if test "x$check_for_conflicting_getspnam" = "x1"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
11614$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617 #include <shadow.h>
11618int
11619main ()
11620{
11621 exit(0);
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_compile "$LINENO"; then :
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630
11631else
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634$as_echo "yes" >&6; }
11635
11636$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
11637
11638
11639
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11645$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11646if ${ac_cv_func_getpgrp_void+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648else
11649 # Use it with a single arg.
11650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h. */
11652$ac_includes_default
11653int
11654main ()
11655{
11656getpgrp (0);
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_compile "$LINENO"; then :
11662 ac_cv_func_getpgrp_void=no
11663else
11664 ac_cv_func_getpgrp_void=yes
11665fi
11666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11670$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11671if test $ac_cv_func_getpgrp_void = yes; then
11672
11673$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11674
11675fi
11676
11677
11678# Search for OpenSSL
11679saved_CPPFLAGS="$CPPFLAGS"
11680saved_LDFLAGS="$LDFLAGS"
11681
11682# Check whether --with-ssl-dir was given.
11683if test "${with_ssl_dir+set}" = set; then :
11684 withval=$with_ssl_dir;
11685 if test "x$withval" != "xno" ; then
11686 case "$withval" in
11687 # Relative paths
11688 ./*|../*) withval="`pwd`/$withval"
11689 esac
11690 if test -d "$withval/lib"; then
11691 if test -n "${need_dash_r}"; then
11692 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11693 else
11694 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11695 fi
11696 elif test -d "$withval/lib64"; then
11697 if test -n "${need_dash_r}"; then
11698 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
11699 else
11700 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
11701 fi
11702 else
11703 if test -n "${need_dash_r}"; then
11704 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11705 else
11706 LDFLAGS="-L${withval} ${LDFLAGS}"
11707 fi
11708 fi
11709 if test -d "$withval/include"; then
11710 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11711 else
11712 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11713 fi
11714 fi
11715
11716
11717fi
11718
11719LIBS="-lcrypto $LIBS"
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h. */
11722
11723/* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726#ifdef __cplusplus
11727extern "C"
11728#endif
11729char RAND_add ();
11730int
11731main ()
11732{
11733return RAND_add ();
11734 ;
11735 return 0;
11736}
11737_ACEOF
11738if ac_fn_c_try_link "$LINENO"; then :
11739
11740$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11741
11742else
11743
11744 if test -n "${need_dash_r}"; then
11745 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11746 else
11747 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11748 fi
11749 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11750 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11751if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11752
11753else
11754 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
11755fi
11756
11757
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h. */
11760
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767char RAND_add ();
11768int
11769main ()
11770{
11771return RAND_add ();
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776if ac_fn_c_try_link "$LINENO"; then :
11777 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11778
11779else
11780
11781 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
11782
11783
11784fi
11785rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787
11788
11789fi
11790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792
11793# Determine OpenSSL header version
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
11795$as_echo_n "checking OpenSSL header version... " >&6; }
11796if test "$cross_compiling" = yes; then :
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11799$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11800
11801
11802else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
11805
11806#include <stdio.h>
11807#include <string.h>
11808#include <openssl/opensslv.h>
11809#define DATA "conftest.sslincver"
11810
11811int
11812main ()
11813{
11814
11815 FILE *fd;
11816 int rc;
11817
11818 fd = fopen(DATA,"w");
11819 if(fd == NULL)
11820 exit(1);
11821
11822 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11823 exit(1);
11824
11825 exit(0);
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831if ac_fn_c_try_run "$LINENO"; then :
11832
11833 ssl_header_ver=`cat conftest.sslincver`
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
11835$as_echo "$ssl_header_ver" >&6; }
11836
11837else
11838
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11840$as_echo "not found" >&6; }
11841 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
11842
11843fi
11844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11845 conftest.$ac_objext conftest.beam conftest.$ac_ext
11846fi
11847
11848
11849# Determine OpenSSL library version
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11851$as_echo_n "checking OpenSSL library version... " >&6; }
11852if test "$cross_compiling" = yes; then :
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11855$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11856
11857
11858else
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h. */
11861
11862#include <stdio.h>
11863#include <string.h>
11864#include <openssl/opensslv.h>
11865#include <openssl/crypto.h>
11866#define DATA "conftest.ssllibver"
11867
11868int
11869main ()
11870{
11871
11872 FILE *fd;
11873 int rc;
11874
11875 fd = fopen(DATA,"w");
11876 if(fd == NULL)
11877 exit(1);
11878
11879 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
11880 SSLeay_version(SSLEAY_VERSION))) <0)
11881 exit(1);
11882
11883 exit(0);
11884
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_run "$LINENO"; then :
11890
11891 ssl_library_ver=`cat conftest.ssllibver`
11892 # Check version is supported.
11893 case "$ssl_library_ver" in
11894 0090[0-7]*|009080[0-5]*)
11895 as_fn_error $? "OpenSSL >= 0.9.8f required" "$LINENO" 5
11896 ;;
11897 *) ;;
11898 esac
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
11900$as_echo "$ssl_library_ver" >&6; }
11901
11902else
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11905$as_echo "not found" >&6; }
11906 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
11907
11908fi
11909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11911fi
11912
11913
11914# XXX make --without-openssl work
11915
11916cat >>confdefs.h <<_ACEOF
11917#define WITH_OPENSSL 1
11918_ACEOF
11919
11920
11921cat >>confdefs.h <<_ACEOF
11922#define WITH_SSH1 1
11923_ACEOF
11924
11925
11926
11927# Check whether --with-openssl-header-check was given.
11928if test "${with_openssl_header_check+set}" = set; then :
11929 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
11930 openssl_check_nonfatal=1
11931 fi
11932
11933
11934fi
11935
11936
11937# Sanity check OpenSSL headers
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11939$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11940if test "$cross_compiling" = yes; then :
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11943$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11944
11945
11946else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h. */
11949
11950#include <string.h>
11951#include <openssl/opensslv.h>
11952
11953int
11954main ()
11955{
11956
11957 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11958
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_run "$LINENO"; then :
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966$as_echo "yes" >&6; }
11967
11968else
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972 if test "x$openssl_check_nonfatal" = "x"; then
11973 as_fn_error $? "Your OpenSSL headers do not match your
11974library. Check config.log for details.
11975If you are sure your installation is consistent, you can disable the check
11976by running \"./configure --without-openssl-header-check\".
11977Also see contrib/findssl.sh for help identifying header/library mismatches.
11978" "$LINENO" 5
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
11981library. Check config.log for details.
11982Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
11983$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
11984library. Check config.log for details.
11985Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
11986 fi
11987
11988fi
11989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11990 conftest.$ac_objext conftest.beam conftest.$ac_ext
11991fi
11992
11993
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
11995$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998 #include <openssl/evp.h>
11999int
12000main ()
12001{
12002 SSLeay_add_all_algorithms();
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007if ac_fn_c_try_link "$LINENO"; then :
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12010$as_echo "yes" >&6; }
12011
12012else
12013
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016 saved_LIBS="$LIBS"
12017 LIBS="$LIBS -ldl"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12019$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022 #include <openssl/evp.h>
12023int
12024main ()
12025{
12026 SSLeay_add_all_algorithms();
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then :
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12034$as_echo "yes" >&6; }
12035
12036else
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039$as_echo "no" >&6; }
12040 LIBS="$saved_LIBS"
12041
12042
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046
12047
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051
12052for ac_func in \
12053 BN_is_prime_ex \
12054 DSA_generate_parameters_ex \
12055 EVP_DigestInit_ex \
12056 EVP_DigestFinal_ex \
12057 EVP_MD_CTX_init \
12058 EVP_MD_CTX_cleanup \
12059 EVP_MD_CTX_copy_ex \
12060 HMAC_CTX_init \
12061 RSA_generate_key_ex \
12062 RSA_get_default_method \
12063
12064do :
12065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12068 cat >>confdefs.h <<_ACEOF
12069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070_ACEOF
12071
12072fi
12073done
12074
12075
12076
12077# Check whether --with-ssl-engine was given.
12078if test "${with_ssl_engine+set}" = set; then :
12079 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12081$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h. */
12084
12085#include <openssl/engine.h>
12086
12087int
12088main ()
12089{
12090
12091 ENGINE_load_builtin_engines();
12092 ENGINE_register_all_complete();
12093
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098if ac_fn_c_try_compile "$LINENO"; then :
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100$as_echo "yes" >&6; }
12101
12102$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12103
12104
12105else
12106 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12107
12108fi
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 fi
12111
12112fi
12113
12114
12115# Check for OpenSSL without EVP_aes_{192,256}_cbc
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12117$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h. */
12120
12121#include <string.h>
12122#include <openssl/evp.h>
12123
12124int
12125main ()
12126{
12127
12128 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134if ac_fn_c_try_link "$LINENO"; then :
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138
12139else
12140
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142$as_echo "yes" >&6; }
12143
12144$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12145
12146
12147
12148fi
12149rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151
12152# Check for OpenSSL with EVP_aes_*ctr
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12154$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h. */
12157
12158#include <string.h>
12159#include <openssl/evp.h>
12160
12161int
12162main ()
12163{
12164
12165 exit(EVP_aes_128_ctr() == NULL ||
12166 EVP_aes_192_cbc() == NULL ||
12167 EVP_aes_256_cbc() == NULL);
12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173if ac_fn_c_try_link "$LINENO"; then :
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12176$as_echo "yes" >&6; }
12177
12178$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12179
12180
12181else
12182
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
12185
12186
12187fi
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190
12191# Check for OpenSSL with EVP_aes_*gcm
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12193$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h. */
12196
12197#include <string.h>
12198#include <openssl/evp.h>
12199
12200int
12201main ()
12202{
12203
12204 exit(EVP_aes_128_gcm() == NULL ||
12205 EVP_aes_256_gcm() == NULL ||
12206 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12207 EVP_CTRL_GCM_IV_GEN == 0 ||
12208 EVP_CTRL_GCM_SET_TAG == 0 ||
12209 EVP_CTRL_GCM_GET_TAG == 0 ||
12210 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12211
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216if ac_fn_c_try_link "$LINENO"; then :
12217
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219$as_echo "yes" >&6; }
12220
12221$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12222
12223
12224else
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228 unsupported_algorithms="$unsupported_cipers \
12229 aes128-gcm@openssh.com aes256-gcm@openssh.com"
12230
12231
12232fi
12233rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
12237$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
12238if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240else
12241 ac_func_search_save_LIBS=$LIBS
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h. */
12244
12245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248#ifdef __cplusplus
12249extern "C"
12250#endif
12251char EVP_CIPHER_CTX_ctrl ();
12252int
12253main ()
12254{
12255return EVP_CIPHER_CTX_ctrl ();
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260for ac_lib in '' crypto; do
12261 if test -z "$ac_lib"; then
12262 ac_res="none required"
12263 else
12264 ac_res=-l$ac_lib
12265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 fi
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
12269fi
12270rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext
12272 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12273 break
12274fi
12275done
12276if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12277
12278else
12279 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12280fi
12281rm conftest.$ac_ext
12282LIBS=$ac_func_search_save_LIBS
12283fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12285$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12286ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12287if test "$ac_res" != no; then :
12288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12289
12290$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
12291
12292fi
12293
12294
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
12296$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h. */
12299
12300#include <string.h>
12301#include <openssl/evp.h>
12302
12303int
12304main ()
12305{
12306
12307 if(EVP_DigestUpdate(NULL, NULL,0))
12308 exit(0);
12309
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_link "$LINENO"; then :
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317$as_echo "yes" >&6; }
12318
12319else
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323
12324$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
12325
12326
12327
12328fi
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331
12332# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12333# because the system crypt() is more featureful.
12334if test "x$check_for_libcrypt_before" = "x1"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12336$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12337if ${ac_cv_lib_crypt_crypt+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339else
12340 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-lcrypt $LIBS"
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344
12345/* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348#ifdef __cplusplus
12349extern "C"
12350#endif
12351char crypt ();
12352int
12353main ()
12354{
12355return crypt ();
12356 ;
12357 return 0;
12358}
12359_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then :
12361 ac_cv_lib_crypt_crypt=yes
12362else
12363 ac_cv_lib_crypt_crypt=no
12364fi
12365rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367LIBS=$ac_check_lib_save_LIBS
12368fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12370$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12371if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12372 cat >>confdefs.h <<_ACEOF
12373#define HAVE_LIBCRYPT 1
12374_ACEOF
12375
12376 LIBS="-lcrypt $LIBS"
12377
12378fi
12379
12380fi
12381
12382# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12383# version in OpenSSL.
12384if test "x$check_for_libcrypt_later" = "x1"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12386$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12387if ${ac_cv_lib_crypt_crypt+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389else
12390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lcrypt $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h. */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398#ifdef __cplusplus
12399extern "C"
12400#endif
12401char crypt ();
12402int
12403main ()
12404{
12405return crypt ();
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410if ac_fn_c_try_link "$LINENO"; then :
12411 ac_cv_lib_crypt_crypt=yes
12412else
12413 ac_cv_lib_crypt_crypt=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12420$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12421if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12422 LIBS="$LIBS -lcrypt"
12423fi
12424
12425fi
12426for ac_func in crypt DES_crypt
12427do :
12428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12430if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12431 cat >>confdefs.h <<_ACEOF
12432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433_ACEOF
12434
12435fi
12436done
12437
12438
12439# Search for SHA256 support in libc and/or OpenSSL
12440for ac_func in SHA256_Update EVP_sha256
12441do :
12442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12443ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12444if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12445 cat >>confdefs.h <<_ACEOF
12446#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447_ACEOF
12448
12449else
12450 unsupported_algorithms="$unsupported_algorithms \
12451 hmac-sha2-256 hmac-sha2-512 \
12452 diffie-hellman-group-exchange-sha256 \
12453 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
12454
12455
12456fi
12457done
12458
12459# Search for RIPE-MD support in OpenSSL
12460for ac_func in EVP_ripemd160
12461do :
12462 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
12463if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
12464 cat >>confdefs.h <<_ACEOF
12465#define HAVE_EVP_RIPEMD160 1
12466_ACEOF
12467
12468else
12469 unsupported_algorithms="$unsupported_algorithms \
12470 hmac-ripemd160
12471 hmac-ripemd160@openssh.com
12472 hmac-ripemd160-etm@openssh.com"
12473
12474
12475fi
12476done
12477
12478
12479# Check complete ECC support in OpenSSL
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12481$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483/* end confdefs.h. */
12484
12485#include <openssl/ec.h>
12486#include <openssl/ecdh.h>
12487#include <openssl/ecdsa.h>
12488#include <openssl/evp.h>
12489#include <openssl/objects.h>
12490#include <openssl/opensslv.h>
12491#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12492# error "OpenSSL < 0.9.8g has unreliable ECC code"
12493#endif
12494
12495int
12496main ()
12497{
12498
12499 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12500 const EVP_MD *m = EVP_sha256(); /* We need this too */
12501
12502 ;
12503 return 0;
12504}
12505_ACEOF
12506if ac_fn_c_try_link "$LINENO"; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508$as_echo "yes" >&6; }
12509 enable_nistp256=1
12510else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513
12514fi
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
12519$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
12520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
12523#include <openssl/ec.h>
12524#include <openssl/ecdh.h>
12525#include <openssl/ecdsa.h>
12526#include <openssl/evp.h>
12527#include <openssl/objects.h>
12528#include <openssl/opensslv.h>
12529#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12530# error "OpenSSL < 0.9.8g has unreliable ECC code"
12531#endif
12532
12533int
12534main ()
12535{
12536
12537 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12538 const EVP_MD *m = EVP_sha384(); /* We need this too */
12539
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546$as_echo "yes" >&6; }
12547 enable_nistp384=1
12548else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551
12552fi
12553rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
12557$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
12558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h. */
12560
12561#include <openssl/ec.h>
12562#include <openssl/ecdh.h>
12563#include <openssl/ecdsa.h>
12564#include <openssl/evp.h>
12565#include <openssl/objects.h>
12566#include <openssl/opensslv.h>
12567#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12568# error "OpenSSL < 0.9.8g has unreliable ECC code"
12569#endif
12570
12571int
12572main ()
12573{
12574
12575 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12576 const EVP_MD *m = EVP_sha512(); /* We need this too */
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582if ac_fn_c_try_link "$LINENO"; then :
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584$as_echo "yes" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
12586$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
12587 if test "$cross_compiling" = yes; then :
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
12589$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
12590 enable_nistp521=1
12591
12592else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h. */
12595
12596#include <openssl/ec.h>
12597#include <openssl/ecdh.h>
12598#include <openssl/ecdsa.h>
12599#include <openssl/evp.h>
12600#include <openssl/objects.h>
12601#include <openssl/opensslv.h>
12602
12603int
12604main ()
12605{
12606
12607 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12608 const EVP_MD *m = EVP_sha512(); /* We need this too */
12609 exit(e == NULL || m == NULL);
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_run "$LINENO"; then :
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617$as_echo "yes" >&6; }
12618 enable_nistp521=1
12619else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12624 conftest.$ac_objext conftest.beam conftest.$ac_ext
12625fi
12626
12627else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630
12631fi
12632rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634
12635COMMENT_OUT_ECC="#no ecc#"
12636TEST_SSH_ECC=no
12637
12638if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
12639 test x$enable_nistp521 = x1; then
12640
12641$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
12642
12643fi
12644if test x$enable_nistp256 = x1; then
12645
12646$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
12647
12648 TEST_SSH_ECC=yes
12649 COMMENT_OUT_ECC=""
12650else
12651 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
12652 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
12653fi
12654if test x$enable_nistp384 = x1; then
12655
12656$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
12657
12658 TEST_SSH_ECC=yes
12659 COMMENT_OUT_ECC=""
12660else
12661 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
12662 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
12663fi
12664if test x$enable_nistp521 = x1; then
12665
12666$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
12667
12668 TEST_SSH_ECC=yes
12669 COMMENT_OUT_ECC=""
12670else
12671 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
12672 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
12673fi
12674
12675
12676
12677
12678for ac_func in \
12679 arc4random \
12680 arc4random_buf \
12681 arc4random_stir \
12682 arc4random_uniform \
12683
12684do :
12685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12687if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12688 cat >>confdefs.h <<_ACEOF
12689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12690_ACEOF
12691
12692fi
12693done
12694
12695
12696saved_LIBS="$LIBS"
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
12698$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
12699if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701else
12702 ac_check_lib_save_LIBS=$LIBS
12703LIBS="-liaf $LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h. */
12706
12707/* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710#ifdef __cplusplus
12711extern "C"
12712#endif
12713char ia_openinfo ();
12714int
12715main ()
12716{
12717return ia_openinfo ();
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_lib_iaf_ia_openinfo=yes
12724else
12725 ac_cv_lib_iaf_ia_openinfo=no
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
12732$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
12733if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
12734
12735 LIBS="$LIBS -liaf"
12736 for ac_func in set_id
12737do :
12738 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
12739if test "x$ac_cv_func_set_id" = xyes; then :
12740 cat >>confdefs.h <<_ACEOF
12741#define HAVE_SET_ID 1
12742_ACEOF
12743 SSHDLIBS="$SSHDLIBS -liaf"
12744
12745$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
12746
12747
12748fi
12749done
12750
12751
12752fi
12753
12754LIBS="$saved_LIBS"
12755
12756### Configure cryptographic random number support
12757
12758# Check wheter OpenSSL seeds itself
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
12760$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
12761if test "$cross_compiling" = yes; then :
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12764$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12765 # This is safe, since we will fatal() at runtime if
12766 # OpenSSL is not seeded correctly.
12767 OPENSSL_SEEDS_ITSELF=yes
12768
12769
12770else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h. */
12773
12774#include <string.h>
12775#include <openssl/rand.h>
12776
12777int
12778main ()
12779{
12780
12781 exit(RAND_status() == 1 ? 0 : 1);
12782
12783 ;
12784 return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_run "$LINENO"; then :
12788
12789 OPENSSL_SEEDS_ITSELF=yes
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12791$as_echo "yes" >&6; }
12792
12793else
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797
12798fi
12799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12800 conftest.$ac_objext conftest.beam conftest.$ac_ext
12801fi
12802
12803
12804# PRNGD TCP socket
12805
12806# Check whether --with-prngd-port was given.
12807if test "${with_prngd_port+set}" = set; then :
12808 withval=$with_prngd_port;
12809 case "$withval" in
12810 no)
12811 withval=""
12812 ;;
12813 [0-9]*)
12814 ;;
12815 *)
12816 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
12817 ;;
12818 esac
12819 if test ! -z "$withval" ; then
12820 PRNGD_PORT="$withval"
12821
12822cat >>confdefs.h <<_ACEOF
12823#define PRNGD_PORT $PRNGD_PORT
12824_ACEOF
12825
12826 fi
12827
12828
12829fi
12830
12831
12832# PRNGD Unix domain socket
12833
12834# Check whether --with-prngd-socket was given.
12835if test "${with_prngd_socket+set}" = set; then :
12836 withval=$with_prngd_socket;
12837 case "$withval" in
12838 yes)
12839 withval="/var/run/egd-pool"
12840 ;;
12841 no)
12842 withval=""
12843 ;;
12844 /*)
12845 ;;
12846 *)
12847 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
12848 ;;
12849 esac
12850
12851 if test ! -z "$withval" ; then
12852 if test ! -z "$PRNGD_PORT" ; then
12853 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
12854 fi
12855 if test ! -r "$withval" ; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
12857$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12858 fi
12859 PRNGD_SOCKET="$withval"
12860
12861cat >>confdefs.h <<_ACEOF
12862#define PRNGD_SOCKET "$PRNGD_SOCKET"
12863_ACEOF
12864
12865 fi
12866
12867else
12868
12869 # Check for existing socket only if we don't have a random device already
12870 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
12872$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
12873 # Insert other locations here
12874 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12875 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
12876 PRNGD_SOCKET="$sock"
12877 cat >>confdefs.h <<_ACEOF
12878#define PRNGD_SOCKET "$PRNGD_SOCKET"
12879_ACEOF
12880
12881 break;
12882 fi
12883 done
12884 if test ! -z "$PRNGD_SOCKET" ; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
12886$as_echo "$PRNGD_SOCKET" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12889$as_echo "not found" >&6; }
12890 fi
12891 fi
12892
12893
12894fi
12895
12896
12897# Which randomness source do we use?
12898if test ! -z "$PRNGD_PORT" ; then
12899 RAND_MSG="PRNGd port $PRNGD_PORT"
12900elif test ! -z "$PRNGD_SOCKET" ; then
12901 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
12902elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
12903
12904$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
12905
12906 RAND_MSG="OpenSSL internal ONLY"
12907else
12908 as_fn_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" "$LINENO" 5
12909fi
12910
12911# Check for PAM libs
12912PAM_MSG="no"
12913
12914# Check whether --with-pam was given.
12915if test "${with_pam+set}" = set; then :
12916 withval=$with_pam;
12917 if test "x$withval" != "xno" ; then
12918 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12919 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12920 as_fn_error $? "PAM headers not found" "$LINENO" 5
12921 fi
12922
12923 saved_LIBS="$LIBS"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12925$as_echo_n "checking for dlopen in -ldl... " >&6; }
12926if ${ac_cv_lib_dl_dlopen+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928else
12929 ac_check_lib_save_LIBS=$LIBS
12930LIBS="-ldl $LIBS"
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h. */
12933
12934/* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937#ifdef __cplusplus
12938extern "C"
12939#endif
12940char dlopen ();
12941int
12942main ()
12943{
12944return dlopen ();
12945 ;
12946 return 0;
12947}
12948_ACEOF
12949if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_dl_dlopen=yes
12951else
12952 ac_cv_lib_dl_dlopen=no
12953fi
12954rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956LIBS=$ac_check_lib_save_LIBS
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12960if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12961 cat >>confdefs.h <<_ACEOF
12962#define HAVE_LIBDL 1
12963_ACEOF
12964
12965 LIBS="-ldl $LIBS"
12966
12967fi
12968
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
12970$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
12971if ${ac_cv_lib_pam_pam_set_item+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973else
12974 ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lpam $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char pam_set_item ();
12986int
12987main ()
12988{
12989return pam_set_item ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_pam_pam_set_item=yes
12996else
12997 ac_cv_lib_pam_pam_set_item=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13004$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13005if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13006 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBPAM 1
13008_ACEOF
13009
13010 LIBS="-lpam $LIBS"
13011
13012else
13013 as_fn_error $? "*** libpam missing" "$LINENO" 5
13014fi
13015
13016 for ac_func in pam_getenvlist
13017do :
13018 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13019if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13021#define HAVE_PAM_GETENVLIST 1
13022_ACEOF
13023
13024fi
13025done
13026
13027 for ac_func in pam_putenv
13028do :
13029 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13030if test "x$ac_cv_func_pam_putenv" = xyes; then :
13031 cat >>confdefs.h <<_ACEOF
13032#define HAVE_PAM_PUTENV 1
13033_ACEOF
13034
13035fi
13036done
13037
13038 LIBS="$saved_LIBS"
13039
13040 PAM_MSG="yes"
13041
13042 SSHDLIBS="$SSHDLIBS -lpam"
13043
13044$as_echo "#define USE_PAM 1" >>confdefs.h
13045
13046
13047 if test $ac_cv_lib_dl_dlopen = yes; then
13048 case "$LIBS" in
13049 *-ldl*)
13050 # libdl already in LIBS
13051 ;;
13052 *)
13053 SSHDLIBS="$SSHDLIBS -ldl"
13054 ;;
13055 esac
13056 fi
13057 fi
13058
13059
13060fi
13061
13062
13063# Check for older PAM
13064if test "x$PAM_MSG" = "xyes" ; then
13065 # Check PAM strerror arguments (old PAM)
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13067$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h. */
13070
13071#include <stdlib.h>
13072#if defined(HAVE_SECURITY_PAM_APPL_H)
13073#include <security/pam_appl.h>
13074#elif defined (HAVE_PAM_PAM_APPL_H)
13075#include <pam/pam_appl.h>
13076#endif
13077
13078int
13079main ()
13080{
13081
13082(void)pam_strerror((pam_handle_t *)NULL, -1);
13083
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088if ac_fn_c_try_compile "$LINENO"; then :
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091else
13092
13093
13094$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097$as_echo "yes" >&6; }
13098 PAM_MSG="yes (old library)"
13099
13100
13101fi
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi
13104
13105case "$host" in
13106*-*-cygwin*)
13107 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
13108 ;;
13109*)
13110 SSH_PRIVSEP_USER=sshd
13111 ;;
13112esac
13113
13114# Check whether --with-privsep-user was given.
13115if test "${with_privsep_user+set}" = set; then :
13116 withval=$with_privsep_user;
13117 if test -n "$withval" && test "x$withval" != "xno" && \
13118 test "x${withval}" != "xyes"; then
13119 SSH_PRIVSEP_USER=$withval
13120 fi
13121
13122
13123fi
13124
13125if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
13126
13127cat >>confdefs.h <<_ACEOF
13128#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
13129_ACEOF
13130
13131else
13132
13133cat >>confdefs.h <<_ACEOF
13134#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13135_ACEOF
13136
13137fi
13138
13139
13140if test "x$have_linux_no_new_privs" = "x1" ; then
13141ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13142 #include <sys/types.h>
13143 #include <linux/seccomp.h>
13144
13145"
13146if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13147 have_seccomp_filter=1
13148fi
13149
13150fi
13151if test "x$have_seccomp_filter" = "x1" ; then
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13153$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155/* end confdefs.h. */
13156
13157 #include <errno.h>
13158 #include <elf.h>
13159 #include <linux/audit.h>
13160 #include <linux/seccomp.h>
13161 #include <stdlib.h>
13162 #include <sys/prctl.h>
13163
13164int
13165main ()
13166{
13167 int i = $seccomp_audit_arch;
13168 errno = 0;
13169 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
13170 exit(errno == EFAULT ? 0 : 1);
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_link "$LINENO"; then :
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177$as_echo "yes" >&6; }
13178else
13179
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182 # Disable seccomp filter as a target
13183 have_seccomp_filter=0
13184
13185
13186fi
13187rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189fi
13190
13191# Decide which sandbox style to use
13192sandbox_arg=""
13193
13194# Check whether --with-sandbox was given.
13195if test "${with_sandbox+set}" = set; then :
13196 withval=$with_sandbox;
13197 if test "x$withval" = "xyes" ; then
13198 sandbox_arg=""
13199 else
13200 sandbox_arg="$withval"
13201 fi
13202
13203
13204fi
13205
13206
13207# Some platforms (seems to be the ones that have a kernel poll(2)-type
13208# function with which they implement select(2)) use an extra file descriptor
13209# when calling select(2), which means we can't use the rlimit sandbox.
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
13211$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
13212if test "$cross_compiling" = yes; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13214$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13215
13216else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h. */
13219
13220#include <sys/types.h>
13221#ifdef HAVE_SYS_TIME_H
13222# include <sys/time.h>
13223#endif
13224#include <sys/resource.h>
13225#ifdef HAVE_SYS_SELECT_H
13226# include <sys/select.h>
13227#endif
13228#include <errno.h>
13229#include <fcntl.h>
13230#include <stdlib.h>
13231
13232int
13233main ()
13234{
13235
13236 struct rlimit rl_zero;
13237 int fd, r;
13238 fd_set fds;
13239 struct timeval tv;
13240
13241 fd = open("/dev/null", O_RDONLY);
13242 FD_ZERO(&fds);
13243 FD_SET(fd, &fds);
13244 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13245 setrlimit(RLIMIT_FSIZE, &rl_zero);
13246 setrlimit(RLIMIT_NOFILE, &rl_zero);
13247 tv.tv_sec = 1;
13248 tv.tv_usec = 0;
13249 r = select(fd+1, &fds, NULL, NULL, &tv);
13250 exit (r == -1 ? 1 : 0);
13251
13252 ;
13253 return 0;
13254}
13255_ACEOF
13256if ac_fn_c_try_run "$LINENO"; then :
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258$as_echo "yes" >&6; }
13259 select_works_with_rlimit=yes
13260else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263 select_works_with_rlimit=no
13264fi
13265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13266 conftest.$ac_objext conftest.beam conftest.$ac_ext
13267fi
13268
13269
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13271$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
13272if test "$cross_compiling" = yes; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13274$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13275
13276else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h. */
13279
13280#include <sys/types.h>
13281#ifdef HAVE_SYS_TIME_H
13282# include <sys/time.h>
13283#endif
13284#include <sys/resource.h>
13285#include <errno.h>
13286#include <stdlib.h>
13287
13288int
13289main ()
13290{
13291
13292 struct rlimit rl_zero;
13293 int fd, r;
13294 fd_set fds;
13295
13296 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13297 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
13298 exit (r == -1 ? 1 : 0);
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_run "$LINENO"; then :
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13306$as_echo "yes" >&6; }
13307 rlimit_nofile_zero_works=yes
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311 rlimit_nofile_zero_works=no
13312fi
13313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13314 conftest.$ac_objext conftest.beam conftest.$ac_ext
13315fi
13316
13317
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
13319$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
13320if test "$cross_compiling" = yes; then :
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13322$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13323
13324else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h. */
13327
13328#include <sys/types.h>
13329#include <sys/resource.h>
13330#include <stdlib.h>
13331
13332int
13333main ()
13334{
13335
13336 struct rlimit rl_zero;
13337
13338 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13339 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
13340
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345if ac_fn_c_try_run "$LINENO"; then :
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13347$as_echo "yes" >&6; }
13348else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351
13352$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
13353
13354fi
13355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13356 conftest.$ac_objext conftest.beam conftest.$ac_ext
13357fi
13358
13359
13360if test "x$sandbox_arg" = "xsystrace" || \
13361 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13362 test "x$have_systr_policy_kill" != "x1" && \
13363 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
13364 SANDBOX_STYLE="systrace"
13365
13366$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
13367
13368elif test "x$sandbox_arg" = "xdarwin" || \
13369 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13370 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13371 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13372 "x$ac_cv_header_sandbox_h" != "xyes" && \
13373 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
13374 SANDBOX_STYLE="darwin"
13375
13376$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
13377
13378elif test "x$sandbox_arg" = "xseccomp_filter" || \
13379 ( test -z "$sandbox_arg" && \
13380 test "x$have_seccomp_filter" = "x1" && \
13381 test "x$ac_cv_header_elf_h" = "xyes" && \
13382 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
13383 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
13384 test "x$seccomp_audit_arch" != "x" && \
13385 test "x$have_linux_no_new_privs" = "x1" && \
13386 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13387 test "x$seccomp_audit_arch" = "x" && \
13388 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
13389 test "x$have_linux_no_new_privs" != "x1" && \
13390 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
13391 test "x$have_seccomp_filter" != "x1" && \
13392 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
13393 test "x$ac_cv_func_prctl" != "xyes" && \
13394 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
13395 SANDBOX_STYLE="seccomp_filter"
13396
13397$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
13398
13399elif test "x$sandbox_arg" = "xcapsicum" || \
13400 ( test -z "$sandbox_arg" && \
13401 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
13402 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13403 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
13404 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5
13405 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13406 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
13407 SANDBOX_STYLE="capsicum"
13408
13409$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
13410
13411elif test "x$sandbox_arg" = "xrlimit" || \
13412 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13413 test "x$select_works_with_rlimit" = "xyes" && \
13414 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13415 test "x$ac_cv_func_setrlimit" != "xyes" && \
13416 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
13417 test "x$select_works_with_rlimit" != "xyes" && \
13418 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
13419 SANDBOX_STYLE="rlimit"
13420
13421$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
13422
13423elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13424 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13425 SANDBOX_STYLE="none"
13426
13427$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
13428
13429else
13430 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
13431fi
13432
13433# Cheap hack to ensure NEWS-OS libraries are arranged right.
13434if test ! -z "$SONY" ; then
13435 LIBS="$LIBS -liberty";
13436fi
13437
13438# Check for long long datatypes
13439ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13440if test "x$ac_cv_type_long_long" = xyes; then :
13441
13442cat >>confdefs.h <<_ACEOF
13443#define HAVE_LONG_LONG 1
13444_ACEOF
13445
13446
13447fi
13448ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
13449if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
13450
13451cat >>confdefs.h <<_ACEOF
13452#define HAVE_UNSIGNED_LONG_LONG 1
13453_ACEOF
13454
13455
13456fi
13457ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
13458if test "x$ac_cv_type_long_double" = xyes; then :
13459
13460cat >>confdefs.h <<_ACEOF
13461#define HAVE_LONG_DOUBLE 1
13462_ACEOF
13463
13464
13465fi
13466
13467
13468# Check datatype sizes
13469# The cast to long int works around a bug in the HP C Compiler
13470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13472# This bug is HP SR number 8606223364.
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
13474$as_echo_n "checking size of short int... " >&6; }
13475if ${ac_cv_sizeof_short_int+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477else
13478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
13479
13480else
13481 if test "$ac_cv_type_short_int" = yes; then
13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13484as_fn_error 77 "cannot compute sizeof (short int)
13485See \`config.log' for more details" "$LINENO" 5; }
13486 else
13487 ac_cv_sizeof_short_int=0
13488 fi
13489fi
13490
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
13493$as_echo "$ac_cv_sizeof_short_int" >&6; }
13494
13495
13496
13497cat >>confdefs.h <<_ACEOF
13498#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13499_ACEOF
13500
13501
13502# The cast to long int works around a bug in the HP C Compiler
13503# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13504# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13505# This bug is HP SR number 8606223364.
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13507$as_echo_n "checking size of int... " >&6; }
13508if ${ac_cv_sizeof_int+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510else
13511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13512
13513else
13514 if test "$ac_cv_type_int" = yes; then
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13517as_fn_error 77 "cannot compute sizeof (int)
13518See \`config.log' for more details" "$LINENO" 5; }
13519 else
13520 ac_cv_sizeof_int=0
13521 fi
13522fi
13523
13524fi
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13526$as_echo "$ac_cv_sizeof_int" >&6; }
13527
13528
13529
13530cat >>confdefs.h <<_ACEOF
13531#define SIZEOF_INT $ac_cv_sizeof_int
13532_ACEOF
13533
13534
13535# The cast to long int works around a bug in the HP C Compiler
13536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13538# This bug is HP SR number 8606223364.
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
13540$as_echo_n "checking size of long int... " >&6; }
13541if ${ac_cv_sizeof_long_int+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543else
13544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
13545
13546else
13547 if test "$ac_cv_type_long_int" = yes; then
13548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13550as_fn_error 77 "cannot compute sizeof (long int)
13551See \`config.log' for more details" "$LINENO" 5; }
13552 else
13553 ac_cv_sizeof_long_int=0
13554 fi
13555fi
13556
13557fi
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
13559$as_echo "$ac_cv_sizeof_long_int" >&6; }
13560
13561
13562
13563cat >>confdefs.h <<_ACEOF
13564#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13565_ACEOF
13566
13567
13568# The cast to long int works around a bug in the HP C Compiler
13569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13571# This bug is HP SR number 8606223364.
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
13573$as_echo_n "checking size of long long int... " >&6; }
13574if ${ac_cv_sizeof_long_long_int+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576else
13577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
13578
13579else
13580 if test "$ac_cv_type_long_long_int" = yes; then
13581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13583as_fn_error 77 "cannot compute sizeof (long long int)
13584See \`config.log' for more details" "$LINENO" 5; }
13585 else
13586 ac_cv_sizeof_long_long_int=0
13587 fi
13588fi
13589
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
13592$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
13593
13594
13595
13596cat >>confdefs.h <<_ACEOF
13597#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13598_ACEOF
13599
13600
13601
13602# Sanity check long long for some platforms (AIX)
13603if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
13604 ac_cv_sizeof_long_long_int=0
13605fi
13606
13607# compute LLONG_MIN and LLONG_MAX if we don't know them.
13608if test -z "$have_llong_max"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
13610$as_echo_n "checking for max value of long long... " >&6; }
13611 if test "$cross_compiling" = yes; then :
13612
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13614$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13615
13616
13617else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h. */
13620
13621#include <stdio.h>
13622/* Why is this so damn hard? */
13623#ifdef __GNUC__
13624# undef __GNUC__
13625#endif
13626#define __USE_ISOC99
13627#include <limits.h>
13628#define DATA "conftest.llminmax"
13629#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
13630
13631/*
13632 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
13633 * we do this the hard way.
13634 */
13635static int
13636fprint_ll(FILE *f, long long n)
13637{
13638 unsigned int i;
13639 int l[sizeof(long long) * 8];
13640
13641 if (n < 0)
13642 if (fprintf(f, "-") < 0)
13643 return -1;
13644 for (i = 0; n != 0; i++) {
13645 l[i] = my_abs(n % 10);
13646 n /= 10;
13647 }
13648 do {
13649 if (fprintf(f, "%d", l[--i]) < 0)
13650 return -1;
13651 } while (i != 0);
13652 if (fprintf(f, " ") < 0)
13653 return -1;
13654 return 0;
13655}
13656
13657int
13658main ()
13659{
13660
13661 FILE *f;
13662 long long i, llmin, llmax = 0;
13663
13664 if((f = fopen(DATA,"w")) == NULL)
13665 exit(1);
13666
13667#if defined(LLONG_MIN) && defined(LLONG_MAX)
13668 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
13669 llmin = LLONG_MIN;
13670 llmax = LLONG_MAX;
13671#else
13672 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
13673 /* This will work on one's complement and two's complement */
13674 for (i = 1; i > llmax; i <<= 1, i++)
13675 llmax = i;
13676 llmin = llmax + 1LL; /* wrap */
13677#endif
13678
13679 /* Sanity check */
13680 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
13681 || llmax - 1 > llmax || llmin == llmax || llmin == 0
13682 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
13683 fprintf(f, "unknown unknown\n");
13684 exit(2);
13685 }
13686
13687 if (fprint_ll(f, llmin) < 0)
13688 exit(3);
13689 if (fprint_ll(f, llmax) < 0)
13690 exit(4);
13691 if (fclose(f) < 0)
13692 exit(5);
13693 exit(0);
13694
13695 ;
13696 return 0;
13697}
13698_ACEOF
13699if ac_fn_c_try_run "$LINENO"; then :
13700
13701 llong_min=`$AWK '{print $1}' conftest.llminmax`
13702 llong_max=`$AWK '{print $2}' conftest.llminmax`
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
13705$as_echo "$llong_max" >&6; }
13706
13707cat >>confdefs.h <<_ACEOF
13708#define LLONG_MAX ${llong_max}LL
13709_ACEOF
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
13712$as_echo_n "checking for min value of long long... " >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
13714$as_echo "$llong_min" >&6; }
13715
13716cat >>confdefs.h <<_ACEOF
13717#define LLONG_MIN ${llong_min}LL
13718_ACEOF
13719
13720
13721else
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13724$as_echo "not found" >&6; }
13725
13726fi
13727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13729fi
13730
13731fi
13732
13733
13734# More checks for data types
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
13736$as_echo_n "checking for u_int type... " >&6; }
13737if ${ac_cv_have_u_int+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739else
13740
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h. */
13743 #include <sys/types.h>
13744int
13745main ()
13746{
13747 u_int a; a = 1;
13748 ;
13749 return 0;
13750}
13751_ACEOF
13752if ac_fn_c_try_compile "$LINENO"; then :
13753 ac_cv_have_u_int="yes"
13754else
13755 ac_cv_have_u_int="no"
13756
13757fi
13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759
13760fi
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
13762$as_echo "$ac_cv_have_u_int" >&6; }
13763if test "x$ac_cv_have_u_int" = "xyes" ; then
13764
13765$as_echo "#define HAVE_U_INT 1" >>confdefs.h
13766
13767 have_u_int=1
13768fi
13769
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
13771$as_echo_n "checking for intXX_t types... " >&6; }
13772if ${ac_cv_have_intxx_t+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774else
13775
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h. */
13778 #include <sys/types.h>
13779int
13780main ()
13781{
13782 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13783 ;
13784 return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_compile "$LINENO"; then :
13788 ac_cv_have_intxx_t="yes"
13789else
13790 ac_cv_have_intxx_t="no"
13791
13792fi
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794
13795fi
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
13797$as_echo "$ac_cv_have_intxx_t" >&6; }
13798if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13799
13800$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13801
13802 have_intxx_t=1
13803fi
13804
13805if (test -z "$have_intxx_t" && \
13806 test "x$ac_cv_header_stdint_h" = "xyes")
13807then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
13809$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h. */
13812 #include <stdint.h>
13813int
13814main ()
13815{
13816 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13817 ;
13818 return 0;
13819}
13820_ACEOF
13821if ac_fn_c_try_compile "$LINENO"; then :
13822
13823 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826$as_echo "yes" >&6; }
13827
13828else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830$as_echo "no" >&6; }
13831
13832fi
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834fi
13835
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
13837$as_echo_n "checking for int64_t type... " >&6; }
13838if ${ac_cv_have_int64_t+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840else
13841
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843/* end confdefs.h. */
13844
13845#include <sys/types.h>
13846#ifdef HAVE_STDINT_H
13847# include <stdint.h>
13848#endif
13849#include <sys/socket.h>
13850#ifdef HAVE_SYS_BITYPES_H
13851# include <sys/bitypes.h>
13852#endif
13853
13854int
13855main ()
13856{
13857
13858int64_t a; a = 1;
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864if ac_fn_c_try_compile "$LINENO"; then :
13865 ac_cv_have_int64_t="yes"
13866else
13867 ac_cv_have_int64_t="no"
13868
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871
13872fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
13874$as_echo "$ac_cv_have_int64_t" >&6; }
13875if test "x$ac_cv_have_int64_t" = "xyes" ; then
13876
13877$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
13878
13879fi
13880
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
13882$as_echo_n "checking for u_intXX_t types... " >&6; }
13883if ${ac_cv_have_u_intxx_t+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885else
13886
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h. */
13889 #include <sys/types.h>
13890int
13891main ()
13892{
13893 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_compile "$LINENO"; then :
13899 ac_cv_have_u_intxx_t="yes"
13900else
13901 ac_cv_have_u_intxx_t="no"
13902
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905
13906fi
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
13908$as_echo "$ac_cv_have_u_intxx_t" >&6; }
13909if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
13910
13911$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13912
13913 have_u_intxx_t=1
13914fi
13915
13916if test -z "$have_u_intxx_t" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
13918$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h. */
13921 #include <sys/socket.h>
13922int
13923main ()
13924{
13925 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930if ac_fn_c_try_compile "$LINENO"; then :
13931
13932 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13935$as_echo "yes" >&6; }
13936
13937else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939$as_echo "no" >&6; }
13940
13941fi
13942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943fi
13944
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
13946$as_echo_n "checking for u_int64_t types... " >&6; }
13947if ${ac_cv_have_u_int64_t+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949else
13950
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h. */
13953 #include <sys/types.h>
13954int
13955main ()
13956{
13957 u_int64_t a; a = 1;
13958 ;
13959 return 0;
13960}
13961_ACEOF
13962if ac_fn_c_try_compile "$LINENO"; then :
13963 ac_cv_have_u_int64_t="yes"
13964else
13965 ac_cv_have_u_int64_t="no"
13966
13967fi
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969
13970fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
13972$as_echo "$ac_cv_have_u_int64_t" >&6; }
13973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
13974
13975$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13976
13977 have_u_int64_t=1
13978fi
13979
13980if (test -z "$have_u_int64_t" && \
13981 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13982then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
13984$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986/* end confdefs.h. */
13987 #include <sys/bitypes.h>
13988int
13989main ()
13990{
13991 u_int64_t a; a = 1
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996if ac_fn_c_try_compile "$LINENO"; then :
13997
13998 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14001$as_echo "yes" >&6; }
14002
14003else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005$as_echo "no" >&6; }
14006
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009fi
14010
14011if test -z "$have_u_intxx_t" ; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14013$as_echo_n "checking for uintXX_t types... " >&6; }
14014if ${ac_cv_have_uintxx_t+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016else
14017
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h. */
14020
14021#include <sys/types.h>
14022
14023int
14024main ()
14025{
14026
14027 uint8_t a;
14028 uint16_t b;
14029 uint32_t c;
14030 a = b = c = 1;
14031
14032 ;
14033 return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_compile "$LINENO"; then :
14037 ac_cv_have_uintxx_t="yes"
14038else
14039 ac_cv_have_uintxx_t="no"
14040
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043
14044fi
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14046$as_echo "$ac_cv_have_uintxx_t" >&6; }
14047 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14048
14049$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14050
14051 fi
14052fi
14053
14054if (test -z "$have_uintxx_t" && \
14055 test "x$ac_cv_header_stdint_h" = "xyes")
14056then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14058$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060/* end confdefs.h. */
14061 #include <stdint.h>
14062int
14063main ()
14064{
14065 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070if ac_fn_c_try_compile "$LINENO"; then :
14071
14072 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075$as_echo "yes" >&6; }
14076
14077else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079$as_echo "no" >&6; }
14080
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083fi
14084
14085if (test -z "$have_uintxx_t" && \
14086 test "x$ac_cv_header_inttypes_h" = "xyes")
14087then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14089$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h. */
14092 #include <inttypes.h>
14093int
14094main ()
14095{
14096 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14097 ;
14098 return 0;
14099}
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102
14103 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106$as_echo "yes" >&6; }
14107
14108else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111
14112fi
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114fi
14115
14116if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14117 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14118then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14120$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h. */
14123
14124#include <sys/bitypes.h>
14125
14126int
14127main ()
14128{
14129
14130 int8_t a; int16_t b; int32_t c;
14131 u_int8_t e; u_int16_t f; u_int32_t g;
14132 a = b = c = e = f = g = 1;
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138if ac_fn_c_try_compile "$LINENO"; then :
14139
14140 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14141
14142 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14145$as_echo "yes" >&6; }
14146
14147else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149$as_echo "no" >&6; }
14150
14151fi
14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153fi
14154
14155
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
14157$as_echo_n "checking for u_char... " >&6; }
14158if ${ac_cv_have_u_char+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160else
14161
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h. */
14164 #include <sys/types.h>
14165int
14166main ()
14167{
14168 u_char foo; foo = 125;
14169 ;
14170 return 0;
14171}
14172_ACEOF
14173if ac_fn_c_try_compile "$LINENO"; then :
14174 ac_cv_have_u_char="yes"
14175else
14176 ac_cv_have_u_char="no"
14177
14178fi
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
14183$as_echo "$ac_cv_have_u_char" >&6; }
14184if test "x$ac_cv_have_u_char" = "xyes" ; then
14185
14186$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
14187
14188fi
14189
14190ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
14191#include <sys/types.h>
14192#include <stdint.h>
14193
14194"
14195if test "x$ac_cv_type_intmax_t" = xyes; then :
14196
14197cat >>confdefs.h <<_ACEOF
14198#define HAVE_INTMAX_T 1
14199_ACEOF
14200
14201
14202fi
14203ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
14204#include <sys/types.h>
14205#include <stdint.h>
14206
14207"
14208if test "x$ac_cv_type_uintmax_t" = xyes; then :
14209
14210cat >>confdefs.h <<_ACEOF
14211#define HAVE_UINTMAX_T 1
14212_ACEOF
14213
14214
14215fi
14216
14217
14218
14219 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14220#include <sys/socket.h>
14221"
14222if test "x$ac_cv_type_socklen_t" = xyes; then :
14223
14224else
14225
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14227$as_echo_n "checking for socklen_t equivalent... " >&6; }
14228 if ${curl_cv_socklen_t_equiv+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230else
14231
14232 # Systems have either "struct sockaddr *" or
14233 # "void *" as the second argument to getpeername
14234 curl_cv_socklen_t_equiv=
14235 for arg2 in "struct sockaddr" void; do
14236 for t in int size_t unsigned long "unsigned long"; do
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h. */
14239
14240 #include <sys/types.h>
14241 #include <sys/socket.h>
14242
14243 int getpeername (int, $arg2 *, $t *);
14244
14245int
14246main ()
14247{
14248
14249 $t len;
14250 getpeername(0,0,&len);
14251
14252 ;
14253 return 0;
14254}
14255_ACEOF
14256if ac_fn_c_try_compile "$LINENO"; then :
14257
14258 curl_cv_socklen_t_equiv="$t"
14259 break
14260
14261fi
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 done
14264 done
14265
14266 if test "x$curl_cv_socklen_t_equiv" = x; then
14267 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14268 fi
14269
14270fi
14271
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
14273$as_echo "$curl_cv_socklen_t_equiv" >&6; }
14274
14275cat >>confdefs.h <<_ACEOF
14276#define socklen_t $curl_cv_socklen_t_equiv
14277_ACEOF
14278
14279fi
14280
14281
14282
14283ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
14284"
14285if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
14286
14287cat >>confdefs.h <<_ACEOF
14288#define HAVE_SIG_ATOMIC_T 1
14289_ACEOF
14290
14291
14292fi
14293
14294ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14295#include <sys/types.h>
14296#ifdef HAVE_SYS_BITYPES_H
14297#include <sys/bitypes.h>
14298#endif
14299#ifdef HAVE_SYS_STATFS_H
14300#include <sys/statfs.h>
14301#endif
14302#ifdef HAVE_SYS_STATVFS_H
14303#include <sys/statvfs.h>
14304#endif
14305
14306"
14307if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14308
14309cat >>confdefs.h <<_ACEOF
14310#define HAVE_FSBLKCNT_T 1
14311_ACEOF
14312
14313
14314fi
14315ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14316#include <sys/types.h>
14317#ifdef HAVE_SYS_BITYPES_H
14318#include <sys/bitypes.h>
14319#endif
14320#ifdef HAVE_SYS_STATFS_H
14321#include <sys/statfs.h>
14322#endif
14323#ifdef HAVE_SYS_STATVFS_H
14324#include <sys/statvfs.h>
14325#endif
14326
14327"
14328if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14329
14330cat >>confdefs.h <<_ACEOF
14331#define HAVE_FSFILCNT_T 1
14332_ACEOF
14333
14334
14335fi
14336
14337
14338ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
14339#include <netinet/in.h>
14340"
14341if test "x$ac_cv_type_in_addr_t" = xyes; then :
14342
14343cat >>confdefs.h <<_ACEOF
14344#define HAVE_IN_ADDR_T 1
14345_ACEOF
14346
14347
14348fi
14349ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
14350#include <netinet/in.h>
14351"
14352if test "x$ac_cv_type_in_port_t" = xyes; then :
14353
14354cat >>confdefs.h <<_ACEOF
14355#define HAVE_IN_PORT_T 1
14356_ACEOF
14357
14358
14359fi
14360
14361
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14363$as_echo_n "checking for size_t... " >&6; }
14364if ${ac_cv_have_size_t+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366else
14367
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h. */
14370 #include <sys/types.h>
14371int
14372main ()
14373{
14374 size_t foo; foo = 1235;
14375 ;
14376 return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_compile "$LINENO"; then :
14380 ac_cv_have_size_t="yes"
14381else
14382 ac_cv_have_size_t="no"
14383
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
14389$as_echo "$ac_cv_have_size_t" >&6; }
14390if test "x$ac_cv_have_size_t" = "xyes" ; then
14391
14392$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
14393
14394fi
14395
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14397$as_echo_n "checking for ssize_t... " >&6; }
14398if ${ac_cv_have_ssize_t+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400else
14401
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404 #include <sys/types.h>
14405int
14406main ()
14407{
14408 ssize_t foo; foo = 1235;
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413if ac_fn_c_try_compile "$LINENO"; then :
14414 ac_cv_have_ssize_t="yes"
14415else
14416 ac_cv_have_ssize_t="no"
14417
14418fi
14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420
14421fi
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
14423$as_echo "$ac_cv_have_ssize_t" >&6; }
14424if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14425
14426$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
14427
14428fi
14429
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
14431$as_echo_n "checking for clock_t... " >&6; }
14432if ${ac_cv_have_clock_t+:} false; then :
14433 $as_echo_n "(cached) " >&6
14434else
14435
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437/* end confdefs.h. */
14438 #include <time.h>
14439int
14440main ()
14441{
14442 clock_t foo; foo = 1235;
14443 ;
14444 return 0;
14445}
14446_ACEOF
14447if ac_fn_c_try_compile "$LINENO"; then :
14448 ac_cv_have_clock_t="yes"
14449else
14450 ac_cv_have_clock_t="no"
14451
14452fi
14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
14457$as_echo "$ac_cv_have_clock_t" >&6; }
14458if test "x$ac_cv_have_clock_t" = "xyes" ; then
14459
14460$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
14461
14462fi
14463
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
14465$as_echo_n "checking for sa_family_t... " >&6; }
14466if ${ac_cv_have_sa_family_t+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468else
14469
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h. */
14472
14473#include <sys/types.h>
14474#include <sys/socket.h>
14475
14476int
14477main ()
14478{
14479 sa_family_t foo; foo = 1235;
14480 ;
14481 return 0;
14482}
14483_ACEOF
14484if ac_fn_c_try_compile "$LINENO"; then :
14485 ac_cv_have_sa_family_t="yes"
14486else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h. */
14489
14490#include <sys/types.h>
14491#include <sys/socket.h>
14492#include <netinet/in.h>
14493
14494int
14495main ()
14496{
14497 sa_family_t foo; foo = 1235;
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"; then :
14503 ac_cv_have_sa_family_t="yes"
14504else
14505 ac_cv_have_sa_family_t="no"
14506
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509
14510fi
14511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512
14513fi
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
14515$as_echo "$ac_cv_have_sa_family_t" >&6; }
14516if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
14517
14518$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
14519
14520fi
14521
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
14523$as_echo_n "checking for pid_t... " >&6; }
14524if ${ac_cv_have_pid_t+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526else
14527
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h. */
14530 #include <sys/types.h>
14531int
14532main ()
14533{
14534 pid_t foo; foo = 1235;
14535 ;
14536 return 0;
14537}
14538_ACEOF
14539if ac_fn_c_try_compile "$LINENO"; then :
14540 ac_cv_have_pid_t="yes"
14541else
14542 ac_cv_have_pid_t="no"
14543
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
14549$as_echo "$ac_cv_have_pid_t" >&6; }
14550if test "x$ac_cv_have_pid_t" = "xyes" ; then
14551
14552$as_echo "#define HAVE_PID_T 1" >>confdefs.h
14553
14554fi
14555
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
14557$as_echo_n "checking for mode_t... " >&6; }
14558if ${ac_cv_have_mode_t+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560else
14561
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563/* end confdefs.h. */
14564 #include <sys/types.h>
14565int
14566main ()
14567{
14568 mode_t foo; foo = 1235;
14569 ;
14570 return 0;
14571}
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"; then :
14574 ac_cv_have_mode_t="yes"
14575else
14576 ac_cv_have_mode_t="no"
14577
14578fi
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
14583$as_echo "$ac_cv_have_mode_t" >&6; }
14584if test "x$ac_cv_have_mode_t" = "xyes" ; then
14585
14586$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
14587
14588fi
14589
14590
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
14592$as_echo_n "checking for struct sockaddr_storage... " >&6; }
14593if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595else
14596
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598/* end confdefs.h. */
14599
14600#include <sys/types.h>
14601#include <sys/socket.h>
14602
14603int
14604main ()
14605{
14606 struct sockaddr_storage s;
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612 ac_cv_have_struct_sockaddr_storage="yes"
14613else
14614 ac_cv_have_struct_sockaddr_storage="no"
14615
14616fi
14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618
14619fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
14621$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
14622if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
14623
14624$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
14625
14626fi
14627
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
14629$as_echo_n "checking for struct sockaddr_in6... " >&6; }
14630if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632else
14633
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635/* end confdefs.h. */
14636
14637#include <sys/types.h>
14638#include <netinet/in.h>
14639
14640int
14641main ()
14642{
14643 struct sockaddr_in6 s; s.sin6_family = 0;
14644 ;
14645 return 0;
14646}
14647_ACEOF
14648if ac_fn_c_try_compile "$LINENO"; then :
14649 ac_cv_have_struct_sockaddr_in6="yes"
14650else
14651 ac_cv_have_struct_sockaddr_in6="no"
14652
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
14658$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
14659if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
14660
14661$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
14662
14663fi
14664
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
14666$as_echo_n "checking for struct in6_addr... " >&6; }
14667if ${ac_cv_have_struct_in6_addr+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669else
14670
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672/* end confdefs.h. */
14673
14674#include <sys/types.h>
14675#include <netinet/in.h>
14676
14677int
14678main ()
14679{
14680 struct in6_addr s; s.s6_addr[0] = 0;
14681 ;
14682 return 0;
14683}
14684_ACEOF
14685if ac_fn_c_try_compile "$LINENO"; then :
14686 ac_cv_have_struct_in6_addr="yes"
14687else
14688 ac_cv_have_struct_in6_addr="no"
14689
14690fi
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692
14693fi
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
14695$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
14696if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
14697
14698$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
14699
14700
14701 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
14702#ifdef HAVE_SYS_TYPES_H
14703#include <sys/types.h>
14704#endif
14705#include <netinet/in.h>
14706
14707"
14708if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14709
14710cat >>confdefs.h <<_ACEOF
14711#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14712_ACEOF
14713
14714
14715fi
14716
14717fi
14718
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
14720$as_echo_n "checking for struct addrinfo... " >&6; }
14721if ${ac_cv_have_struct_addrinfo+:} false; then :
14722 $as_echo_n "(cached) " >&6
14723else
14724
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h. */
14727
14728#include <sys/types.h>
14729#include <sys/socket.h>
14730#include <netdb.h>
14731
14732int
14733main ()
14734{
14735 struct addrinfo s; s.ai_flags = AI_PASSIVE;
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740if ac_fn_c_try_compile "$LINENO"; then :
14741 ac_cv_have_struct_addrinfo="yes"
14742else
14743 ac_cv_have_struct_addrinfo="no"
14744
14745fi
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
14750$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
14751if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14752
14753$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
14754
14755fi
14756
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
14758$as_echo_n "checking for struct timeval... " >&6; }
14759if ${ac_cv_have_struct_timeval+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761else
14762
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h. */
14765 #include <sys/time.h>
14766int
14767main ()
14768{
14769 struct timeval tv; tv.tv_sec = 1;
14770 ;
14771 return 0;
14772}
14773_ACEOF
14774if ac_fn_c_try_compile "$LINENO"; then :
14775 ac_cv_have_struct_timeval="yes"
14776else
14777 ac_cv_have_struct_timeval="no"
14778
14779fi
14780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781
14782fi
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
14784$as_echo "$ac_cv_have_struct_timeval" >&6; }
14785if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14786
14787$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
14788
14789 have_struct_timeval=1
14790fi
14791
14792ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
14793if test "x$ac_cv_type_struct_timespec" = xyes; then :
14794
14795cat >>confdefs.h <<_ACEOF
14796#define HAVE_STRUCT_TIMESPEC 1
14797_ACEOF
14798
14799
14800fi
14801
14802
14803# We need int64_t or else certian parts of the compile will fail.
14804if test "x$ac_cv_have_int64_t" = "xno" && \
14805 test "x$ac_cv_sizeof_long_int" != "x8" && \
14806 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
14807 echo "OpenSSH requires int64_t support. Contact your vendor or install"
14808 echo "an alternative compiler (I.E., GCC) before continuing."
14809 echo ""
14810 exit 1;
14811else
14812 if test "$cross_compiling" = yes; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
14814$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14815
14816else
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h. */
14819
14820#include <stdio.h>
14821#include <string.h>
14822#ifdef HAVE_SNPRINTF
14823main()
14824{
14825 char buf[50];
14826 char expected_out[50];
14827 int mazsize = 50 ;
14828#if (SIZEOF_LONG_INT == 8)
14829 long int num = 0x7fffffffffffffff;
14830#else
14831 long long num = 0x7fffffffffffffffll;
14832#endif
14833 strcpy(expected_out, "9223372036854775807");
14834 snprintf(buf, mazsize, "%lld", num);
14835 if(strcmp(buf, expected_out) != 0)
14836 exit(1);
14837 exit(0);
14838}
14839#else
14840main() { exit(0); }
14841#endif
14842
14843_ACEOF
14844if ac_fn_c_try_run "$LINENO"; then :
14845 true
14846else
14847 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
14848
14849fi
14850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14851 conftest.$ac_objext conftest.beam conftest.$ac_ext
14852fi
14853
14854fi
14855
14856
14857# look for field 'ut_host' in header 'utmp.h'
14858 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14859 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
14861$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
14862 if eval \${$ossh_varname+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864else
14865
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h. */
14868#include <utmp.h>
14869
14870_ACEOF
14871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "ut_host" >/dev/null 2>&1; then :
14873 eval "$ossh_varname=yes"
14874else
14875 eval "$ossh_varname=no"
14876fi
14877rm -f conftest*
14878
14879fi
14880
14881 ossh_result=`eval 'echo $'"$ossh_varname"`
14882 if test -n "`echo $ossh_varname`"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14884$as_echo "$ossh_result" >&6; }
14885 if test "x$ossh_result" = "xyes"; then
14886
14887$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
14888
14889 fi
14890 else
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892$as_echo "no" >&6; }
14893 fi
14894
14895
14896# look for field 'ut_host' in header 'utmpx.h'
14897 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14898 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
14900$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
14901 if eval \${$ossh_varname+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903else
14904
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906/* end confdefs.h. */
14907#include <utmpx.h>
14908
14909_ACEOF
14910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "ut_host" >/dev/null 2>&1; then :
14912 eval "$ossh_varname=yes"
14913else
14914 eval "$ossh_varname=no"
14915fi
14916rm -f conftest*
14917
14918fi
14919
14920 ossh_result=`eval 'echo $'"$ossh_varname"`
14921 if test -n "`echo $ossh_varname`"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14923$as_echo "$ossh_result" >&6; }
14924 if test "x$ossh_result" = "xyes"; then
14925
14926$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
14927
14928 fi
14929 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931$as_echo "no" >&6; }
14932 fi
14933
14934
14935# look for field 'syslen' in header 'utmpx.h'
14936 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14937 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
14939$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
14940 if eval \${$ossh_varname+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942else
14943
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h. */
14946#include <utmpx.h>
14947
14948_ACEOF
14949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "syslen" >/dev/null 2>&1; then :
14951 eval "$ossh_varname=yes"
14952else
14953 eval "$ossh_varname=no"
14954fi
14955rm -f conftest*
14956
14957fi
14958
14959 ossh_result=`eval 'echo $'"$ossh_varname"`
14960 if test -n "`echo $ossh_varname`"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14962$as_echo "$ossh_result" >&6; }
14963 if test "x$ossh_result" = "xyes"; then
14964
14965$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
14966
14967 fi
14968 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970$as_echo "no" >&6; }
14971 fi
14972
14973
14974# look for field 'ut_pid' in header 'utmp.h'
14975 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14976 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
14978$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
14979 if eval \${$ossh_varname+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981else
14982
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h. */
14985#include <utmp.h>
14986
14987_ACEOF
14988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989 $EGREP "ut_pid" >/dev/null 2>&1; then :
14990 eval "$ossh_varname=yes"
14991else
14992 eval "$ossh_varname=no"
14993fi
14994rm -f conftest*
14995
14996fi
14997
14998 ossh_result=`eval 'echo $'"$ossh_varname"`
14999 if test -n "`echo $ossh_varname`"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15001$as_echo "$ossh_result" >&6; }
15002 if test "x$ossh_result" = "xyes"; then
15003
15004$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15005
15006 fi
15007 else
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009$as_echo "no" >&6; }
15010 fi
15011
15012
15013# look for field 'ut_type' in header 'utmp.h'
15014 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15015 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15017$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15018 if eval \${$ossh_varname+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h. */
15024#include <utmp.h>
15025
15026_ACEOF
15027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028 $EGREP "ut_type" >/dev/null 2>&1; then :
15029 eval "$ossh_varname=yes"
15030else
15031 eval "$ossh_varname=no"
15032fi
15033rm -f conftest*
15034
15035fi
15036
15037 ossh_result=`eval 'echo $'"$ossh_varname"`
15038 if test -n "`echo $ossh_varname`"; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15040$as_echo "$ossh_result" >&6; }
15041 if test "x$ossh_result" = "xyes"; then
15042
15043$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15044
15045 fi
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048$as_echo "no" >&6; }
15049 fi
15050
15051
15052# look for field 'ut_type' in header 'utmpx.h'
15053 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15054 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15056$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15057 if eval \${$ossh_varname+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059else
15060
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062/* end confdefs.h. */
15063#include <utmpx.h>
15064
15065_ACEOF
15066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067 $EGREP "ut_type" >/dev/null 2>&1; then :
15068 eval "$ossh_varname=yes"
15069else
15070 eval "$ossh_varname=no"
15071fi
15072rm -f conftest*
15073
15074fi
15075
15076 ossh_result=`eval 'echo $'"$ossh_varname"`
15077 if test -n "`echo $ossh_varname`"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15079$as_echo "$ossh_result" >&6; }
15080 if test "x$ossh_result" = "xyes"; then
15081
15082$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15083
15084 fi
15085 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087$as_echo "no" >&6; }
15088 fi
15089
15090
15091# look for field 'ut_tv' in header 'utmp.h'
15092 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15093 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15095$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15096 if eval \${$ossh_varname+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098else
15099
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101/* end confdefs.h. */
15102#include <utmp.h>
15103
15104_ACEOF
15105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15106 $EGREP "ut_tv" >/dev/null 2>&1; then :
15107 eval "$ossh_varname=yes"
15108else
15109 eval "$ossh_varname=no"
15110fi
15111rm -f conftest*
15112
15113fi
15114
15115 ossh_result=`eval 'echo $'"$ossh_varname"`
15116 if test -n "`echo $ossh_varname`"; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15118$as_echo "$ossh_result" >&6; }
15119 if test "x$ossh_result" = "xyes"; then
15120
15121$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15122
15123 fi
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126$as_echo "no" >&6; }
15127 fi
15128
15129
15130# look for field 'ut_id' in header 'utmp.h'
15131 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15132 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15134$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15135 if eval \${$ossh_varname+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137else
15138
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h. */
15141#include <utmp.h>
15142
15143_ACEOF
15144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "ut_id" >/dev/null 2>&1; then :
15146 eval "$ossh_varname=yes"
15147else
15148 eval "$ossh_varname=no"
15149fi
15150rm -f conftest*
15151
15152fi
15153
15154 ossh_result=`eval 'echo $'"$ossh_varname"`
15155 if test -n "`echo $ossh_varname`"; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15157$as_echo "$ossh_result" >&6; }
15158 if test "x$ossh_result" = "xyes"; then
15159
15160$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
15161
15162 fi
15163 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165$as_echo "no" >&6; }
15166 fi
15167
15168
15169# look for field 'ut_id' in header 'utmpx.h'
15170 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15171 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
15173$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
15174 if eval \${$ossh_varname+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176else
15177
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h. */
15180#include <utmpx.h>
15181
15182_ACEOF
15183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15184 $EGREP "ut_id" >/dev/null 2>&1; then :
15185 eval "$ossh_varname=yes"
15186else
15187 eval "$ossh_varname=no"
15188fi
15189rm -f conftest*
15190
15191fi
15192
15193 ossh_result=`eval 'echo $'"$ossh_varname"`
15194 if test -n "`echo $ossh_varname`"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15196$as_echo "$ossh_result" >&6; }
15197 if test "x$ossh_result" = "xyes"; then
15198
15199$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
15200
15201 fi
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204$as_echo "no" >&6; }
15205 fi
15206
15207
15208# look for field 'ut_addr' in header 'utmp.h'
15209 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15210 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
15212$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
15213 if eval \${$ossh_varname+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215else
15216
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h. */
15219#include <utmp.h>
15220
15221_ACEOF
15222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 $EGREP "ut_addr" >/dev/null 2>&1; then :
15224 eval "$ossh_varname=yes"
15225else
15226 eval "$ossh_varname=no"
15227fi
15228rm -f conftest*
15229
15230fi
15231
15232 ossh_result=`eval 'echo $'"$ossh_varname"`
15233 if test -n "`echo $ossh_varname`"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15235$as_echo "$ossh_result" >&6; }
15236 if test "x$ossh_result" = "xyes"; then
15237
15238$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
15239
15240 fi
15241 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243$as_echo "no" >&6; }
15244 fi
15245
15246
15247# look for field 'ut_addr' in header 'utmpx.h'
15248 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15249 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
15251$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
15252 if eval \${$ossh_varname+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254else
15255
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h. */
15258#include <utmpx.h>
15259
15260_ACEOF
15261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "ut_addr" >/dev/null 2>&1; then :
15263 eval "$ossh_varname=yes"
15264else
15265 eval "$ossh_varname=no"
15266fi
15267rm -f conftest*
15268
15269fi
15270
15271 ossh_result=`eval 'echo $'"$ossh_varname"`
15272 if test -n "`echo $ossh_varname`"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15274$as_echo "$ossh_result" >&6; }
15275 if test "x$ossh_result" = "xyes"; then
15276
15277$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
15278
15279 fi
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282$as_echo "no" >&6; }
15283 fi
15284
15285
15286# look for field 'ut_addr_v6' in header 'utmp.h'
15287 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15288 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
15290$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
15291 if eval \${$ossh_varname+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293else
15294
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h. */
15297#include <utmp.h>
15298
15299_ACEOF
15300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15301 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15302 eval "$ossh_varname=yes"
15303else
15304 eval "$ossh_varname=no"
15305fi
15306rm -f conftest*
15307
15308fi
15309
15310 ossh_result=`eval 'echo $'"$ossh_varname"`
15311 if test -n "`echo $ossh_varname`"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15313$as_echo "$ossh_result" >&6; }
15314 if test "x$ossh_result" = "xyes"; then
15315
15316$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
15317
15318 fi
15319 else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321$as_echo "no" >&6; }
15322 fi
15323
15324
15325# look for field 'ut_addr_v6' in header 'utmpx.h'
15326 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15327 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
15329$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
15330 if eval \${$ossh_varname+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332else
15333
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335/* end confdefs.h. */
15336#include <utmpx.h>
15337
15338_ACEOF
15339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15340 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15341 eval "$ossh_varname=yes"
15342else
15343 eval "$ossh_varname=no"
15344fi
15345rm -f conftest*
15346
15347fi
15348
15349 ossh_result=`eval 'echo $'"$ossh_varname"`
15350 if test -n "`echo $ossh_varname`"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15352$as_echo "$ossh_result" >&6; }
15353 if test "x$ossh_result" = "xyes"; then
15354
15355$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
15356
15357 fi
15358 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360$as_echo "no" >&6; }
15361 fi
15362
15363
15364# look for field 'ut_exit' in header 'utmp.h'
15365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
15368$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
15369 if eval \${$ossh_varname+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371else
15372
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h. */
15375#include <utmp.h>
15376
15377_ACEOF
15378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379 $EGREP "ut_exit" >/dev/null 2>&1; then :
15380 eval "$ossh_varname=yes"
15381else
15382 eval "$ossh_varname=no"
15383fi
15384rm -f conftest*
15385
15386fi
15387
15388 ossh_result=`eval 'echo $'"$ossh_varname"`
15389 if test -n "`echo $ossh_varname`"; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15391$as_echo "$ossh_result" >&6; }
15392 if test "x$ossh_result" = "xyes"; then
15393
15394$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
15395
15396 fi
15397 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399$as_echo "no" >&6; }
15400 fi
15401
15402
15403# look for field 'ut_time' in header 'utmp.h'
15404 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15405 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
15407$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
15408 if eval \${$ossh_varname+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410else
15411
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413/* end confdefs.h. */
15414#include <utmp.h>
15415
15416_ACEOF
15417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "ut_time" >/dev/null 2>&1; then :
15419 eval "$ossh_varname=yes"
15420else
15421 eval "$ossh_varname=no"
15422fi
15423rm -f conftest*
15424
15425fi
15426
15427 ossh_result=`eval 'echo $'"$ossh_varname"`
15428 if test -n "`echo $ossh_varname`"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15430$as_echo "$ossh_result" >&6; }
15431 if test "x$ossh_result" = "xyes"; then
15432
15433$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
15434
15435 fi
15436 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438$as_echo "no" >&6; }
15439 fi
15440
15441
15442# look for field 'ut_time' in header 'utmpx.h'
15443 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15444 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
15446$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
15447 if eval \${$ossh_varname+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449else
15450
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h. */
15453#include <utmpx.h>
15454
15455_ACEOF
15456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457 $EGREP "ut_time" >/dev/null 2>&1; then :
15458 eval "$ossh_varname=yes"
15459else
15460 eval "$ossh_varname=no"
15461fi
15462rm -f conftest*
15463
15464fi
15465
15466 ossh_result=`eval 'echo $'"$ossh_varname"`
15467 if test -n "`echo $ossh_varname`"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15469$as_echo "$ossh_result" >&6; }
15470 if test "x$ossh_result" = "xyes"; then
15471
15472$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
15473
15474 fi
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477$as_echo "no" >&6; }
15478 fi
15479
15480
15481# look for field 'ut_tv' in header 'utmpx.h'
15482 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15483 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
15485$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
15486 if eval \${$ossh_varname+:} false; then :
15487 $as_echo_n "(cached) " >&6
15488else
15489
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h. */
15492#include <utmpx.h>
15493
15494_ACEOF
15495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "ut_tv" >/dev/null 2>&1; then :
15497 eval "$ossh_varname=yes"
15498else
15499 eval "$ossh_varname=no"
15500fi
15501rm -f conftest*
15502
15503fi
15504
15505 ossh_result=`eval 'echo $'"$ossh_varname"`
15506 if test -n "`echo $ossh_varname`"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15508$as_echo "$ossh_result" >&6; }
15509 if test "x$ossh_result" = "xyes"; then
15510
15511$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
15512
15513 fi
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516$as_echo "no" >&6; }
15517 fi
15518
15519
15520ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15521if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15522
15523cat >>confdefs.h <<_ACEOF
15524#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15525_ACEOF
15526
15527
15528fi
15529
15530ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
15531#include <sys/types.h>
15532#include <pwd.h>
15533
15534"
15535if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
15536
15537cat >>confdefs.h <<_ACEOF
15538#define HAVE_STRUCT_PASSWD_PW_GECOS 1
15539_ACEOF
15540
15541
15542fi
15543ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
15544#include <sys/types.h>
15545#include <pwd.h>
15546
15547"
15548if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
15549
15550cat >>confdefs.h <<_ACEOF
15551#define HAVE_STRUCT_PASSWD_PW_CLASS 1
15552_ACEOF
15553
15554
15555fi
15556ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
15557#include <sys/types.h>
15558#include <pwd.h>
15559
15560"
15561if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
15562
15563cat >>confdefs.h <<_ACEOF
15564#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
15565_ACEOF
15566
15567
15568fi
15569ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
15570#include <sys/types.h>
15571#include <pwd.h>
15572
15573"
15574if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
15575
15576cat >>confdefs.h <<_ACEOF
15577#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
15578_ACEOF
15579
15580
15581fi
15582
15583
15584ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
15585#include <stdio.h>
15586#if HAVE_SYS_TYPES_H
15587# include <sys/types.h>
15588#endif
15589#include <netinet/in.h>
15590#include <arpa/nameser.h>
15591#include <resolv.h>
15592
15593"
15594if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
15595
15596else
15597
15598$as_echo "#define __res_state state" >>confdefs.h
15599
15600fi
15601
15602
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
15604$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
15605if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607else
15608
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611
15612#include <sys/types.h>
15613#include <sys/socket.h>
15614
15615int
15616main ()
15617{
15618 struct sockaddr_storage s; s.ss_family = 1;
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then :
15624 ac_cv_have_ss_family_in_struct_ss="yes"
15625else
15626 ac_cv_have_ss_family_in_struct_ss="no"
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629
15630fi
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15632$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
15633if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15634
15635$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
15636
15637fi
15638
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
15640$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
15641if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643else
15644
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h. */
15647
15648#include <sys/types.h>
15649#include <sys/socket.h>
15650
15651int
15652main ()
15653{
15654 struct sockaddr_storage s; s.__ss_family = 1;
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659if ac_fn_c_try_compile "$LINENO"; then :
15660 ac_cv_have___ss_family_in_struct_ss="yes"
15661else
15662 ac_cv_have___ss_family_in_struct_ss="no"
15663
15664fi
15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15669$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
15670if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15671
15672$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15673
15674fi
15675
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
15677$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
15678if ${ac_cv_have_accrights_in_msghdr+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680else
15681
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h. */
15684
15685#include <sys/types.h>
15686#include <sys/socket.h>
15687#include <sys/uio.h>
15688
15689int
15690main ()
15691{
15692
15693#ifdef msg_accrights
15694#error "msg_accrights is a macro"
15695exit(1);
15696#endif
15697struct msghdr m;
15698m.msg_accrights = 0;
15699exit(0);
15700
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705if ac_fn_c_try_compile "$LINENO"; then :
15706 ac_cv_have_accrights_in_msghdr="yes"
15707else
15708 ac_cv_have_accrights_in_msghdr="no"
15709
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
15715$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
15716if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15717
15718$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
15719
15720fi
15721
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
15723$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
15724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725/* end confdefs.h. */
15726
15727#include <sys/param.h>
15728#include <sys/stat.h>
15729#ifdef HAVE_SYS_TIME_H
15730# include <sys/time.h>
15731#endif
15732#ifdef HAVE_SYS_MOUNT_H
15733#include <sys/mount.h>
15734#endif
15735#ifdef HAVE_SYS_STATVFS_H
15736#include <sys/statvfs.h>
15737#endif
15738
15739int
15740main ()
15741{
15742 struct statvfs s; s.f_fsid = 0;
15743 ;
15744 return 0;
15745}
15746_ACEOF
15747if ac_fn_c_try_compile "$LINENO"; then :
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749$as_echo "yes" >&6; }
15750else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752$as_echo "no" >&6; }
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
15755$as_echo_n "checking if fsid_t has member val... " >&6; }
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h. */
15758
15759#include <sys/types.h>
15760#include <sys/statvfs.h>
15761
15762int
15763main ()
15764{
15765 fsid_t t; t.val[0] = 0;
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770if ac_fn_c_try_compile "$LINENO"; then :
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15772$as_echo "yes" >&6; }
15773
15774$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
15775
15776else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
15779fi
15780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
15783$as_echo_n "checking if f_fsid has member __val... " >&6; }
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h. */
15786
15787#include <sys/types.h>
15788#include <sys/statvfs.h>
15789
15790int
15791main ()
15792{
15793 fsid_t t; t.__val[0] = 0;
15794 ;
15795 return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_compile "$LINENO"; then :
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800$as_echo "yes" >&6; }
15801
15802$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
15803
15804else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806$as_echo "no" >&6; }
15807fi
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
15814$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
15815if ${ac_cv_have_control_in_msghdr+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817else
15818
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h. */
15821
15822#include <sys/types.h>
15823#include <sys/socket.h>
15824#include <sys/uio.h>
15825
15826int
15827main ()
15828{
15829
15830#ifdef msg_control
15831#error "msg_control is a macro"
15832exit(1);
15833#endif
15834struct msghdr m;
15835m.msg_control = 0;
15836exit(0);
15837
15838 ;
15839 return 0;
15840}
15841_ACEOF
15842if ac_fn_c_try_compile "$LINENO"; then :
15843 ac_cv_have_control_in_msghdr="yes"
15844else
15845 ac_cv_have_control_in_msghdr="no"
15846
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849
15850fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
15852$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
15853if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15854
15855$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
15856
15857fi
15858
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
15860$as_echo_n "checking if libc defines __progname... " >&6; }
15861if ${ac_cv_libc_defines___progname+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863else
15864
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h. */
15867
15868int
15869main ()
15870{
15871 extern char *__progname; printf("%s", __progname);
15872 ;
15873 return 0;
15874}
15875_ACEOF
15876if ac_fn_c_try_link "$LINENO"; then :
15877 ac_cv_libc_defines___progname="yes"
15878else
15879 ac_cv_libc_defines___progname="no"
15880
15881fi
15882rm -f core conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
15884
15885fi
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
15887$as_echo "$ac_cv_libc_defines___progname" >&6; }
15888if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15889
15890$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15891
15892fi
15893
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
15895$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
15896if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898else
15899
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902 #include <stdio.h>
15903int
15904main ()
15905{
15906 printf("%s", __FUNCTION__);
15907 ;
15908 return 0;
15909}
15910_ACEOF
15911if ac_fn_c_try_link "$LINENO"; then :
15912 ac_cv_cc_implements___FUNCTION__="yes"
15913else
15914 ac_cv_cc_implements___FUNCTION__="no"
15915
15916fi
15917rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
15922$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
15923if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15924
15925$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15926
15927fi
15928
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
15930$as_echo_n "checking whether $CC implements __func__... " >&6; }
15931if ${ac_cv_cc_implements___func__+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933else
15934
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936/* end confdefs.h. */
15937 #include <stdio.h>
15938int
15939main ()
15940{
15941 printf("%s", __func__);
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946if ac_fn_c_try_link "$LINENO"; then :
15947 ac_cv_cc_implements___func__="yes"
15948else
15949 ac_cv_cc_implements___func__="no"
15950
15951fi
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954
15955fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
15957$as_echo "$ac_cv_cc_implements___func__" >&6; }
15958if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15959
15960$as_echo "#define HAVE___func__ 1" >>confdefs.h
15961
15962fi
15963
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
15965$as_echo_n "checking whether va_copy exists... " >&6; }
15966if ${ac_cv_have_va_copy+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968else
15969
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971/* end confdefs.h. */
15972
15973#include <stdarg.h>
15974va_list x,y;
15975
15976int
15977main ()
15978{
15979 va_copy(x,y);
15980 ;
15981 return 0;
15982}
15983_ACEOF
15984if ac_fn_c_try_link "$LINENO"; then :
15985 ac_cv_have_va_copy="yes"
15986else
15987 ac_cv_have_va_copy="no"
15988
15989fi
15990rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
15995$as_echo "$ac_cv_have_va_copy" >&6; }
15996if test "x$ac_cv_have_va_copy" = "xyes" ; then
15997
15998$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
15999
16000fi
16001
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16003$as_echo_n "checking whether __va_copy exists... " >&6; }
16004if ${ac_cv_have___va_copy+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006else
16007
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h. */
16010
16011#include <stdarg.h>
16012va_list x,y;
16013
16014int
16015main ()
16016{
16017 __va_copy(x,y);
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022if ac_fn_c_try_link "$LINENO"; then :
16023 ac_cv_have___va_copy="yes"
16024else
16025 ac_cv_have___va_copy="no"
16026
16027fi
16028rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030
16031fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16033$as_echo "$ac_cv_have___va_copy" >&6; }
16034if test "x$ac_cv_have___va_copy" = "xyes" ; then
16035
16036$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16037
16038fi
16039
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16041$as_echo_n "checking whether getopt has optreset support... " >&6; }
16042if ${ac_cv_have_getopt_optreset+:} false; then :
16043 $as_echo_n "(cached) " >&6
16044else
16045
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h. */
16048 #include <getopt.h>
16049int
16050main ()
16051{
16052 extern int optreset; optreset = 0;
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_have_getopt_optreset="yes"
16059else
16060 ac_cv_have_getopt_optreset="no"
16061
16062fi
16063rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16068$as_echo "$ac_cv_have_getopt_optreset" >&6; }
16069if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16070
16071$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16072
16073fi
16074
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16076$as_echo_n "checking if libc defines sys_errlist... " >&6; }
16077if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079else
16080
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h. */
16083
16084int
16085main ()
16086{
16087 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_libc_defines_sys_errlist="yes"
16094else
16095 ac_cv_libc_defines_sys_errlist="no"
16096
16097fi
16098rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100
16101fi
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16103$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16104if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16105
16106$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16107
16108fi
16109
16110
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16112$as_echo_n "checking if libc defines sys_nerr... " >&6; }
16113if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115else
16116
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118/* end confdefs.h. */
16119
16120int
16121main ()
16122{
16123 extern int sys_nerr; printf("%i", sys_nerr);
16124 ;
16125 return 0;
16126}
16127_ACEOF
16128if ac_fn_c_try_link "$LINENO"; then :
16129 ac_cv_libc_defines_sys_nerr="yes"
16130else
16131 ac_cv_libc_defines_sys_nerr="no"
16132
16133fi
16134rm -f core conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16136
16137fi
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
16139$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
16140if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16141
16142$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
16143
16144fi
16145
16146# Check libraries needed by DNS fingerprint support
16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
16148$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
16149if ${ac_cv_search_getrrsetbyname+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151else
16152 ac_func_search_save_LIBS=$LIBS
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h. */
16155
16156/* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16159#ifdef __cplusplus
16160extern "C"
16161#endif
16162char getrrsetbyname ();
16163int
16164main ()
16165{
16166return getrrsetbyname ();
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171for ac_lib in '' resolv; do
16172 if test -z "$ac_lib"; then
16173 ac_res="none required"
16174 else
16175 ac_res=-l$ac_lib
16176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16177 fi
16178 if ac_fn_c_try_link "$LINENO"; then :
16179 ac_cv_search_getrrsetbyname=$ac_res
16180fi
16181rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext
16183 if ${ac_cv_search_getrrsetbyname+:} false; then :
16184 break
16185fi
16186done
16187if ${ac_cv_search_getrrsetbyname+:} false; then :
16188
16189else
16190 ac_cv_search_getrrsetbyname=no
16191fi
16192rm conftest.$ac_ext
16193LIBS=$ac_func_search_save_LIBS
16194fi
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
16196$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
16197ac_res=$ac_cv_search_getrrsetbyname
16198if test "$ac_res" != no; then :
16199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16200
16201$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
16202
16203else
16204
16205 # Needed by our getrrsetbyname()
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
16207$as_echo_n "checking for library containing res_query... " >&6; }
16208if ${ac_cv_search_res_query+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210else
16211 ac_func_search_save_LIBS=$LIBS
16212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214
16215/* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218#ifdef __cplusplus
16219extern "C"
16220#endif
16221char res_query ();
16222int
16223main ()
16224{
16225return res_query ();
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230for ac_lib in '' resolv; do
16231 if test -z "$ac_lib"; then
16232 ac_res="none required"
16233 else
16234 ac_res=-l$ac_lib
16235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16236 fi
16237 if ac_fn_c_try_link "$LINENO"; then :
16238 ac_cv_search_res_query=$ac_res
16239fi
16240rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext
16242 if ${ac_cv_search_res_query+:} false; then :
16243 break
16244fi
16245done
16246if ${ac_cv_search_res_query+:} false; then :
16247
16248else
16249 ac_cv_search_res_query=no
16250fi
16251rm conftest.$ac_ext
16252LIBS=$ac_func_search_save_LIBS
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
16255$as_echo "$ac_cv_search_res_query" >&6; }
16256ac_res=$ac_cv_search_res_query
16257if test "$ac_res" != no; then :
16258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16259
16260fi
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16263$as_echo_n "checking for library containing dn_expand... " >&6; }
16264if ${ac_cv_search_dn_expand+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266else
16267 ac_func_search_save_LIBS=$LIBS
16268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h. */
16270
16271/* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16274#ifdef __cplusplus
16275extern "C"
16276#endif
16277char dn_expand ();
16278int
16279main ()
16280{
16281return dn_expand ();
16282 ;
16283 return 0;
16284}
16285_ACEOF
16286for ac_lib in '' resolv; do
16287 if test -z "$ac_lib"; then
16288 ac_res="none required"
16289 else
16290 ac_res=-l$ac_lib
16291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16292 fi
16293 if ac_fn_c_try_link "$LINENO"; then :
16294 ac_cv_search_dn_expand=$ac_res
16295fi
16296rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext
16298 if ${ac_cv_search_dn_expand+:} false; then :
16299 break
16300fi
16301done
16302if ${ac_cv_search_dn_expand+:} false; then :
16303
16304else
16305 ac_cv_search_dn_expand=no
16306fi
16307rm conftest.$ac_ext
16308LIBS=$ac_func_search_save_LIBS
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16311$as_echo "$ac_cv_search_dn_expand" >&6; }
16312ac_res=$ac_cv_search_dn_expand
16313if test "$ac_res" != no; then :
16314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16315
16316fi
16317
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
16319$as_echo_n "checking if res_query will link... " >&6; }
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h. */
16322
16323#include <sys/types.h>
16324#include <netinet/in.h>
16325#include <arpa/nameser.h>
16326#include <netdb.h>
16327#include <resolv.h>
16328
16329int
16330main ()
16331{
16332
16333 res_query (0, 0, 0, 0, 0);
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16341$as_echo "yes" >&6; }
16342else
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344$as_echo "no" >&6; }
16345 saved_LIBS="$LIBS"
16346 LIBS="$LIBS -lresolv"
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16348$as_echo_n "checking for res_query in -lresolv... " >&6; }
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h. */
16351
16352#include <sys/types.h>
16353#include <netinet/in.h>
16354#include <arpa/nameser.h>
16355#include <netdb.h>
16356#include <resolv.h>
16357
16358int
16359main ()
16360{
16361
16362 res_query (0, 0, 0, 0, 0);
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_link "$LINENO"; then :
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370$as_echo "yes" >&6; }
16371else
16372 LIBS="$saved_LIBS"
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374$as_echo "no" >&6; }
16375fi
16376rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16378
16379fi
16380rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16382 for ac_func in _getshort _getlong
16383do :
16384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16386if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16387 cat >>confdefs.h <<_ACEOF
16388#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16389_ACEOF
16390
16391fi
16392done
16393
16394 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
16395 #include <arpa/nameser.h>
16396"
16397if test "x$ac_cv_have_decl__getshort" = xyes; then :
16398 ac_have_decl=1
16399else
16400 ac_have_decl=0
16401fi
16402
16403cat >>confdefs.h <<_ACEOF
16404#define HAVE_DECL__GETSHORT $ac_have_decl
16405_ACEOF
16406ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
16407 #include <arpa/nameser.h>
16408"
16409if test "x$ac_cv_have_decl__getlong" = xyes; then :
16410 ac_have_decl=1
16411else
16412 ac_have_decl=0
16413fi
16414
16415cat >>confdefs.h <<_ACEOF
16416#define HAVE_DECL__GETLONG $ac_have_decl
16417_ACEOF
16418
16419 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16420"
16421if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16422
16423$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
16424
16425fi
16426
16427
16428fi
16429
16430
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
16432$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
16433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h. */
16435
16436#include <stdio.h>
16437#if HAVE_SYS_TYPES_H
16438# include <sys/types.h>
16439#endif
16440#include <netinet/in.h>
16441#include <arpa/nameser.h>
16442#include <resolv.h>
16443extern struct __res_state _res;
16444
16445int
16446main ()
16447{
16448
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453if ac_fn_c_try_link "$LINENO"; then :
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455$as_echo "yes" >&6; }
16456
16457$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
16458
16459
16460else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462$as_echo "no" >&6; }
16463
16464fi
16465rm -f core conftest.err conftest.$ac_objext \
16466 conftest$ac_exeext conftest.$ac_ext
16467
16468# Check whether user wants SELinux support
16469SELINUX_MSG="no"
16470LIBSELINUX=""
16471
16472# Check whether --with-selinux was given.
16473if test "${with_selinux+set}" = set; then :
16474 withval=$with_selinux; if test "x$withval" != "xno" ; then
16475 save_LIBS="$LIBS"
16476
16477$as_echo "#define WITH_SELINUX 1" >>confdefs.h
16478
16479 SELINUX_MSG="yes"
16480 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
16481if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
16482
16483else
16484 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
16485fi
16486
16487
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
16489$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
16490if ${ac_cv_lib_selinux_setexeccon+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492else
16493 ac_check_lib_save_LIBS=$LIBS
16494LIBS="-lselinux $LIBS"
16495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h. */
16497
16498/* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16501#ifdef __cplusplus
16502extern "C"
16503#endif
16504char setexeccon ();
16505int
16506main ()
16507{
16508return setexeccon ();
16509 ;
16510 return 0;
16511}
16512_ACEOF
16513if ac_fn_c_try_link "$LINENO"; then :
16514 ac_cv_lib_selinux_setexeccon=yes
16515else
16516 ac_cv_lib_selinux_setexeccon=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16520LIBS=$ac_check_lib_save_LIBS
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
16523$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
16524if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
16525 LIBSELINUX="-lselinux"
16526 LIBS="$LIBS -lselinux"
16527
16528else
16529 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
16530fi
16531
16532 SSHLIBS="$SSHLIBS $LIBSELINUX"
16533 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
16534 for ac_func in getseuserbyname get_default_context_with_level
16535do :
16536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16539 cat >>confdefs.h <<_ACEOF
16540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541_ACEOF
16542
16543fi
16544done
16545
16546 LIBS="$save_LIBS"
16547 fi
16548
16549fi
16550
16551
16552
16553
16554# Check whether user wants Kerberos 5 support
16555KRB5_MSG="no"
16556
16557# Check whether --with-kerberos5 was given.
16558if test "${with_kerberos5+set}" = set; then :
16559 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
16560 if test "x$withval" = "xyes" ; then
16561 KRB5ROOT="/usr/local"
16562 else
16563 KRB5ROOT=${withval}
16564 fi
16565
16566
16567$as_echo "#define KRB5 1" >>confdefs.h
16568
16569 KRB5_MSG="yes"
16570
16571 # Extract the first word of "krb5-config", so it can be a program name with args.
16572set dummy krb5-config; ac_word=$2
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16574$as_echo_n "checking for $ac_word... " >&6; }
16575if ${ac_cv_path_KRB5CONF+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 case $KRB5CONF in
16579 [\\/]* | ?:[\\/]*)
16580 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
16581 ;;
16582 *)
16583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16584as_dummy="$KRB5ROOT/bin:$PATH"
16585for as_dir in $as_dummy
16586do
16587 IFS=$as_save_IFS
16588 test -z "$as_dir" && as_dir=.
16589 for ac_exec_ext in '' $ac_executable_extensions; do
16590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16591 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
16592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16593 break 2
16594 fi
16595done
16596 done
16597IFS=$as_save_IFS
16598
16599 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
16600 ;;
16601esac
16602fi
16603KRB5CONF=$ac_cv_path_KRB5CONF
16604if test -n "$KRB5CONF"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
16606$as_echo "$KRB5CONF" >&6; }
16607else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609$as_echo "no" >&6; }
16610fi
16611
16612
16613 if test -x $KRB5CONF ; then
16614 K5CFLAGS="`$KRB5CONF --cflags`"
16615 K5LIBS="`$KRB5CONF --libs`"
16616 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
16617
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
16619$as_echo_n "checking for gssapi support... " >&6; }
16620 if $KRB5CONF | grep gssapi >/dev/null ; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623
16624$as_echo "#define GSSAPI 1" >>confdefs.h
16625
16626 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
16627 GSSLIBS="`$KRB5CONF --libs gssapi`"
16628 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
16629 else
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631$as_echo "no" >&6; }
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16634$as_echo_n "checking whether we are using Heimdal... " >&6; }
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h. */
16637 #include <krb5.h>
16638
16639int
16640main ()
16641{
16642 char *tmp = heimdal_version;
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647if ac_fn_c_try_compile "$LINENO"; then :
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16649$as_echo "yes" >&6; }
16650
16651$as_echo "#define HEIMDAL 1" >>confdefs.h
16652
16653else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655$as_echo "no" >&6; }
16656
16657fi
16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 else
16660 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16661 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16663$as_echo_n "checking whether we are using Heimdal... " >&6; }
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h. */
16666 #include <krb5.h>
16667
16668int
16669main ()
16670{
16671 char *tmp = heimdal_version;
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then :
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678$as_echo "yes" >&6; }
16679 $as_echo "#define HEIMDAL 1" >>confdefs.h
16680
16681 K5LIBS="-lkrb5"
16682 K5LIBS="$K5LIBS -lcom_err -lasn1"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
16684$as_echo_n "checking for net_write in -lroken... " >&6; }
16685if ${ac_cv_lib_roken_net_write+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687else
16688 ac_check_lib_save_LIBS=$LIBS
16689LIBS="-lroken $LIBS"
16690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h. */
16692
16693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699char net_write ();
16700int
16701main ()
16702{
16703return net_write ();
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708if ac_fn_c_try_link "$LINENO"; then :
16709 ac_cv_lib_roken_net_write=yes
16710else
16711 ac_cv_lib_roken_net_write=no
16712fi
16713rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16715LIBS=$ac_check_lib_save_LIBS
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
16718$as_echo "$ac_cv_lib_roken_net_write" >&6; }
16719if test "x$ac_cv_lib_roken_net_write" = xyes; then :
16720 K5LIBS="$K5LIBS -lroken"
16721fi
16722
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16724$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16725if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727else
16728 ac_check_lib_save_LIBS=$LIBS
16729LIBS="-ldes $LIBS"
16730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h. */
16732
16733/* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16736#ifdef __cplusplus
16737extern "C"
16738#endif
16739char des_cbc_encrypt ();
16740int
16741main ()
16742{
16743return des_cbc_encrypt ();
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748if ac_fn_c_try_link "$LINENO"; then :
16749 ac_cv_lib_des_des_cbc_encrypt=yes
16750else
16751 ac_cv_lib_des_des_cbc_encrypt=no
16752fi
16753rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755LIBS=$ac_check_lib_save_LIBS
16756fi
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16758$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16759if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16760 K5LIBS="$K5LIBS -ldes"
16761fi
16762
16763
16764else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766$as_echo "no" >&6; }
16767 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16768
16769
16770fi
16771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16773$as_echo_n "checking for library containing dn_expand... " >&6; }
16774if ${ac_cv_search_dn_expand+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776else
16777 ac_func_search_save_LIBS=$LIBS
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h. */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char dn_expand ();
16788int
16789main ()
16790{
16791return dn_expand ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796for ac_lib in '' resolv; do
16797 if test -z "$ac_lib"; then
16798 ac_res="none required"
16799 else
16800 ac_res=-l$ac_lib
16801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16802 fi
16803 if ac_fn_c_try_link "$LINENO"; then :
16804 ac_cv_search_dn_expand=$ac_res
16805fi
16806rm -f core conftest.err conftest.$ac_objext \
16807 conftest$ac_exeext
16808 if ${ac_cv_search_dn_expand+:} false; then :
16809 break
16810fi
16811done
16812if ${ac_cv_search_dn_expand+:} false; then :
16813
16814else
16815 ac_cv_search_dn_expand=no
16816fi
16817rm conftest.$ac_ext
16818LIBS=$ac_func_search_save_LIBS
16819fi
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16821$as_echo "$ac_cv_search_dn_expand" >&6; }
16822ac_res=$ac_cv_search_dn_expand
16823if test "$ac_res" != no; then :
16824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16825
16826fi
16827
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
16830$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
16831if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833else
16834 ac_check_lib_save_LIBS=$LIBS
16835LIBS="-lgssapi_krb5 $LIBS"
16836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837/* end confdefs.h. */
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char gss_init_sec_context ();
16846int
16847main ()
16848{
16849return gss_init_sec_context ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854if ac_fn_c_try_link "$LINENO"; then :
16855 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16856else
16857 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16858fi
16859rm -f core conftest.err conftest.$ac_objext \
16860 conftest$ac_exeext conftest.$ac_ext
16861LIBS=$ac_check_lib_save_LIBS
16862fi
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16864$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16865if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
16866 $as_echo "#define GSSAPI 1" >>confdefs.h
16867
16868 GSSLIBS="-lgssapi_krb5"
16869else
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
16871$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
16872if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
16873 $as_echo_n "(cached) " >&6
16874else
16875 ac_check_lib_save_LIBS=$LIBS
16876LIBS="-lgssapi $LIBS"
16877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878/* end confdefs.h. */
16879
16880/* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16883#ifdef __cplusplus
16884extern "C"
16885#endif
16886char gss_init_sec_context ();
16887int
16888main ()
16889{
16890return gss_init_sec_context ();
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895if ac_fn_c_try_link "$LINENO"; then :
16896 ac_cv_lib_gssapi_gss_init_sec_context=yes
16897else
16898 ac_cv_lib_gssapi_gss_init_sec_context=no
16899fi
16900rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902LIBS=$ac_check_lib_save_LIBS
16903fi
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
16905$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
16906if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
16907 $as_echo "#define GSSAPI 1" >>confdefs.h
16908
16909 GSSLIBS="-lgssapi"
16910else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
16912$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
16913if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915else
16916 ac_check_lib_save_LIBS=$LIBS
16917LIBS="-lgss $LIBS"
16918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h. */
16920
16921/* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924#ifdef __cplusplus
16925extern "C"
16926#endif
16927char gss_init_sec_context ();
16928int
16929main ()
16930{
16931return gss_init_sec_context ();
16932 ;
16933 return 0;
16934}
16935_ACEOF
16936if ac_fn_c_try_link "$LINENO"; then :
16937 ac_cv_lib_gss_gss_init_sec_context=yes
16938else
16939 ac_cv_lib_gss_gss_init_sec_context=no
16940fi
16941rm -f core conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943LIBS=$ac_check_lib_save_LIBS
16944fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
16946$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
16947if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
16948 $as_echo "#define GSSAPI 1" >>confdefs.h
16949
16950 GSSLIBS="-lgss"
16951else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
16953$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
16954fi
16955
16956
16957fi
16958
16959
16960fi
16961
16962
16963 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16964if test "x$ac_cv_header_gssapi_h" = xyes; then :
16965
16966else
16967 unset ac_cv_header_gssapi_h
16968 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16969 for ac_header in gssapi.h
16970do :
16971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16972if test "x$ac_cv_header_gssapi_h" = xyes; then :
16973 cat >>confdefs.h <<_ACEOF
16974#define HAVE_GSSAPI_H 1
16975_ACEOF
16976
16977else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
16979$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
16980
16981fi
16982
16983done
16984
16985
16986
16987fi
16988
16989
16990
16991 oldCPP="$CPPFLAGS"
16992 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16993 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
16994if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
16995
16996else
16997 CPPFLAGS="$oldCPP"
16998fi
16999
17000
17001
17002 fi
17003 if test ! -z "$need_dash_r" ; then
17004 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17005 fi
17006 if test ! -z "$blibpath" ; then
17007 blibpath="$blibpath:${KRB5ROOT}/lib"
17008 fi
17009
17010 for ac_header in gssapi.h gssapi/gssapi.h
17011do :
17012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17015 cat >>confdefs.h <<_ACEOF
17016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017_ACEOF
17018
17019fi
17020
17021done
17022
17023 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17024do :
17025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17026ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17027if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17028 cat >>confdefs.h <<_ACEOF
17029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030_ACEOF
17031
17032fi
17033
17034done
17035
17036 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17037do :
17038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17039ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17041 cat >>confdefs.h <<_ACEOF
17042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17043_ACEOF
17044
17045fi
17046
17047done
17048
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17051$as_echo_n "checking for library containing k_hasafs... " >&6; }
17052if ${ac_cv_search_k_hasafs+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054else
17055 ac_func_search_save_LIBS=$LIBS
17056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057/* end confdefs.h. */
17058
17059/* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17062#ifdef __cplusplus
17063extern "C"
17064#endif
17065char k_hasafs ();
17066int
17067main ()
17068{
17069return k_hasafs ();
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074for ac_lib in '' kafs; do
17075 if test -z "$ac_lib"; then
17076 ac_res="none required"
17077 else
17078 ac_res=-l$ac_lib
17079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17080 fi
17081 if ac_fn_c_try_link "$LINENO"; then :
17082 ac_cv_search_k_hasafs=$ac_res
17083fi
17084rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext
17086 if ${ac_cv_search_k_hasafs+:} false; then :
17087 break
17088fi
17089done
17090if ${ac_cv_search_k_hasafs+:} false; then :
17091
17092else
17093 ac_cv_search_k_hasafs=no
17094fi
17095rm conftest.$ac_ext
17096LIBS=$ac_func_search_save_LIBS
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
17099$as_echo "$ac_cv_search_k_hasafs" >&6; }
17100ac_res=$ac_cv_search_k_hasafs
17101if test "$ac_res" != no; then :
17102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17103
17104$as_echo "#define USE_AFS 1" >>confdefs.h
17105
17106fi
17107
17108
17109 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
17110#ifdef HAVE_GSSAPI_H
17111# include <gssapi.h>
17112#elif defined(HAVE_GSSAPI_GSSAPI_H)
17113# include <gssapi/gssapi.h>
17114#endif
17115
17116#ifdef HAVE_GSSAPI_GENERIC_H
17117# include <gssapi_generic.h>
17118#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
17119# include <gssapi/gssapi_generic.h>
17120#endif
17121
17122"
17123if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
17124 ac_have_decl=1
17125else
17126 ac_have_decl=0
17127fi
17128
17129cat >>confdefs.h <<_ACEOF
17130#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
17131_ACEOF
17132
17133 saved_LIBS="$LIBS"
17134 LIBS="$LIBS $K5LIBS"
17135 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17136do :
17137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17140 cat >>confdefs.h <<_ACEOF
17141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142_ACEOF
17143
17144fi
17145done
17146
17147 LIBS="$saved_LIBS"
17148
17149 fi
17150
17151
17152fi
17153
17154
17155
17156
17157# Looking for programs, paths and files
17158
17159PRIVSEP_PATH=/var/empty
17160
17161# Check whether --with-privsep-path was given.
17162if test "${with_privsep_path+set}" = set; then :
17163 withval=$with_privsep_path;
17164 if test -n "$withval" && test "x$withval" != "xno" && \
17165 test "x${withval}" != "xyes"; then
17166 PRIVSEP_PATH=$withval
17167 fi
17168
17169
17170fi
17171
17172
17173
17174
17175# Check whether --with-xauth was given.
17176if test "${with_xauth+set}" = set; then :
17177 withval=$with_xauth;
17178 if test -n "$withval" && test "x$withval" != "xno" && \
17179 test "x${withval}" != "xyes"; then
17180 xauth_path=$withval
17181 fi
17182
17183else
17184
17185 TestPath="$PATH"
17186 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
17187 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
17188 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
17189 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17190 # Extract the first word of "xauth", so it can be a program name with args.
17191set dummy xauth; ac_word=$2
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17193$as_echo_n "checking for $ac_word... " >&6; }
17194if ${ac_cv_path_xauth_path+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196else
17197 case $xauth_path in
17198 [\\/]* | ?:[\\/]*)
17199 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
17200 ;;
17201 *)
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203for as_dir in $TestPath
17204do
17205 IFS=$as_save_IFS
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17211 break 2
17212 fi
17213done
17214 done
17215IFS=$as_save_IFS
17216
17217 ;;
17218esac
17219fi
17220xauth_path=$ac_cv_path_xauth_path
17221if test -n "$xauth_path"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
17223$as_echo "$xauth_path" >&6; }
17224else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226$as_echo "no" >&6; }
17227fi
17228
17229
17230 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
17231 xauth_path="/usr/openwin/bin/xauth"
17232 fi
17233
17234
17235fi
17236
17237
17238STRIP_OPT=-s
17239# Check whether --enable-strip was given.
17240if test "${enable_strip+set}" = set; then :
17241 enableval=$enable_strip;
17242 if test "x$enableval" = "xno" ; then
17243 STRIP_OPT=
17244 fi
17245
17246
17247fi
17248
17249
17250
17251if test -z "$xauth_path" ; then
17252 XAUTH_PATH="undefined"
17253
17254else
17255
17256cat >>confdefs.h <<_ACEOF
17257#define XAUTH_PATH "$xauth_path"
17258_ACEOF
17259
17260 XAUTH_PATH=$xauth_path
17261
17262fi
17263
17264# Check for mail directory
17265
17266# Check whether --with-maildir was given.
17267if test "${with_maildir+set}" = set; then :
17268 withval=$with_maildir;
17269 if test "X$withval" != X && test "x$withval" != xno && \
17270 test "x${withval}" != xyes; then
17271
17272cat >>confdefs.h <<_ACEOF
17273#define MAIL_DIRECTORY "$withval"
17274_ACEOF
17275
17276 fi
17277
17278else
17279
17280 if test "X$maildir" != "X"; then
17281 cat >>confdefs.h <<_ACEOF
17282#define MAIL_DIRECTORY "$maildir"
17283_ACEOF
17284
17285 else
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
17287$as_echo_n "checking Discovering system mail directory... " >&6; }
17288 if test "$cross_compiling" = yes; then :
17289
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17291$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17292
17293
17294else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h. */
17297
17298#include <stdio.h>
17299#include <string.h>
17300#ifdef HAVE_PATHS_H
17301#include <paths.h>
17302#endif
17303#ifdef HAVE_MAILLOCK_H
17304#include <maillock.h>
17305#endif
17306#define DATA "conftest.maildir"
17307
17308int
17309main ()
17310{
17311
17312 FILE *fd;
17313 int rc;
17314
17315 fd = fopen(DATA,"w");
17316 if(fd == NULL)
17317 exit(1);
17318
17319#if defined (_PATH_MAILDIR)
17320 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
17321 exit(1);
17322#elif defined (MAILDIR)
17323 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
17324 exit(1);
17325#elif defined (_PATH_MAIL)
17326 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
17327 exit(1);
17328#else
17329 exit (2);
17330#endif
17331
17332 exit(0);
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338if ac_fn_c_try_run "$LINENO"; then :
17339
17340 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17341 maildir=`awk -F: '{print $2}' conftest.maildir \
17342 | sed 's|/$||'`
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
17344$as_echo "Using: $maildir from $maildir_what" >&6; }
17345 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17346 cat >>confdefs.h <<_ACEOF
17347#define MAIL_DIRECTORY "$maildir"
17348_ACEOF
17349
17350 fi
17351
17352else
17353
17354 if test "X$ac_status" = "X2";then
17355# our test program didn't find it. Default to /var/spool/mail
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
17357$as_echo "Using: default value of /var/spool/mail" >&6; }
17358 cat >>confdefs.h <<_ACEOF
17359#define MAIL_DIRECTORY "/var/spool/mail"
17360_ACEOF
17361
17362 else
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
17364$as_echo "*** not found ***" >&6; }
17365 fi
17366
17367fi
17368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17369 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370fi
17371
17372 fi
17373
17374
17375fi
17376 # maildir
17377
17378if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17380$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17381 disable_ptmx_check=yes
17382fi
17383if test -z "$no_dev_ptmx" ; then
17384 if test "x$disable_ptmx_check" != "xyes" ; then
17385 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
17387$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
17388if eval \${$as_ac_File+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390else
17391 test "$cross_compiling" = yes &&
17392 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17393if test -r ""/dev/ptmx""; then
17394 eval "$as_ac_File=yes"
17395else
17396 eval "$as_ac_File=no"
17397fi
17398fi
17399eval ac_res=\$$as_ac_File
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17401$as_echo "$ac_res" >&6; }
17402if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17403
17404
17405cat >>confdefs.h <<_ACEOF
17406#define HAVE_DEV_PTMX 1
17407_ACEOF
17408
17409 have_dev_ptmx=1
17410
17411
17412fi
17413
17414 fi
17415fi
17416
17417if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
17418 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
17420$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
17421if eval \${$as_ac_File+:} false; then :
17422 $as_echo_n "(cached) " >&6
17423else
17424 test "$cross_compiling" = yes &&
17425 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17426if test -r ""/dev/ptc""; then
17427 eval "$as_ac_File=yes"
17428else
17429 eval "$as_ac_File=no"
17430fi
17431fi
17432eval ac_res=\$$as_ac_File
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17434$as_echo "$ac_res" >&6; }
17435if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17436
17437
17438cat >>confdefs.h <<_ACEOF
17439#define HAVE_DEV_PTS_AND_PTC 1
17440_ACEOF
17441
17442 have_dev_ptc=1
17443
17444
17445fi
17446
17447else
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
17449$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
17450fi
17451
17452# Options from here on. Some of these are preset by platform above
17453
17454# Check whether --with-mantype was given.
17455if test "${with_mantype+set}" = set; then :
17456 withval=$with_mantype;
17457 case "$withval" in
17458 man|cat|doc)
17459 MANTYPE=$withval
17460 ;;
17461 *)
17462 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
17463 ;;
17464 esac
17465
17466
17467fi
17468
17469if test -z "$MANTYPE"; then
17470 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
17471 for ac_prog in nroff awf
17472do
17473 # Extract the first word of "$ac_prog", so it can be a program name with args.
17474set dummy $ac_prog; ac_word=$2
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17476$as_echo_n "checking for $ac_word... " >&6; }
17477if ${ac_cv_path_NROFF+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479else
17480 case $NROFF in
17481 [\\/]* | ?:[\\/]*)
17482 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
17483 ;;
17484 *)
17485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17486for as_dir in $TestPath
17487do
17488 IFS=$as_save_IFS
17489 test -z "$as_dir" && as_dir=.
17490 for ac_exec_ext in '' $ac_executable_extensions; do
17491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17492 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17494 break 2
17495 fi
17496done
17497 done
17498IFS=$as_save_IFS
17499
17500 ;;
17501esac
17502fi
17503NROFF=$ac_cv_path_NROFF
17504if test -n "$NROFF"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
17506$as_echo "$NROFF" >&6; }
17507else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509$as_echo "no" >&6; }
17510fi
17511
17512
17513 test -n "$NROFF" && break
17514done
17515test -n "$NROFF" || NROFF="/bin/false"
17516
17517 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
17518 MANTYPE=doc
17519 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
17520 MANTYPE=man
17521 else
17522 MANTYPE=cat
17523 fi
17524fi
17525
17526if test "$MANTYPE" = "doc"; then
17527 mansubdir=man;
17528else
17529 mansubdir=$MANTYPE;
17530fi
17531
17532
17533# Check whether to enable MD5 passwords
17534MD5_MSG="no"
17535
17536# Check whether --with-md5-passwords was given.
17537if test "${with_md5_passwords+set}" = set; then :
17538 withval=$with_md5_passwords;
17539 if test "x$withval" != "xno" ; then
17540
17541$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
17542
17543 MD5_MSG="yes"
17544 fi
17545
17546
17547fi
17548
17549
17550# Whether to disable shadow password support
17551
17552# Check whether --with-shadow was given.
17553if test "${with_shadow+set}" = set; then :
17554 withval=$with_shadow;
17555 if test "x$withval" = "xno" ; then
17556 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
17557
17558 disable_shadow=yes
17559 fi
17560
17561
17562fi
17563
17564
17565if test -z "$disable_shadow" ; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
17567$as_echo_n "checking if the systems has expire shadow information... " >&6; }
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h. */
17570
17571#include <sys/types.h>
17572#include <shadow.h>
17573struct spwd sp;
17574
17575int
17576main ()
17577{
17578 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_compile "$LINENO"; then :
17584 sp_expire_available=yes
17585fi
17586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587
17588 if test "x$sp_expire_available" = "xyes" ; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17590$as_echo "yes" >&6; }
17591
17592$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
17593
17594 else
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17596$as_echo "no" >&6; }
17597 fi
17598fi
17599
17600# Use ip address instead of hostname in $DISPLAY
17601if test ! -z "$IPADDR_IN_DISPLAY" ; then
17602 DISPLAY_HACK_MSG="yes"
17603
17604$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17605
17606else
17607 DISPLAY_HACK_MSG="no"
17608
17609# Check whether --with-ipaddr-display was given.
17610if test "${with_ipaddr_display+set}" = set; then :
17611 withval=$with_ipaddr_display;
17612 if test "x$withval" != "xno" ; then
17613 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17614
17615 DISPLAY_HACK_MSG="yes"
17616 fi
17617
17618
17619fi
17620
17621fi
17622
17623# check for /etc/default/login and use it if present.
17624# Check whether --enable-etc-default-login was given.
17625if test "${enable_etc_default_login+set}" = set; then :
17626 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
17628$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
17629 etc_default_login=no
17630 else
17631 etc_default_login=yes
17632 fi
17633else
17634 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
17635 then
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
17637$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
17638 etc_default_login=no
17639 else
17640 etc_default_login=yes
17641 fi
17642
17643fi
17644
17645
17646if test "x$etc_default_login" != "xno"; then
17647 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
17649$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
17650if eval \${$as_ac_File+:} false; then :
17651 $as_echo_n "(cached) " >&6
17652else
17653 test "$cross_compiling" = yes &&
17654 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17655if test -r ""/etc/default/login""; then
17656 eval "$as_ac_File=yes"
17657else
17658 eval "$as_ac_File=no"
17659fi
17660fi
17661eval ac_res=\$$as_ac_File
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17663$as_echo "$ac_res" >&6; }
17664if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17665 external_path_file=/etc/default/login
17666fi
17667
17668 if test "x$external_path_file" = "x/etc/default/login"; then
17669
17670$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
17671
17672 fi
17673fi
17674
17675if test $ac_cv_func_login_getcapbool = "yes" && \
17676 test $ac_cv_header_login_cap_h = "yes" ; then
17677 external_path_file=/etc/login.conf
17678fi
17679
17680# Whether to mess with the default path
17681SERVER_PATH_MSG="(default)"
17682
17683# Check whether --with-default-path was given.
17684if test "${with_default_path+set}" = set; then :
17685 withval=$with_default_path;
17686 if test "x$external_path_file" = "x/etc/login.conf" ; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17688--with-default-path=PATH has no effect on this system.
17689Edit /etc/login.conf instead." >&5
17690$as_echo "$as_me: WARNING:
17691--with-default-path=PATH has no effect on this system.
17692Edit /etc/login.conf instead." >&2;}
17693 elif test "x$withval" != "xno" ; then
17694 if test ! -z "$external_path_file" ; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17696--with-default-path=PATH will only be used if PATH is not defined in
17697$external_path_file ." >&5
17698$as_echo "$as_me: WARNING:
17699--with-default-path=PATH will only be used if PATH is not defined in
17700$external_path_file ." >&2;}
17701 fi
17702 user_path="$withval"
17703 SERVER_PATH_MSG="$withval"
17704 fi
17705
17706else
17707 if test "x$external_path_file" = "x/etc/login.conf" ; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17709$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17710 else
17711 if test ! -z "$external_path_file" ; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17713If PATH is defined in $external_path_file, ensure the path to scp is included,
17714otherwise scp will not work." >&5
17715$as_echo "$as_me: WARNING:
17716If PATH is defined in $external_path_file, ensure the path to scp is included,
17717otherwise scp will not work." >&2;}
17718 fi
17719 if test "$cross_compiling" = yes; then :
17720 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17721
17722else
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724/* end confdefs.h. */
17725
17726/* find out what STDPATH is */
17727#include <stdio.h>
17728#ifdef HAVE_PATHS_H
17729# include <paths.h>
17730#endif
17731#ifndef _PATH_STDPATH
17732# ifdef _PATH_USERPATH /* Irix */
17733# define _PATH_STDPATH _PATH_USERPATH
17734# else
17735# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
17736# endif
17737#endif
17738#include <sys/types.h>
17739#include <sys/stat.h>
17740#include <fcntl.h>
17741#define DATA "conftest.stdpath"
17742
17743int
17744main ()
17745{
17746
17747 FILE *fd;
17748 int rc;
17749
17750 fd = fopen(DATA,"w");
17751 if(fd == NULL)
17752 exit(1);
17753
17754 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
17755 exit(1);
17756
17757 exit(0);
17758
17759 ;
17760 return 0;
17761}
17762_ACEOF
17763if ac_fn_c_try_run "$LINENO"; then :
17764 user_path=`cat conftest.stdpath`
17765else
17766 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17767fi
17768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17769 conftest.$ac_objext conftest.beam conftest.$ac_ext
17770fi
17771
17772# make sure $bindir is in USER_PATH so scp will work
17773 t_bindir="${bindir}"
17774 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
17775 t_bindir=`eval echo ${t_bindir}`
17776 case $t_bindir in
17777 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
17778 esac
17779 case $t_bindir in
17780 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
17781 esac
17782 done
17783 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
17784 if test $? -ne 0 ; then
17785 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17786 if test $? -ne 0 ; then
17787 user_path=$user_path:$t_bindir
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17789$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
17790 fi
17791 fi
17792 fi
17793
17794fi
17795
17796if test "x$external_path_file" != "x/etc/login.conf" ; then
17797
17798cat >>confdefs.h <<_ACEOF
17799#define USER_PATH "$user_path"
17800_ACEOF
17801
17802
17803fi
17804
17805# Set superuser path separately to user path
17806
17807# Check whether --with-superuser-path was given.
17808if test "${with_superuser_path+set}" = set; then :
17809 withval=$with_superuser_path;
17810 if test -n "$withval" && test "x$withval" != "xno" && \
17811 test "x${withval}" != "xyes"; then
17812
17813cat >>confdefs.h <<_ACEOF
17814#define SUPERUSER_PATH "$withval"
17815_ACEOF
17816
17817 superuser_path=$withval
17818 fi
17819
17820
17821fi
17822
17823
17824
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17826$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
17827IPV4_IN6_HACK_MSG="no"
17828
17829# Check whether --with-4in6 was given.
17830if test "${with_4in6+set}" = set; then :
17831 withval=$with_4in6;
17832 if test "x$withval" != "xno" ; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17834$as_echo "yes" >&6; }
17835
17836$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17837
17838 IPV4_IN6_HACK_MSG="yes"
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841$as_echo "no" >&6; }
17842 fi
17843
17844else
17845
17846 if test "x$inet6_default_4in6" = "xyes"; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
17848$as_echo "yes (default)" >&6; }
17849 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17850
17851 IPV4_IN6_HACK_MSG="yes"
17852 else
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
17854$as_echo "no (default)" >&6; }
17855 fi
17856
17857
17858fi
17859
17860
17861# Whether to enable BSD auth support
17862BSD_AUTH_MSG=no
17863
17864# Check whether --with-bsd-auth was given.
17865if test "${with_bsd_auth+set}" = set; then :
17866 withval=$with_bsd_auth;
17867 if test "x$withval" != "xno" ; then
17868
17869$as_echo "#define BSD_AUTH 1" >>confdefs.h
17870
17871 BSD_AUTH_MSG=yes
17872 fi
17873
17874
17875fi
17876
17877
17878# Where to place sshd.pid
17879piddir=/var/run
17880# make sure the directory exists
17881if test ! -d $piddir ; then
17882 piddir=`eval echo ${sysconfdir}`
17883 case $piddir in
17884 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
17885 esac
17886fi
17887
17888
17889# Check whether --with-pid-dir was given.
17890if test "${with_pid_dir+set}" = set; then :
17891 withval=$with_pid_dir;
17892 if test -n "$withval" && test "x$withval" != "xno" && \
17893 test "x${withval}" != "xyes"; then
17894 piddir=$withval
17895 if test ! -d $piddir ; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
17897$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17898 fi
17899 fi
17900
17901
17902fi
17903
17904
17905
17906cat >>confdefs.h <<_ACEOF
17907#define _PATH_SSH_PIDDIR "$piddir"
17908_ACEOF
17909
17910
17911
17912# Check whether --enable-lastlog was given.
17913if test "${enable_lastlog+set}" = set; then :
17914 enableval=$enable_lastlog;
17915 if test "x$enableval" = "xno" ; then
17916 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17917
17918 fi
17919
17920
17921fi
17922
17923# Check whether --enable-utmp was given.
17924if test "${enable_utmp+set}" = set; then :
17925 enableval=$enable_utmp;
17926 if test "x$enableval" = "xno" ; then
17927 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17928
17929 fi
17930
17931
17932fi
17933
17934# Check whether --enable-utmpx was given.
17935if test "${enable_utmpx+set}" = set; then :
17936 enableval=$enable_utmpx;
17937 if test "x$enableval" = "xno" ; then
17938
17939$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
17940
17941 fi
17942
17943
17944fi
17945
17946# Check whether --enable-wtmp was given.
17947if test "${enable_wtmp+set}" = set; then :
17948 enableval=$enable_wtmp;
17949 if test "x$enableval" = "xno" ; then
17950 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17951
17952 fi
17953
17954
17955fi
17956
17957# Check whether --enable-wtmpx was given.
17958if test "${enable_wtmpx+set}" = set; then :
17959 enableval=$enable_wtmpx;
17960 if test "x$enableval" = "xno" ; then
17961
17962$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17963
17964 fi
17965
17966
17967fi
17968
17969# Check whether --enable-libutil was given.
17970if test "${enable_libutil+set}" = set; then :
17971 enableval=$enable_libutil;
17972 if test "x$enableval" = "xno" ; then
17973 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
17974
17975 fi
17976
17977
17978fi
17979
17980# Check whether --enable-pututline was given.
17981if test "${enable_pututline+set}" = set; then :
17982 enableval=$enable_pututline;
17983 if test "x$enableval" = "xno" ; then
17984
17985$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
17986
17987 fi
17988
17989
17990fi
17991
17992# Check whether --enable-pututxline was given.
17993if test "${enable_pututxline+set}" = set; then :
17994 enableval=$enable_pututxline;
17995 if test "x$enableval" = "xno" ; then
17996
17997$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
17998
17999 fi
18000
18001
18002fi
18003
18004
18005# Check whether --with-lastlog was given.
18006if test "${with_lastlog+set}" = set; then :
18007 withval=$with_lastlog;
18008 if test "x$withval" = "xno" ; then
18009 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18010
18011 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18012 conf_lastlog_location=$withval
18013 fi
18014
18015
18016fi
18017
18018
18019
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18021$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h. */
18024
18025#include <sys/types.h>
18026#include <utmp.h>
18027#ifdef HAVE_LASTLOG_H
18028# include <lastlog.h>
18029#endif
18030#ifdef HAVE_PATHS_H
18031# include <paths.h>
18032#endif
18033#ifdef HAVE_LOGIN_H
18034# include <login.h>
18035#endif
18036
18037int
18038main ()
18039{
18040 char *lastlog = LASTLOG_FILE;
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045if ac_fn_c_try_compile "$LINENO"; then :
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18047$as_echo "yes" >&6; }
18048else
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051$as_echo "no" >&6; }
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18053$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h. */
18056
18057#include <sys/types.h>
18058#include <utmp.h>
18059#ifdef HAVE_LASTLOG_H
18060# include <lastlog.h>
18061#endif
18062#ifdef HAVE_PATHS_H
18063# include <paths.h>
18064#endif
18065
18066int
18067main ()
18068{
18069 char *lastlog = _PATH_LASTLOG;
18070 ;
18071 return 0;
18072}
18073_ACEOF
18074if ac_fn_c_try_compile "$LINENO"; then :
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18076$as_echo "yes" >&6; }
18077else
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080$as_echo "no" >&6; }
18081 system_lastlog_path=no
18082
18083fi
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085
18086fi
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088
18089if test -z "$conf_lastlog_location"; then
18090 if test x"$system_lastlog_path" = x"no" ; then
18091 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
18092 if (test -d "$f" || test -f "$f") ; then
18093 conf_lastlog_location=$f
18094 fi
18095 done
18096 if test -z "$conf_lastlog_location"; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
18098$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18099 fi
18100 fi
18101fi
18102
18103if test -n "$conf_lastlog_location"; then
18104
18105cat >>confdefs.h <<_ACEOF
18106#define CONF_LASTLOG_FILE "$conf_lastlog_location"
18107_ACEOF
18108
18109fi
18110
18111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
18112$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114/* end confdefs.h. */
18115
18116#include <sys/types.h>
18117#include <utmp.h>
18118#ifdef HAVE_PATHS_H
18119# include <paths.h>
18120#endif
18121
18122int
18123main ()
18124{
18125 char *utmp = UTMP_FILE;
18126 ;
18127 return 0;
18128}
18129_ACEOF
18130if ac_fn_c_try_compile "$LINENO"; then :
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18132$as_echo "yes" >&6; }
18133else
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136 system_utmp_path=no
18137
18138fi
18139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140if test -z "$conf_utmp_location"; then
18141 if test x"$system_utmp_path" = x"no" ; then
18142 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
18143 if test -f $f ; then
18144 conf_utmp_location=$f
18145 fi
18146 done
18147 if test -z "$conf_utmp_location"; then
18148 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18149
18150 fi
18151 fi
18152fi
18153if test -n "$conf_utmp_location"; then
18154
18155cat >>confdefs.h <<_ACEOF
18156#define CONF_UTMP_FILE "$conf_utmp_location"
18157_ACEOF
18158
18159fi
18160
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
18162$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
18163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164/* end confdefs.h. */
18165
18166#include <sys/types.h>
18167#include <utmp.h>
18168#ifdef HAVE_PATHS_H
18169# include <paths.h>
18170#endif
18171
18172int
18173main ()
18174{
18175 char *wtmp = WTMP_FILE;
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180if ac_fn_c_try_compile "$LINENO"; then :
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18182$as_echo "yes" >&6; }
18183else
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185$as_echo "no" >&6; }
18186 system_wtmp_path=no
18187
18188fi
18189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190if test -z "$conf_wtmp_location"; then
18191 if test x"$system_wtmp_path" = x"no" ; then
18192 for f in /usr/adm/wtmp /var/log/wtmp; do
18193 if test -f $f ; then
18194 conf_wtmp_location=$f
18195 fi
18196 done
18197 if test -z "$conf_wtmp_location"; then
18198 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18199
18200 fi
18201 fi
18202fi
18203if test -n "$conf_wtmp_location"; then
18204
18205cat >>confdefs.h <<_ACEOF
18206#define CONF_WTMP_FILE "$conf_wtmp_location"
18207_ACEOF
18208
18209fi
18210
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
18212$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214/* end confdefs.h. */
18215
18216#include <sys/types.h>
18217#include <utmp.h>
18218#ifdef HAVE_UTMPX_H
18219#include <utmpx.h>
18220#endif
18221#ifdef HAVE_PATHS_H
18222# include <paths.h>
18223#endif
18224
18225int
18226main ()
18227{
18228 char *wtmpx = WTMPX_FILE;
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_compile "$LINENO"; then :
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235$as_echo "yes" >&6; }
18236else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18238$as_echo "no" >&6; }
18239 system_wtmpx_path=no
18240
18241fi
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243if test -z "$conf_wtmpx_location"; then
18244 if test x"$system_wtmpx_path" = x"no" ; then
18245 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18246
18247 fi
18248else
18249
18250cat >>confdefs.h <<_ACEOF
18251#define CONF_WTMPX_FILE "$conf_wtmpx_location"
18252_ACEOF
18253
18254fi
18255
18256
18257if test ! -z "$blibpath" ; then
18258 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18260$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18261fi
18262
18263ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
18264#ifdef HAVE_SYS_TYPES_H
18265#include <sys/types.h>
18266#endif
18267#ifdef HAVE_UTMP_H
18268#include <utmp.h>
18269#endif
18270#ifdef HAVE_UTMPX_H
18271#include <utmpx.h>
18272#endif
18273#ifdef HAVE_LASTLOG_H
18274#include <lastlog.h>
18275#endif
18276
18277"
18278if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18279
18280else
18281
18282 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18283 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18284
18285 fi
18286
18287fi
18288
18289
18290ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
18291#ifdef HAVE_SYS_TYPES_H
18292#include <sys/types.h>
18293#endif
18294#ifdef HAVE_UTMP_H
18295#include <utmp.h>
18296#endif
18297#ifdef HAVE_UTMPX_H
18298#include <utmpx.h>
18299#endif
18300#ifdef HAVE_LASTLOG_H
18301#include <lastlog.h>
18302#endif
18303
18304"
18305if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18306
18307else
18308
18309 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18310
18311 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18312
18313
18314fi
18315
18316
18317CFLAGS="$CFLAGS $werror_flags"
18318
18319if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18320 TEST_SSH_IPV6=no
18321else
18322 TEST_SSH_IPV6=yes
18323fi
18324ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
18325if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
18326 TEST_SSH_IPV6=no
18327fi
18328
18329TEST_SSH_IPV6=$TEST_SSH_IPV6
18330
18331TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
18332
18333UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
18334
18335
18336
18337ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
18338
18339cat >confcache <<\_ACEOF
18340# This file is a shell script that caches the results of configure
18341# tests run on this system so they can be shared between configure
18342# scripts and configure runs, see configure's option --config-cache.
18343# It is not useful on other systems. If it contains results you don't
18344# want to keep, you may remove or edit it.
18345#
18346# config.status only pays attention to the cache file if you give it
18347# the --recheck option to rerun configure.
18348#
18349# `ac_cv_env_foo' variables (set or unset) will be overridden when
18350# loading this file, other *unset* `ac_cv_foo' will be assigned the
18351# following values.
18352
18353_ACEOF
18354
18355# The following way of writing the cache mishandles newlines in values,
18356# but we know of no workaround that is simple, portable, and efficient.
18357# So, we kill variables containing newlines.
18358# Ultrix sh set writes to stderr and can't be redirected directly,
18359# and sets the high bit in the cache file unless we assign to the vars.
18360(
18361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18362 eval ac_val=\$$ac_var
18363 case $ac_val in #(
18364 *${as_nl}*)
18365 case $ac_var in #(
18366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18367$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18368 esac
18369 case $ac_var in #(
18370 _ | IFS | as_nl) ;; #(
18371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18372 *) { eval $ac_var=; unset $ac_var;} ;;
18373 esac ;;
18374 esac
18375 done
18376
18377 (set) 2>&1 |
18378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18379 *${as_nl}ac_space=\ *)
18380 # `set' does not quote correctly, so add quotes: double-quote
18381 # substitution turns \\\\ into \\, and sed turns \\ into \.
18382 sed -n \
18383 "s/'/'\\\\''/g;
18384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18385 ;; #(
18386 *)
18387 # `set' quotes correctly as required by POSIX, so do not add quotes.
18388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18389 ;;
18390 esac |
18391 sort
18392) |
18393 sed '
18394 /^ac_cv_env_/b end
18395 t clear
18396 :clear
18397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18398 t end
18399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18400 :end' >>confcache
18401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18402 if test -w "$cache_file"; then
18403 if test "x$cache_file" != "x/dev/null"; then
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18405$as_echo "$as_me: updating cache $cache_file" >&6;}
18406 if test ! -f "$cache_file" || test -h "$cache_file"; then
18407 cat confcache >"$cache_file"
18408 else
18409 case $cache_file in #(
18410 */* | ?:*)
18411 mv -f confcache "$cache_file"$$ &&
18412 mv -f "$cache_file"$$ "$cache_file" ;; #(
18413 *)
18414 mv -f confcache "$cache_file" ;;
18415 esac
18416 fi
18417 fi
18418 else
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18420$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18421 fi
18422fi
18423rm -f confcache
18424
18425test "x$prefix" = xNONE && prefix=$ac_default_prefix
18426# Let make expand exec_prefix.
18427test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18428
18429DEFS=-DHAVE_CONFIG_H
18430
18431ac_libobjs=
18432ac_ltlibobjs=
18433U=
18434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18435 # 1. Remove the extension, and $U if already installed.
18436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18439 # will be set to the directory where LIBOBJS objects are built.
18440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18442done
18443LIBOBJS=$ac_libobjs
18444
18445LTLIBOBJS=$ac_ltlibobjs
18446
18447
18448
18449
18450: "${CONFIG_STATUS=./config.status}"
18451ac_write_fail=0
18452ac_clean_files_save=$ac_clean_files
18453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18454{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18455$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18456as_write_fail=0
18457cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18458#! $SHELL
18459# Generated by $as_me.
18460# Run this file to recreate the current configuration.
18461# Compiler output produced by configure, useful for debugging
18462# configure, is in config.log if it exists.
18463
18464debug=false
18465ac_cs_recheck=false
18466ac_cs_silent=false
18467
18468SHELL=\${CONFIG_SHELL-$SHELL}
18469export SHELL
18470_ASEOF
18471cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18472## -------------------- ##
18473## M4sh Initialization. ##
18474## -------------------- ##
18475
18476# Be more Bourne compatible
18477DUALCASE=1; export DUALCASE # for MKS sh
18478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18479 emulate sh
18480 NULLCMD=:
18481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18482 # is contrary to our usage. Disable this feature.
18483 alias -g '${1+"$@"}'='"$@"'
18484 setopt NO_GLOB_SUBST
18485else
18486 case `(set -o) 2>/dev/null` in #(
18487 *posix*) :
18488 set -o posix ;; #(
18489 *) :
18490 ;;
18491esac
18492fi
18493
18494
18495as_nl='
18496'
18497export as_nl
18498# Printing a long string crashes Solaris 7 /usr/bin/printf.
18499as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18501as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18502# Prefer a ksh shell builtin over an external printf program on Solaris,
18503# but without wasting forks for bash or zsh.
18504if test -z "$BASH_VERSION$ZSH_VERSION" \
18505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18506 as_echo='print -r --'
18507 as_echo_n='print -rn --'
18508elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18509 as_echo='printf %s\n'
18510 as_echo_n='printf %s'
18511else
18512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18514 as_echo_n='/usr/ucb/echo -n'
18515 else
18516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18517 as_echo_n_body='eval
18518 arg=$1;
18519 case $arg in #(
18520 *"$as_nl"*)
18521 expr "X$arg" : "X\\(.*\\)$as_nl";
18522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18523 esac;
18524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18525 '
18526 export as_echo_n_body
18527 as_echo_n='sh -c $as_echo_n_body as_echo'
18528 fi
18529 export as_echo_body
18530 as_echo='sh -c $as_echo_body as_echo'
18531fi
18532
18533# The user is always right.
18534if test "${PATH_SEPARATOR+set}" != set; then
18535 PATH_SEPARATOR=:
18536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18538 PATH_SEPARATOR=';'
18539 }
18540fi
18541
18542
18543# IFS
18544# We need space, tab and new line, in precisely that order. Quoting is
18545# there to prevent editors from complaining about space-tab.
18546# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18547# splitting by setting IFS to empty value.)
18548IFS=" "" $as_nl"
18549
18550# Find who we are. Look in the path if we contain no directory separator.
18551as_myself=
18552case $0 in #((
18553 *[\\/]* ) as_myself=$0 ;;
18554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555for as_dir in $PATH
18556do
18557 IFS=$as_save_IFS
18558 test -z "$as_dir" && as_dir=.
18559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18560 done
18561IFS=$as_save_IFS
18562
18563 ;;
18564esac
18565# We did not find ourselves, most probably we were run as `sh COMMAND'
18566# in which case we are not to be found in the path.
18567if test "x$as_myself" = x; then
18568 as_myself=$0
18569fi
18570if test ! -f "$as_myself"; then
18571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18572 exit 1
18573fi
18574
18575# Unset variables that we do not need and which cause bugs (e.g. in
18576# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18577# suppresses any "Segmentation fault" message there. '((' could
18578# trigger a bug in pdksh 5.2.14.
18579for as_var in BASH_ENV ENV MAIL MAILPATH
18580do eval test x\${$as_var+set} = xset \
18581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18582done
18583PS1='$ '
18584PS2='> '
18585PS4='+ '
18586
18587# NLS nuisances.
18588LC_ALL=C
18589export LC_ALL
18590LANGUAGE=C
18591export LANGUAGE
18592
18593# CDPATH.
18594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18595
18596
18597# as_fn_error STATUS ERROR [LINENO LOG_FD]
18598# ----------------------------------------
18599# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18600# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18601# script with STATUS, using 1 if that was 0.
18602as_fn_error ()
18603{
18604 as_status=$1; test $as_status -eq 0 && as_status=1
18605 if test "$4"; then
18606 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18608 fi
18609 $as_echo "$as_me: error: $2" >&2
18610 as_fn_exit $as_status
18611} # as_fn_error
18612
18613
18614# as_fn_set_status STATUS
18615# -----------------------
18616# Set $? to STATUS, without forking.
18617as_fn_set_status ()
18618{
18619 return $1
18620} # as_fn_set_status
18621
18622# as_fn_exit STATUS
18623# -----------------
18624# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18625as_fn_exit ()
18626{
18627 set +e
18628 as_fn_set_status $1
18629 exit $1
18630} # as_fn_exit
18631
18632# as_fn_unset VAR
18633# ---------------
18634# Portably unset VAR.
18635as_fn_unset ()
18636{
18637 { eval $1=; unset $1;}
18638}
18639as_unset=as_fn_unset
18640# as_fn_append VAR VALUE
18641# ----------------------
18642# Append the text in VALUE to the end of the definition contained in VAR. Take
18643# advantage of any shell optimizations that allow amortized linear growth over
18644# repeated appends, instead of the typical quadratic growth present in naive
18645# implementations.
18646if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18647 eval 'as_fn_append ()
18648 {
18649 eval $1+=\$2
18650 }'
18651else
18652 as_fn_append ()
18653 {
18654 eval $1=\$$1\$2
18655 }
18656fi # as_fn_append
18657
18658# as_fn_arith ARG...
18659# ------------------
18660# Perform arithmetic evaluation on the ARGs, and store the result in the
18661# global $as_val. Take advantage of shells that can avoid forks. The arguments
18662# must be portable across $(()) and expr.
18663if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18664 eval 'as_fn_arith ()
18665 {
18666 as_val=$(( $* ))
18667 }'
18668else
18669 as_fn_arith ()
18670 {
18671 as_val=`expr "$@" || test $? -eq 1`
18672 }
18673fi # as_fn_arith
18674
18675
18676if expr a : '\(a\)' >/dev/null 2>&1 &&
18677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18678 as_expr=expr
18679else
18680 as_expr=false
18681fi
18682
18683if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18684 as_basename=basename
18685else
18686 as_basename=false
18687fi
18688
18689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18690 as_dirname=dirname
18691else
18692 as_dirname=false
18693fi
18694
18695as_me=`$as_basename -- "$0" ||
18696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18697 X"$0" : 'X\(//\)$' \| \
18698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18699$as_echo X/"$0" |
18700 sed '/^.*\/\([^/][^/]*\)\/*$/{
18701 s//\1/
18702 q
18703 }
18704 /^X\/\(\/\/\)$/{
18705 s//\1/
18706 q
18707 }
18708 /^X\/\(\/\).*/{
18709 s//\1/
18710 q
18711 }
18712 s/.*/./; q'`
18713
18714# Avoid depending upon Character Ranges.
18715as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18717as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18718as_cr_digits='0123456789'
18719as_cr_alnum=$as_cr_Letters$as_cr_digits
18720
18721ECHO_C= ECHO_N= ECHO_T=
18722case `echo -n x` in #(((((
18723-n*)
18724 case `echo 'xy\c'` in
18725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18726 xy) ECHO_C='\c';;
18727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18728 ECHO_T=' ';;
18729 esac;;
18730*)
18731 ECHO_N='-n';;
18732esac
18733
18734rm -f conf$$ conf$$.exe conf$$.file
18735if test -d conf$$.dir; then
18736 rm -f conf$$.dir/conf$$.file
18737else
18738 rm -f conf$$.dir
18739 mkdir conf$$.dir 2>/dev/null
18740fi
18741if (echo >conf$$.file) 2>/dev/null; then
18742 if ln -s conf$$.file conf$$ 2>/dev/null; then
18743 as_ln_s='ln -s'
18744 # ... but there are two gotchas:
18745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18747 # In both cases, we have to default to `cp -p'.
18748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18749 as_ln_s='cp -p'
18750 elif ln conf$$.file conf$$ 2>/dev/null; then
18751 as_ln_s=ln
18752 else
18753 as_ln_s='cp -p'
18754 fi
18755else
18756 as_ln_s='cp -p'
18757fi
18758rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18759rmdir conf$$.dir 2>/dev/null
18760
18761
18762# as_fn_mkdir_p
18763# -------------
18764# Create "$as_dir" as a directory, including parents if necessary.
18765as_fn_mkdir_p ()
18766{
18767
18768 case $as_dir in #(
18769 -*) as_dir=./$as_dir;;
18770 esac
18771 test -d "$as_dir" || eval $as_mkdir_p || {
18772 as_dirs=
18773 while :; do
18774 case $as_dir in #(
18775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18776 *) as_qdir=$as_dir;;
18777 esac
18778 as_dirs="'$as_qdir' $as_dirs"
18779 as_dir=`$as_dirname -- "$as_dir" ||
18780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18781 X"$as_dir" : 'X\(//\)[^/]' \| \
18782 X"$as_dir" : 'X\(//\)$' \| \
18783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18784$as_echo X"$as_dir" |
18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\/\)[^/].*/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\).*/{
18798 s//\1/
18799 q
18800 }
18801 s/.*/./; q'`
18802 test -d "$as_dir" && break
18803 done
18804 test -z "$as_dirs" || eval "mkdir $as_dirs"
18805 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18806
18807
18808} # as_fn_mkdir_p
18809if mkdir -p . 2>/dev/null; then
18810 as_mkdir_p='mkdir -p "$as_dir"'
18811else
18812 test -d ./-p && rmdir ./-p
18813 as_mkdir_p=false
18814fi
18815
18816if test -x / >/dev/null 2>&1; then
18817 as_test_x='test -x'
18818else
18819 if ls -dL / >/dev/null 2>&1; then
18820 as_ls_L_option=L
18821 else
18822 as_ls_L_option=
18823 fi
18824 as_test_x='
18825 eval sh -c '\''
18826 if test -d "$1"; then
18827 test -d "$1/.";
18828 else
18829 case $1 in #(
18830 -*)set "./$1";;
18831 esac;
18832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18833 ???[sx]*):;;*)false;;esac;fi
18834 '\'' sh
18835 '
18836fi
18837as_executable_p=$as_test_x
18838
18839# Sed expression to map a string onto a valid CPP name.
18840as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18841
18842# Sed expression to map a string onto a valid variable name.
18843as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18844
18845
18846exec 6>&1
18847## ----------------------------------- ##
18848## Main body of $CONFIG_STATUS script. ##
18849## ----------------------------------- ##
18850_ASEOF
18851test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18852
18853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18854# Save the log message, to keep $0 and so on meaningful, and to
18855# report actual input values of CONFIG_FILES etc. instead of their
18856# values after options handling.
18857ac_log="
18858This file was extended by OpenSSH $as_me Portable, which was
18859generated by GNU Autoconf 2.68. Invocation command line was
18860
18861 CONFIG_FILES = $CONFIG_FILES
18862 CONFIG_HEADERS = $CONFIG_HEADERS
18863 CONFIG_LINKS = $CONFIG_LINKS
18864 CONFIG_COMMANDS = $CONFIG_COMMANDS
18865 $ $0 $@
18866
18867on `(hostname || uname -n) 2>/dev/null | sed 1q`
18868"
18869
18870_ACEOF
18871
18872case $ac_config_files in *"
18873"*) set x $ac_config_files; shift; ac_config_files=$*;;
18874esac
18875
18876case $ac_config_headers in *"
18877"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18878esac
18879
18880
18881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18882# Files that config.status was made for.
18883config_files="$ac_config_files"
18884config_headers="$ac_config_headers"
18885
18886_ACEOF
18887
18888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18889ac_cs_usage="\
18890\`$as_me' instantiates files and other configuration actions
18891from templates according to the current configuration. Unless the files
18892and actions are specified as TAGs, all are instantiated by default.
18893
18894Usage: $0 [OPTION]... [TAG]...
18895
18896 -h, --help print this help, then exit
18897 -V, --version print version number and configuration settings, then exit
18898 --config print configuration, then exit
18899 -q, --quiet, --silent
18900 do not print progress messages
18901 -d, --debug don't remove temporary files
18902 --recheck update $as_me by reconfiguring in the same conditions
18903 --file=FILE[:TEMPLATE]
18904 instantiate the configuration file FILE
18905 --header=FILE[:TEMPLATE]
18906 instantiate the configuration header FILE
18907
18908Configuration files:
18909$config_files
18910
18911Configuration headers:
18912$config_headers
18913
18914Report bugs to <openssh-unix-dev@mindrot.org>."
18915
18916_ACEOF
18917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18918ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18919ac_cs_version="\\
18920OpenSSH config.status Portable
18921configured by $0, generated by GNU Autoconf 2.68,
18922 with options \\"\$ac_cs_config\\"
18923
18924Copyright (C) 2010 Free Software Foundation, Inc.
18925This config.status script is free software; the Free Software Foundation
18926gives unlimited permission to copy, distribute and modify it."
18927
18928ac_pwd='$ac_pwd'
18929srcdir='$srcdir'
18930INSTALL='$INSTALL'
18931AWK='$AWK'
18932test -n "\$AWK" || AWK=awk
18933_ACEOF
18934
18935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18936# The default lists apply if the user does not specify any file.
18937ac_need_defaults=:
18938while test $# != 0
18939do
18940 case $1 in
18941 --*=?*)
18942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18944 ac_shift=:
18945 ;;
18946 --*=)
18947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18948 ac_optarg=
18949 ac_shift=:
18950 ;;
18951 *)
18952 ac_option=$1
18953 ac_optarg=$2
18954 ac_shift=shift
18955 ;;
18956 esac
18957
18958 case $ac_option in
18959 # Handling of the options.
18960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18961 ac_cs_recheck=: ;;
18962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18963 $as_echo "$ac_cs_version"; exit ;;
18964 --config | --confi | --conf | --con | --co | --c )
18965 $as_echo "$ac_cs_config"; exit ;;
18966 --debug | --debu | --deb | --de | --d | -d )
18967 debug=: ;;
18968 --file | --fil | --fi | --f )
18969 $ac_shift
18970 case $ac_optarg in
18971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18972 '') as_fn_error $? "missing file argument" ;;
18973 esac
18974 as_fn_append CONFIG_FILES " '$ac_optarg'"
18975 ac_need_defaults=false;;
18976 --header | --heade | --head | --hea )
18977 $ac_shift
18978 case $ac_optarg in
18979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18980 esac
18981 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18982 ac_need_defaults=false;;
18983 --he | --h)
18984 # Conflict between --help and --header
18985 as_fn_error $? "ambiguous option: \`$1'
18986Try \`$0 --help' for more information.";;
18987 --help | --hel | -h )
18988 $as_echo "$ac_cs_usage"; exit ;;
18989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18991 ac_cs_silent=: ;;
18992
18993 # This is an error.
18994 -*) as_fn_error $? "unrecognized option: \`$1'
18995Try \`$0 --help' for more information." ;;
18996
18997 *) as_fn_append ac_config_targets " $1"
18998 ac_need_defaults=false ;;
18999
19000 esac
19001 shift
19002done
19003
19004ac_configure_extra_args=
19005
19006if $ac_cs_silent; then
19007 exec 6>/dev/null
19008 ac_configure_extra_args="$ac_configure_extra_args --silent"
19009fi
19010
19011_ACEOF
19012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19013if \$ac_cs_recheck; then
19014 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19015 shift
19016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19017 CONFIG_SHELL='$SHELL'
19018 export CONFIG_SHELL
19019 exec "\$@"
19020fi
19021
19022_ACEOF
19023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024exec 5>>config.log
19025{
19026 echo
19027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19028## Running $as_me. ##
19029_ASBOX
19030 $as_echo "$ac_log"
19031} >&5
19032
19033_ACEOF
19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035_ACEOF
19036
19037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038
19039# Handling of arguments.
19040for ac_config_target in $ac_config_targets
19041do
19042 case $ac_config_target in
19043 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19044 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19045 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19046 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19047 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19048 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19049 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19050 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19051
19052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19053 esac
19054done
19055
19056
19057# If the user did not use the arguments to specify the items to instantiate,
19058# then the envvar interface is used. Set only those that are not.
19059# We use the long form for the default assignment because of an extremely
19060# bizarre bug on SunOS 4.1.3.
19061if $ac_need_defaults; then
19062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19064fi
19065
19066# Have a temporary directory for convenience. Make it in the build tree
19067# simply because there is no reason against having it here, and in addition,
19068# creating and moving files from /tmp can sometimes cause problems.
19069# Hook for its removal unless debugging.
19070# Note that there is a small window in which the directory will not be cleaned:
19071# after its creation but before its name has been assigned to `$tmp'.
19072$debug ||
19073{
19074 tmp= ac_tmp=
19075 trap 'exit_status=$?
19076 : "${ac_tmp:=$tmp}"
19077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19078' 0
19079 trap 'as_fn_exit 1' 1 2 13 15
19080}
19081# Create a (secure) tmp directory for tmp files.
19082
19083{
19084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19085 test -d "$tmp"
19086} ||
19087{
19088 tmp=./conf$$-$RANDOM
19089 (umask 077 && mkdir "$tmp")
19090} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19091ac_tmp=$tmp
19092
19093# Set up the scripts for CONFIG_FILES section.
19094# No need to generate them if there are no CONFIG_FILES.
19095# This happens for instance with `./config.status config.h'.
19096if test -n "$CONFIG_FILES"; then
19097
19098
19099ac_cr=`echo X | tr X '\015'`
19100# On cygwin, bash can eat \r inside `` if the user requested igncr.
19101# But we know of no other shell where ac_cr would be empty at this
19102# point, so we can use a bashism as a fallback.
19103if test "x$ac_cr" = x; then
19104 eval ac_cr=\$\'\\r\'
19105fi
19106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19108 ac_cs_awk_cr='\\r'
19109else
19110 ac_cs_awk_cr=$ac_cr
19111fi
19112
19113echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19114_ACEOF
19115
19116
19117{
19118 echo "cat >conf$$subs.awk <<_ACEOF" &&
19119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19120 echo "_ACEOF"
19121} >conf$$subs.sh ||
19122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19124ac_delim='%!_!# '
19125for ac_last_try in false false false false false :; do
19126 . ./conf$$subs.sh ||
19127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19128
19129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19130 if test $ac_delim_n = $ac_delim_num; then
19131 break
19132 elif $ac_last_try; then
19133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19134 else
19135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19136 fi
19137done
19138rm -f conf$$subs.sh
19139
19140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19141cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19142_ACEOF
19143sed -n '
19144h
19145s/^/S["/; s/!.*/"]=/
19146p
19147g
19148s/^[^!]*!//
19149:repl
19150t repl
19151s/'"$ac_delim"'$//
19152t delim
19153:nl
19154h
19155s/\(.\{148\}\)..*/\1/
19156t more1
19157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19158p
19159n
19160b repl
19161:more1
19162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19163p
19164g
19165s/.\{148\}//
19166t nl
19167:delim
19168h
19169s/\(.\{148\}\)..*/\1/
19170t more2
19171s/["\\]/\\&/g; s/^/"/; s/$/"/
19172p
19173b
19174:more2
19175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19176p
19177g
19178s/.\{148\}//
19179t delim
19180' <conf$$subs.awk | sed '
19181/^[^""]/{
19182 N
19183 s/\n//
19184}
19185' >>$CONFIG_STATUS || ac_write_fail=1
19186rm -f conf$$subs.awk
19187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19188_ACAWK
19189cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19190 for (key in S) S_is_set[key] = 1
19191 FS = ""
19192
19193}
19194{
19195 line = $ 0
19196 nfields = split(line, field, "@")
19197 substed = 0
19198 len = length(field[1])
19199 for (i = 2; i < nfields; i++) {
19200 key = field[i]
19201 keylen = length(key)
19202 if (S_is_set[key]) {
19203 value = S[key]
19204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19205 len += length(value) + length(field[++i])
19206 substed = 1
19207 } else
19208 len += 1 + keylen
19209 }
19210
19211 print line
19212}
19213
19214_ACAWK
19215_ACEOF
19216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19219else
19220 cat
19221fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19223_ACEOF
19224
19225# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19227# trailing colons and then remove the whole line if VPATH becomes empty
19228# (actually we leave an empty line to preserve line numbers).
19229if test "x$srcdir" = x.; then
19230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19231h
19232s///
19233s/^/:/
19234s/[ ]*$/:/
19235s/:\$(srcdir):/:/g
19236s/:\${srcdir}:/:/g
19237s/:@srcdir@:/:/g
19238s/^:*//
19239s/:*$//
19240x
19241s/\(=[ ]*\).*/\1/
19242G
19243s/\n//
19244s/^[^=]*=[ ]*$//
19245}'
19246fi
19247
19248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249fi # test -n "$CONFIG_FILES"
19250
19251# Set up the scripts for CONFIG_HEADERS section.
19252# No need to generate them if there are no CONFIG_HEADERS.
19253# This happens for instance with `./config.status Makefile'.
19254if test -n "$CONFIG_HEADERS"; then
19255cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19256BEGIN {
19257_ACEOF
19258
19259# Transform confdefs.h into an awk script `defines.awk', embedded as
19260# here-document in config.status, that substitutes the proper values into
19261# config.h.in to produce config.h.
19262
19263# Create a delimiter string that does not exist in confdefs.h, to ease
19264# handling of long lines.
19265ac_delim='%!_!# '
19266for ac_last_try in false false :; do
19267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19268 if test -z "$ac_tt"; then
19269 break
19270 elif $ac_last_try; then
19271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19272 else
19273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19274 fi
19275done
19276
19277# For the awk script, D is an array of macro values keyed by name,
19278# likewise P contains macro parameters if any. Preserve backslash
19279# newline sequences.
19280
19281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19282sed -n '
19283s/.\{148\}/&'"$ac_delim"'/g
19284t rset
19285:rset
19286s/^[ ]*#[ ]*define[ ][ ]*/ /
19287t def
19288d
19289:def
19290s/\\$//
19291t bsnl
19292s/["\\]/\\&/g
19293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19294D["\1"]=" \3"/p
19295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19296d
19297:bsnl
19298s/["\\]/\\&/g
19299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19300D["\1"]=" \3\\\\\\n"\\/p
19301t cont
19302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19303t cont
19304d
19305:cont
19306n
19307s/.\{148\}/&'"$ac_delim"'/g
19308t clear
19309:clear
19310s/\\$//
19311t bsnlc
19312s/["\\]/\\&/g; s/^/"/; s/$/"/p
19313d
19314:bsnlc
19315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19316b cont
19317' <confdefs.h | sed '
19318s/'"$ac_delim"'/"\\\
19319"/g' >>$CONFIG_STATUS || ac_write_fail=1
19320
19321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19322 for (key in D) D_is_set[key] = 1
19323 FS = ""
19324}
19325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19326 line = \$ 0
19327 split(line, arg, " ")
19328 if (arg[1] == "#") {
19329 defundef = arg[2]
19330 mac1 = arg[3]
19331 } else {
19332 defundef = substr(arg[1], 2)
19333 mac1 = arg[2]
19334 }
19335 split(mac1, mac2, "(") #)
19336 macro = mac2[1]
19337 prefix = substr(line, 1, index(line, defundef) - 1)
19338 if (D_is_set[macro]) {
19339 # Preserve the white space surrounding the "#".
19340 print prefix "define", macro P[macro] D[macro]
19341 next
19342 } else {
19343 # Replace #undef with comments. This is necessary, for example,
19344 # in the case of _POSIX_SOURCE, which is predefined and required
19345 # on some systems where configure will not decide to define it.
19346 if (defundef == "undef") {
19347 print "/*", prefix defundef, macro, "*/"
19348 next
19349 }
19350 }
19351}
19352{ print }
19353_ACAWK
19354_ACEOF
19355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19357fi # test -n "$CONFIG_HEADERS"
19358
19359
19360eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19361shift
19362for ac_tag
19363do
19364 case $ac_tag in
19365 :[FHLC]) ac_mode=$ac_tag; continue;;
19366 esac
19367 case $ac_mode$ac_tag in
19368 :[FHL]*:*);;
19369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19370 :[FH]-) ac_tag=-:-;;
19371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19372 esac
19373 ac_save_IFS=$IFS
19374 IFS=:
19375 set x $ac_tag
19376 IFS=$ac_save_IFS
19377 shift
19378 ac_file=$1
19379 shift
19380
19381 case $ac_mode in
19382 :L) ac_source=$1;;
19383 :[FH])
19384 ac_file_inputs=
19385 for ac_f
19386 do
19387 case $ac_f in
19388 -) ac_f="$ac_tmp/stdin";;
19389 *) # Look for the file first in the build tree, then in the source tree
19390 # (if the path is not absolute). The absolute path cannot be DOS-style,
19391 # because $ac_f cannot contain `:'.
19392 test -f "$ac_f" ||
19393 case $ac_f in
19394 [\\/$]*) false;;
19395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19396 esac ||
19397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19398 esac
19399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19400 as_fn_append ac_file_inputs " '$ac_f'"
19401 done
19402
19403 # Let's still pretend it is `configure' which instantiates (i.e., don't
19404 # use $as_me), people would be surprised to read:
19405 # /* config.h. Generated by config.status. */
19406 configure_input='Generated from '`
19407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19408 `' by configure.'
19409 if test x"$ac_file" != x-; then
19410 configure_input="$ac_file. $configure_input"
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19412$as_echo "$as_me: creating $ac_file" >&6;}
19413 fi
19414 # Neutralize special characters interpreted by sed in replacement strings.
19415 case $configure_input in #(
19416 *\&* | *\|* | *\\* )
19417 ac_sed_conf_input=`$as_echo "$configure_input" |
19418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19419 *) ac_sed_conf_input=$configure_input;;
19420 esac
19421
19422 case $ac_tag in
19423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19425 esac
19426 ;;
19427 esac
19428
19429 ac_dir=`$as_dirname -- "$ac_file" ||
19430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19431 X"$ac_file" : 'X\(//\)[^/]' \| \
19432 X"$ac_file" : 'X\(//\)$' \| \
19433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19434$as_echo X"$ac_file" |
19435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19436 s//\1/
19437 q
19438 }
19439 /^X\(\/\/\)[^/].*/{
19440 s//\1/
19441 q
19442 }
19443 /^X\(\/\/\)$/{
19444 s//\1/
19445 q
19446 }
19447 /^X\(\/\).*/{
19448 s//\1/
19449 q
19450 }
19451 s/.*/./; q'`
19452 as_dir="$ac_dir"; as_fn_mkdir_p
19453 ac_builddir=.
19454
19455case "$ac_dir" in
19456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19457*)
19458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19459 # A ".." for each directory in $ac_dir_suffix.
19460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19461 case $ac_top_builddir_sub in
19462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19464 esac ;;
19465esac
19466ac_abs_top_builddir=$ac_pwd
19467ac_abs_builddir=$ac_pwd$ac_dir_suffix
19468# for backward compatibility:
19469ac_top_builddir=$ac_top_build_prefix
19470
19471case $srcdir in
19472 .) # We are building in place.
19473 ac_srcdir=.
19474 ac_top_srcdir=$ac_top_builddir_sub
19475 ac_abs_top_srcdir=$ac_pwd ;;
19476 [\\/]* | ?:[\\/]* ) # Absolute name.
19477 ac_srcdir=$srcdir$ac_dir_suffix;
19478 ac_top_srcdir=$srcdir
19479 ac_abs_top_srcdir=$srcdir ;;
19480 *) # Relative name.
19481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19482 ac_top_srcdir=$ac_top_build_prefix$srcdir
19483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19484esac
19485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19486
19487
19488 case $ac_mode in
19489 :F)
19490 #
19491 # CONFIG_FILE
19492 #
19493
19494 case $INSTALL in
19495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19497 esac
19498_ACEOF
19499
19500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19501# If the template does not know about datarootdir, expand it.
19502# FIXME: This hack should be removed a few years after 2.60.
19503ac_datarootdir_hack=; ac_datarootdir_seen=
19504ac_sed_dataroot='
19505/datarootdir/ {
19506 p
19507 q
19508}
19509/@datadir@/p
19510/@docdir@/p
19511/@infodir@/p
19512/@localedir@/p
19513/@mandir@/p'
19514case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19515*datarootdir*) ac_datarootdir_seen=yes;;
19516*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19518$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19519_ACEOF
19520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19521 ac_datarootdir_hack='
19522 s&@datadir@&$datadir&g
19523 s&@docdir@&$docdir&g
19524 s&@infodir@&$infodir&g
19525 s&@localedir@&$localedir&g
19526 s&@mandir@&$mandir&g
19527 s&\\\${datarootdir}&$datarootdir&g' ;;
19528esac
19529_ACEOF
19530
19531# Neutralize VPATH when `$srcdir' = `.'.
19532# Shell code in configure.ac might set extrasub.
19533# FIXME: do we really want to maintain this feature?
19534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19535ac_sed_extra="$ac_vpsub
19536$extrasub
19537_ACEOF
19538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19539:t
19540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19541s|@configure_input@|$ac_sed_conf_input|;t t
19542s&@top_builddir@&$ac_top_builddir_sub&;t t
19543s&@top_build_prefix@&$ac_top_build_prefix&;t t
19544s&@srcdir@&$ac_srcdir&;t t
19545s&@abs_srcdir@&$ac_abs_srcdir&;t t
19546s&@top_srcdir@&$ac_top_srcdir&;t t
19547s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19548s&@builddir@&$ac_builddir&;t t
19549s&@abs_builddir@&$ac_abs_builddir&;t t
19550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19551s&@INSTALL@&$ac_INSTALL&;t t
19552$ac_datarootdir_hack
19553"
19554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19556
19557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19562which seems to be undefined. Please make sure it is defined" >&5
19563$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19564which seems to be undefined. Please make sure it is defined" >&2;}
19565
19566 rm -f "$ac_tmp/stdin"
19567 case $ac_file in
19568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19570 esac \
19571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19572 ;;
19573 :H)
19574 #
19575 # CONFIG_HEADER
19576 #
19577 if test x"$ac_file" != x-; then
19578 {
19579 $as_echo "/* $configure_input */" \
19580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19581 } >"$ac_tmp/config.h" \
19582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19585$as_echo "$as_me: $ac_file is unchanged" >&6;}
19586 else
19587 rm -f "$ac_file"
19588 mv "$ac_tmp/config.h" "$ac_file" \
19589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19590 fi
19591 else
19592 $as_echo "/* $configure_input */" \
19593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19594 || as_fn_error $? "could not create -" "$LINENO" 5
19595 fi
19596 ;;
19597
19598
19599 esac
19600
19601done # for ac_tag
19602
19603
19604as_fn_exit 0
19605_ACEOF
19606ac_clean_files=$ac_clean_files_save
19607
19608test $ac_write_fail = 0 ||
19609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19610
19611
19612# configure is writing to config.log, and then calls config.status.
19613# config.status does its own redirection, appending to config.log.
19614# Unfortunately, on DOS this fails, as config.log is still kept open
19615# by configure, so config.status won't be able to write to it; its
19616# output is simply discarded. So we exec the FD to /dev/null,
19617# effectively closing config.log, so it can be properly (re)opened and
19618# appended to by config.status. When coming back to configure, we
19619# need to make the FD available again.
19620if test "$no_create" != yes; then
19621 ac_cs_success=:
19622 ac_config_status_args=
19623 test "$silent" = yes &&
19624 ac_config_status_args="$ac_config_status_args --quiet"
19625 exec 5>/dev/null
19626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19627 exec 5>>config.log
19628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19629 # would make configure fail if this is the last instruction.
19630 $ac_cs_success || as_fn_exit 1
19631fi
19632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19635fi
19636
19637
19638# Print summary of options
19639
19640# Someone please show me a better way :)
19641A=`eval echo ${prefix}` ; A=`eval echo ${A}`
19642B=`eval echo ${bindir}` ; B=`eval echo ${B}`
19643C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
19644D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
19645E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
19646F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
19647G=`eval echo ${piddir}` ; G=`eval echo ${G}`
19648H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
19649I=`eval echo ${user_path}` ; I=`eval echo ${I}`
19650J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
19651
19652echo ""
19653echo "OpenSSH has been configured with the following options:"
19654echo " User binaries: $B"
19655echo " System binaries: $C"
19656echo " Configuration files: $D"
19657echo " Askpass program: $E"
19658echo " Manual pages: $F"
19659echo " PID file: $G"
19660echo " Privilege separation chroot path: $H"
19661if test "x$external_path_file" = "x/etc/login.conf" ; then
19662echo " At runtime, sshd will use the path defined in $external_path_file"
19663echo " Make sure the path to scp is present, otherwise scp will not work"
19664else
19665echo " sshd default user PATH: $I"
19666 if test ! -z "$external_path_file"; then
19667echo " (If PATH is set in $external_path_file it will be used instead. If"
19668echo " used, ensure the path to scp is present, otherwise scp will not work.)"
19669 fi
19670fi
19671if test ! -z "$superuser_path" ; then
19672echo " sshd superuser user PATH: $J"
19673fi
19674echo " Manpage format: $MANTYPE"
19675echo " PAM support: $PAM_MSG"
19676echo " OSF SIA support: $SIA_MSG"
19677echo " KerberosV support: $KRB5_MSG"
19678echo " SELinux support: $SELINUX_MSG"
19679echo " Smartcard support: $SCARD_MSG"
19680echo " S/KEY support: $SKEY_MSG"
19681echo " MD5 password support: $MD5_MSG"
19682echo " libedit support: $LIBEDIT_MSG"
19683echo " Solaris process contract support: $SPC_MSG"
19684echo " Solaris project support: $SP_MSG"
19685echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
19686echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
19687echo " BSD Auth support: $BSD_AUTH_MSG"
19688echo " Random number source: $RAND_MSG"
19689echo " Privsep sandbox style: $SANDBOX_STYLE"
19690
19691echo ""
19692
19693echo " Host: ${host}"
19694echo " Compiler: ${CC}"
19695echo " Compiler flags: ${CFLAGS}"
19696echo "Preprocessor flags: ${CPPFLAGS}"
19697echo " Linker flags: ${LDFLAGS}"
19698echo " Libraries: ${LIBS}"
19699if test ! -z "${SSHDLIBS}"; then
19700echo " +for sshd: ${SSHDLIBS}"
19701fi
19702if test ! -z "${SSHLIBS}"; then
19703echo " +for ssh: ${SSHLIBS}"
19704fi
19705
19706echo ""
19707
19708if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
19709 echo "SVR4 style packages are supported with \"make package\""
19710 echo ""
19711fi
19712
19713if test "x$PAM_MSG" = "xyes" ; then
19714 echo "PAM is enabled. You may need to install a PAM control file "
19715 echo "for sshd, otherwise password authentication may fail. "
19716 echo "Example PAM control files can be found in the contrib/ "
19717 echo "subdirectory"
19718 echo ""
19719fi
19720
19721if test ! -z "$NO_PEERCHECK" ; then
19722 echo "WARNING: the operating system that you are using does not"
19723 echo "appear to support getpeereid(), getpeerucred() or the"
19724 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
19725 echo "enforce security checks to prevent unauthorised connections to"
19726 echo "ssh-agent. Their absence increases the risk that a malicious"
19727 echo "user can connect to your agent."
19728 echo ""
19729fi
19730
19731if test "$AUDIT_MODULE" = "bsm" ; then
19732 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
19733 echo "See the Solaris section in README.platform for details."
19734fi
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..d9aaadba9
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,74 @@
1MODULI(5) File Formats Manual MODULI(5)
2
3NAME
4 moduli - 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 - 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.6 September 26, 2012 OpenBSD 5.6
diff --git a/openbsd-compat/.cvsignore b/openbsd-compat/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/openbsd-compat/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
1Makefile
diff --git a/openbsd-compat/regress/.cvsignore b/openbsd-compat/regress/.cvsignore
deleted file mode 100644
index 33074f4a3..000000000
--- a/openbsd-compat/regress/.cvsignore
+++ /dev/null
@@ -1,6 +0,0 @@
1Makefile
2snprintftest
3strduptest
4strtonumtest
5closefromtest
6opensslvertest
diff --git a/regress/.cvsignore b/regress/.cvsignore
deleted file mode 100644
index 3fd25b02e..000000000
--- a/regress/.cvsignore
+++ /dev/null
@@ -1,31 +0,0 @@
1*-agent
2*.copy
3*.log
4*.prv
5*.pub
6actual
7authorized_keys_*
8batch
9copy.dd*
10data
11expect
12host.rsa*
13key.*
14known_hosts
15krl-*
16modpipe
17remote_pid
18revoked-*
19revoked-ca
20revoked-keyid
21revoked-serials
22rsa
23rsa1
24sftp-server.sh
25ssh-log-wrapper.sh
26ssh_config
27ssh_proxy*
28sshd_config
29sshd_proxy*
30t*.out
31t*.out[0-9]
diff --git a/scard/.cvsignore b/scard/.cvsignore
deleted file mode 100644
index 5349d34ae..000000000
--- a/scard/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
1Makefile
2Ssh.bin
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..0495f2555
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,162 @@
1SCP(1) General Commands Manual SCP(1)
2
3NAME
4 scp - 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 `:' 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 HostKeyAlgorithms
93 HostKeyAlias
94 HostName
95 IdentityFile
96 IdentitiesOnly
97 IPQoS
98 KbdInteractiveAuthentication
99 KbdInteractiveDevices
100 KexAlgorithms
101 LogLevel
102 MACs
103 NoHostAuthenticationForLocalhost
104 NumberOfPasswordPrompts
105 PasswordAuthentication
106 PKCS11Provider
107 Port
108 PreferredAuthentications
109 Protocol
110 ProxyCommand
111 PubkeyAuthentication
112 RekeyLimit
113 RhostsRSAAuthentication
114 RSAAuthentication
115 SendEnv
116 ServerAliveInterval
117 ServerAliveCountMax
118 StrictHostKeyChecking
119 TCPKeepAlive
120 UsePrivilegedPort
121 User
122 UserKnownHostsFile
123 VerifyHostKeyDNS
124
125 -P port
126 Specifies the port to connect to on the remote host. Note that
127 this option is written with a capital `P', because -p is already
128 reserved for preserving the times and modes of the file.
129
130 -p Preserves modification times, access times, and modes from the
131 original file.
132
133 -q Quiet mode: disables the progress meter as well as warning and
134 diagnostic messages from ssh(1).
135
136 -r Recursively copy entire directories. Note that scp follows
137 symbolic links encountered in the tree traversal.
138
139 -S program
140 Name of program to use for the encrypted connection. The program
141 must understand ssh(1) options.
142
143 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
144 about their progress. This is helpful in debugging connection,
145 authentication, and configuration problems.
146
147EXIT STATUS
148 The scp utility exits 0 on success, and >0 if an error occurs.
149
150SEE ALSO
151 sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5),
152 sshd(8)
153
154HISTORY
155 scp is based on the rcp program in BSD source code from the Regents of
156 the University of California.
157
158AUTHORS
159 Timo Rinne <tri@iki.fi>
160 Tatu Ylonen <ylo@cs.hut.fi>
161
162OpenBSD 5.6 March 19, 2014 OpenBSD 5.6
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..d811e252d
--- /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 - 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 '%', %h 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 ``requests'', which may be
69 used 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.6 July 28, 2014 OpenBSD 5.6
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..e37043455
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,381 @@
1SFTP(1) General Commands Manual SFTP(1)
2
3NAME
4 sftp - 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 `-' 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 `-' 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 HostKeyAlgorithms
129 HostKeyAlias
130 HostName
131 IdentityFile
132 IdentitiesOnly
133 IPQoS
134 KbdInteractiveAuthentication
135 KbdInteractiveDevices
136 KexAlgorithms
137 LogLevel
138 MACs
139 NoHostAuthenticationForLocalhost
140 NumberOfPasswordPrompts
141 PasswordAuthentication
142 PKCS11Provider
143 Port
144 PreferredAuthentications
145 Protocol
146 ProxyCommand
147 PubkeyAuthentication
148 RekeyLimit
149 RhostsRSAAuthentication
150 RSAAuthentication
151 SendEnv
152 ServerAliveInterval
153 ServerAliveCountMax
154 StrictHostKeyChecking
155 TCPKeepAlive
156 UsePrivilegedPort
157 User
158 UserKnownHostsFile
159 VerifyHostKeyDNS
160
161 -P port
162 Specifies the port to connect to on the remote host.
163
164 -p Preserves modification times, access times, and modes from the
165 original files transferred.
166
167 -q Quiet mode: disables the progress meter as well as warning and
168 diagnostic messages from ssh(1).
169
170 -R num_requests
171 Specify how many requests may be outstanding at any one time.
172 Increasing this may slightly improve file transfer speed but will
173 increase memory usage. The default is 64 outstanding requests.
174
175 -r Recursively copy entire directories when uploading and
176 downloading. Note that sftp does not follow symbolic links
177 encountered in the tree traversal.
178
179 -S program
180 Name of the program to use for the encrypted connection. The
181 program must understand ssh(1) options.
182
183 -s subsystem | sftp_server
184 Specifies the SSH2 subsystem or the path for an sftp server on
185 the remote host. A path is useful for using sftp over protocol
186 version 1, or when the remote sshd(8) does not have an sftp
187 subsystem configured.
188
189 -v Raise logging level. This option is also passed to ssh.
190
191INTERACTIVE COMMANDS
192 Once in interactive mode, sftp understands a set of commands similar to
193 those of ftp(1). Commands are case insensitive. Pathnames that contain
194 spaces must be enclosed in quotes. Any special characters contained
195 within pathnames that are recognized by glob(3) must be escaped with
196 backslashes (`\').
197
198 bye Quit sftp.
199
200 cd path
201 Change remote directory to path.
202
203 chgrp grp path
204 Change group of file path to grp. path may contain glob(3)
205 characters and may match multiple files. grp must be a numeric
206 GID.
207
208 chmod mode path
209 Change permissions of file path to mode. path may contain
210 glob(3) characters and may match multiple files.
211
212 chown own path
213 Change owner of file path to own. path may contain glob(3)
214 characters and may match multiple files. own must be a numeric
215 UID.
216
217 df [-hi] [path]
218 Display usage information for the filesystem holding the current
219 directory (or path if specified). If the -h flag is specified,
220 the capacity information will be displayed using "human-readable"
221 suffixes. The -i flag requests display of inode information in
222 addition to capacity information. This command is only supported
223 on servers that implement the ``statvfs@openssh.com'' extension.
224
225 exit Quit sftp.
226
227 get [-afPpr] remote-path [local-path]
228 Retrieve the remote-path and store it on the local machine. If
229 the local path name is not specified, it is given the same name
230 it has on the remote machine. remote-path may contain glob(3)
231 characters and may match multiple files. If it does and
232 local-path is specified, then local-path must specify a
233 directory.
234
235 If the -a flag is specified, then attempt to resume partial
236 transfers of existing files. Note that resumption assumes that
237 any partial copy of the local file matches the remote copy. If
238 the remote file contents differ from the partial local copy then
239 the resultant file is likely to be corrupt.
240
241 If the -f flag is specified, then fsync(2) will be called after
242 the file transfer has completed to flush the file to disk.
243
244 If either the -P or -p flag is specified, then full file
245 permissions and access times are copied too.
246
247 If the -r flag is specified then directories will be copied
248 recursively. Note that sftp does not follow symbolic links when
249 performing recursive transfers.
250
251 help Display help text.
252
253 lcd path
254 Change local directory to path.
255
256 lls [ls-options [path]]
257 Display local directory listing of either path or current
258 directory if path is not specified. ls-options may contain any
259 flags supported by the local system's ls(1) command. path may
260 contain glob(3) characters and may match multiple files.
261
262 lmkdir path
263 Create local directory specified by path.
264
265 ln [-s] oldpath newpath
266 Create a link from oldpath to newpath. If the -s flag is
267 specified the created link is a symbolic link, otherwise it is a
268 hard link.
269
270 lpwd Print local working directory.
271
272 ls [-1afhlnrSt] [path]
273 Display a remote directory listing of either path or the current
274 directory if path is not specified. path may contain glob(3)
275 characters and may match multiple files.
276
277 The following flags are recognized and alter the behaviour of ls
278 accordingly:
279
280 -1 Produce single columnar output.
281
282 -a List files beginning with a dot (`.').
283
284 -f Do not sort the listing. The default sort order is
285 lexicographical.
286
287 -h When used with a long format option, use unit suffixes:
288 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
289 and Exabyte in order to reduce the number of digits to
290 four or fewer using powers of 2 for sizes (K=1024,
291 M=1048576, etc.).
292
293 -l Display additional details including permissions and
294 ownership information.
295
296 -n Produce a long listing with user and group information
297 presented numerically.
298
299 -r Reverse the sort order of the listing.
300
301 -S Sort the listing by file size.
302
303 -t Sort the listing by last modification time.
304
305 lumask umask
306 Set local umask to umask.
307
308 mkdir path
309 Create remote directory specified by path.
310
311 progress
312 Toggle display of progress meter.
313
314 put [-afPpr] local-path [remote-path]
315 Upload local-path and store it on the remote machine. If the
316 remote path name is not specified, it is given the same name it
317 has on the local machine. local-path may contain glob(3)
318 characters and may match multiple files. If it does and
319 remote-path is specified, then remote-path must specify a
320 directory.
321
322 If the -a flag is specified, then attempt to resume partial
323 transfers of existing files. Note that resumption assumes that
324 any partial copy of the remote file matches the local copy. If
325 the local file contents differ from the remote local copy then
326 the resultant file is likely to be corrupt.
327
328 If the -f flag is specified, then a request will be sent to the
329 server to call fsync(2) after the file has been transferred.
330 Note that this is only supported by servers that implement the
331 "fsync@openssh.com" extension.
332
333 If either the -P or -p flag is specified, then full file
334 permissions and access times are copied too.
335
336 If the -r flag is specified then directories will be copied
337 recursively. Note that sftp does not follow symbolic links when
338 performing recursive transfers.
339
340 pwd Display remote working directory.
341
342 quit Quit sftp.
343
344 reget [-Ppr] remote-path [local-path]
345 Resume download of remote-path. Equivalent to get with the -a
346 flag set.
347
348 reput [-Ppr] [local-path] remote-path
349 Resume upload of [local-path]. Equivalent to put with the -a
350 flag set.
351
352 rename oldpath newpath
353 Rename remote file from oldpath to newpath.
354
355 rm path
356 Delete remote file specified by path.
357
358 rmdir path
359 Remove remote directory specified by path.
360
361 symlink oldpath newpath
362 Create a symbolic link from oldpath to newpath.
363
364 version
365 Display the sftp protocol version.
366
367 !command
368 Execute command in local shell.
369
370 ! Escape to local shell.
371
372 ? Synonym for help.
373
374SEE ALSO
375 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
376 ssh_config(5), sftp-server(8), sshd(8)
377
378 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
379 filexfer-00.txt, January 2001, work in progress material.
380
381OpenBSD 5.6 April 22, 2014 OpenBSD 5.6
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..f16165ae5
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,123 @@
1SSH-ADD(1) General Commands Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdkLlXx] [-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 the SSH_ASKPASS program mentioned below. Successful
33 confirmation is signaled by a zero exit status from the
34 SSH_ASKPASS program, rather than text entered into 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 pkcs11
47 Remove keys provided by the PKCS#11 shared library pkcs11.
48
49 -k When loading keys into or deleting keys from the agent, process
50 plain private keys only and skip certificates.
51
52 -L Lists public key parameters of all identities currently
53 represented by the agent.
54
55 -l Lists fingerprints of all identities currently represented by the
56 agent.
57
58 -s pkcs11
59 Add keys provided by the PKCS#11 shared library pkcs11.
60
61 -t life
62 Set a maximum lifetime when adding identities to an agent. The
63 lifetime may be specified in seconds or in a time format
64 specified in sshd_config(5).
65
66 -X Unlock the agent.
67
68 -x Lock the agent with a password.
69
70ENVIRONMENT
71 DISPLAY and SSH_ASKPASS
72 If ssh-add needs a passphrase, it will read the passphrase from
73 the current terminal if it was run from a terminal. If ssh-add
74 does not have a terminal associated with it but DISPLAY and
75 SSH_ASKPASS are set, it will execute the program specified by
76 SSH_ASKPASS and open an X11 window to read the passphrase. This
77 is particularly useful when calling ssh-add from a .xsession or
78 related script. (Note that on some machines it may be necessary
79 to redirect the input from /dev/null to make this work.)
80
81 SSH_AUTH_SOCK
82 Identifies the path of a UNIX-domain socket used to communicate
83 with the agent.
84
85FILES
86 ~/.ssh/identity
87 Contains the protocol version 1 RSA authentication identity of
88 the user.
89
90 ~/.ssh/id_dsa
91 Contains the protocol version 2 DSA authentication identity of
92 the user.
93
94 ~/.ssh/id_ecdsa
95 Contains the protocol version 2 ECDSA authentication identity of
96 the user.
97
98 ~/.ssh/id_ed25519
99 Contains the protocol version 2 ED25519 authentication identity
100 of the user.
101
102 ~/.ssh/id_rsa
103 Contains the protocol version 2 RSA authentication identity of
104 the user.
105
106 Identity files should not be readable by anyone but the user. Note that
107 ssh-add ignores identity files if they are accessible by others.
108
109EXIT STATUS
110 Exit status is 0 on success, 1 if the specified command fails, and 2 if
111 ssh-add is unable to contact the authentication agent.
112
113SEE ALSO
114 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
115
116AUTHORS
117 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
118 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
119 de Raadt and Dug Song removed many bugs, re-added newer features and
120 created OpenSSH. Markus Friedl contributed the support for SSH protocol
121 versions 1.5 and 2.0.
122
123OpenBSD 5.6 December 7, 2013 OpenBSD 5.6
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..cac40e048
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,103 @@
1SSH-AGENT(1) General Commands Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent - authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]]
8 ssh-agent [-c | -s] -k
9
10DESCRIPTION
11 ssh-agent is a program to hold private keys used for public key
12 authentication (RSA, DSA, ECDSA, ED25519). ssh-agent is usually started
13 in the beginning of an X-session or a login session, and all other
14 windows or programs are started as clients to the ssh-agent program.
15 Through use of environment variables the agent can be located and
16 automatically used for authentication when logging in to other machines
17 using ssh(1).
18
19 The agent initially does not have any private keys. Keys are added using
20 ssh-add(1). Multiple identities may be stored in ssh-agent concurrently
21 and ssh(1) will automatically use them if present. ssh-add(1) is also
22 used to remove keys from ssh-agent and to query the keys that are held in
23 one.
24
25 The options are as follows:
26
27 -a bind_address
28 Bind the agent to the UNIX-domain socket bind_address. The
29 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
30
31 -c Generate C-shell commands on stdout. This is the default if
32 SHELL looks like it's a csh style of shell.
33
34 -d Debug mode. When this option is specified ssh-agent will not
35 fork.
36
37 -k Kill the current agent (given by the SSH_AGENT_PID environment
38 variable).
39
40 -s Generate Bourne shell commands on stdout. This is the default if
41 SHELL does not look like it's a csh style of shell.
42
43 -t life
44 Set a default value for the maximum lifetime of identities added
45 to the agent. The lifetime may be specified in seconds or in a
46 time format specified in sshd_config(5). A lifetime specified
47 for an identity with ssh-add(1) overrides this value. Without
48 this option the default maximum lifetime is forever.
49
50 If a commandline is given, this is executed as a subprocess of the agent.
51 When the command dies, so does the agent.
52
53 The idea is that the agent is run in the user's local PC, laptop, or
54 terminal. Authentication data need not be stored on any other machine,
55 and authentication passphrases never go over the network. However, the
56 connection to the agent is forwarded over SSH remote logins, and the user
57 can thus use the privileges given by the identities anywhere in the
58 network in a secure way.
59
60 There are two main ways to get an agent set up: The first is that the
61 agent starts a new subcommand into which some environment variables are
62 exported, eg ssh-agent xterm &. The second is that the agent prints the
63 needed shell commands (either sh(1) or csh(1) syntax can be generated)
64 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
65 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
66 csh(1) and derivatives.
67
68 Later ssh(1) looks at these variables and uses them to establish a
69 connection to the agent.
70
71 The agent will never send a private key over its request channel.
72 Instead, operations that require a private key will be performed by the
73 agent, and the result will be returned to the requester. This way,
74 private keys are not exposed to clients using the agent.
75
76 A UNIX-domain socket is created and the name of this socket is stored in
77 the SSH_AUTH_SOCK environment variable. The socket is made accessible
78 only to the current user. This method is easily abused by root or
79 another instance of the same user.
80
81 The SSH_AGENT_PID environment variable holds the agent's process ID.
82
83 The agent exits automatically when the command given on the command line
84 terminates.
85
86FILES
87 $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
88 UNIX-domain sockets used to contain the connection to the
89 authentication agent. These sockets should only be readable by
90 the owner. The sockets should get automatically removed when the
91 agent exits.
92
93SEE ALSO
94 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
95
96AUTHORS
97 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
98 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
99 de Raadt and Dug Song removed many bugs, re-added newer features and
100 created OpenSSH. Markus Friedl contributed the support for SSH protocol
101 versions 1.5 and 2.0.
102
103OpenBSD 5.6 April 16, 2014 OpenBSD 5.6
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..648f3017f
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,562 @@
1SSH-KEYGEN(1) General Commands Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - 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 [-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 ``.pub'' 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 ``user@host'' 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 This option will read a private or public OpenSSH key file and
128 print to stdout the key in one of the formats specified by the -m
129 option. The default export format is ``RFC4716''. This option
130 allows exporting OpenSSH keys for use by other programs,
131 including several commercial SSH implementations.
132
133 -F hostname
134 Search for the specified hostname in a known_hosts file, listing
135 any occurrences found. This option is useful to find hashed host
136 names or addresses and may also be used in conjunction with the
137 -H option to print found keys in a hashed format.
138
139 -f filename
140 Specifies the filename of the key file.
141
142 -G output_file
143 Generate candidate primes for DH-GEX. These primes must be
144 screened for safety (using the -T option) before use.
145
146 -g Use generic DNS format when printing fingerprint resource records
147 using the -r command.
148
149 -H Hash a known_hosts file. This replaces all hostnames and
150 addresses with hashed representations within the specified file;
151 the original content is moved to a file with a .old suffix.
152 These hashes may be used normally by ssh and sshd, but they do
153 not reveal identifying information should the file's contents be
154 disclosed. This option will not modify existing hashed hostnames
155 and is therefore safe to use on files that mix hashed and non-
156 hashed names.
157
158 -h When signing a key, create a host certificate instead of a user
159 certificate. Please see the CERTIFICATES section for details.
160
161 -I certificate_identity
162 Specify the key identity when signing a public key. Please see
163 the CERTIFICATES section for details.
164
165 -i This option will read an unencrypted private (or public) key file
166 in the format specified by the -m option and print an OpenSSH
167 compatible private (or public) key to stdout. This option allows
168 importing keys from other software, including several commercial
169 SSH implementations. The default import format is ``RFC4716''.
170
171 -J num_lines
172 Exit after screening the specified number of lines while
173 performing DH candidate screening using the -T option.
174
175 -j start_line
176 Start screening at the specified line number while performing DH
177 candidate screening using the -T option.
178
179 -K checkpt
180 Write the last line processed to the file checkpt while
181 performing DH candidate screening using the -T option. This will
182 be used to skip lines in the input file that have already been
183 processed if the job is restarted.
184
185 -k Generate a KRL file. In this mode, ssh-keygen will generate a
186 KRL file at the location specified via the -f flag that revokes
187 every key or certificate presented on the command line.
188 Keys/certificates to be revoked may be specified by public key
189 file or using the format described in the KEY REVOCATION LISTS
190 section.
191
192 -L Prints the contents of a certificate.
193
194 -l Show fingerprint of specified public key file. Private RSA1 keys
195 are also supported. For RSA and DSA keys ssh-keygen tries to
196 find the matching public key file and prints its fingerprint. If
197 combined with -v, an ASCII art representation of the key is
198 supplied with the fingerprint.
199
200 -M memory
201 Specify the amount of memory to use (in megabytes) when
202 generating candidate moduli for DH-GEX.
203
204 -m key_format
205 Specify a key format for the -i (import) or -e (export)
206 conversion options. The supported key formats are: ``RFC4716''
207 (RFC 4716/SSH2 public or private key), ``PKCS8'' (PEM PKCS8
208 public key) or ``PEM'' (PEM public key). The default conversion
209 format is ``RFC4716''.
210
211 -N new_passphrase
212 Provides the new passphrase.
213
214 -n principals
215 Specify one or more principals (user or host names) to be
216 included in a certificate when signing a key. Multiple
217 principals may be specified, separated by commas. Please see the
218 CERTIFICATES section for details.
219
220 -O option
221 Specify a certificate option when signing a key. This option may
222 be specified multiple times. Please see the CERTIFICATES section
223 for details. The options that are valid for user certificates
224 are:
225
226 clear Clear all enabled permissions. This is useful for
227 clearing the default set of permissions so permissions
228 may be added individually.
229
230 force-command=command
231 Forces the execution of command instead of any shell or
232 command specified by the user when the certificate is
233 used for authentication.
234
235 no-agent-forwarding
236 Disable ssh-agent(1) forwarding (permitted by default).
237
238 no-port-forwarding
239 Disable port forwarding (permitted by default).
240
241 no-pty Disable PTY allocation (permitted by default).
242
243 no-user-rc
244 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
245 default).
246
247 no-x11-forwarding
248 Disable X11 forwarding (permitted by default).
249
250 permit-agent-forwarding
251 Allows ssh-agent(1) forwarding.
252
253 permit-port-forwarding
254 Allows port forwarding.
255
256 permit-pty
257 Allows PTY allocation.
258
259 permit-user-rc
260 Allows execution of ~/.ssh/rc by sshd(8).
261
262 permit-x11-forwarding
263 Allows X11 forwarding.
264
265 source-address=address_list
266 Restrict the source addresses from which the certificate
267 is considered valid. The address_list is a comma-
268 separated list of one or more address/netmask pairs in
269 CIDR format.
270
271 At present, no options are valid for host keys.
272
273 -o Causes ssh-keygen to save SSH protocol 2 private keys using the
274 new OpenSSH format rather than the more compatible PEM format.
275 The new format has increased resistance to brute-force password
276 cracking but is not supported by versions of OpenSSH prior to
277 6.5. Ed25519 keys always use the new private key format.
278
279 -P passphrase
280 Provides the (old) passphrase.
281
282 -p Requests changing the passphrase of a private key file instead of
283 creating a new private key. The program will prompt for the file
284 containing the private key, for the old passphrase, and twice for
285 the new passphrase.
286
287 -Q Test whether keys have been revoked in a KRL.
288
289 -q Silence ssh-keygen.
290
291 -R hostname
292 Removes all keys belonging to hostname from a known_hosts file.
293 This option is useful to delete hashed hosts (see the -H option
294 above).
295
296 -r hostname
297 Print the SSHFP fingerprint resource record named hostname for
298 the specified public key file.
299
300 -S start
301 Specify start point (in hex) when generating candidate moduli for
302 DH-GEX.
303
304 -s ca_key
305 Certify (sign) a public key using the specified CA key. Please
306 see the CERTIFICATES section for details.
307
308 When generating a KRL, -s specifies a path to a CA public key
309 file used to revoke certificates directly by key ID or serial
310 number. See the KEY REVOCATION LISTS section for details.
311
312 -T output_file
313 Test DH group exchange candidate primes (generated using the -G
314 option) for safety.
315
316 -t dsa | ecdsa | ed25519 | rsa | rsa1
317 Specifies the type of key to create. The possible values are
318 ``rsa1'' for protocol version 1 and ``dsa'', ``ecdsa'',
319 ``ed25519'', or ``rsa'' for protocol version 2.
320
321 -u Update a KRL. When specified with -k, keys listed via the
322 command line are added to the existing KRL rather than a new KRL
323 being created.
324
325 -V validity_interval
326 Specify a validity interval when signing a certificate. A
327 validity interval may consist of a single time, indicating that
328 the certificate is valid beginning now and expiring at that time,
329 or may consist of two times separated by a colon to indicate an
330 explicit time interval. The start time may be specified as a
331 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
332 relative time (to the current time) consisting of a minus sign
333 followed by a relative time in the format described in the TIME
334 FORMATS section of sshd_config(5). The end time may be specified
335 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
336 starting with a plus character.
337
338 For example: ``+52w1d'' (valid from now to 52 weeks and one day
339 from now), ``-4w:+4w'' (valid from four weeks ago to four weeks
340 from now), ``20100101123000:20110101123000'' (valid from 12:30
341 PM, January 1st, 2010 to 12:30 PM, January 1st, 2011),
342 ``-1d:20110101'' (valid from yesterday to midnight, January 1st,
343 2011).
344
345 -v Verbose mode. Causes ssh-keygen to print debugging messages
346 about its progress. This is helpful for debugging moduli
347 generation. Multiple -v options increase the verbosity. The
348 maximum is 3.
349
350 -W generator
351 Specify desired generator when testing candidate moduli for DH-
352 GEX.
353
354 -y This option will read a private OpenSSH format file and print an
355 OpenSSH public key to stdout.
356
357 -z serial_number
358 Specifies a serial number to be embedded in the certificate to
359 distinguish this certificate from others from the same CA. The
360 default serial number is zero.
361
362 When generating a KRL, the -z flag is used to specify a KRL
363 version number.
364
365MODULI GENERATION
366 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
367 Exchange (DH-GEX) protocol. Generating these groups is a two-step
368 process: first, candidate primes are generated using a fast, but memory
369 intensive process. These candidate primes are then tested for
370 suitability (a CPU-intensive process).
371
372 Generation of primes is performed using the -G option. The desired
373 length of the primes may be specified by the -b option. For example:
374
375 # ssh-keygen -G moduli-2048.candidates -b 2048
376
377 By default, the search for primes begins at a random point in the desired
378 length range. This may be overridden using the -S option, which
379 specifies a different start point (in hex).
380
381 Once a set of candidates have been generated, they must be screened for
382 suitability. This may be performed using the -T option. In this mode
383 ssh-keygen will read candidates from standard input (or a file specified
384 using the -f option). For example:
385
386 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
387
388 By default, each candidate will be subjected to 100 primality tests.
389 This may be overridden using the -a option. The DH generator value will
390 be chosen automatically for the prime under consideration. If a specific
391 generator is desired, it may be requested using the -W option. Valid
392 generator values are 2, 3, and 5.
393
394 Screened DH groups may be installed in /etc/moduli. It is important that
395 this file contains moduli of a range of bit lengths and that both ends of
396 a connection share common moduli.
397
398CERTIFICATES
399 ssh-keygen supports signing of keys to produce certificates that may be
400 used for user or host authentication. Certificates consist of a public
401 key, some identity information, zero or more principal (user or host)
402 names and a set of options that are signed by a Certification Authority
403 (CA) key. Clients or servers may then trust only the CA key and verify
404 its signature on a certificate rather than trusting many user/host keys.
405 Note that OpenSSH certificates are a different, and much simpler, format
406 to the X.509 certificates used in ssl(8).
407
408 ssh-keygen supports two types of certificates: user and host. User
409 certificates authenticate users to servers, whereas host certificates
410 authenticate server hosts to users. To generate a user certificate:
411
412 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
413
414 The resultant certificate will be placed in /path/to/user_key-cert.pub.
415 A host certificate requires the -h option:
416
417 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
418
419 The host certificate will be output to /path/to/host_key-cert.pub.
420
421 It is possible to sign using a CA key stored in a PKCS#11 token by
422 providing the token library using -D and identifying the CA key by
423 providing its public half as an argument to -s:
424
425 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub
426
427 In all cases, key_id is a "key identifier" that is logged by the server
428 when the certificate is used for authentication.
429
430 Certificates may be limited to be valid for a set of principal
431 (user/host) names. By default, generated certificates are valid for all
432 users or hosts. To generate a certificate for a specified set of
433 principals:
434
435 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
436 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
437
438 Additional limitations on the validity and use of user certificates may
439 be specified through certificate options. A certificate option may
440 disable features of the SSH session, may be valid only when presented
441 from particular source addresses or may force the use of a specific
442 command. For a list of valid certificate options, see the documentation
443 for the -O option above.
444
445 Finally, certificates may be defined with a validity lifetime. The -V
446 option allows specification of certificate start and end times. A
447 certificate that is presented at a time outside this range will not be
448 considered valid. By default, certificates are valid from UNIX Epoch to
449 the distant future.
450
451 For certificates to be used for user or host authentication, the CA
452 public key must be trusted by sshd(8) or ssh(1). Please refer to those
453 manual pages for details.
454
455KEY REVOCATION LISTS
456 ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs).
457 These binary files specify keys or certificates to be revoked using a
458 compact format, taking as little as one bit per certificate if they are
459 being revoked by serial number.
460
461 KRLs may be generated using the -k flag. This option reads one or more
462 files from the command line and generates a new KRL. The files may
463 either contain a KRL specification (see below) or public keys, listed one
464 per line. Plain public keys are revoked by listing their hash or
465 contents in the KRL and certificates revoked by serial number or key ID
466 (if the serial is zero or not available).
467
468 Revoking keys using a KRL specification offers explicit control over the
469 types of record used to revoke keys and may be used to directly revoke
470 certificates by serial number or key ID without having the complete
471 original certificate on hand. A KRL specification consists of lines
472 containing one of the following directives followed by a colon and some
473 directive-specific information.
474
475 serial: serial_number[-serial_number]
476 Revokes a certificate with the specified serial number. Serial
477 numbers are 64-bit values, not including zero and may be
478 expressed in decimal, hex or octal. If two serial numbers are
479 specified separated by a hyphen, then the range of serial numbers
480 including and between each is revoked. The CA key must have been
481 specified on the ssh-keygen command line using the -s option.
482
483 id: key_id
484 Revokes a certificate with the specified key ID string. The CA
485 key must have been specified on the ssh-keygen command line using
486 the -s option.
487
488 key: public_key
489 Revokes the specified key. If a certificate is listed, then it
490 is revoked as a plain public key.
491
492 sha1: public_key
493 Revokes the specified key by its SHA1 hash.
494
495 KRLs may be updated using the -u flag in addition to -k. When this
496 option is specified, keys listed via the command line are merged into the
497 KRL, adding to those already there.
498
499 It is also possible, given a KRL, to test whether it revokes a particular
500 key (or keys). The -Q flag will query an existing KRL, testing each key
501 specified on the commandline. If any key listed on the command line has
502 been revoked (or an error encountered) then ssh-keygen will exit with a
503 non-zero exit status. A zero exit status will only be returned if no key
504 was revoked.
505
506FILES
507 ~/.ssh/identity
508 Contains the protocol version 1 RSA authentication identity of
509 the user. This file should not be readable by anyone but the
510 user. It is possible to specify a passphrase when generating the
511 key; that passphrase will be used to encrypt the private part of
512 this file using 3DES. This file is not automatically accessed by
513 ssh-keygen but it is offered as the default file for the private
514 key. ssh(1) will read this file when a login attempt is made.
515
516 ~/.ssh/identity.pub
517 Contains the protocol version 1 RSA public key for
518 authentication. The contents of this file should be added to
519 ~/.ssh/authorized_keys on all machines where the user wishes to
520 log in using RSA authentication. There is no need to keep the
521 contents of this file secret.
522
523 ~/.ssh/id_dsa
524 ~/.ssh/id_ecdsa
525 ~/.ssh/id_ed25519
526 ~/.ssh/id_rsa
527 Contains the protocol version 2 DSA, ECDSA, ED25519 or RSA
528 authentication identity of the user. This file should not be
529 readable by anyone but the user. It is possible to specify a
530 passphrase when generating the key; that passphrase will be used
531 to encrypt the private part of this file using 128-bit AES. This
532 file is not automatically accessed by ssh-keygen but it is
533 offered as the default file for the private key. ssh(1) will
534 read this file when a login attempt is made.
535
536 ~/.ssh/id_dsa.pub
537 ~/.ssh/id_ecdsa.pub
538 ~/.ssh/id_ed25519.pub
539 ~/.ssh/id_rsa.pub
540 Contains the protocol version 2 DSA, ECDSA, ED25519 or RSA public
541 key for authentication. The contents of this file should be
542 added to ~/.ssh/authorized_keys on all machines where the user
543 wishes to log in using public key authentication. There is no
544 need to keep the contents of this file secret.
545
546 /etc/moduli
547 Contains Diffie-Hellman groups used for DH-GEX. The file format
548 is described in moduli(5).
549
550SEE ALSO
551 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
552
553 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
554
555AUTHORS
556 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
557 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
558 de Raadt and Dug Song removed many bugs, re-added newer features and
559 created OpenSSH. Markus Friedl contributed the support for SSH protocol
560 versions 1.5 and 2.0.
561
562OpenBSD 5.6 March 31, 2014 OpenBSD 5.6
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..853bd5152
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,111 @@
1SSH-KEYSCAN(1) General Commands Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan - 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 ``addrlist namelist'' pairs from file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or ``addrlist namelist'' pairs from the standard
33 input.
34
35 -H Hash all hostnames and addresses in the output. Hashed names may
36 be used normally by ssh and sshd, but they do not reveal
37 identifying information should the file's contents be disclosed.
38
39 -p port
40 Port to connect to on the remote host.
41
42 -T timeout
43 Set the timeout for connection attempts. If timeout seconds have
44 elapsed since a connection was initiated to a host or since the
45 last time anything was read from that host, then the connection
46 is closed and the host in question considered unavailable.
47 Default is 5 seconds.
48
49 -t type
50 Specifies the type of the key to fetch from the scanned hosts.
51 The possible values are ``rsa1'' for protocol version 1 and
52 ``dsa'', ``ecdsa'', ``ed25519'', or ``rsa'' for protocol version
53 2. Multiple values may be specified by separating them with
54 commas. The default is to fetch ``rsa'', ``ecdsa'', and
55 ``ed25519'' keys.
56
57 -v Verbose mode. Causes ssh-keyscan to print debugging messages
58 about its progress.
59
60SECURITY
61 If an ssh_known_hosts file is constructed using ssh-keyscan without
62 verifying the keys, users will be vulnerable to man in the middle
63 attacks. On the other hand, if the security model allows such a risk,
64 ssh-keyscan can help in the detection of tampered keyfiles or man in the
65 middle attacks which have begun after the ssh_known_hosts file was
66 created.
67
68FILES
69 Input format:
70
71 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
72
73 Output format for RSA1 keys:
74
75 host-or-namelist bits exponent modulus
76
77 Output format for RSA, DSA, ECDSA, and ED25519 keys:
78
79 host-or-namelist keytype base64-encoded-key
80
81 Where keytype is either ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'',
82 ``ecdsa-sha2-nistp521'', ``ssh-ed25519'', ``ssh-dss'' or ``ssh-rsa''.
83
84 /etc/ssh/ssh_known_hosts
85
86EXAMPLES
87 Print the rsa host key for machine hostname:
88
89 $ ssh-keyscan hostname
90
91 Find all hosts from the file ssh_hosts which have new or different keys
92 from those in the sorted file ssh_known_hosts:
93
94 $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \
95 sort -u - ssh_known_hosts | diff ssh_known_hosts -
96
97SEE ALSO
98 ssh(1), sshd(8)
99
100AUTHORS
101 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
102 Davison <wayned@users.sourceforge.net> added support for protocol version
103 2.
104
105BUGS
106 It generates "Connection closed by remote host" messages on the consoles
107 of all the machines it scans if the server is older than version 2.9.
108 This is because it opens a connection to the ssh port, reads the public
109 key, and drops the connection as soon as it gets the key.
110
111OpenBSD 5.6 March 12, 2014 OpenBSD 5.6
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..c34125b72
--- /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 - 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 ``yes''.
17
18 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
19 See ssh(1) and sshd(8) for more information about host-based
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.6 December 7, 2013 OpenBSD 5.6
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..279ec5486
--- /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 - 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.6 July 16, 2013 OpenBSD 5.6
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..70ea37733
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,944 @@
1SSH(1) General Commands Manual SSH(1)
2
3NAME
4 ssh - OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-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]
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 ``level'' 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 ``3des'', ``blowfish'', and ``des''. For
76 protocol version 2, cipher_spec is a comma-separated list of
77 ciphers listed in order of preference. See the Ciphers keyword
78 in ssh_config(5) for more information.
79
80 -D [bind_address:]port
81 Specifies a local ``dynamic'' 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 ``localhost'' indicates that the listening port
98 be bound for local use only, while an empty address or `*'
99 indicates 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: `~').
106 The escape character is only recognized at the beginning of a
107 line. The escape character followed by a dot (`.') 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 ``none'' 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
126 ``yes'', then a client started with -f will wait for all remote
127 port forwards to be successfully established before placing
128 itself in the background.
129
130 -g Allows remote hosts to connect to local forwarded ports. If used
131 on a multiplexed connection, then this option must be specified
132 on the master process.
133
134 -I pkcs11
135 Specify the PKCS#11 shared library ssh should use to communicate
136 with a PKCS#11 token providing the user's private RSA key.
137
138 -i identity_file
139 Selects a file from which the identity (private key) for public
140 key authentication is read. The default is ~/.ssh/identity for
141 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
142 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
143 Identity files may also be specified on a per-host basis in the
144 configuration file. It is possible to have multiple -i options
145 (and multiple identities specified in configuration files). ssh
146 will also try to load certificate information from the filename
147 obtained by appending -cert.pub to identity filenames.
148
149 -K Enables GSSAPI-based authentication and forwarding (delegation)
150 of GSSAPI credentials to the server.
151
152 -k Disables forwarding (delegation) of GSSAPI credentials to the
153 server.
154
155 -L [bind_address:]port:host:hostport
156 Specifies that the given port on the local (client) host is to be
157 forwarded to the given host and port on the remote side. This
158 works by allocating a socket to listen to port on the local side,
159 optionally bound to the specified bind_address. Whenever a
160 connection is made to this port, the connection is forwarded over
161 the secure channel, and a connection is made to host port
162 hostport from the remote machine. Port forwardings can also be
163 specified in the configuration file. IPv6 addresses can be
164 specified by enclosing the address in square brackets. Only the
165 superuser can forward privileged ports. By default, the local
166 port is bound in accordance with the GatewayPorts setting.
167 However, an explicit bind_address may be used to bind the
168 connection to a specific address. The bind_address of
169 ``localhost'' indicates that the listening port be bound for
170 local use only, while an empty address or `*' indicates that the
171 port should be available from all interfaces.
172
173 -l login_name
174 Specifies the user to log in as on the remote machine. This also
175 may be specified on a per-host basis in the configuration file.
176
177 -M Places the ssh client into ``master'' mode for connection
178 sharing. Multiple -M options places ssh into ``master'' mode
179 with confirmation required before slave connections are accepted.
180 Refer to the description of ControlMaster in ssh_config(5) for
181 details.
182
183 -m mac_spec
184 Additionally, for protocol version 2 a comma-separated list of
185 MAC (message authentication code) algorithms can be specified in
186 order of preference. See the MACs keyword for more information.
187
188 -N Do not execute a remote command. This is useful for just
189 forwarding ports (protocol version 2 only).
190
191 -n Redirects stdin from /dev/null (actually, prevents reading from
192 stdin). This must be used when ssh is run in the background. A
193 common trick is to use this to run X11 programs on a remote
194 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
195 start an emacs on shadows.cs.hut.fi, and the X11 connection will
196 be automatically forwarded over an encrypted channel. The ssh
197 program will be put in the background. (This does not work if
198 ssh needs to ask for a password or passphrase; see also the -f
199 option.)
200
201 -O ctl_cmd
202 Control an active connection multiplexing master process. When
203 the -O option is specified, the ctl_cmd argument is interpreted
204 and passed to the master process. Valid commands are: ``check''
205 (check that the master process is running), ``forward'' (request
206 forwardings without command execution), ``cancel'' (cancel
207 forwardings), ``exit'' (request the master to exit), and ``stop''
208 (request the master to stop accepting further multiplexing
209 requests).
210
211 -o option
212 Can be used to give options in the format used in the
213 configuration file. This is useful for specifying options for
214 which there is no separate command-line flag. For full details
215 of the options listed below, and their possible values, see
216 ssh_config(5).
217
218 AddressFamily
219 BatchMode
220 BindAddress
221 CanonicalDomains
222 CanonicalizeFallbackLocal
223 CanonicalizeHostname
224 CanonicalizeMaxDots
225 CanonicalizePermittedCNAMEs
226 ChallengeResponseAuthentication
227 CheckHostIP
228 Cipher
229 Ciphers
230 ClearAllForwardings
231 Compression
232 CompressionLevel
233 ConnectionAttempts
234 ConnectTimeout
235 ControlMaster
236 ControlPath
237 ControlPersist
238 DynamicForward
239 EscapeChar
240 ExitOnForwardFailure
241 ForwardAgent
242 ForwardX11
243 ForwardX11Timeout
244 ForwardX11Trusted
245 GatewayPorts
246 GlobalKnownHostsFile
247 GSSAPIAuthentication
248 GSSAPIDelegateCredentials
249 HashKnownHosts
250 Host
251 HostbasedAuthentication
252 HostKeyAlgorithms
253 HostKeyAlias
254 HostName
255 IdentityFile
256 IdentitiesOnly
257 IPQoS
258 KbdInteractiveAuthentication
259 KbdInteractiveDevices
260 KexAlgorithms
261 LocalCommand
262 LocalForward
263 LogLevel
264 MACs
265 Match
266 NoHostAuthenticationForLocalhost
267 NumberOfPasswordPrompts
268 PasswordAuthentication
269 PermitLocalCommand
270 PKCS11Provider
271 Port
272 PreferredAuthentications
273 Protocol
274 ProxyCommand
275 ProxyUseFdpass
276 PubkeyAuthentication
277 RekeyLimit
278 RemoteForward
279 RequestTTY
280 RhostsRSAAuthentication
281 RSAAuthentication
282 SendEnv
283 ServerAliveInterval
284 ServerAliveCountMax
285 StreamLocalBindMask
286 StreamLocalBindUnlink
287 StrictHostKeyChecking
288 TCPKeepAlive
289 Tunnel
290 TunnelDevice
291 UsePrivilegedPort
292 User
293 UserKnownHostsFile
294 VerifyHostKeyDNS
295 VisualHostKey
296 XAuthLocation
297
298 -p port
299 Port to connect to on the remote host. This can be specified on
300 a per-host basis in the configuration file.
301
302 -Q cipher | cipher-auth | mac | kex | key
303 Queries ssh for the algorithms supported for the specified
304 version 2. The available features are: cipher (supported
305 symmetric ciphers), cipher-auth (supported symmetric ciphers that
306 support authenticated encryption), mac (supported message
307 integrity codes), kex (key exchange algorithms), key (key types).
308
309 -q Quiet mode. Causes most warning and diagnostic messages to be
310 suppressed.
311
312 -R [bind_address:]port:host:hostport
313 Specifies that the given port on the remote (server) host is to
314 be forwarded to the given host and port on the local side. This
315 works by allocating a socket to listen to port on the remote
316 side, and whenever a connection is made to this port, the
317 connection is forwarded over the secure channel, and a connection
318 is made to host port hostport from the local machine.
319
320 Port forwardings can also be specified in the configuration file.
321 Privileged ports can be forwarded only when logging in as root on
322 the remote machine. IPv6 addresses can be specified by enclosing
323 the address in square brackets.
324
325 By default, the listening socket on the server will be bound to
326 the loopback interface only. This may be overridden by
327 specifying a bind_address. An empty bind_address, or the address
328 `*', indicates that the remote socket should listen on all
329 interfaces. Specifying a remote bind_address will only succeed
330 if the server's GatewayPorts option is enabled (see
331 sshd_config(5)).
332
333 If the port argument is `0', the listen port will be dynamically
334 allocated on the server and reported to the client at run time.
335 When used together with -O forward the allocated port will be
336 printed to the standard output.
337
338 -S ctl_path
339 Specifies the location of a control socket for connection
340 sharing, or the string ``none'' to disable connection sharing.
341 Refer to the description of ControlPath and ControlMaster in
342 ssh_config(5) for details.
343
344 -s May be used to request invocation of a subsystem on the remote
345 system. Subsystems are a feature of the SSH2 protocol which
346 facilitate the use of SSH as a secure transport for other
347 applications (eg. sftp(1)). The subsystem is specified as the
348 remote command.
349
350 -T Disable pseudo-tty allocation.
351
352 -t Force pseudo-tty allocation. This can be used to execute
353 arbitrary screen-based programs on a remote machine, which can be
354 very useful, e.g. when implementing menu services. Multiple -t
355 options force tty allocation, even if ssh has no local tty.
356
357 -V Display the version number and exit.
358
359 -v Verbose mode. Causes ssh to print debugging messages about its
360 progress. This is helpful in debugging connection,
361 authentication, and configuration problems. Multiple -v options
362 increase the verbosity. The maximum is 3.
363
364 -W host:port
365 Requests that standard input and output on the client be
366 forwarded to host on port over the secure channel. Implies -N,
367 -T, ExitOnForwardFailure and ClearAllForwardings. Works with
368 Protocol version 2 only.
369
370 -w local_tun[:remote_tun]
371 Requests tunnel device forwarding with the specified tun(4)
372 devices between the client (local_tun) and the server
373 (remote_tun).
374
375 The devices may be specified by numerical ID or the keyword
376 ``any'', which uses the next available tunnel device. If
377 remote_tun is not specified, it defaults to ``any''. See also
378 the Tunnel and TunnelDevice directives in ssh_config(5). If the
379 Tunnel directive is unset, it is set to the default tunnel mode,
380 which is ``point-to-point''.
381
382 -X Enables X11 forwarding. This can also be specified on a per-host
383 basis in a configuration file.
384
385 X11 forwarding should be enabled with caution. Users with the
386 ability to bypass file permissions on the remote host (for the
387 user's X authorization database) can access the local X11 display
388 through the forwarded connection. An attacker may then be able
389 to perform activities such as keystroke monitoring.
390
391 For this reason, X11 forwarding is subjected to X11 SECURITY
392 extension restrictions by default. Please refer to the ssh -Y
393 option and the ForwardX11Trusted directive in ssh_config(5) for
394 more information.
395
396 -x Disables X11 forwarding.
397
398 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
399 subjected to the X11 SECURITY extension controls.
400
401 -y Send log information using the syslog(3) system module. By
402 default this information is sent to stderr.
403
404 ssh may additionally obtain configuration data from a per-user
405 configuration file and a system-wide configuration file. The file format
406 and configuration options are described in ssh_config(5).
407
408AUTHENTICATION
409 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
410 use protocol 2 only, though this can be changed via the Protocol option
411 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
412 support similar authentication methods, but protocol 2 is the default
413 since it provides additional mechanisms for confidentiality (the traffic
414 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
415 integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64,
416 umac-128, hmac-ripemd160). Protocol 1 lacks a strong mechanism for
417 ensuring the integrity of the connection.
418
419 The methods available for authentication are: GSSAPI-based
420 authentication, host-based authentication, public key authentication,
421 challenge-response authentication, and password authentication.
422 Authentication methods are tried in the order specified above, though
423 protocol 2 has a configuration option to change the default order:
424 PreferredAuthentications.
425
426 Host-based authentication works as follows: If the machine the user logs
427 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
428 machine, and the user names are the same on both sides, or if the files
429 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
430 machine and contain a line containing the name of the client machine and
431 the name of the user on that machine, the user is considered for login.
432 Additionally, the server must be able to verify the client's host key
433 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
434 below) for login to be permitted. This authentication method closes
435 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
436 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
437 rlogin/rsh protocol in general, are inherently insecure and should be
438 disabled if security is desired.]
439
440 Public key authentication works as follows: The scheme is based on
441 public-key cryptography, using cryptosystems where encryption and
442 decryption are done using separate keys, and it is unfeasible to derive
443 the decryption key from the encryption key. The idea is that each user
444 creates a public/private key pair for authentication purposes. The
445 server knows the public key, and only the user knows the private key.
446 ssh implements public key authentication protocol automatically, using
447 one of the DSA, ECDSA, ED25519 or RSA algorithms. Protocol 1 is
448 restricted to using only RSA keys, but protocol 2 may use any. The
449 HISTORY section of ssl(8) contains a brief discussion of the DSA and RSA
450 algorithms.
451
452 The file ~/.ssh/authorized_keys lists the public keys that are permitted
453 for logging in. When the user logs in, the ssh program tells the server
454 which key pair it would like to use for authentication. The client
455 proves that it has access to the private key and the server checks that
456 the corresponding public key is authorized to accept the account.
457
458 The user creates his/her key pair by running ssh-keygen(1). This stores
459 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
460 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), ~/.ssh/id_ed25519 (protocol 2
461 ED25519), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
462 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA),
463 ~/.ssh/id_ecdsa.pub (protocol 2 ECDSA), ~/.ssh/id_ed25519.pub (protocol 2
464 ED25519), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
465 directory. The user should then copy the public key to
466 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
467 The authorized_keys file corresponds to the conventional ~/.rhosts file,
468 and has one key per line, though the lines can be very long. After this,
469 the user can log in without giving the password.
470
471 A variation on public key authentication is available in the form of
472 certificate authentication: instead of a set of public/private keys,
473 signed certificates are used. This has the advantage that a single
474 trusted certification authority can be used in place of many
475 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
476 more information.
477
478 The most convenient way to use public key or certificate authentication
479 may be with an authentication agent. See ssh-agent(1) for more
480 information.
481
482 Challenge-response authentication works as follows: The server sends an
483 arbitrary "challenge" text, and prompts for a response. Protocol 2
484 allows multiple challenges and responses; protocol 1 is restricted to
485 just one challenge/response. Examples of challenge-response
486 authentication include BSD Authentication (see login.conf(5)) and PAM
487 (some non-OpenBSD systems).
488
489 Finally, if other authentication methods fail, ssh prompts the user for a
490 password. The password is sent to the remote host for checking; however,
491 since all communications are encrypted, the password cannot be seen by
492 someone listening on the network.
493
494 ssh automatically maintains and checks a database containing
495 identification for all hosts it has ever been used with. Host keys are
496 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
497 the file /etc/ssh/ssh_known_hosts is automatically checked for known
498 hosts. Any new hosts are automatically added to the user's file. If a
499 host's identification ever changes, ssh warns about this and disables
500 password authentication to prevent server spoofing or man-in-the-middle
501 attacks, which could otherwise be used to circumvent the encryption. The
502 StrictHostKeyChecking option can be used to control logins to machines
503 whose host key is not known or has changed.
504
505 When the user's identity has been accepted by the server, the server
506 either executes the given command, or logs into the machine and gives the
507 user a normal shell on the remote machine. All communication with the
508 remote command or shell will be automatically encrypted.
509
510 If a pseudo-terminal has been allocated (normal login session), the user
511 may use the escape characters noted below.
512
513 If no pseudo-tty has been allocated, the session is transparent and can
514 be used to reliably transfer binary data. On most systems, setting the
515 escape character to ``none'' will also make the session transparent even
516 if a tty is used.
517
518 The session terminates when the command or shell on the remote machine
519 exits and all X11 and TCP connections have been closed.
520
521ESCAPE CHARACTERS
522 When a pseudo-terminal has been requested, ssh supports a number of
523 functions through the use of an escape character.
524
525 A single tilde character can be sent as ~~ or by following the tilde by a
526 character other than those described below. The escape character must
527 always follow a newline to be interpreted as special. The escape
528 character can be changed in configuration files using the EscapeChar
529 configuration directive or on the command line by the -e option.
530
531 The supported escapes (assuming the default `~') are:
532
533 ~. Disconnect.
534
535 ~^Z Background ssh.
536
537 ~# List forwarded connections.
538
539 ~& Background ssh at logout when waiting for forwarded connection /
540 X11 sessions to terminate.
541
542 ~? Display a list of escape characters.
543
544 ~B Send a BREAK to the remote system (only useful for SSH protocol
545 version 2 and if the peer supports it).
546
547 ~C Open command line. Currently this allows the addition of port
548 forwardings using the -L, -R and -D options (see above). It also
549 allows the cancellation of existing port-forwardings with
550 -KL[bind_address:]port for local, -KR[bind_address:]port for
551 remote and -KD[bind_address:]port for dynamic port-forwardings.
552 !command allows the user to execute a local command if the
553 PermitLocalCommand option is enabled in ssh_config(5). Basic
554 help is available, using the -h option.
555
556 ~R Request rekeying of the connection (only useful for SSH protocol
557 version 2 and if the peer supports it).
558
559 ~V Decrease the verbosity (LogLevel) when errors are being written
560 to stderr.
561
562 ~v Increase the verbosity (LogLevel) when errors are being written
563 to stderr.
564
565TCP FORWARDING
566 Forwarding of arbitrary TCP connections over the secure channel can be
567 specified either on the command line or in a configuration file. One
568 possible application of TCP forwarding is a secure connection to a mail
569 server; another is going through firewalls.
570
571 In the example below, we look at encrypting communication between an IRC
572 client and server, even though the IRC server does not directly support
573 encrypted communications. This works as follows: the user connects to
574 the remote host using ssh, specifying a port to be used to forward
575 connections to the remote server. After that it is possible to start the
576 service which is to be encrypted on the client machine, connecting to the
577 same local port, and ssh will encrypt and forward the connection.
578
579 The following example tunnels an IRC session from client machine
580 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
581
582 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
583 $ irc -c '#users' -p 1234 pinky 127.0.0.1
584
585 This tunnels a connection to IRC server ``server.example.com'', joining
586 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't
587 matter which port is used, as long as it's greater than 1023 (remember,
588 only root can open sockets on privileged ports) and doesn't conflict with
589 any ports already in use. The connection is forwarded to port 6667 on
590 the remote server, since that's the standard port for IRC services.
591
592 The -f option backgrounds ssh and the remote command ``sleep 10'' is
593 specified to allow an amount of time (10 seconds, in the example) to
594 start the service which is to be tunnelled. If no connections are made
595 within the time specified, ssh will exit.
596
597X11 FORWARDING
598 If the ForwardX11 variable is set to ``yes'' (or see the description of
599 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
600 environment variable is set), the connection to the X11 display is
601 automatically forwarded to the remote side in such a way that any X11
602 programs started from the shell (or command) will go through the
603 encrypted channel, and the connection to the real X server will be made
604 from the local machine. The user should not manually set DISPLAY.
605 Forwarding of X11 connections can be configured on the command line or in
606 configuration files.
607
608 The DISPLAY value set by ssh will point to the server machine, but with a
609 display number greater than zero. This is normal, and happens because
610 ssh creates a ``proxy'' X server on the server machine for forwarding the
611 connections over the encrypted channel.
612
613 ssh will also automatically set up Xauthority data on the server machine.
614 For this purpose, it will generate a random authorization cookie, store
615 it in Xauthority on the server, and verify that any forwarded connections
616 carry this cookie and replace it by the real cookie when the connection
617 is opened. The real authentication cookie is never sent to the server
618 machine (and no cookies are sent in the plain).
619
620 If the ForwardAgent variable is set to ``yes'' (or see the description of
621 the -A and -a options above) and the user is using an authentication
622 agent, the connection to the agent is automatically forwarded to the
623 remote side.
624
625VERIFYING HOST KEYS
626 When connecting to a server for the first time, a fingerprint of the
627 server's public key is presented to the user (unless the option
628 StrictHostKeyChecking has been disabled). Fingerprints can be determined
629 using ssh-keygen(1):
630
631 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
632
633 If the fingerprint is already known, it can be matched and the key can be
634 accepted or rejected. Because of the difficulty of comparing host keys
635 just by looking at hex strings, there is also support to compare host
636 keys visually, using random art. By setting the VisualHostKey option to
637 ``yes'', a small ASCII graphic gets displayed on every login to a server,
638 no matter if the session itself is interactive or not. By learning the
639 pattern a known server produces, a user can easily find out that the host
640 key has changed when a completely different pattern is displayed.
641 Because these patterns are not unambiguous however, a pattern that looks
642 similar to the pattern remembered only gives a good probability that the
643 host key is the same, not guaranteed proof.
644
645 To get a listing of the fingerprints along with their random art for all
646 known hosts, the following command line can be used:
647
648 $ ssh-keygen -lv -f ~/.ssh/known_hosts
649
650 If the fingerprint is unknown, an alternative method of verification is
651 available: SSH fingerprints verified by DNS. An additional resource
652 record (RR), SSHFP, is added to a zonefile and the connecting client is
653 able to match the fingerprint with that of the key presented.
654
655 In this example, we are connecting a client to a server,
656 ``host.example.com''. The SSHFP resource records should first be added
657 to the zonefile for host.example.com:
658
659 $ ssh-keygen -r host.example.com.
660
661 The output lines will have to be added to the zonefile. To check that
662 the zone is answering fingerprint queries:
663
664 $ dig -t SSHFP host.example.com
665
666 Finally the client connects:
667
668 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
669 [...]
670 Matching host key fingerprint found in DNS.
671 Are you sure you want to continue connecting (yes/no)?
672
673 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
674
675SSH-BASED VIRTUAL PRIVATE NETWORKS
676 ssh contains support for Virtual Private Network (VPN) tunnelling using
677 the tun(4) network pseudo-device, allowing two networks to be joined
678 securely. The sshd_config(5) configuration option PermitTunnel controls
679 whether the server supports this, and at what level (layer 2 or 3
680 traffic).
681
682 The following example would connect client network 10.0.50.0/24 with
683 remote network 10.0.99.0/24 using a point-to-point connection from
684 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
685 to the remote network, at 192.168.1.15, allows it.
686
687 On the client:
688
689 # ssh -f -w 0:1 192.168.1.15 true
690 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
691 # route add 10.0.99.0/24 10.1.1.2
692
693 On the server:
694
695 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
696 # route add 10.0.50.0/24 10.1.1.1
697
698 Client access may be more finely tuned via the /root/.ssh/authorized_keys
699 file (see below) and the PermitRootLogin server option. The following
700 entry would permit connections on tun(4) device 1 from user ``jane'' and
701 on tun device 2 from user ``john'', if PermitRootLogin is set to
702 ``forced-commands-only'':
703
704 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
705 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
706
707 Since an SSH-based setup entails a fair amount of overhead, it may be
708 more suited to temporary setups, such as for wireless VPNs. More
709 permanent VPNs are better provided by tools such as ipsecctl(8) and
710 isakmpd(8).
711
712ENVIRONMENT
713 ssh will normally set the following environment variables:
714
715 DISPLAY The DISPLAY variable indicates the location of the
716 X11 server. It is automatically set by ssh to
717 point to a value of the form ``hostname:n'', where
718 ``hostname'' indicates the host where the shell
719 runs, and `n' is an integer >= 1. ssh uses this
720 special value to forward X11 connections over the
721 secure channel. The user should normally not set
722 DISPLAY explicitly, as that will render the X11
723 connection insecure (and will require the user to
724 manually copy any required authorization cookies).
725
726 HOME Set to the path of the user's home directory.
727
728 LOGNAME Synonym for USER; set for compatibility with
729 systems that use this variable.
730
731 MAIL Set to the path of the user's mailbox.
732
733 PATH Set to the default PATH, as specified when
734 compiling ssh.
735
736 SSH_ASKPASS If ssh needs a passphrase, it will read the
737 passphrase from the current terminal if it was run
738 from a terminal. If ssh does not have a terminal
739 associated with it but DISPLAY and SSH_ASKPASS are
740 set, it will execute the program specified by
741 SSH_ASKPASS and open an X11 window to read the
742 passphrase. This is particularly useful when
743 calling ssh from a .xsession or related script.
744 (Note that on some machines it may be necessary to
745 redirect the input from /dev/null to make this
746 work.)
747
748 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
749 communicate with the agent.
750
751 SSH_CONNECTION Identifies the client and server ends of the
752 connection. The variable contains four space-
753 separated values: client IP address, client port
754 number, server IP address, and server port number.
755
756 SSH_ORIGINAL_COMMAND This variable contains the original command line if
757 a forced command is executed. It can be used to
758 extract the original arguments.
759
760 SSH_TTY This is set to the name of the tty (path to the
761 device) associated with the current shell or
762 command. If the current session has no tty, this
763 variable is not set.
764
765 TZ This variable is set to indicate the present time
766 zone if it was set when the daemon was started
767 (i.e. the daemon passes the value on to new
768 connections).
769
770 USER Set to the name of the user logging in.
771
772 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
773 ``VARNAME=value'' to the environment if the file exists and users are
774 allowed to change their environment. For more information, see the
775 PermitUserEnvironment option in sshd_config(5).
776
777FILES
778 ~/.rhosts
779 This file is used for host-based authentication (see above). On
780 some machines this file may need to be world-readable if the
781 user's home directory is on an NFS partition, because sshd(8)
782 reads it as root. Additionally, this file must be owned by the
783 user, and must not have write permissions for anyone else. The
784 recommended permission for most machines is read/write for the
785 user, and not accessible by others.
786
787 ~/.shosts
788 This file is used in exactly the same way as .rhosts, but allows
789 host-based authentication without permitting login with
790 rlogin/rsh.
791
792 ~/.ssh/
793 This directory is the default location for all user-specific
794 configuration and authentication information. There is no
795 general requirement to keep the entire contents of this directory
796 secret, but the recommended permissions are read/write/execute
797 for the user, and not accessible by others.
798
799 ~/.ssh/authorized_keys
800 Lists the public keys (DSA, ECDSA, ED25519, RSA) that can be used
801 for logging in as this user. The format of this file is
802 described in the sshd(8) manual page. This file is not highly
803 sensitive, but the recommended permissions are read/write for the
804 user, and not accessible by others.
805
806 ~/.ssh/config
807 This is the per-user configuration file. The file format and
808 configuration options are described in ssh_config(5). Because of
809 the potential for abuse, this file must have strict permissions:
810 read/write for the user, and not writable by others.
811
812 ~/.ssh/environment
813 Contains additional definitions for environment variables; see
814 ENVIRONMENT, above.
815
816 ~/.ssh/identity
817 ~/.ssh/id_dsa
818 ~/.ssh/id_ecdsa
819 ~/.ssh/id_ed25519
820 ~/.ssh/id_rsa
821 Contains the private key for authentication. These files contain
822 sensitive data and should be readable by the user but not
823 accessible by others (read/write/execute). ssh will simply
824 ignore a private key file if it is accessible by others. It is
825 possible to specify a passphrase when generating the key which
826 will be used to encrypt the sensitive part of this file using
827 3DES.
828
829 ~/.ssh/identity.pub
830 ~/.ssh/id_dsa.pub
831 ~/.ssh/id_ecdsa.pub
832 ~/.ssh/id_ed25519.pub
833 ~/.ssh/id_rsa.pub
834 Contains the public key for authentication. These files are not
835 sensitive and can (but need not) be readable by anyone.
836
837 ~/.ssh/known_hosts
838 Contains a list of host keys for all hosts the user has logged
839 into that are not already in the systemwide list of known host
840 keys. See sshd(8) for further details of the format of this
841 file.
842
843 ~/.ssh/rc
844 Commands in this file are executed by ssh when the user logs in,
845 just before the user's shell (or command) is started. See the
846 sshd(8) manual page for more information.
847
848 /etc/hosts.equiv
849 This file is for host-based authentication (see above). It
850 should only be writable by root.
851
852 /etc/shosts.equiv
853 This file is used in exactly the same way as hosts.equiv, but
854 allows host-based authentication without permitting login with
855 rlogin/rsh.
856
857 /etc/ssh/ssh_config
858 Systemwide configuration file. The file format and configuration
859 options are described in ssh_config(5).
860
861 /etc/ssh/ssh_host_key
862 /etc/ssh/ssh_host_dsa_key
863 /etc/ssh/ssh_host_ecdsa_key
864 /etc/ssh/ssh_host_ed25519_key
865 /etc/ssh/ssh_host_rsa_key
866 These files contain the private parts of the host keys and are
867 used for host-based authentication. If protocol version 1 is
868 used, ssh must be setuid root, since the host key is readable
869 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
870 access the host keys, eliminating the requirement that ssh be
871 setuid root when host-based authentication is used. By default
872 ssh is not setuid root.
873
874 /etc/ssh/ssh_known_hosts
875 Systemwide list of known host keys. This file should be prepared
876 by the system administrator to contain the public host keys of
877 all machines in the organization. It should be world-readable.
878 See sshd(8) for further details of the format of this file.
879
880 /etc/ssh/sshrc
881 Commands in this file are executed by ssh when the user logs in,
882 just before the user's shell (or command) is started. See the
883 sshd(8) manual page for more information.
884
885EXIT STATUS
886 ssh exits with the exit status of the remote command or with 255 if an
887 error occurred.
888
889SEE ALSO
890 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
891 tun(4), ssh_config(5), ssh-keysign(8), sshd(8)
892
893STANDARDS
894 S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned
895 Numbers, RFC 4250, January 2006.
896
897 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture,
898 RFC 4251, January 2006.
899
900 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol,
901 RFC 4252, January 2006.
902
903 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer
904 Protocol, RFC 4253, January 2006.
905
906 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC
907 4254, January 2006.
908
909 J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell
910 (SSH) Key Fingerprints, RFC 4255, January 2006.
911
912 F. Cusack and M. Forssen, Generic Message Exchange Authentication for the
913 Secure Shell Protocol (SSH), RFC 4256, January 2006.
914
915 J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break
916 Extension, RFC 4335, January 2006.
917
918 M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport
919 Layer Encryption Modes, RFC 4344, January 2006.
920
921 B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport
922 Layer Protocol, RFC 4345, January 2006.
923
924 M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for
925 the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006.
926
927 J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File
928 Format, RFC 4716, November 2006.
929
930 D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the
931 Secure Shell Transport Layer, RFC 5656, December 2009.
932
933 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
934 Real-World Security, 1999, International Workshop on Cryptographic
935 Techniques and E-Commerce (CrypTEC '99).
936
937AUTHORS
938 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
939 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
940 de Raadt and Dug Song removed many bugs, re-added newer features and
941 created OpenSSH. Markus Friedl contributed the support for SSH protocol
942 versions 1.5 and 2.0.
943
944OpenBSD 5.6 July 24, 2014 OpenBSD 5.6
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..c40ce5f08
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,930 @@
1SSH_CONFIG(5) File Formats Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config - 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 ``Host''
20 specifications, and that section is only applied for hosts that match one
21 of the patterns given in the specification. The matched host name is the
22 one given on the command line.
23
24 Since the first obtained value for each parameter is used, more host-
25 specific declarations should be given near the beginning of the file, and
26 general defaults at the end.
27
28 The configuration file has the following format:
29
30 Empty lines and lines starting with `#' are comments. Otherwise a line
31 is of the format ``keyword arguments''. Configuration options may be
32 separated by whitespace or optional whitespace and exactly one `='; the
33 latter format is useful to avoid the need to quote whitespace when
34 specifying configuration options using the ssh, scp, and sftp -o option.
35 Arguments may optionally be enclosed in double quotes (") in order to
36 represent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that
39 keywords are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host or
42 Match keyword) to be only for those hosts that match one of the
43 patterns given after the keyword. If more than one pattern is
44 provided, they should be separated by whitespace. A single `*'
45 as a pattern can be used to provide global defaults for all
46 hosts. The host is the hostname argument given on the command
47 line (i.e. the name is not converted to a canonicalized host name
48 before matching).
49
50 A pattern entry may be negated by prefixing it with an
51 exclamation mark (`!'). If a negated entry is matched, then the
52 Host entry is ignored, regardless of whether any other patterns
53 on the line match. Negated matches are therefore useful to
54 provide exceptions for wildcard matches.
55
56 See PATTERNS for more information on patterns.
57
58 Match Restricts the following declarations (up to the next Host or
59 Match keyword) to be used only when the conditions following the
60 Match keyword are satisfied. Match conditions are specified
61 using one or more keyword/criteria pairs or the single token all
62 which matches all criteria. The available keywords are: exec,
63 host, originalhost, user, and localuser.
64
65 The exec keyword executes the specified command under the user's
66 shell. If the command returns a zero exit status then the
67 condition is considered true. Commands containing whitespace
68 characters must be quoted. The following character sequences in
69 the command will be expanded prior to execution: `%L' will be
70 substituted by the first component of the local host name, `%l'
71 will be substituted by the local host name (including any domain
72 name), `%h' will be substituted by the target host name, `%n'
73 will be substituted by the original target host name specified on
74 the command-line, `%p' the destination port, `%r' by the remote
75 login username, and `%u' by the username of the user running
76 ssh(1).
77
78 The other keywords' criteria must be single entries or comma-
79 separated lists and may use the wildcard and negation operators
80 described in the PATTERNS section. The criteria for the host
81 keyword are matched against the target hostname, after any
82 substitution by the Hostname option. The originalhost keyword
83 matches against the hostname as it was specified on the command-
84 line. The user keyword matches against the target username on
85 the remote host. The localuser keyword matches against the name
86 of the local user running ssh(1) (this keyword may be useful in
87 system-wide ssh_config files).
88
89 AddressFamily
90 Specifies which address family to use when connecting. Valid
91 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
92 (use IPv6 only).
93
94 BatchMode
95 If set to ``yes'', passphrase/password querying will be disabled.
96 This option is useful in scripts and other batch jobs where no
97 user is present to supply the password. The argument must be
98 ``yes'' or ``no''. The default is ``no''.
99
100 BindAddress
101 Use the specified address on the local machine as the source
102 address of the connection. Only useful on systems with more than
103 one address. Note that this option does not work if
104 UsePrivilegedPort is set to ``yes''.
105
106 CanonicalDomains
107 When CanonicalizeHostname is enabled, this option specifies the
108 list of domain suffixes in which to search for the specified
109 destination host.
110
111 CanonicalizeFallbackLocal
112 Specifies whether to fail with an error when hostname
113 canonicalization fails. The default, ``yes'', will attempt to
114 look up the unqualified hostname using the system resolver's
115 search rules. A value of ``no'' will cause ssh(1) to fail
116 instantly if CanonicalizeHostname is enabled and the target
117 hostname cannot be found in any of the domains specified by
118 CanonicalDomains.
119
120 CanonicalizeHostname
121 Controls whether explicit hostname canonicalization is performed.
122 The default, ``no'', is not to perform any name rewriting and let
123 the system resolver handle all hostname lookups. If set to
124 ``yes'' then, for connections that do not use a ProxyCommand,
125 ssh(1) will attempt to canonicalize the hostname specified on the
126 command line using the CanonicalDomains suffixes and
127 CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is
128 set to ``always'', then canonicalization is applied to proxied
129 connections too.
130
131 If this option is enabled and canonicalisation results in the
132 target hostname changing, then the configuration files are
133 processed again using the new target name to pick up any new
134 configuration in matching Host stanzas.
135
136 CanonicalizeMaxDots
137 Specifies the maximum number of dot characters in a hostname
138 before canonicalization is disabled. The default, ``1'', allows
139 a single dot (i.e. hostname.subdomain).
140
141 CanonicalizePermittedCNAMEs
142 Specifies rules to determine whether CNAMEs should be followed
143 when canonicalizing hostnames. The rules consist of one or more
144 arguments of source_domain_list:target_domain_list, where
145 source_domain_list is a pattern-list of domains that may follow
146 CNAMEs in canonicalization, and target_domain_list is a pattern-
147 list of domains that they may resolve to.
148
149 For example, ``*.a.example.com:*.b.example.com,*.c.example.com''
150 will allow hostnames matching ``*.a.example.com'' to be
151 canonicalized to names in the ``*.b.example.com'' or
152 ``*.c.example.com'' domains.
153
154 ChallengeResponseAuthentication
155 Specifies whether to use challenge-response authentication. The
156 argument to this keyword must be ``yes'' or ``no''. The default
157 is ``yes''.
158
159 CheckHostIP
160 If this flag is set to ``yes'', ssh(1) will additionally check
161 the host IP address in the known_hosts file. This allows ssh to
162 detect if a host key changed due to DNS spoofing. If the option
163 is set to ``no'', the check will not be executed. The default is
164 ``yes''.
165
166 Cipher Specifies the cipher to use for encrypting the session in
167 protocol version 1. Currently, ``blowfish'', ``3des'', and
168 ``des'' are supported. des is only supported in the ssh(1)
169 client for interoperability with legacy protocol 1
170 implementations that do not support the 3des cipher. Its use is
171 strongly discouraged due to cryptographic weaknesses. The
172 default is ``3des''.
173
174 Ciphers
175 Specifies the ciphers allowed for protocol version 2 in order of
176 preference. Multiple ciphers must be comma-separated. The
177 supported ciphers are:
178
179 3des-cbc
180 aes128-cbc
181 aes192-cbc
182 aes256-cbc
183 aes128-ctr
184 aes192-ctr
185 aes256-ctr
186 aes128-gcm@openssh.com
187 aes256-gcm@openssh.com
188 arcfour
189 arcfour128
190 arcfour256
191 blowfish-cbc
192 cast128-cbc
193 chacha20-poly1305@openssh.com
194
195 The default is:
196
197 aes128-ctr,aes192-ctr,aes256-ctr,
198 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
199 chacha20-poly1305@openssh.com,
200 arcfour256,arcfour128,
201 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,
202 aes192-cbc,aes256-cbc,arcfour
203
204 The list of available ciphers may also be obtained using the -Q
205 option of ssh(1).
206
207 ClearAllForwardings
208 Specifies that all local, remote, and dynamic port forwardings
209 specified in the configuration files or on the command line be
210 cleared. This option is primarily useful when used from the
211 ssh(1) command line to clear port forwardings set in
212 configuration files, and is automatically set by scp(1) and
213 sftp(1). The argument must be ``yes'' or ``no''. The default is
214 ``no''.
215
216 Compression
217 Specifies whether to use compression. The argument must be
218 ``yes'' or ``no''. The default is ``no''.
219
220 CompressionLevel
221 Specifies the compression level to use if compression is enabled.
222 The argument must be an integer from 1 (fast) to 9 (slow, best).
223 The default level is 6, which is good for most applications. The
224 meaning of the values is the same as in gzip(1). Note that this
225 option applies to protocol version 1 only.
226
227 ConnectionAttempts
228 Specifies the number of tries (one per second) to make before
229 exiting. The argument must be an integer. This may be useful in
230 scripts if the connection sometimes fails. The default is 1.
231
232 ConnectTimeout
233 Specifies the timeout (in seconds) used when connecting to the
234 SSH server, instead of using the default system TCP timeout.
235 This value is used only when the target is down or really
236 unreachable, not when it refuses the connection.
237
238 ControlMaster
239 Enables the sharing of multiple sessions over a single network
240 connection. When set to ``yes'', ssh(1) will listen for
241 connections on a control socket specified using the ControlPath
242 argument. Additional sessions can connect to this socket using
243 the same ControlPath with ControlMaster set to ``no'' (the
244 default). These sessions will try to reuse the master instance's
245 network connection rather than initiating new ones, but will fall
246 back to connecting normally if the control socket does not exist,
247 or is not listening.
248
249 Setting this to ``ask'' will cause ssh to listen for control
250 connections, but require confirmation using the SSH_ASKPASS
251 program before they are accepted (see ssh-add(1) for details).
252 If the ControlPath cannot be opened, ssh will continue without
253 connecting to a master instance.
254
255 X11 and ssh-agent(1) forwarding is supported over these
256 multiplexed connections, however the display and agent forwarded
257 will be the one belonging to the master connection i.e. it is not
258 possible to forward multiple displays or agents.
259
260 Two additional options allow for opportunistic multiplexing: try
261 to use a master connection but fall back to creating a new one if
262 one does not already exist. These options are: ``auto'' and
263 ``autoask''. The latter requires confirmation like the ``ask''
264 option.
265
266 ControlPath
267 Specify the path to the control socket used for connection
268 sharing as described in the ControlMaster section above or the
269 string ``none'' to disable connection sharing. In the path, `%L'
270 will be substituted by the first component of the local host
271 name, `%l' will be substituted by the local host name (including
272 any domain name), `%h' will be substituted by the target host
273 name, `%n' will be substituted by the original target host name
274 specified on the command line, `%p' the destination port, `%r' by
275 the remote login username, `%u' by the username of the user
276 running ssh(1), and `%C' by a hash of the concatenation:
277 %l%h%p%r. It is recommended that any ControlPath used for
278 opportunistic connection sharing include at least %h, %p, and %r
279 (or alternatively %C). This ensures that shared connections are
280 uniquely identified.
281
282 ControlPersist
283 When used in conjunction with ControlMaster, specifies that the
284 master connection should remain open in the background (waiting
285 for future client connections) after the initial client
286 connection has been closed. If set to ``no'', then the master
287 connection will not be placed into the background, and will close
288 as soon as the initial client connection is closed. If set to
289 ``yes'', then the master connection will remain in the background
290 indefinitely (until killed or closed via a mechanism such as the
291 ssh(1) ``-O exit'' option). If set to a time in seconds, or a
292 time in any of the formats documented in sshd_config(5), then the
293 backgrounded master connection will automatically terminate after
294 it has remained idle (with no client connections) for the
295 specified time.
296
297 DynamicForward
298 Specifies that a TCP port on the local machine be forwarded over
299 the secure channel, and the application protocol is then used to
300 determine where to connect to from the remote machine.
301
302 The argument must be [bind_address:]port. IPv6 addresses can be
303 specified by enclosing addresses in square brackets. By default,
304 the local port is bound in accordance with the GatewayPorts
305 setting. However, an explicit bind_address may be used to bind
306 the connection to a specific address. The bind_address of
307 ``localhost'' indicates that the listening port be bound for
308 local use only, while an empty address or `*' indicates that the
309 port should be available from all interfaces.
310
311 Currently the SOCKS4 and SOCKS5 protocols are supported, and
312 ssh(1) will act as a SOCKS server. Multiple forwardings may be
313 specified, and additional forwardings can be given on the command
314 line. Only the superuser can forward privileged ports.
315
316 EnableSSHKeysign
317 Setting this option to ``yes'' in the global client configuration
318 file /etc/ssh/ssh_config enables the use of the helper program
319 ssh-keysign(8) during HostbasedAuthentication. The argument must
320 be ``yes'' or ``no''. The default is ``no''. This option should
321 be placed in the non-hostspecific section. See ssh-keysign(8)
322 for more information.
323
324 EscapeChar
325 Sets the escape character (default: `~'). The escape character
326 can also be set on the command line. The argument should be a
327 single character, `^' followed by a letter, or ``none'' to
328 disable the escape character entirely (making the connection
329 transparent for binary data).
330
331 ExitOnForwardFailure
332 Specifies whether ssh(1) should terminate the connection if it
333 cannot set up all requested dynamic, tunnel, local, and remote
334 port forwardings. The argument must be ``yes'' or ``no''. The
335 default is ``no''.
336
337 ForwardAgent
338 Specifies whether the connection to the authentication agent (if
339 any) will be forwarded to the remote machine. The argument must
340 be ``yes'' or ``no''. The default is ``no''.
341
342 Agent forwarding should be enabled with caution. Users with the
343 ability to bypass file permissions on the remote host (for the
344 agent's Unix-domain socket) can access the local agent through
345 the forwarded connection. An attacker cannot obtain key material
346 from the agent, however they can perform operations on the keys
347 that enable them to authenticate using the identities loaded into
348 the agent.
349
350 ForwardX11
351 Specifies whether X11 connections will be automatically
352 redirected over the secure channel and DISPLAY set. The argument
353 must be ``yes'' or ``no''. The default is ``no''.
354
355 X11 forwarding should be enabled with caution. Users with the
356 ability to bypass file permissions on the remote host (for the
357 user's X11 authorization database) can access the local X11
358 display through the forwarded connection. An attacker may then
359 be able to perform activities such as keystroke monitoring if the
360 ForwardX11Trusted option is also enabled.
361
362 ForwardX11Timeout
363 Specify a timeout for untrusted X11 forwarding using the format
364 described in the TIME FORMATS section of sshd_config(5). X11
365 connections received by ssh(1) after this time will be refused.
366 The default is to disable untrusted X11 forwarding after twenty
367 minutes has elapsed.
368
369 ForwardX11Trusted
370 If this option is set to ``yes'', remote X11 clients will have
371 full access to the original X11 display.
372
373 If this option is set to ``no'', remote X11 clients will be
374 considered untrusted and prevented from stealing or tampering
375 with data belonging to trusted X11 clients. Furthermore, the
376 xauth(1) token used for the session will be set to expire after
377 20 minutes. Remote clients will be refused access after this
378 time.
379
380 The default is ``no''.
381
382 See the X11 SECURITY extension specification for full details on
383 the restrictions imposed on untrusted clients.
384
385 GatewayPorts
386 Specifies whether remote hosts are allowed to connect to local
387 forwarded ports. By default, ssh(1) binds local port forwardings
388 to the loopback address. This prevents other remote hosts from
389 connecting to forwarded ports. GatewayPorts can be used to
390 specify that ssh should bind local port forwardings to the
391 wildcard address, thus allowing remote hosts to connect to
392 forwarded ports. The argument must be ``yes'' or ``no''. The
393 default is ``no''.
394
395 GlobalKnownHostsFile
396 Specifies one or more files to use for the global host key
397 database, separated by whitespace. The default is
398 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
399
400 GSSAPIAuthentication
401 Specifies whether user authentication based on GSSAPI is allowed.
402 The default is ``no''. Note that this option applies to protocol
403 version 2 only.
404
405 GSSAPIDelegateCredentials
406 Forward (delegate) credentials to the server. The default is
407 ``no''. Note that this option applies to protocol version 2
408 only.
409
410 HashKnownHosts
411 Indicates that ssh(1) should hash host names and addresses when
412 they are added to ~/.ssh/known_hosts. These hashed names may be
413 used normally by ssh(1) and sshd(8), but they do not reveal
414 identifying information should the file's contents be disclosed.
415 The default is ``no''. Note that existing names and addresses in
416 known hosts files will not be converted automatically, but may be
417 manually hashed using ssh-keygen(1).
418
419 HostbasedAuthentication
420 Specifies whether to try rhosts based authentication with public
421 key authentication. The argument must be ``yes'' or ``no''. The
422 default is ``no''. This option applies to protocol version 2
423 only and is similar to RhostsRSAAuthentication.
424
425 HostKeyAlgorithms
426 Specifies the protocol version 2 host key algorithms that the
427 client wants to use in order of preference. The default for this
428 option is:
429
430 ecdsa-sha2-nistp256-cert-v01@openssh.com,
431 ecdsa-sha2-nistp384-cert-v01@openssh.com,
432 ecdsa-sha2-nistp521-cert-v01@openssh.com,
433 ssh-ed25519-cert-v01@openssh.com,
434 ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
435 ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
436 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
437 ssh-ed25519,ssh-rsa,ssh-dss
438
439 If hostkeys are known for the destination host then this default
440 is modified to prefer their algorithms.
441
442 HostKeyAlias
443 Specifies an alias that should be used instead of the real host
444 name when looking up or saving the host key in the host key
445 database files. This option is useful for tunneling SSH
446 connections or for multiple servers running on a single host.
447
448 HostName
449 Specifies the real host name to log into. This can be used to
450 specify nicknames or abbreviations for hosts. If the hostname
451 contains the character sequence `%h', then this will be replaced
452 with the host name specified on the command line (this is useful
453 for manipulating unqualified names). The character sequence `%%'
454 will be replaced by a single `%' character, which may be used
455 when specifying IPv6 link-local addresses.
456
457 The default is the name given on the command line. Numeric IP
458 addresses are also permitted (both on the command line and in
459 HostName specifications).
460
461 IdentitiesOnly
462 Specifies that ssh(1) should only use the authentication identity
463 files configured in the ssh_config files, even if ssh-agent(1) or
464 a PKCS11Provider offers more identities. The argument to this
465 keyword must be ``yes'' or ``no''. This option is intended for
466 situations where ssh-agent offers many different identities. The
467 default is ``no''.
468
469 IdentityFile
470 Specifies a file from which the user's DSA, ECDSA, ED25519 or RSA
471 authentication identity is read. The default is ~/.ssh/identity
472 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
473 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
474 Additionally, any identities represented by the authentication
475 agent will be used for authentication unless IdentitiesOnly is
476 set. ssh(1) will try to load certificate information from the
477 filename obtained by appending -cert.pub to the path of a
478 specified IdentityFile.
479
480 The file name may use the tilde syntax to refer to a user's home
481 directory or one of the following escape characters: `%d' (local
482 user's home directory), `%u' (local user name), `%l' (local host
483 name), `%h' (remote host name) or `%r' (remote user name).
484
485 It is possible to have multiple identity files specified in
486 configuration files; all these identities will be tried in
487 sequence. Multiple IdentityFile directives will add to the list
488 of identities tried (this behaviour differs from that of other
489 configuration directives).
490
491 IdentityFile may be used in conjunction with IdentitiesOnly to
492 select which identities in an agent are offered during
493 authentication.
494
495 IgnoreUnknown
496 Specifies a pattern-list of unknown options to be ignored if they
497 are encountered in configuration parsing. This may be used to
498 suppress errors if ssh_config contains options that are
499 unrecognised by ssh(1). It is recommended that IgnoreUnknown be
500 listed early in the configuration file as it will not be applied
501 to unknown options that appear before it.
502
503 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
504 Accepted values are ``af11'', ``af12'', ``af13'', ``af21'',
505 ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', ``af41'',
506 ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', ``cs4'',
507 ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', ``throughput'',
508 ``reliability'', or a numeric value. This option may take one or
509 two arguments, separated by whitespace. If one argument is
510 specified, it is used as the packet class unconditionally. If
511 two values are specified, the first is automatically selected for
512 interactive sessions and the second for non-interactive sessions.
513 The default is ``lowdelay'' for interactive sessions and
514 ``throughput'' for non-interactive sessions.
515
516 KbdInteractiveAuthentication
517 Specifies whether to use keyboard-interactive authentication.
518 The argument to this keyword must be ``yes'' or ``no''. The
519 default is ``yes''.
520
521 KbdInteractiveDevices
522 Specifies the list of methods to use in keyboard-interactive
523 authentication. Multiple method names must be comma-separated.
524 The default is to use the server specified list. The methods
525 available vary depending on what the server supports. For an
526 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
527 and ``skey''.
528
529 KexAlgorithms
530 Specifies the available KEX (Key Exchange) algorithms. Multiple
531 algorithms must be comma-separated. The default is:
532
533 curve25519-sha256@libssh.org,
534 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
535 diffie-hellman-group-exchange-sha256,
536 diffie-hellman-group14-sha1,
537 diffie-hellman-group-exchange-sha1,
538 diffie-hellman-group1-sha1
539
540 LocalCommand
541 Specifies a command to execute on the local machine after
542 successfully connecting to the server. The command string
543 extends to the end of the line, and is executed with the user's
544 shell. The following escape character substitutions will be
545 performed: `%d' (local user's home directory), `%h' (remote host
546 name), `%l' (local host name), `%n' (host name as provided on the
547 command line), `%p' (remote port), `%r' (remote user name) or
548 `%u' (local user name) or `%C' by a hash of the concatenation:
549 %l%h%p%r.
550
551 The command is run synchronously and does not have access to the
552 session of the ssh(1) that spawned it. It should not be used for
553 interactive commands.
554
555 This directive is ignored unless PermitLocalCommand has been
556 enabled.
557
558 LocalForward
559 Specifies that a TCP port on the local machine be forwarded over
560 the secure channel to the specified host and port from the remote
561 machine. The first argument must be [bind_address:]port and the
562 second argument must be host:hostport. IPv6 addresses can be
563 specified by enclosing addresses in square brackets. Multiple
564 forwardings may be specified, and additional forwardings can be
565 given on the command line. Only the superuser can forward
566 privileged ports. By default, the local port is bound in
567 accordance with the GatewayPorts setting. However, an explicit
568 bind_address may be used to bind the connection to a specific
569 address. The bind_address of ``localhost'' indicates that the
570 listening port be bound for local use only, while an empty
571 address or `*' indicates that the port should be available from
572 all interfaces.
573
574 LogLevel
575 Gives the verbosity level that is used when logging messages from
576 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
577 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
578 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
579 higher levels of verbose output.
580
581 MACs Specifies the MAC (message authentication code) algorithms in
582 order of preference. The MAC algorithm is used in protocol
583 version 2 for data integrity protection. Multiple algorithms
584 must be comma-separated. The algorithms that contain ``-etm''
585 calculate the MAC after encryption (encrypt-then-mac). These are
586 considered safer and their use recommended. The default is:
587
588 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
589 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
590 umac-64@openssh.com,umac-128@openssh.com,
591 hmac-sha2-256,hmac-sha2-512,
592 hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,
593 hmac-ripemd160-etm@openssh.com,
594 hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,
595 hmac-md5,hmac-sha1,hmac-ripemd160,
596 hmac-sha1-96,hmac-md5-96
597
598 NoHostAuthenticationForLocalhost
599 This option can be used if the home directory is shared across
600 machines. In this case localhost will refer to a different
601 machine on each of the machines and the user will get many
602 warnings about changed host keys. However, this option disables
603 host authentication for localhost. The argument to this keyword
604 must be ``yes'' or ``no''. The default is to check the host key
605 for localhost.
606
607 NumberOfPasswordPrompts
608 Specifies the number of password prompts before giving up. The
609 argument to this keyword must be an integer. The default is 3.
610
611 PasswordAuthentication
612 Specifies whether to use password authentication. The argument
613 to this keyword must be ``yes'' or ``no''. The default is
614 ``yes''.
615
616 PermitLocalCommand
617 Allow local command execution via the LocalCommand option or
618 using the !command escape sequence in ssh(1). The argument must
619 be ``yes'' or ``no''. The default is ``no''.
620
621 PKCS11Provider
622 Specifies which PKCS#11 provider to use. The argument to this
623 keyword is the PKCS#11 shared library ssh(1) should use to
624 communicate with a PKCS#11 token providing the user's private RSA
625 key.
626
627 Port Specifies the port number to connect on the remote host. The
628 default is 22.
629
630 PreferredAuthentications
631 Specifies the order in which the client should try protocol 2
632 authentication methods. This allows a client to prefer one
633 method (e.g. keyboard-interactive) over another method (e.g.
634 password). The default is:
635
636 gssapi-with-mic,hostbased,publickey,
637 keyboard-interactive,password
638
639 Protocol
640 Specifies the protocol versions ssh(1) should support in order of
641 preference. The possible values are `1' and `2'. Multiple
642 versions must be comma-separated. When this option is set to
643 ``2,1'' ssh will try version 2 and fall back to version 1 if
644 version 2 is not available. The default is `2'.
645
646 ProxyCommand
647 Specifies the command to use to connect to the server. The
648 command string extends to the end of the line, and is executed
649 using the user's shell `exec' directive to avoid a lingering
650 shell process.
651
652 In the command string, any occurrence of `%h' will be substituted
653 by the host name to connect, `%p' by the port, and `%r' by the
654 remote user name. The command can be basically anything, and
655 should read from its standard input and write to its standard
656 output. It should eventually connect an sshd(8) server running
657 on some machine, or execute sshd -i somewhere. Host key
658 management will be done using the HostName of the host being
659 connected (defaulting to the name typed by the user). Setting
660 the command to ``none'' disables this option entirely. Note that
661 CheckHostIP is not available for connects with a proxy command.
662
663 This directive is useful in conjunction with nc(1) and its proxy
664 support. For example, the following directive would connect via
665 an HTTP proxy at 192.0.2.0:
666
667 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
668
669 ProxyUseFdpass
670 Specifies that ProxyCommand will pass a connected file descriptor
671 back to ssh(1) instead of continuing to execute and pass data.
672 The default is ``no''.
673
674 PubkeyAuthentication
675 Specifies whether to try public key authentication. The argument
676 to this keyword must be ``yes'' or ``no''. The default is
677 ``yes''. This option applies to protocol version 2 only.
678
679 RekeyLimit
680 Specifies the maximum amount of data that may be transmitted
681 before the session key is renegotiated, optionally followed a
682 maximum amount of time that may pass before the session key is
683 renegotiated. The first argument is specified in bytes and may
684 have a suffix of `K', `M', or `G' to indicate Kilobytes,
685 Megabytes, or Gigabytes, respectively. The default is between
686 `1G' and `4G', depending on the cipher. The optional second
687 value is specified in seconds and may use any of the units
688 documented in the TIME FORMATS section of sshd_config(5). The
689 default value for RekeyLimit is ``default none'', which means
690 that rekeying is performed after the cipher's default amount of
691 data has been sent or received and no time based rekeying is
692 done. This option applies to protocol version 2 only.
693
694 RemoteForward
695 Specifies that a TCP port on the remote machine be forwarded over
696 the secure channel to the specified host and port from the local
697 machine. The first argument must be [bind_address:]port and the
698 second argument must be host:hostport. IPv6 addresses can be
699 specified by enclosing addresses in square brackets. Multiple
700 forwardings may be specified, and additional forwardings can be
701 given on the command line. Privileged ports can be forwarded
702 only when logging in as root on the remote machine.
703
704 If the port argument is `0', the listen port will be dynamically
705 allocated on the server and reported to the client at run time.
706
707 If the bind_address is not specified, the default is to only bind
708 to loopback addresses. If the bind_address is `*' or an empty
709 string, then the forwarding is requested to listen on all
710 interfaces. Specifying a remote bind_address will only succeed
711 if the server's GatewayPorts option is enabled (see
712 sshd_config(5)).
713
714 RequestTTY
715 Specifies whether to request a pseudo-tty for the session. The
716 argument may be one of: ``no'' (never request a TTY), ``yes''
717 (always request a TTY when standard input is a TTY), ``force''
718 (always request a TTY) or ``auto'' (request a TTY when opening a
719 login session). This option mirrors the -t and -T flags for
720 ssh(1).
721
722 RhostsRSAAuthentication
723 Specifies whether to try rhosts based authentication with RSA
724 host authentication. The argument must be ``yes'' or ``no''.
725 The default is ``no''. This option applies to protocol version 1
726 only and requires ssh(1) to be setuid root.
727
728 RSAAuthentication
729 Specifies whether to try RSA authentication. The argument to
730 this keyword must be ``yes'' or ``no''. RSA authentication will
731 only be attempted if the identity file exists, or an
732 authentication agent is running. The default is ``yes''. Note
733 that this option applies to protocol version 1 only.
734
735 SendEnv
736 Specifies what variables from the local environ(7) should be sent
737 to the server. Note that environment passing is only supported
738 for protocol 2. The server must also support it, and the server
739 must be configured to accept these environment variables. Refer
740 to AcceptEnv in sshd_config(5) for how to configure the server.
741 Variables are specified by name, which may contain wildcard
742 characters. Multiple environment variables may be separated by
743 whitespace or spread across multiple SendEnv directives. The
744 default is not to send any environment variables.
745
746 See PATTERNS for more information on patterns.
747
748 ServerAliveCountMax
749 Sets the number of server alive messages (see below) which may be
750 sent without ssh(1) receiving any messages back from the server.
751 If this threshold is reached while server alive messages are
752 being sent, ssh will disconnect from the server, terminating the
753 session. It is important to note that the use of server alive
754 messages is very different from TCPKeepAlive (below). The server
755 alive messages are sent through the encrypted channel and
756 therefore will not be spoofable. The TCP keepalive option
757 enabled by TCPKeepAlive is spoofable. The server alive mechanism
758 is valuable when the client or server depend on knowing when a
759 connection has become inactive.
760
761 The default value is 3. If, for example, ServerAliveInterval
762 (see below) is set to 15 and ServerAliveCountMax is left at the
763 default, if the server becomes unresponsive, ssh will disconnect
764 after approximately 45 seconds. This option applies to protocol
765 version 2 only.
766
767 ServerAliveInterval
768 Sets a timeout interval in seconds after which if no data has
769 been received from the server, ssh(1) will send a message through
770 the encrypted channel to request a response from the server. The
771 default is 0, indicating that these messages will not be sent to
772 the server. This option applies to protocol version 2 only.
773
774 StreamLocalBindMask
775 Sets the octal file creation mode mask (umask) used when creating
776 a Unix-domain socket file for local or remote port forwarding.
777 This option is only used for port forwarding to a Unix-domain
778 socket file.
779
780 The default value is 0177, which creates a Unix-domain socket
781 file that is readable and writable only by the owner. Note that
782 not all operating systems honor the file mode on Unix-domain
783 socket files.
784
785 StreamLocalBindUnlink
786 Specifies whether to remove an existing Unix-domain socket file
787 for local or remote port forwarding before creating a new one.
788 If the socket file already exists and StreamLocalBindUnlink is
789 not enabled, ssh will be unable to forward the port to the Unix-
790 domain socket file. This option is only used for port forwarding
791 to a Unix-domain socket file.
792
793 The argument must be ``yes'' or ``no''. The default is ``no''.
794
795 StrictHostKeyChecking
796 If this flag is set to ``yes'', ssh(1) will never automatically
797 add host keys to the ~/.ssh/known_hosts file, and refuses to
798 connect to hosts whose host key has changed. This provides
799 maximum protection against trojan horse attacks, though it can be
800 annoying when the /etc/ssh/ssh_known_hosts file is poorly
801 maintained or when connections to new hosts are frequently made.
802 This option forces the user to manually add all new hosts. If
803 this flag is set to ``no'', ssh will automatically add new host
804 keys to the user known hosts files. If this flag is set to
805 ``ask'', new host keys will be added to the user known host files
806 only after the user has confirmed that is what they really want
807 to do, and ssh will refuse to connect to hosts whose host key has
808 changed. The host keys of known hosts will be verified
809 automatically in all cases. The argument must be ``yes'',
810 ``no'', or ``ask''. The default is ``ask''.
811
812 TCPKeepAlive
813 Specifies whether the system should send TCP keepalive messages
814 to the other side. If they are sent, death of the connection or
815 crash of one of the machines will be properly noticed. However,
816 this means that connections will die if the route is down
817 temporarily, and some people find it annoying.
818
819 The default is ``yes'' (to send TCP keepalive messages), and the
820 client will notice if the network goes down or the remote host
821 dies. This is important in scripts, and many users want it too.
822
823 To disable TCP keepalive messages, the value should be set to
824 ``no''.
825
826 Tunnel Request tun(4) device forwarding between the client and the
827 server. The argument must be ``yes'', ``point-to-point'' (layer
828 3), ``ethernet'' (layer 2), or ``no''. Specifying ``yes''
829 requests the default tunnel mode, which is ``point-to-point''.
830 The default is ``no''.
831
832 TunnelDevice
833 Specifies the tun(4) devices to open on the client (local_tun)
834 and the server (remote_tun).
835
836 The argument must be local_tun[:remote_tun]. The devices may be
837 specified by numerical ID or the keyword ``any'', which uses the
838 next available tunnel device. If remote_tun is not specified, it
839 defaults to ``any''. The default is ``any:any''.
840
841 UsePrivilegedPort
842 Specifies whether to use a privileged port for outgoing
843 connections. The argument must be ``yes'' or ``no''. The
844 default is ``no''. If set to ``yes'', ssh(1) must be setuid
845 root. Note that this option must be set to ``yes'' for
846 RhostsRSAAuthentication with older servers.
847
848 User Specifies the user to log in as. This can be useful when a
849 different user name is used on different machines. This saves
850 the trouble of having to remember to give the user name on the
851 command line.
852
853 UserKnownHostsFile
854 Specifies one or more files to use for the user host key
855 database, separated by whitespace. The default is
856 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
857
858 VerifyHostKeyDNS
859 Specifies whether to verify the remote key using DNS and SSHFP
860 resource records. If this option is set to ``yes'', the client
861 will implicitly trust keys that match a secure fingerprint from
862 DNS. Insecure fingerprints will be handled as if this option was
863 set to ``ask''. If this option is set to ``ask'', information on
864 fingerprint match will be displayed, but the user will still need
865 to confirm new host keys according to the StrictHostKeyChecking
866 option. The argument must be ``yes'', ``no'', or ``ask''. The
867 default is ``no''. Note that this option applies to protocol
868 version 2 only.
869
870 See also VERIFYING HOST KEYS in ssh(1).
871
872 VisualHostKey
873 If this flag is set to ``yes'', an ASCII art representation of
874 the remote host key fingerprint is printed in addition to the hex
875 fingerprint string at login and for unknown host keys. If this
876 flag is set to ``no'', no fingerprint strings are printed at
877 login and only the hex fingerprint string will be printed for
878 unknown host keys. The default is ``no''.
879
880 XAuthLocation
881 Specifies the full pathname of the xauth(1) program. The default
882 is /usr/X11R6/bin/xauth.
883
884PATTERNS
885 A pattern consists of zero or more non-whitespace characters, `*' (a
886 wildcard that matches zero or more characters), or `?' (a wildcard that
887 matches exactly one character). For example, to specify a set of
888 declarations for any host in the ``.co.uk'' set of domains, the following
889 pattern could be used:
890
891 Host *.co.uk
892
893 The following pattern would match any host in the 192.168.0.[0-9] network
894 range:
895
896 Host 192.168.0.?
897
898 A pattern-list is a comma-separated list of patterns. Patterns within
899 pattern-lists may be negated by preceding them with an exclamation mark
900 (`!'). For example, to allow a key to be used from anywhere within an
901 organization except from the ``dialup'' pool, the following entry (in
902 authorized_keys) could be used:
903
904 from="!*.dialup.example.com,*.example.com"
905
906FILES
907 ~/.ssh/config
908 This is the per-user configuration file. The format of this file
909 is described above. This file is used by the SSH client.
910 Because of the potential for abuse, this file must have strict
911 permissions: read/write for the user, and not accessible by
912 others.
913
914 /etc/ssh/ssh_config
915 Systemwide configuration file. This file provides defaults for
916 those values that are not specified in the user's configuration
917 file, and for those users who do not have a configuration file.
918 This file must be world-readable.
919
920SEE ALSO
921 ssh(1)
922
923AUTHORS
924 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
925 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
926 de Raadt and Dug Song removed many bugs, re-added newer features and
927 created OpenSSH. Markus Friedl contributed the support for SSH protocol
928 versions 1.5 and 2.0.
929
930OpenBSD 5.6 July 15, 2014 OpenBSD 5.6
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..3008e01bd
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,635 @@
1SSHD(8) System Manager's Manual SSHD(8)
2
3NAME
4 sshd - 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 ``user'', ``host'', ``laddr'',
45 ``lport'', and ``addr''. All are required and may be supplied in
46 any order, either with multiple -C options or as a comma-
47 separated list.
48
49 -c host_certificate_file
50 Specifies a path to a certificate file to identify sshd during
51 key exchange. The certificate file must match a host key file
52 specified using the -h option or the HostKey configuration
53 directive.
54
55 -D When this option is specified, sshd will not detach and does not
56 become a daemon. This allows easy monitoring of sshd.
57
58 -d Debug mode. The server sends verbose debug output to standard
59 error, and does not put itself in the background. The server
60 also will not fork and will only process one connection. This
61 option is only intended for debugging for the server. Multiple
62 -d options increase the debugging level. Maximum is 3.
63
64 -E log_file
65 Append debug logs to log_file instead of the system log.
66
67 -e Write debug logs to standard error instead of the system log.
68
69 -f config_file
70 Specifies the name of the configuration file. The default is
71 /etc/ssh/sshd_config. sshd refuses to start if there is no
72 configuration file.
73
74 -g login_grace_time
75 Gives the grace time for clients to authenticate themselves
76 (default 120 seconds). If the client fails to authenticate the
77 user within this many seconds, the server disconnects and exits.
78 A value of zero indicates no limit.
79
80 -h host_key_file
81 Specifies a file from which a host key is read. This option must
82 be given if sshd is not run as root (as the normal host key files
83 are normally not readable by anyone but root). The default is
84 /etc/ssh/ssh_host_key for protocol version 1, and
85 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key.
86 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
87 protocol version 2. It is possible to have multiple host key
88 files for the different protocol versions and host key
89 algorithms.
90
91 -i Specifies that sshd is being run from inetd(8). sshd is normally
92 not run from inetd because it needs to generate the server key
93 before it can respond to the client, and this may take tens of
94 seconds. Clients would have to wait too long if the key was
95 regenerated every time. However, with small key sizes (e.g. 512)
96 using sshd from inetd may be feasible.
97
98 -k key_gen_time
99 Specifies how often the ephemeral protocol version 1 server key
100 is regenerated (default 3600 seconds, or one hour). The
101 motivation for regenerating the key fairly often is that the key
102 is not stored anywhere, and after about an hour it becomes
103 impossible to recover the key for decrypting intercepted
104 communications even if the machine is cracked into or physically
105 seized. A value of zero indicates that the key will never be
106 regenerated.
107
108 -o option
109 Can be used to give options in the format used in the
110 configuration file. This is useful for specifying options for
111 which there is no separate command-line flag. For full details
112 of the options, and their values, see sshd_config(5).
113
114 -p port
115 Specifies the port on which the server listens for connections
116 (default 22). Multiple port options are permitted. Ports
117 specified in the configuration file with the Port option are
118 ignored when a command-line port is specified. Ports specified
119 using the ListenAddress option override command-line ports.
120
121 -q Quiet mode. Nothing is sent to the system log. Normally the
122 beginning, authentication, and termination of each connection is
123 logged.
124
125 -T Extended test mode. Check the validity of the configuration
126 file, output the effective configuration to stdout and then exit.
127 Optionally, Match rules may be applied by specifying the
128 connection parameters using one or more -C options.
129
130 -t Test mode. Only check the validity of the configuration file and
131 sanity of the keys. This is useful for updating sshd reliably as
132 configuration options may change.
133
134 -u len This option is used to specify the size of the field in the utmp
135 structure that holds the remote host name. If the resolved host
136 name is longer than len, the dotted decimal value will be used
137 instead. This allows hosts with very long host names that
138 overflow this field to still be uniquely identified. Specifying
139 -u0 indicates that only dotted decimal addresses should be put
140 into the utmp file. -u0 may also be used to prevent sshd from
141 making DNS requests unless the authentication mechanism or
142 configuration requires it. Authentication mechanisms that may
143 require DNS include RhostsRSAAuthentication,
144 HostbasedAuthentication, and using a from="pattern-list" option
145 in a key file. Configuration options that require DNS include
146 using a USER@HOST pattern in AllowUsers or DenyUsers.
147
148AUTHENTICATION
149 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
150 use protocol 2 only, though this can be changed via the Protocol option
151 in sshd_config(5). Protocol 2 supports DSA, ECDSA, ED25519 and RSA keys;
152 protocol 1 only supports RSA keys. For both protocols, each host has a
153 host-specific key, normally 2048 bits, used to identify the host.
154
155 Forward security for protocol 1 is provided through an additional server
156 key, normally 768 bits, generated when the server starts. This key is
157 normally regenerated every hour if it has been used, and is never stored
158 on disk. Whenever a client connects, the daemon responds with its public
159 host and server keys. The client compares the RSA host key against its
160 own database to verify that it has not changed. The client then
161 generates a 256-bit random number. It encrypts this random number using
162 both the host key and the server key, and sends the encrypted number to
163 the server. Both sides then use this random number as a session key
164 which is used to encrypt all further communications in the session. The
165 rest of the session is encrypted using a conventional cipher, currently
166 Blowfish or 3DES, with 3DES being used by default. The client selects
167 the encryption algorithm to use from those offered by the server.
168
169 For protocol 2, forward security is provided through a Diffie-Hellman key
170 agreement. This key agreement results in a shared session key. The rest
171 of the session is encrypted using a symmetric cipher, currently 128-bit
172 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
173 client selects the encryption algorithm to use from those offered by the
174 server. Additionally, session integrity is provided through a
175 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64,
176 umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512).
177
178 Finally, the server and the client enter an authentication dialog. The
179 client tries to authenticate itself using host-based authentication,
180 public key authentication, challenge-response authentication, or password
181 authentication.
182
183 Regardless of the authentication type, the account is checked to ensure
184 that it is accessible. An account is not accessible if it is locked,
185 listed in DenyUsers or its group is listed in DenyGroups . The
186 definition of a locked account is system dependant. Some platforms have
187 their own account database (eg AIX) and some modify the passwd field (
188 `*LK*' on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on
189 Tru64, a leading `*LOCKED*' on FreeBSD and a leading `!' on most
190 Linuxes). If there is a requirement to disable password authentication
191 for the account while allowing still public-key, then the passwd field
192 should be set to something other than these values (eg `NP' or `*NP*' ).
193
194 If the client successfully authenticates itself, a dialog for preparing
195 the session is entered. At this time the client may request things like
196 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
197 connections, or forwarding the authentication agent connection over the
198 secure channel.
199
200 After this, the client either requests a shell or execution of a command.
201 The sides then enter session mode. In this mode, either side may send
202 data at any time, and such data is forwarded to/from the shell or command
203 on the server side, and the user terminal in the client side.
204
205 When the user program terminates and all forwarded X11 and other
206 connections have been closed, the server sends command exit status to the
207 client, and both sides exit.
208
209LOGIN PROCESS
210 When a user successfully logs in, sshd does the following:
211
212 1. If the login is on a tty, and no command has been specified,
213 prints last login time and /etc/motd (unless prevented in the
214 configuration file or by ~/.hushlogin; see the FILES section).
215
216 2. If the login is on a tty, records login time.
217
218 3. Checks /etc/nologin; if it exists, prints contents and quits
219 (unless root).
220
221 4. Changes to run with normal user privileges.
222
223 5. Sets up basic environment.
224
225 6. Reads the file ~/.ssh/environment, if it exists, and users are
226 allowed to change their environment. See the
227 PermitUserEnvironment option in sshd_config(5).
228
229 7. Changes to user's home directory.
230
231 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option
232 is set, runs it; else if /etc/ssh/sshrc exists, runs it;
233 otherwise runs xauth. The ``rc'' files are given the X11
234 authentication protocol and cookie in standard input. See
235 SSHRC, below.
236
237 9. Runs user's shell or command.
238
239SSHRC
240 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
241 files but before starting the user's shell or command. It must not
242 produce any output on stdout; stderr must be used instead. If X11
243 forwarding is in use, it will receive the "proto cookie" pair in its
244 standard input (and DISPLAY in its environment). The script must call
245 xauth(1) because sshd will not run xauth automatically to add X11
246 cookies.
247
248 The primary purpose of this file is to run any initialization routines
249 which may be needed before the user's home directory becomes accessible;
250 AFS is a particular example of such an environment.
251
252 This file will probably contain some initialization code followed by
253 something similar to:
254
255 if read proto cookie && [ -n "$DISPLAY" ]; then
256 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
257 # X11UseLocalhost=yes
258 echo add unix:`echo $DISPLAY |
259 cut -c11-` $proto $cookie
260 else
261 # X11UseLocalhost=no
262 echo add $DISPLAY $proto $cookie
263 fi | xauth -q -
264 fi
265
266 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
267 exist either, xauth is used to add the cookie.
268
269AUTHORIZED_KEYS FILE FORMAT
270 AuthorizedKeysFile specifies the files containing public keys for public
271 key authentication; if none is specified, the default is
272 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the
273 file contains one key (empty lines and lines starting with a `#' are
274 ignored as comments). Protocol 1 public keys consist of the following
275 space-separated fields: options, bits, exponent, modulus, comment.
276 Protocol 2 public key consist of: options, keytype, base64-encoded key,
277 comment. The options field is optional; its presence is determined by
278 whether the line starts with a number or not (the options field never
279 starts with a number). The bits, exponent, modulus, and comment fields
280 give the RSA key for protocol version 1; the comment field is not used
281 for anything (but may be convenient for the user to identify the key).
282 For protocol version 2 the keytype is ``ecdsa-sha2-nistp256'',
283 ``ecdsa-sha2-nistp384'', ``ecdsa-sha2-nistp521'', ``ssh-ed25519'',
284 ``ssh-dss'' or ``ssh-rsa''.
285
286 Note that lines in this file are usually several hundred bytes long
287 (because of the size of the public key encoding) up to a limit of 8
288 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
289 kilobits. You don't want to type them in; instead, copy the
290 identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub
291 file and edit it.
292
293 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
294 2 keys of 768 bits.
295
296 The options (if present) consist of comma-separated option
297 specifications. No spaces are permitted, except within double quotes.
298 The following option specifications are supported (note that option
299 keywords are case-insensitive):
300
301 cert-authority
302 Specifies that the listed key is a certification authority (CA)
303 that is trusted to validate signed certificates for user
304 authentication.
305
306 Certificates may encode access restrictions similar to these key
307 options. If both certificate restrictions and key options are
308 present, the most restrictive union of the two is applied.
309
310 command="command"
311 Specifies that the command is executed whenever this key is used
312 for authentication. The command supplied by the user (if any) is
313 ignored. The command is run on a pty if the client requests a
314 pty; otherwise it is run without a tty. If an 8-bit clean
315 channel is required, one must not request a pty or should specify
316 no-pty. A quote may be included in the command by quoting it
317 with a backslash. This option might be useful to restrict
318 certain public keys to perform just a specific operation. An
319 example might be a key that permits remote backups but nothing
320 else. Note that the client may specify TCP and/or X11 forwarding
321 unless they are explicitly prohibited. The command originally
322 supplied by the client is available in the SSH_ORIGINAL_COMMAND
323 environment variable. Note that this option applies to shell,
324 command or subsystem execution. Also note that this command may
325 be superseded by either a sshd_config(5) ForceCommand directive
326 or a command embedded in a certificate.
327
328 environment="NAME=value"
329 Specifies that the string is to be added to the environment when
330 logging in using this key. Environment variables set this way
331 override other default environment values. Multiple options of
332 this type are permitted. Environment processing is disabled by
333 default and is controlled via the PermitUserEnvironment option.
334 This option is automatically disabled if UseLogin is enabled.
335
336 from="pattern-list"
337 Specifies that in addition to public key authentication, either
338 the canonical name of the remote host or its IP address must be
339 present in the comma-separated list of patterns. See PATTERNS in
340 ssh_config(5) for more information on patterns.
341
342 In addition to the wildcard matching that may be applied to
343 hostnames or addresses, a from stanza may match IP addresses
344 using CIDR address/masklen notation.
345
346 The purpose of this option is to optionally increase security:
347 public key authentication by itself does not trust the network or
348 name servers or anything (but the key); however, if somebody
349 somehow steals the key, the key permits an intruder to log in
350 from anywhere in the world. This additional option makes using a
351 stolen key more difficult (name servers and/or routers would have
352 to be compromised in addition to just the key).
353
354 no-agent-forwarding
355 Forbids authentication agent forwarding when this key is used for
356 authentication.
357
358 no-port-forwarding
359 Forbids TCP forwarding when this key is used for authentication.
360 Any port forward requests by the client will return an error.
361 This might be used, e.g. in connection with the command option.
362
363 no-pty Prevents tty allocation (a request to allocate a pty will fail).
364
365 no-user-rc
366 Disables execution of ~/.ssh/rc.
367
368 no-X11-forwarding
369 Forbids X11 forwarding when this key is used for authentication.
370 Any X11 forward requests by the client will return an error.
371
372 permitopen="host:port"
373 Limit local ``ssh -L'' port forwarding such that it may only
374 connect to the specified host and port. IPv6 addresses can be
375 specified by enclosing the address in square brackets. Multiple
376 permitopen options may be applied separated by commas. No
377 pattern matching is performed on the specified hostnames, they
378 must be literal domains or addresses. A port specification of *
379 matches any port.
380
381 principals="principals"
382 On a cert-authority line, specifies allowed principals for
383 certificate authentication as a comma-separated list. At least
384 one name from the list must appear in the certificate's list of
385 principals for the certificate to be accepted. This option is
386 ignored for keys that are not marked as trusted certificate
387 signers using the cert-authority option.
388
389 tunnel="n"
390 Force a tun(4) device on the server. Without this option, the
391 next available device will be used if the client requests a
392 tunnel.
393
394 An example authorized_keys file:
395
396 # Comments allowed at start of line
397 ssh-rsa AAAAB3Nza...LiPk== user@example.net
398 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
399 AAAAB2...19Q== john@example.net
400 command="dump /home",no-pty,no-port-forwarding ssh-dss
401 AAAAC3...51R== example.net
402 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
403 AAAAB5...21S==
404 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
405 jane@example.net
406
407SSH_KNOWN_HOSTS FILE FORMAT
408 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
409 public keys for all known hosts. The global file should be prepared by
410 the administrator (optional), and the per-user file is maintained
411 automatically: whenever the user connects from an unknown host, its key
412 is added to the per-user file.
413
414 Each line in these files contains the following fields: markers
415 (optional), hostnames, bits, exponent, modulus, comment. The fields are
416 separated by spaces.
417
418 The marker is optional, but if it is present then it must be one of
419 ``@cert-authority'', to indicate that the line contains a certification
420 authority (CA) key, or ``@revoked'', to indicate that the key contained
421 on the line is revoked and must not ever be accepted. Only one marker
422 should be used on a key line.
423
424 Hostnames is a comma-separated list of patterns (`*' and `?' act as
425 wildcards); each pattern in turn is matched against the canonical host
426 name (when authenticating a client) or against the user-supplied name
427 (when authenticating a server). A pattern may also be preceded by `!' to
428 indicate negation: if the host name matches a negated pattern, it is not
429 accepted (by that line) even if it matched another pattern on the line.
430 A hostname or address may optionally be enclosed within `[' and `]'
431 brackets then followed by `:' and a non-standard port number.
432
433 Alternately, hostnames may be stored in a hashed form which hides host
434 names and addresses should the file's contents be disclosed. Hashed
435 hostnames start with a `|' character. Only one hashed hostname may
436 appear on a single line and none of the above negation or wildcard
437 operators may be applied.
438
439 Bits, exponent, and modulus are taken directly from the RSA host key;
440 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
441 optional comment field continues to the end of the line, and is not used.
442
443 Lines starting with `#' and empty lines are ignored as comments.
444
445 When performing host authentication, authentication is accepted if any
446 matching line has the proper key; either one that matches exactly or, if
447 the server has presented a certificate for authentication, the key of the
448 certification authority that signed the certificate. For a key to be
449 trusted as a certification authority, it must use the ``@cert-authority''
450 marker described above.
451
452 The known hosts file also provides a facility to mark keys as revoked,
453 for example when it is known that the associated private key has been
454 stolen. Revoked keys are specified by including the ``@revoked'' marker
455 at the beginning of the key line, and are never accepted for
456 authentication or as certification authorities, but instead will produce
457 a warning from ssh(1) when they are encountered.
458
459 It is permissible (but not recommended) to have several lines or
460 different host keys for the same names. This will inevitably happen when
461 short forms of host names from different domains are put in the file. It
462 is possible that the files contain conflicting information;
463 authentication is accepted if valid information can be found from either
464 file.
465
466 Note that the lines in these files are typically hundreds of characters
467 long, and you definitely don't want to type in the host keys by hand.
468 Rather, generate them by a script, ssh-keyscan(1) or by taking
469 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
470 ssh-keygen(1) also offers some basic automated editing for
471 ~/.ssh/known_hosts including removing hosts matching a host name and
472 converting all host names to their hashed representations.
473
474 An example ssh_known_hosts file:
475
476 # Comments allowed at start of line
477 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
478 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
479 # A hashed hostname
480 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
481 AAAA1234.....=
482 # A revoked key
483 @revoked * ssh-rsa AAAAB5W...
484 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
485 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
486
487FILES
488 ~/.hushlogin
489 This file is used to suppress printing the last login time and
490 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
491 enabled. It does not suppress printing of the banner specified
492 by Banner.
493
494 ~/.rhosts
495 This file is used for host-based authentication (see ssh(1) for
496 more information). On some machines this file may need to be
497 world-readable if the user's home directory is on an NFS
498 partition, because sshd reads it as root. Additionally, this
499 file must be owned by the user, and must not have write
500 permissions for anyone else. The recommended permission for most
501 machines is read/write for the user, and not accessible by
502 others.
503
504 ~/.shosts
505 This file is used in exactly the same way as .rhosts, but allows
506 host-based authentication without permitting login with
507 rlogin/rsh.
508
509 ~/.ssh/
510 This directory is the default location for all user-specific
511 configuration and authentication information. There is no
512 general requirement to keep the entire contents of this directory
513 secret, but the recommended permissions are read/write/execute
514 for the user, and not accessible by others.
515
516 ~/.ssh/authorized_keys
517 Lists the public keys (DSA, ECDSA, ED25519, RSA) that can be used
518 for logging in as this user. The format of this file is
519 described above. The content of the file is not highly
520 sensitive, but the recommended permissions are read/write for the
521 user, and not accessible by others.
522
523 If this file, the ~/.ssh directory, or the user's home directory
524 are writable by other users, then the file could be modified or
525 replaced by unauthorized users. In this case, sshd will not
526 allow it to be used unless the StrictModes option has been set to
527 ``no''.
528
529 ~/.ssh/environment
530 This file is read into the environment at login (if it exists).
531 It can only contain empty lines, comment lines (that start with
532 `#'), and assignment lines of the form name=value. The file
533 should be writable only by the user; it need not be readable by
534 anyone else. Environment processing is disabled by default and
535 is controlled via the PermitUserEnvironment option.
536
537 ~/.ssh/known_hosts
538 Contains a list of host keys for all hosts the user has logged
539 into that are not already in the systemwide list of known host
540 keys. The format of this file is described above. This file
541 should be writable only by root/the owner and can, but need not
542 be, world-readable.
543
544 ~/.ssh/rc
545 Contains initialization routines to be run before the user's home
546 directory becomes accessible. This file should be writable only
547 by the user, and need not be readable by anyone else.
548
549 /etc/hosts.equiv
550 This file is for host-based authentication (see ssh(1)). It
551 should only be writable by root.
552
553 /etc/moduli
554 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
555 Exchange". The file format is described in moduli(5).
556
557 /etc/motd
558 See motd(5).
559
560 /etc/nologin
561 If this file exists, sshd refuses to let anyone except root log
562 in. The contents of the file are displayed to anyone trying to
563 log in, and non-root connections are refused. The file should be
564 world-readable.
565
566 /etc/shosts.equiv
567 This file is used in exactly the same way as hosts.equiv, but
568 allows host-based authentication without permitting login with
569 rlogin/rsh.
570
571 /etc/ssh/ssh_host_key
572 /etc/ssh/ssh_host_dsa_key
573 /etc/ssh/ssh_host_ecdsa_key
574 /etc/ssh/ssh_host_ed25519_key
575 /etc/ssh/ssh_host_rsa_key
576 These files contain the private parts of the host keys. These
577 files should only be owned by root, readable only by root, and
578 not accessible to others. Note that sshd does not start if these
579 files are group/world-accessible.
580
581 /etc/ssh/ssh_host_key.pub
582 /etc/ssh/ssh_host_dsa_key.pub
583 /etc/ssh/ssh_host_ecdsa_key.pub
584 /etc/ssh/ssh_host_ed25519_key.pub
585 /etc/ssh/ssh_host_rsa_key.pub
586 These files contain the public parts of the host keys. These
587 files should be world-readable but writable only by root. Their
588 contents should match the respective private parts. These files
589 are not really used for anything; they are provided for the
590 convenience of the user so their contents can be copied to known
591 hosts files. These files are created using ssh-keygen(1).
592
593 /etc/ssh/ssh_known_hosts
594 Systemwide list of known host keys. This file should be prepared
595 by the system administrator to contain the public host keys of
596 all machines in the organization. The format of this file is
597 described above. This file should be writable only by root/the
598 owner and should be world-readable.
599
600 /etc/ssh/sshd_config
601 Contains configuration data for sshd. The file format and
602 configuration options are described in sshd_config(5).
603
604 /etc/ssh/sshrc
605 Similar to ~/.ssh/rc, it can be used to specify machine-specific
606 login-time initializations globally. This file should be
607 writable only by root, and should be world-readable.
608
609 /var/empty
610 chroot(2) directory used by sshd during privilege separation in
611 the pre-authentication phase. The directory should not contain
612 any files and must be owned by root and not group or world-
613 writable.
614
615 /var/run/sshd.pid
616 Contains the process ID of the sshd listening for connections (if
617 there are several daemons running concurrently for different
618 ports, this contains the process ID of the one started last).
619 The content of this file is not sensitive; it can be world-
620 readable.
621
622SEE ALSO
623 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
624 ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5),
625 inetd(8), sftp-server(8)
626
627AUTHORS
628 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
629 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
630 de Raadt and Dug Song removed many bugs, re-added newer features and
631 created OpenSSH. Markus Friedl contributed the support for SSH protocol
632 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
633 for privilege separation.
634
635OpenBSD 5.6 July 3, 2014 OpenBSD 5.6
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..1c82d449f
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,906 @@
1SSHD_CONFIG(5) File Formats Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config - 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 `#' 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. Variables
24 are specified by name, which may contain the wildcard characters
25 `*' and `?'. Multiple environment variables may be separated by
26 whitespace or spread across multiple AcceptEnv directives. Be
27 warned that some environment variables could be used to bypass
28 restricted user environments. For this reason, care should be
29 taken in the use of this directive. The default is not to accept
30 any environment variables.
31
32 AddressFamily
33 Specifies which address family should be used by sshd(8). Valid
34 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
35 (use IPv6 only). The default is ``any''.
36
37 AllowAgentForwarding
38 Specifies whether ssh-agent(1) forwarding is permitted. The
39 default is ``yes''. Note that disabling agent forwarding does
40 not improve security unless users are also denied shell access,
41 as they can always install their own forwarders.
42
43 AllowGroups
44 This keyword can be followed by a list of group name patterns,
45 separated by spaces. If specified, login is allowed only for
46 users whose primary group or supplementary group list matches one
47 of the patterns. Only group names are valid; a numerical group
48 ID is not recognized. By default, login is allowed for all
49 groups. The allow/deny directives are processed in the following
50 order: DenyUsers, AllowUsers, DenyGroups, and finally
51 AllowGroups.
52
53 See PATTERNS in ssh_config(5) for more information on patterns.
54
55 AllowTcpForwarding
56 Specifies whether TCP forwarding is permitted. The available
57 options are ``yes'' or ``all'' to allow TCP forwarding, ``no'' to
58 prevent all TCP forwarding, ``local'' to allow local (from the
59 perspective of ssh(1)) forwarding only or ``remote'' to allow
60 remote forwarding only. The default is ``yes''. Note that
61 disabling TCP forwarding does not improve security unless users
62 are also denied shell access, as they can always install their
63 own forwarders.
64
65 AllowStreamLocalForwarding
66 Specifies whether StreamLocal (Unix-domain socket) forwarding is
67 permitted. The available options are ``yes'' or ``all'' to allow
68 StreamLocal forwarding, ``no'' to prevent all StreamLocal
69 forwarding, ``local'' to allow local (from the perspective of
70 ssh(1)) forwarding only or ``remote'' to allow remote forwarding
71 only. The default is ``yes''. Note that disabling StreamLocal
72 forwarding does not improve security unless users are also denied
73 shell access, as they can always install their own forwarders.
74
75 AllowUsers
76 This keyword can be followed by a list of user name patterns,
77 separated by spaces. If specified, login is allowed only for
78 user names that match one of the patterns. Only user names are
79 valid; a numerical user ID is not recognized. By default, login
80 is allowed for all users. If the pattern takes the form
81 USER@HOST then USER and HOST are separately checked, restricting
82 logins to particular users from particular hosts. The allow/deny
83 directives are processed in the following order: DenyUsers,
84 AllowUsers, DenyGroups, and finally AllowGroups.
85
86 See PATTERNS in ssh_config(5) for more information on patterns.
87
88 AuthenticationMethods
89 Specifies the authentication methods that must be successfully
90 completed for a user to be granted access. This option must be
91 followed by one or more comma-separated lists of authentication
92 method names. Successful authentication requires completion of
93 every method in at least one of these lists.
94
95 For example, an argument of ``publickey,password
96 publickey,keyboard-interactive'' would require the user to
97 complete public key authentication, followed by either password
98 or keyboard interactive authentication. Only methods that are
99 next in one or more lists are offered at each stage, so for this
100 example, it would not be possible to attempt password or
101 keyboard-interactive authentication before public key.
102
103 For keyboard interactive authentication it is also possible to
104 restrict authentication to a specific device by appending a colon
105 followed by the device identifier ``bsdauth'', ``pam'', or
106 ``skey'', depending on the server configuration. For example,
107 ``keyboard-interactive:bsdauth'' would restrict keyboard
108 interactive authentication to the ``bsdauth'' device.
109
110 This option is only available for SSH protocol 2 and will yield a
111 fatal error if enabled if protocol 1 is also enabled. Note that
112 each authentication method listed should also be explicitly
113 enabled in the configuration. The default is not to require
114 multiple authentication; successful completion of a single
115 authentication method is sufficient.
116
117 AuthorizedKeysCommand
118 Specifies a program to be used to look up the user's public keys.
119 The program must be owned by root and not writable by group or
120 others. It will be invoked with a single argument of the
121 username being authenticated, and should produce on standard
122 output zero or more lines of authorized_keys output (see
123 AUTHORIZED_KEYS in sshd(8)). If a key supplied by
124 AuthorizedKeysCommand does not successfully authenticate and
125 authorize the user then public key authentication continues using
126 the usual AuthorizedKeysFile files. By default, no
127 AuthorizedKeysCommand is run.
128
129 AuthorizedKeysCommandUser
130 Specifies the user under whose account the AuthorizedKeysCommand
131 is run. It is recommended to use a dedicated user that has no
132 other role on the host than running authorized keys commands.
133
134 AuthorizedKeysFile
135 Specifies the file that contains the public keys that can be used
136 for user authentication. The format is described in the
137 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
138 AuthorizedKeysFile may contain tokens of the form %T which are
139 substituted during connection setup. The following tokens are
140 defined: %% is replaced by a literal '%', %h is replaced by the
141 home directory of the user being authenticated, and %u is
142 replaced by the username of that user. After expansion,
143 AuthorizedKeysFile is taken to be an absolute path or one
144 relative to the user's home directory. Multiple files may be
145 listed, separated by whitespace. The default is
146 ``.ssh/authorized_keys .ssh/authorized_keys2''.
147
148 AuthorizedPrincipalsFile
149 Specifies a file that lists principal names that are accepted for
150 certificate authentication. When using certificates signed by a
151 key listed in TrustedUserCAKeys, this file lists names, one of
152 which must appear in the certificate for it to be accepted for
153 authentication. Names are listed one per line preceded by key
154 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
155 Empty lines and comments starting with `#' are ignored.
156
157 AuthorizedPrincipalsFile may contain tokens of the form %T which
158 are substituted during connection setup. The following tokens
159 are defined: %% is replaced by a literal '%', %h is replaced by
160 the home directory of the user being authenticated, and %u is
161 replaced by the username of that user. After expansion,
162 AuthorizedPrincipalsFile is taken to be an absolute path or one
163 relative to the user's home directory.
164
165 The default is ``none'', i.e. not to use a principals file - in
166 this case, the username of the user must appear in a
167 certificate's principals list for it to be accepted. Note that
168 AuthorizedPrincipalsFile is only used when authentication
169 proceeds using a CA listed in TrustedUserCAKeys and is not
170 consulted for certification authorities trusted via
171 ~/.ssh/authorized_keys, though the principals= key option offers
172 a similar facility (see sshd(8) for details).
173
174 Banner The contents of the specified file are sent to the remote user
175 before authentication is allowed. If the argument is ``none''
176 then no banner is displayed. This option is only available for
177 protocol version 2. By default, no banner is displayed.
178
179 ChallengeResponseAuthentication
180 Specifies whether challenge-response authentication is allowed
181 (e.g. via PAM or through authentication styles supported in
182 login.conf(5)) The default is ``yes''.
183
184 ChrootDirectory
185 Specifies the pathname of a directory to chroot(2) to after
186 authentication. All components of the pathname must be root-
187 owned directories that are not writable by any other user or
188 group. After the chroot, sshd(8) changes the working directory
189 to the user's home directory.
190
191 The pathname may contain the following tokens that are expanded
192 at runtime once the connecting user has been authenticated: %% is
193 replaced by a literal '%', %h is replaced by the home directory
194 of the user being authenticated, and %u is replaced by the
195 username of that user.
196
197 The ChrootDirectory must contain the necessary files and
198 directories to support the user's session. For an interactive
199 session this requires at least a shell, typically sh(1), and
200 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
201 stderr(4), arandom(4) and tty(4) devices. For file transfer
202 sessions using ``sftp'', no additional configuration of the
203 environment is necessary if the in-process sftp server is used,
204 though sessions which use logging may require /dev/log inside the
205 chroot directory on some operating systems (see sftp-server(8)
206 for details).
207
208 The default is not to chroot(2).
209
210 Ciphers
211 Specifies the ciphers allowed for protocol version 2. Multiple
212 ciphers must be comma-separated. The supported ciphers are:
213
214 3des-cbc
215 aes128-cbc
216 aes192-cbc
217 aes256-cbc
218 aes128-ctr
219 aes192-ctr
220 aes256-ctr
221 aes128-gcm@openssh.com
222 aes256-gcm@openssh.com
223 arcfour
224 arcfour128
225 arcfour256
226 blowfish-cbc
227 cast128-cbc
228 chacha20-poly1305@openssh.com
229
230 The default is:
231
232 aes128-ctr,aes192-ctr,aes256-ctr,
233 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
234 chacha20-poly1305@openssh.com
235
236 The list of available ciphers may also be obtained using the -Q
237 option of ssh(1).
238
239 ClientAliveCountMax
240 Sets the number of client alive messages (see below) which may be
241 sent without sshd(8) receiving any messages back from the client.
242 If this threshold is reached while client alive messages are
243 being sent, sshd will disconnect the client, terminating the
244 session. It is important to note that the use of client alive
245 messages is very different from TCPKeepAlive (below). The client
246 alive messages are sent through the encrypted channel and
247 therefore will not be spoofable. The TCP keepalive option
248 enabled by TCPKeepAlive is spoofable. The client alive mechanism
249 is valuable when the client or server depend on knowing when a
250 connection has become inactive.
251
252 The default value is 3. If ClientAliveInterval (see below) is
253 set to 15, and ClientAliveCountMax is left at the default,
254 unresponsive SSH clients will be disconnected after approximately
255 45 seconds. This option applies to protocol version 2 only.
256
257 ClientAliveInterval
258 Sets a timeout interval in seconds after which if no data has
259 been received from the client, sshd(8) will send a message
260 through the encrypted channel to request a response from the
261 client. The default is 0, indicating that these messages will
262 not be sent to the client. This option applies to protocol
263 version 2 only.
264
265 Compression
266 Specifies whether compression is allowed, or delayed until the
267 user has authenticated successfully. The argument must be
268 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
269
270 DenyGroups
271 This keyword can be followed by a list of group name patterns,
272 separated by spaces. Login is disallowed for users whose primary
273 group or supplementary group list matches one of the patterns.
274 Only group names are valid; a numerical group ID is not
275 recognized. By default, login is allowed for all groups. The
276 allow/deny directives are processed in the following order:
277 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
278
279 See PATTERNS in ssh_config(5) for more information on patterns.
280
281 DenyUsers
282 This keyword can be followed by a list of user name patterns,
283 separated by spaces. Login is disallowed for user names that
284 match one of the patterns. Only user names are valid; a
285 numerical user ID is not recognized. By default, login is
286 allowed for all users. If the pattern takes the form USER@HOST
287 then USER and HOST are separately checked, restricting logins to
288 particular users from particular hosts. The allow/deny
289 directives are processed in the following order: DenyUsers,
290 AllowUsers, DenyGroups, and finally AllowGroups.
291
292 See PATTERNS in ssh_config(5) for more information on patterns.
293
294 ForceCommand
295 Forces the execution of the command specified by ForceCommand,
296 ignoring any command supplied by the client and ~/.ssh/rc if
297 present. The command is invoked by using the user's login shell
298 with the -c option. This applies to shell, command, or subsystem
299 execution. It is most useful inside a Match block. The command
300 originally supplied by the client is available in the
301 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
302 of ``internal-sftp'' will force the use of an in-process sftp
303 server that requires no support files when used with
304 ChrootDirectory.
305
306 GatewayPorts
307 Specifies whether remote hosts are allowed to connect to ports
308 forwarded for the client. By default, sshd(8) binds remote port
309 forwardings to the loopback address. This prevents other remote
310 hosts from connecting to forwarded ports. GatewayPorts can be
311 used to specify that sshd should allow remote port forwardings to
312 bind to non-loopback addresses, thus allowing other hosts to
313 connect. The argument may be ``no'' to force remote port
314 forwardings to be available to the local host only, ``yes'' to
315 force remote port forwardings to bind to the wildcard address, or
316 ``clientspecified'' to allow the client to select the address to
317 which the forwarding is bound. The default is ``no''.
318
319 GSSAPIAuthentication
320 Specifies whether user authentication based on GSSAPI is allowed.
321 The default is ``no''. Note that this option applies to protocol
322 version 2 only.
323
324 GSSAPICleanupCredentials
325 Specifies whether to automatically destroy the user's credentials
326 cache on logout. The default is ``yes''. Note that this option
327 applies to protocol version 2 only.
328
329 HostbasedAuthentication
330 Specifies whether rhosts or /etc/hosts.equiv authentication
331 together with successful public key client host authentication is
332 allowed (host-based authentication). This option is similar to
333 RhostsRSAAuthentication and applies to protocol version 2 only.
334 The default is ``no''.
335
336 HostbasedUsesNameFromPacketOnly
337 Specifies whether or not the server will attempt to perform a
338 reverse name lookup when matching the name in the ~/.shosts,
339 ~/.rhosts, and /etc/hosts.equiv files during
340 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
341 uses the name supplied by the client rather than attempting to
342 resolve the name from the TCP connection itself. The default is
343 ``no''.
344
345 HostCertificate
346 Specifies a file containing a public host certificate. The
347 certificate's public key must match a private host key already
348 specified by HostKey. The default behaviour of sshd(8) is not to
349 load any certificates.
350
351 HostKey
352 Specifies a file containing a private host key used by SSH. The
353 default is /etc/ssh/ssh_host_key for protocol version 1, and
354 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key,
355 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
356 protocol version 2. Note that sshd(8) will refuse to use a file
357 if it is group/world-accessible. It is possible to have multiple
358 host key files. ``rsa1'' keys are used for version 1 and
359 ``dsa'', ``ecdsa'', ``ed25519'' or ``rsa'' are used for version 2
360 of the SSH protocol. It is also possible to specify public host
361 key files instead. In this case operations on the private key
362 will be delegated to an ssh-agent(1).
363
364 HostKeyAgent
365 Identifies the UNIX-domain socket used to communicate with an
366 agent that has access to the private host keys. If
367 ``SSH_AUTH_SOCK'' is specified, the location of the socket will
368 be read from the SSH_AUTH_SOCK environment variable.
369
370 IgnoreRhosts
371 Specifies that .rhosts and .shosts files will not be used in
372 RhostsRSAAuthentication or HostbasedAuthentication.
373
374 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
375 default is ``yes''.
376
377 IgnoreUserKnownHosts
378 Specifies whether sshd(8) should ignore the user's
379 ~/.ssh/known_hosts during RhostsRSAAuthentication or
380 HostbasedAuthentication. The default is ``no''.
381
382 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
383 connection. Accepted values are ``af11'', ``af12'', ``af13'',
384 ``af21'', ``af22'', ``af23'', ``af31'', ``af32'', ``af33'',
385 ``af41'', ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'',
386 ``cs4'', ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'',
387 ``throughput'', ``reliability'', or a numeric value. This option
388 may take one or two arguments, separated by whitespace. If one
389 argument is specified, it is used as the packet class
390 unconditionally. If two values are specified, the first is
391 automatically selected for interactive sessions and the second
392 for non-interactive sessions. The default is ``lowdelay'' for
393 interactive sessions and ``throughput'' for non-interactive
394 sessions.
395
396 KbdInteractiveAuthentication
397 Specifies whether to allow keyboard-interactive authentication.
398 The argument to this keyword must be ``yes'' or ``no''. The
399 default is to use whatever value ChallengeResponseAuthentication
400 is set to (by default ``yes'').
401
402 KerberosAuthentication
403 Specifies whether the password provided by the user for
404 PasswordAuthentication will be validated through the Kerberos
405 KDC. To use this option, the server needs a Kerberos servtab
406 which allows the verification of the KDC's identity. The default
407 is ``no''.
408
409 KerberosGetAFSToken
410 If AFS is active and the user has a Kerberos 5 TGT, attempt to
411 acquire an AFS token before accessing the user's home directory.
412 The default is ``no''.
413
414 KerberosOrLocalPasswd
415 If password authentication through Kerberos fails then the
416 password will be validated via any additional local mechanism
417 such as /etc/passwd. The default is ``yes''.
418
419 KerberosTicketCleanup
420 Specifies whether to automatically destroy the user's ticket
421 cache file on logout. The default is ``yes''.
422
423 KexAlgorithms
424 Specifies the available KEX (Key Exchange) algorithms. Multiple
425 algorithms must be comma-separated. The supported algorithms
426 are:
427
428 curve25519-sha256@libssh.org
429 diffie-hellman-group1-sha1
430 diffie-hellman-group14-sha1
431 diffie-hellman-group-exchange-sha1
432 diffie-hellman-group-exchange-sha256
433 ecdh-sha2-nistp256
434 ecdh-sha2-nistp384
435 ecdh-sha2-nistp521
436
437 The default is:
438
439 curve25519-sha256@libssh.org,
440 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
441 diffie-hellman-group-exchange-sha256,
442 diffie-hellman-group14-sha1
443
444 KeyRegenerationInterval
445 In protocol version 1, the ephemeral server key is automatically
446 regenerated after this many seconds (if it has been used). The
447 purpose of regeneration is to prevent decrypting captured
448 sessions by later breaking into the machine and stealing the
449 keys. The key is never stored anywhere. If the value is 0, the
450 key is never regenerated. The default is 3600 (seconds).
451
452 ListenAddress
453 Specifies the local addresses sshd(8) should listen on. The
454 following forms may be used:
455
456 ListenAddress host|IPv4_addr|IPv6_addr
457 ListenAddress host|IPv4_addr:port
458 ListenAddress [host|IPv6_addr]:port
459
460 If port is not specified, sshd will listen on the address and all
461 prior Port options specified. The default is to listen on all
462 local addresses. Multiple ListenAddress options are permitted.
463 Additionally, any Port options must precede this option for non-
464 port qualified addresses.
465
466 LoginGraceTime
467 The server disconnects after this time if the user has not
468 successfully logged in. If the value is 0, there is no time
469 limit. The default is 120 seconds.
470
471 LogLevel
472 Gives the verbosity level that is used when logging messages from
473 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
474 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
475 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
476 higher levels of debugging output. Logging with a DEBUG level
477 violates the privacy of users and is not recommended.
478
479 MACs Specifies the available MAC (message authentication code)
480 algorithms. The MAC algorithm is used in protocol version 2 for
481 data integrity protection. Multiple algorithms must be comma-
482 separated. The algorithms that contain ``-etm'' calculate the
483 MAC after encryption (encrypt-then-mac). These are considered
484 safer and their use recommended. The supported MACs are:
485
486 hmac-md5
487 hmac-md5-96
488 hmac-ripemd160
489 hmac-sha1
490 hmac-sha1-96
491 hmac-sha2-256
492 hmac-sha2-512
493 umac-64@openssh.com
494 umac-128@openssh.com
495 hmac-md5-etm@openssh.com
496 hmac-md5-96-etm@openssh.com
497 hmac-ripemd160-etm@openssh.com
498 hmac-sha1-etm@openssh.com
499 hmac-sha1-96-etm@openssh.com
500 hmac-sha2-256-etm@openssh.com
501 hmac-sha2-512-etm@openssh.com
502 umac-64-etm@openssh.com
503 umac-128-etm@openssh.com
504
505 The default is:
506
507 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
508 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
509 umac-64@openssh.com,umac-128@openssh.com,
510 hmac-sha2-256,hmac-sha2-512
511
512 Match Introduces a conditional block. If all of the criteria on the
513 Match line are satisfied, the keywords on the following lines
514 override those set in the global section of the config file,
515 until either another Match line or the end of the file. If a
516 keyword appears in multiple Match blocks that are satisified,
517 only the first instance of the keyword is applied.
518
519 The arguments to Match are one or more criteria-pattern pairs or
520 the single token All which matches all criteria. The available
521 criteria are User, Group, Host, LocalAddress, LocalPort, and
522 Address. The match patterns may consist of single entries or
523 comma-separated lists and may use the wildcard and negation
524 operators described in the PATTERNS section of ssh_config(5).
525
526 The patterns in an Address criteria may additionally contain
527 addresses to match in CIDR address/masklen format, e.g.
528 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
529 length provided must be consistent with the address - it is an
530 error to specify a mask length that is too long for the address
531 or one with bits set in this host portion of the address. For
532 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
533
534 Only a subset of keywords may be used on the lines following a
535 Match keyword. Available keywords are AcceptEnv,
536 AllowAgentForwarding, AllowGroups, AllowTcpForwarding,
537 AllowUsers, AuthenticationMethods, AuthorizedKeysCommand,
538 AuthorizedKeysCommandUser, AuthorizedKeysFile,
539 AuthorizedPrincipalsFile, Banner, ChrootDirectory, DenyGroups,
540 DenyUsers, ForceCommand, GatewayPorts, GSSAPIAuthentication,
541 HostbasedAuthentication, HostbasedUsesNameFromPacketOnly,
542 KbdInteractiveAuthentication, KerberosAuthentication,
543 MaxAuthTries, MaxSessions, PasswordAuthentication,
544 PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY,
545 PermitTunnel, PermitUserRC, PubkeyAuthentication, RekeyLimit,
546 RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
547 X11Forwarding and X11UseLocalHost.
548
549 MaxAuthTries
550 Specifies the maximum number of authentication attempts permitted
551 per connection. Once the number of failures reaches half this
552 value, additional failures are logged. The default is 6.
553
554 MaxSessions
555 Specifies the maximum number of open sessions permitted per
556 network connection. The default is 10.
557
558 MaxStartups
559 Specifies the maximum number of concurrent unauthenticated
560 connections to the SSH daemon. Additional connections will be
561 dropped until authentication succeeds or the LoginGraceTime
562 expires for a connection. The default is 10:30:100.
563
564 Alternatively, random early drop can be enabled by specifying the
565 three colon separated values ``start:rate:full'' (e.g.
566 "10:30:60"). sshd(8) will refuse connection attempts with a
567 probability of ``rate/100'' (30%) if there are currently
568 ``start'' (10) unauthenticated connections. The probability
569 increases linearly and all connection attempts are refused if the
570 number of unauthenticated connections reaches ``full'' (60).
571
572 PasswordAuthentication
573 Specifies whether password authentication is allowed. The
574 default is ``yes''.
575
576 PermitEmptyPasswords
577 When password authentication is allowed, it specifies whether the
578 server allows login to accounts with empty password strings. The
579 default is ``no''.
580
581 PermitOpen
582 Specifies the destinations to which TCP port forwarding is
583 permitted. The forwarding specification must be one of the
584 following forms:
585
586 PermitOpen host:port
587 PermitOpen IPv4_addr:port
588 PermitOpen [IPv6_addr]:port
589
590 Multiple forwards may be specified by separating them with
591 whitespace. An argument of ``any'' can be used to remove all
592 restrictions and permit any forwarding requests. An argument of
593 ``none'' can be used to prohibit all forwarding requests. By
594 default all port forwarding requests are permitted.
595
596 PermitRootLogin
597 Specifies whether root can log in using ssh(1). The argument
598 must be ``yes'', ``without-password'', ``forced-commands-only'',
599 or ``no''. The default is ``yes''.
600
601 If this option is set to ``without-password'', password
602 authentication is disabled for root.
603
604 If this option is set to ``forced-commands-only'', root login
605 with public key authentication will be allowed, but only if the
606 command option has been specified (which may be useful for taking
607 remote backups even if root login is normally not allowed). All
608 other authentication methods are disabled for root.
609
610 If this option is set to ``no'', root is not allowed to log in.
611
612 PermitTunnel
613 Specifies whether tun(4) device forwarding is allowed. The
614 argument must be ``yes'', ``point-to-point'' (layer 3),
615 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' permits
616 both ``point-to-point'' and ``ethernet''. The default is ``no''.
617
618 PermitTTY
619 Specifies whether pty(4) allocation is permitted. The default is
620 ``yes''.
621
622 PermitUserEnvironment
623 Specifies whether ~/.ssh/environment and environment= options in
624 ~/.ssh/authorized_keys are processed by sshd(8). The default is
625 ``no''. Enabling environment processing may enable users to
626 bypass access restrictions in some configurations using
627 mechanisms such as LD_PRELOAD.
628
629 PermitUserRC
630 Specifies whether any ~/.ssh/rc file is executed. The default is
631 ``yes''.
632
633 PidFile
634 Specifies the file that contains the process ID of the SSH
635 daemon. The default is /var/run/sshd.pid.
636
637 Port Specifies the port number that sshd(8) listens on. The default
638 is 22. Multiple options of this type are permitted. See also
639 ListenAddress.
640
641 PrintLastLog
642 Specifies whether sshd(8) should print the date and time of the
643 last user login when a user logs in interactively. The default
644 is ``yes''.
645
646 PrintMotd
647 Specifies whether sshd(8) should print /etc/motd when a user logs
648 in interactively. (On some systems it is also printed by the
649 shell, /etc/profile, or equivalent.) The default is ``yes''.
650
651 Protocol
652 Specifies the protocol versions sshd(8) supports. The possible
653 values are `1' and `2'. Multiple versions must be comma-
654 separated. The default is `2'. Note that the order of the
655 protocol list does not indicate preference, because the client
656 selects among multiple protocol versions offered by the server.
657 Specifying ``2,1'' is identical to ``1,2''.
658
659 PubkeyAuthentication
660 Specifies whether public key authentication is allowed. The
661 default is ``yes''. Note that this option applies to protocol
662 version 2 only.
663
664 RekeyLimit
665 Specifies the maximum amount of data that may be transmitted
666 before the session key is renegotiated, optionally followed a
667 maximum amount of time that may pass before the session key is
668 renegotiated. The first argument is specified in bytes and may
669 have a suffix of `K', `M', or `G' to indicate Kilobytes,
670 Megabytes, or Gigabytes, respectively. The default is between
671 `1G' and `4G', depending on the cipher. The optional second
672 value is specified in seconds and may use any of the units
673 documented in the TIME FORMATS section. The default value for
674 RekeyLimit is ``default none'', which means that rekeying is
675 performed after the cipher's default amount of data has been sent
676 or received and no time based rekeying is done. This option
677 applies to protocol version 2 only.
678
679 RevokedKeys
680 Specifies revoked public keys. Keys listed in this file will be
681 refused for public key authentication. Note that if this file is
682 not readable, then public key authentication will be refused for
683 all users. Keys may be specified as a text file, listing one
684 public key per line, or as an OpenSSH Key Revocation List (KRL)
685 as generated by ssh-keygen(1). For more information on KRLs, see
686 the KEY REVOCATION LISTS section in ssh-keygen(1).
687
688 RhostsRSAAuthentication
689 Specifies whether rhosts or /etc/hosts.equiv authentication
690 together with successful RSA host authentication is allowed. The
691 default is ``no''. This option applies to protocol version 1
692 only.
693
694 RSAAuthentication
695 Specifies whether pure RSA authentication is allowed. The
696 default is ``yes''. This option applies to protocol version 1
697 only.
698
699 ServerKeyBits
700 Defines the number of bits in the ephemeral protocol version 1
701 server key. The minimum value is 512, and the default is 1024.
702
703 StreamLocalBindMask
704 Sets the octal file creation mode mask (umask) used when creating
705 a Unix-domain socket file for local or remote port forwarding.
706 This option is only used for port forwarding to a Unix-domain
707 socket file.
708
709 The default value is 0177, which creates a Unix-domain socket
710 file that is readable and writable only by the owner. Note that
711 not all operating systems honor the file mode on Unix-domain
712 socket files.
713
714 StreamLocalBindUnlink
715 Specifies whether to remove an existing Unix-domain socket file
716 for local or remote port forwarding before creating a new one.
717 If the socket file already exists and StreamLocalBindUnlink is
718 not enabled, sshd will be unable to forward the port to the Unix-
719 domain socket file. This option is only used for port forwarding
720 to a Unix-domain socket file.
721
722 The argument must be ``yes'' or ``no''. The default is ``no''.
723
724 StrictModes
725 Specifies whether sshd(8) should check file modes and ownership
726 of the user's files and home directory before accepting login.
727 This is normally desirable because novices sometimes accidentally
728 leave their directory or files world-writable. The default is
729 ``yes''. Note that this does not apply to ChrootDirectory, whose
730 permissions and ownership are checked unconditionally.
731
732 Subsystem
733 Configures an external subsystem (e.g. file transfer daemon).
734 Arguments should be a subsystem name and a command (with optional
735 arguments) to execute upon subsystem request.
736
737 The command sftp-server(8) implements the ``sftp'' file transfer
738 subsystem.
739
740 Alternately the name ``internal-sftp'' implements an in-process
741 ``sftp'' server. This may simplify configurations using
742 ChrootDirectory to force a different filesystem root on clients.
743
744 By default no subsystems are defined. Note that this option
745 applies to protocol version 2 only.
746
747 SyslogFacility
748 Gives the facility code that is used when logging messages from
749 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
750 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
751 default is AUTH.
752
753 TCPKeepAlive
754 Specifies whether the system should send TCP keepalive messages
755 to the other side. If they are sent, death of the connection or
756 crash of one of the machines will be properly noticed. However,
757 this means that connections will die if the route is down
758 temporarily, and some people find it annoying. On the other
759 hand, if TCP keepalives are not sent, sessions may hang
760 indefinitely on the server, leaving ``ghost'' users and consuming
761 server resources.
762
763 The default is ``yes'' (to send TCP keepalive messages), and the
764 server will notice if the network goes down or the client host
765 crashes. This avoids infinitely hanging sessions.
766
767 To disable TCP keepalive messages, the value should be set to
768 ``no''.
769
770 TrustedUserCAKeys
771 Specifies a file containing public keys of certificate
772 authorities that are trusted to sign user certificates for
773 authentication. Keys are listed one per line; empty lines and
774 comments starting with `#' are allowed. If a certificate is
775 presented for authentication and has its signing CA key listed in
776 this file, then it may be used for authentication for any user
777 listed in the certificate's principals list. Note that
778 certificates that lack a list of principals will not be permitted
779 for authentication using TrustedUserCAKeys. For more details on
780 certificates, see the CERTIFICATES section in ssh-keygen(1).
781
782 UseDNS Specifies whether sshd(8) should look up the remote host name and
783 check that the resolved host name for the remote IP address maps
784 back to the very same IP address. The default is ``yes''.
785
786 UseLogin
787 Specifies whether login(1) is used for interactive login
788 sessions. The default is ``no''. Note that login(1) is never
789 used for remote command execution. Note also, that if this is
790 enabled, X11Forwarding will be disabled because login(1) does not
791 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
792 is specified, it will be disabled after authentication.
793
794 UsePAM Enables the Pluggable Authentication Module interface. If set to
795 ``yes'' this will enable PAM authentication using
796 ChallengeResponseAuthentication and PasswordAuthentication in
797 addition to PAM account and session module processing for all
798 authentication types.
799
800 Because PAM challenge-response authentication usually serves an
801 equivalent role to password authentication, you should disable
802 either PasswordAuthentication or ChallengeResponseAuthentication.
803
804 If UsePAM is enabled, you will not be able to run sshd(8) as a
805 non-root user. The default is ``no''.
806
807 UsePrivilegeSeparation
808 Specifies whether sshd(8) separates privileges by creating an
809 unprivileged child process to deal with incoming network traffic.
810 After successful authentication, another process will be created
811 that has the privilege of the authenticated user. The goal of
812 privilege separation is to prevent privilege escalation by
813 containing any corruption within the unprivileged processes. The
814 default is ``yes''. If UsePrivilegeSeparation is set to
815 ``sandbox'' then the pre-authentication unprivileged process is
816 subject to additional restrictions.
817
818 VersionAddendum
819 Optionally specifies additional text to append to the SSH
820 protocol banner sent by the server upon connection. The default
821 is ``none''.
822
823 X11DisplayOffset
824 Specifies the first display number available for sshd(8)'s X11
825 forwarding. This prevents sshd from interfering with real X11
826 servers. The default is 10.
827
828 X11Forwarding
829 Specifies whether X11 forwarding is permitted. The argument must
830 be ``yes'' or ``no''. The default is ``no''.
831
832 When X11 forwarding is enabled, there may be additional exposure
833 to the server and to client displays if the sshd(8) proxy display
834 is configured to listen on the wildcard address (see
835 X11UseLocalhost below), though this is not the default.
836 Additionally, the authentication spoofing and authentication data
837 verification and substitution occur on the client side. The
838 security risk of using X11 forwarding is that the client's X11
839 display server may be exposed to attack when the SSH client
840 requests forwarding (see the warnings for ForwardX11 in
841 ssh_config(5)). A system administrator may have a stance in
842 which they want to protect clients that may expose themselves to
843 attack by unwittingly requesting X11 forwarding, which can
844 warrant a ``no'' setting.
845
846 Note that disabling X11 forwarding does not prevent users from
847 forwarding X11 traffic, as users can always install their own
848 forwarders. X11 forwarding is automatically disabled if UseLogin
849 is enabled.
850
851 X11UseLocalhost
852 Specifies whether sshd(8) should bind the X11 forwarding server
853 to the loopback address or to the wildcard address. By default,
854 sshd binds the forwarding server to the loopback address and sets
855 the hostname part of the DISPLAY environment variable to
856 ``localhost''. This prevents remote hosts from connecting to the
857 proxy display. However, some older X11 clients may not function
858 with this configuration. X11UseLocalhost may be set to ``no'' to
859 specify that the forwarding server should be bound to the
860 wildcard address. The argument must be ``yes'' or ``no''. The
861 default is ``yes''.
862
863 XAuthLocation
864 Specifies the full pathname of the xauth(1) program. The default
865 is /usr/X11R6/bin/xauth.
866
867TIME FORMATS
868 sshd(8) command-line arguments and configuration file options that
869 specify time may be expressed using a sequence of the form:
870 time[qualifier], where time is a positive integer value and qualifier is
871 one of the following:
872
873 <none> seconds
874 s | S seconds
875 m | M minutes
876 h | H hours
877 d | D days
878 w | W weeks
879
880 Each member of the sequence is added together to calculate the total time
881 value.
882
883 Time format examples:
884
885 600 600 seconds (10 minutes)
886 10m 10 minutes
887 1h30m 1 hour 30 minutes (90 minutes)
888
889FILES
890 /etc/ssh/sshd_config
891 Contains configuration data for sshd(8). This file should be
892 writable by root only, but it is recommended (though not
893 necessary) that it be world-readable.
894
895SEE ALSO
896 sshd(8)
897
898AUTHORS
899 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
900 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
901 de Raadt and Dug Song removed many bugs, re-added newer features and
902 created OpenSSH. Markus Friedl contributed the support for SSH protocol
903 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
904 for privilege separation.
905
906OpenBSD 5.6 July 28, 2014 OpenBSD 5.6