summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore28
-rw-r--r--config.h.in1527
-rwxr-xr-xconfigure17535
-rwxr-xr-x[-rw-r--r--]contrib/solaris/README0
-rw-r--r--moduli.072
-rw-r--r--openbsd-compat/.cvsignore1
-rw-r--r--openbsd-compat/regress/.cvsignore5
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.c0
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.h0
-rw-r--r--regress/.cvsignore1
-rw-r--r--scard/.cvsignore2
-rw-r--r--scp.0156
-rw-r--r--sftp-server.064
-rw-r--r--sftp.0337
-rw-r--r--ssh-add.0115
-rw-r--r--ssh-agent.0123
-rw-r--r--ssh-keygen.0454
-rw-r--r--ssh-keyscan.0109
-rw-r--r--ssh-keysign.051
-rw-r--r--ssh-pkcs11-helper.025
-rwxr-xr-x[-rw-r--r--]ssh-sandbox.h0
-rw-r--r--ssh.0901
-rw-r--r--ssh_config.0767
-rw-r--r--sshd.0635
-rw-r--r--sshd_config.0718
25 files changed, 23589 insertions, 37 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/config.h.in b/config.h.in
new file mode 100644
index 000000000..baf0011a7
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1527 @@
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/* Define if cmsg_type is not passed correctly */
20#undef BROKEN_CMSG_TYPE
21
22/* getaddrinfo is broken (if present) */
23#undef BROKEN_GETADDRINFO
24
25/* getgroups(0,NULL) will return -1 */
26#undef BROKEN_GETGROUPS
27
28/* FreeBSD glob does not do what we need */
29#undef BROKEN_GLOB
30
31/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
32#undef BROKEN_INET_NTOA
33
34/* ia_uinfo routines not supported by OS yet */
35#undef BROKEN_LIBIAF
36
37/* Ultrix mmap can't map files */
38#undef BROKEN_MMAP
39
40/* Define if your struct dirent expects you to allocate extra space for d_name
41 */
42#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
43
44/* Can't do comparisons on readv */
45#undef BROKEN_READV_COMPARISON
46
47/* Define if you have a broken realpath. */
48#undef BROKEN_REALPATH
49
50/* Needed for NeXT */
51#undef BROKEN_SAVED_UIDS
52
53/* Define if your setregid() is broken */
54#undef BROKEN_SETREGID
55
56/* Define if your setresgid() is broken */
57#undef BROKEN_SETRESGID
58
59/* Define if your setresuid() is broken */
60#undef BROKEN_SETRESUID
61
62/* Define if your setreuid() is broken */
63#undef BROKEN_SETREUID
64
65/* LynxOS has broken setvbuf() implementation */
66#undef BROKEN_SETVBUF
67
68/* QNX shadow support is broken */
69#undef BROKEN_SHADOW_EXPIRE
70
71/* Define if your snprintf is busted */
72#undef BROKEN_SNPRINTF
73
74/* tcgetattr with ICANON may hang */
75#undef BROKEN_TCGETATTR_ICANON
76
77/* updwtmpx is broken (if present) */
78#undef BROKEN_UPDWTMPX
79
80/* Define if you have BSD auth support */
81#undef BSD_AUTH
82
83/* Define if you want to specify the path to your lastlog file */
84#undef CONF_LASTLOG_FILE
85
86/* Define if you want to specify the path to your utmp file */
87#undef CONF_UTMP_FILE
88
89/* Define if you want to specify the path to your wtmpx file */
90#undef CONF_WTMPX_FILE
91
92/* Define if you want to specify the path to your wtmp file */
93#undef CONF_WTMP_FILE
94
95/* Define if your platform needs to skip post auth file descriptor passing */
96#undef DISABLE_FD_PASSING
97
98/* Define if you don't want to use lastlog */
99#undef DISABLE_LASTLOG
100
101/* Define if you don't want to use your system's login() call */
102#undef DISABLE_LOGIN
103
104/* Define if you don't want to use pututline() etc. to write [uw]tmp */
105#undef DISABLE_PUTUTLINE
106
107/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
108#undef DISABLE_PUTUTXLINE
109
110/* Define if you want to disable shadow passwords */
111#undef DISABLE_SHADOW
112
113/* Define if you don't want to use utmp */
114#undef DISABLE_UTMP
115
116/* Define if you don't want to use utmpx */
117#undef DISABLE_UTMPX
118
119/* Define if you don't want to use wtmp */
120#undef DISABLE_WTMP
121
122/* Define if you don't want to use wtmpx */
123#undef DISABLE_WTMPX
124
125/* Enable for PKCS#11 support */
126#undef ENABLE_PKCS11
127
128/* File names may not contain backslash characters */
129#undef FILESYSTEM_NO_BACKSLASH
130
131/* fsid_t has member val */
132#undef FSID_HAS_VAL
133
134/* fsid_t has member __val */
135#undef FSID_HAS___VAL
136
137/* Define to 1 if the `getpgrp' function requires zero arguments. */
138#undef GETPGRP_VOID
139
140/* Conflicting defs for getspnam */
141#undef GETSPNAM_CONFLICTING_DEFS
142
143/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
144#undef GLOB_HAS_ALTDIRFUNC
145
146/* Define if your system glob() function has gl_matchc options in glob_t */
147#undef GLOB_HAS_GL_MATCHC
148
149/* Define if your system glob() function has gl_statv options in glob_t */
150#undef GLOB_HAS_GL_STATV
151
152/* Define this if you want GSSAPI support in the version 2 protocol */
153#undef GSSAPI
154
155/* Define if you want to use shadow password expire field */
156#undef HAS_SHADOW_EXPIRE
157
158/* Define if your system uses access rights style file descriptor passing */
159#undef HAVE_ACCRIGHTS_IN_MSGHDR
160
161/* Define if you have ut_addr in utmp.h */
162#undef HAVE_ADDR_IN_UTMP
163
164/* Define if you have ut_addr in utmpx.h */
165#undef HAVE_ADDR_IN_UTMPX
166
167/* Define if you have ut_addr_v6 in utmp.h */
168#undef HAVE_ADDR_V6_IN_UTMP
169
170/* Define if you have ut_addr_v6 in utmpx.h */
171#undef HAVE_ADDR_V6_IN_UTMPX
172
173/* Define to 1 if you have the `arc4random' function. */
174#undef HAVE_ARC4RANDOM
175
176/* Define to 1 if you have the `arc4random_buf' function. */
177#undef HAVE_ARC4RANDOM_BUF
178
179/* Define to 1 if you have the `arc4random_uniform' function. */
180#undef HAVE_ARC4RANDOM_UNIFORM
181
182/* Define to 1 if you have the `asprintf' function. */
183#undef HAVE_ASPRINTF
184
185/* OpenBSD's gcc has bounded */
186#undef HAVE_ATTRIBUTE__BOUNDED__
187
188/* Have attribute nonnull */
189#undef HAVE_ATTRIBUTE__NONNULL__
190
191/* OpenBSD's gcc has sentinel */
192#undef HAVE_ATTRIBUTE__SENTINEL__
193
194/* Define to 1 if you have the `aug_get_machine' function. */
195#undef HAVE_AUG_GET_MACHINE
196
197/* Define to 1 if you have the `b64_ntop' function. */
198#undef HAVE_B64_NTOP
199
200/* Define to 1 if you have the `b64_pton' function. */
201#undef HAVE_B64_PTON
202
203/* Define if you have the basename function. */
204#undef HAVE_BASENAME
205
206/* Define to 1 if you have the `bcopy' function. */
207#undef HAVE_BCOPY
208
209/* Define to 1 if you have the `bindresvport_sa' function. */
210#undef HAVE_BINDRESVPORT_SA
211
212/* Define to 1 if you have the `BN_is_prime_ex' function. */
213#undef HAVE_BN_IS_PRIME_EX
214
215/* Define to 1 if you have the <bsm/audit.h> header file. */
216#undef HAVE_BSM_AUDIT_H
217
218/* Define to 1 if you have the <bstring.h> header file. */
219#undef HAVE_BSTRING_H
220
221/* Define to 1 if you have the `clock' function. */
222#undef HAVE_CLOCK
223
224/* define if you have clock_t data type */
225#undef HAVE_CLOCK_T
226
227/* Define to 1 if you have the `closefrom' function. */
228#undef HAVE_CLOSEFROM
229
230/* Define if gai_strerror() returns const char * */
231#undef HAVE_CONST_GAI_STRERROR_PROTO
232
233/* Define if your system uses ancillary data style file descriptor passing */
234#undef HAVE_CONTROL_IN_MSGHDR
235
236/* Define to 1 if you have the <crypto/sha2.h> header file. */
237#undef HAVE_CRYPTO_SHA2_H
238
239/* Define to 1 if you have the <crypt.h> header file. */
240#undef HAVE_CRYPT_H
241
242/* Define if you are on Cygwin */
243#undef HAVE_CYGWIN
244
245/* Define if your libraries define daemon() */
246#undef HAVE_DAEMON
247
248/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
249 don't. */
250#undef HAVE_DECL_AUTHENTICATE
251
252/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
253 don't. */
254#undef HAVE_DECL_GLOB_NOMATCH
255
256/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
257 don't. */
258#undef HAVE_DECL_H_ERRNO
259
260/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
261 don't. */
262#undef HAVE_DECL_LOGINFAILED
263
264/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
265 you don't. */
266#undef HAVE_DECL_LOGINRESTRICTIONS
267
268/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
269 don't. */
270#undef HAVE_DECL_LOGINSUCCESS
271
272/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
273 don't. */
274#undef HAVE_DECL_MAXSYMLINKS
275
276/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
277 don't. */
278#undef HAVE_DECL_OFFSETOF
279
280/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
281 don't. */
282#undef HAVE_DECL_O_NONBLOCK
283
284/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
285 don't. */
286#undef HAVE_DECL_PASSWDEXPIRED
287
288/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
289 don't. */
290#undef HAVE_DECL_SETAUTHDB
291
292/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
293 don't. */
294#undef HAVE_DECL_SHUT_RD
295
296/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
297 */
298#undef HAVE_DECL_WRITEV
299
300/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
301 don't. */
302#undef HAVE_DECL__GETLONG
303
304/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
305 don't. */
306#undef HAVE_DECL__GETSHORT
307
308/* Define if you have /dev/ptmx */
309#undef HAVE_DEV_PTMX
310
311/* Define if you have /dev/ptc */
312#undef HAVE_DEV_PTS_AND_PTC
313
314/* Define to 1 if you have the <dirent.h> header file. */
315#undef HAVE_DIRENT_H
316
317/* Define to 1 if you have the `dirfd' function. */
318#undef HAVE_DIRFD
319
320/* Define to 1 if you have the `dirname' function. */
321#undef HAVE_DIRNAME
322
323/* Define to 1 if you have the `DSA_generate_parameters_ex' function. */
324#undef HAVE_DSA_GENERATE_PARAMETERS_EX
325
326/* Define to 1 if you have the <endian.h> header file. */
327#undef HAVE_ENDIAN_H
328
329/* Define to 1 if you have the `endutent' function. */
330#undef HAVE_ENDUTENT
331
332/* Define to 1 if you have the `endutxent' function. */
333#undef HAVE_ENDUTXENT
334
335/* Define if your system has /etc/default/login */
336#undef HAVE_ETC_DEFAULT_LOGIN
337
338/* Define to 1 if you have the `EVP_sha256' function. */
339#undef HAVE_EVP_SHA256
340
341/* Define if you have ut_exit in utmp.h */
342#undef HAVE_EXIT_IN_UTMP
343
344/* Define to 1 if you have the `fchmod' function. */
345#undef HAVE_FCHMOD
346
347/* Define to 1 if you have the `fchown' function. */
348#undef HAVE_FCHOWN
349
350/* Use F_CLOSEM fcntl for closefrom */
351#undef HAVE_FCNTL_CLOSEM
352
353/* Define to 1 if you have the <fcntl.h> header file. */
354#undef HAVE_FCNTL_H
355
356/* Define to 1 if you have the <features.h> header file. */
357#undef HAVE_FEATURES_H
358
359/* Define to 1 if you have the <floatingpoint.h> header file. */
360#undef HAVE_FLOATINGPOINT_H
361
362/* Define to 1 if you have the `fmt_scaled' function. */
363#undef HAVE_FMT_SCALED
364
365/* Define to 1 if you have the `freeaddrinfo' function. */
366#undef HAVE_FREEADDRINFO
367
368/* Define to 1 if the system has the type `fsblkcnt_t'. */
369#undef HAVE_FSBLKCNT_T
370
371/* Define to 1 if the system has the type `fsfilcnt_t'. */
372#undef HAVE_FSFILCNT_T
373
374/* Define to 1 if you have the `fstatvfs' function. */
375#undef HAVE_FSTATVFS
376
377/* Define to 1 if you have the `futimes' function. */
378#undef HAVE_FUTIMES
379
380/* Define to 1 if you have the `gai_strerror' function. */
381#undef HAVE_GAI_STRERROR
382
383/* Define to 1 if you have the `getaddrinfo' function. */
384#undef HAVE_GETADDRINFO
385
386/* Define to 1 if you have the `getaudit' function. */
387#undef HAVE_GETAUDIT
388
389/* Define to 1 if you have the `getaudit_addr' function. */
390#undef HAVE_GETAUDIT_ADDR
391
392/* Define to 1 if you have the `getcwd' function. */
393#undef HAVE_GETCWD
394
395/* Define to 1 if you have the `getgrouplist' function. */
396#undef HAVE_GETGROUPLIST
397
398/* Define to 1 if you have the `getgrset' function. */
399#undef HAVE_GETGRSET
400
401/* Define to 1 if you have the `getlastlogxbyname' function. */
402#undef HAVE_GETLASTLOGXBYNAME
403
404/* Define to 1 if you have the `getluid' function. */
405#undef HAVE_GETLUID
406
407/* Define to 1 if you have the `getnameinfo' function. */
408#undef HAVE_GETNAMEINFO
409
410/* Define to 1 if you have the `getopt' function. */
411#undef HAVE_GETOPT
412
413/* Define to 1 if you have the <getopt.h> header file. */
414#undef HAVE_GETOPT_H
415
416/* Define if your getopt(3) defines and uses optreset */
417#undef HAVE_GETOPT_OPTRESET
418
419/* Define if your libraries define getpagesize() */
420#undef HAVE_GETPAGESIZE
421
422/* Define to 1 if you have the `getpeereid' function. */
423#undef HAVE_GETPEEREID
424
425/* Define to 1 if you have the `getpeerucred' function. */
426#undef HAVE_GETPEERUCRED
427
428/* Define to 1 if you have the `getpwanam' function. */
429#undef HAVE_GETPWANAM
430
431/* Define to 1 if you have the `getrlimit' function. */
432#undef HAVE_GETRLIMIT
433
434/* Define if getrrsetbyname() exists */
435#undef HAVE_GETRRSETBYNAME
436
437/* Define to 1 if you have the `getrusage' function. */
438#undef HAVE_GETRUSAGE
439
440/* Define to 1 if you have the `getseuserbyname' function. */
441#undef HAVE_GETSEUSERBYNAME
442
443/* Define to 1 if you have the `gettimeofday' function. */
444#undef HAVE_GETTIMEOFDAY
445
446/* Define to 1 if you have the `getttyent' function. */
447#undef HAVE_GETTTYENT
448
449/* Define to 1 if you have the `getutent' function. */
450#undef HAVE_GETUTENT
451
452/* Define to 1 if you have the `getutid' function. */
453#undef HAVE_GETUTID
454
455/* Define to 1 if you have the `getutline' function. */
456#undef HAVE_GETUTLINE
457
458/* Define to 1 if you have the `getutxent' function. */
459#undef HAVE_GETUTXENT
460
461/* Define to 1 if you have the `getutxid' function. */
462#undef HAVE_GETUTXID
463
464/* Define to 1 if you have the `getutxline' function. */
465#undef HAVE_GETUTXLINE
466
467/* Define to 1 if you have the `getutxuser' function. */
468#undef HAVE_GETUTXUSER
469
470/* Define to 1 if you have the `get_default_context_with_level' function. */
471#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
472
473/* Define to 1 if you have the `glob' function. */
474#undef HAVE_GLOB
475
476/* Define to 1 if you have the <glob.h> header file. */
477#undef HAVE_GLOB_H
478
479/* Define to 1 if you have the `group_from_gid' function. */
480#undef HAVE_GROUP_FROM_GID
481
482/* Define to 1 if you have the <gssapi_generic.h> header file. */
483#undef HAVE_GSSAPI_GENERIC_H
484
485/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
486#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
487
488/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
489#undef HAVE_GSSAPI_GSSAPI_H
490
491/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
492#undef HAVE_GSSAPI_GSSAPI_KRB5_H
493
494/* Define to 1 if you have the <gssapi.h> header file. */
495#undef HAVE_GSSAPI_H
496
497/* Define to 1 if you have the <gssapi_krb5.h> header file. */
498#undef HAVE_GSSAPI_KRB5_H
499
500/* Define if HEADER.ad exists in arpa/nameser.h */
501#undef HAVE_HEADER_AD
502
503/* Define if you have ut_host in utmp.h */
504#undef HAVE_HOST_IN_UTMP
505
506/* Define if you have ut_host in utmpx.h */
507#undef HAVE_HOST_IN_UTMPX
508
509/* Define to 1 if you have the <iaf.h> header file. */
510#undef HAVE_IAF_H
511
512/* Define to 1 if you have the <ia.h> header file. */
513#undef HAVE_IA_H
514
515/* Define if you have ut_id in utmp.h */
516#undef HAVE_ID_IN_UTMP
517
518/* Define if you have ut_id in utmpx.h */
519#undef HAVE_ID_IN_UTMPX
520
521/* Define to 1 if you have the `inet_aton' function. */
522#undef HAVE_INET_ATON
523
524/* Define to 1 if you have the `inet_ntoa' function. */
525#undef HAVE_INET_NTOA
526
527/* Define to 1 if you have the `inet_ntop' function. */
528#undef HAVE_INET_NTOP
529
530/* Define to 1 if you have the `innetgr' function. */
531#undef HAVE_INNETGR
532
533/* define if you have int64_t data type */
534#undef HAVE_INT64_T
535
536/* Define to 1 if you have the <inttypes.h> header file. */
537#undef HAVE_INTTYPES_H
538
539/* define if you have intxx_t data type */
540#undef HAVE_INTXX_T
541
542/* Define to 1 if the system has the type `in_addr_t'. */
543#undef HAVE_IN_ADDR_T
544
545/* Define to 1 if the system has the type `in_port_t'. */
546#undef HAVE_IN_PORT_T
547
548/* Define if you have isblank(3C). */
549#undef HAVE_ISBLANK
550
551/* Define to 1 if you have the <lastlog.h> header file. */
552#undef HAVE_LASTLOG_H
553
554/* Define to 1 if you have the <libaudit.h> header file. */
555#undef HAVE_LIBAUDIT_H
556
557/* Define to 1 if you have the `bsm' library (-lbsm). */
558#undef HAVE_LIBBSM
559
560/* Define to 1 if you have the `crypt' library (-lcrypt). */
561#undef HAVE_LIBCRYPT
562
563/* Define to 1 if you have the `dl' library (-ldl). */
564#undef HAVE_LIBDL
565
566/* Define to 1 if you have the <libgen.h> header file. */
567#undef HAVE_LIBGEN_H
568
569/* Define if system has libiaf that supports set_id */
570#undef HAVE_LIBIAF
571
572/* Define to 1 if you have the `network' library (-lnetwork). */
573#undef HAVE_LIBNETWORK
574
575/* Define to 1 if you have the `nsl' library (-lnsl). */
576#undef HAVE_LIBNSL
577
578/* Define to 1 if you have the `pam' library (-lpam). */
579#undef HAVE_LIBPAM
580
581/* Define to 1 if you have the `socket' library (-lsocket). */
582#undef HAVE_LIBSOCKET
583
584/* Define to 1 if you have the <libutil.h> header file. */
585#undef HAVE_LIBUTIL_H
586
587/* Define to 1 if you have the `xnet' library (-lxnet). */
588#undef HAVE_LIBXNET
589
590/* Define to 1 if you have the `z' library (-lz). */
591#undef HAVE_LIBZ
592
593/* Define to 1 if you have the <limits.h> header file. */
594#undef HAVE_LIMITS_H
595
596/* Define to 1 if you have the <linux/if_tun.h> header file. */
597#undef HAVE_LINUX_IF_TUN_H
598
599/* Define if your libraries define login() */
600#undef HAVE_LOGIN
601
602/* Define to 1 if you have the <login_cap.h> header file. */
603#undef HAVE_LOGIN_CAP_H
604
605/* Define to 1 if you have the `login_getcapbool' function. */
606#undef HAVE_LOGIN_GETCAPBOOL
607
608/* Define to 1 if you have the <login.h> header file. */
609#undef HAVE_LOGIN_H
610
611/* Define to 1 if you have the `logout' function. */
612#undef HAVE_LOGOUT
613
614/* Define to 1 if you have the `logwtmp' function. */
615#undef HAVE_LOGWTMP
616
617/* Define to 1 if the system has the type `long double'. */
618#undef HAVE_LONG_DOUBLE
619
620/* Define to 1 if the system has the type `long long'. */
621#undef HAVE_LONG_LONG
622
623/* Define to 1 if you have the <maillock.h> header file. */
624#undef HAVE_MAILLOCK_H
625
626/* Define to 1 if you have the `md5_crypt' function. */
627#undef HAVE_MD5_CRYPT
628
629/* Define if you want to allow MD5 passwords */
630#undef HAVE_MD5_PASSWORDS
631
632/* Define to 1 if you have the `memmove' function. */
633#undef HAVE_MEMMOVE
634
635/* Define to 1 if you have the <memory.h> header file. */
636#undef HAVE_MEMORY_H
637
638/* Define to 1 if you have the `mkdtemp' function. */
639#undef HAVE_MKDTEMP
640
641/* Define to 1 if you have the `mmap' function. */
642#undef HAVE_MMAP
643
644/* define if you have mode_t data type */
645#undef HAVE_MODE_T
646
647/* Some systems put nanosleep outside of libc */
648#undef HAVE_NANOSLEEP
649
650/* Define to 1 if you have the <ndir.h> header file. */
651#undef HAVE_NDIR_H
652
653/* Define to 1 if you have the <netdb.h> header file. */
654#undef HAVE_NETDB_H
655
656/* Define to 1 if you have the <netgroup.h> header file. */
657#undef HAVE_NETGROUP_H
658
659/* Define to 1 if you have the <net/if_tun.h> header file. */
660#undef HAVE_NET_IF_TUN_H
661
662/* Define if you are on NeXT */
663#undef HAVE_NEXT
664
665/* Define to 1 if you have the `ngetaddrinfo' function. */
666#undef HAVE_NGETADDRINFO
667
668/* Define to 1 if you have the `nsleep' function. */
669#undef HAVE_NSLEEP
670
671/* Define to 1 if you have the `ogetaddrinfo' function. */
672#undef HAVE_OGETADDRINFO
673
674/* Define if you have an old version of PAM which takes only one argument to
675 pam_strerror */
676#undef HAVE_OLD_PAM
677
678/* Define to 1 if you have the `openlog_r' function. */
679#undef HAVE_OPENLOG_R
680
681/* Define to 1 if you have the `openpty' function. */
682#undef HAVE_OPENPTY
683
684/* Define if your ssl headers are included with #include <openssl/header.h> */
685#undef HAVE_OPENSSL
686
687/* Define if you have Digital Unix Security Integration Architecture */
688#undef HAVE_OSF_SIA
689
690/* Define to 1 if you have the `pam_getenvlist' function. */
691#undef HAVE_PAM_GETENVLIST
692
693/* Define to 1 if you have the <pam/pam_appl.h> header file. */
694#undef HAVE_PAM_PAM_APPL_H
695
696/* Define to 1 if you have the `pam_putenv' function. */
697#undef HAVE_PAM_PUTENV
698
699/* Define to 1 if you have the <paths.h> header file. */
700#undef HAVE_PATHS_H
701
702/* Define if you have ut_pid in utmp.h */
703#undef HAVE_PID_IN_UTMP
704
705/* define if you have pid_t data type */
706#undef HAVE_PID_T
707
708/* Define to 1 if you have the `poll' function. */
709#undef HAVE_POLL
710
711/* Define to 1 if you have the <poll.h> header file. */
712#undef HAVE_POLL_H
713
714/* Define to 1 if you have the `prctl' function. */
715#undef HAVE_PRCTL
716
717/* Define if you have /proc/$pid/fd */
718#undef HAVE_PROC_PID
719
720/* Define to 1 if you have the `pstat' function. */
721#undef HAVE_PSTAT
722
723/* Define to 1 if you have the <pty.h> header file. */
724#undef HAVE_PTY_H
725
726/* Define to 1 if you have the `pututline' function. */
727#undef HAVE_PUTUTLINE
728
729/* Define to 1 if you have the `pututxline' function. */
730#undef HAVE_PUTUTXLINE
731
732/* Define if your password has a pw_change field */
733#undef HAVE_PW_CHANGE_IN_PASSWD
734
735/* Define if your password has a pw_class field */
736#undef HAVE_PW_CLASS_IN_PASSWD
737
738/* Define if your password has a pw_expire field */
739#undef HAVE_PW_EXPIRE_IN_PASSWD
740
741/* Define to 1 if you have the `readpassphrase' function. */
742#undef HAVE_READPASSPHRASE
743
744/* Define to 1 if you have the <readpassphrase.h> header file. */
745#undef HAVE_READPASSPHRASE_H
746
747/* Define to 1 if you have the `realpath' function. */
748#undef HAVE_REALPATH
749
750/* Define to 1 if you have the `recvmsg' function. */
751#undef HAVE_RECVMSG
752
753/* sys/resource.h has RLIMIT_NPROC */
754#undef HAVE_RLIMIT_NPROC
755
756/* Define to 1 if you have the <rpc/types.h> header file. */
757#undef HAVE_RPC_TYPES_H
758
759/* Define to 1 if you have the `rresvport_af' function. */
760#undef HAVE_RRESVPORT_AF
761
762/* Define to 1 if you have the `RSA_generate_key_ex' function. */
763#undef HAVE_RSA_GENERATE_KEY_EX
764
765/* Define to 1 if you have the `RSA_get_default_method' function. */
766#undef HAVE_RSA_GET_DEFAULT_METHOD
767
768/* Define to 1 if you have the <sandbox.h> header file. */
769#undef HAVE_SANDBOX_H
770
771/* Define to 1 if you have the `sandbox_init' function. */
772#undef HAVE_SANDBOX_INIT
773
774/* define if you have sa_family_t data type */
775#undef HAVE_SA_FAMILY_T
776
777/* Define if you have SecureWare-based protected password database */
778#undef HAVE_SECUREWARE
779
780/* Define to 1 if you have the <security/pam_appl.h> header file. */
781#undef HAVE_SECURITY_PAM_APPL_H
782
783/* Define to 1 if you have the `sendmsg' function. */
784#undef HAVE_SENDMSG
785
786/* Define to 1 if you have the `setauthdb' function. */
787#undef HAVE_SETAUTHDB
788
789/* Define to 1 if you have the `setdtablesize' function. */
790#undef HAVE_SETDTABLESIZE
791
792/* Define to 1 if you have the `setegid' function. */
793#undef HAVE_SETEGID
794
795/* Define to 1 if you have the `setenv' function. */
796#undef HAVE_SETENV
797
798/* Define to 1 if you have the `seteuid' function. */
799#undef HAVE_SETEUID
800
801/* Define to 1 if you have the `setgroupent' function. */
802#undef HAVE_SETGROUPENT
803
804/* Define to 1 if you have the `setgroups' function. */
805#undef HAVE_SETGROUPS
806
807/* Define to 1 if you have the `setlogin' function. */
808#undef HAVE_SETLOGIN
809
810/* Define to 1 if you have the `setluid' function. */
811#undef HAVE_SETLUID
812
813/* Define to 1 if you have the `setpassent' function. */
814#undef HAVE_SETPASSENT
815
816/* Define to 1 if you have the `setpcred' function. */
817#undef HAVE_SETPCRED
818
819/* Define to 1 if you have the `setproctitle' function. */
820#undef HAVE_SETPROCTITLE
821
822/* Define to 1 if you have the `setregid' function. */
823#undef HAVE_SETREGID
824
825/* Define to 1 if you have the `setresgid' function. */
826#undef HAVE_SETRESGID
827
828/* Define to 1 if you have the `setresuid' function. */
829#undef HAVE_SETRESUID
830
831/* Define to 1 if you have the `setreuid' function. */
832#undef HAVE_SETREUID
833
834/* Define to 1 if you have the `setrlimit' function. */
835#undef HAVE_SETRLIMIT
836
837/* Define to 1 if you have the `setsid' function. */
838#undef HAVE_SETSID
839
840/* Define to 1 if you have the `setutent' function. */
841#undef HAVE_SETUTENT
842
843/* Define to 1 if you have the `setutxdb' function. */
844#undef HAVE_SETUTXDB
845
846/* Define to 1 if you have the `setutxent' function. */
847#undef HAVE_SETUTXENT
848
849/* Define to 1 if you have the `setvbuf' function. */
850#undef HAVE_SETVBUF
851
852/* Define to 1 if you have the `set_id' function. */
853#undef HAVE_SET_ID
854
855/* Define to 1 if you have the `SHA256_Update' function. */
856#undef HAVE_SHA256_UPDATE
857
858/* Define to 1 if you have the <sha2.h> header file. */
859#undef HAVE_SHA2_H
860
861/* Define to 1 if you have the <shadow.h> header file. */
862#undef HAVE_SHADOW_H
863
864/* Define to 1 if you have the `sigaction' function. */
865#undef HAVE_SIGACTION
866
867/* Define to 1 if you have the `sigvec' function. */
868#undef HAVE_SIGVEC
869
870/* Define to 1 if the system has the type `sig_atomic_t'. */
871#undef HAVE_SIG_ATOMIC_T
872
873/* define if you have size_t data type */
874#undef HAVE_SIZE_T
875
876/* Define to 1 if you have the `snprintf' function. */
877#undef HAVE_SNPRINTF
878
879/* Define to 1 if you have the `socketpair' function. */
880#undef HAVE_SOCKETPAIR
881
882/* Have PEERCRED socket option */
883#undef HAVE_SO_PEERCRED
884
885/* define if you have ssize_t data type */
886#undef HAVE_SSIZE_T
887
888/* Fields in struct sockaddr_storage */
889#undef HAVE_SS_FAMILY_IN_SS
890
891/* Define to 1 if you have the `statfs' function. */
892#undef HAVE_STATFS
893
894/* Define to 1 if you have the `statvfs' function. */
895#undef HAVE_STATVFS
896
897/* Define to 1 if you have the <stddef.h> header file. */
898#undef HAVE_STDDEF_H
899
900/* Define to 1 if you have the <stdint.h> header file. */
901#undef HAVE_STDINT_H
902
903/* Define to 1 if you have the <stdlib.h> header file. */
904#undef HAVE_STDLIB_H
905
906/* Define to 1 if you have the `strdup' function. */
907#undef HAVE_STRDUP
908
909/* Define to 1 if you have the `strerror' function. */
910#undef HAVE_STRERROR
911
912/* Define to 1 if you have the `strftime' function. */
913#undef HAVE_STRFTIME
914
915/* Silly mkstemp() */
916#undef HAVE_STRICT_MKSTEMP
917
918/* Define to 1 if you have the <strings.h> header file. */
919#undef HAVE_STRINGS_H
920
921/* Define to 1 if you have the <string.h> header file. */
922#undef HAVE_STRING_H
923
924/* Define to 1 if you have the `strlcat' function. */
925#undef HAVE_STRLCAT
926
927/* Define to 1 if you have the `strlcpy' function. */
928#undef HAVE_STRLCPY
929
930/* Define to 1 if you have the `strmode' function. */
931#undef HAVE_STRMODE
932
933/* Define to 1 if you have the `strnvis' function. */
934#undef HAVE_STRNVIS
935
936/* Define to 1 if you have the `strptime' function. */
937#undef HAVE_STRPTIME
938
939/* Define to 1 if you have the `strsep' function. */
940#undef HAVE_STRSEP
941
942/* Define to 1 if you have the `strtoll' function. */
943#undef HAVE_STRTOLL
944
945/* Define to 1 if you have the `strtonum' function. */
946#undef HAVE_STRTONUM
947
948/* Define to 1 if you have the `strtoul' function. */
949#undef HAVE_STRTOUL
950
951/* define if you have struct addrinfo data type */
952#undef HAVE_STRUCT_ADDRINFO
953
954/* define if you have struct in6_addr data type */
955#undef HAVE_STRUCT_IN6_ADDR
956
957/* define if you have struct sockaddr_in6 data type */
958#undef HAVE_STRUCT_SOCKADDR_IN6
959
960/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
961#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
962
963/* define if you have struct sockaddr_storage data type */
964#undef HAVE_STRUCT_SOCKADDR_STORAGE
965
966/* Define to 1 if `st_blksize' is a member of `struct stat'. */
967#undef HAVE_STRUCT_STAT_ST_BLKSIZE
968
969/* Define to 1 if the system has the type `struct timespec'. */
970#undef HAVE_STRUCT_TIMESPEC
971
972/* define if you have struct timeval */
973#undef HAVE_STRUCT_TIMEVAL
974
975/* Define to 1 if you have the `swap32' function. */
976#undef HAVE_SWAP32
977
978/* Define to 1 if you have the `sysconf' function. */
979#undef HAVE_SYSCONF
980
981/* Define if you have syslen in utmpx.h */
982#undef HAVE_SYSLEN_IN_UTMPX
983
984/* Define to 1 if you have the <sys/audit.h> header file. */
985#undef HAVE_SYS_AUDIT_H
986
987/* Define to 1 if you have the <sys/bitypes.h> header file. */
988#undef HAVE_SYS_BITYPES_H
989
990/* Define to 1 if you have the <sys/bsdtty.h> header file. */
991#undef HAVE_SYS_BSDTTY_H
992
993/* Define to 1 if you have the <sys/cdefs.h> header file. */
994#undef HAVE_SYS_CDEFS_H
995
996/* Define to 1 if you have the <sys/dir.h> header file. */
997#undef HAVE_SYS_DIR_H
998
999/* Define if your system defines sys_errlist[] */
1000#undef HAVE_SYS_ERRLIST
1001
1002/* Define to 1 if you have the <sys/mman.h> header file. */
1003#undef HAVE_SYS_MMAN_H
1004
1005/* Define to 1 if you have the <sys/mount.h> header file. */
1006#undef HAVE_SYS_MOUNT_H
1007
1008/* Define to 1 if you have the <sys/ndir.h> header file. */
1009#undef HAVE_SYS_NDIR_H
1010
1011/* Define if your system defines sys_nerr */
1012#undef HAVE_SYS_NERR
1013
1014/* Define to 1 if you have the <sys/poll.h> header file. */
1015#undef HAVE_SYS_POLL_H
1016
1017/* Define to 1 if you have the <sys/prctl.h> header file. */
1018#undef HAVE_SYS_PRCTL_H
1019
1020/* Define to 1 if you have the <sys/pstat.h> header file. */
1021#undef HAVE_SYS_PSTAT_H
1022
1023/* Define to 1 if you have the <sys/ptms.h> header file. */
1024#undef HAVE_SYS_PTMS_H
1025
1026/* Define to 1 if you have the <sys/select.h> header file. */
1027#undef HAVE_SYS_SELECT_H
1028
1029/* Define to 1 if you have the <sys/statvfs.h> header file. */
1030#undef HAVE_SYS_STATVFS_H
1031
1032/* Define to 1 if you have the <sys/stat.h> header file. */
1033#undef HAVE_SYS_STAT_H
1034
1035/* Define to 1 if you have the <sys/stream.h> header file. */
1036#undef HAVE_SYS_STREAM_H
1037
1038/* Define to 1 if you have the <sys/stropts.h> header file. */
1039#undef HAVE_SYS_STROPTS_H
1040
1041/* Define to 1 if you have the <sys/strtio.h> header file. */
1042#undef HAVE_SYS_STRTIO_H
1043
1044/* Force use of sys/syslog.h on Ultrix */
1045#undef HAVE_SYS_SYSLOG_H
1046
1047/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1048#undef HAVE_SYS_SYSMACROS_H
1049
1050/* Define to 1 if you have the <sys/timers.h> header file. */
1051#undef HAVE_SYS_TIMERS_H
1052
1053/* Define to 1 if you have the <sys/time.h> header file. */
1054#undef HAVE_SYS_TIME_H
1055
1056/* Define to 1 if you have the <sys/types.h> header file. */
1057#undef HAVE_SYS_TYPES_H
1058
1059/* Define to 1 if you have the <sys/un.h> header file. */
1060#undef HAVE_SYS_UN_H
1061
1062/* Define to 1 if you have the `tcgetpgrp' function. */
1063#undef HAVE_TCGETPGRP
1064
1065/* Define to 1 if you have the `tcsendbreak' function. */
1066#undef HAVE_TCSENDBREAK
1067
1068/* Define to 1 if you have the `time' function. */
1069#undef HAVE_TIME
1070
1071/* Define to 1 if you have the <time.h> header file. */
1072#undef HAVE_TIME_H
1073
1074/* Define if you have ut_time in utmp.h */
1075#undef HAVE_TIME_IN_UTMP
1076
1077/* Define if you have ut_time in utmpx.h */
1078#undef HAVE_TIME_IN_UTMPX
1079
1080/* Define to 1 if you have the `timingsafe_bcmp' function. */
1081#undef HAVE_TIMINGSAFE_BCMP
1082
1083/* Define to 1 if you have the <tmpdir.h> header file. */
1084#undef HAVE_TMPDIR_H
1085
1086/* Define to 1 if you have the `truncate' function. */
1087#undef HAVE_TRUNCATE
1088
1089/* Define to 1 if you have the <ttyent.h> header file. */
1090#undef HAVE_TTYENT_H
1091
1092/* Define if you have ut_tv in utmp.h */
1093#undef HAVE_TV_IN_UTMP
1094
1095/* Define if you have ut_tv in utmpx.h */
1096#undef HAVE_TV_IN_UTMPX
1097
1098/* Define if you have ut_type in utmp.h */
1099#undef HAVE_TYPE_IN_UTMP
1100
1101/* Define if you have ut_type in utmpx.h */
1102#undef HAVE_TYPE_IN_UTMPX
1103
1104/* Define to 1 if you have the <ucred.h> header file. */
1105#undef HAVE_UCRED_H
1106
1107/* define if you have uintxx_t data type */
1108#undef HAVE_UINTXX_T
1109
1110/* Define to 1 if you have the <unistd.h> header file. */
1111#undef HAVE_UNISTD_H
1112
1113/* Define to 1 if you have the `unsetenv' function. */
1114#undef HAVE_UNSETENV
1115
1116/* Define to 1 if the system has the type `unsigned long long'. */
1117#undef HAVE_UNSIGNED_LONG_LONG
1118
1119/* Define to 1 if you have the `updwtmp' function. */
1120#undef HAVE_UPDWTMP
1121
1122/* Define to 1 if you have the `updwtmpx' function. */
1123#undef HAVE_UPDWTMPX
1124
1125/* Define to 1 if you have the <usersec.h> header file. */
1126#undef HAVE_USERSEC_H
1127
1128/* Define to 1 if you have the `user_from_uid' function. */
1129#undef HAVE_USER_FROM_UID
1130
1131/* Define to 1 if you have the <util.h> header file. */
1132#undef HAVE_UTIL_H
1133
1134/* Define to 1 if you have the `utimes' function. */
1135#undef HAVE_UTIMES
1136
1137/* Define to 1 if you have the <utime.h> header file. */
1138#undef HAVE_UTIME_H
1139
1140/* Define to 1 if you have the `utmpname' function. */
1141#undef HAVE_UTMPNAME
1142
1143/* Define to 1 if you have the `utmpxname' function. */
1144#undef HAVE_UTMPXNAME
1145
1146/* Define to 1 if you have the <utmpx.h> header file. */
1147#undef HAVE_UTMPX_H
1148
1149/* Define to 1 if you have the <utmp.h> header file. */
1150#undef HAVE_UTMP_H
1151
1152/* define if you have u_char data type */
1153#undef HAVE_U_CHAR
1154
1155/* define if you have u_int data type */
1156#undef HAVE_U_INT
1157
1158/* define if you have u_int64_t data type */
1159#undef HAVE_U_INT64_T
1160
1161/* define if you have u_intxx_t data type */
1162#undef HAVE_U_INTXX_T
1163
1164/* Define to 1 if you have the `vasprintf' function. */
1165#undef HAVE_VASPRINTF
1166
1167/* Define if va_copy exists */
1168#undef HAVE_VA_COPY
1169
1170/* Define to 1 if you have the `vhangup' function. */
1171#undef HAVE_VHANGUP
1172
1173/* Define to 1 if you have the <vis.h> header file. */
1174#undef HAVE_VIS_H
1175
1176/* Define to 1 if you have the `vsnprintf' function. */
1177#undef HAVE_VSNPRINTF
1178
1179/* Define to 1 if you have the `waitpid' function. */
1180#undef HAVE_WAITPID
1181
1182/* Define to 1 if you have the `_getlong' function. */
1183#undef HAVE__GETLONG
1184
1185/* Define to 1 if you have the `_getpty' function. */
1186#undef HAVE__GETPTY
1187
1188/* Define to 1 if you have the `_getshort' function. */
1189#undef HAVE__GETSHORT
1190
1191/* Define if you have struct __res_state _res as an extern */
1192#undef HAVE__RES_EXTERN
1193
1194/* Define to 1 if you have the `__b64_ntop' function. */
1195#undef HAVE___B64_NTOP
1196
1197/* Define to 1 if you have the `__b64_pton' function. */
1198#undef HAVE___B64_PTON
1199
1200/* Define if compiler implements __FUNCTION__ */
1201#undef HAVE___FUNCTION__
1202
1203/* Define if libc defines __progname */
1204#undef HAVE___PROGNAME
1205
1206/* Fields in struct sockaddr_storage */
1207#undef HAVE___SS_FAMILY_IN_SS
1208
1209/* Define if __va_copy exists */
1210#undef HAVE___VA_COPY
1211
1212/* Define if compiler implements __func__ */
1213#undef HAVE___func__
1214
1215/* Define this if you are using the Heimdal version of Kerberos V5 */
1216#undef HEIMDAL
1217
1218/* Define if you need to use IP address instead of hostname in $DISPLAY */
1219#undef IPADDR_IN_DISPLAY
1220
1221/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1222#undef IPV4_IN_IPV6
1223
1224/* Define if your system choked on IP TOS setting */
1225#undef IP_TOS_IS_BROKEN
1226
1227/* Define if you want Kerberos 5 support */
1228#undef KRB5
1229
1230/* Define if pututxline updates lastlog too */
1231#undef LASTLOG_WRITE_PUTUTXLINE
1232
1233/* Define if you want TCP Wrappers support */
1234#undef LIBWRAP
1235
1236/* Define to whatever link() returns for "not supported" if it doesn't return
1237 EOPNOTSUPP. */
1238#undef LINK_OPNOTSUPP_ERRNO
1239
1240/* Adjust Linux out-of-memory killer */
1241#undef LINUX_OOM_ADJUST
1242
1243/* max value of long long calculated by configure */
1244#undef LLONG_MAX
1245
1246/* min value of long long calculated by configure */
1247#undef LLONG_MIN
1248
1249/* Account locked with pw(1) */
1250#undef LOCKED_PASSWD_PREFIX
1251
1252/* String used in /etc/passwd to denote locked account */
1253#undef LOCKED_PASSWD_STRING
1254
1255/* String used in /etc/passwd to denote locked account */
1256#undef LOCKED_PASSWD_SUBSTR
1257
1258/* Some versions of /bin/login need the TERM supplied on the commandline */
1259#undef LOGIN_NEEDS_TERM
1260
1261/* Some systems need a utmpx entry for /bin/login to work */
1262#undef LOGIN_NEEDS_UTMPX
1263
1264/* Define if your login program cannot handle end of options ("--") */
1265#undef LOGIN_NO_ENDOPT
1266
1267/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1268 from environment and PATH */
1269#undef LOGIN_PROGRAM_FALLBACK
1270
1271/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1272#undef MAIL_DIRECTORY
1273
1274/* Define on *nto-qnx systems */
1275#undef MISSING_FD_MASK
1276
1277/* Define on *nto-qnx systems */
1278#undef MISSING_HOWMANY
1279
1280/* Define on *nto-qnx systems */
1281#undef MISSING_NFDBITS
1282
1283/* Need setpgrp to acquire controlling tty */
1284#undef NEED_SETPGRP
1285
1286/* Define if the concept of ports only accessible to superusers isn't known */
1287#undef NO_IPPORT_RESERVED_CONCEPT
1288
1289/* Define if you don't want to use lastlog in session.c */
1290#undef NO_SSH_LASTLOG
1291
1292/* Define if X11 doesn't support AF_UNIX sockets on that system */
1293#undef NO_X11_UNIX_SOCKETS
1294
1295/* Define if EVP_DigestUpdate returns void */
1296#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1297
1298/* libcrypto includes complete ECC support */
1299#undef OPENSSL_HAS_ECC
1300
1301/* libcrypto is missing AES 192 and 256 bit functions */
1302#undef OPENSSL_LOBOTOMISED_AES
1303
1304/* Define if you want OpenSSL's internally seeded PRNG only */
1305#undef OPENSSL_PRNG_ONLY
1306
1307/* Define to the address where bug reports for this package should be sent. */
1308#undef PACKAGE_BUGREPORT
1309
1310/* Define to the full name of this package. */
1311#undef PACKAGE_NAME
1312
1313/* Define to the full name and version of this package. */
1314#undef PACKAGE_STRING
1315
1316/* Define to the one symbol short name of this package. */
1317#undef PACKAGE_TARNAME
1318
1319/* Define to the home page for this package. */
1320#undef PACKAGE_URL
1321
1322/* Define to the version of this package. */
1323#undef PACKAGE_VERSION
1324
1325/* Define if you are using Solaris-derived PAM which passes pam_messages to
1326 the conversation function with an extra level of indirection */
1327#undef PAM_SUN_CODEBASE
1328
1329/* Work around problematic Linux PAM modules handling of PAM_TTY */
1330#undef PAM_TTY_KLUDGE
1331
1332/* must supply username to passwd */
1333#undef PASSWD_NEEDS_USERNAME
1334
1335/* Port number of PRNGD/EGD random number socket */
1336#undef PRNGD_PORT
1337
1338/* Location of PRNGD/EGD random number socket */
1339#undef PRNGD_SOCKET
1340
1341/* read(1) can return 0 for a non-closed fd */
1342#undef PTY_ZEROREAD
1343
1344/* Sandbox using Darwin sandbox_init(3) */
1345#undef SANDBOX_DARWIN
1346
1347/* no privsep sandboxing */
1348#undef SANDBOX_NULL
1349
1350/* Sandbox using setrlimit(2) */
1351#undef SANDBOX_RLIMIT
1352
1353/* Sandbox using systrace(4) */
1354#undef SANDBOX_SYSTRACE
1355
1356/* Define if your platform breaks doing a seteuid before a setuid */
1357#undef SETEUID_BREAKS_SETUID
1358
1359/* The size of `char', as computed by sizeof. */
1360#undef SIZEOF_CHAR
1361
1362/* The size of `int', as computed by sizeof. */
1363#undef SIZEOF_INT
1364
1365/* The size of `long int', as computed by sizeof. */
1366#undef SIZEOF_LONG_INT
1367
1368/* The size of `long long int', as computed by sizeof. */
1369#undef SIZEOF_LONG_LONG_INT
1370
1371/* The size of `short int', as computed by sizeof. */
1372#undef SIZEOF_SHORT_INT
1373
1374/* Define if you want S/Key support */
1375#undef SKEY
1376
1377/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1378#undef SKEYCHALLENGE_4ARG
1379
1380/* Define as const if snprintf() can declare const char *fmt */
1381#undef SNPRINTF_CONST
1382
1383/* Define to a Set Process Title type if your system is supported by
1384 bsd-setproctitle.c */
1385#undef SPT_TYPE
1386
1387/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1388#undef SSHD_ACQUIRES_CTTY
1389
1390/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1391#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1392
1393/* Use audit debugging module */
1394#undef SSH_AUDIT_EVENTS
1395
1396/* Windows is sensitive to read buffer size */
1397#undef SSH_IOBUFSZ
1398
1399/* non-privileged user for privilege separation */
1400#undef SSH_PRIVSEP_USER
1401
1402/* Use tunnel device compatibility to OpenBSD */
1403#undef SSH_TUN_COMPAT_AF
1404
1405/* Open tunnel devices the FreeBSD way */
1406#undef SSH_TUN_FREEBSD
1407
1408/* Open tunnel devices the Linux tun/tap way */
1409#undef SSH_TUN_LINUX
1410
1411/* No layer 2 tunnel support */
1412#undef SSH_TUN_NO_L2
1413
1414/* Open tunnel devices the OpenBSD way */
1415#undef SSH_TUN_OPENBSD
1416
1417/* Prepend the address family to IP tunnel traffic */
1418#undef SSH_TUN_PREPEND_AF
1419
1420/* Define to 1 if you have the ANSI C header files. */
1421#undef STDC_HEADERS
1422
1423/* Define if you want a different $PATH for the superuser */
1424#undef SUPERUSER_PATH
1425
1426/* syslog_r function is safe to use in in a signal handler */
1427#undef SYSLOG_R_SAFE_IN_SIGHAND
1428
1429/* Support passwords > 8 chars */
1430#undef UNIXWARE_LONG_PASSWORDS
1431
1432/* Specify default $PATH */
1433#undef USER_PATH
1434
1435/* Define this if you want to use libkafs' AFS support */
1436#undef USE_AFS
1437
1438/* Use BSM audit module */
1439#undef USE_BSM_AUDIT
1440
1441/* Use btmp to log bad logins */
1442#undef USE_BTMP
1443
1444/* Use libedit for sftp */
1445#undef USE_LIBEDIT
1446
1447/* Use Linux audit module */
1448#undef USE_LINUX_AUDIT
1449
1450/* Enable OpenSSL engine support */
1451#undef USE_OPENSSL_ENGINE
1452
1453/* Define if you want to enable PAM support */
1454#undef USE_PAM
1455
1456/* Use PIPES instead of a socketpair() */
1457#undef USE_PIPES
1458
1459/* Define if you have Solaris process contracts */
1460#undef USE_SOLARIS_PROCESS_CONTRACTS
1461
1462/* Define if you have Solaris projects */
1463#undef USE_SOLARIS_PROJECTS
1464
1465/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1466#undef WITH_ABBREV_NO_TTY
1467
1468/* Define if you want to enable AIX4's authenticate function */
1469#undef WITH_AIXAUTHENTICATE
1470
1471/* Define if you have/want arrays (cluster-wide session managment, not C
1472 arrays) */
1473#undef WITH_IRIX_ARRAY
1474
1475/* Define if you want IRIX audit trails */
1476#undef WITH_IRIX_AUDIT
1477
1478/* Define if you want IRIX kernel jobs */
1479#undef WITH_IRIX_JOBS
1480
1481/* Define if you want IRIX project management */
1482#undef WITH_IRIX_PROJECT
1483
1484/* Define if you want SELinux support. */
1485#undef WITH_SELINUX
1486
1487/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
1488 significant byte first (like Motorola and SPARC, unlike Intel). */
1489#if defined AC_APPLE_UNIVERSAL_BUILD
1490# if defined __BIG_ENDIAN__
1491# define WORDS_BIGENDIAN 1
1492# endif
1493#else
1494# ifndef WORDS_BIGENDIAN
1495# undef WORDS_BIGENDIAN
1496# endif
1497#endif
1498
1499/* Define if xauth is found in your path */
1500#undef XAUTH_PATH
1501
1502/* Number of bits in a file offset, on hosts where this is settable. */
1503#undef _FILE_OFFSET_BITS
1504
1505/* Define for large files, on AIX-style hosts. */
1506#undef _LARGE_FILES
1507
1508/* log for bad login attempts */
1509#undef _PATH_BTMP
1510
1511/* Full path of your "passwd" program */
1512#undef _PATH_PASSWD_PROG
1513
1514/* Specify location of ssh.pid */
1515#undef _PATH_SSH_PIDDIR
1516
1517/* Define if we don't have struct __res_state in resolv.h */
1518#undef __res_state
1519
1520/* Define to `__inline__' or `__inline' if that's what the C compiler
1521 calls it, or to nothing if 'inline' is not supported under any name. */
1522#ifndef __cplusplus
1523#undef inline
1524#endif
1525
1526/* type to use in place of socklen_t if not defined */
1527#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..43c437263
--- /dev/null
+++ b/configure
@@ -0,0 +1,17535 @@
1#! /bin/sh
2# From configure.ac Revision: 1.480 .
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
608TEST_SSH_IPV6
609piddir
610user_path
611mansubdir
612MANTYPE
613XAUTH_PATH
614STRIP_OPT
615xauth_path
616PRIVSEP_PATH
617KRB5CONF
618SSHDLIBS
619SSHLIBS
620SSH_PRIVSEP_USER
621COMMENT_OUT_ECC
622TEST_SSH_ECC
623TEST_SSH_SHA256
624LIBEDIT
625PKGCONFIG
626LD
627PATH_PASSWD_PROG
628LOGIN_PROGRAM_FALLBACK
629STARTUP_SCRIPT_SHELL
630MAKE_PACKAGE_SUPPORTED
631PATH_USERADD_PROG
632PATH_GROUPADD_PROG
633MANFMT
634TEST_SHELL
635MANDOC
636NROFF
637GROFF
638SH
639TEST_MINUS_S_SH
640ENT
641SED
642PERL
643KILL
644CAT
645AR
646INSTALL_DATA
647INSTALL_SCRIPT
648INSTALL_PROGRAM
649RANLIB
650AWK
651EGREP
652GREP
653CPP
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
707ac_subst_files=''
708ac_user_opts='
709enable_option_checking
710enable_largefile
711with_stackprotect
712with_rpath
713with_cflags
714with_cppflags
715with_ldflags
716with_libs
717with_Werror
718with_solaris_contracts
719with_solaris_projects
720with_osfsia
721with_zlib
722with_zlib_version_check
723with_skey
724with_tcp_wrappers
725with_libedit
726with_audit
727with_ssl_dir
728with_openssl_header_check
729with_ssl_engine
730with_prngd_port
731with_prngd_socket
732with_pam
733with_privsep_user
734with_sandbox
735with_selinux
736with_kerberos5
737with_privsep_path
738with_xauth
739enable_strip
740with_maildir
741with_mantype
742with_md5_passwords
743with_shadow
744with_ipaddr_display
745enable_etc_default_login
746with_default_path
747with_superuser_path
748with_4in6
749with_bsd_auth
750with_pid_dir
751enable_lastlog
752enable_utmp
753enable_utmpx
754enable_wtmp
755enable_wtmpx
756enable_libutil
757enable_pututline
758enable_pututxline
759with_lastlog
760'
761 ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767LIBS
768CPPFLAGS
769CPP'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884"enable_$ac_useropt"
885"*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114"with_$ac_useropt"
1115"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used" >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277else
1278 ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365_ACEOF
1366
1367 cat <<\_ACEOF
1368
1369System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372_ACEOF
1373fi
1374
1375if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-largefile omit support for large files
1386 --disable-strip Disable calling strip(1) on install
1387 --disable-etc-default-login Disable using PATH from /etc/default/login no
1388 --disable-lastlog disable use of lastlog even if detected no
1389 --disable-utmp disable use of utmp even if detected no
1390 --disable-utmpx disable use of utmpx even if detected no
1391 --disable-wtmp disable use of wtmp even if detected no
1392 --disable-wtmpx disable use of wtmpx even if detected no
1393 --disable-libutil disable use of libutil (login() etc.) no
1394 --disable-pututline disable use of pututline() etc. (uwtmp) no
1395 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1396
1397Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --without-stackprotect Don't use compiler's stack protection
1401 --without-rpath Disable auto-added -R linker paths
1402 --with-cflags Specify additional flags to pass to compiler
1403 --with-cppflags Specify additional flags to pass to preprocessor
1404 --with-ldflags Specify additional flags to pass to linker
1405 --with-libs Specify additional libraries to link with
1406 --with-Werror Build main code with -Werror
1407 --with-solaris-contracts Enable Solaris process contracts (experimental)
1408 --with-solaris-projects Enable Solaris projects (experimental)
1409 --with-osfsia Enable Digital Unix SIA
1410 --with-zlib=PATH Use zlib in PATH
1411 --without-zlib-version-check Disable zlib version check
1412 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1413 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1414 --with-libedit[=PATH] Enable libedit support for sftp
1415 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1416 --with-ssl-dir=PATH Specify path to OpenSSL installation
1417 --without-openssl-header-check Disable OpenSSL version consistency check
1418 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1419 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1420 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1421 --with-pam Enable PAM support
1422 --with-privsep-user=user Specify non-privileged user for privilege separation
1423 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace)
1424 --with-selinux Enable SELinux support
1425 --with-kerberos5=PATH Enable Kerberos 5 support
1426 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1427 --with-xauth=PATH Specify path to xauth program
1428 --with-maildir=/path/to/mail Specify your system mail directory
1429 --with-mantype=man|cat|doc Set man page type
1430 --with-md5-passwords Enable use of MD5 passwords
1431 --without-shadow Disable shadow password support
1432 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1433 --with-default-path= Specify default \$PATH environment for server
1434 --with-superuser-path= Specify different path for super-user
1435 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1436 --with-bsd-auth Enable BSD auth support
1437 --with-pid-dir=PATH Specify location of ssh.pid file
1438 --with-lastlog=FILE|DIR specify lastlog location common locations
1439
1440Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CPP C preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <openssh-unix-dev@mindrot.org>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515 cat <<\_ACEOF
1516OpenSSH configure Portable
1517generated by GNU Autoconf 2.68
1518
1519Copyright (C) 2010 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523 exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557else
1558 $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_compile
1567
1568# ac_fn_c_try_run LINENO
1569# ----------------------
1570# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1571# that executables *can* be run.
1572ac_fn_c_try_run ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_link"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>&5
1583 ac_status=$?
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1586 { { case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_try") 2>&5
1593 ac_status=$?
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; }; }; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: program exited with status $ac_status" >&5
1599 $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=$ac_status
1603fi
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_run
1609
1610# ac_fn_c_try_cpp LINENO
1611# ----------------------
1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_cpp ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_cpp
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658else
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665 eval "$3=yes"
1666else
1667 eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1679# ---------------------------------------------
1680# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1681# accordingly.
1682ac_fn_c_check_decl ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 as_decl_name=`echo $2|sed 's/ *(.*//'`
1686 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1688$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1689if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1691else
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695int
1696main ()
1697{
1698#ifndef $as_decl_name
1699#ifdef __cplusplus
1700 (void) $as_decl_use;
1701#else
1702 (void) $as_decl_name;
1703#endif
1704#endif
1705
1706 ;
1707 return 0;
1708}
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712else
1713 eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722} # ac_fn_c_check_decl
1723
1724# ac_fn_c_try_link LINENO
1725# -----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_link ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_link
1769
1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773# the include files in INCLUDES and setting the cache variable VAR
1774# accordingly.
1775ac_fn_c_check_header_mongrel ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787else
1788 # Is the header compilable?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790$as_echo_n "checking $2 usability... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798else
1799 ac_header_compiler=no
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803$as_echo "$ac_header_compiler" >&6; }
1804
1805# Is the header present?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807$as_echo_n "checking $2 presence... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814else
1815 ac_header_preproc=no
1816fi
1817rm -f conftest.err conftest.i conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819$as_echo "$ac_header_preproc" >&6; }
1820
1821# So? What about this header?
1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840( $as_echo "## ------------------------------------------- ##
1841## Report this to openssh-unix-dev@mindrot.org ##
1842## ------------------------------------------- ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1844 ;;
1845esac
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850else
1851 eval "$3=\$ac_header_compiler"
1852fi
1853eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_header_mongrel
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879 which can conflict with char $2 (); below.
1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881 <limits.h> exists even on freestanding compilers. */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892 Use char because int might match the return type of a GCC
1893 builtin and then its argument prototype would still apply. */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914 eval "$3=yes"
1915else
1916 eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1929# -------------------------------------------
1930# Tests whether TYPE exists after having included INCLUDES, setting cache
1931# variable VAR accordingly.
1932ac_fn_c_check_type ()
1933{
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939else
1940 eval "$3=no"
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$4
1944int
1945main ()
1946{
1947if (sizeof ($2))
1948 return 0;
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960if (sizeof (($2)))
1961 return 0;
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967
1968else
1969 eval "$3=yes"
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974fi
1975eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977$as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980} # ac_fn_c_check_type
1981
1982# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1983# --------------------------------------------
1984# Tries to find the compile-time value of EXPR in a program that includes
1985# INCLUDES, setting VAR accordingly. Returns whether the value could be
1986# computed
1987ac_fn_c_compute_int ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if test "$cross_compiling" = yes; then
1991 # Depending upon the size, compute the lo and hi bounds.
1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995int
1996main ()
1997{
1998static int test_array [1 - 2 * !(($2) >= 0)];
1999test_array [0] = 0
2000
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_lo=0 ac_mid=0
2007 while :; do
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$4
2011int
2012main ()
2013{
2014static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015test_array [0] = 0
2016
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_hi=$ac_mid; break
2023else
2024 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2025 if test $ac_lo -le $ac_mid; then
2026 ac_lo= ac_hi=
2027 break
2028 fi
2029 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 done
2033else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h. */
2036$4
2037int
2038main ()
2039{
2040static int test_array [1 - 2 * !(($2) < 0)];
2041test_array [0] = 0
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_hi=-1 ac_mid=-1
2049 while :; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h. */
2052$4
2053int
2054main ()
2055{
2056static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2057test_array [0] = 0
2058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_lo=$ac_mid; break
2065else
2066 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067 if test $ac_mid -le $ac_hi; then
2068 ac_lo= ac_hi=
2069 break
2070 fi
2071 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075else
2076 ac_lo= ac_hi=
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081# Binary search between lo and hi bounds.
2082while test "x$ac_lo" != "x$ac_hi"; do
2083 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091test_array [0] = 0
2092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=$ac_mid
2099else
2100 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103done
2104case $ac_lo in #((
2105?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2106'') ac_retval=1 ;;
2107esac
2108 else
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h. */
2111$4
2112static long int longval () { return $2; }
2113static unsigned long int ulongval () { return $2; }
2114#include <stdio.h>
2115#include <stdlib.h>
2116int
2117main ()
2118{
2119
2120 FILE *f = fopen ("conftest.val", "w");
2121 if (! f)
2122 return 1;
2123 if (($2) < 0)
2124 {
2125 long int i = longval ();
2126 if (i != ($2))
2127 return 1;
2128 fprintf (f, "%ld", i);
2129 }
2130 else
2131 {
2132 unsigned long int i = ulongval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%lu", i);
2136 }
2137 /* Do not output a trailing newline, as this causes \r\n confusion
2138 on some platforms. */
2139 return ferror (f) || fclose (f) != 0;
2140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_run "$LINENO"; then :
2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147else
2148 ac_retval=1
2149fi
2150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151 conftest.$ac_objext conftest.beam conftest.$ac_ext
2152rm -f conftest.val
2153
2154 fi
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2157
2158} # ac_fn_c_compute_int
2159
2160# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2161# ----------------------------------------------------
2162# Tries to find if the field MEMBER exists in type AGGR, after including
2163# INCLUDES, setting cache variable VAR accordingly.
2164ac_fn_c_check_member ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2168$as_echo_n "checking for $2.$3... " >&6; }
2169if eval \${$4+:} false; then :
2170 $as_echo_n "(cached) " >&6
2171else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$5
2175int
2176main ()
2177{
2178static $2 ac_aggr;
2179if (ac_aggr.$3)
2180return 0;
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 eval "$4=yes"
2187else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$5
2191int
2192main ()
2193{
2194static $2 ac_aggr;
2195if (sizeof ac_aggr.$3)
2196return 0;
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202 eval "$4=yes"
2203else
2204 eval "$4=no"
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210eval ac_res=\$$4
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215} # ac_fn_c_check_member
2216cat >config.log <<_ACEOF
2217This file contains any messages produced by compilers while
2218running configure, to aid debugging if configure makes a mistake.
2219
2220It was created by OpenSSH $as_me Portable, which was
2221generated by GNU Autoconf 2.68. Invocation command line was
2222
2223 $ $0 $@
2224
2225_ACEOF
2226exec 5>>config.log
2227{
2228cat <<_ASUNAME
2229## --------- ##
2230## Platform. ##
2231## --------- ##
2232
2233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2241
2242/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2243/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2246/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2247/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2248/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249
2250_ASUNAME
2251
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 $as_echo "PATH: $as_dir"
2258 done
2259IFS=$as_save_IFS
2260
2261} >&5
2262
2263cat >&5 <<_ACEOF
2264
2265
2266## ----------- ##
2267## Core tests. ##
2268## ----------- ##
2269
2270_ACEOF
2271
2272
2273# Keep a trace of the command line.
2274# Strip out --no-create and --no-recursion so they do not pile up.
2275# Strip out --silent because we don't want to record it for future runs.
2276# Also quote any args containing shell meta-characters.
2277# Make two passes to allow for proper duplicate-argument suppression.
2278ac_configure_args=
2279ac_configure_args0=
2280ac_configure_args1=
2281ac_must_keep_next=false
2282for ac_pass in 1 2
2283do
2284 for ac_arg
2285 do
2286 case $ac_arg in
2287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289 | -silent | --silent | --silen | --sile | --sil)
2290 continue ;;
2291 *\'*)
2292 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293 esac
2294 case $ac_pass in
2295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 2)
2297 as_fn_append ac_configure_args1 " '$ac_arg'"
2298 if test $ac_must_keep_next = true; then
2299 ac_must_keep_next=false # Got value, back to normal.
2300 else
2301 case $ac_arg in
2302 *=* | --config-cache | -C | -disable-* | --disable-* \
2303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305 | -with-* | --with-* | -without-* | --without-* | --x)
2306 case "$ac_configure_args0 " in
2307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308 esac
2309 ;;
2310 -* ) ac_must_keep_next=true ;;
2311 esac
2312 fi
2313 as_fn_append ac_configure_args " '$ac_arg'"
2314 ;;
2315 esac
2316 done
2317done
2318{ ac_configure_args0=; unset ac_configure_args0;}
2319{ ac_configure_args1=; unset ac_configure_args1;}
2320
2321# When interrupted or exit'd, cleanup temporary files, and complete
2322# config.log. We remove comments because anyway the quotes in there
2323# would cause problems or look ugly.
2324# WARNING: Use '\'' to represent an apostrophe within the trap.
2325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326trap 'exit_status=$?
2327 # Save into config.log some information that might help in debugging.
2328 {
2329 echo
2330
2331 $as_echo "## ---------------- ##
2332## Cache variables. ##
2333## ---------------- ##"
2334 echo
2335 # The following way of writing the cache mishandles newlines in values,
2336(
2337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in #(
2340 *${as_nl}*)
2341 case $ac_var in #(
2342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344 esac
2345 case $ac_var in #(
2346 _ | IFS | as_nl) ;; #(
2347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348 *) { eval $ac_var=; unset $ac_var;} ;;
2349 esac ;;
2350 esac
2351 done
2352 (set) 2>&1 |
2353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354 *${as_nl}ac_space=\ *)
2355 sed -n \
2356 "s/'\''/'\''\\\\'\'''\''/g;
2357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358 ;; #(
2359 *)
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 ;;
2362 esac |
2363 sort
2364)
2365 echo
2366
2367 $as_echo "## ----------------- ##
2368## Output variables. ##
2369## ----------------- ##"
2370 echo
2371 for ac_var in $ac_subst_vars
2372 do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 esac
2377 $as_echo "$ac_var='\''$ac_val'\''"
2378 done | sort
2379 echo
2380
2381 if test -n "$ac_subst_files"; then
2382 $as_echo "## ------------------- ##
2383## File substitutions. ##
2384## ------------------- ##"
2385 echo
2386 for ac_var in $ac_subst_files
2387 do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in
2390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391 esac
2392 $as_echo "$ac_var='\''$ac_val'\''"
2393 done | sort
2394 echo
2395 fi
2396
2397 if test -s confdefs.h; then
2398 $as_echo "## ----------- ##
2399## confdefs.h. ##
2400## ----------- ##"
2401 echo
2402 cat confdefs.h
2403 echo
2404 fi
2405 test "$ac_signal" != 0 &&
2406 $as_echo "$as_me: caught signal $ac_signal"
2407 $as_echo "$as_me: exit $exit_status"
2408 } >&5
2409 rm -f core *.core core.conftest.* &&
2410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411 exit $exit_status
2412' 0
2413for ac_signal in 1 2 13 15; do
2414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415done
2416ac_signal=0
2417
2418# confdefs.h avoids OS command line length limits that DEFS can exceed.
2419rm -f -r conftest* confdefs.h
2420
2421$as_echo "/* confdefs.h */" > confdefs.h
2422
2423# Predefined preprocessor variables.
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_NAME "$PACKAGE_NAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_VERSION "$PACKAGE_VERSION"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_STRING "$PACKAGE_STRING"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_URL "$PACKAGE_URL"
2447_ACEOF
2448
2449
2450# Let the site file select an alternate cache file if it wants to.
2451# Prefer an explicitly selected file to automatically selected ones.
2452ac_site_file1=NONE
2453ac_site_file2=NONE
2454if test -n "$CONFIG_SITE"; then
2455 # We do not want a PATH search for config.site.
2456 case $CONFIG_SITE in #((
2457 -*) ac_site_file1=./$CONFIG_SITE;;
2458 */*) ac_site_file1=$CONFIG_SITE;;
2459 *) ac_site_file1=./$CONFIG_SITE;;
2460 esac
2461elif test "x$prefix" != xNONE; then
2462 ac_site_file1=$prefix/share/config.site
2463 ac_site_file2=$prefix/etc/config.site
2464else
2465 ac_site_file1=$ac_default_prefix/share/config.site
2466 ac_site_file2=$ac_default_prefix/etc/config.site
2467fi
2468for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469do
2470 test "x$ac_site_file" = xNONE && continue
2471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474 sed 's/^/| /' "$ac_site_file" >&5
2475 . "$ac_site_file" \
2476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478as_fn_error $? "failed to load site script $ac_site_file
2479See \`config.log' for more details" "$LINENO" 5; }
2480 fi
2481done
2482
2483if test -r "$cache_file"; then
2484 # Some versions of bash will fail to source /dev/null (special files
2485 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488$as_echo "$as_me: loading cache $cache_file" >&6;}
2489 case $cache_file in
2490 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491 *) . "./$cache_file";;
2492 esac
2493 fi
2494else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496$as_echo "$as_me: creating cache $cache_file" >&6;}
2497 >$cache_file
2498fi
2499
2500# Check that the precious variables saved in the cache have kept the same
2501# value.
2502ac_cache_corrupted=false
2503for ac_var in $ac_precious_vars; do
2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505 eval ac_new_set=\$ac_env_${ac_var}_set
2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507 eval ac_new_val=\$ac_env_${ac_var}_value
2508 case $ac_old_set,$ac_new_set in
2509 set,)
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512 ac_cache_corrupted=: ;;
2513 ,set)
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2517 ,);;
2518 *)
2519 if test "x$ac_old_val" != "x$ac_new_val"; then
2520 # differences in whitespace do not lead to failure.
2521 ac_old_val_w=`echo x $ac_old_val`
2522 ac_new_val_w=`echo x $ac_new_val`
2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526 ac_cache_corrupted=:
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530 eval $ac_var=\$ac_old_val
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2533$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2535$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2536 fi;;
2537 esac
2538 # Pass precious variables to config.status.
2539 if test "$ac_new_set" = set; then
2540 case $ac_new_val in
2541 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542 *) ac_arg=$ac_var=$ac_new_val ;;
2543 esac
2544 case " $ac_configure_args " in
2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 esac
2548 fi
2549done
2550if $ac_cache_corrupted; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556fi
2557## -------------------- ##
2558## Main body of script. ##
2559## -------------------- ##
2560
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577ac_config_headers="$ac_config_headers config.h"
2578
2579ac_ext=c
2580ac_cpp='$CPP $CPPFLAGS'
2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}gcc; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if ${ac_cv_prog_CC+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606done
2607 done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2615$as_echo "$CC" >&6; }
2616else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622fi
2623if test -z "$ac_cv_prog_CC"; then
2624 ac_ct_CC=$CC
2625 # Extract the first word of "gcc", so it can be a program name with args.
2626set dummy gcc; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if ${ac_cv_prog_ac_ct_CC+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631else
2632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_ac_ct_CC="gcc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646done
2647 done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653if test -n "$ac_ct_CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2655$as_echo "$ac_ct_CC" >&6; }
2656else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665yes:)
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668ac_tool_warned=yes ;;
2669esac
2670 CC=$ac_ct_CC
2671 fi
2672else
2673 CC="$ac_cv_prog_CC"
2674fi
2675
2676if test -z "$CC"; then
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2679set dummy ${ac_tool_prefix}cc; ac_word=$2
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if ${ac_cv_prog_CC+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="${ac_tool_prefix}cc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700 done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708$as_echo "$CC" >&6; }
2709else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714
2715 fi
2716fi
2717if test -z "$CC"; then
2718 # Extract the first word of "cc", so it can be a program name with args.
2719set dummy cc; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728 ac_prog_rejected=no
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2737 ac_prog_rejected=yes
2738 continue
2739 fi
2740 ac_cv_prog_CC="cc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745 done
2746IFS=$as_save_IFS
2747
2748if test $ac_prog_rejected = yes; then
2749 # We found a bogon in the path, so make sure we never use it.
2750 set dummy $ac_cv_prog_CC
2751 shift
2752 if test $# != 0; then
2753 # We chose a different compiler from the bogus one.
2754 # However, it has the same basename, so the bogon will be chosen
2755 # first if we set CC to just the basename; use the full file name.
2756 shift
2757 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2758 fi
2759fi
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772fi
2773if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in cl.exe
2776 do
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807$as_echo "$CC" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814 test -n "$CC" && break
2815 done
2816fi
2817if test -z "$CC"; then
2818 ac_ct_CC=$CC
2819 for ac_prog in cl.exe
2820do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822set dummy $ac_prog; ac_word=$2
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if ${ac_cv_prog_ac_ct_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CC="$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843 done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851$as_echo "$ac_ct_CC" >&6; }
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858 test -n "$ac_ct_CC" && break
2859done
2860
2861 if test "x$ac_ct_CC" = x; then
2862 CC=""
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870 CC=$ac_ct_CC
2871 fi
2872fi
2873
2874fi
2875
2876
2877test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error $? "no acceptable C compiler found in \$PATH
2880See \`config.log' for more details" "$LINENO" 5; }
2881
2882# Provide some information about the compiler.
2883$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2884set X $ac_compile
2885ac_compiler=$2
2886for ac_option in --version -v -V -qversion; do
2887 { { ac_try="$ac_compiler $ac_option >&5"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893$as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2895 ac_status=$?
2896 if test -s conftest.err; then
2897 sed '10a\
2898... rest of stderr output deleted ...
2899 10q' conftest.err >conftest.er1
2900 cat conftest.er1 >&5
2901 fi
2902 rm -f conftest.er1 conftest.err
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }
2905done
2906
2907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h. */
2909
2910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918ac_clean_files_save=$ac_clean_files
2919ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2920# Try to create an executable without -o first, disregard a.out.
2921# It will help us diagnose broken compilers, and finding out an intuition
2922# of exeext.
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2924$as_echo_n "checking whether the C compiler works... " >&6; }
2925ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2926
2927# The possible output files:
2928ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2929
2930ac_rmfiles=
2931for ac_file in $ac_files
2932do
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936 esac
2937done
2938rm -f $ac_rmfiles
2939
2940if { { ac_try="$ac_link_default"
2941case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946$as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link_default") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }; then :
2951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2952# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2953# in a Makefile. We should not override ac_cv_exeext if it was cached,
2954# so that the user can short-circuit this test for compilers unknown to
2955# Autoconf.
2956for ac_file in $ac_files ''
2957do
2958 test -f "$ac_file" || continue
2959 case $ac_file in
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2961 ;;
2962 [ab].out )
2963 # We found the default executable, but exeext='' is most
2964 # certainly right.
2965 break;;
2966 *.* )
2967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968 then :; else
2969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 fi
2971 # We set ac_cv_exeext here because the later test for it is not
2972 # safe: cross compilers may not add the suffix if given an `-o'
2973 # argument, so we may need to know it at that point already.
2974 # Even if this section looks crufty: it has the advantage of
2975 # actually working.
2976 break;;
2977 * )
2978 break;;
2979 esac
2980done
2981test "$ac_cv_exeext" = no && ac_cv_exeext=
2982
2983else
2984 ac_file=''
2985fi
2986if test -z "$ac_file"; then :
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989$as_echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994as_fn_error 77 "C compiler cannot create executables
2995See \`config.log' for more details" "$LINENO" 5; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3001$as_echo_n "checking for C compiler default output file name... " >&6; }
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3003$as_echo "$ac_file" >&6; }
3004ac_exeext=$ac_cv_exeext
3005
3006rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3007ac_clean_files=$ac_clean_files_save
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3009$as_echo_n "checking for suffix of executables... " >&6; }
3010if { { ac_try="$ac_link"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_link") 2>&5
3018 ac_status=$?
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3022# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3023# work properly (i.e., refer to `conftest.exe'), while it won't with
3024# `rm'.
3025for ac_file in conftest.exe conftest conftest.*; do
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3029 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 break;;
3031 * ) break;;
3032 esac
3033done
3034else
3035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3038See \`config.log' for more details" "$LINENO" 5; }
3039fi
3040rm -f conftest conftest$ac_cv_exeext
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3042$as_echo "$ac_cv_exeext" >&6; }
3043
3044rm -f conftest.$ac_ext
3045EXEEXT=$ac_cv_exeext
3046ac_exeext=$EXEEXT
3047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h. */
3049#include <stdio.h>
3050int
3051main ()
3052{
3053FILE *f = fopen ("conftest.out", "w");
3054 return ferror (f) || fclose (f) != 0;
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060ac_clean_files="$ac_clean_files conftest.out"
3061# Check that the compiler produces executables we can run. If not, either
3062# the compiler is broken, or we cross compile.
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3064$as_echo_n "checking whether we are cross compiling... " >&6; }
3065if test "$cross_compiling" != yes; then
3066 { { ac_try="$ac_link"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3077 if { ac_try='./conftest$ac_cv_exeext'
3078 { { case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083$as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_try") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; }; then
3088 cross_compiling=no
3089 else
3090 if test "$cross_compiling" = maybe; then
3091 cross_compiling=yes
3092 else
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error $? "cannot run C compiled programs.
3096If you meant to cross compile, use \`--host'.
3097See \`config.log' for more details" "$LINENO" 5; }
3098 fi
3099 fi
3100fi
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3102$as_echo "$cross_compiling" >&6; }
3103
3104rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3105ac_clean_files=$ac_clean_files_save
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3107$as_echo_n "checking for suffix of object files... " >&6; }
3108if ${ac_cv_objext+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110else
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.o conftest.obj
3123if { { ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129$as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_compile") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 for ac_file in conftest.o conftest.obj conftest.*; do
3135 test -f "$ac_file" || continue;
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3139 break;;
3140 esac
3141done
3142else
3143 $as_echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148as_fn_error $? "cannot compute suffix of object files: cannot compile
3149See \`config.log' for more details" "$LINENO" 5; }
3150fi
3151rm -f conftest.$ac_cv_objext conftest.$ac_ext
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3154$as_echo "$ac_cv_objext" >&6; }
3155OBJEXT=$ac_cv_objext
3156ac_objext=$OBJEXT
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3158$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3159if ${ac_cv_c_compiler_gnu+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161else
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168#ifndef __GNUC__
3169 choke me
3170#endif
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176if ac_fn_c_try_compile "$LINENO"; then :
3177 ac_compiler_gnu=yes
3178else
3179 ac_compiler_gnu=no
3180fi
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183
3184fi
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3186$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3187if test $ac_compiler_gnu = yes; then
3188 GCC=yes
3189else
3190 GCC=
3191fi
3192ac_test_CFLAGS=${CFLAGS+set}
3193ac_save_CFLAGS=$CFLAGS
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3195$as_echo_n "checking whether $CC accepts -g... " >&6; }
3196if ${ac_cv_prog_cc_g+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 ac_save_c_werror_flag=$ac_c_werror_flag
3200 ac_c_werror_flag=yes
3201 ac_cv_prog_cc_g=no
3202 CFLAGS="-g"
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_cv_prog_cc_g=yes
3216else
3217 CFLAGS=""
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229if ac_fn_c_try_compile "$LINENO"; then :
3230
3231else
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3233 CFLAGS="-g"
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h. */
3236
3237int
3238main ()
3239{
3240
3241 ;
3242 return 0;
3243}
3244_ACEOF
3245if ac_fn_c_try_compile "$LINENO"; then :
3246 ac_cv_prog_cc_g=yes
3247fi
3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249fi
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3256$as_echo "$ac_cv_prog_cc_g" >&6; }
3257if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3261 CFLAGS="-g -O2"
3262 else
3263 CFLAGS="-g"
3264 fi
3265else
3266 if test "$GCC" = yes; then
3267 CFLAGS="-O2"
3268 else
3269 CFLAGS=
3270 fi
3271fi
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3273$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3274if ${ac_cv_prog_cc_c89+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276else
3277 ac_cv_prog_cc_c89=no
3278ac_save_CC=$CC
3279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281#include <stdarg.h>
3282#include <stdio.h>
3283#include <sys/types.h>
3284#include <sys/stat.h>
3285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3286struct buf { int x; };
3287FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288static char *e (p, i)
3289 char **p;
3290 int i;
3291{
3292 return p[i];
3293}
3294static char *f (char * (*g) (char **, int), char **p, ...)
3295{
3296 char *s;
3297 va_list v;
3298 va_start (v,p);
3299 s = g (p, va_arg (v,int));
3300 va_end (v);
3301 return s;
3302}
3303
3304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3305 function prototypes and stuff, but not '\xHH' hex character constants.
3306 These don't provoke an error unfortunately, instead are silently treated
3307 as 'x'. The following induces an error, until -std is added to get
3308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3309 array size at least. It's necessary to write '\x00'==0 to get something
3310 that's true only with -std. */
3311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
3313/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314 inside strings and character constants. */
3315#define FOO(x) 'x'
3316int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
3318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334do
3335 CC="$ac_save_CC $ac_arg"
3336 if ac_fn_c_try_compile "$LINENO"; then :
3337 ac_cv_prog_cc_c89=$ac_arg
3338fi
3339rm -f core conftest.err conftest.$ac_objext
3340 test "x$ac_cv_prog_cc_c89" != "xno" && break
3341done
3342rm -f conftest.$ac_ext
3343CC=$ac_save_CC
3344
3345fi
3346# AC_CACHE_VAL
3347case "x$ac_cv_prog_cc_c89" in
3348 x)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3350$as_echo "none needed" >&6; } ;;
3351 xno)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3353$as_echo "unsupported" >&6; } ;;
3354 *)
3355 CC="$CC $ac_cv_prog_cc_c89"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3357$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3358esac
3359if test "x$ac_cv_prog_cc_c89" != xno; then :
3360
3361fi
3362
3363ac_ext=c
3364ac_cpp='$CPP $CPPFLAGS'
3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368
3369ac_aux_dir=
3370for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3371 if test -f "$ac_dir/install-sh"; then
3372 ac_aux_dir=$ac_dir
3373 ac_install_sh="$ac_aux_dir/install-sh -c"
3374 break
3375 elif test -f "$ac_dir/install.sh"; then
3376 ac_aux_dir=$ac_dir
3377 ac_install_sh="$ac_aux_dir/install.sh -c"
3378 break
3379 elif test -f "$ac_dir/shtool"; then
3380 ac_aux_dir=$ac_dir
3381 ac_install_sh="$ac_aux_dir/shtool install -c"
3382 break
3383 fi
3384done
3385if test -z "$ac_aux_dir"; then
3386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3387fi
3388
3389# These three variables are undocumented and unsupported,
3390# and are intended to be withdrawn in a future Autoconf release.
3391# They can cause serious problems if a builder's source tree is in a directory
3392# whose full name contains unusual characters.
3393ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3394ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3395ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3396
3397
3398# Make sure we can run config.sub.
3399$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3403$as_echo_n "checking build system type... " >&6; }
3404if ${ac_cv_build+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406else
3407 ac_build_alias=$build_alias
3408test "x$ac_build_alias" = x &&
3409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3410test "x$ac_build_alias" = x &&
3411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3412ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3414
3415fi
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3417$as_echo "$ac_cv_build" >&6; }
3418case $ac_cv_build in
3419*-*-*) ;;
3420*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3421esac
3422build=$ac_cv_build
3423ac_save_IFS=$IFS; IFS='-'
3424set x $ac_cv_build
3425shift
3426build_cpu=$1
3427build_vendor=$2
3428shift; shift
3429# Remember, the first character of IFS is used to create $*,
3430# except with old shells:
3431build_os=$*
3432IFS=$ac_save_IFS
3433case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3434
3435
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3437$as_echo_n "checking host system type... " >&6; }
3438if ${ac_cv_host+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440else
3441 if test "x$host_alias" = x; then
3442 ac_cv_host=$ac_cv_build
3443else
3444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3446fi
3447
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3450$as_echo "$ac_cv_host" >&6; }
3451case $ac_cv_host in
3452*-*-*) ;;
3453*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3454esac
3455host=$ac_cv_host
3456ac_save_IFS=$IFS; IFS='-'
3457set x $ac_cv_host
3458shift
3459host_cpu=$1
3460host_vendor=$2
3461shift; shift
3462# Remember, the first character of IFS is used to create $*,
3463# except with old shells:
3464host_os=$*
3465IFS=$ac_save_IFS
3466case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3467
3468
3469
3470ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3476$as_echo_n "checking how to run the C preprocessor... " >&6; }
3477# On Suns, sometimes $CPP names a directory.
3478if test -n "$CPP" && test -d "$CPP"; then
3479 CPP=
3480fi
3481if test -z "$CPP"; then
3482 if ${ac_cv_prog_CPP+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484else
3485 # Double quotes because CPP needs to be expanded
3486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3487 do
3488 ac_preproc_ok=false
3489for ac_c_preproc_warn_flag in '' yes
3490do
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494 # <limits.h> exists even on freestanding compilers.
3495 # On the NeXT, cc -E runs the code through the compiler's parser,
3496 # not just through cpp. "Syntax error" is here to catch this case.
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h. */
3499#ifdef __STDC__
3500# include <limits.h>
3501#else
3502# include <assert.h>
3503#endif
3504 Syntax error
3505_ACEOF
3506if ac_fn_c_try_cpp "$LINENO"; then :
3507
3508else
3509 # Broken: fails on valid input.
3510continue
3511fi
3512rm -f conftest.err conftest.i conftest.$ac_ext
3513
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h. */
3518#include <ac_nonexistent.h>
3519_ACEOF
3520if ac_fn_c_try_cpp "$LINENO"; then :
3521 # Broken: success on invalid input.
3522continue
3523else
3524 # Passes both tests.
3525ac_preproc_ok=:
3526break
3527fi
3528rm -f conftest.err conftest.i conftest.$ac_ext
3529
3530done
3531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532rm -f conftest.i conftest.err conftest.$ac_ext
3533if $ac_preproc_ok; then :
3534 break
3535fi
3536
3537 done
3538 ac_cv_prog_CPP=$CPP
3539
3540fi
3541 CPP=$ac_cv_prog_CPP
3542else
3543 ac_cv_prog_CPP=$CPP
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3546$as_echo "$CPP" >&6; }
3547ac_preproc_ok=false
3548for ac_c_preproc_warn_flag in '' yes
3549do
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h. */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563 Syntax error
3564_ACEOF
3565if ac_fn_c_try_cpp "$LINENO"; then :
3566
3567else
3568 # Broken: fails on valid input.
3569continue
3570fi
3571rm -f conftest.err conftest.i conftest.$ac_ext
3572
3573 # OK, works on sane cases. Now check whether nonexistent headers
3574 # can be detected and how.
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577#include <ac_nonexistent.h>
3578_ACEOF
3579if ac_fn_c_try_cpp "$LINENO"; then :
3580 # Broken: success on invalid input.
3581continue
3582else
3583 # Passes both tests.
3584ac_preproc_ok=:
3585break
3586fi
3587rm -f conftest.err conftest.i conftest.$ac_ext
3588
3589done
3590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3591rm -f conftest.i conftest.err conftest.$ac_ext
3592if $ac_preproc_ok; then :
3593
3594else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3598See \`config.log' for more details" "$LINENO" 5; }
3599fi
3600
3601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606
3607
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3609$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3610if ${ac_cv_path_GREP+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612else
3613 if test -z "$GREP"; then
3614 ac_path_GREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in grep ggrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3625# Check for GNU ac_path_GREP and select it if it is found.
3626 # Check for GNU $ac_path_GREP
3627case `"$ac_path_GREP" --version 2>&1` in
3628*GNU*)
3629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3630*)
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3634 do
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'GREP' >> "conftest.nl"
3639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_GREP="$ac_path_GREP"
3645 ac_path_GREP_max=$ac_count
3646 fi
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651esac
3652
3653 $ac_path_GREP_found && break 3
3654 done
3655 done
3656 done
3657IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_GREP"; then
3659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3660 fi
3661else
3662 ac_cv_path_GREP=$GREP
3663fi
3664
3665fi
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3667$as_echo "$ac_cv_path_GREP" >&6; }
3668 GREP="$ac_cv_path_GREP"
3669
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3672$as_echo_n "checking for egrep... " >&6; }
3673if ${ac_cv_path_EGREP+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675else
3676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3677 then ac_cv_path_EGREP="$GREP -E"
3678 else
3679 if test -z "$EGREP"; then
3680 ac_path_EGREP_found=false
3681 # Loop through the user's path and test for each of PROGNAME-LIST
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_prog in egrep; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3691# Check for GNU ac_path_EGREP and select it if it is found.
3692 # Check for GNU $ac_path_EGREP
3693case `"$ac_path_EGREP" --version 2>&1` in
3694*GNU*)
3695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3696*)
3697 ac_count=0
3698 $as_echo_n 0123456789 >"conftest.in"
3699 while :
3700 do
3701 cat "conftest.in" "conftest.in" >"conftest.tmp"
3702 mv "conftest.tmp" "conftest.in"
3703 cp "conftest.in" "conftest.nl"
3704 $as_echo 'EGREP' >> "conftest.nl"
3705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707 as_fn_arith $ac_count + 1 && ac_count=$as_val
3708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3709 # Best one so far, save it but keep looking for a better one
3710 ac_cv_path_EGREP="$ac_path_EGREP"
3711 ac_path_EGREP_max=$ac_count
3712 fi
3713 # 10*(2^10) chars as input seems more than enough
3714 test $ac_count -gt 10 && break
3715 done
3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717esac
3718
3719 $ac_path_EGREP_found && break 3
3720 done
3721 done
3722 done
3723IFS=$as_save_IFS
3724 if test -z "$ac_cv_path_EGREP"; then
3725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3726 fi
3727else
3728 ac_cv_path_EGREP=$EGREP
3729fi
3730
3731 fi
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3734$as_echo "$ac_cv_path_EGREP" >&6; }
3735 EGREP="$ac_cv_path_EGREP"
3736
3737
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3739$as_echo_n "checking for ANSI C header files... " >&6; }
3740if ${ac_cv_header_stdc+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h. */
3745#include <stdlib.h>
3746#include <stdarg.h>
3747#include <string.h>
3748#include <float.h>
3749
3750int
3751main ()
3752{
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_header_stdc=yes
3760else
3761 ac_cv_header_stdc=no
3762fi
3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764
3765if test $ac_cv_header_stdc = yes; then
3766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h. */
3769#include <string.h>
3770
3771_ACEOF
3772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 $EGREP "memchr" >/dev/null 2>&1; then :
3774
3775else
3776 ac_cv_header_stdc=no
3777fi
3778rm -f conftest*
3779
3780fi
3781
3782if test $ac_cv_header_stdc = yes; then
3783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h. */
3786#include <stdlib.h>
3787
3788_ACEOF
3789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "free" >/dev/null 2>&1; then :
3791
3792else
3793 ac_cv_header_stdc=no
3794fi
3795rm -f conftest*
3796
3797fi
3798
3799if test $ac_cv_header_stdc = yes; then
3800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3801 if test "$cross_compiling" = yes; then :
3802 :
3803else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h. */
3806#include <ctype.h>
3807#include <stdlib.h>
3808#if ((' ' & 0x0FF) == 0x020)
3809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3811#else
3812# define ISLOWER(c) \
3813 (('a' <= (c) && (c) <= 'i') \
3814 || ('j' <= (c) && (c) <= 'r') \
3815 || ('s' <= (c) && (c) <= 'z'))
3816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3817#endif
3818
3819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3820int
3821main ()
3822{
3823 int i;
3824 for (i = 0; i < 256; i++)
3825 if (XOR (islower (i), ISLOWER (i))
3826 || toupper (i) != TOUPPER (i))
3827 return 2;
3828 return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_run "$LINENO"; then :
3832
3833else
3834 ac_cv_header_stdc=no
3835fi
3836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3837 conftest.$ac_objext conftest.beam conftest.$ac_ext
3838fi
3839
3840fi
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3843$as_echo "$ac_cv_header_stdc" >&6; }
3844if test $ac_cv_header_stdc = yes; then
3845
3846$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3847
3848fi
3849
3850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3852 inttypes.h stdint.h unistd.h
3853do :
3854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3856"
3857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3858 cat >>confdefs.h <<_ACEOF
3859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860_ACEOF
3861
3862fi
3863
3864done
3865
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3868$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3869if ${ac_cv_c_bigendian+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871else
3872 ac_cv_c_bigendian=unknown
3873 # See if we're dealing with a universal compiler.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h. */
3876#ifndef __APPLE_CC__
3877 not a universal capable compiler
3878 #endif
3879 typedef int dummy;
3880
3881_ACEOF
3882if ac_fn_c_try_compile "$LINENO"; then :
3883
3884 # Check for potential -arch flags. It is not universal unless
3885 # there are at least two -arch flags with different values.
3886 ac_arch=
3887 ac_prev=
3888 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3889 if test -n "$ac_prev"; then
3890 case $ac_word in
3891 i?86 | x86_64 | ppc | ppc64)
3892 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3893 ac_arch=$ac_word
3894 else
3895 ac_cv_c_bigendian=universal
3896 break
3897 fi
3898 ;;
3899 esac
3900 ac_prev=
3901 elif test "x$ac_word" = "x-arch"; then
3902 ac_prev=arch
3903 fi
3904 done
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 if test $ac_cv_c_bigendian = unknown; then
3908 # See if sys/param.h defines the BYTE_ORDER macro.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h. */
3911#include <sys/types.h>
3912 #include <sys/param.h>
3913
3914int
3915main ()
3916{
3917#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3919 && LITTLE_ENDIAN)
3920 bogus endian macros
3921 #endif
3922
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_compile "$LINENO"; then :
3928 # It does; now see whether it defined to BIG_ENDIAN or not.
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h. */
3931#include <sys/types.h>
3932 #include <sys/param.h>
3933
3934int
3935main ()
3936{
3937#if BYTE_ORDER != BIG_ENDIAN
3938 not big endian
3939 #endif
3940
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_cv_c_bigendian=yes
3947else
3948 ac_cv_c_bigendian=no
3949fi
3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951fi
3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 if test $ac_cv_c_bigendian = unknown; then
3955 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h. */
3958#include <limits.h>
3959
3960int
3961main ()
3962{
3963#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3964 bogus endian macros
3965 #endif
3966
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971if ac_fn_c_try_compile "$LINENO"; then :
3972 # It does; now see whether it defined to _BIG_ENDIAN or not.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h. */
3975#include <limits.h>
3976
3977int
3978main ()
3979{
3980#ifndef _BIG_ENDIAN
3981 not big endian
3982 #endif
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_c_bigendian=yes
3990else
3991 ac_cv_c_bigendian=no
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 if test $ac_cv_c_bigendian = unknown; then
3998 # Compile a test program.
3999 if test "$cross_compiling" = yes; then :
4000 # Try to guess by grepping values from an object file.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h. */
4003short int ascii_mm[] =
4004 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4005 short int ascii_ii[] =
4006 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4007 int use_ascii (int i) {
4008 return ascii_mm[i] + ascii_ii[i];
4009 }
4010 short int ebcdic_ii[] =
4011 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4012 short int ebcdic_mm[] =
4013 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4014 int use_ebcdic (int i) {
4015 return ebcdic_mm[i] + ebcdic_ii[i];
4016 }
4017 extern int foo;
4018
4019int
4020main ()
4021{
4022return use_ascii (foo) == use_ebcdic (foo);
4023 ;
4024 return 0;
4025}
4026_ACEOF
4027if ac_fn_c_try_compile "$LINENO"; then :
4028 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4029 ac_cv_c_bigendian=yes
4030 fi
4031 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4032 if test "$ac_cv_c_bigendian" = unknown; then
4033 ac_cv_c_bigendian=no
4034 else
4035 # finding both strings is unlikely to happen, but who knows?
4036 ac_cv_c_bigendian=unknown
4037 fi
4038 fi
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041else
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044$ac_includes_default
4045int
4046main ()
4047{
4048
4049 /* Are we little or big endian? From Harbison&Steele. */
4050 union
4051 {
4052 long int l;
4053 char c[sizeof (long int)];
4054 } u;
4055 u.l = 1;
4056 return u.c[sizeof (long int) - 1] == 1;
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_run "$LINENO"; then :
4063 ac_cv_c_bigendian=no
4064else
4065 ac_cv_c_bigendian=yes
4066fi
4067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4068 conftest.$ac_objext conftest.beam conftest.$ac_ext
4069fi
4070
4071 fi
4072fi
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4074$as_echo "$ac_cv_c_bigendian" >&6; }
4075 case $ac_cv_c_bigendian in #(
4076 yes)
4077 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4078;; #(
4079 no)
4080 ;; #(
4081 universal)
4082
4083$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4084
4085 ;; #(
4086 *)
4087 as_fn_error $? "unknown endianness
4088 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4089 esac
4090
4091
4092# Checks for programs.
4093for ac_prog in gawk mawk nawk awk
4094do
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096set dummy $ac_prog; ac_word=$2
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098$as_echo_n "checking for $ac_word... " >&6; }
4099if ${ac_cv_prog_AWK+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if test -n "$AWK"; then
4103 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_AWK="$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117 done
4118IFS=$as_save_IFS
4119
4120fi
4121fi
4122AWK=$ac_cv_prog_AWK
4123if test -n "$AWK"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4125$as_echo "$AWK" >&6; }
4126else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130
4131
4132 test -n "$AWK" && break
4133done
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4141$as_echo_n "checking how to run the C preprocessor... " >&6; }
4142# On Suns, sometimes $CPP names a directory.
4143if test -n "$CPP" && test -d "$CPP"; then
4144 CPP=
4145fi
4146if test -z "$CPP"; then
4147 if ${ac_cv_prog_CPP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149else
4150 # Double quotes because CPP needs to be expanded
4151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4152 do
4153 ac_preproc_ok=false
4154for ac_c_preproc_warn_flag in '' yes
4155do
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h. */
4164#ifdef __STDC__
4165# include <limits.h>
4166#else
4167# include <assert.h>
4168#endif
4169 Syntax error
4170_ACEOF
4171if ac_fn_c_try_cpp "$LINENO"; then :
4172
4173else
4174 # Broken: fails on valid input.
4175continue
4176fi
4177rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179 # OK, works on sane cases. Now check whether nonexistent headers
4180 # can be detected and how.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h. */
4183#include <ac_nonexistent.h>
4184_ACEOF
4185if ac_fn_c_try_cpp "$LINENO"; then :
4186 # Broken: success on invalid input.
4187continue
4188else
4189 # Passes both tests.
4190ac_preproc_ok=:
4191break
4192fi
4193rm -f conftest.err conftest.i conftest.$ac_ext
4194
4195done
4196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197rm -f conftest.i conftest.err conftest.$ac_ext
4198if $ac_preproc_ok; then :
4199 break
4200fi
4201
4202 done
4203 ac_cv_prog_CPP=$CPP
4204
4205fi
4206 CPP=$ac_cv_prog_CPP
4207else
4208 ac_cv_prog_CPP=$CPP
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4211$as_echo "$CPP" >&6; }
4212ac_preproc_ok=false
4213for ac_c_preproc_warn_flag in '' yes
4214do
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h. */
4223#ifdef __STDC__
4224# include <limits.h>
4225#else
4226# include <assert.h>
4227#endif
4228 Syntax error
4229_ACEOF
4230if ac_fn_c_try_cpp "$LINENO"; then :
4231
4232else
4233 # Broken: fails on valid input.
4234continue
4235fi
4236rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238 # OK, works on sane cases. Now check whether nonexistent headers
4239 # can be detected and how.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
4242#include <ac_nonexistent.h>
4243_ACEOF
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245 # Broken: success on invalid input.
4246continue
4247else
4248 # Passes both tests.
4249ac_preproc_ok=:
4250break
4251fi
4252rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254done
4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256rm -f conftest.i conftest.err conftest.$ac_ext
4257if $ac_preproc_ok; then :
4258
4259else
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4263See \`config.log' for more details" "$LINENO" 5; }
4264fi
4265
4266ac_ext=c
4267ac_cpp='$CPP $CPPFLAGS'
4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4274set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276$as_echo_n "checking for $ac_word... " >&6; }
4277if ${ac_cv_prog_RANLIB+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279else
4280 if test -n "$RANLIB"; then
4281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4282else
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294done
4295 done
4296IFS=$as_save_IFS
4297
4298fi
4299fi
4300RANLIB=$ac_cv_prog_RANLIB
4301if test -n "$RANLIB"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4303$as_echo "$RANLIB" >&6; }
4304else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
4307fi
4308
4309
4310fi
4311if test -z "$ac_cv_prog_RANLIB"; then
4312 ac_ct_RANLIB=$RANLIB
4313 # Extract the first word of "ranlib", so it can be a program name with args.
4314set dummy ranlib; ac_word=$2
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316$as_echo_n "checking for $ac_word... " >&6; }
4317if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319else
4320 if test -n "$ac_ct_RANLIB"; then
4321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330 ac_cv_prog_ac_ct_RANLIB="ranlib"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335 done
4336IFS=$as_save_IFS
4337
4338fi
4339fi
4340ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4341if test -n "$ac_ct_RANLIB"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4343$as_echo "$ac_ct_RANLIB" >&6; }
4344else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346$as_echo "no" >&6; }
4347fi
4348
4349 if test "x$ac_ct_RANLIB" = x; then
4350 RANLIB=":"
4351 else
4352 case $cross_compiling:$ac_tool_warned in
4353yes:)
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4356ac_tool_warned=yes ;;
4357esac
4358 RANLIB=$ac_ct_RANLIB
4359 fi
4360else
4361 RANLIB="$ac_cv_prog_RANLIB"
4362fi
4363
4364# Find a good install program. We prefer a C program (faster),
4365# so one script is as good as another. But avoid the broken or
4366# incompatible versions:
4367# SysV /etc/install, /usr/sbin/install
4368# SunOS /usr/etc/install
4369# IRIX /sbin/install
4370# AIX /bin/install
4371# AmigaOS /C/install, which installs bootblocks on floppy discs
4372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4373# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4375# OS/2's system install, which has a completely different semantic
4376# ./install, which can be erroneously created by make from ./install.sh.
4377# Reject install programs that cannot install multiple files.
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4379$as_echo_n "checking for a BSD-compatible install... " >&6; }
4380if test -z "$INSTALL"; then
4381if ${ac_cv_path_install+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 # Account for people who put trailing slashes in PATH elements.
4390case $as_dir/ in #((
4391 ./ | .// | /[cC]/* | \
4392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4394 /usr/ucb/* ) ;;
4395 *)
4396 # OSF1 and SCO ODT 3.0 have their own names for install.
4397 # Don't use installbsd from OSF since it installs stuff as root
4398 # by default.
4399 for ac_prog in ginstall scoinst install; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4402 if test $ac_prog = install &&
4403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4404 # AIX install. It has an incompatible calling convention.
4405 :
4406 elif test $ac_prog = install &&
4407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4408 # program-specific install script used by HP pwplus--don't use.
4409 :
4410 else
4411 rm -rf conftest.one conftest.two conftest.dir
4412 echo one > conftest.one
4413 echo two > conftest.two
4414 mkdir conftest.dir
4415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4416 test -s conftest.one && test -s conftest.two &&
4417 test -s conftest.dir/conftest.one &&
4418 test -s conftest.dir/conftest.two
4419 then
4420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4421 break 3
4422 fi
4423 fi
4424 fi
4425 done
4426 done
4427 ;;
4428esac
4429
4430 done
4431IFS=$as_save_IFS
4432
4433rm -rf conftest.one conftest.two conftest.dir
4434
4435fi
4436 if test "${ac_cv_path_install+set}" = set; then
4437 INSTALL=$ac_cv_path_install
4438 else
4439 # As a last resort, use the slow shell script. Don't cache a
4440 # value for INSTALL within a source directory, because that will
4441 # break other packages using the cache if that directory is
4442 # removed, or if the value is a relative name.
4443 INSTALL=$ac_install_sh
4444 fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4447$as_echo "$INSTALL" >&6; }
4448
4449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4450# It thinks the first close brace ends the variable substitution.
4451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4452
4453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4454
4455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4458$as_echo_n "checking for egrep... " >&6; }
4459if ${ac_cv_path_EGREP+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4463 then ac_cv_path_EGREP="$GREP -E"
4464 else
4465 if test -z "$EGREP"; then
4466 ac_path_EGREP_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_prog in egrep; do
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4476 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4477# Check for GNU ac_path_EGREP and select it if it is found.
4478 # Check for GNU $ac_path_EGREP
4479case `"$ac_path_EGREP" --version 2>&1` in
4480*GNU*)
4481 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4482*)
4483 ac_count=0
4484 $as_echo_n 0123456789 >"conftest.in"
4485 while :
4486 do
4487 cat "conftest.in" "conftest.in" >"conftest.tmp"
4488 mv "conftest.tmp" "conftest.in"
4489 cp "conftest.in" "conftest.nl"
4490 $as_echo 'EGREP' >> "conftest.nl"
4491 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493 as_fn_arith $ac_count + 1 && ac_count=$as_val
4494 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4495 # Best one so far, save it but keep looking for a better one
4496 ac_cv_path_EGREP="$ac_path_EGREP"
4497 ac_path_EGREP_max=$ac_count
4498 fi
4499 # 10*(2^10) chars as input seems more than enough
4500 test $ac_count -gt 10 && break
4501 done
4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503esac
4504
4505 $ac_path_EGREP_found && break 3
4506 done
4507 done
4508 done
4509IFS=$as_save_IFS
4510 if test -z "$ac_cv_path_EGREP"; then
4511 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4512 fi
4513else
4514 ac_cv_path_EGREP=$EGREP
4515fi
4516
4517 fi
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4520$as_echo "$ac_cv_path_EGREP" >&6; }
4521 EGREP="$ac_cv_path_EGREP"
4522
4523
4524# Extract the first word of "ar", so it can be a program name with args.
4525set dummy ar; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
4528if ${ac_cv_path_AR+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530else
4531 case $AR in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4534 ;;
4535 *)
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548 done
4549IFS=$as_save_IFS
4550
4551 ;;
4552esac
4553fi
4554AR=$ac_cv_path_AR
4555if test -n "$AR"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4557$as_echo "$AR" >&6; }
4558else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560$as_echo "no" >&6; }
4561fi
4562
4563
4564# Extract the first word of "cat", so it can be a program name with args.
4565set dummy cat; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_CAT+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 case $CAT in
4572 [\\/]* | ?:[\\/]*)
4573 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4574 ;;
4575 *)
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588 done
4589IFS=$as_save_IFS
4590
4591 ;;
4592esac
4593fi
4594CAT=$ac_cv_path_CAT
4595if test -n "$CAT"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4597$as_echo "$CAT" >&6; }
4598else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602
4603
4604# Extract the first word of "kill", so it can be a program name with args.
4605set dummy kill; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if ${ac_cv_path_KILL+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610else
4611 case $KILL in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4614 ;;
4615 *)
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628 done
4629IFS=$as_save_IFS
4630
4631 ;;
4632esac
4633fi
4634KILL=$ac_cv_path_KILL
4635if test -n "$KILL"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4637$as_echo "$KILL" >&6; }
4638else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644for ac_prog in perl5 perl
4645do
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647set dummy $ac_prog; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
4650if ${ac_cv_path_PERL+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652else
4653 case $PERL in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4656 ;;
4657 *)
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670 done
4671IFS=$as_save_IFS
4672
4673 ;;
4674esac
4675fi
4676PERL=$ac_cv_path_PERL
4677if test -n "$PERL"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4679$as_echo "$PERL" >&6; }
4680else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684
4685
4686 test -n "$PERL" && break
4687done
4688
4689# Extract the first word of "sed", so it can be a program name with args.
4690set dummy sed; ac_word=$2
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692$as_echo_n "checking for $ac_word... " >&6; }
4693if ${ac_cv_path_SED+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695else
4696 case $SED in
4697 [\\/]* | ?:[\\/]*)
4698 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4699 ;;
4700 *)
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713 done
4714IFS=$as_save_IFS
4715
4716 ;;
4717esac
4718fi
4719SED=$ac_cv_path_SED
4720if test -n "$SED"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4722$as_echo "$SED" >&6; }
4723else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728
4729
4730# Extract the first word of "ent", so it can be a program name with args.
4731set dummy ent; ac_word=$2
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if ${ac_cv_path_ENT+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 case $ENT in
4738 [\\/]* | ?:[\\/]*)
4739 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4740 ;;
4741 *)
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754 done
4755IFS=$as_save_IFS
4756
4757 ;;
4758esac
4759fi
4760ENT=$ac_cv_path_ENT
4761if test -n "$ENT"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4763$as_echo "$ENT" >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770
4771# Extract the first word of "bash", so it can be a program name with args.
4772set dummy bash; ac_word=$2
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777else
4778 case $TEST_MINUS_S_SH in
4779 [\\/]* | ?:[\\/]*)
4780 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4781 ;;
4782 *)
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794done
4795 done
4796IFS=$as_save_IFS
4797
4798 ;;
4799esac
4800fi
4801TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4802if test -n "$TEST_MINUS_S_SH"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4804$as_echo "$TEST_MINUS_S_SH" >&6; }
4805else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811# Extract the first word of "ksh", so it can be a program name with args.
4812set dummy ksh; ac_word=$2
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 case $TEST_MINUS_S_SH in
4819 [\\/]* | ?:[\\/]*)
4820 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4821 ;;
4822 *)
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834done
4835 done
4836IFS=$as_save_IFS
4837
4838 ;;
4839esac
4840fi
4841TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4842if test -n "$TEST_MINUS_S_SH"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4844$as_echo "$TEST_MINUS_S_SH" >&6; }
4845else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850
4851# Extract the first word of "sh", so it can be a program name with args.
4852set dummy sh; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857else
4858 case $TEST_MINUS_S_SH in
4859 [\\/]* | ?:[\\/]*)
4860 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4861 ;;
4862 *)
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875 done
4876IFS=$as_save_IFS
4877
4878 ;;
4879esac
4880fi
4881TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4882if test -n "$TEST_MINUS_S_SH"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4884$as_echo "$TEST_MINUS_S_SH" >&6; }
4885else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891# Extract the first word of "sh", so it can be a program name with args.
4892set dummy sh; ac_word=$2
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if ${ac_cv_path_SH+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897else
4898 case $SH in
4899 [\\/]* | ?:[\\/]*)
4900 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4901 ;;
4902 *)
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914done
4915 done
4916IFS=$as_save_IFS
4917
4918 ;;
4919esac
4920fi
4921SH=$ac_cv_path_SH
4922if test -n "$SH"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4924$as_echo "$SH" >&6; }
4925else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930
4931# Extract the first word of "groff", so it can be a program name with args.
4932set dummy groff; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if ${ac_cv_path_GROFF+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937else
4938 case $GROFF in
4939 [\\/]* | ?:[\\/]*)
4940 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4941 ;;
4942 *)
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955 done
4956IFS=$as_save_IFS
4957
4958 ;;
4959esac
4960fi
4961GROFF=$ac_cv_path_GROFF
4962if test -n "$GROFF"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4964$as_echo "$GROFF" >&6; }
4965else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971# Extract the first word of "nroff", so it can be a program name with args.
4972set dummy nroff; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_path_NROFF+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977else
4978 case $NROFF in
4979 [\\/]* | ?:[\\/]*)
4980 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4981 ;;
4982 *)
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994done
4995 done
4996IFS=$as_save_IFS
4997
4998 ;;
4999esac
5000fi
5001NROFF=$ac_cv_path_NROFF
5002if test -n "$NROFF"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5004$as_echo "$NROFF" >&6; }
5005else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007$as_echo "no" >&6; }
5008fi
5009
5010
5011# Extract the first word of "mandoc", so it can be a program name with args.
5012set dummy mandoc; ac_word=$2
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014$as_echo_n "checking for $ac_word... " >&6; }
5015if ${ac_cv_path_MANDOC+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017else
5018 case $MANDOC in
5019 [\\/]* | ?:[\\/]*)
5020 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5021 ;;
5022 *)
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035 done
5036IFS=$as_save_IFS
5037
5038 ;;
5039esac
5040fi
5041MANDOC=$ac_cv_path_MANDOC
5042if test -n "$MANDOC"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5044$as_echo "$MANDOC" >&6; }
5045else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048fi
5049
5050
5051TEST_SHELL=sh
5052
5053
5054if test "x$MANDOC" != "x" ; then
5055 MANFMT="$MANDOC"
5056elif test "x$NROFF" != "x" ; then
5057 MANFMT="$NROFF -mandoc"
5058elif test "x$GROFF" != "x" ; then
5059 MANFMT="$GROFF -mandoc -Tascii"
5060else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5062$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5063 MANFMT="false"
5064fi
5065
5066
5067# Extract the first word of "groupadd", so it can be a program name with args.
5068set dummy groupadd; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 case $PATH_GROUPADD_PROG in
5075 [\\/]* | ?:[\\/]*)
5076 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5077 ;;
5078 *)
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090done
5091 done
5092IFS=$as_save_IFS
5093
5094 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5095 ;;
5096esac
5097fi
5098PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5099if test -n "$PATH_GROUPADD_PROG"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5101$as_echo "$PATH_GROUPADD_PROG" >&6; }
5102else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
5105fi
5106
5107
5108# Extract the first word of "useradd", so it can be a program name with args.
5109set dummy useradd; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 case $PATH_USERADD_PROG in
5116 [\\/]* | ?:[\\/]*)
5117 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5118 ;;
5119 *)
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5136 ;;
5137esac
5138fi
5139PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5140if test -n "$PATH_USERADD_PROG"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5142$as_echo "$PATH_USERADD_PROG" >&6; }
5143else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149# Extract the first word of "pkgmk", so it can be a program name with args.
5150set dummy pkgmk; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5157 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171 done
5172IFS=$as_save_IFS
5173
5174 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5175fi
5176fi
5177MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5178if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5180$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5181else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186
5187if test -x /sbin/sh; then
5188 STARTUP_SCRIPT_SHELL=/sbin/sh
5189
5190else
5191 STARTUP_SCRIPT_SHELL=/bin/sh
5192
5193fi
5194
5195# System features
5196# Check whether --enable-largefile was given.
5197if test "${enable_largefile+set}" = set; then :
5198 enableval=$enable_largefile;
5199fi
5200
5201if test "$enable_largefile" != no; then
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5204$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5205if ${ac_cv_sys_largefile_CC+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207else
5208 ac_cv_sys_largefile_CC=no
5209 if test "$GCC" != yes; then
5210 ac_save_CC=$CC
5211 while :; do
5212 # IRIX 6.2 and later do not support large files by default,
5213 # so use the C compiler's -n32 option if that helps.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h. */
5216#include <sys/types.h>
5217 /* Check that off_t can represent 2**63 - 1 correctly.
5218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5219 since some C++ compilers masquerading as C compilers
5220 incorrectly reject 9223372036854775807. */
5221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5223 && LARGE_OFF_T % 2147483647 == 1)
5224 ? 1 : -1];
5225int
5226main ()
5227{
5228
5229 ;
5230 return 0;
5231}
5232_ACEOF
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234 break
5235fi
5236rm -f core conftest.err conftest.$ac_objext
5237 CC="$CC -n32"
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 ac_cv_sys_largefile_CC=' -n32'; break
5240fi
5241rm -f core conftest.err conftest.$ac_objext
5242 break
5243 done
5244 CC=$ac_save_CC
5245 rm -f conftest.$ac_ext
5246 fi
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5249$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5250 if test "$ac_cv_sys_largefile_CC" != no; then
5251 CC=$CC$ac_cv_sys_largefile_CC
5252 fi
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5255$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5256if ${ac_cv_sys_file_offset_bits+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 while :; do
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h. */
5262#include <sys/types.h>
5263 /* Check that off_t can represent 2**63 - 1 correctly.
5264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5265 since some C++ compilers masquerading as C compilers
5266 incorrectly reject 9223372036854775807. */
5267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5269 && LARGE_OFF_T % 2147483647 == 1)
5270 ? 1 : -1];
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_sys_file_offset_bits=no; break
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h. */
5285#define _FILE_OFFSET_BITS 64
5286#include <sys/types.h>
5287 /* Check that off_t can represent 2**63 - 1 correctly.
5288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5289 since some C++ compilers masquerading as C compilers
5290 incorrectly reject 9223372036854775807. */
5291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5293 && LARGE_OFF_T % 2147483647 == 1)
5294 ? 1 : -1];
5295int
5296main ()
5297{
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303if ac_fn_c_try_compile "$LINENO"; then :
5304 ac_cv_sys_file_offset_bits=64; break
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 ac_cv_sys_file_offset_bits=unknown
5308 break
5309done
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5312$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5313case $ac_cv_sys_file_offset_bits in #(
5314 no | unknown) ;;
5315 *)
5316cat >>confdefs.h <<_ACEOF
5317#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5318_ACEOF
5319;;
5320esac
5321rm -rf conftest*
5322 if test $ac_cv_sys_file_offset_bits = unknown; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5324$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5325if ${ac_cv_sys_large_files+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327else
5328 while :; do
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
5331#include <sys/types.h>
5332 /* Check that off_t can represent 2**63 - 1 correctly.
5333 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5334 since some C++ compilers masquerading as C compilers
5335 incorrectly reject 9223372036854775807. */
5336#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5338 && LARGE_OFF_T % 2147483647 == 1)
5339 ? 1 : -1];
5340int
5341main ()
5342{
5343
5344 ;
5345 return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"; then :
5349 ac_cv_sys_large_files=no; break
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354#define _LARGE_FILES 1
5355#include <sys/types.h>
5356 /* Check that off_t can represent 2**63 - 1 correctly.
5357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5358 since some C++ compilers masquerading as C compilers
5359 incorrectly reject 9223372036854775807. */
5360#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5362 && LARGE_OFF_T % 2147483647 == 1)
5363 ? 1 : -1];
5364int
5365main ()
5366{
5367
5368 ;
5369 return 0;
5370}
5371_ACEOF
5372if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_sys_large_files=1; break
5374fi
5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 ac_cv_sys_large_files=unknown
5377 break
5378done
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5381$as_echo "$ac_cv_sys_large_files" >&6; }
5382case $ac_cv_sys_large_files in #(
5383 no | unknown) ;;
5384 *)
5385cat >>confdefs.h <<_ACEOF
5386#define _LARGE_FILES $ac_cv_sys_large_files
5387_ACEOF
5388;;
5389esac
5390rm -rf conftest*
5391 fi
5392fi
5393
5394
5395if test -z "$AR" ; then
5396 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5397fi
5398
5399# Use LOGIN_PROGRAM from environment if possible
5400if test ! -z "$LOGIN_PROGRAM" ; then
5401
5402cat >>confdefs.h <<_ACEOF
5403#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5404_ACEOF
5405
5406else
5407 # Search for login
5408 # Extract the first word of "login", so it can be a program name with args.
5409set dummy login; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 case $LOGIN_PROGRAM_FALLBACK in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5418 ;;
5419 *)
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432 done
5433IFS=$as_save_IFS
5434
5435 ;;
5436esac
5437fi
5438LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5439if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5441$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5442else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5449 cat >>confdefs.h <<_ACEOF
5450#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5451_ACEOF
5452
5453 fi
5454fi
5455
5456# Extract the first word of "passwd", so it can be a program name with args.
5457set dummy passwd; ac_word=$2
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 case $PATH_PASSWD_PROG in
5464 [\\/]* | ?:[\\/]*)
5465 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5466 ;;
5467 *)
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479done
5480 done
5481IFS=$as_save_IFS
5482
5483 ;;
5484esac
5485fi
5486PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5487if test -n "$PATH_PASSWD_PROG"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5489$as_echo "$PATH_PASSWD_PROG" >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495
5496if test ! -z "$PATH_PASSWD_PROG" ; then
5497
5498cat >>confdefs.h <<_ACEOF
5499#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5500_ACEOF
5501
5502fi
5503
5504if test -z "$LD" ; then
5505 LD=$CC
5506fi
5507
5508
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5510$as_echo_n "checking for inline... " >&6; }
5511if ${ac_cv_c_inline+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513else
5514 ac_cv_c_inline=no
5515for ac_kw in inline __inline__ __inline; do
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#ifndef __cplusplus
5519typedef int foo_t;
5520static $ac_kw foo_t static_foo () {return 0; }
5521$ac_kw foo_t foo () {return 0; }
5522#endif
5523
5524_ACEOF
5525if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_c_inline=$ac_kw
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 test "$ac_cv_c_inline" != no && break
5530done
5531
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5534$as_echo "$ac_cv_c_inline" >&6; }
5535
5536case $ac_cv_c_inline in
5537 inline | yes) ;;
5538 *)
5539 case $ac_cv_c_inline in
5540 no) ac_val=;;
5541 *) ac_val=$ac_cv_c_inline;;
5542 esac
5543 cat >>confdefs.h <<_ACEOF
5544#ifndef __cplusplus
5545#define inline $ac_val
5546#endif
5547_ACEOF
5548 ;;
5549esac
5550
5551
5552ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5553"
5554if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5555 have_llong_max=1
5556fi
5557
5558ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5559 #include <sys/types.h>
5560 #include <sys/param.h>
5561 #include <dev/systrace.h>
5562
5563"
5564if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5565 have_systr_policy_kill=1
5566fi
5567
5568ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5569 #include <sys/types.h>
5570 #include <sys/resource.h>
5571
5572"
5573if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5574
5575$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5576
5577fi
5578
5579
5580use_stack_protector=1
5581
5582# Check whether --with-stackprotect was given.
5583if test "${with_stackprotect+set}" = set; then :
5584 withval=$with_stackprotect;
5585 if test "x$withval" = "xno"; then
5586 use_stack_protector=0
5587 fi
5588fi
5589
5590
5591
5592if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5593 {
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5595$as_echo_n "checking if $CC supports -Wall... " >&6; }
5596 saved_CFLAGS="$CFLAGS"
5597 CFLAGS="$CFLAGS -Wall"
5598 _define_flag=""
5599 test "x$_define_flag" = "x" && _define_flag="-Wall"
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h. */
5602int main(void) { return 0; }
5603_ACEOF
5604if ac_fn_c_try_compile "$LINENO"; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606$as_echo "yes" >&6; }
5607 CFLAGS="$saved_CFLAGS $_define_flag"
5608else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611 CFLAGS="$saved_CFLAGS"
5612
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615}
5616 {
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5618$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5619 saved_CFLAGS="$CFLAGS"
5620 CFLAGS="$CFLAGS -Wpointer-arith"
5621 _define_flag=""
5622 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5623 cat 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 CFLAGS="$saved_CFLAGS $_define_flag"
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 CFLAGS="$saved_CFLAGS"
5635
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638}
5639 {
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5641$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5642 saved_CFLAGS="$CFLAGS"
5643 CFLAGS="$CFLAGS -Wuninitialized"
5644 _define_flag=""
5645 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648int main(void) { return 0; }
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653 CFLAGS="$saved_CFLAGS $_define_flag"
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657 CFLAGS="$saved_CFLAGS"
5658
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661}
5662 {
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5664$as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5665 saved_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -Wsign-compare"
5667 _define_flag=""
5668 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671int main(void) { return 0; }
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675$as_echo "yes" >&6; }
5676 CFLAGS="$saved_CFLAGS $_define_flag"
5677else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680 CFLAGS="$saved_CFLAGS"
5681
5682fi
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684}
5685 {
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5687$as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5688 saved_CFLAGS="$CFLAGS"
5689 CFLAGS="$CFLAGS -Wformat-security"
5690 _define_flag=""
5691 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694int main(void) { return 0; }
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698$as_echo "yes" >&6; }
5699 CFLAGS="$saved_CFLAGS $_define_flag"
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703 CFLAGS="$saved_CFLAGS"
5704
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707}
5708 {
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5710$as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5711 saved_CFLAGS="$CFLAGS"
5712 CFLAGS="$CFLAGS -Wpointer-sign"
5713 _define_flag="-Wno-pointer-sign"
5714 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h. */
5717int main(void) { return 0; }
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
5722 CFLAGS="$saved_CFLAGS $_define_flag"
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726 CFLAGS="$saved_CFLAGS"
5727
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730}
5731 {
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5733$as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5734 saved_CFLAGS="$CFLAGS"
5735 CFLAGS="$CFLAGS -Wunused-result"
5736 _define_flag="-Wno-unused-result"
5737 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740int main(void) { return 0; }
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then :
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744$as_echo "yes" >&6; }
5745 CFLAGS="$saved_CFLAGS $_define_flag"
5746else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749 CFLAGS="$saved_CFLAGS"
5750
5751fi
5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753}
5754 {
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5756$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5757 saved_CFLAGS="$CFLAGS"
5758 CFLAGS="$CFLAGS -fno-strict-aliasing"
5759 _define_flag=""
5760 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h. */
5763int main(void) { return 0; }
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767$as_echo "yes" >&6; }
5768 CFLAGS="$saved_CFLAGS $_define_flag"
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772 CFLAGS="$saved_CFLAGS"
5773
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776}
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5778$as_echo_n "checking gcc version... " >&6; }
5779 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5780 case $GCC_VER in
5781 1.*) no_attrib_nonnull=1 ;;
5782 2.8* | 2.9*)
5783 no_attrib_nonnull=1
5784 ;;
5785 2.*) no_attrib_nonnull=1 ;;
5786 *) ;;
5787 esac
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5789$as_echo "$GCC_VER" >&6; }
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5792$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5793 saved_CFLAGS="$CFLAGS"
5794 CFLAGS="$CFLAGS -fno-builtin-memset"
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h. */
5797 #include <string.h>
5798int
5799main ()
5800{
5801 char b[10]; memset(b, 0, sizeof(b));
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_link "$LINENO"; then :
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5808$as_echo "yes" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812 CFLAGS="$saved_CFLAGS"
5813
5814fi
5815rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817
5818 # -fstack-protector-all doesn't always work for some GCC versions
5819 # and/or platforms, so we test if we can. If it's not supported
5820 # on a given platform gcc will emit a warning so we use -Werror.
5821 if test "x$use_stack_protector" = "x1"; then
5822 for t in -fstack-protector-all -fstack-protector; do
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5824$as_echo_n "checking if $CC supports $t... " >&6; }
5825 saved_CFLAGS="$CFLAGS"
5826 saved_LDFLAGS="$LDFLAGS"
5827 CFLAGS="$CFLAGS $t -Werror"
5828 LDFLAGS="$LDFLAGS $t -Werror"
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h. */
5831 #include <stdio.h>
5832int
5833main ()
5834{
5835
5836 char x[256];
5837 snprintf(x, sizeof(x), "XXX");
5838
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_link "$LINENO"; then :
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845$as_echo "yes" >&6; }
5846 CFLAGS="$saved_CFLAGS $t"
5847 LDFLAGS="$saved_LDFLAGS $t"
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5849$as_echo_n "checking if $t works... " >&6; }
5850 if test "$cross_compiling" = yes; then :
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5852$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5853 break
5854
5855else
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h. */
5858 #include <stdio.h>
5859int
5860main ()
5861{
5862
5863 char x[256];
5864 snprintf(x, sizeof(x), "XXX");
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_run "$LINENO"; then :
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872$as_echo "yes" >&6; }
5873 break
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879 conftest.$ac_objext conftest.beam conftest.$ac_ext
5880fi
5881
5882
5883else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886
5887fi
5888rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 CFLAGS="$saved_CFLAGS"
5891 LDFLAGS="$saved_LDFLAGS"
5892 done
5893 fi
5894
5895 if test -z "$have_llong_max"; then
5896 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5897 unset ac_cv_have_decl_LLONG_MAX
5898 saved_CFLAGS="$CFLAGS"
5899 CFLAGS="$CFLAGS -std=gnu99"
5900 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5901
5902"
5903if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5904 have_llong_max=1
5905else
5906 CFLAGS="$saved_CFLAGS"
5907fi
5908
5909 fi
5910fi
5911
5912if test "x$no_attrib_nonnull" != "x1" ; then
5913
5914$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5915
5916fi
5917
5918
5919# Check whether --with-rpath was given.
5920if test "${with_rpath+set}" = set; then :
5921 withval=$with_rpath;
5922 if test "x$withval" = "xno" ; then
5923 need_dash_r=""
5924 fi
5925 if test "x$withval" = "xyes" ; then
5926 need_dash_r=1
5927 fi
5928
5929
5930fi
5931
5932
5933# Allow user to specify flags
5934
5935# Check whether --with-cflags was given.
5936if test "${with_cflags+set}" = set; then :
5937 withval=$with_cflags;
5938 if test -n "$withval" && test "x$withval" != "xno" && \
5939 test "x${withval}" != "xyes"; then
5940 CFLAGS="$CFLAGS $withval"
5941 fi
5942
5943
5944fi
5945
5946
5947# Check whether --with-cppflags was given.
5948if test "${with_cppflags+set}" = set; then :
5949 withval=$with_cppflags;
5950 if test -n "$withval" && test "x$withval" != "xno" && \
5951 test "x${withval}" != "xyes"; then
5952 CPPFLAGS="$CPPFLAGS $withval"
5953 fi
5954
5955
5956fi
5957
5958
5959# Check whether --with-ldflags was given.
5960if test "${with_ldflags+set}" = set; then :
5961 withval=$with_ldflags;
5962 if test -n "$withval" && test "x$withval" != "xno" && \
5963 test "x${withval}" != "xyes"; then
5964 LDFLAGS="$LDFLAGS $withval"
5965 fi
5966
5967
5968fi
5969
5970
5971# Check whether --with-libs was given.
5972if test "${with_libs+set}" = set; then :
5973 withval=$with_libs;
5974 if test -n "$withval" && test "x$withval" != "xno" && \
5975 test "x${withval}" != "xyes"; then
5976 LIBS="$LIBS $withval"
5977 fi
5978
5979
5980fi
5981
5982
5983# Check whether --with-Werror was given.
5984if test "${with_Werror+set}" = set; then :
5985 withval=$with_Werror;
5986 if test -n "$withval" && test "x$withval" != "xno"; then
5987 werror_flags="-Werror"
5988 if test "x${withval}" != "xyes"; then
5989 werror_flags="$withval"
5990 fi
5991 fi
5992
5993
5994fi
5995
5996
5997for ac_header in \
5998 bstring.h \
5999 crypt.h \
6000 crypto/sha2.h \
6001 dirent.h \
6002 endian.h \
6003 features.h \
6004 fcntl.h \
6005 floatingpoint.h \
6006 getopt.h \
6007 glob.h \
6008 ia.h \
6009 iaf.h \
6010 limits.h \
6011 login.h \
6012 maillock.h \
6013 ndir.h \
6014 net/if_tun.h \
6015 netdb.h \
6016 netgroup.h \
6017 pam/pam_appl.h \
6018 paths.h \
6019 poll.h \
6020 pty.h \
6021 readpassphrase.h \
6022 rpc/types.h \
6023 security/pam_appl.h \
6024 sha2.h \
6025 shadow.h \
6026 stddef.h \
6027 stdint.h \
6028 string.h \
6029 strings.h \
6030 sys/audit.h \
6031 sys/bitypes.h \
6032 sys/bsdtty.h \
6033 sys/cdefs.h \
6034 sys/dir.h \
6035 sys/mman.h \
6036 sys/ndir.h \
6037 sys/poll.h \
6038 sys/prctl.h \
6039 sys/pstat.h \
6040 sys/select.h \
6041 sys/stat.h \
6042 sys/stream.h \
6043 sys/stropts.h \
6044 sys/strtio.h \
6045 sys/statvfs.h \
6046 sys/sysmacros.h \
6047 sys/time.h \
6048 sys/timers.h \
6049 sys/un.h \
6050 time.h \
6051 tmpdir.h \
6052 ttyent.h \
6053 ucred.h \
6054 unistd.h \
6055 usersec.h \
6056 util.h \
6057 utime.h \
6058 utmp.h \
6059 utmpx.h \
6060 vis.h \
6061
6062do :
6063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6064ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6066 cat >>confdefs.h <<_ACEOF
6067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068_ACEOF
6069
6070fi
6071
6072done
6073
6074
6075# lastlog.h requires sys/time.h to be included first on Solaris
6076for ac_header in lastlog.h
6077do :
6078 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6079#ifdef HAVE_SYS_TIME_H
6080# include <sys/time.h>
6081#endif
6082
6083"
6084if test "x$ac_cv_header_lastlog_h" = xyes; then :
6085 cat >>confdefs.h <<_ACEOF
6086#define HAVE_LASTLOG_H 1
6087_ACEOF
6088
6089fi
6090
6091done
6092
6093
6094# sys/ptms.h requires sys/stream.h to be included first on Solaris
6095for ac_header in sys/ptms.h
6096do :
6097 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6098#ifdef HAVE_SYS_STREAM_H
6099# include <sys/stream.h>
6100#endif
6101
6102"
6103if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6104 cat >>confdefs.h <<_ACEOF
6105#define HAVE_SYS_PTMS_H 1
6106_ACEOF
6107
6108fi
6109
6110done
6111
6112
6113# login_cap.h requires sys/types.h on NetBSD
6114for ac_header in login_cap.h
6115do :
6116 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6117#include <sys/types.h>
6118
6119"
6120if test "x$ac_cv_header_login_cap_h" = xyes; then :
6121 cat >>confdefs.h <<_ACEOF
6122#define HAVE_LOGIN_CAP_H 1
6123_ACEOF
6124
6125fi
6126
6127done
6128
6129
6130# older BSDs need sys/param.h before sys/mount.h
6131for ac_header in sys/mount.h
6132do :
6133 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6134#include <sys/param.h>
6135
6136"
6137if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6138 cat >>confdefs.h <<_ACEOF
6139#define HAVE_SYS_MOUNT_H 1
6140_ACEOF
6141
6142fi
6143
6144done
6145
6146
6147# Messages for features tested for in target-specific section
6148SIA_MSG="no"
6149SPC_MSG="no"
6150SP_MSG="no"
6151
6152# Check for some target-specific stuff
6153case "$host" in
6154*-*-aix*)
6155 # Some versions of VAC won't allow macro redefinitions at
6156 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6157 # particularly with older versions of vac or xlc.
6158 # It also throws errors about null macro argments, but these are
6159 # not fatal.
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6161$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h. */
6164
6165#define testmacro foo
6166#define testmacro bar
6167int
6168main ()
6169{
6170 exit(0);
6171 ;
6172 return 0;
6173}
6174_ACEOF
6175if ac_fn_c_try_compile "$LINENO"; then :
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6177$as_echo "yes" >&6; }
6178else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180$as_echo "no" >&6; }
6181 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6182 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6183 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6184 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6185
6186
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6191$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6192 if (test -z "$blibpath"); then
6193 blibpath="/usr/lib:/lib"
6194 fi
6195 saved_LDFLAGS="$LDFLAGS"
6196 if test "$GCC" = "yes"; then
6197 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6198 else
6199 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6200 fi
6201 for tryflags in $flags ;do
6202 if (test -z "$blibflags"); then
6203 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h. */
6206
6207int
6208main ()
6209{
6210
6211 ;
6212 return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_link "$LINENO"; then :
6216 blibflags=$tryflags
6217fi
6218rm -f core conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext conftest.$ac_ext
6220 fi
6221 done
6222 if (test -z "$blibflags"); then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6224$as_echo "not found" >&6; }
6225 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6228$as_echo "$blibflags" >&6; }
6229 fi
6230 LDFLAGS="$saved_LDFLAGS"
6231 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6232if test "x$ac_cv_func_authenticate" = xyes; then :
6233
6234$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6235
6236else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6238$as_echo_n "checking for authenticate in -ls... " >&6; }
6239if ${ac_cv_lib_s_authenticate+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241else
6242 ac_check_lib_save_LIBS=$LIBS
6243LIBS="-ls $LIBS"
6244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h. */
6246
6247/* Override any GCC internal prototype to avoid an error.
6248 Use char because int might match the return type of a GCC
6249 builtin and then its argument prototype would still apply. */
6250#ifdef __cplusplus
6251extern "C"
6252#endif
6253char authenticate ();
6254int
6255main ()
6256{
6257return authenticate ();
6258 ;
6259 return 0;
6260}
6261_ACEOF
6262if ac_fn_c_try_link "$LINENO"; then :
6263 ac_cv_lib_s_authenticate=yes
6264else
6265 ac_cv_lib_s_authenticate=no
6266fi
6267rm -f core conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269LIBS=$ac_check_lib_save_LIBS
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6272$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6273if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6274 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6275
6276 LIBS="$LIBS -ls"
6277
6278fi
6279
6280
6281fi
6282
6283 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6284"
6285if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6286 ac_have_decl=1
6287else
6288 ac_have_decl=0
6289fi
6290
6291cat >>confdefs.h <<_ACEOF
6292#define HAVE_DECL_AUTHENTICATE $ac_have_decl
6293_ACEOF
6294ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6295"
6296if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6297 ac_have_decl=1
6298else
6299 ac_have_decl=0
6300fi
6301
6302cat >>confdefs.h <<_ACEOF
6303#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6304_ACEOF
6305ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6306"
6307if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6308 ac_have_decl=1
6309else
6310 ac_have_decl=0
6311fi
6312
6313cat >>confdefs.h <<_ACEOF
6314#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6315_ACEOF
6316ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6317"
6318if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6319 ac_have_decl=1
6320else
6321 ac_have_decl=0
6322fi
6323
6324cat >>confdefs.h <<_ACEOF
6325#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6326_ACEOF
6327ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6328"
6329if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6330 ac_have_decl=1
6331else
6332 ac_have_decl=0
6333fi
6334
6335cat >>confdefs.h <<_ACEOF
6336#define HAVE_DECL_SETAUTHDB $ac_have_decl
6337_ACEOF
6338
6339 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6340
6341"
6342if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6343 ac_have_decl=1
6344else
6345 ac_have_decl=0
6346fi
6347
6348cat >>confdefs.h <<_ACEOF
6349#define HAVE_DECL_LOGINFAILED $ac_have_decl
6350_ACEOF
6351if test $ac_have_decl = 1; then :
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6353$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h. */
6356 #include <usersec.h>
6357int
6358main ()
6359{
6360 (void)loginfailed("user","host","tty",0);
6361 ;
6362 return 0;
6363}
6364_ACEOF
6365if ac_fn_c_try_compile "$LINENO"; then :
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367$as_echo "yes" >&6; }
6368
6369$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6370
6371else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374
6375fi
6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377fi
6378
6379 for ac_func in getgrset setauthdb
6380do :
6381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6383if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6384 cat >>confdefs.h <<_ACEOF
6385#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6386_ACEOF
6387
6388fi
6389done
6390
6391 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6392 #include <fcntl.h>
6393
6394"
6395if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6396
6397$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6398
6399fi
6400
6401 check_for_aix_broken_getaddrinfo=1
6402
6403$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6404
6405
6406$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6407
6408
6409$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6410
6411
6412$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6413
6414
6415$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6416
6417
6418$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6419
6420
6421$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6422
6423
6424$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6425
6426
6427$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6428
6429 ;;
6430*-*-cygwin*)
6431 check_for_libcrypt_later=1
6432 LIBS="$LIBS /usr/lib/textreadmode.o"
6433
6434$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6435
6436
6437$as_echo "#define USE_PIPES 1" >>confdefs.h
6438
6439
6440$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6441
6442
6443$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6444
6445
6446$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6447
6448
6449$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6450
6451
6452$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6453
6454
6455$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6456
6457 ;;
6458*-*-dgux*)
6459
6460$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6461
6462 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6463
6464 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6465
6466 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6467
6468 ;;
6469*-*-darwin*)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6471$as_echo_n "checking if we have working getaddrinfo... " >&6; }
6472 if test "$cross_compiling" = yes; then :
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6474$as_echo "assume it is working" >&6; }
6475else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h. */
6478 #include <mach-o/dyld.h>
6479main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6480 exit(0);
6481 else
6482 exit(1);
6483}
6484
6485_ACEOF
6486if ac_fn_c_try_run "$LINENO"; then :
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6488$as_echo "working" >&6; }
6489else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6491$as_echo "buggy" >&6; }
6492
6493$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6494
6495
6496fi
6497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6498 conftest.$ac_objext conftest.beam conftest.$ac_ext
6499fi
6500
6501 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6502
6503 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6504
6505 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6506
6507
6508$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6509
6510
6511cat >>confdefs.h <<_ACEOF
6512#define BIND_8_COMPAT 1
6513_ACEOF
6514
6515
6516$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6517
6518
6519$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6520
6521
6522$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6523
6524
6525 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6526if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6527
6528else
6529
6530$as_echo "#define AU_IPv4 0" >>confdefs.h
6531
6532 #include <bsm/audit.h>
6533
6534$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6535
6536
6537fi
6538
6539
6540$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6541
6542 for ac_func in sandbox_init
6543do :
6544 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6545if test "x$ac_cv_func_sandbox_init" = xyes; then :
6546 cat >>confdefs.h <<_ACEOF
6547#define HAVE_SANDBOX_INIT 1
6548_ACEOF
6549
6550fi
6551done
6552
6553 for ac_header in sandbox.h
6554do :
6555 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6556if test "x$ac_cv_header_sandbox_h" = xyes; then :
6557 cat >>confdefs.h <<_ACEOF
6558#define HAVE_SANDBOX_H 1
6559_ACEOF
6560
6561fi
6562
6563done
6564
6565 ;;
6566*-*-dragonfly*)
6567 SSHDLIBS="$SSHDLIBS -lcrypt"
6568 ;;
6569*-*-haiku*)
6570 LIBS="$LIBS -lbsd "
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6572$as_echo_n "checking for socket in -lnetwork... " >&6; }
6573if ${ac_cv_lib_network_socket+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575else
6576 ac_check_lib_save_LIBS=$LIBS
6577LIBS="-lnetwork $LIBS"
6578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h. */
6580
6581/* Override any GCC internal prototype to avoid an error.
6582 Use char because int might match the return type of a GCC
6583 builtin and then its argument prototype would still apply. */
6584#ifdef __cplusplus
6585extern "C"
6586#endif
6587char socket ();
6588int
6589main ()
6590{
6591return socket ();
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_link "$LINENO"; then :
6597 ac_cv_lib_network_socket=yes
6598else
6599 ac_cv_lib_network_socket=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603LIBS=$ac_check_lib_save_LIBS
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6606$as_echo "$ac_cv_lib_network_socket" >&6; }
6607if test "x$ac_cv_lib_network_socket" = xyes; then :
6608 cat >>confdefs.h <<_ACEOF
6609#define HAVE_LIBNETWORK 1
6610_ACEOF
6611
6612 LIBS="-lnetwork $LIBS"
6613
6614fi
6615
6616 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6617
6618 MANTYPE=man
6619 ;;
6620*-*-hpux*)
6621 # first we define all of the options common to all HP-UX releases
6622 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6623 IPADDR_IN_DISPLAY=yes
6624 $as_echo "#define USE_PIPES 1" >>confdefs.h
6625
6626
6627$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6628
6629 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6630
6631
6632$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6633
6634 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6635
6636 maildir="/var/mail"
6637 LIBS="$LIBS -lsec"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6639$as_echo_n "checking for t_error in -lxnet... " >&6; }
6640if ${ac_cv_lib_xnet_t_error+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642else
6643 ac_check_lib_save_LIBS=$LIBS
6644LIBS="-lxnet $LIBS"
6645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h. */
6647
6648/* Override any GCC internal prototype to avoid an error.
6649 Use char because int might match the return type of a GCC
6650 builtin and then its argument prototype would still apply. */
6651#ifdef __cplusplus
6652extern "C"
6653#endif
6654char t_error ();
6655int
6656main ()
6657{
6658return t_error ();
6659 ;
6660 return 0;
6661}
6662_ACEOF
6663if ac_fn_c_try_link "$LINENO"; then :
6664 ac_cv_lib_xnet_t_error=yes
6665else
6666 ac_cv_lib_xnet_t_error=no
6667fi
6668rm -f core conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6670LIBS=$ac_check_lib_save_LIBS
6671fi
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6673$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6674if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6675 cat >>confdefs.h <<_ACEOF
6676#define HAVE_LIBXNET 1
6677_ACEOF
6678
6679 LIBS="-lxnet $LIBS"
6680
6681else
6682 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6683fi
6684
6685
6686 # next, we define all of the options specific to major releases
6687 case "$host" in
6688 *-*-hpux10*)
6689 if test -z "$GCC"; then
6690 CFLAGS="$CFLAGS -Ae"
6691 fi
6692 ;;
6693 *-*-hpux11*)
6694
6695$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6696
6697
6698$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6699
6700
6701$as_echo "#define USE_BTMP 1" >>confdefs.h
6702
6703 check_for_hpux_broken_getaddrinfo=1
6704 check_for_conflicting_getspnam=1
6705 ;;
6706 esac
6707
6708 # lastly, we define options specific to minor releases
6709 case "$host" in
6710 *-*-hpux10.26)
6711
6712$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6713
6714 disable_ptmx_check=yes
6715 LIBS="$LIBS -lsecpw"
6716 ;;
6717 esac
6718 ;;
6719*-*-irix5*)
6720 PATH="$PATH:/usr/etc"
6721
6722$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6723
6724 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6725
6726 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6727
6728 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6729
6730
6731$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6732
6733 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6734
6735 ;;
6736*-*-irix6*)
6737 PATH="$PATH:/usr/etc"
6738
6739$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6740
6741
6742$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6743
6744
6745$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6746
6747 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6748if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6749
6750$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6751
6752fi
6753
6754 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6755
6756 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6757
6758 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6759
6760 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6761
6762
6763$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6764
6765 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6766
6767 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6768
6769 ;;
6770*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6771 check_for_libcrypt_later=1
6772 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6773
6774 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6775
6776 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6777
6778
6779$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6780
6781
6782$as_echo "#define USE_BTMP 1" >>confdefs.h
6783
6784 ;;
6785*-*-linux*)
6786 no_dev_ptmx=1
6787 check_for_libcrypt_later=1
6788 check_for_openpty_ctty_bug=1
6789
6790$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6791
6792
6793$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6794
6795 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6796
6797
6798$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6799
6800
6801$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6802
6803 $as_echo "#define USE_BTMP 1" >>confdefs.h
6804
6805
6806$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6807
6808 inet6_default_4in6=yes
6809 case `uname -r` in
6810 1.*|2.0.*)
6811
6812$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6813
6814 ;;
6815 esac
6816 # tun(4) forwarding compat code
6817 for ac_header in linux/if_tun.h
6818do :
6819 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6820if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6821 cat >>confdefs.h <<_ACEOF
6822#define HAVE_LINUX_IF_TUN_H 1
6823_ACEOF
6824
6825fi
6826
6827done
6828
6829 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6830
6831$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6832
6833
6834$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6835
6836
6837$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6838
6839 fi
6840 ;;
6841mips-sony-bsd|mips-sony-newsos4)
6842
6843$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6844
6845 SONY=1
6846 ;;
6847*-*-netbsd*)
6848 check_for_libcrypt_before=1
6849 if test "x$withval" != "xno" ; then
6850 need_dash_r=1
6851 fi
6852
6853$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6854
6855 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6856if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6857
6858else
6859
6860$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6861
6862fi
6863
6864
6865
6866$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6867
6868 ;;
6869*-*-freebsd*)
6870 check_for_libcrypt_later=1
6871
6872$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6873
6874
6875$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6876
6877 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6878if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6879
6880else
6881
6882$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6883
6884fi
6885
6886
6887
6888$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6889
6890 ;;
6891*-*-bsdi*)
6892 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6893
6894 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6895
6896 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6897
6898 ;;
6899*-next-*)
6900 conf_lastlog_location="/usr/adm/lastlog"
6901 conf_utmp_location=/etc/utmp
6902 conf_wtmp_location=/usr/adm/wtmp
6903 maildir=/usr/spool/mail
6904
6905$as_echo "#define HAVE_NEXT 1" >>confdefs.h
6906
6907 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6908
6909 $as_echo "#define USE_PIPES 1" >>confdefs.h
6910
6911
6912$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6913
6914 ;;
6915*-*-openbsd*)
6916
6917$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6918
6919
6920$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6921
6922
6923$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6924
6925
6926$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6927
6928 ;;
6929*-*-solaris*)
6930 if test "x$withval" != "xno" ; then
6931 need_dash_r=1
6932 fi
6933 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6934
6935 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6936
6937
6938$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6939
6940 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6941
6942
6943$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6944
6945 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6946
6947 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6948
6949$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6950
6951
6952$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6953
6954
6955$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
6956
6957 external_path_file=/etc/default/login
6958 # hardwire lastlog location (can't detect it on some versions)
6959 conf_lastlog_location="/var/adm/lastlog"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
6961$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
6962 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6963 if test "$sol2ver" -ge 8; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6965$as_echo "yes" >&6; }
6966 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6967
6968
6969$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6970
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974 fi
6975
6976# Check whether --with-solaris-contracts was given.
6977if test "${with_solaris_contracts+set}" = set; then :
6978 withval=$with_solaris_contracts;
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
6980$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
6981if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983else
6984 ac_check_lib_save_LIBS=$LIBS
6985LIBS="-lcontract $LIBS"
6986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h. */
6988
6989/* Override any GCC internal prototype to avoid an error.
6990 Use char because int might match the return type of a GCC
6991 builtin and then its argument prototype would still apply. */
6992#ifdef __cplusplus
6993extern "C"
6994#endif
6995char ct_tmpl_activate ();
6996int
6997main ()
6998{
6999return ct_tmpl_activate ();
7000 ;
7001 return 0;
7002}
7003_ACEOF
7004if ac_fn_c_try_link "$LINENO"; then :
7005 ac_cv_lib_contract_ct_tmpl_activate=yes
7006else
7007 ac_cv_lib_contract_ct_tmpl_activate=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011LIBS=$ac_check_lib_save_LIBS
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7014$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7015if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7016
7017$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7018
7019 SSHDLIBS="$SSHDLIBS -lcontract"
7020 SPC_MSG="yes"
7021fi
7022
7023
7024fi
7025
7026
7027# Check whether --with-solaris-projects was given.
7028if test "${with_solaris_projects+set}" = set; then :
7029 withval=$with_solaris_projects;
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7031$as_echo_n "checking for setproject in -lproject... " >&6; }
7032if ${ac_cv_lib_project_setproject+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034else
7035 ac_check_lib_save_LIBS=$LIBS
7036LIBS="-lproject $LIBS"
7037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* end confdefs.h. */
7039
7040/* Override any GCC internal prototype to avoid an error.
7041 Use char because int might match the return type of a GCC
7042 builtin and then its argument prototype would still apply. */
7043#ifdef __cplusplus
7044extern "C"
7045#endif
7046char setproject ();
7047int
7048main ()
7049{
7050return setproject ();
7051 ;
7052 return 0;
7053}
7054_ACEOF
7055if ac_fn_c_try_link "$LINENO"; then :
7056 ac_cv_lib_project_setproject=yes
7057else
7058 ac_cv_lib_project_setproject=no
7059fi
7060rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062LIBS=$ac_check_lib_save_LIBS
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7065$as_echo "$ac_cv_lib_project_setproject" >&6; }
7066if test "x$ac_cv_lib_project_setproject" = xyes; then :
7067
7068$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7069
7070 SSHDLIBS="$SSHDLIBS -lproject"
7071 SP_MSG="yes"
7072fi
7073
7074
7075fi
7076
7077 ;;
7078*-*-sunos4*)
7079 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7080 for ac_func in getpwanam
7081do :
7082 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7083if test "x$ac_cv_func_getpwanam" = xyes; then :
7084 cat >>confdefs.h <<_ACEOF
7085#define HAVE_GETPWANAM 1
7086_ACEOF
7087
7088fi
7089done
7090
7091 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7092
7093 conf_utmp_location=/etc/utmp
7094 conf_wtmp_location=/var/adm/wtmp
7095 conf_lastlog_location=/var/adm/lastlog
7096 $as_echo "#define USE_PIPES 1" >>confdefs.h
7097
7098 ;;
7099*-ncr-sysv*)
7100 LIBS="$LIBS -lc89"
7101 $as_echo "#define USE_PIPES 1" >>confdefs.h
7102
7103 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7104
7105 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7106
7107 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7108
7109 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7110
7111 ;;
7112*-sni-sysv*)
7113 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7115$as_echo_n "checking for dlsym in -ldl... " >&6; }
7116if ${ac_cv_lib_dl_dlsym+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 ac_check_lib_save_LIBS=$LIBS
7120LIBS="-ldl $LIBS"
7121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h. */
7123
7124/* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7127#ifdef __cplusplus
7128extern "C"
7129#endif
7130char dlsym ();
7131int
7132main ()
7133{
7134return dlsym ();
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"; then :
7140 ac_cv_lib_dl_dlsym=yes
7141else
7142 ac_cv_lib_dl_dlsym=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146LIBS=$ac_check_lib_save_LIBS
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7149$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7150if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7151 cat >>confdefs.h <<_ACEOF
7152#define HAVE_LIBDL 1
7153_ACEOF
7154
7155 LIBS="-ldl $LIBS"
7156
7157fi
7158
7159 # -lresolv needs to be at the end of LIBS or DNS lookups break
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7161$as_echo_n "checking for res_query in -lresolv... " >&6; }
7162if ${ac_cv_lib_resolv_res_query+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164else
7165 ac_check_lib_save_LIBS=$LIBS
7166LIBS="-lresolv $LIBS"
7167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h. */
7169
7170/* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7173#ifdef __cplusplus
7174extern "C"
7175#endif
7176char res_query ();
7177int
7178main ()
7179{
7180return res_query ();
7181 ;
7182 return 0;
7183}
7184_ACEOF
7185if ac_fn_c_try_link "$LINENO"; then :
7186 ac_cv_lib_resolv_res_query=yes
7187else
7188 ac_cv_lib_resolv_res_query=no
7189fi
7190rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192LIBS=$ac_check_lib_save_LIBS
7193fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7195$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7196if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7197 LIBS="$LIBS -lresolv"
7198fi
7199
7200 IPADDR_IN_DISPLAY=yes
7201 $as_echo "#define USE_PIPES 1" >>confdefs.h
7202
7203 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7204
7205 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7206
7207 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7208
7209 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7210
7211 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7212
7213 external_path_file=/etc/default/login
7214 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7215 # Attention: always take care to bind libsocket and libnsl before libc,
7216 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7217 ;;
7218# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7219*-*-sysv4.2*)
7220 $as_echo "#define USE_PIPES 1" >>confdefs.h
7221
7222 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7223
7224 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7225
7226 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7227
7228
7229$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7230
7231 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7232
7233 ;;
7234# UnixWare 7.x, OpenUNIX 8
7235*-*-sysv5*)
7236 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7237
7238$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7239
7240 $as_echo "#define USE_PIPES 1" >>confdefs.h
7241
7242 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7243
7244 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7245
7246 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7247
7248 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7249
7250 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7251
7252 case "$host" in
7253 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7254 maildir=/var/spool/mail
7255 TEST_SHELL=/u95/bin/sh
7256
7257$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7258
7259 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7262$as_echo_n "checking for getluid in -lprot... " >&6; }
7263if ${ac_cv_lib_prot_getluid+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 ac_check_lib_save_LIBS=$LIBS
7267LIBS="-lprot $LIBS"
7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
7277char getluid ();
7278int
7279main ()
7280{
7281return getluid ();
7282 ;
7283 return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287 ac_cv_lib_prot_getluid=yes
7288else
7289 ac_cv_lib_prot_getluid=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7296$as_echo "$ac_cv_lib_prot_getluid" >&6; }
7297if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7298 LIBS="$LIBS -lprot"
7299 for ac_func in getluid setluid
7300do :
7301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7303if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7304 cat >>confdefs.h <<_ACEOF
7305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7306_ACEOF
7307
7308fi
7309done
7310
7311 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7312
7313 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7314
7315
7316fi
7317
7318 ;;
7319 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7320
7321 check_for_libcrypt_later=1
7322 ;;
7323 esac
7324 ;;
7325*-*-sysv*)
7326 ;;
7327# SCO UNIX and OEM versions of SCO UNIX
7328*-*-sco3.2v4*)
7329 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7330 ;;
7331# SCO OpenServer 5.x
7332*-*-sco3.2v5*)
7333 if test -z "$GCC"; then
7334 CFLAGS="$CFLAGS -belf"
7335 fi
7336 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7337 no_dev_ptmx=1
7338 $as_echo "#define USE_PIPES 1" >>confdefs.h
7339
7340 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7341
7342 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7343
7344 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7345
7346 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7347
7348 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7349
7350 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7351
7352 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7353
7354 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7355
7356 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7357
7358 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7359
7360 for ac_func in getluid setluid
7361do :
7362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7363ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7364if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7365 cat >>confdefs.h <<_ACEOF
7366#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7367_ACEOF
7368
7369fi
7370done
7371
7372 MANTYPE=man
7373 TEST_SHELL=ksh
7374 ;;
7375*-*-unicosmk*)
7376
7377$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7378
7379 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7380
7381 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7382
7383 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7384
7385 $as_echo "#define USE_PIPES 1" >>confdefs.h
7386
7387 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7388
7389 LDFLAGS="$LDFLAGS"
7390 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7391 MANTYPE=cat
7392 ;;
7393*-*-unicosmp*)
7394 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7395
7396 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7397
7398 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7399
7400 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7401
7402 $as_echo "#define USE_PIPES 1" >>confdefs.h
7403
7404 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7405
7406 LDFLAGS="$LDFLAGS"
7407 LIBS="$LIBS -lgen -lacid -ldb"
7408 MANTYPE=cat
7409 ;;
7410*-*-unicos*)
7411 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7412
7413 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7414
7415 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7416
7417 $as_echo "#define USE_PIPES 1" >>confdefs.h
7418
7419 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7420
7421 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7422
7423 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7424 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7425 MANTYPE=cat
7426 ;;
7427*-dec-osf*)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7429$as_echo_n "checking for Digital Unix SIA... " >&6; }
7430 no_osfsia=""
7431
7432# Check whether --with-osfsia was given.
7433if test "${with_osfsia+set}" = set; then :
7434 withval=$with_osfsia;
7435 if test "x$withval" = "xno" ; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7437$as_echo "disabled" >&6; }
7438 no_osfsia=1
7439 fi
7440
7441fi
7442
7443 if test -z "$no_osfsia" ; then
7444 if test -f /etc/sia/matrix.conf; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446$as_echo "yes" >&6; }
7447
7448$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7449
7450
7451$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7452
7453 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7454
7455 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7456 SIA_MSG="yes"
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459$as_echo "no" >&6; }
7460
7461$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7462
7463 fi
7464 fi
7465 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7466
7467 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7468
7469 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7470
7471 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7472
7473
7474$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7475
7476 ;;
7477
7478*-*-nto-qnx*)
7479 $as_echo "#define USE_PIPES 1" >>confdefs.h
7480
7481 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7482
7483
7484$as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7485
7486
7487$as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7488
7489
7490$as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7491
7492 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7493
7494 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7495
7496
7497$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7498
7499 enable_etc_default_login=no # has incompatible /etc/default/login
7500 case "$host" in
7501 *-*-nto-qnx6*)
7502 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7503
7504 ;;
7505 esac
7506 ;;
7507
7508*-*-ultrix*)
7509
7510$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7511
7512
7513$as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7514
7515 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7516
7517
7518$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7519
7520 ;;
7521
7522*-*-lynxos)
7523 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7524 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7525
7526
7527$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7528
7529 ;;
7530esac
7531
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7533$as_echo_n "checking compiler and flags for sanity... " >&6; }
7534if test "$cross_compiling" = yes; then :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7536$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7537
7538else
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h. */
7541 #include <stdio.h>
7542int
7543main ()
7544{
7545 exit(0);
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550if ac_fn_c_try_run "$LINENO"; then :
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552$as_echo "yes" >&6; }
7553else
7554
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7558
7559fi
7560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7561 conftest.$ac_objext conftest.beam conftest.$ac_ext
7562fi
7563
7564
7565# Checks for libraries.
7566ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7567if test "x$ac_cv_func_yp_match" = xyes; then :
7568
7569else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7571$as_echo_n "checking for yp_match in -lnsl... " >&6; }
7572if ${ac_cv_lib_nsl_yp_match+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574else
7575 ac_check_lib_save_LIBS=$LIBS
7576LIBS="-lnsl $LIBS"
7577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h. */
7579
7580/* Override any GCC internal prototype to avoid an error.
7581 Use char because int might match the return type of a GCC
7582 builtin and then its argument prototype would still apply. */
7583#ifdef __cplusplus
7584extern "C"
7585#endif
7586char yp_match ();
7587int
7588main ()
7589{
7590return yp_match ();
7591 ;
7592 return 0;
7593}
7594_ACEOF
7595if ac_fn_c_try_link "$LINENO"; then :
7596 ac_cv_lib_nsl_yp_match=yes
7597else
7598 ac_cv_lib_nsl_yp_match=no
7599fi
7600rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602LIBS=$ac_check_lib_save_LIBS
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7605$as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7606if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7607 cat >>confdefs.h <<_ACEOF
7608#define HAVE_LIBNSL 1
7609_ACEOF
7610
7611 LIBS="-lnsl $LIBS"
7612
7613fi
7614
7615fi
7616
7617ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7618if test "x$ac_cv_func_setsockopt" = xyes; then :
7619
7620else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7622$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7623if ${ac_cv_lib_socket_setsockopt+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625else
7626 ac_check_lib_save_LIBS=$LIBS
7627LIBS="-lsocket $LIBS"
7628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630
7631/* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7634#ifdef __cplusplus
7635extern "C"
7636#endif
7637char setsockopt ();
7638int
7639main ()
7640{
7641return setsockopt ();
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646if ac_fn_c_try_link "$LINENO"; then :
7647 ac_cv_lib_socket_setsockopt=yes
7648else
7649 ac_cv_lib_socket_setsockopt=no
7650fi
7651rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653LIBS=$ac_check_lib_save_LIBS
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7656$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7657if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7658 cat >>confdefs.h <<_ACEOF
7659#define HAVE_LIBSOCKET 1
7660_ACEOF
7661
7662 LIBS="-lsocket $LIBS"
7663
7664fi
7665
7666fi
7667
7668
7669for ac_func in dirname
7670do :
7671 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7672if test "x$ac_cv_func_dirname" = xyes; then :
7673 cat >>confdefs.h <<_ACEOF
7674#define HAVE_DIRNAME 1
7675_ACEOF
7676 for ac_header in libgen.h
7677do :
7678 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7679if test "x$ac_cv_header_libgen_h" = xyes; then :
7680 cat >>confdefs.h <<_ACEOF
7681#define HAVE_LIBGEN_H 1
7682_ACEOF
7683
7684fi
7685
7686done
7687
7688else
7689
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7691$as_echo_n "checking for dirname in -lgen... " >&6; }
7692if ${ac_cv_lib_gen_dirname+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694else
7695 ac_check_lib_save_LIBS=$LIBS
7696LIBS="-lgen $LIBS"
7697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h. */
7699
7700/* Override any GCC internal prototype to avoid an error.
7701 Use char because int might match the return type of a GCC
7702 builtin and then its argument prototype would still apply. */
7703#ifdef __cplusplus
7704extern "C"
7705#endif
7706char dirname ();
7707int
7708main ()
7709{
7710return dirname ();
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715if ac_fn_c_try_link "$LINENO"; then :
7716 ac_cv_lib_gen_dirname=yes
7717else
7718 ac_cv_lib_gen_dirname=no
7719fi
7720rm -f core conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722LIBS=$ac_check_lib_save_LIBS
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7725$as_echo "$ac_cv_lib_gen_dirname" >&6; }
7726if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7729$as_echo_n "checking for broken dirname... " >&6; }
7730if ${ac_cv_have_broken_dirname+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733
7734 save_LIBS="$LIBS"
7735 LIBS="$LIBS -lgen"
7736 if test "$cross_compiling" = yes; then :
7737 ac_cv_have_broken_dirname="no"
7738else
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740/* end confdefs.h. */
7741
7742#include <libgen.h>
7743#include <string.h>
7744
7745int main(int argc, char **argv) {
7746 char *s, buf[32];
7747
7748 strncpy(buf,"/etc", 32);
7749 s = dirname(buf);
7750 if (!s || strncmp(s, "/", 32) != 0) {
7751 exit(1);
7752 } else {
7753 exit(0);
7754 }
7755}
7756
7757_ACEOF
7758if ac_fn_c_try_run "$LINENO"; then :
7759 ac_cv_have_broken_dirname="no"
7760else
7761 ac_cv_have_broken_dirname="yes"
7762fi
7763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7764 conftest.$ac_objext conftest.beam conftest.$ac_ext
7765fi
7766
7767 LIBS="$save_LIBS"
7768
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7771$as_echo "$ac_cv_have_broken_dirname" >&6; }
7772 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7773 LIBS="$LIBS -lgen"
7774 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7775
7776 for ac_header in libgen.h
7777do :
7778 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7779if test "x$ac_cv_header_libgen_h" = xyes; then :
7780 cat >>confdefs.h <<_ACEOF
7781#define HAVE_LIBGEN_H 1
7782_ACEOF
7783
7784fi
7785
7786done
7787
7788 fi
7789
7790fi
7791
7792
7793fi
7794done
7795
7796
7797ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7798if test "x$ac_cv_func_getspnam" = xyes; then :
7799
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7802$as_echo_n "checking for getspnam in -lgen... " >&6; }
7803if ${ac_cv_lib_gen_getspnam+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805else
7806 ac_check_lib_save_LIBS=$LIBS
7807LIBS="-lgen $LIBS"
7808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h. */
7810
7811/* Override any GCC internal prototype to avoid an error.
7812 Use char because int might match the return type of a GCC
7813 builtin and then its argument prototype would still apply. */
7814#ifdef __cplusplus
7815extern "C"
7816#endif
7817char getspnam ();
7818int
7819main ()
7820{
7821return getspnam ();
7822 ;
7823 return 0;
7824}
7825_ACEOF
7826if ac_fn_c_try_link "$LINENO"; then :
7827 ac_cv_lib_gen_getspnam=yes
7828else
7829 ac_cv_lib_gen_getspnam=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833LIBS=$ac_check_lib_save_LIBS
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7836$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7837if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7838 LIBS="$LIBS -lgen"
7839fi
7840
7841fi
7842
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7844$as_echo_n "checking for library containing basename... " >&6; }
7845if ${ac_cv_search_basename+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847else
7848 ac_func_search_save_LIBS=$LIBS
7849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h. */
7851
7852/* Override any GCC internal prototype to avoid an error.
7853 Use char because int might match the return type of a GCC
7854 builtin and then its argument prototype would still apply. */
7855#ifdef __cplusplus
7856extern "C"
7857#endif
7858char basename ();
7859int
7860main ()
7861{
7862return basename ();
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867for ac_lib in '' gen; do
7868 if test -z "$ac_lib"; then
7869 ac_res="none required"
7870 else
7871 ac_res=-l$ac_lib
7872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7873 fi
7874 if ac_fn_c_try_link "$LINENO"; then :
7875 ac_cv_search_basename=$ac_res
7876fi
7877rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext
7879 if ${ac_cv_search_basename+:} false; then :
7880 break
7881fi
7882done
7883if ${ac_cv_search_basename+:} false; then :
7884
7885else
7886 ac_cv_search_basename=no
7887fi
7888rm conftest.$ac_ext
7889LIBS=$ac_func_search_save_LIBS
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7892$as_echo "$ac_cv_search_basename" >&6; }
7893ac_res=$ac_cv_search_basename
7894if test "$ac_res" != no; then :
7895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7896
7897$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7898
7899fi
7900
7901
7902
7903# Check whether --with-zlib was given.
7904if test "${with_zlib+set}" = set; then :
7905 withval=$with_zlib; if test "x$withval" = "xno" ; then
7906 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7907 elif test "x$withval" != "xyes"; then
7908 if test -d "$withval/lib"; then
7909 if test -n "${need_dash_r}"; then
7910 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7911 else
7912 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7913 fi
7914 else
7915 if test -n "${need_dash_r}"; then
7916 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7917 else
7918 LDFLAGS="-L${withval} ${LDFLAGS}"
7919 fi
7920 fi
7921 if test -d "$withval/include"; then
7922 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7923 else
7924 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7925 fi
7926 fi
7927
7928fi
7929
7930
7931ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7932if test "x$ac_cv_header_zlib_h" = xyes; then :
7933
7934else
7935 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7936fi
7937
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7940$as_echo_n "checking for deflate in -lz... " >&6; }
7941if ${ac_cv_lib_z_deflate+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943else
7944 ac_check_lib_save_LIBS=$LIBS
7945LIBS="-lz $LIBS"
7946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948
7949/* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7952#ifdef __cplusplus
7953extern "C"
7954#endif
7955char deflate ();
7956int
7957main ()
7958{
7959return deflate ();
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964if ac_fn_c_try_link "$LINENO"; then :
7965 ac_cv_lib_z_deflate=yes
7966else
7967 ac_cv_lib_z_deflate=no
7968fi
7969rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7971LIBS=$ac_check_lib_save_LIBS
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
7974$as_echo "$ac_cv_lib_z_deflate" >&6; }
7975if test "x$ac_cv_lib_z_deflate" = xyes; then :
7976 cat >>confdefs.h <<_ACEOF
7977#define HAVE_LIBZ 1
7978_ACEOF
7979
7980 LIBS="-lz $LIBS"
7981
7982else
7983
7984 saved_CPPFLAGS="$CPPFLAGS"
7985 saved_LDFLAGS="$LDFLAGS"
7986 save_LIBS="$LIBS"
7987 if test -n "${need_dash_r}"; then
7988 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
7989 else
7990 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
7991 fi
7992 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
7993 LIBS="$LIBS -lz"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h. */
7996
7997/* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
8000#ifdef __cplusplus
8001extern "C"
8002#endif
8003char deflate ();
8004int
8005main ()
8006{
8007return deflate ();
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_link "$LINENO"; then :
8013 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8014
8015else
8016
8017 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8018
8019
8020fi
8021rm -f core conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext conftest.$ac_ext
8023
8024
8025fi
8026
8027
8028
8029# Check whether --with-zlib-version-check was given.
8030if test "${with_zlib_version_check+set}" = set; then :
8031 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8032 zlib_check_nonfatal=1
8033 fi
8034
8035
8036fi
8037
8038
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8040$as_echo_n "checking for possibly buggy zlib... " >&6; }
8041if test "$cross_compiling" = yes; then :
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8043$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8044
8045else
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h. */
8048
8049#include <stdio.h>
8050#include <zlib.h>
8051
8052int
8053main ()
8054{
8055
8056 int a=0, b=0, c=0, d=0, n, v;
8057 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8058 if (n != 3 && n != 4)
8059 exit(1);
8060 v = a*1000000 + b*10000 + c*100 + d;
8061 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8062
8063 /* 1.1.4 is OK */
8064 if (a == 1 && b == 1 && c >= 4)
8065 exit(0);
8066
8067 /* 1.2.3 and up are OK */
8068 if (v >= 1020300)
8069 exit(0);
8070
8071 exit(2);
8072
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077if ac_fn_c_try_run "$LINENO"; then :
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8082$as_echo "yes" >&6; }
8083 if test -z "$zlib_check_nonfatal" ; then
8084 as_fn_error $? "*** zlib too old - check config.log ***
8085Your reported zlib version has known security problems. It's possible your
8086vendor has fixed these problems without changing the version number. If you
8087are sure this is the case, you can disable the check by running
8088\"./configure --without-zlib-version-check\".
8089If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8090See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8093$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8094 fi
8095
8096fi
8097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8098 conftest.$ac_objext conftest.beam conftest.$ac_ext
8099fi
8100
8101
8102ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8103if test "x$ac_cv_func_strcasecmp" = xyes; then :
8104
8105else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8107$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8108if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110else
8111 ac_check_lib_save_LIBS=$LIBS
8112LIBS="-lresolv $LIBS"
8113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h. */
8115
8116/* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8119#ifdef __cplusplus
8120extern "C"
8121#endif
8122char strcasecmp ();
8123int
8124main ()
8125{
8126return strcasecmp ();
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_link "$LINENO"; then :
8132 ac_cv_lib_resolv_strcasecmp=yes
8133else
8134 ac_cv_lib_resolv_strcasecmp=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138LIBS=$ac_check_lib_save_LIBS
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8141$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8142if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8143 LIBS="$LIBS -lresolv"
8144fi
8145
8146
8147fi
8148
8149for ac_func in utimes
8150do :
8151 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8152if test "x$ac_cv_func_utimes" = xyes; then :
8153 cat >>confdefs.h <<_ACEOF
8154#define HAVE_UTIMES 1
8155_ACEOF
8156
8157else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8159$as_echo_n "checking for utimes in -lc89... " >&6; }
8160if ${ac_cv_lib_c89_utimes+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162else
8163 ac_check_lib_save_LIBS=$LIBS
8164LIBS="-lc89 $LIBS"
8165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h. */
8167
8168/* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8171#ifdef __cplusplus
8172extern "C"
8173#endif
8174char utimes ();
8175int
8176main ()
8177{
8178return utimes ();
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_link "$LINENO"; then :
8184 ac_cv_lib_c89_utimes=yes
8185else
8186 ac_cv_lib_c89_utimes=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190LIBS=$ac_check_lib_save_LIBS
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8193$as_echo "$ac_cv_lib_c89_utimes" >&6; }
8194if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8195 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8196
8197 LIBS="$LIBS -lc89"
8198fi
8199
8200
8201fi
8202done
8203
8204
8205for ac_header in libutil.h
8206do :
8207 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8208if test "x$ac_cv_header_libutil_h" = xyes; then :
8209 cat >>confdefs.h <<_ACEOF
8210#define HAVE_LIBUTIL_H 1
8211_ACEOF
8212
8213fi
8214
8215done
8216
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8218$as_echo_n "checking for library containing login... " >&6; }
8219if ${ac_cv_search_login+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221else
8222 ac_func_search_save_LIBS=$LIBS
8223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h. */
8225
8226/* Override any GCC internal prototype to avoid an error.
8227 Use char because int might match the return type of a GCC
8228 builtin and then its argument prototype would still apply. */
8229#ifdef __cplusplus
8230extern "C"
8231#endif
8232char login ();
8233int
8234main ()
8235{
8236return login ();
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241for ac_lib in '' util bsd; do
8242 if test -z "$ac_lib"; then
8243 ac_res="none required"
8244 else
8245 ac_res=-l$ac_lib
8246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8247 fi
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 ac_cv_search_login=$ac_res
8250fi
8251rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext
8253 if ${ac_cv_search_login+:} false; then :
8254 break
8255fi
8256done
8257if ${ac_cv_search_login+:} false; then :
8258
8259else
8260 ac_cv_search_login=no
8261fi
8262rm conftest.$ac_ext
8263LIBS=$ac_func_search_save_LIBS
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8266$as_echo "$ac_cv_search_login" >&6; }
8267ac_res=$ac_cv_search_login
8268if test "$ac_res" != no; then :
8269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8270
8271$as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8272
8273fi
8274
8275for ac_func in fmt_scaled logout updwtmp logwtmp
8276do :
8277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8278ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8279if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8280 cat >>confdefs.h <<_ACEOF
8281#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8282_ACEOF
8283
8284fi
8285done
8286
8287
8288for ac_func in strftime
8289do :
8290 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8291if test "x$ac_cv_func_strftime" = xyes; then :
8292 cat >>confdefs.h <<_ACEOF
8293#define HAVE_STRFTIME 1
8294_ACEOF
8295
8296else
8297 # strftime is in -lintl on SCO UNIX.
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8299$as_echo_n "checking for strftime in -lintl... " >&6; }
8300if ${ac_cv_lib_intl_strftime+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302else
8303 ac_check_lib_save_LIBS=$LIBS
8304LIBS="-lintl $LIBS"
8305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h. */
8307
8308/* Override any GCC internal prototype to avoid an error.
8309 Use char because int might match the return type of a GCC
8310 builtin and then its argument prototype would still apply. */
8311#ifdef __cplusplus
8312extern "C"
8313#endif
8314char strftime ();
8315int
8316main ()
8317{
8318return strftime ();
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323if ac_fn_c_try_link "$LINENO"; then :
8324 ac_cv_lib_intl_strftime=yes
8325else
8326 ac_cv_lib_intl_strftime=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330LIBS=$ac_check_lib_save_LIBS
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8333$as_echo "$ac_cv_lib_intl_strftime" >&6; }
8334if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8335 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8336
8337LIBS="-lintl $LIBS"
8338fi
8339
8340fi
8341done
8342
8343
8344# Check for ALTDIRFUNC glob() extension
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8346$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h. */
8349
8350 #include <glob.h>
8351 #ifdef GLOB_ALTDIRFUNC
8352 FOUNDIT
8353 #endif
8354
8355_ACEOF
8356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8358
8359
8360$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8363$as_echo "yes" >&6; }
8364
8365else
8366
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368$as_echo "no" >&6; }
8369
8370
8371fi
8372rm -f conftest*
8373
8374
8375# Check for g.gl_matchc glob() extension
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8377$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h. */
8380 #include <glob.h>
8381int
8382main ()
8383{
8384 glob_t g; g.gl_matchc = 1;
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389if ac_fn_c_try_compile "$LINENO"; then :
8390
8391
8392$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8395$as_echo "yes" >&6; }
8396
8397else
8398
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
8401
8402fi
8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404
8405# Check for g.gl_statv glob() extension
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8407$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h. */
8410 #include <glob.h>
8411int
8412main ()
8413{
8414
8415#ifndef GLOB_KEEPSTAT
8416#error "glob does not support GLOB_KEEPSTAT extension"
8417#endif
8418glob_t g;
8419g.gl_statv = NULL;
8420
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425if ac_fn_c_try_compile "$LINENO"; then :
8426
8427
8428$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431$as_echo "yes" >&6; }
8432
8433else
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437
8438
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441
8442ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8443"
8444if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8445 ac_have_decl=1
8446else
8447 ac_have_decl=0
8448fi
8449
8450cat >>confdefs.h <<_ACEOF
8451#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8452_ACEOF
8453
8454
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8456$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8457if test "$cross_compiling" = yes; then :
8458
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8460$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8461 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8462
8463
8464
8465else
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h. */
8468
8469#include <sys/types.h>
8470#include <dirent.h>
8471int
8472main ()
8473{
8474
8475 struct dirent d;
8476 exit(sizeof(d.d_name)<=sizeof(char));
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_run "$LINENO"; then :
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484$as_echo "yes" >&6; }
8485else
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489
8490$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8491
8492
8493fi
8494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8495 conftest.$ac_objext conftest.beam conftest.$ac_ext
8496fi
8497
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8500$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8501if test -d "/proc/$$/fd" ; then
8502
8503$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8504
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8506$as_echo "yes" >&6; }
8507else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509$as_echo "no" >&6; }
8510fi
8511
8512# Check whether user wants S/Key support
8513SKEY_MSG="no"
8514
8515# Check whether --with-skey was given.
8516if test "${with_skey+set}" = set; then :
8517 withval=$with_skey;
8518 if test "x$withval" != "xno" ; then
8519
8520 if test "x$withval" != "xyes" ; then
8521 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8522 LDFLAGS="$LDFLAGS -L${withval}/lib"
8523 fi
8524
8525
8526$as_echo "#define SKEY 1" >>confdefs.h
8527
8528 LIBS="-lskey $LIBS"
8529 SKEY_MSG="yes"
8530
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8532$as_echo_n "checking for s/key support... " >&6; }
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h. */
8535
8536#include <stdio.h>
8537#include <skey.h>
8538
8539int
8540main ()
8541{
8542
8543 char *ff = skey_keyinfo(""); ff="";
8544 exit(0);
8545
8546 ;
8547 return 0;
8548}
8549_ACEOF
8550if ac_fn_c_try_link "$LINENO"; then :
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552$as_echo "yes" >&6; }
8553else
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556$as_echo "no" >&6; }
8557 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8558
8559fi
8560rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8563$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h. */
8566
8567#include <stdio.h>
8568#include <skey.h>
8569
8570int
8571main ()
8572{
8573
8574 (void)skeychallenge(NULL,"name","",0);
8575
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_compile "$LINENO"; then :
8581
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8583$as_echo "yes" >&6; }
8584
8585$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8586
8587else
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
8591
8592fi
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595
8596
8597fi
8598
8599
8600# Check whether user wants TCP wrappers support
8601TCPW_MSG="no"
8602
8603# Check whether --with-tcp-wrappers was given.
8604if test "${with_tcp_wrappers+set}" = set; then :
8605 withval=$with_tcp_wrappers;
8606 if test "x$withval" != "xno" ; then
8607 saved_LIBS="$LIBS"
8608 saved_LDFLAGS="$LDFLAGS"
8609 saved_CPPFLAGS="$CPPFLAGS"
8610 if test -n "${withval}" && \
8611 test "x${withval}" != "xyes"; then
8612 if test -d "${withval}/lib"; then
8613 if test -n "${need_dash_r}"; then
8614 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8615 else
8616 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8617 fi
8618 else
8619 if test -n "${need_dash_r}"; then
8620 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8621 else
8622 LDFLAGS="-L${withval} ${LDFLAGS}"
8623 fi
8624 fi
8625 if test -d "${withval}/include"; then
8626 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8627 else
8628 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8629 fi
8630 fi
8631 LIBS="-lwrap $LIBS"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8633$as_echo_n "checking for libwrap... " >&6; }
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h. */
8636
8637#include <sys/types.h>
8638#include <sys/socket.h>
8639#include <netinet/in.h>
8640#include <tcpd.h>
8641int deny_severity = 0, allow_severity = 0;
8642
8643int
8644main ()
8645{
8646
8647 hosts_access(0);
8648
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_link "$LINENO"; then :
8654
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8656$as_echo "yes" >&6; }
8657
8658$as_echo "#define LIBWRAP 1" >>confdefs.h
8659
8660 SSHDLIBS="$SSHDLIBS -lwrap"
8661 TCPW_MSG="yes"
8662
8663else
8664
8665 as_fn_error $? "*** libwrap missing" "$LINENO" 5
8666
8667
8668fi
8669rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 LIBS="$saved_LIBS"
8672 fi
8673
8674
8675fi
8676
8677
8678# Check whether user wants libedit support
8679LIBEDIT_MSG="no"
8680
8681# Check whether --with-libedit was given.
8682if test "${with_libedit+set}" = set; then :
8683 withval=$with_libedit; if test "x$withval" != "xno" ; then
8684 if test "x$withval" = "xyes" ; then
8685 # Extract the first word of "pkg-config", so it can be a program name with args.
8686set dummy pkg-config; ac_word=$2
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688$as_echo_n "checking for $ac_word... " >&6; }
8689if ${ac_cv_path_PKGCONFIG+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691else
8692 case $PKGCONFIG in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8695 ;;
8696 *)
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708done
8709 done
8710IFS=$as_save_IFS
8711
8712 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
8713 ;;
8714esac
8715fi
8716PKGCONFIG=$ac_cv_path_PKGCONFIG
8717if test -n "$PKGCONFIG"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8719$as_echo "$PKGCONFIG" >&6; }
8720else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723fi
8724
8725
8726 if test "x$PKGCONFIG" != "xno"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8728$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8729 if "$PKGCONFIG" libedit; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8731$as_echo "yes" >&6; }
8732 use_pkgconfig_for_libedit=yes
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
8736 fi
8737 fi
8738 else
8739 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8740 if test -n "${need_dash_r}"; then
8741 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8742 else
8743 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8744 fi
8745 fi
8746 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8747 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8748 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8749 else
8750 LIBEDIT="-ledit -lcurses"
8751 fi
8752 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8754$as_echo_n "checking for el_init in -ledit... " >&6; }
8755if ${ac_cv_lib_edit_el_init+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757else
8758 ac_check_lib_save_LIBS=$LIBS
8759LIBS="-ledit $OTHERLIBS
8760 $LIBS"
8761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h. */
8763
8764/* Override any GCC internal prototype to avoid an error.
8765 Use char because int might match the return type of a GCC
8766 builtin and then its argument prototype would still apply. */
8767#ifdef __cplusplus
8768extern "C"
8769#endif
8770char el_init ();
8771int
8772main ()
8773{
8774return el_init ();
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780 ac_cv_lib_edit_el_init=yes
8781else
8782 ac_cv_lib_edit_el_init=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786LIBS=$ac_check_lib_save_LIBS
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8789$as_echo "$ac_cv_lib_edit_el_init" >&6; }
8790if test "x$ac_cv_lib_edit_el_init" = xyes; then :
8791
8792$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8793
8794 LIBEDIT_MSG="yes"
8795
8796
8797else
8798 as_fn_error $? "libedit not found" "$LINENO" 5
8799fi
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8802$as_echo_n "checking if libedit version is compatible... " >&6; }
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h. */
8805 #include <histedit.h>
8806int
8807main ()
8808{
8809
8810 int i = H_SETSIZE;
8811 el_init("", NULL, NULL, NULL);
8812 exit(0);
8813
8814 ;
8815 return 0;
8816}
8817_ACEOF
8818if ac_fn_c_try_compile "$LINENO"; then :
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8820$as_echo "yes" >&6; }
8821else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
8824 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8825
8826fi
8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829
8830fi
8831
8832
8833AUDIT_MODULE=none
8834
8835# Check whether --with-audit was given.
8836if test "${with_audit+set}" = set; then :
8837 withval=$with_audit;
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8839$as_echo_n "checking for supported audit module... " >&6; }
8840 case "$withval" in
8841 bsm)
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8843$as_echo "bsm" >&6; }
8844 AUDIT_MODULE=bsm
8845 for ac_header in bsm/audit.h
8846do :
8847 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8848#ifdef HAVE_TIME_H
8849# include <time.h>
8850#endif
8851
8852
8853"
8854if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
8855 cat >>confdefs.h <<_ACEOF
8856#define HAVE_BSM_AUDIT_H 1
8857_ACEOF
8858
8859else
8860 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8861fi
8862
8863done
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8866$as_echo_n "checking for getaudit in -lbsm... " >&6; }
8867if ${ac_cv_lib_bsm_getaudit+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869else
8870 ac_check_lib_save_LIBS=$LIBS
8871LIBS="-lbsm $LIBS"
8872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h. */
8874
8875/* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878#ifdef __cplusplus
8879extern "C"
8880#endif
8881char getaudit ();
8882int
8883main ()
8884{
8885return getaudit ();
8886 ;
8887 return 0;
8888}
8889_ACEOF
8890if ac_fn_c_try_link "$LINENO"; then :
8891 ac_cv_lib_bsm_getaudit=yes
8892else
8893 ac_cv_lib_bsm_getaudit=no
8894fi
8895rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897LIBS=$ac_check_lib_save_LIBS
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8900$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8901if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
8902 cat >>confdefs.h <<_ACEOF
8903#define HAVE_LIBBSM 1
8904_ACEOF
8905
8906 LIBS="-lbsm $LIBS"
8907
8908else
8909 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8910fi
8911
8912 for ac_func in getaudit
8913do :
8914 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8915if test "x$ac_cv_func_getaudit" = xyes; then :
8916 cat >>confdefs.h <<_ACEOF
8917#define HAVE_GETAUDIT 1
8918_ACEOF
8919
8920else
8921 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8922fi
8923done
8924
8925 # These are optional
8926 for ac_func in getaudit_addr aug_get_machine
8927do :
8928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8929ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8930if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8931 cat >>confdefs.h <<_ACEOF
8932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8933_ACEOF
8934
8935fi
8936done
8937
8938
8939$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8940
8941 ;;
8942 linux)
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
8944$as_echo "linux" >&6; }
8945 AUDIT_MODULE=linux
8946 for ac_header in libaudit.h
8947do :
8948 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
8949if test "x$ac_cv_header_libaudit_h" = xyes; then :
8950 cat >>confdefs.h <<_ACEOF
8951#define HAVE_LIBAUDIT_H 1
8952_ACEOF
8953
8954fi
8955
8956done
8957
8958 SSHDLIBS="$SSHDLIBS -laudit"
8959
8960$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
8961
8962 ;;
8963 debug)
8964 AUDIT_MODULE=debug
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
8966$as_echo "debug" >&6; }
8967
8968$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
8969
8970 ;;
8971 no)
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974 ;;
8975 *)
8976 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
8977 ;;
8978 esac
8979
8980fi
8981
8982
8983for ac_func in \
8984 arc4random \
8985 arc4random_buf \
8986 arc4random_uniform \
8987 asprintf \
8988 b64_ntop \
8989 __b64_ntop \
8990 b64_pton \
8991 __b64_pton \
8992 bcopy \
8993 bindresvport_sa \
8994 clock \
8995 closefrom \
8996 dirfd \
8997 fchmod \
8998 fchown \
8999 freeaddrinfo \
9000 fstatvfs \
9001 futimes \
9002 getaddrinfo \
9003 getcwd \
9004 getgrouplist \
9005 getnameinfo \
9006 getopt \
9007 getpeereid \
9008 getpeerucred \
9009 _getpty \
9010 getrlimit \
9011 getttyent \
9012 glob \
9013 group_from_gid \
9014 inet_aton \
9015 inet_ntoa \
9016 inet_ntop \
9017 innetgr \
9018 login_getcapbool \
9019 md5_crypt \
9020 memmove \
9021 mkdtemp \
9022 mmap \
9023 ngetaddrinfo \
9024 nsleep \
9025 ogetaddrinfo \
9026 openlog_r \
9027 openpty \
9028 poll \
9029 prctl \
9030 pstat \
9031 readpassphrase \
9032 realpath \
9033 recvmsg \
9034 rresvport_af \
9035 sendmsg \
9036 setdtablesize \
9037 setegid \
9038 setenv \
9039 seteuid \
9040 setgroupent \
9041 setgroups \
9042 setlogin \
9043 setpassent\
9044 setpcred \
9045 setproctitle \
9046 setregid \
9047 setreuid \
9048 setrlimit \
9049 setsid \
9050 setvbuf \
9051 sigaction \
9052 sigvec \
9053 snprintf \
9054 socketpair \
9055 statfs \
9056 statvfs \
9057 strdup \
9058 strerror \
9059 strlcat \
9060 strlcpy \
9061 strmode \
9062 strnvis \
9063 strptime \
9064 strtonum \
9065 strtoll \
9066 strtoul \
9067 swap32 \
9068 sysconf \
9069 tcgetpgrp \
9070 timingsafe_bcmp \
9071 truncate \
9072 unsetenv \
9073 updwtmpx \
9074 user_from_uid \
9075 vasprintf \
9076 vhangup \
9077 vsnprintf \
9078 waitpid \
9079
9080do :
9081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9083if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9084 cat >>confdefs.h <<_ACEOF
9085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9086_ACEOF
9087
9088fi
9089done
9090
9091
9092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093/* end confdefs.h. */
9094 #include <ctype.h>
9095int
9096main ()
9097{
9098 return (isblank('a'));
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_link "$LINENO"; then :
9104
9105$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9106
9107
9108fi
9109rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111
9112# PKCS#11 support requires dlopen() and co
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9114$as_echo_n "checking for library containing dlopen... " >&6; }
9115if ${ac_cv_search_dlopen+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 ac_func_search_save_LIBS=$LIBS
9119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h. */
9121
9122/* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9125#ifdef __cplusplus
9126extern "C"
9127#endif
9128char dlopen ();
9129int
9130main ()
9131{
9132return dlopen ();
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137for ac_lib in '' dl; do
9138 if test -z "$ac_lib"; then
9139 ac_res="none required"
9140 else
9141 ac_res=-l$ac_lib
9142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9143 fi
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_search_dlopen=$ac_res
9146fi
9147rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext
9149 if ${ac_cv_search_dlopen+:} false; then :
9150 break
9151fi
9152done
9153if ${ac_cv_search_dlopen+:} false; then :
9154
9155else
9156 ac_cv_search_dlopen=no
9157fi
9158rm conftest.$ac_ext
9159LIBS=$ac_func_search_save_LIBS
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9162$as_echo "$ac_cv_search_dlopen" >&6; }
9163ac_res=$ac_cv_search_dlopen
9164if test "$ac_res" != no; then :
9165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9166
9167$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9168
9169
9170fi
9171
9172
9173# IRIX has a const char return value for gai_strerror()
9174for ac_func in gai_strerror
9175do :
9176 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9177if test "x$ac_cv_func_gai_strerror" = xyes; then :
9178 cat >>confdefs.h <<_ACEOF
9179#define HAVE_GAI_STRERROR 1
9180_ACEOF
9181
9182 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9183
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h. */
9186
9187#include <sys/types.h>
9188#include <sys/socket.h>
9189#include <netdb.h>
9190
9191const char *gai_strerror(int);
9192
9193int
9194main ()
9195{
9196
9197 char *str;
9198 str = gai_strerror(0);
9199
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205
9206
9207$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9208
9209fi
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211fi
9212done
9213
9214
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9216$as_echo_n "checking for library containing nanosleep... " >&6; }
9217if ${ac_cv_search_nanosleep+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219else
9220 ac_func_search_save_LIBS=$LIBS
9221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h. */
9223
9224/* Override any GCC internal prototype to avoid an error.
9225 Use char because int might match the return type of a GCC
9226 builtin and then its argument prototype would still apply. */
9227#ifdef __cplusplus
9228extern "C"
9229#endif
9230char nanosleep ();
9231int
9232main ()
9233{
9234return nanosleep ();
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239for ac_lib in '' rt posix4; do
9240 if test -z "$ac_lib"; then
9241 ac_res="none required"
9242 else
9243 ac_res=-l$ac_lib
9244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9245 fi
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 ac_cv_search_nanosleep=$ac_res
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext
9251 if ${ac_cv_search_nanosleep+:} false; then :
9252 break
9253fi
9254done
9255if ${ac_cv_search_nanosleep+:} false; then :
9256
9257else
9258 ac_cv_search_nanosleep=no
9259fi
9260rm conftest.$ac_ext
9261LIBS=$ac_func_search_save_LIBS
9262fi
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9264$as_echo "$ac_cv_search_nanosleep" >&6; }
9265ac_res=$ac_cv_search_nanosleep
9266if test "$ac_res" != no; then :
9267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9268
9269$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9270
9271fi
9272
9273
9274ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9275if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9276 for ac_func in getrusage
9277do :
9278 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9279if test "x$ac_cv_func_getrusage" = xyes; then :
9280 cat >>confdefs.h <<_ACEOF
9281#define HAVE_GETRUSAGE 1
9282_ACEOF
9283
9284fi
9285done
9286
9287fi
9288
9289ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9290#ifdef HAVE_STRING_H
9291# include <string.h>
9292#endif
9293
9294"
9295if test "x$ac_cv_have_decl_strsep" = xyes; then :
9296 for ac_func in strsep
9297do :
9298 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9299if test "x$ac_cv_func_strsep" = xyes; then :
9300 cat >>confdefs.h <<_ACEOF
9301#define HAVE_STRSEP 1
9302_ACEOF
9303
9304fi
9305done
9306
9307fi
9308
9309
9310ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9311
9312"
9313if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9314 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9315
9316else
9317 for ac_func in tcsendbreak
9318do :
9319 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9320if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9321 cat >>confdefs.h <<_ACEOF
9322#define HAVE_TCSENDBREAK 1
9323_ACEOF
9324
9325fi
9326done
9327
9328fi
9329
9330
9331ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9332"
9333if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9334 ac_have_decl=1
9335else
9336 ac_have_decl=0
9337fi
9338
9339cat >>confdefs.h <<_ACEOF
9340#define HAVE_DECL_H_ERRNO $ac_have_decl
9341_ACEOF
9342
9343
9344ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9345#include <sys/types.h>
9346#include <sys/socket.h>
9347
9348"
9349if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9350 ac_have_decl=1
9351else
9352 ac_have_decl=0
9353fi
9354
9355cat >>confdefs.h <<_ACEOF
9356#define HAVE_DECL_SHUT_RD $ac_have_decl
9357_ACEOF
9358
9359
9360ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9361#include <sys/types.h>
9362#ifdef HAVE_SYS_STAT_H
9363# include <sys/stat.h>
9364#endif
9365#ifdef HAVE_FCNTL_H
9366# include <fcntl.h>
9367#endif
9368
9369"
9370if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9371 ac_have_decl=1
9372else
9373 ac_have_decl=0
9374fi
9375
9376cat >>confdefs.h <<_ACEOF
9377#define HAVE_DECL_O_NONBLOCK $ac_have_decl
9378_ACEOF
9379
9380
9381ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9382#include <sys/types.h>
9383#include <sys/uio.h>
9384#include <unistd.h>
9385
9386"
9387if test "x$ac_cv_have_decl_writev" = xyes; then :
9388 ac_have_decl=1
9389else
9390 ac_have_decl=0
9391fi
9392
9393cat >>confdefs.h <<_ACEOF
9394#define HAVE_DECL_WRITEV $ac_have_decl
9395_ACEOF
9396
9397
9398ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9399#include <sys/param.h>
9400
9401"
9402if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9403 ac_have_decl=1
9404else
9405 ac_have_decl=0
9406fi
9407
9408cat >>confdefs.h <<_ACEOF
9409#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9410_ACEOF
9411
9412
9413ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9414#include <stddef.h>
9415
9416"
9417if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9418 ac_have_decl=1
9419else
9420 ac_have_decl=0
9421fi
9422
9423cat >>confdefs.h <<_ACEOF
9424#define HAVE_DECL_OFFSETOF $ac_have_decl
9425_ACEOF
9426
9427
9428for ac_func in setresuid
9429do :
9430 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9431if test "x$ac_cv_func_setresuid" = xyes; then :
9432 cat >>confdefs.h <<_ACEOF
9433#define HAVE_SETRESUID 1
9434_ACEOF
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9437$as_echo_n "checking if setresuid seems to work... " >&6; }
9438 if test "$cross_compiling" = yes; then :
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9440$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9441
9442else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
9445
9446#include <stdlib.h>
9447#include <errno.h>
9448
9449int
9450main ()
9451{
9452
9453 errno=0;
9454 setresuid(0,0,0);
9455 if (errno==ENOSYS)
9456 exit(1);
9457 else
9458 exit(0);
9459
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464if ac_fn_c_try_run "$LINENO"; then :
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9466$as_echo "yes" >&6; }
9467else
9468
9469$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9472$as_echo "not implemented" >&6; }
9473fi
9474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9475 conftest.$ac_objext conftest.beam conftest.$ac_ext
9476fi
9477
9478
9479fi
9480done
9481
9482
9483for ac_func in setresgid
9484do :
9485 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9486if test "x$ac_cv_func_setresgid" = xyes; then :
9487 cat >>confdefs.h <<_ACEOF
9488#define HAVE_SETRESGID 1
9489_ACEOF
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9492$as_echo_n "checking if setresgid seems to work... " >&6; }
9493 if test "$cross_compiling" = yes; then :
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9495$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9496
9497else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h. */
9500
9501#include <stdlib.h>
9502#include <errno.h>
9503
9504int
9505main ()
9506{
9507
9508 errno=0;
9509 setresgid(0,0,0);
9510 if (errno==ENOSYS)
9511 exit(1);
9512 else
9513 exit(0);
9514
9515 ;
9516 return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_run "$LINENO"; then :
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9521$as_echo "yes" >&6; }
9522else
9523
9524$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9527$as_echo "not implemented" >&6; }
9528fi
9529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9530 conftest.$ac_objext conftest.beam conftest.$ac_ext
9531fi
9532
9533
9534fi
9535done
9536
9537
9538for ac_func in gettimeofday time
9539do :
9540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9542if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9543 cat >>confdefs.h <<_ACEOF
9544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545_ACEOF
9546
9547fi
9548done
9549
9550for ac_func in endutent getutent getutid getutline pututline setutent
9551do :
9552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9553ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9554if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9555 cat >>confdefs.h <<_ACEOF
9556#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557_ACEOF
9558
9559fi
9560done
9561
9562for ac_func in utmpname
9563do :
9564 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9565if test "x$ac_cv_func_utmpname" = xyes; then :
9566 cat >>confdefs.h <<_ACEOF
9567#define HAVE_UTMPNAME 1
9568_ACEOF
9569
9570fi
9571done
9572
9573for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9574do :
9575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9576ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9577if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9578 cat >>confdefs.h <<_ACEOF
9579#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9580_ACEOF
9581
9582fi
9583done
9584
9585for ac_func in setutxdb setutxent utmpxname
9586do :
9587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9589if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9590 cat >>confdefs.h <<_ACEOF
9591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9592_ACEOF
9593
9594fi
9595done
9596
9597for ac_func in getlastlogxbyname
9598do :
9599 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9600if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
9601 cat >>confdefs.h <<_ACEOF
9602#define HAVE_GETLASTLOGXBYNAME 1
9603_ACEOF
9604
9605fi
9606done
9607
9608
9609ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9610if test "x$ac_cv_func_daemon" = xyes; then :
9611
9612$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9613
9614else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9616$as_echo_n "checking for daemon in -lbsd... " >&6; }
9617if ${ac_cv_lib_bsd_daemon+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619else
9620 ac_check_lib_save_LIBS=$LIBS
9621LIBS="-lbsd $LIBS"
9622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h. */
9624
9625/* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9628#ifdef __cplusplus
9629extern "C"
9630#endif
9631char daemon ();
9632int
9633main ()
9634{
9635return daemon ();
9636 ;
9637 return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641 ac_cv_lib_bsd_daemon=yes
9642else
9643 ac_cv_lib_bsd_daemon=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9650$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9651if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
9652 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9653
9654fi
9655
9656
9657fi
9658
9659
9660ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9661if test "x$ac_cv_func_getpagesize" = xyes; then :
9662
9663$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9664
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9667$as_echo_n "checking for getpagesize in -lucb... " >&6; }
9668if ${ac_cv_lib_ucb_getpagesize+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670else
9671 ac_check_lib_save_LIBS=$LIBS
9672LIBS="-lucb $LIBS"
9673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682char getpagesize ();
9683int
9684main ()
9685{
9686return getpagesize ();
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692 ac_cv_lib_ucb_getpagesize=yes
9693else
9694 ac_cv_lib_ucb_getpagesize=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698LIBS=$ac_check_lib_save_LIBS
9699fi
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9701$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9702if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
9703 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9704
9705fi
9706
9707
9708fi
9709
9710
9711# Check for broken snprintf
9712if test "x$ac_cv_func_snprintf" = "xyes" ; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9714$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9715 if test "$cross_compiling" = yes; then :
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9717$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9718
9719else
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h. */
9722 #include <stdio.h>
9723int
9724main ()
9725{
9726
9727 char b[5];
9728 snprintf(b,5,"123456789");
9729 exit(b[4]!='\0');
9730
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_run "$LINENO"; then :
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737$as_echo "yes" >&6; }
9738else
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
9742
9743$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9744
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9746$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9747
9748fi
9749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9750 conftest.$ac_objext conftest.beam conftest.$ac_ext
9751fi
9752
9753fi
9754
9755# If we don't have a working asprintf, then we strongly depend on vsnprintf
9756# returning the right thing on overflow: the number of characters it tried to
9757# create (as per SUSv3)
9758if test "x$ac_cv_func_asprintf" != "xyes" && \
9759 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9761$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9762 if test "$cross_compiling" = yes; then :
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9764$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9765
9766else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h. */
9769
9770#include <sys/types.h>
9771#include <stdio.h>
9772#include <stdarg.h>
9773
9774int x_snprintf(char *str,size_t count,const char *fmt,...)
9775{
9776 size_t ret; va_list ap;
9777 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9778 return ret;
9779}
9780
9781int
9782main ()
9783{
9784
9785 char x[1];
9786 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9787
9788 ;
9789 return 0;
9790}
9791_ACEOF
9792if ac_fn_c_try_run "$LINENO"; then :
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794$as_echo "yes" >&6; }
9795else
9796
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799
9800$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9803$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9804
9805fi
9806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9807 conftest.$ac_objext conftest.beam conftest.$ac_ext
9808fi
9809
9810fi
9811
9812# On systems where [v]snprintf is broken, but is declared in stdio,
9813# check that the fmt argument is const char * or just char *.
9814# This is only useful for when BROKEN_SNPRINTF
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9816$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h. */
9819
9820#include <stdio.h>
9821int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9822
9823int
9824main ()
9825{
9826
9827 snprintf(0, 0, 0);
9828
9829 ;
9830 return 0;
9831}
9832_ACEOF
9833if ac_fn_c_try_compile "$LINENO"; then :
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9835$as_echo "yes" >&6; }
9836
9837$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9838
9839else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
9842 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9843
9844fi
9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846
9847# Check for missing getpeereid (or equiv) support
9848NO_PEERCHECK=""
9849if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9851$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h. */
9854
9855#include <sys/types.h>
9856#include <sys/socket.h>
9857int
9858main ()
9859{
9860int i = SO_PEERCRED;
9861 ;
9862 return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"; then :
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9867$as_echo "yes" >&6; }
9868
9869$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9870
9871
9872else
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874$as_echo "no" >&6; }
9875 NO_PEERCHECK=1
9876
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879fi
9880
9881if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9883$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9884if test "$cross_compiling" = yes; then :
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9887$as_echo "yes" >&6; }
9888 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9889
9890
9891
9892else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h. */
9895
9896#include <stdlib.h>
9897
9898int
9899main ()
9900{
9901
9902 char template[]="conftest.mkstemp-test";
9903 if (mkstemp(template) == -1)
9904 exit(1);
9905 unlink(template);
9906 exit(0);
9907
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_run "$LINENO"; then :
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
9916
9917else
9918
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920$as_echo "yes" >&6; }
9921
9922$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9923
9924
9925fi
9926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9927 conftest.$ac_objext conftest.beam conftest.$ac_ext
9928fi
9929
9930fi
9931
9932if test ! -z "$check_for_openpty_ctty_bug"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9934$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9935 if test "$cross_compiling" = yes; then :
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
9938$as_echo "cross-compiling, assuming yes" >&6; }
9939
9940
9941else
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h. */
9944
9945#include <stdio.h>
9946#include <sys/fcntl.h>
9947#include <sys/types.h>
9948#include <sys/wait.h>
9949
9950int
9951main ()
9952{
9953
9954 pid_t pid;
9955 int fd, ptyfd, ttyfd, status;
9956
9957 pid = fork();
9958 if (pid < 0) { /* failed */
9959 exit(1);
9960 } else if (pid > 0) { /* parent */
9961 waitpid(pid, &status, 0);
9962 if (WIFEXITED(status))
9963 exit(WEXITSTATUS(status));
9964 else
9965 exit(2);
9966 } else { /* child */
9967 close(0); close(1); close(2);
9968 setsid();
9969 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
9970 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
9971 if (fd >= 0)
9972 exit(3); /* Acquired ctty: broken */
9973 else
9974 exit(0); /* Did not acquire ctty: OK */
9975 }
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981if ac_fn_c_try_run "$LINENO"; then :
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9984$as_echo "yes" >&6; }
9985
9986else
9987
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
9991
9992
9993fi
9994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9995 conftest.$ac_objext conftest.beam conftest.$ac_ext
9996fi
9997
9998fi
9999
10000if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10001 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10003$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10004 if test "$cross_compiling" = yes; then :
10005
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10007$as_echo "cross-compiling, assuming yes" >&6; }
10008
10009
10010else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h. */
10013
10014#include <stdio.h>
10015#include <sys/socket.h>
10016#include <netdb.h>
10017#include <errno.h>
10018#include <netinet/in.h>
10019
10020#define TEST_PORT "2222"
10021
10022int
10023main ()
10024{
10025
10026 int err, sock;
10027 struct addrinfo *gai_ai, *ai, hints;
10028 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10029
10030 memset(&hints, 0, sizeof(hints));
10031 hints.ai_family = PF_UNSPEC;
10032 hints.ai_socktype = SOCK_STREAM;
10033 hints.ai_flags = AI_PASSIVE;
10034
10035 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10036 if (err != 0) {
10037 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10038 exit(1);
10039 }
10040
10041 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10042 if (ai->ai_family != AF_INET6)
10043 continue;
10044
10045 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10046 sizeof(ntop), strport, sizeof(strport),
10047 NI_NUMERICHOST|NI_NUMERICSERV);
10048
10049 if (err != 0) {
10050 if (err == EAI_SYSTEM)
10051 perror("getnameinfo EAI_SYSTEM");
10052 else
10053 fprintf(stderr, "getnameinfo failed: %s\n",
10054 gai_strerror(err));
10055 exit(2);
10056 }
10057
10058 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10059 if (sock < 0)
10060 perror("socket");
10061 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10062 if (errno == EBADF)
10063 exit(3);
10064 }
10065 }
10066 exit(0);
10067
10068 ;
10069 return 0;
10070}
10071_ACEOF
10072if ac_fn_c_try_run "$LINENO"; then :
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075$as_echo "yes" >&6; }
10076
10077else
10078
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
10081 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10082
10083
10084fi
10085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10086 conftest.$ac_objext conftest.beam conftest.$ac_ext
10087fi
10088
10089fi
10090
10091if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10092 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10094$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10095 if test "$cross_compiling" = yes; then :
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10098$as_echo "cross-compiling, assuming no" >&6; }
10099
10100
10101else
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h. */
10104
10105#include <stdio.h>
10106#include <sys/socket.h>
10107#include <netdb.h>
10108#include <errno.h>
10109#include <netinet/in.h>
10110
10111#define TEST_PORT "2222"
10112
10113int
10114main ()
10115{
10116
10117 int err, sock;
10118 struct addrinfo *gai_ai, *ai, hints;
10119 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10120
10121 memset(&hints, 0, sizeof(hints));
10122 hints.ai_family = PF_UNSPEC;
10123 hints.ai_socktype = SOCK_STREAM;
10124 hints.ai_flags = AI_PASSIVE;
10125
10126 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10127 if (err != 0) {
10128 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10129 exit(1);
10130 }
10131
10132 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10133 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10134 continue;
10135
10136 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10137 sizeof(ntop), strport, sizeof(strport),
10138 NI_NUMERICHOST|NI_NUMERICSERV);
10139
10140 if (ai->ai_family == AF_INET && err != 0) {
10141 perror("getnameinfo");
10142 exit(2);
10143 }
10144 }
10145 exit(0);
10146
10147 ;
10148 return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_run "$LINENO"; then :
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10154$as_echo "yes" >&6; }
10155
10156$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10157
10158
10159else
10160
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
10163 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10164
10165
10166fi
10167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10168 conftest.$ac_objext conftest.beam conftest.$ac_ext
10169fi
10170
10171fi
10172
10173if test "x$check_for_conflicting_getspnam" = "x1"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10175$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177/* end confdefs.h. */
10178 #include <shadow.h>
10179int
10180main ()
10181{
10182 exit(0);
10183 ;
10184 return 0;
10185}
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"; then :
10188
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190$as_echo "no" >&6; }
10191
10192else
10193
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10195$as_echo "yes" >&6; }
10196
10197$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10198
10199
10200
10201fi
10202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203fi
10204
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10206$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10207if ${ac_cv_func_getpgrp_void+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209else
10210 # Use it with a single arg.
10211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h. */
10213$ac_includes_default
10214int
10215main ()
10216{
10217getpgrp (0);
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"; then :
10223 ac_cv_func_getpgrp_void=no
10224else
10225 ac_cv_func_getpgrp_void=yes
10226fi
10227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228
10229fi
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10231$as_echo "$ac_cv_func_getpgrp_void" >&6; }
10232if test $ac_cv_func_getpgrp_void = yes; then
10233
10234$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10235
10236fi
10237
10238
10239# Search for OpenSSL
10240saved_CPPFLAGS="$CPPFLAGS"
10241saved_LDFLAGS="$LDFLAGS"
10242
10243# Check whether --with-ssl-dir was given.
10244if test "${with_ssl_dir+set}" = set; then :
10245 withval=$with_ssl_dir;
10246 if test "x$withval" != "xno" ; then
10247 case "$withval" in
10248 # Relative paths
10249 ./*|../*) withval="`pwd`/$withval"
10250 esac
10251 if test -d "$withval/lib"; then
10252 if test -n "${need_dash_r}"; then
10253 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10254 else
10255 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10256 fi
10257 elif test -d "$withval/lib64"; then
10258 if test -n "${need_dash_r}"; then
10259 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10260 else
10261 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10262 fi
10263 else
10264 if test -n "${need_dash_r}"; then
10265 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10266 else
10267 LDFLAGS="-L${withval} ${LDFLAGS}"
10268 fi
10269 fi
10270 if test -d "$withval/include"; then
10271 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10272 else
10273 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10274 fi
10275 fi
10276
10277
10278fi
10279
10280LIBS="-lcrypto $LIBS"
10281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h. */
10283
10284/* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287#ifdef __cplusplus
10288extern "C"
10289#endif
10290char RAND_add ();
10291int
10292main ()
10293{
10294return RAND_add ();
10295 ;
10296 return 0;
10297}
10298_ACEOF
10299if ac_fn_c_try_link "$LINENO"; then :
10300
10301$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10302
10303else
10304
10305 if test -n "${need_dash_r}"; then
10306 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10307 else
10308 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10309 fi
10310 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10311 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10312if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10313
10314else
10315 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10316fi
10317
10318
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h. */
10321
10322/* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328char RAND_add ();
10329int
10330main ()
10331{
10332return RAND_add ();
10333 ;
10334 return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10339
10340else
10341
10342 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10343
10344
10345fi
10346rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348
10349
10350fi
10351rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353
10354# Determine OpenSSL header version
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10356$as_echo_n "checking OpenSSL header version... " >&6; }
10357if test "$cross_compiling" = yes; then :
10358
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10360$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10361
10362
10363else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h. */
10366
10367#include <stdio.h>
10368#include <string.h>
10369#include <openssl/opensslv.h>
10370#define DATA "conftest.sslincver"
10371
10372int
10373main ()
10374{
10375
10376 FILE *fd;
10377 int rc;
10378
10379 fd = fopen(DATA,"w");
10380 if(fd == NULL)
10381 exit(1);
10382
10383 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10384 exit(1);
10385
10386 exit(0);
10387
10388 ;
10389 return 0;
10390}
10391_ACEOF
10392if ac_fn_c_try_run "$LINENO"; then :
10393
10394 ssl_header_ver=`cat conftest.sslincver`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10396$as_echo "$ssl_header_ver" >&6; }
10397
10398else
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10401$as_echo "not found" >&6; }
10402 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10403
10404fi
10405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10406 conftest.$ac_objext conftest.beam conftest.$ac_ext
10407fi
10408
10409
10410# Determine OpenSSL library version
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10412$as_echo_n "checking OpenSSL library version... " >&6; }
10413if test "$cross_compiling" = yes; then :
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10416$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10417
10418
10419else
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421/* end confdefs.h. */
10422
10423#include <stdio.h>
10424#include <string.h>
10425#include <openssl/opensslv.h>
10426#include <openssl/crypto.h>
10427#define DATA "conftest.ssllibver"
10428
10429int
10430main ()
10431{
10432
10433 FILE *fd;
10434 int rc;
10435
10436 fd = fopen(DATA,"w");
10437 if(fd == NULL)
10438 exit(1);
10439
10440 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10441 exit(1);
10442
10443 exit(0);
10444
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_run "$LINENO"; then :
10450
10451 ssl_library_ver=`cat conftest.ssllibver`
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10453$as_echo "$ssl_library_ver" >&6; }
10454
10455else
10456
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10458$as_echo "not found" >&6; }
10459 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10460
10461fi
10462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10463 conftest.$ac_objext conftest.beam conftest.$ac_ext
10464fi
10465
10466
10467
10468# Check whether --with-openssl-header-check was given.
10469if test "${with_openssl_header_check+set}" = set; then :
10470 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10471 openssl_check_nonfatal=1
10472 fi
10473
10474
10475fi
10476
10477
10478# Sanity check OpenSSL headers
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10480$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10481if test "$cross_compiling" = yes; then :
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10484$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10485
10486
10487else
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h. */
10490
10491#include <string.h>
10492#include <openssl/opensslv.h>
10493
10494int
10495main ()
10496{
10497
10498 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
10499
10500 ;
10501 return 0;
10502}
10503_ACEOF
10504if ac_fn_c_try_run "$LINENO"; then :
10505
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507$as_echo "yes" >&6; }
10508
10509else
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513 if test "x$openssl_check_nonfatal" = "x"; then
10514 as_fn_error $? "Your OpenSSL headers do not match your
10515library. Check config.log for details.
10516If you are sure your installation is consistent, you can disable the check
10517by running \"./configure --without-openssl-header-check\".
10518Also see contrib/findssl.sh for help identifying header/library mismatches.
10519" "$LINENO" 5
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10522library. Check config.log for details.
10523Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10524$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10525library. Check config.log for details.
10526Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10527 fi
10528
10529fi
10530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10531 conftest.$ac_objext conftest.beam conftest.$ac_ext
10532fi
10533
10534
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10536$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h. */
10539 #include <openssl/evp.h>
10540int
10541main ()
10542{
10543 SSLeay_add_all_algorithms();
10544 ;
10545 return 0;
10546}
10547_ACEOF
10548if ac_fn_c_try_link "$LINENO"; then :
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10551$as_echo "yes" >&6; }
10552
10553else
10554
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556$as_echo "no" >&6; }
10557 saved_LIBS="$LIBS"
10558 LIBS="$LIBS -ldl"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10560$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h. */
10563 #include <openssl/evp.h>
10564int
10565main ()
10566{
10567 SSLeay_add_all_algorithms();
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572if ac_fn_c_try_link "$LINENO"; then :
10573
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575$as_echo "yes" >&6; }
10576
10577else
10578
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
10581 LIBS="$saved_LIBS"
10582
10583
10584fi
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587
10588
10589fi
10590rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592
10593for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10594do :
10595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10598 cat >>confdefs.h <<_ACEOF
10599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10600_ACEOF
10601
10602fi
10603done
10604
10605
10606
10607# Check whether --with-ssl-engine was given.
10608if test "${with_ssl_engine+set}" = set; then :
10609 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10611$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h. */
10614
10615#include <openssl/engine.h>
10616
10617int
10618main ()
10619{
10620
10621 ENGINE_load_builtin_engines();
10622 ENGINE_register_all_complete();
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"; then :
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630$as_echo "yes" >&6; }
10631
10632$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10633
10634
10635else
10636 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10637
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 fi
10641
10642fi
10643
10644
10645# Check for OpenSSL without EVP_aes_{192,256}_cbc
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10647$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649/* end confdefs.h. */
10650
10651#include <string.h>
10652#include <openssl/evp.h>
10653
10654int
10655main ()
10656{
10657
10658 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
10659
10660 ;
10661 return 0;
10662}
10663_ACEOF
10664if ac_fn_c_try_link "$LINENO"; then :
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668
10669else
10670
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672$as_echo "yes" >&6; }
10673
10674$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10675
10676
10677
10678fi
10679rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10683$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h. */
10686
10687#include <string.h>
10688#include <openssl/evp.h>
10689
10690int
10691main ()
10692{
10693
10694 if(EVP_DigestUpdate(NULL, NULL,0))
10695 exit(0);
10696
10697 ;
10698 return 0;
10699}
10700_ACEOF
10701if ac_fn_c_try_link "$LINENO"; then :
10702
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704$as_echo "yes" >&6; }
10705
10706else
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
10710
10711$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10712
10713
10714
10715fi
10716rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718
10719# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10720# because the system crypt() is more featureful.
10721if test "x$check_for_libcrypt_before" = "x1"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10723$as_echo_n "checking for crypt in -lcrypt... " >&6; }
10724if ${ac_cv_lib_crypt_crypt+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726else
10727 ac_check_lib_save_LIBS=$LIBS
10728LIBS="-lcrypt $LIBS"
10729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h. */
10731
10732/* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735#ifdef __cplusplus
10736extern "C"
10737#endif
10738char crypt ();
10739int
10740main ()
10741{
10742return crypt ();
10743 ;
10744 return 0;
10745}
10746_ACEOF
10747if ac_fn_c_try_link "$LINENO"; then :
10748 ac_cv_lib_crypt_crypt=yes
10749else
10750 ac_cv_lib_crypt_crypt=no
10751fi
10752rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754LIBS=$ac_check_lib_save_LIBS
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10757$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10758if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10759 cat >>confdefs.h <<_ACEOF
10760#define HAVE_LIBCRYPT 1
10761_ACEOF
10762
10763 LIBS="-lcrypt $LIBS"
10764
10765fi
10766
10767fi
10768
10769# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10770# version in OpenSSL.
10771if test "x$check_for_libcrypt_later" = "x1"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10773$as_echo_n "checking for crypt in -lcrypt... " >&6; }
10774if ${ac_cv_lib_crypt_crypt+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776else
10777 ac_check_lib_save_LIBS=$LIBS
10778LIBS="-lcrypt $LIBS"
10779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h. */
10781
10782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785#ifdef __cplusplus
10786extern "C"
10787#endif
10788char crypt ();
10789int
10790main ()
10791{
10792return crypt ();
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"; then :
10798 ac_cv_lib_crypt_crypt=yes
10799else
10800 ac_cv_lib_crypt_crypt=no
10801fi
10802rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804LIBS=$ac_check_lib_save_LIBS
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10807$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10808if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10809 LIBS="$LIBS -lcrypt"
10810fi
10811
10812fi
10813
10814# Search for SHA256 support in libc and/or OpenSSL
10815for ac_func in SHA256_Update EVP_sha256
10816do :
10817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10819if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10820 cat >>confdefs.h <<_ACEOF
10821#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10822_ACEOF
10823 TEST_SSH_SHA256=yes
10824else
10825 TEST_SSH_SHA256=no
10826fi
10827done
10828
10829
10830
10831# Check complete ECC support in OpenSSL
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10833$as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h. */
10836
10837#include <openssl/ec.h>
10838#include <openssl/ecdh.h>
10839#include <openssl/ecdsa.h>
10840#include <openssl/evp.h>
10841#include <openssl/objects.h>
10842#include <openssl/opensslv.h>
10843#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10844# error "OpenSSL < 0.9.8g has unreliable ECC code"
10845#endif
10846
10847int
10848main ()
10849{
10850
10851 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10852 const EVP_MD *m = EVP_sha512(); /* We need this too */
10853
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858if ac_fn_c_try_link "$LINENO"; then :
10859
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861$as_echo "yes" >&6; }
10862
10863$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10864
10865 TEST_SSH_ECC=yes
10866 COMMENT_OUT_ECC=""
10867
10868else
10869
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871$as_echo "no" >&6; }
10872 TEST_SSH_ECC=no
10873 COMMENT_OUT_ECC="#no ecc#"
10874
10875
10876fi
10877rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879
10880
10881
10882saved_LIBS="$LIBS"
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10884$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10885if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887else
10888 ac_check_lib_save_LIBS=$LIBS
10889LIBS="-liaf $LIBS"
10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h. */
10892
10893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896#ifdef __cplusplus
10897extern "C"
10898#endif
10899char ia_openinfo ();
10900int
10901main ()
10902{
10903return ia_openinfo ();
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_iaf_ia_openinfo=yes
10910else
10911 ac_cv_lib_iaf_ia_openinfo=no
10912fi
10913rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915LIBS=$ac_check_lib_save_LIBS
10916fi
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10918$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10919if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
10920
10921 LIBS="$LIBS -liaf"
10922 for ac_func in set_id
10923do :
10924 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10925if test "x$ac_cv_func_set_id" = xyes; then :
10926 cat >>confdefs.h <<_ACEOF
10927#define HAVE_SET_ID 1
10928_ACEOF
10929 SSHDLIBS="$SSHDLIBS -liaf"
10930
10931$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10932
10933
10934fi
10935done
10936
10937
10938fi
10939
10940LIBS="$saved_LIBS"
10941
10942### Configure cryptographic random number support
10943
10944# Check wheter OpenSSL seeds itself
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10946$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10947if test "$cross_compiling" = yes; then :
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10950$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10951 # This is safe, since we will fatal() at runtime if
10952 # OpenSSL is not seeded correctly.
10953 OPENSSL_SEEDS_ITSELF=yes
10954
10955
10956else
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h. */
10959
10960#include <string.h>
10961#include <openssl/rand.h>
10962
10963int
10964main ()
10965{
10966
10967 exit(RAND_status() == 1 ? 0 : 1);
10968
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973if ac_fn_c_try_run "$LINENO"; then :
10974
10975 OPENSSL_SEEDS_ITSELF=yes
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10977$as_echo "yes" >&6; }
10978
10979else
10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
10983
10984fi
10985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10986 conftest.$ac_objext conftest.beam conftest.$ac_ext
10987fi
10988
10989
10990# PRNGD TCP socket
10991
10992# Check whether --with-prngd-port was given.
10993if test "${with_prngd_port+set}" = set; then :
10994 withval=$with_prngd_port;
10995 case "$withval" in
10996 no)
10997 withval=""
10998 ;;
10999 [0-9]*)
11000 ;;
11001 *)
11002 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11003 ;;
11004 esac
11005 if test ! -z "$withval" ; then
11006 PRNGD_PORT="$withval"
11007
11008cat >>confdefs.h <<_ACEOF
11009#define PRNGD_PORT $PRNGD_PORT
11010_ACEOF
11011
11012 fi
11013
11014
11015fi
11016
11017
11018# PRNGD Unix domain socket
11019
11020# Check whether --with-prngd-socket was given.
11021if test "${with_prngd_socket+set}" = set; then :
11022 withval=$with_prngd_socket;
11023 case "$withval" in
11024 yes)
11025 withval="/var/run/egd-pool"
11026 ;;
11027 no)
11028 withval=""
11029 ;;
11030 /*)
11031 ;;
11032 *)
11033 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11034 ;;
11035 esac
11036
11037 if test ! -z "$withval" ; then
11038 if test ! -z "$PRNGD_PORT" ; then
11039 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11040 fi
11041 if test ! -r "$withval" ; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11043$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11044 fi
11045 PRNGD_SOCKET="$withval"
11046
11047cat >>confdefs.h <<_ACEOF
11048#define PRNGD_SOCKET "$PRNGD_SOCKET"
11049_ACEOF
11050
11051 fi
11052
11053else
11054
11055 # Check for existing socket only if we don't have a random device already
11056 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11058$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11059 # Insert other locations here
11060 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11061 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11062 PRNGD_SOCKET="$sock"
11063 cat >>confdefs.h <<_ACEOF
11064#define PRNGD_SOCKET "$PRNGD_SOCKET"
11065_ACEOF
11066
11067 break;
11068 fi
11069 done
11070 if test ! -z "$PRNGD_SOCKET" ; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11072$as_echo "$PRNGD_SOCKET" >&6; }
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11075$as_echo "not found" >&6; }
11076 fi
11077 fi
11078
11079
11080fi
11081
11082
11083# Which randomness source do we use?
11084if test ! -z "$PRNGD_PORT" ; then
11085 RAND_MSG="PRNGd port $PRNGD_PORT"
11086elif test ! -z "$PRNGD_SOCKET" ; then
11087 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11088elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11089
11090$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11091
11092 RAND_MSG="OpenSSL internal ONLY"
11093else
11094 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
11095fi
11096
11097# Check for PAM libs
11098PAM_MSG="no"
11099
11100# Check whether --with-pam was given.
11101if test "${with_pam+set}" = set; then :
11102 withval=$with_pam;
11103 if test "x$withval" != "xno" ; then
11104 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11105 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11106 as_fn_error $? "PAM headers not found" "$LINENO" 5
11107 fi
11108
11109 saved_LIBS="$LIBS"
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11111$as_echo_n "checking for dlopen in -ldl... " >&6; }
11112if ${ac_cv_lib_dl_dlopen+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114else
11115 ac_check_lib_save_LIBS=$LIBS
11116LIBS="-ldl $LIBS"
11117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118/* end confdefs.h. */
11119
11120/* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11123#ifdef __cplusplus
11124extern "C"
11125#endif
11126char dlopen ();
11127int
11128main ()
11129{
11130return dlopen ();
11131 ;
11132 return 0;
11133}
11134_ACEOF
11135if ac_fn_c_try_link "$LINENO"; then :
11136 ac_cv_lib_dl_dlopen=yes
11137else
11138 ac_cv_lib_dl_dlopen=no
11139fi
11140rm -f core conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142LIBS=$ac_check_lib_save_LIBS
11143fi
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11145$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11146if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11147 cat >>confdefs.h <<_ACEOF
11148#define HAVE_LIBDL 1
11149_ACEOF
11150
11151 LIBS="-ldl $LIBS"
11152
11153fi
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11156$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11157if ${ac_cv_lib_pam_pam_set_item+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159else
11160 ac_check_lib_save_LIBS=$LIBS
11161LIBS="-lpam $LIBS"
11162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h. */
11164
11165/* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168#ifdef __cplusplus
11169extern "C"
11170#endif
11171char pam_set_item ();
11172int
11173main ()
11174{
11175return pam_set_item ();
11176 ;
11177 return 0;
11178}
11179_ACEOF
11180if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_pam_pam_set_item=yes
11182else
11183 ac_cv_lib_pam_pam_set_item=no
11184fi
11185rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187LIBS=$ac_check_lib_save_LIBS
11188fi
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11190$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11191if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
11192 cat >>confdefs.h <<_ACEOF
11193#define HAVE_LIBPAM 1
11194_ACEOF
11195
11196 LIBS="-lpam $LIBS"
11197
11198else
11199 as_fn_error $? "*** libpam missing" "$LINENO" 5
11200fi
11201
11202 for ac_func in pam_getenvlist
11203do :
11204 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11205if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
11206 cat >>confdefs.h <<_ACEOF
11207#define HAVE_PAM_GETENVLIST 1
11208_ACEOF
11209
11210fi
11211done
11212
11213 for ac_func in pam_putenv
11214do :
11215 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11216if test "x$ac_cv_func_pam_putenv" = xyes; then :
11217 cat >>confdefs.h <<_ACEOF
11218#define HAVE_PAM_PUTENV 1
11219_ACEOF
11220
11221fi
11222done
11223
11224 LIBS="$saved_LIBS"
11225
11226 PAM_MSG="yes"
11227
11228 SSHDLIBS="$SSHDLIBS -lpam"
11229
11230$as_echo "#define USE_PAM 1" >>confdefs.h
11231
11232
11233 if test $ac_cv_lib_dl_dlopen = yes; then
11234 case "$LIBS" in
11235 *-ldl*)
11236 # libdl already in LIBS
11237 ;;
11238 *)
11239 SSHDLIBS="$SSHDLIBS -ldl"
11240 ;;
11241 esac
11242 fi
11243 fi
11244
11245
11246fi
11247
11248
11249# Check for older PAM
11250if test "x$PAM_MSG" = "xyes" ; then
11251 # Check PAM strerror arguments (old PAM)
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11253$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255/* end confdefs.h. */
11256
11257#include <stdlib.h>
11258#if defined(HAVE_SECURITY_PAM_APPL_H)
11259#include <security/pam_appl.h>
11260#elif defined (HAVE_PAM_PAM_APPL_H)
11261#include <pam/pam_appl.h>
11262#endif
11263
11264int
11265main ()
11266{
11267
11268(void)pam_strerror((pam_handle_t *)NULL, -1);
11269
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_compile "$LINENO"; then :
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277else
11278
11279
11280$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11281
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11283$as_echo "yes" >&6; }
11284 PAM_MSG="yes (old library)"
11285
11286
11287fi
11288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289fi
11290
11291SSH_PRIVSEP_USER=sshd
11292
11293# Check whether --with-privsep-user was given.
11294if test "${with_privsep_user+set}" = set; then :
11295 withval=$with_privsep_user;
11296 if test -n "$withval" && test "x$withval" != "xno" && \
11297 test "x${withval}" != "xyes"; then
11298 SSH_PRIVSEP_USER=$withval
11299 fi
11300
11301
11302fi
11303
11304
11305cat >>confdefs.h <<_ACEOF
11306#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11307_ACEOF
11308
11309
11310
11311# Decide which sandbox style to use
11312sandbox_arg=""
11313
11314# Check whether --with-sandbox was given.
11315if test "${with_sandbox+set}" = set; then :
11316 withval=$with_sandbox;
11317 if test "x$withval" = "xyes" ; then
11318 sandbox_arg=""
11319 else
11320 sandbox_arg="$withval"
11321 fi
11322
11323
11324fi
11325
11326if test "x$sandbox_arg" = "xsystrace" || \
11327 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11328 test "x$have_systr_policy_kill" != "x1" && \
11329 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11330 SANDBOX_STYLE="systrace"
11331
11332$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11333
11334elif test "x$sandbox_arg" = "xdarwin" || \
11335 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11336 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11337 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11338 "x$ac_cv_header_sandbox_h" != "xyes" && \
11339 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11340 SANDBOX_STYLE="darwin"
11341
11342$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11343
11344elif test "x$sandbox_arg" = "xrlimit" || \
11345 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then
11346 test "x$ac_cv_func_setrlimit" != "xyes" && \
11347 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11348 SANDBOX_STYLE="rlimit"
11349
11350$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11351
11352elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11353 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11354 SANDBOX_STYLE="none"
11355
11356$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
11357
11358else
11359 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
11360fi
11361
11362# Cheap hack to ensure NEWS-OS libraries are arranged right.
11363if test ! -z "$SONY" ; then
11364 LIBS="$LIBS -liberty";
11365fi
11366
11367# Check for long long datatypes
11368ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11369if test "x$ac_cv_type_long_long" = xyes; then :
11370
11371cat >>confdefs.h <<_ACEOF
11372#define HAVE_LONG_LONG 1
11373_ACEOF
11374
11375
11376fi
11377ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11378if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
11379
11380cat >>confdefs.h <<_ACEOF
11381#define HAVE_UNSIGNED_LONG_LONG 1
11382_ACEOF
11383
11384
11385fi
11386ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11387if test "x$ac_cv_type_long_double" = xyes; then :
11388
11389cat >>confdefs.h <<_ACEOF
11390#define HAVE_LONG_DOUBLE 1
11391_ACEOF
11392
11393
11394fi
11395
11396
11397# Check datatype sizes
11398# The cast to long int works around a bug in the HP C Compiler
11399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11401# This bug is HP SR number 8606223364.
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11403$as_echo_n "checking size of char... " >&6; }
11404if ${ac_cv_sizeof_char+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406else
11407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11408
11409else
11410 if test "$ac_cv_type_char" = yes; then
11411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11413as_fn_error 77 "cannot compute sizeof (char)
11414See \`config.log' for more details" "$LINENO" 5; }
11415 else
11416 ac_cv_sizeof_char=0
11417 fi
11418fi
11419
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11422$as_echo "$ac_cv_sizeof_char" >&6; }
11423
11424
11425
11426cat >>confdefs.h <<_ACEOF
11427#define SIZEOF_CHAR $ac_cv_sizeof_char
11428_ACEOF
11429
11430
11431# The cast to long int works around a bug in the HP C Compiler
11432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11434# This bug is HP SR number 8606223364.
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11436$as_echo_n "checking size of short int... " >&6; }
11437if ${ac_cv_sizeof_short_int+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439else
11440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
11441
11442else
11443 if test "$ac_cv_type_short_int" = yes; then
11444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11446as_fn_error 77 "cannot compute sizeof (short int)
11447See \`config.log' for more details" "$LINENO" 5; }
11448 else
11449 ac_cv_sizeof_short_int=0
11450 fi
11451fi
11452
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11455$as_echo "$ac_cv_sizeof_short_int" >&6; }
11456
11457
11458
11459cat >>confdefs.h <<_ACEOF
11460#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11461_ACEOF
11462
11463
11464# The cast to long int works around a bug in the HP C Compiler
11465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11467# This bug is HP SR number 8606223364.
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11469$as_echo_n "checking size of int... " >&6; }
11470if ${ac_cv_sizeof_int+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472else
11473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11474
11475else
11476 if test "$ac_cv_type_int" = yes; then
11477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11479as_fn_error 77 "cannot compute sizeof (int)
11480See \`config.log' for more details" "$LINENO" 5; }
11481 else
11482 ac_cv_sizeof_int=0
11483 fi
11484fi
11485
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11488$as_echo "$ac_cv_sizeof_int" >&6; }
11489
11490
11491
11492cat >>confdefs.h <<_ACEOF
11493#define SIZEOF_INT $ac_cv_sizeof_int
11494_ACEOF
11495
11496
11497# The cast to long int works around a bug in the HP C Compiler
11498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11500# This bug is HP SR number 8606223364.
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11502$as_echo_n "checking size of long int... " >&6; }
11503if ${ac_cv_sizeof_long_int+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505else
11506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
11507
11508else
11509 if test "$ac_cv_type_long_int" = yes; then
11510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11512as_fn_error 77 "cannot compute sizeof (long int)
11513See \`config.log' for more details" "$LINENO" 5; }
11514 else
11515 ac_cv_sizeof_long_int=0
11516 fi
11517fi
11518
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11521$as_echo "$ac_cv_sizeof_long_int" >&6; }
11522
11523
11524
11525cat >>confdefs.h <<_ACEOF
11526#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11527_ACEOF
11528
11529
11530# The cast to long int works around a bug in the HP C Compiler
11531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11533# This bug is HP SR number 8606223364.
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11535$as_echo_n "checking size of long long int... " >&6; }
11536if ${ac_cv_sizeof_long_long_int+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538else
11539 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
11540
11541else
11542 if test "$ac_cv_type_long_long_int" = yes; then
11543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11545as_fn_error 77 "cannot compute sizeof (long long int)
11546See \`config.log' for more details" "$LINENO" 5; }
11547 else
11548 ac_cv_sizeof_long_long_int=0
11549 fi
11550fi
11551
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11554$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11555
11556
11557
11558cat >>confdefs.h <<_ACEOF
11559#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11560_ACEOF
11561
11562
11563
11564# Sanity check long long for some platforms (AIX)
11565if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11566 ac_cv_sizeof_long_long_int=0
11567fi
11568
11569# compute LLONG_MIN and LLONG_MAX if we don't know them.
11570if test -z "$have_llong_max"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11572$as_echo_n "checking for max value of long long... " >&6; }
11573 if test "$cross_compiling" = yes; then :
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11576$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11577
11578
11579else
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581/* end confdefs.h. */
11582
11583#include <stdio.h>
11584/* Why is this so damn hard? */
11585#ifdef __GNUC__
11586# undef __GNUC__
11587#endif
11588#define __USE_ISOC99
11589#include <limits.h>
11590#define DATA "conftest.llminmax"
11591#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11592
11593/*
11594 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11595 * we do this the hard way.
11596 */
11597static int
11598fprint_ll(FILE *f, long long n)
11599{
11600 unsigned int i;
11601 int l[sizeof(long long) * 8];
11602
11603 if (n < 0)
11604 if (fprintf(f, "-") < 0)
11605 return -1;
11606 for (i = 0; n != 0; i++) {
11607 l[i] = my_abs(n % 10);
11608 n /= 10;
11609 }
11610 do {
11611 if (fprintf(f, "%d", l[--i]) < 0)
11612 return -1;
11613 } while (i != 0);
11614 if (fprintf(f, " ") < 0)
11615 return -1;
11616 return 0;
11617}
11618
11619int
11620main ()
11621{
11622
11623 FILE *f;
11624 long long i, llmin, llmax = 0;
11625
11626 if((f = fopen(DATA,"w")) == NULL)
11627 exit(1);
11628
11629#if defined(LLONG_MIN) && defined(LLONG_MAX)
11630 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11631 llmin = LLONG_MIN;
11632 llmax = LLONG_MAX;
11633#else
11634 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
11635 /* This will work on one's complement and two's complement */
11636 for (i = 1; i > llmax; i <<= 1, i++)
11637 llmax = i;
11638 llmin = llmax + 1LL; /* wrap */
11639#endif
11640
11641 /* Sanity check */
11642 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11643 || llmax - 1 > llmax || llmin == llmax || llmin == 0
11644 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11645 fprintf(f, "unknown unknown\n");
11646 exit(2);
11647 }
11648
11649 if (fprint_ll(f, llmin) < 0)
11650 exit(3);
11651 if (fprint_ll(f, llmax) < 0)
11652 exit(4);
11653 if (fclose(f) < 0)
11654 exit(5);
11655 exit(0);
11656
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_run "$LINENO"; then :
11662
11663 llong_min=`$AWK '{print $1}' conftest.llminmax`
11664 llong_max=`$AWK '{print $2}' conftest.llminmax`
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11667$as_echo "$llong_max" >&6; }
11668
11669cat >>confdefs.h <<_ACEOF
11670#define LLONG_MAX ${llong_max}LL
11671_ACEOF
11672
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11674$as_echo_n "checking for min value of long long... " >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11676$as_echo "$llong_min" >&6; }
11677
11678cat >>confdefs.h <<_ACEOF
11679#define LLONG_MIN ${llong_min}LL
11680_ACEOF
11681
11682
11683else
11684
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11686$as_echo "not found" >&6; }
11687
11688fi
11689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11690 conftest.$ac_objext conftest.beam conftest.$ac_ext
11691fi
11692
11693fi
11694
11695
11696# More checks for data types
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11698$as_echo_n "checking for u_int type... " >&6; }
11699if ${ac_cv_have_u_int+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701else
11702
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h. */
11705 #include <sys/types.h>
11706int
11707main ()
11708{
11709 u_int a; a = 1;
11710 ;
11711 return 0;
11712}
11713_ACEOF
11714if ac_fn_c_try_compile "$LINENO"; then :
11715 ac_cv_have_u_int="yes"
11716else
11717 ac_cv_have_u_int="no"
11718
11719fi
11720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721
11722fi
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11724$as_echo "$ac_cv_have_u_int" >&6; }
11725if test "x$ac_cv_have_u_int" = "xyes" ; then
11726
11727$as_echo "#define HAVE_U_INT 1" >>confdefs.h
11728
11729 have_u_int=1
11730fi
11731
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11733$as_echo_n "checking for intXX_t types... " >&6; }
11734if ${ac_cv_have_intxx_t+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736else
11737
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739/* end confdefs.h. */
11740 #include <sys/types.h>
11741int
11742main ()
11743{
11744 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11745 ;
11746 return 0;
11747}
11748_ACEOF
11749if ac_fn_c_try_compile "$LINENO"; then :
11750 ac_cv_have_intxx_t="yes"
11751else
11752 ac_cv_have_intxx_t="no"
11753
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756
11757fi
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11759$as_echo "$ac_cv_have_intxx_t" >&6; }
11760if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11761
11762$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11763
11764 have_intxx_t=1
11765fi
11766
11767if (test -z "$have_intxx_t" && \
11768 test "x$ac_cv_header_stdint_h" = "xyes")
11769then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11771$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773/* end confdefs.h. */
11774 #include <stdint.h>
11775int
11776main ()
11777{
11778 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11779 ;
11780 return 0;
11781}
11782_ACEOF
11783if ac_fn_c_try_compile "$LINENO"; then :
11784
11785 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11786
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788$as_echo "yes" >&6; }
11789
11790else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
11793
11794fi
11795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796fi
11797
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11799$as_echo_n "checking for int64_t type... " >&6; }
11800if ${ac_cv_have_int64_t+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802else
11803
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805/* end confdefs.h. */
11806
11807#include <sys/types.h>
11808#ifdef HAVE_STDINT_H
11809# include <stdint.h>
11810#endif
11811#include <sys/socket.h>
11812#ifdef HAVE_SYS_BITYPES_H
11813# include <sys/bitypes.h>
11814#endif
11815
11816int
11817main ()
11818{
11819
11820int64_t a; a = 1;
11821
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826if ac_fn_c_try_compile "$LINENO"; then :
11827 ac_cv_have_int64_t="yes"
11828else
11829 ac_cv_have_int64_t="no"
11830
11831fi
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11836$as_echo "$ac_cv_have_int64_t" >&6; }
11837if test "x$ac_cv_have_int64_t" = "xyes" ; then
11838
11839$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11840
11841fi
11842
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11844$as_echo_n "checking for u_intXX_t types... " >&6; }
11845if ${ac_cv_have_u_intxx_t+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847else
11848
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h. */
11851 #include <sys/types.h>
11852int
11853main ()
11854{
11855 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860if ac_fn_c_try_compile "$LINENO"; then :
11861 ac_cv_have_u_intxx_t="yes"
11862else
11863 ac_cv_have_u_intxx_t="no"
11864
11865fi
11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11870$as_echo "$ac_cv_have_u_intxx_t" >&6; }
11871if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11872
11873$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11874
11875 have_u_intxx_t=1
11876fi
11877
11878if test -z "$have_u_intxx_t" ; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11880$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h. */
11883 #include <sys/socket.h>
11884int
11885main ()
11886{
11887 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_compile "$LINENO"; then :
11893
11894 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897$as_echo "yes" >&6; }
11898
11899else
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901$as_echo "no" >&6; }
11902
11903fi
11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905fi
11906
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
11908$as_echo_n "checking for u_int64_t types... " >&6; }
11909if ${ac_cv_have_u_int64_t+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911else
11912
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h. */
11915 #include <sys/types.h>
11916int
11917main ()
11918{
11919 u_int64_t a; a = 1;
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924if ac_fn_c_try_compile "$LINENO"; then :
11925 ac_cv_have_u_int64_t="yes"
11926else
11927 ac_cv_have_u_int64_t="no"
11928
11929fi
11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
11934$as_echo "$ac_cv_have_u_int64_t" >&6; }
11935if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11936
11937$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11938
11939 have_u_int64_t=1
11940fi
11941
11942if test -z "$have_u_int64_t" ; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
11944$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h. */
11947 #include <sys/bitypes.h>
11948int
11949main ()
11950{
11951 u_int64_t a; a = 1
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_compile "$LINENO"; then :
11957
11958 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961$as_echo "yes" >&6; }
11962
11963else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
11966
11967fi
11968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969fi
11970
11971if test -z "$have_u_intxx_t" ; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
11973$as_echo_n "checking for uintXX_t types... " >&6; }
11974if ${ac_cv_have_uintxx_t+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976else
11977
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980
11981#include <sys/types.h>
11982
11983int
11984main ()
11985{
11986
11987 uint8_t a;
11988 uint16_t b;
11989 uint32_t c;
11990 a = b = c = 1;
11991
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_compile "$LINENO"; then :
11997 ac_cv_have_uintxx_t="yes"
11998else
11999 ac_cv_have_uintxx_t="no"
12000
12001fi
12002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003
12004fi
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12006$as_echo "$ac_cv_have_uintxx_t" >&6; }
12007 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12008
12009$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12010
12011 fi
12012fi
12013
12014if test -z "$have_uintxx_t" ; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12016$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018/* end confdefs.h. */
12019 #include <stdint.h>
12020int
12021main ()
12022{
12023 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028if ac_fn_c_try_compile "$LINENO"; then :
12029
12030 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12031
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12033$as_echo "yes" >&6; }
12034
12035else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037$as_echo "no" >&6; }
12038
12039fi
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041fi
12042
12043if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12044 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12045then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12047$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049/* end confdefs.h. */
12050
12051#include <sys/bitypes.h>
12052
12053int
12054main ()
12055{
12056
12057 int8_t a; int16_t b; int32_t c;
12058 u_int8_t e; u_int16_t f; u_int32_t g;
12059 a = b = c = e = f = g = 1;
12060
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065if ac_fn_c_try_compile "$LINENO"; then :
12066
12067 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12068
12069 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072$as_echo "yes" >&6; }
12073
12074else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
12077
12078fi
12079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080fi
12081
12082
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12084$as_echo_n "checking for u_char... " >&6; }
12085if ${ac_cv_have_u_char+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087else
12088
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090/* end confdefs.h. */
12091 #include <sys/types.h>
12092int
12093main ()
12094{
12095 u_char foo; foo = 125;
12096 ;
12097 return 0;
12098}
12099_ACEOF
12100if ac_fn_c_try_compile "$LINENO"; then :
12101 ac_cv_have_u_char="yes"
12102else
12103 ac_cv_have_u_char="no"
12104
12105fi
12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107
12108fi
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12110$as_echo "$ac_cv_have_u_char" >&6; }
12111if test "x$ac_cv_have_u_char" = "xyes" ; then
12112
12113$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12114
12115fi
12116
12117
12118 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12119#include <sys/socket.h>
12120"
12121if test "x$ac_cv_type_socklen_t" = xyes; then :
12122
12123else
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12126$as_echo_n "checking for socklen_t equivalent... " >&6; }
12127 if ${curl_cv_socklen_t_equiv+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129else
12130
12131 # Systems have either "struct sockaddr *" or
12132 # "void *" as the second argument to getpeername
12133 curl_cv_socklen_t_equiv=
12134 for arg2 in "struct sockaddr" void; do
12135 for t in int size_t unsigned long "unsigned long"; do
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h. */
12138
12139 #include <sys/types.h>
12140 #include <sys/socket.h>
12141
12142 int getpeername (int, $arg2 *, $t *);
12143
12144int
12145main ()
12146{
12147
12148 $t len;
12149 getpeername(0,0,&len);
12150
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_compile "$LINENO"; then :
12156
12157 curl_cv_socklen_t_equiv="$t"
12158 break
12159
12160fi
12161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 done
12163 done
12164
12165 if test "x$curl_cv_socklen_t_equiv" = x; then
12166 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12167 fi
12168
12169fi
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12172$as_echo "$curl_cv_socklen_t_equiv" >&6; }
12173
12174cat >>confdefs.h <<_ACEOF
12175#define socklen_t $curl_cv_socklen_t_equiv
12176_ACEOF
12177
12178fi
12179
12180
12181
12182ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12183"
12184if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12185
12186cat >>confdefs.h <<_ACEOF
12187#define HAVE_SIG_ATOMIC_T 1
12188_ACEOF
12189
12190
12191fi
12192
12193ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12194#include <sys/types.h>
12195#ifdef HAVE_SYS_BITYPES_H
12196#include <sys/bitypes.h>
12197#endif
12198#ifdef HAVE_SYS_STATFS_H
12199#include <sys/statfs.h>
12200#endif
12201#ifdef HAVE_SYS_STATVFS_H
12202#include <sys/statvfs.h>
12203#endif
12204
12205"
12206if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12207
12208cat >>confdefs.h <<_ACEOF
12209#define HAVE_FSBLKCNT_T 1
12210_ACEOF
12211
12212
12213fi
12214ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12215#include <sys/types.h>
12216#ifdef HAVE_SYS_BITYPES_H
12217#include <sys/bitypes.h>
12218#endif
12219#ifdef HAVE_SYS_STATFS_H
12220#include <sys/statfs.h>
12221#endif
12222#ifdef HAVE_SYS_STATVFS_H
12223#include <sys/statvfs.h>
12224#endif
12225
12226"
12227if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12228
12229cat >>confdefs.h <<_ACEOF
12230#define HAVE_FSFILCNT_T 1
12231_ACEOF
12232
12233
12234fi
12235
12236
12237ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12238#include <netinet/in.h>
12239"
12240if test "x$ac_cv_type_in_addr_t" = xyes; then :
12241
12242cat >>confdefs.h <<_ACEOF
12243#define HAVE_IN_ADDR_T 1
12244_ACEOF
12245
12246
12247fi
12248ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12249#include <netinet/in.h>
12250"
12251if test "x$ac_cv_type_in_port_t" = xyes; then :
12252
12253cat >>confdefs.h <<_ACEOF
12254#define HAVE_IN_PORT_T 1
12255_ACEOF
12256
12257
12258fi
12259
12260
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12262$as_echo_n "checking for size_t... " >&6; }
12263if ${ac_cv_have_size_t+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265else
12266
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h. */
12269 #include <sys/types.h>
12270int
12271main ()
12272{
12273 size_t foo; foo = 1235;
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278if ac_fn_c_try_compile "$LINENO"; then :
12279 ac_cv_have_size_t="yes"
12280else
12281 ac_cv_have_size_t="no"
12282
12283fi
12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285
12286fi
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12288$as_echo "$ac_cv_have_size_t" >&6; }
12289if test "x$ac_cv_have_size_t" = "xyes" ; then
12290
12291$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12292
12293fi
12294
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12296$as_echo_n "checking for ssize_t... " >&6; }
12297if ${ac_cv_have_ssize_t+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299else
12300
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h. */
12303 #include <sys/types.h>
12304int
12305main ()
12306{
12307 ssize_t foo; foo = 1235;
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312if ac_fn_c_try_compile "$LINENO"; then :
12313 ac_cv_have_ssize_t="yes"
12314else
12315 ac_cv_have_ssize_t="no"
12316
12317fi
12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319
12320fi
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12322$as_echo "$ac_cv_have_ssize_t" >&6; }
12323if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12324
12325$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12326
12327fi
12328
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12330$as_echo_n "checking for clock_t... " >&6; }
12331if ${ac_cv_have_clock_t+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333else
12334
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h. */
12337 #include <time.h>
12338int
12339main ()
12340{
12341 clock_t foo; foo = 1235;
12342 ;
12343 return 0;
12344}
12345_ACEOF
12346if ac_fn_c_try_compile "$LINENO"; then :
12347 ac_cv_have_clock_t="yes"
12348else
12349 ac_cv_have_clock_t="no"
12350
12351fi
12352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353
12354fi
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12356$as_echo "$ac_cv_have_clock_t" >&6; }
12357if test "x$ac_cv_have_clock_t" = "xyes" ; then
12358
12359$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12360
12361fi
12362
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12364$as_echo_n "checking for sa_family_t... " >&6; }
12365if ${ac_cv_have_sa_family_t+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h. */
12371
12372#include <sys/types.h>
12373#include <sys/socket.h>
12374
12375int
12376main ()
12377{
12378 sa_family_t foo; foo = 1235;
12379 ;
12380 return 0;
12381}
12382_ACEOF
12383if ac_fn_c_try_compile "$LINENO"; then :
12384 ac_cv_have_sa_family_t="yes"
12385else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h. */
12388
12389#include <sys/types.h>
12390#include <sys/socket.h>
12391#include <netinet/in.h>
12392
12393int
12394main ()
12395{
12396 sa_family_t foo; foo = 1235;
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_compile "$LINENO"; then :
12402 ac_cv_have_sa_family_t="yes"
12403else
12404 ac_cv_have_sa_family_t="no"
12405
12406fi
12407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408
12409fi
12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411
12412fi
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12414$as_echo "$ac_cv_have_sa_family_t" >&6; }
12415if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12416
12417$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12418
12419fi
12420
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12422$as_echo_n "checking for pid_t... " >&6; }
12423if ${ac_cv_have_pid_t+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425else
12426
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428/* end confdefs.h. */
12429 #include <sys/types.h>
12430int
12431main ()
12432{
12433 pid_t foo; foo = 1235;
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_have_pid_t="yes"
12440else
12441 ac_cv_have_pid_t="no"
12442
12443fi
12444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12448$as_echo "$ac_cv_have_pid_t" >&6; }
12449if test "x$ac_cv_have_pid_t" = "xyes" ; then
12450
12451$as_echo "#define HAVE_PID_T 1" >>confdefs.h
12452
12453fi
12454
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12456$as_echo_n "checking for mode_t... " >&6; }
12457if ${ac_cv_have_mode_t+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459else
12460
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h. */
12463 #include <sys/types.h>
12464int
12465main ()
12466{
12467 mode_t foo; foo = 1235;
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473 ac_cv_have_mode_t="yes"
12474else
12475 ac_cv_have_mode_t="no"
12476
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12482$as_echo "$ac_cv_have_mode_t" >&6; }
12483if test "x$ac_cv_have_mode_t" = "xyes" ; then
12484
12485$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12486
12487fi
12488
12489
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12491$as_echo_n "checking for struct sockaddr_storage... " >&6; }
12492if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494else
12495
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497/* end confdefs.h. */
12498
12499#include <sys/types.h>
12500#include <sys/socket.h>
12501
12502int
12503main ()
12504{
12505 struct sockaddr_storage s;
12506 ;
12507 return 0;
12508}
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511 ac_cv_have_struct_sockaddr_storage="yes"
12512else
12513 ac_cv_have_struct_sockaddr_storage="no"
12514
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517
12518fi
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12520$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12521if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12522
12523$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12524
12525fi
12526
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12528$as_echo_n "checking for struct sockaddr_in6... " >&6; }
12529if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531else
12532
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h. */
12535
12536#include <sys/types.h>
12537#include <netinet/in.h>
12538
12539int
12540main ()
12541{
12542 struct sockaddr_in6 s; s.sin6_family = 0;
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547if ac_fn_c_try_compile "$LINENO"; then :
12548 ac_cv_have_struct_sockaddr_in6="yes"
12549else
12550 ac_cv_have_struct_sockaddr_in6="no"
12551
12552fi
12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12557$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12558if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12559
12560$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12561
12562fi
12563
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12565$as_echo_n "checking for struct in6_addr... " >&6; }
12566if ${ac_cv_have_struct_in6_addr+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568else
12569
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h. */
12572
12573#include <sys/types.h>
12574#include <netinet/in.h>
12575
12576int
12577main ()
12578{
12579 struct in6_addr s; s.s6_addr[0] = 0;
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584if ac_fn_c_try_compile "$LINENO"; then :
12585 ac_cv_have_struct_in6_addr="yes"
12586else
12587 ac_cv_have_struct_in6_addr="no"
12588
12589fi
12590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12594$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12595if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12596
12597$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12598
12599
12600 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12601#ifdef HAVE_SYS_TYPES_H
12602#include <sys/types.h>
12603#endif
12604#include <netinet/in.h>
12605
12606"
12607if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
12608
12609cat >>confdefs.h <<_ACEOF
12610#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12611_ACEOF
12612
12613
12614fi
12615
12616fi
12617
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12619$as_echo_n "checking for struct addrinfo... " >&6; }
12620if ${ac_cv_have_struct_addrinfo+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622else
12623
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h. */
12626
12627#include <sys/types.h>
12628#include <sys/socket.h>
12629#include <netdb.h>
12630
12631int
12632main ()
12633{
12634 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639if ac_fn_c_try_compile "$LINENO"; then :
12640 ac_cv_have_struct_addrinfo="yes"
12641else
12642 ac_cv_have_struct_addrinfo="no"
12643
12644fi
12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12649$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12650if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12651
12652$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12653
12654fi
12655
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12657$as_echo_n "checking for struct timeval... " >&6; }
12658if ${ac_cv_have_struct_timeval+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660else
12661
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h. */
12664 #include <sys/time.h>
12665int
12666main ()
12667{
12668 struct timeval tv; tv.tv_sec = 1;
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673if ac_fn_c_try_compile "$LINENO"; then :
12674 ac_cv_have_struct_timeval="yes"
12675else
12676 ac_cv_have_struct_timeval="no"
12677
12678fi
12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12683$as_echo "$ac_cv_have_struct_timeval" >&6; }
12684if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12685
12686$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12687
12688 have_struct_timeval=1
12689fi
12690
12691ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12692if test "x$ac_cv_type_struct_timespec" = xyes; then :
12693
12694cat >>confdefs.h <<_ACEOF
12695#define HAVE_STRUCT_TIMESPEC 1
12696_ACEOF
12697
12698
12699fi
12700
12701
12702# We need int64_t or else certian parts of the compile will fail.
12703if test "x$ac_cv_have_int64_t" = "xno" && \
12704 test "x$ac_cv_sizeof_long_int" != "x8" && \
12705 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12706 echo "OpenSSH requires int64_t support. Contact your vendor or install"
12707 echo "an alternative compiler (I.E., GCC) before continuing."
12708 echo ""
12709 exit 1;
12710else
12711 if test "$cross_compiling" = yes; then :
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12713$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12714
12715else
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h. */
12718
12719#include <stdio.h>
12720#include <string.h>
12721#ifdef HAVE_SNPRINTF
12722main()
12723{
12724 char buf[50];
12725 char expected_out[50];
12726 int mazsize = 50 ;
12727#if (SIZEOF_LONG_INT == 8)
12728 long int num = 0x7fffffffffffffff;
12729#else
12730 long long num = 0x7fffffffffffffffll;
12731#endif
12732 strcpy(expected_out, "9223372036854775807");
12733 snprintf(buf, mazsize, "%lld", num);
12734 if(strcmp(buf, expected_out) != 0)
12735 exit(1);
12736 exit(0);
12737}
12738#else
12739main() { exit(0); }
12740#endif
12741
12742_ACEOF
12743if ac_fn_c_try_run "$LINENO"; then :
12744 true
12745else
12746 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12747
12748fi
12749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12750 conftest.$ac_objext conftest.beam conftest.$ac_ext
12751fi
12752
12753fi
12754
12755
12756# look for field 'ut_host' in header 'utmp.h'
12757 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12758 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12760$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12761 if eval \${$ossh_varname+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763else
12764
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h. */
12767#include <utmp.h>
12768
12769_ACEOF
12770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12771 $EGREP "ut_host" >/dev/null 2>&1; then :
12772 eval "$ossh_varname=yes"
12773else
12774 eval "$ossh_varname=no"
12775fi
12776rm -f conftest*
12777
12778fi
12779
12780 ossh_result=`eval 'echo $'"$ossh_varname"`
12781 if test -n "`echo $ossh_varname`"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12783$as_echo "$ossh_result" >&6; }
12784 if test "x$ossh_result" = "xyes"; then
12785
12786$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12787
12788 fi
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792 fi
12793
12794
12795# look for field 'ut_host' in header 'utmpx.h'
12796 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12797 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12799$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12800 if eval \${$ossh_varname+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802else
12803
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805/* end confdefs.h. */
12806#include <utmpx.h>
12807
12808_ACEOF
12809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 $EGREP "ut_host" >/dev/null 2>&1; then :
12811 eval "$ossh_varname=yes"
12812else
12813 eval "$ossh_varname=no"
12814fi
12815rm -f conftest*
12816
12817fi
12818
12819 ossh_result=`eval 'echo $'"$ossh_varname"`
12820 if test -n "`echo $ossh_varname`"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12822$as_echo "$ossh_result" >&6; }
12823 if test "x$ossh_result" = "xyes"; then
12824
12825$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12826
12827 fi
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830$as_echo "no" >&6; }
12831 fi
12832
12833
12834# look for field 'syslen' in header 'utmpx.h'
12835 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12836 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12838$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12839 if eval \${$ossh_varname+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841else
12842
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844/* end confdefs.h. */
12845#include <utmpx.h>
12846
12847_ACEOF
12848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12849 $EGREP "syslen" >/dev/null 2>&1; then :
12850 eval "$ossh_varname=yes"
12851else
12852 eval "$ossh_varname=no"
12853fi
12854rm -f conftest*
12855
12856fi
12857
12858 ossh_result=`eval 'echo $'"$ossh_varname"`
12859 if test -n "`echo $ossh_varname`"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12861$as_echo "$ossh_result" >&6; }
12862 if test "x$ossh_result" = "xyes"; then
12863
12864$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12865
12866 fi
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869$as_echo "no" >&6; }
12870 fi
12871
12872
12873# look for field 'ut_pid' in header 'utmp.h'
12874 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12875 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12877$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12878 if eval \${$ossh_varname+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880else
12881
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h. */
12884#include <utmp.h>
12885
12886_ACEOF
12887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12888 $EGREP "ut_pid" >/dev/null 2>&1; then :
12889 eval "$ossh_varname=yes"
12890else
12891 eval "$ossh_varname=no"
12892fi
12893rm -f conftest*
12894
12895fi
12896
12897 ossh_result=`eval 'echo $'"$ossh_varname"`
12898 if test -n "`echo $ossh_varname`"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12900$as_echo "$ossh_result" >&6; }
12901 if test "x$ossh_result" = "xyes"; then
12902
12903$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
12904
12905 fi
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
12909 fi
12910
12911
12912# look for field 'ut_type' in header 'utmp.h'
12913 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12914 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
12916$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
12917 if eval \${$ossh_varname+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919else
12920
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922/* end confdefs.h. */
12923#include <utmp.h>
12924
12925_ACEOF
12926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12927 $EGREP "ut_type" >/dev/null 2>&1; then :
12928 eval "$ossh_varname=yes"
12929else
12930 eval "$ossh_varname=no"
12931fi
12932rm -f conftest*
12933
12934fi
12935
12936 ossh_result=`eval 'echo $'"$ossh_varname"`
12937 if test -n "`echo $ossh_varname`"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12939$as_echo "$ossh_result" >&6; }
12940 if test "x$ossh_result" = "xyes"; then
12941
12942$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
12943
12944 fi
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947$as_echo "no" >&6; }
12948 fi
12949
12950
12951# look for field 'ut_type' in header 'utmpx.h'
12952 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12953 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
12955$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
12956 if eval \${$ossh_varname+:} false; then :
12957 $as_echo_n "(cached) " >&6
12958else
12959
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h. */
12962#include <utmpx.h>
12963
12964_ACEOF
12965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12966 $EGREP "ut_type" >/dev/null 2>&1; then :
12967 eval "$ossh_varname=yes"
12968else
12969 eval "$ossh_varname=no"
12970fi
12971rm -f conftest*
12972
12973fi
12974
12975 ossh_result=`eval 'echo $'"$ossh_varname"`
12976 if test -n "`echo $ossh_varname`"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12978$as_echo "$ossh_result" >&6; }
12979 if test "x$ossh_result" = "xyes"; then
12980
12981$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
12982
12983 fi
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
12987 fi
12988
12989
12990# look for field 'ut_tv' in header 'utmp.h'
12991 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12992 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
12994$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
12995 if eval \${$ossh_varname+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997else
12998
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h. */
13001#include <utmp.h>
13002
13003_ACEOF
13004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005 $EGREP "ut_tv" >/dev/null 2>&1; then :
13006 eval "$ossh_varname=yes"
13007else
13008 eval "$ossh_varname=no"
13009fi
13010rm -f conftest*
13011
13012fi
13013
13014 ossh_result=`eval 'echo $'"$ossh_varname"`
13015 if test -n "`echo $ossh_varname`"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13017$as_echo "$ossh_result" >&6; }
13018 if test "x$ossh_result" = "xyes"; then
13019
13020$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13021
13022 fi
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026 fi
13027
13028
13029# look for field 'ut_id' in header 'utmp.h'
13030 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13031 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13033$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13034 if eval \${$ossh_varname+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036else
13037
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h. */
13040#include <utmp.h>
13041
13042_ACEOF
13043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13044 $EGREP "ut_id" >/dev/null 2>&1; then :
13045 eval "$ossh_varname=yes"
13046else
13047 eval "$ossh_varname=no"
13048fi
13049rm -f conftest*
13050
13051fi
13052
13053 ossh_result=`eval 'echo $'"$ossh_varname"`
13054 if test -n "`echo $ossh_varname`"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13056$as_echo "$ossh_result" >&6; }
13057 if test "x$ossh_result" = "xyes"; then
13058
13059$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13060
13061 fi
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
13065 fi
13066
13067
13068# look for field 'ut_id' in header 'utmpx.h'
13069 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13070 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13072$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13073 if eval \${$ossh_varname+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075else
13076
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h. */
13079#include <utmpx.h>
13080
13081_ACEOF
13082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13083 $EGREP "ut_id" >/dev/null 2>&1; then :
13084 eval "$ossh_varname=yes"
13085else
13086 eval "$ossh_varname=no"
13087fi
13088rm -f conftest*
13089
13090fi
13091
13092 ossh_result=`eval 'echo $'"$ossh_varname"`
13093 if test -n "`echo $ossh_varname`"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13095$as_echo "$ossh_result" >&6; }
13096 if test "x$ossh_result" = "xyes"; then
13097
13098$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13099
13100 fi
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103$as_echo "no" >&6; }
13104 fi
13105
13106
13107# look for field 'ut_addr' in header 'utmp.h'
13108 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13109 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13111$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13112 if eval \${$ossh_varname+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114else
13115
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h. */
13118#include <utmp.h>
13119
13120_ACEOF
13121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13122 $EGREP "ut_addr" >/dev/null 2>&1; then :
13123 eval "$ossh_varname=yes"
13124else
13125 eval "$ossh_varname=no"
13126fi
13127rm -f conftest*
13128
13129fi
13130
13131 ossh_result=`eval 'echo $'"$ossh_varname"`
13132 if test -n "`echo $ossh_varname`"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13134$as_echo "$ossh_result" >&6; }
13135 if test "x$ossh_result" = "xyes"; then
13136
13137$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13138
13139 fi
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142$as_echo "no" >&6; }
13143 fi
13144
13145
13146# look for field 'ut_addr' in header 'utmpx.h'
13147 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13148 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13150$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13151 if eval \${$ossh_varname+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153else
13154
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h. */
13157#include <utmpx.h>
13158
13159_ACEOF
13160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "ut_addr" >/dev/null 2>&1; then :
13162 eval "$ossh_varname=yes"
13163else
13164 eval "$ossh_varname=no"
13165fi
13166rm -f conftest*
13167
13168fi
13169
13170 ossh_result=`eval 'echo $'"$ossh_varname"`
13171 if test -n "`echo $ossh_varname`"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13173$as_echo "$ossh_result" >&6; }
13174 if test "x$ossh_result" = "xyes"; then
13175
13176$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13177
13178 fi
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182 fi
13183
13184
13185# look for field 'ut_addr_v6' in header 'utmp.h'
13186 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13187 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13189$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13190 if eval \${$ossh_varname+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192else
13193
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195/* end confdefs.h. */
13196#include <utmp.h>
13197
13198_ACEOF
13199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13200 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13201 eval "$ossh_varname=yes"
13202else
13203 eval "$ossh_varname=no"
13204fi
13205rm -f conftest*
13206
13207fi
13208
13209 ossh_result=`eval 'echo $'"$ossh_varname"`
13210 if test -n "`echo $ossh_varname`"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13212$as_echo "$ossh_result" >&6; }
13213 if test "x$ossh_result" = "xyes"; then
13214
13215$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13216
13217 fi
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221 fi
13222
13223
13224# look for field 'ut_addr_v6' in header 'utmpx.h'
13225 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13226 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13228$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13229 if eval \${$ossh_varname+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231else
13232
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234/* end confdefs.h. */
13235#include <utmpx.h>
13236
13237_ACEOF
13238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13240 eval "$ossh_varname=yes"
13241else
13242 eval "$ossh_varname=no"
13243fi
13244rm -f conftest*
13245
13246fi
13247
13248 ossh_result=`eval 'echo $'"$ossh_varname"`
13249 if test -n "`echo $ossh_varname`"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13251$as_echo "$ossh_result" >&6; }
13252 if test "x$ossh_result" = "xyes"; then
13253
13254$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13255
13256 fi
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
13260 fi
13261
13262
13263# look for field 'ut_exit' in header 'utmp.h'
13264 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13265 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13267$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13268 if eval \${$ossh_varname+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270else
13271
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h. */
13274#include <utmp.h>
13275
13276_ACEOF
13277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13278 $EGREP "ut_exit" >/dev/null 2>&1; then :
13279 eval "$ossh_varname=yes"
13280else
13281 eval "$ossh_varname=no"
13282fi
13283rm -f conftest*
13284
13285fi
13286
13287 ossh_result=`eval 'echo $'"$ossh_varname"`
13288 if test -n "`echo $ossh_varname`"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13290$as_echo "$ossh_result" >&6; }
13291 if test "x$ossh_result" = "xyes"; then
13292
13293$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13294
13295 fi
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
13299 fi
13300
13301
13302# look for field 'ut_time' in header 'utmp.h'
13303 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13304 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13306$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13307 if eval \${$ossh_varname+:} false; then :
13308 $as_echo_n "(cached) " >&6
13309else
13310
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h. */
13313#include <utmp.h>
13314
13315_ACEOF
13316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317 $EGREP "ut_time" >/dev/null 2>&1; then :
13318 eval "$ossh_varname=yes"
13319else
13320 eval "$ossh_varname=no"
13321fi
13322rm -f conftest*
13323
13324fi
13325
13326 ossh_result=`eval 'echo $'"$ossh_varname"`
13327 if test -n "`echo $ossh_varname`"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13329$as_echo "$ossh_result" >&6; }
13330 if test "x$ossh_result" = "xyes"; then
13331
13332$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13333
13334 fi
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338 fi
13339
13340
13341# look for field 'ut_time' in header 'utmpx.h'
13342 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13343 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13345$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13346 if eval \${$ossh_varname+:} false; then :
13347 $as_echo_n "(cached) " >&6
13348else
13349
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351/* end confdefs.h. */
13352#include <utmpx.h>
13353
13354_ACEOF
13355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13356 $EGREP "ut_time" >/dev/null 2>&1; then :
13357 eval "$ossh_varname=yes"
13358else
13359 eval "$ossh_varname=no"
13360fi
13361rm -f conftest*
13362
13363fi
13364
13365 ossh_result=`eval 'echo $'"$ossh_varname"`
13366 if test -n "`echo $ossh_varname`"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13368$as_echo "$ossh_result" >&6; }
13369 if test "x$ossh_result" = "xyes"; then
13370
13371$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13372
13373 fi
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376$as_echo "no" >&6; }
13377 fi
13378
13379
13380# look for field 'ut_tv' in header 'utmpx.h'
13381 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13382 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13384$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13385 if eval \${$ossh_varname+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387else
13388
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h. */
13391#include <utmpx.h>
13392
13393_ACEOF
13394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395 $EGREP "ut_tv" >/dev/null 2>&1; then :
13396 eval "$ossh_varname=yes"
13397else
13398 eval "$ossh_varname=no"
13399fi
13400rm -f conftest*
13401
13402fi
13403
13404 ossh_result=`eval 'echo $'"$ossh_varname"`
13405 if test -n "`echo $ossh_varname`"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13407$as_echo "$ossh_result" >&6; }
13408 if test "x$ossh_result" = "xyes"; then
13409
13410$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13411
13412 fi
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416 fi
13417
13418
13419ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13420if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13421
13422cat >>confdefs.h <<_ACEOF
13423#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13424_ACEOF
13425
13426
13427fi
13428
13429ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13430#include <stdio.h>
13431#if HAVE_SYS_TYPES_H
13432# include <sys/types.h>
13433#endif
13434#include <netinet/in.h>
13435#include <arpa/nameser.h>
13436#include <resolv.h>
13437
13438"
13439if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
13440
13441else
13442
13443$as_echo "#define __res_state state" >>confdefs.h
13444
13445fi
13446
13447
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13449$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13450if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452else
13453
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h. */
13456
13457#include <sys/types.h>
13458#include <sys/socket.h>
13459
13460int
13461main ()
13462{
13463 struct sockaddr_storage s; s.ss_family = 1;
13464 ;
13465 return 0;
13466}
13467_ACEOF
13468if ac_fn_c_try_compile "$LINENO"; then :
13469 ac_cv_have_ss_family_in_struct_ss="yes"
13470else
13471 ac_cv_have_ss_family_in_struct_ss="no"
13472fi
13473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474
13475fi
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13477$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13478if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13479
13480$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13481
13482fi
13483
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13485$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13486if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488else
13489
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h. */
13492
13493#include <sys/types.h>
13494#include <sys/socket.h>
13495
13496int
13497main ()
13498{
13499 struct sockaddr_storage s; s.__ss_family = 1;
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504if ac_fn_c_try_compile "$LINENO"; then :
13505 ac_cv_have___ss_family_in_struct_ss="yes"
13506else
13507 ac_cv_have___ss_family_in_struct_ss="no"
13508
13509fi
13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13514$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13515if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13516
13517$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13518
13519fi
13520
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13522$as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13523if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525else
13526
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h. */
13529 #include <pwd.h>
13530int
13531main ()
13532{
13533 struct passwd p; p.pw_class = 0;
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538if ac_fn_c_try_compile "$LINENO"; then :
13539 ac_cv_have_pw_class_in_struct_passwd="yes"
13540else
13541 ac_cv_have_pw_class_in_struct_passwd="no"
13542
13543fi
13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545
13546fi
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13548$as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13549if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13550
13551$as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13552
13553fi
13554
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13556$as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13557if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559else
13560
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h. */
13563 #include <pwd.h>
13564int
13565main ()
13566{
13567 struct passwd p; p.pw_expire = 0;
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572if ac_fn_c_try_compile "$LINENO"; then :
13573 ac_cv_have_pw_expire_in_struct_passwd="yes"
13574else
13575 ac_cv_have_pw_expire_in_struct_passwd="no"
13576
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579
13580fi
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13582$as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13583if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13584
13585$as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13586
13587fi
13588
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13590$as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13591if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593else
13594
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h. */
13597 #include <pwd.h>
13598int
13599main ()
13600{
13601 struct passwd p; p.pw_change = 0;
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"; then :
13607 ac_cv_have_pw_change_in_struct_passwd="yes"
13608else
13609 ac_cv_have_pw_change_in_struct_passwd="no"
13610
13611fi
13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613
13614fi
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13616$as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13617if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13618
13619$as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13620
13621fi
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13624$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13625if ${ac_cv_have_accrights_in_msghdr+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627else
13628
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h. */
13631
13632#include <sys/types.h>
13633#include <sys/socket.h>
13634#include <sys/uio.h>
13635
13636int
13637main ()
13638{
13639
13640#ifdef msg_accrights
13641#error "msg_accrights is a macro"
13642exit(1);
13643#endif
13644struct msghdr m;
13645m.msg_accrights = 0;
13646exit(0);
13647
13648 ;
13649 return 0;
13650}
13651_ACEOF
13652if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_have_accrights_in_msghdr="yes"
13654else
13655 ac_cv_have_accrights_in_msghdr="no"
13656
13657fi
13658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659
13660fi
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13662$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13663if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13664
13665$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13666
13667fi
13668
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13670$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672/* end confdefs.h. */
13673
13674#include <sys/types.h>
13675#include <sys/stat.h>
13676#ifdef HAVE_SYS_TIME_H
13677# include <sys/time.h>
13678#endif
13679#ifdef HAVE_SYS_MOUNT_H
13680#include <sys/mount.h>
13681#endif
13682#ifdef HAVE_SYS_STATVFS_H
13683#include <sys/statvfs.h>
13684#endif
13685
13686int
13687main ()
13688{
13689 struct statvfs s; s.f_fsid = 0;
13690 ;
13691 return 0;
13692}
13693_ACEOF
13694if ac_fn_c_try_compile "$LINENO"; then :
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13696$as_echo "yes" >&6; }
13697else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13702$as_echo_n "checking if fsid_t has member val... " >&6; }
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704/* end confdefs.h. */
13705
13706#include <sys/types.h>
13707#include <sys/statvfs.h>
13708
13709int
13710main ()
13711{
13712 fsid_t t; t.val[0] = 0;
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717if ac_fn_c_try_compile "$LINENO"; then :
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13719$as_echo "yes" >&6; }
13720
13721$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13722
13723else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725$as_echo "no" >&6; }
13726fi
13727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13730$as_echo_n "checking if f_fsid has member __val... " >&6; }
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h. */
13733
13734#include <sys/types.h>
13735#include <sys/statvfs.h>
13736
13737int
13738main ()
13739{
13740 fsid_t t; t.__val[0] = 0;
13741 ;
13742 return 0;
13743}
13744_ACEOF
13745if ac_fn_c_try_compile "$LINENO"; then :
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13747$as_echo "yes" >&6; }
13748
13749$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13750
13751else
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
13754fi
13755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756
13757fi
13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13761$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13762if ${ac_cv_have_control_in_msghdr+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764else
13765
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767/* end confdefs.h. */
13768
13769#include <sys/types.h>
13770#include <sys/socket.h>
13771#include <sys/uio.h>
13772
13773int
13774main ()
13775{
13776
13777#ifdef msg_control
13778#error "msg_control is a macro"
13779exit(1);
13780#endif
13781struct msghdr m;
13782m.msg_control = 0;
13783exit(0);
13784
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789if ac_fn_c_try_compile "$LINENO"; then :
13790 ac_cv_have_control_in_msghdr="yes"
13791else
13792 ac_cv_have_control_in_msghdr="no"
13793
13794fi
13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796
13797fi
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13799$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13800if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13801
13802$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13803
13804fi
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13807$as_echo_n "checking if libc defines __progname... " >&6; }
13808if ${ac_cv_libc_defines___progname+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810else
13811
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h. */
13814
13815int
13816main ()
13817{
13818 extern char *__progname; printf("%s", __progname);
13819 ;
13820 return 0;
13821}
13822_ACEOF
13823if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_libc_defines___progname="yes"
13825else
13826 ac_cv_libc_defines___progname="no"
13827
13828fi
13829rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831
13832fi
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13834$as_echo "$ac_cv_libc_defines___progname" >&6; }
13835if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13836
13837$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13838
13839fi
13840
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13842$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13843if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845else
13846
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848/* end confdefs.h. */
13849 #include <stdio.h>
13850int
13851main ()
13852{
13853 printf("%s", __FUNCTION__);
13854 ;
13855 return 0;
13856}
13857_ACEOF
13858if ac_fn_c_try_link "$LINENO"; then :
13859 ac_cv_cc_implements___FUNCTION__="yes"
13860else
13861 ac_cv_cc_implements___FUNCTION__="no"
13862
13863fi
13864rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13866
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13869$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13870if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13871
13872$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13873
13874fi
13875
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13877$as_echo_n "checking whether $CC implements __func__... " >&6; }
13878if ${ac_cv_cc_implements___func__+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880else
13881
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h. */
13884 #include <stdio.h>
13885int
13886main ()
13887{
13888 printf("%s", __func__);
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893if ac_fn_c_try_link "$LINENO"; then :
13894 ac_cv_cc_implements___func__="yes"
13895else
13896 ac_cv_cc_implements___func__="no"
13897
13898fi
13899rm -f core conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13901
13902fi
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13904$as_echo "$ac_cv_cc_implements___func__" >&6; }
13905if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13906
13907$as_echo "#define HAVE___func__ 1" >>confdefs.h
13908
13909fi
13910
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13912$as_echo_n "checking whether va_copy exists... " >&6; }
13913if ${ac_cv_have_va_copy+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915else
13916
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h. */
13919
13920#include <stdarg.h>
13921va_list x,y;
13922
13923int
13924main ()
13925{
13926 va_copy(x,y);
13927 ;
13928 return 0;
13929}
13930_ACEOF
13931if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_have_va_copy="yes"
13933else
13934 ac_cv_have_va_copy="no"
13935
13936fi
13937rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939
13940fi
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13942$as_echo "$ac_cv_have_va_copy" >&6; }
13943if test "x$ac_cv_have_va_copy" = "xyes" ; then
13944
13945$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13946
13947fi
13948
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
13950$as_echo_n "checking whether __va_copy exists... " >&6; }
13951if ${ac_cv_have___va_copy+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953else
13954
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h. */
13957
13958#include <stdarg.h>
13959va_list x,y;
13960
13961int
13962main ()
13963{
13964 __va_copy(x,y);
13965 ;
13966 return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_link "$LINENO"; then :
13970 ac_cv_have___va_copy="yes"
13971else
13972 ac_cv_have___va_copy="no"
13973
13974fi
13975rm -f core conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
13980$as_echo "$ac_cv_have___va_copy" >&6; }
13981if test "x$ac_cv_have___va_copy" = "xyes" ; then
13982
13983$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13984
13985fi
13986
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
13988$as_echo_n "checking whether getopt has optreset support... " >&6; }
13989if ${ac_cv_have_getopt_optreset+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991else
13992
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h. */
13995 #include <getopt.h>
13996int
13997main ()
13998{
13999 extern int optreset; optreset = 0;
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004if ac_fn_c_try_link "$LINENO"; then :
14005 ac_cv_have_getopt_optreset="yes"
14006else
14007 ac_cv_have_getopt_optreset="no"
14008
14009fi
14010rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14015$as_echo "$ac_cv_have_getopt_optreset" >&6; }
14016if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14017
14018$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14019
14020fi
14021
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14023$as_echo_n "checking if libc defines sys_errlist... " >&6; }
14024if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026else
14027
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029/* end confdefs.h. */
14030
14031int
14032main ()
14033{
14034 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039if ac_fn_c_try_link "$LINENO"; then :
14040 ac_cv_libc_defines_sys_errlist="yes"
14041else
14042 ac_cv_libc_defines_sys_errlist="no"
14043
14044fi
14045rm -f core conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
14047
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14050$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14051if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14052
14053$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14054
14055fi
14056
14057
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14059$as_echo_n "checking if libc defines sys_nerr... " >&6; }
14060if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062else
14063
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065/* end confdefs.h. */
14066
14067int
14068main ()
14069{
14070 extern int sys_nerr; printf("%i", sys_nerr);
14071 ;
14072 return 0;
14073}
14074_ACEOF
14075if ac_fn_c_try_link "$LINENO"; then :
14076 ac_cv_libc_defines_sys_nerr="yes"
14077else
14078 ac_cv_libc_defines_sys_nerr="no"
14079
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083
14084fi
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14086$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14087if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14088
14089$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14090
14091fi
14092
14093# Check libraries needed by DNS fingerprint support
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14095$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14096if ${ac_cv_search_getrrsetbyname+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098else
14099 ac_func_search_save_LIBS=$LIBS
14100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h. */
14102
14103/* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14106#ifdef __cplusplus
14107extern "C"
14108#endif
14109char getrrsetbyname ();
14110int
14111main ()
14112{
14113return getrrsetbyname ();
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118for ac_lib in '' resolv; do
14119 if test -z "$ac_lib"; then
14120 ac_res="none required"
14121 else
14122 ac_res=-l$ac_lib
14123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14124 fi
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_search_getrrsetbyname=$ac_res
14127fi
14128rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext
14130 if ${ac_cv_search_getrrsetbyname+:} false; then :
14131 break
14132fi
14133done
14134if ${ac_cv_search_getrrsetbyname+:} false; then :
14135
14136else
14137 ac_cv_search_getrrsetbyname=no
14138fi
14139rm conftest.$ac_ext
14140LIBS=$ac_func_search_save_LIBS
14141fi
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14143$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14144ac_res=$ac_cv_search_getrrsetbyname
14145if test "$ac_res" != no; then :
14146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14147
14148$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14149
14150else
14151
14152 # Needed by our getrrsetbyname()
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14154$as_echo_n "checking for library containing res_query... " >&6; }
14155if ${ac_cv_search_res_query+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157else
14158 ac_func_search_save_LIBS=$LIBS
14159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160/* end confdefs.h. */
14161
14162/* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14165#ifdef __cplusplus
14166extern "C"
14167#endif
14168char res_query ();
14169int
14170main ()
14171{
14172return res_query ();
14173 ;
14174 return 0;
14175}
14176_ACEOF
14177for ac_lib in '' resolv; do
14178 if test -z "$ac_lib"; then
14179 ac_res="none required"
14180 else
14181 ac_res=-l$ac_lib
14182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14183 fi
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_search_res_query=$ac_res
14186fi
14187rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext
14189 if ${ac_cv_search_res_query+:} false; then :
14190 break
14191fi
14192done
14193if ${ac_cv_search_res_query+:} false; then :
14194
14195else
14196 ac_cv_search_res_query=no
14197fi
14198rm conftest.$ac_ext
14199LIBS=$ac_func_search_save_LIBS
14200fi
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14202$as_echo "$ac_cv_search_res_query" >&6; }
14203ac_res=$ac_cv_search_res_query
14204if test "$ac_res" != no; then :
14205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14206
14207fi
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14210$as_echo_n "checking for library containing dn_expand... " >&6; }
14211if ${ac_cv_search_dn_expand+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213else
14214 ac_func_search_save_LIBS=$LIBS
14215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h. */
14217
14218/* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply. */
14221#ifdef __cplusplus
14222extern "C"
14223#endif
14224char dn_expand ();
14225int
14226main ()
14227{
14228return dn_expand ();
14229 ;
14230 return 0;
14231}
14232_ACEOF
14233for ac_lib in '' resolv; do
14234 if test -z "$ac_lib"; then
14235 ac_res="none required"
14236 else
14237 ac_res=-l$ac_lib
14238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14239 fi
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_search_dn_expand=$ac_res
14242fi
14243rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext
14245 if ${ac_cv_search_dn_expand+:} false; then :
14246 break
14247fi
14248done
14249if ${ac_cv_search_dn_expand+:} false; then :
14250
14251else
14252 ac_cv_search_dn_expand=no
14253fi
14254rm conftest.$ac_ext
14255LIBS=$ac_func_search_save_LIBS
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14258$as_echo "$ac_cv_search_dn_expand" >&6; }
14259ac_res=$ac_cv_search_dn_expand
14260if test "$ac_res" != no; then :
14261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14262
14263fi
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14266$as_echo_n "checking if res_query will link... " >&6; }
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268/* end confdefs.h. */
14269
14270#include <sys/types.h>
14271#include <netinet/in.h>
14272#include <arpa/nameser.h>
14273#include <netdb.h>
14274#include <resolv.h>
14275
14276int
14277main ()
14278{
14279
14280 res_query (0, 0, 0, 0, 0);
14281
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286if ac_fn_c_try_link "$LINENO"; then :
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14288$as_echo "yes" >&6; }
14289else
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
14292 saved_LIBS="$LIBS"
14293 LIBS="$LIBS -lresolv"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14295$as_echo_n "checking for res_query in -lresolv... " >&6; }
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h. */
14298
14299#include <sys/types.h>
14300#include <netinet/in.h>
14301#include <arpa/nameser.h>
14302#include <netdb.h>
14303#include <resolv.h>
14304
14305int
14306main ()
14307{
14308
14309 res_query (0, 0, 0, 0, 0);
14310
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315if ac_fn_c_try_link "$LINENO"; then :
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14317$as_echo "yes" >&6; }
14318else
14319 LIBS="$saved_LIBS"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321$as_echo "no" >&6; }
14322fi
14323rm -f core conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325
14326fi
14327rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 for ac_func in _getshort _getlong
14330do :
14331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14332ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14333if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14334 cat >>confdefs.h <<_ACEOF
14335#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14336_ACEOF
14337
14338fi
14339done
14340
14341 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14342 #include <arpa/nameser.h>
14343"
14344if test "x$ac_cv_have_decl__getshort" = xyes; then :
14345 ac_have_decl=1
14346else
14347 ac_have_decl=0
14348fi
14349
14350cat >>confdefs.h <<_ACEOF
14351#define HAVE_DECL__GETSHORT $ac_have_decl
14352_ACEOF
14353ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14354 #include <arpa/nameser.h>
14355"
14356if test "x$ac_cv_have_decl__getlong" = xyes; then :
14357 ac_have_decl=1
14358else
14359 ac_have_decl=0
14360fi
14361
14362cat >>confdefs.h <<_ACEOF
14363#define HAVE_DECL__GETLONG $ac_have_decl
14364_ACEOF
14365
14366 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14367"
14368if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14369
14370$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14371
14372fi
14373
14374
14375fi
14376
14377
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14379$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h. */
14382
14383#include <stdio.h>
14384#if HAVE_SYS_TYPES_H
14385# include <sys/types.h>
14386#endif
14387#include <netinet/in.h>
14388#include <arpa/nameser.h>
14389#include <resolv.h>
14390extern struct __res_state _res;
14391
14392int
14393main ()
14394{
14395
14396 ;
14397 return 0;
14398}
14399_ACEOF
14400if ac_fn_c_try_link "$LINENO"; then :
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14402$as_echo "yes" >&6; }
14403
14404$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14405
14406
14407else
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409$as_echo "no" >&6; }
14410
14411fi
14412rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14414
14415# Check whether user wants SELinux support
14416SELINUX_MSG="no"
14417LIBSELINUX=""
14418
14419# Check whether --with-selinux was given.
14420if test "${with_selinux+set}" = set; then :
14421 withval=$with_selinux; if test "x$withval" != "xno" ; then
14422 save_LIBS="$LIBS"
14423
14424$as_echo "#define WITH_SELINUX 1" >>confdefs.h
14425
14426 SELINUX_MSG="yes"
14427 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14428if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
14429
14430else
14431 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14432fi
14433
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14436$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14437if ${ac_cv_lib_selinux_setexeccon+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439else
14440 ac_check_lib_save_LIBS=$LIBS
14441LIBS="-lselinux $LIBS"
14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h. */
14444
14445/* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply. */
14448#ifdef __cplusplus
14449extern "C"
14450#endif
14451char setexeccon ();
14452int
14453main ()
14454{
14455return setexeccon ();
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460if ac_fn_c_try_link "$LINENO"; then :
14461 ac_cv_lib_selinux_setexeccon=yes
14462else
14463 ac_cv_lib_selinux_setexeccon=no
14464fi
14465rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14467LIBS=$ac_check_lib_save_LIBS
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14470$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14471if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
14472 LIBSELINUX="-lselinux"
14473 LIBS="$LIBS -lselinux"
14474
14475else
14476 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14477fi
14478
14479 SSHLIBS="$SSHLIBS $LIBSELINUX"
14480 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14481 for ac_func in getseuserbyname get_default_context_with_level
14482do :
14483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14485if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14486 cat >>confdefs.h <<_ACEOF
14487#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14488_ACEOF
14489
14490fi
14491done
14492
14493 LIBS="$save_LIBS"
14494 fi
14495
14496fi
14497
14498
14499
14500
14501# Check whether user wants Kerberos 5 support
14502KRB5_MSG="no"
14503
14504# Check whether --with-kerberos5 was given.
14505if test "${with_kerberos5+set}" = set; then :
14506 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
14507 if test "x$withval" = "xyes" ; then
14508 KRB5ROOT="/usr/local"
14509 else
14510 KRB5ROOT=${withval}
14511 fi
14512
14513
14514$as_echo "#define KRB5 1" >>confdefs.h
14515
14516 KRB5_MSG="yes"
14517
14518 # Extract the first word of "krb5-config", so it can be a program name with args.
14519set dummy krb5-config; ac_word=$2
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14521$as_echo_n "checking for $ac_word... " >&6; }
14522if ${ac_cv_path_KRB5CONF+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524else
14525 case $KRB5CONF in
14526 [\\/]* | ?:[\\/]*)
14527 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14528 ;;
14529 *)
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531as_dummy="$KRB5ROOT/bin:$PATH"
14532for as_dir in $as_dummy
14533do
14534 IFS=$as_save_IFS
14535 test -z "$as_dir" && as_dir=.
14536 for ac_exec_ext in '' $ac_executable_extensions; do
14537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14538 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14540 break 2
14541 fi
14542done
14543 done
14544IFS=$as_save_IFS
14545
14546 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14547 ;;
14548esac
14549fi
14550KRB5CONF=$ac_cv_path_KRB5CONF
14551if test -n "$KRB5CONF"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14553$as_echo "$KRB5CONF" >&6; }
14554else
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556$as_echo "no" >&6; }
14557fi
14558
14559
14560 if test -x $KRB5CONF ; then
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14563$as_echo_n "checking for gssapi support... " >&6; }
14564 if $KRB5CONF | grep gssapi >/dev/null ; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14566$as_echo "yes" >&6; }
14567
14568$as_echo "#define GSSAPI 1" >>confdefs.h
14569
14570 k5confopts=gssapi
14571 else
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573$as_echo "no" >&6; }
14574 k5confopts=""
14575 fi
14576 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14577 K5LIBS="`$KRB5CONF --libs $k5confopts`"
14578 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14580$as_echo_n "checking whether we are using Heimdal... " >&6; }
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582/* end confdefs.h. */
14583 #include <krb5.h>
14584
14585int
14586main ()
14587{
14588 char *tmp = heimdal_version;
14589 ;
14590 return 0;
14591}
14592_ACEOF
14593if ac_fn_c_try_compile "$LINENO"; then :
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14595$as_echo "yes" >&6; }
14596
14597$as_echo "#define HEIMDAL 1" >>confdefs.h
14598
14599else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601$as_echo "no" >&6; }
14602
14603fi
14604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 else
14606 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14607 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14609$as_echo_n "checking whether we are using Heimdal... " >&6; }
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h. */
14612 #include <krb5.h>
14613
14614int
14615main ()
14616{
14617 char *tmp = heimdal_version;
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622if ac_fn_c_try_compile "$LINENO"; then :
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624$as_echo "yes" >&6; }
14625 $as_echo "#define HEIMDAL 1" >>confdefs.h
14626
14627 K5LIBS="-lkrb5"
14628 K5LIBS="$K5LIBS -lcom_err -lasn1"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14630$as_echo_n "checking for net_write in -lroken... " >&6; }
14631if ${ac_cv_lib_roken_net_write+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633else
14634 ac_check_lib_save_LIBS=$LIBS
14635LIBS="-lroken $LIBS"
14636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h. */
14638
14639/* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14642#ifdef __cplusplus
14643extern "C"
14644#endif
14645char net_write ();
14646int
14647main ()
14648{
14649return net_write ();
14650 ;
14651 return 0;
14652}
14653_ACEOF
14654if ac_fn_c_try_link "$LINENO"; then :
14655 ac_cv_lib_roken_net_write=yes
14656else
14657 ac_cv_lib_roken_net_write=no
14658fi
14659rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661LIBS=$ac_check_lib_save_LIBS
14662fi
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14664$as_echo "$ac_cv_lib_roken_net_write" >&6; }
14665if test "x$ac_cv_lib_roken_net_write" = xyes; then :
14666 K5LIBS="$K5LIBS -lroken"
14667fi
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14670$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14671if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
14672 $as_echo_n "(cached) " >&6
14673else
14674 ac_check_lib_save_LIBS=$LIBS
14675LIBS="-ldes $LIBS"
14676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h. */
14678
14679/* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682#ifdef __cplusplus
14683extern "C"
14684#endif
14685char des_cbc_encrypt ();
14686int
14687main ()
14688{
14689return des_cbc_encrypt ();
14690 ;
14691 return 0;
14692}
14693_ACEOF
14694if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_lib_des_des_cbc_encrypt=yes
14696else
14697 ac_cv_lib_des_des_cbc_encrypt=no
14698fi
14699rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701LIBS=$ac_check_lib_save_LIBS
14702fi
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14704$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14705if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
14706 K5LIBS="$K5LIBS -ldes"
14707fi
14708
14709
14710else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712$as_echo "no" >&6; }
14713 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14714
14715
14716fi
14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14719$as_echo_n "checking for library containing dn_expand... " >&6; }
14720if ${ac_cv_search_dn_expand+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722else
14723 ac_func_search_save_LIBS=$LIBS
14724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h. */
14726
14727/* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14730#ifdef __cplusplus
14731extern "C"
14732#endif
14733char dn_expand ();
14734int
14735main ()
14736{
14737return dn_expand ();
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742for ac_lib in '' resolv; do
14743 if test -z "$ac_lib"; then
14744 ac_res="none required"
14745 else
14746 ac_res=-l$ac_lib
14747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14748 fi
14749 if ac_fn_c_try_link "$LINENO"; then :
14750 ac_cv_search_dn_expand=$ac_res
14751fi
14752rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext
14754 if ${ac_cv_search_dn_expand+:} false; then :
14755 break
14756fi
14757done
14758if ${ac_cv_search_dn_expand+:} false; then :
14759
14760else
14761 ac_cv_search_dn_expand=no
14762fi
14763rm conftest.$ac_ext
14764LIBS=$ac_func_search_save_LIBS
14765fi
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14767$as_echo "$ac_cv_search_dn_expand" >&6; }
14768ac_res=$ac_cv_search_dn_expand
14769if test "$ac_res" != no; then :
14770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14771
14772fi
14773
14774
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14776$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14777if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779else
14780 ac_check_lib_save_LIBS=$LIBS
14781LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h. */
14784
14785/* Override any GCC internal prototype to avoid an error.
14786 Use char because int might match the return type of a GCC
14787 builtin and then its argument prototype would still apply. */
14788#ifdef __cplusplus
14789extern "C"
14790#endif
14791char gss_init_sec_context ();
14792int
14793main ()
14794{
14795return gss_init_sec_context ();
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800if ac_fn_c_try_link "$LINENO"; then :
14801 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14802else
14803 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14804fi
14805rm -f core conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807LIBS=$ac_check_lib_save_LIBS
14808fi
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14810$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14811if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
14812 $as_echo "#define GSSAPI 1" >>confdefs.h
14813
14814 K5LIBS="-lgssapi_krb5 $K5LIBS"
14815else
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14817$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14818if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
14819 $as_echo_n "(cached) " >&6
14820else
14821 ac_check_lib_save_LIBS=$LIBS
14822LIBS="-lgssapi $K5LIBS $LIBS"
14823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h. */
14825
14826/* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829#ifdef __cplusplus
14830extern "C"
14831#endif
14832char gss_init_sec_context ();
14833int
14834main ()
14835{
14836return gss_init_sec_context ();
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_gssapi_gss_init_sec_context=yes
14843else
14844 ac_cv_lib_gssapi_gss_init_sec_context=no
14845fi
14846rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848LIBS=$ac_check_lib_save_LIBS
14849fi
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14851$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14852if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
14853 $as_echo "#define GSSAPI 1" >>confdefs.h
14854
14855 K5LIBS="-lgssapi $K5LIBS"
14856else
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14858$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14859fi
14860
14861
14862fi
14863
14864
14865 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14866if test "x$ac_cv_header_gssapi_h" = xyes; then :
14867
14868else
14869 unset ac_cv_header_gssapi_h
14870 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14871 for ac_header in gssapi.h
14872do :
14873 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14874if test "x$ac_cv_header_gssapi_h" = xyes; then :
14875 cat >>confdefs.h <<_ACEOF
14876#define HAVE_GSSAPI_H 1
14877_ACEOF
14878
14879else
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14881$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14882
14883fi
14884
14885done
14886
14887
14888
14889fi
14890
14891
14892
14893 oldCPP="$CPPFLAGS"
14894 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14895 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
14896if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
14897
14898else
14899 CPPFLAGS="$oldCPP"
14900fi
14901
14902
14903
14904 fi
14905 if test ! -z "$need_dash_r" ; then
14906 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14907 fi
14908 if test ! -z "$blibpath" ; then
14909 blibpath="$blibpath:${KRB5ROOT}/lib"
14910 fi
14911
14912 for ac_header in gssapi.h gssapi/gssapi.h
14913do :
14914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14915ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14916if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14917 cat >>confdefs.h <<_ACEOF
14918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14919_ACEOF
14920
14921fi
14922
14923done
14924
14925 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14926do :
14927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14930 cat >>confdefs.h <<_ACEOF
14931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14932_ACEOF
14933
14934fi
14935
14936done
14937
14938 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
14939do :
14940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14941ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14942if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14943 cat >>confdefs.h <<_ACEOF
14944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945_ACEOF
14946
14947fi
14948
14949done
14950
14951
14952 LIBS="$LIBS $K5LIBS"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
14954$as_echo_n "checking for library containing k_hasafs... " >&6; }
14955if ${ac_cv_search_k_hasafs+:} false; then :
14956 $as_echo_n "(cached) " >&6
14957else
14958 ac_func_search_save_LIBS=$LIBS
14959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h. */
14961
14962/* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965#ifdef __cplusplus
14966extern "C"
14967#endif
14968char k_hasafs ();
14969int
14970main ()
14971{
14972return k_hasafs ();
14973 ;
14974 return 0;
14975}
14976_ACEOF
14977for ac_lib in '' kafs; do
14978 if test -z "$ac_lib"; then
14979 ac_res="none required"
14980 else
14981 ac_res=-l$ac_lib
14982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14983 fi
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_search_k_hasafs=$ac_res
14986fi
14987rm -f core conftest.err conftest.$ac_objext \
14988 conftest$ac_exeext
14989 if ${ac_cv_search_k_hasafs+:} false; then :
14990 break
14991fi
14992done
14993if ${ac_cv_search_k_hasafs+:} false; then :
14994
14995else
14996 ac_cv_search_k_hasafs=no
14997fi
14998rm conftest.$ac_ext
14999LIBS=$ac_func_search_save_LIBS
15000fi
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15002$as_echo "$ac_cv_search_k_hasafs" >&6; }
15003ac_res=$ac_cv_search_k_hasafs
15004if test "$ac_res" != no; then :
15005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15006
15007$as_echo "#define USE_AFS 1" >>confdefs.h
15008
15009fi
15010
15011 fi
15012
15013
15014fi
15015
15016
15017# Looking for programs, paths and files
15018
15019PRIVSEP_PATH=/var/empty
15020
15021# Check whether --with-privsep-path was given.
15022if test "${with_privsep_path+set}" = set; then :
15023 withval=$with_privsep_path;
15024 if test -n "$withval" && test "x$withval" != "xno" && \
15025 test "x${withval}" != "xyes"; then
15026 PRIVSEP_PATH=$withval
15027 fi
15028
15029
15030fi
15031
15032
15033
15034
15035# Check whether --with-xauth was given.
15036if test "${with_xauth+set}" = set; then :
15037 withval=$with_xauth;
15038 if test -n "$withval" && test "x$withval" != "xno" && \
15039 test "x${withval}" != "xyes"; then
15040 xauth_path=$withval
15041 fi
15042
15043else
15044
15045 TestPath="$PATH"
15046 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15047 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15048 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15049 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15050 # Extract the first word of "xauth", so it can be a program name with args.
15051set dummy xauth; ac_word=$2
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15053$as_echo_n "checking for $ac_word... " >&6; }
15054if ${ac_cv_path_xauth_path+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056else
15057 case $xauth_path in
15058 [\\/]* | ?:[\\/]*)
15059 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15060 ;;
15061 *)
15062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15063for as_dir in $TestPath
15064do
15065 IFS=$as_save_IFS
15066 test -z "$as_dir" && as_dir=.
15067 for ac_exec_ext in '' $ac_executable_extensions; do
15068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15069 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15071 break 2
15072 fi
15073done
15074 done
15075IFS=$as_save_IFS
15076
15077 ;;
15078esac
15079fi
15080xauth_path=$ac_cv_path_xauth_path
15081if test -n "$xauth_path"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15083$as_echo "$xauth_path" >&6; }
15084else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086$as_echo "no" >&6; }
15087fi
15088
15089
15090 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15091 xauth_path="/usr/openwin/bin/xauth"
15092 fi
15093
15094
15095fi
15096
15097
15098STRIP_OPT=-s
15099# Check whether --enable-strip was given.
15100if test "${enable_strip+set}" = set; then :
15101 enableval=$enable_strip;
15102 if test "x$enableval" = "xno" ; then
15103 STRIP_OPT=
15104 fi
15105
15106
15107fi
15108
15109
15110
15111if test -z "$xauth_path" ; then
15112 XAUTH_PATH="undefined"
15113
15114else
15115
15116cat >>confdefs.h <<_ACEOF
15117#define XAUTH_PATH "$xauth_path"
15118_ACEOF
15119
15120 XAUTH_PATH=$xauth_path
15121
15122fi
15123
15124# Check for mail directory
15125
15126# Check whether --with-maildir was given.
15127if test "${with_maildir+set}" = set; then :
15128 withval=$with_maildir;
15129 if test "X$withval" != X && test "x$withval" != xno && \
15130 test "x${withval}" != xyes; then
15131
15132cat >>confdefs.h <<_ACEOF
15133#define MAIL_DIRECTORY "$withval"
15134_ACEOF
15135
15136 fi
15137
15138else
15139
15140 if test "X$maildir" != "X"; then
15141 cat >>confdefs.h <<_ACEOF
15142#define MAIL_DIRECTORY "$maildir"
15143_ACEOF
15144
15145 else
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15147$as_echo_n "checking Discovering system mail directory... " >&6; }
15148 if test "$cross_compiling" = yes; then :
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15151$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15152
15153
15154else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h. */
15157
15158#include <stdio.h>
15159#include <string.h>
15160#ifdef HAVE_PATHS_H
15161#include <paths.h>
15162#endif
15163#ifdef HAVE_MAILLOCK_H
15164#include <maillock.h>
15165#endif
15166#define DATA "conftest.maildir"
15167
15168int
15169main ()
15170{
15171
15172 FILE *fd;
15173 int rc;
15174
15175 fd = fopen(DATA,"w");
15176 if(fd == NULL)
15177 exit(1);
15178
15179#if defined (_PATH_MAILDIR)
15180 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15181 exit(1);
15182#elif defined (MAILDIR)
15183 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15184 exit(1);
15185#elif defined (_PATH_MAIL)
15186 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15187 exit(1);
15188#else
15189 exit (2);
15190#endif
15191
15192 exit(0);
15193
15194 ;
15195 return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_run "$LINENO"; then :
15199
15200 maildir_what=`awk -F: '{print $1}' conftest.maildir`
15201 maildir=`awk -F: '{print $2}' conftest.maildir \
15202 | sed 's|/$||'`
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15204$as_echo "Using: $maildir from $maildir_what" >&6; }
15205 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15206 cat >>confdefs.h <<_ACEOF
15207#define MAIL_DIRECTORY "$maildir"
15208_ACEOF
15209
15210 fi
15211
15212else
15213
15214 if test "X$ac_status" = "X2";then
15215# our test program didn't find it. Default to /var/spool/mail
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15217$as_echo "Using: default value of /var/spool/mail" >&6; }
15218 cat >>confdefs.h <<_ACEOF
15219#define MAIL_DIRECTORY "/var/spool/mail"
15220_ACEOF
15221
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15224$as_echo "*** not found ***" >&6; }
15225 fi
15226
15227fi
15228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15229 conftest.$ac_objext conftest.beam conftest.$ac_ext
15230fi
15231
15232 fi
15233
15234
15235fi
15236 # maildir
15237
15238if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15240$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15241 disable_ptmx_check=yes
15242fi
15243if test -z "$no_dev_ptmx" ; then
15244 if test "x$disable_ptmx_check" != "xyes" ; then
15245 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15247$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15248if eval \${$as_ac_File+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250else
15251 test "$cross_compiling" = yes &&
15252 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15253if test -r ""/dev/ptmx""; then
15254 eval "$as_ac_File=yes"
15255else
15256 eval "$as_ac_File=no"
15257fi
15258fi
15259eval ac_res=\$$as_ac_File
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15261$as_echo "$ac_res" >&6; }
15262if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15263
15264
15265cat >>confdefs.h <<_ACEOF
15266#define HAVE_DEV_PTMX 1
15267_ACEOF
15268
15269 have_dev_ptmx=1
15270
15271
15272fi
15273
15274 fi
15275fi
15276
15277if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15278 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15280$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15281if eval \${$as_ac_File+:} false; then :
15282 $as_echo_n "(cached) " >&6
15283else
15284 test "$cross_compiling" = yes &&
15285 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15286if test -r ""/dev/ptc""; then
15287 eval "$as_ac_File=yes"
15288else
15289 eval "$as_ac_File=no"
15290fi
15291fi
15292eval ac_res=\$$as_ac_File
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15294$as_echo "$ac_res" >&6; }
15295if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15296
15297
15298cat >>confdefs.h <<_ACEOF
15299#define HAVE_DEV_PTS_AND_PTC 1
15300_ACEOF
15301
15302 have_dev_ptc=1
15303
15304
15305fi
15306
15307else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15309$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15310fi
15311
15312# Options from here on. Some of these are preset by platform above
15313
15314# Check whether --with-mantype was given.
15315if test "${with_mantype+set}" = set; then :
15316 withval=$with_mantype;
15317 case "$withval" in
15318 man|cat|doc)
15319 MANTYPE=$withval
15320 ;;
15321 *)
15322 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15323 ;;
15324 esac
15325
15326
15327fi
15328
15329if test -z "$MANTYPE"; then
15330 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15331 for ac_prog in nroff awf
15332do
15333 # Extract the first word of "$ac_prog", so it can be a program name with args.
15334set dummy $ac_prog; ac_word=$2
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336$as_echo_n "checking for $ac_word... " >&6; }
15337if ${ac_cv_path_NROFF+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339else
15340 case $NROFF in
15341 [\\/]* | ?:[\\/]*)
15342 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15343 ;;
15344 *)
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346for as_dir in $TestPath
15347do
15348 IFS=$as_save_IFS
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15352 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15354 break 2
15355 fi
15356done
15357 done
15358IFS=$as_save_IFS
15359
15360 ;;
15361esac
15362fi
15363NROFF=$ac_cv_path_NROFF
15364if test -n "$NROFF"; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15366$as_echo "$NROFF" >&6; }
15367else
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15369$as_echo "no" >&6; }
15370fi
15371
15372
15373 test -n "$NROFF" && break
15374done
15375test -n "$NROFF" || NROFF="/bin/false"
15376
15377 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15378 MANTYPE=doc
15379 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15380 MANTYPE=man
15381 else
15382 MANTYPE=cat
15383 fi
15384fi
15385
15386if test "$MANTYPE" = "doc"; then
15387 mansubdir=man;
15388else
15389 mansubdir=$MANTYPE;
15390fi
15391
15392
15393# Check whether to enable MD5 passwords
15394MD5_MSG="no"
15395
15396# Check whether --with-md5-passwords was given.
15397if test "${with_md5_passwords+set}" = set; then :
15398 withval=$with_md5_passwords;
15399 if test "x$withval" != "xno" ; then
15400
15401$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15402
15403 MD5_MSG="yes"
15404 fi
15405
15406
15407fi
15408
15409
15410# Whether to disable shadow password support
15411
15412# Check whether --with-shadow was given.
15413if test "${with_shadow+set}" = set; then :
15414 withval=$with_shadow;
15415 if test "x$withval" = "xno" ; then
15416 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15417
15418 disable_shadow=yes
15419 fi
15420
15421
15422fi
15423
15424
15425if test -z "$disable_shadow" ; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15427$as_echo_n "checking if the systems has expire shadow information... " >&6; }
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h. */
15430
15431#include <sys/types.h>
15432#include <shadow.h>
15433struct spwd sp;
15434
15435int
15436main ()
15437{
15438 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"; then :
15444 sp_expire_available=yes
15445fi
15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447
15448 if test "x$sp_expire_available" = "xyes" ; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15450$as_echo "yes" >&6; }
15451
15452$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15453
15454 else
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456$as_echo "no" >&6; }
15457 fi
15458fi
15459
15460# Use ip address instead of hostname in $DISPLAY
15461if test ! -z "$IPADDR_IN_DISPLAY" ; then
15462 DISPLAY_HACK_MSG="yes"
15463
15464$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15465
15466else
15467 DISPLAY_HACK_MSG="no"
15468
15469# Check whether --with-ipaddr-display was given.
15470if test "${with_ipaddr_display+set}" = set; then :
15471 withval=$with_ipaddr_display;
15472 if test "x$withval" != "xno" ; then
15473 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15474
15475 DISPLAY_HACK_MSG="yes"
15476 fi
15477
15478
15479fi
15480
15481fi
15482
15483# check for /etc/default/login and use it if present.
15484# Check whether --enable-etc-default-login was given.
15485if test "${enable_etc_default_login+set}" = set; then :
15486 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15488$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15489 etc_default_login=no
15490 else
15491 etc_default_login=yes
15492 fi
15493else
15494 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15495 then
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15497$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15498 etc_default_login=no
15499 else
15500 etc_default_login=yes
15501 fi
15502
15503fi
15504
15505
15506if test "x$etc_default_login" != "xno"; then
15507 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15509$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15510if eval \${$as_ac_File+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512else
15513 test "$cross_compiling" = yes &&
15514 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15515if test -r ""/etc/default/login""; then
15516 eval "$as_ac_File=yes"
15517else
15518 eval "$as_ac_File=no"
15519fi
15520fi
15521eval ac_res=\$$as_ac_File
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15523$as_echo "$ac_res" >&6; }
15524if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15525 external_path_file=/etc/default/login
15526fi
15527
15528 if test "x$external_path_file" = "x/etc/default/login"; then
15529
15530$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15531
15532 fi
15533fi
15534
15535if test $ac_cv_func_login_getcapbool = "yes" && \
15536 test $ac_cv_header_login_cap_h = "yes" ; then
15537 external_path_file=/etc/login.conf
15538fi
15539
15540# Whether to mess with the default path
15541SERVER_PATH_MSG="(default)"
15542
15543# Check whether --with-default-path was given.
15544if test "${with_default_path+set}" = set; then :
15545 withval=$with_default_path;
15546 if test "x$external_path_file" = "x/etc/login.conf" ; then
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15548--with-default-path=PATH has no effect on this system.
15549Edit /etc/login.conf instead." >&5
15550$as_echo "$as_me: WARNING:
15551--with-default-path=PATH has no effect on this system.
15552Edit /etc/login.conf instead." >&2;}
15553 elif test "x$withval" != "xno" ; then
15554 if test ! -z "$external_path_file" ; then
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15556--with-default-path=PATH will only be used if PATH is not defined in
15557$external_path_file ." >&5
15558$as_echo "$as_me: WARNING:
15559--with-default-path=PATH will only be used if PATH is not defined in
15560$external_path_file ." >&2;}
15561 fi
15562 user_path="$withval"
15563 SERVER_PATH_MSG="$withval"
15564 fi
15565
15566else
15567 if test "x$external_path_file" = "x/etc/login.conf" ; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15569$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15570 else
15571 if test ! -z "$external_path_file" ; then
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15573If PATH is defined in $external_path_file, ensure the path to scp is included,
15574otherwise scp will not work." >&5
15575$as_echo "$as_me: WARNING:
15576If PATH is defined in $external_path_file, ensure the path to scp is included,
15577otherwise scp will not work." >&2;}
15578 fi
15579 if test "$cross_compiling" = yes; then :
15580 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15581
15582else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585
15586/* find out what STDPATH is */
15587#include <stdio.h>
15588#ifdef HAVE_PATHS_H
15589# include <paths.h>
15590#endif
15591#ifndef _PATH_STDPATH
15592# ifdef _PATH_USERPATH /* Irix */
15593# define _PATH_STDPATH _PATH_USERPATH
15594# else
15595# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15596# endif
15597#endif
15598#include <sys/types.h>
15599#include <sys/stat.h>
15600#include <fcntl.h>
15601#define DATA "conftest.stdpath"
15602
15603int
15604main ()
15605{
15606
15607 FILE *fd;
15608 int rc;
15609
15610 fd = fopen(DATA,"w");
15611 if(fd == NULL)
15612 exit(1);
15613
15614 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15615 exit(1);
15616
15617 exit(0);
15618
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_run "$LINENO"; then :
15624 user_path=`cat conftest.stdpath`
15625else
15626 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15627fi
15628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15629 conftest.$ac_objext conftest.beam conftest.$ac_ext
15630fi
15631
15632# make sure $bindir is in USER_PATH so scp will work
15633 t_bindir=`eval echo ${bindir}`
15634 case $t_bindir in
15635 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15636 esac
15637 case $t_bindir in
15638 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15639 esac
15640 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15641 if test $? -ne 0 ; then
15642 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15643 if test $? -ne 0 ; then
15644 user_path=$user_path:$t_bindir
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15646$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15647 fi
15648 fi
15649 fi
15650
15651fi
15652
15653if test "x$external_path_file" != "x/etc/login.conf" ; then
15654
15655cat >>confdefs.h <<_ACEOF
15656#define USER_PATH "$user_path"
15657_ACEOF
15658
15659
15660fi
15661
15662# Set superuser path separately to user path
15663
15664# Check whether --with-superuser-path was given.
15665if test "${with_superuser_path+set}" = set; then :
15666 withval=$with_superuser_path;
15667 if test -n "$withval" && test "x$withval" != "xno" && \
15668 test "x${withval}" != "xyes"; then
15669
15670cat >>confdefs.h <<_ACEOF
15671#define SUPERUSER_PATH "$withval"
15672_ACEOF
15673
15674 superuser_path=$withval
15675 fi
15676
15677
15678fi
15679
15680
15681
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15683$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15684IPV4_IN6_HACK_MSG="no"
15685
15686# Check whether --with-4in6 was given.
15687if test "${with_4in6+set}" = set; then :
15688 withval=$with_4in6;
15689 if test "x$withval" != "xno" ; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15691$as_echo "yes" >&6; }
15692
15693$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15694
15695 IPV4_IN6_HACK_MSG="yes"
15696 else
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698$as_echo "no" >&6; }
15699 fi
15700
15701else
15702
15703 if test "x$inet6_default_4in6" = "xyes"; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15705$as_echo "yes (default)" >&6; }
15706 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15707
15708 IPV4_IN6_HACK_MSG="yes"
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15711$as_echo "no (default)" >&6; }
15712 fi
15713
15714
15715fi
15716
15717
15718# Whether to enable BSD auth support
15719BSD_AUTH_MSG=no
15720
15721# Check whether --with-bsd-auth was given.
15722if test "${with_bsd_auth+set}" = set; then :
15723 withval=$with_bsd_auth;
15724 if test "x$withval" != "xno" ; then
15725
15726$as_echo "#define BSD_AUTH 1" >>confdefs.h
15727
15728 BSD_AUTH_MSG=yes
15729 fi
15730
15731
15732fi
15733
15734
15735# Where to place sshd.pid
15736piddir=/var/run
15737# make sure the directory exists
15738if test ! -d $piddir ; then
15739 piddir=`eval echo ${sysconfdir}`
15740 case $piddir in
15741 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15742 esac
15743fi
15744
15745
15746# Check whether --with-pid-dir was given.
15747if test "${with_pid_dir+set}" = set; then :
15748 withval=$with_pid_dir;
15749 if test -n "$withval" && test "x$withval" != "xno" && \
15750 test "x${withval}" != "xyes"; then
15751 piddir=$withval
15752 if test ! -d $piddir ; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15754$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15755 fi
15756 fi
15757
15758
15759fi
15760
15761
15762
15763cat >>confdefs.h <<_ACEOF
15764#define _PATH_SSH_PIDDIR "$piddir"
15765_ACEOF
15766
15767
15768
15769# Check whether --enable-lastlog was given.
15770if test "${enable_lastlog+set}" = set; then :
15771 enableval=$enable_lastlog;
15772 if test "x$enableval" = "xno" ; then
15773 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15774
15775 fi
15776
15777
15778fi
15779
15780# Check whether --enable-utmp was given.
15781if test "${enable_utmp+set}" = set; then :
15782 enableval=$enable_utmp;
15783 if test "x$enableval" = "xno" ; then
15784 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15785
15786 fi
15787
15788
15789fi
15790
15791# Check whether --enable-utmpx was given.
15792if test "${enable_utmpx+set}" = set; then :
15793 enableval=$enable_utmpx;
15794 if test "x$enableval" = "xno" ; then
15795
15796$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15797
15798 fi
15799
15800
15801fi
15802
15803# Check whether --enable-wtmp was given.
15804if test "${enable_wtmp+set}" = set; then :
15805 enableval=$enable_wtmp;
15806 if test "x$enableval" = "xno" ; then
15807 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15808
15809 fi
15810
15811
15812fi
15813
15814# Check whether --enable-wtmpx was given.
15815if test "${enable_wtmpx+set}" = set; then :
15816 enableval=$enable_wtmpx;
15817 if test "x$enableval" = "xno" ; then
15818
15819$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15820
15821 fi
15822
15823
15824fi
15825
15826# Check whether --enable-libutil was given.
15827if test "${enable_libutil+set}" = set; then :
15828 enableval=$enable_libutil;
15829 if test "x$enableval" = "xno" ; then
15830 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15831
15832 fi
15833
15834
15835fi
15836
15837# Check whether --enable-pututline was given.
15838if test "${enable_pututline+set}" = set; then :
15839 enableval=$enable_pututline;
15840 if test "x$enableval" = "xno" ; then
15841
15842$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15843
15844 fi
15845
15846
15847fi
15848
15849# Check whether --enable-pututxline was given.
15850if test "${enable_pututxline+set}" = set; then :
15851 enableval=$enable_pututxline;
15852 if test "x$enableval" = "xno" ; then
15853
15854$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15855
15856 fi
15857
15858
15859fi
15860
15861
15862# Check whether --with-lastlog was given.
15863if test "${with_lastlog+set}" = set; then :
15864 withval=$with_lastlog;
15865 if test "x$withval" = "xno" ; then
15866 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15867
15868 elif test -n "$withval" && test "x${withval}" != "xyes"; then
15869 conf_lastlog_location=$withval
15870 fi
15871
15872
15873fi
15874
15875
15876
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
15878$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
15879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880/* end confdefs.h. */
15881
15882#include <sys/types.h>
15883#include <utmp.h>
15884#ifdef HAVE_LASTLOG_H
15885# include <lastlog.h>
15886#endif
15887#ifdef HAVE_PATHS_H
15888# include <paths.h>
15889#endif
15890#ifdef HAVE_LOGIN_H
15891# include <login.h>
15892#endif
15893
15894int
15895main ()
15896{
15897 char *lastlog = LASTLOG_FILE;
15898 ;
15899 return 0;
15900}
15901_ACEOF
15902if ac_fn_c_try_compile "$LINENO"; then :
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15904$as_echo "yes" >&6; }
15905else
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908$as_echo "no" >&6; }
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
15910$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912/* end confdefs.h. */
15913
15914#include <sys/types.h>
15915#include <utmp.h>
15916#ifdef HAVE_LASTLOG_H
15917# include <lastlog.h>
15918#endif
15919#ifdef HAVE_PATHS_H
15920# include <paths.h>
15921#endif
15922
15923int
15924main ()
15925{
15926 char *lastlog = _PATH_LASTLOG;
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931if ac_fn_c_try_compile "$LINENO"; then :
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933$as_echo "yes" >&6; }
15934else
15935
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937$as_echo "no" >&6; }
15938 system_lastlog_path=no
15939
15940fi
15941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942
15943fi
15944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945
15946if test -z "$conf_lastlog_location"; then
15947 if test x"$system_lastlog_path" = x"no" ; then
15948 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
15949 if (test -d "$f" || test -f "$f") ; then
15950 conf_lastlog_location=$f
15951 fi
15952 done
15953 if test -z "$conf_lastlog_location"; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
15955$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15956 fi
15957 fi
15958fi
15959
15960if test -n "$conf_lastlog_location"; then
15961
15962cat >>confdefs.h <<_ACEOF
15963#define CONF_LASTLOG_FILE "$conf_lastlog_location"
15964_ACEOF
15965
15966fi
15967
15968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
15969$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
15970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971/* end confdefs.h. */
15972
15973#include <sys/types.h>
15974#include <utmp.h>
15975#ifdef HAVE_PATHS_H
15976# include <paths.h>
15977#endif
15978
15979int
15980main ()
15981{
15982 char *utmp = UTMP_FILE;
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987if ac_fn_c_try_compile "$LINENO"; then :
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15989$as_echo "yes" >&6; }
15990else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992$as_echo "no" >&6; }
15993 system_utmp_path=no
15994
15995fi
15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997if test -z "$conf_utmp_location"; then
15998 if test x"$system_utmp_path" = x"no" ; then
15999 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16000 if test -f $f ; then
16001 conf_utmp_location=$f
16002 fi
16003 done
16004 if test -z "$conf_utmp_location"; then
16005 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16006
16007 fi
16008 fi
16009fi
16010if test -n "$conf_utmp_location"; then
16011
16012cat >>confdefs.h <<_ACEOF
16013#define CONF_UTMP_FILE "$conf_utmp_location"
16014_ACEOF
16015
16016fi
16017
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16019$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021/* end confdefs.h. */
16022
16023#include <sys/types.h>
16024#include <utmp.h>
16025#ifdef HAVE_PATHS_H
16026# include <paths.h>
16027#endif
16028
16029int
16030main ()
16031{
16032 char *wtmp = WTMP_FILE;
16033 ;
16034 return 0;
16035}
16036_ACEOF
16037if ac_fn_c_try_compile "$LINENO"; then :
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039$as_echo "yes" >&6; }
16040else
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042$as_echo "no" >&6; }
16043 system_wtmp_path=no
16044
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047if test -z "$conf_wtmp_location"; then
16048 if test x"$system_wtmp_path" = x"no" ; then
16049 for f in /usr/adm/wtmp /var/log/wtmp; do
16050 if test -f $f ; then
16051 conf_wtmp_location=$f
16052 fi
16053 done
16054 if test -z "$conf_wtmp_location"; then
16055 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16056
16057 fi
16058 fi
16059fi
16060if test -n "$conf_wtmp_location"; then
16061
16062cat >>confdefs.h <<_ACEOF
16063#define CONF_WTMP_FILE "$conf_wtmp_location"
16064_ACEOF
16065
16066fi
16067
16068
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16070$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h. */
16073
16074#include <sys/types.h>
16075#include <utmp.h>
16076#ifdef HAVE_UTMPX_H
16077#include <utmpx.h>
16078#endif
16079#ifdef HAVE_PATHS_H
16080# include <paths.h>
16081#endif
16082
16083int
16084main ()
16085{
16086 char *wtmpx = WTMPX_FILE;
16087 ;
16088 return 0;
16089}
16090_ACEOF
16091if ac_fn_c_try_compile "$LINENO"; then :
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16093$as_echo "yes" >&6; }
16094else
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096$as_echo "no" >&6; }
16097 system_wtmpx_path=no
16098
16099fi
16100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101if test -z "$conf_wtmpx_location"; then
16102 if test x"$system_wtmpx_path" = x"no" ; then
16103 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16104
16105 fi
16106else
16107
16108cat >>confdefs.h <<_ACEOF
16109#define CONF_WTMPX_FILE "$conf_wtmpx_location"
16110_ACEOF
16111
16112fi
16113
16114
16115if test ! -z "$blibpath" ; then
16116 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16118$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16119fi
16120
16121CFLAGS="$CFLAGS $werror_flags"
16122
16123if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16124 TEST_SSH_IPV6=no
16125else
16126 TEST_SSH_IPV6=yes
16127fi
16128ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16129if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16130 TEST_SSH_IPV6=no
16131fi
16132
16133TEST_SSH_IPV6=$TEST_SSH_IPV6
16134
16135
16136
16137ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16138
16139cat >confcache <<\_ACEOF
16140# This file is a shell script that caches the results of configure
16141# tests run on this system so they can be shared between configure
16142# scripts and configure runs, see configure's option --config-cache.
16143# It is not useful on other systems. If it contains results you don't
16144# want to keep, you may remove or edit it.
16145#
16146# config.status only pays attention to the cache file if you give it
16147# the --recheck option to rerun configure.
16148#
16149# `ac_cv_env_foo' variables (set or unset) will be overridden when
16150# loading this file, other *unset* `ac_cv_foo' will be assigned the
16151# following values.
16152
16153_ACEOF
16154
16155# The following way of writing the cache mishandles newlines in values,
16156# but we know of no workaround that is simple, portable, and efficient.
16157# So, we kill variables containing newlines.
16158# Ultrix sh set writes to stderr and can't be redirected directly,
16159# and sets the high bit in the cache file unless we assign to the vars.
16160(
16161 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16162 eval ac_val=\$$ac_var
16163 case $ac_val in #(
16164 *${as_nl}*)
16165 case $ac_var in #(
16166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16167$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16168 esac
16169 case $ac_var in #(
16170 _ | IFS | as_nl) ;; #(
16171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16172 *) { eval $ac_var=; unset $ac_var;} ;;
16173 esac ;;
16174 esac
16175 done
16176
16177 (set) 2>&1 |
16178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16179 *${as_nl}ac_space=\ *)
16180 # `set' does not quote correctly, so add quotes: double-quote
16181 # substitution turns \\\\ into \\, and sed turns \\ into \.
16182 sed -n \
16183 "s/'/'\\\\''/g;
16184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16185 ;; #(
16186 *)
16187 # `set' quotes correctly as required by POSIX, so do not add quotes.
16188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16189 ;;
16190 esac |
16191 sort
16192) |
16193 sed '
16194 /^ac_cv_env_/b end
16195 t clear
16196 :clear
16197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16198 t end
16199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16200 :end' >>confcache
16201if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16202 if test -w "$cache_file"; then
16203 if test "x$cache_file" != "x/dev/null"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16205$as_echo "$as_me: updating cache $cache_file" >&6;}
16206 if test ! -f "$cache_file" || test -h "$cache_file"; then
16207 cat confcache >"$cache_file"
16208 else
16209 case $cache_file in #(
16210 */* | ?:*)
16211 mv -f confcache "$cache_file"$$ &&
16212 mv -f "$cache_file"$$ "$cache_file" ;; #(
16213 *)
16214 mv -f confcache "$cache_file" ;;
16215 esac
16216 fi
16217 fi
16218 else
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16220$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16221 fi
16222fi
16223rm -f confcache
16224
16225test "x$prefix" = xNONE && prefix=$ac_default_prefix
16226# Let make expand exec_prefix.
16227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16228
16229DEFS=-DHAVE_CONFIG_H
16230
16231ac_libobjs=
16232ac_ltlibobjs=
16233U=
16234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16235 # 1. Remove the extension, and $U if already installed.
16236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16237 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16239 # will be set to the directory where LIBOBJS objects are built.
16240 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16241 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16242done
16243LIBOBJS=$ac_libobjs
16244
16245LTLIBOBJS=$ac_ltlibobjs
16246
16247
16248
16249
16250: "${CONFIG_STATUS=./config.status}"
16251ac_write_fail=0
16252ac_clean_files_save=$ac_clean_files
16253ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16255$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16256as_write_fail=0
16257cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16258#! $SHELL
16259# Generated by $as_me.
16260# Run this file to recreate the current configuration.
16261# Compiler output produced by configure, useful for debugging
16262# configure, is in config.log if it exists.
16263
16264debug=false
16265ac_cs_recheck=false
16266ac_cs_silent=false
16267
16268SHELL=\${CONFIG_SHELL-$SHELL}
16269export SHELL
16270_ASEOF
16271cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16272## -------------------- ##
16273## M4sh Initialization. ##
16274## -------------------- ##
16275
16276# Be more Bourne compatible
16277DUALCASE=1; export DUALCASE # for MKS sh
16278if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16279 emulate sh
16280 NULLCMD=:
16281 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16282 # is contrary to our usage. Disable this feature.
16283 alias -g '${1+"$@"}'='"$@"'
16284 setopt NO_GLOB_SUBST
16285else
16286 case `(set -o) 2>/dev/null` in #(
16287 *posix*) :
16288 set -o posix ;; #(
16289 *) :
16290 ;;
16291esac
16292fi
16293
16294
16295as_nl='
16296'
16297export as_nl
16298# Printing a long string crashes Solaris 7 /usr/bin/printf.
16299as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16300as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16301as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16302# Prefer a ksh shell builtin over an external printf program on Solaris,
16303# but without wasting forks for bash or zsh.
16304if test -z "$BASH_VERSION$ZSH_VERSION" \
16305 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16306 as_echo='print -r --'
16307 as_echo_n='print -rn --'
16308elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16309 as_echo='printf %s\n'
16310 as_echo_n='printf %s'
16311else
16312 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16313 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16314 as_echo_n='/usr/ucb/echo -n'
16315 else
16316 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16317 as_echo_n_body='eval
16318 arg=$1;
16319 case $arg in #(
16320 *"$as_nl"*)
16321 expr "X$arg" : "X\\(.*\\)$as_nl";
16322 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16323 esac;
16324 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16325 '
16326 export as_echo_n_body
16327 as_echo_n='sh -c $as_echo_n_body as_echo'
16328 fi
16329 export as_echo_body
16330 as_echo='sh -c $as_echo_body as_echo'
16331fi
16332
16333# The user is always right.
16334if test "${PATH_SEPARATOR+set}" != set; then
16335 PATH_SEPARATOR=:
16336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16337 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16338 PATH_SEPARATOR=';'
16339 }
16340fi
16341
16342
16343# IFS
16344# We need space, tab and new line, in precisely that order. Quoting is
16345# there to prevent editors from complaining about space-tab.
16346# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16347# splitting by setting IFS to empty value.)
16348IFS=" "" $as_nl"
16349
16350# Find who we are. Look in the path if we contain no directory separator.
16351as_myself=
16352case $0 in #((
16353 *[\\/]* ) as_myself=$0 ;;
16354 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16355for as_dir in $PATH
16356do
16357 IFS=$as_save_IFS
16358 test -z "$as_dir" && as_dir=.
16359 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16360 done
16361IFS=$as_save_IFS
16362
16363 ;;
16364esac
16365# We did not find ourselves, most probably we were run as `sh COMMAND'
16366# in which case we are not to be found in the path.
16367if test "x$as_myself" = x; then
16368 as_myself=$0
16369fi
16370if test ! -f "$as_myself"; then
16371 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16372 exit 1
16373fi
16374
16375# Unset variables that we do not need and which cause bugs (e.g. in
16376# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16377# suppresses any "Segmentation fault" message there. '((' could
16378# trigger a bug in pdksh 5.2.14.
16379for as_var in BASH_ENV ENV MAIL MAILPATH
16380do eval test x\${$as_var+set} = xset \
16381 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16382done
16383PS1='$ '
16384PS2='> '
16385PS4='+ '
16386
16387# NLS nuisances.
16388LC_ALL=C
16389export LC_ALL
16390LANGUAGE=C
16391export LANGUAGE
16392
16393# CDPATH.
16394(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16395
16396
16397# as_fn_error STATUS ERROR [LINENO LOG_FD]
16398# ----------------------------------------
16399# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16400# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16401# script with STATUS, using 1 if that was 0.
16402as_fn_error ()
16403{
16404 as_status=$1; test $as_status -eq 0 && as_status=1
16405 if test "$4"; then
16406 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16407 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16408 fi
16409 $as_echo "$as_me: error: $2" >&2
16410 as_fn_exit $as_status
16411} # as_fn_error
16412
16413
16414# as_fn_set_status STATUS
16415# -----------------------
16416# Set $? to STATUS, without forking.
16417as_fn_set_status ()
16418{
16419 return $1
16420} # as_fn_set_status
16421
16422# as_fn_exit STATUS
16423# -----------------
16424# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16425as_fn_exit ()
16426{
16427 set +e
16428 as_fn_set_status $1
16429 exit $1
16430} # as_fn_exit
16431
16432# as_fn_unset VAR
16433# ---------------
16434# Portably unset VAR.
16435as_fn_unset ()
16436{
16437 { eval $1=; unset $1;}
16438}
16439as_unset=as_fn_unset
16440# as_fn_append VAR VALUE
16441# ----------------------
16442# Append the text in VALUE to the end of the definition contained in VAR. Take
16443# advantage of any shell optimizations that allow amortized linear growth over
16444# repeated appends, instead of the typical quadratic growth present in naive
16445# implementations.
16446if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16447 eval 'as_fn_append ()
16448 {
16449 eval $1+=\$2
16450 }'
16451else
16452 as_fn_append ()
16453 {
16454 eval $1=\$$1\$2
16455 }
16456fi # as_fn_append
16457
16458# as_fn_arith ARG...
16459# ------------------
16460# Perform arithmetic evaluation on the ARGs, and store the result in the
16461# global $as_val. Take advantage of shells that can avoid forks. The arguments
16462# must be portable across $(()) and expr.
16463if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16464 eval 'as_fn_arith ()
16465 {
16466 as_val=$(( $* ))
16467 }'
16468else
16469 as_fn_arith ()
16470 {
16471 as_val=`expr "$@" || test $? -eq 1`
16472 }
16473fi # as_fn_arith
16474
16475
16476if expr a : '\(a\)' >/dev/null 2>&1 &&
16477 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16478 as_expr=expr
16479else
16480 as_expr=false
16481fi
16482
16483if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16484 as_basename=basename
16485else
16486 as_basename=false
16487fi
16488
16489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16490 as_dirname=dirname
16491else
16492 as_dirname=false
16493fi
16494
16495as_me=`$as_basename -- "$0" ||
16496$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16497 X"$0" : 'X\(//\)$' \| \
16498 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16499$as_echo X/"$0" |
16500 sed '/^.*\/\([^/][^/]*\)\/*$/{
16501 s//\1/
16502 q
16503 }
16504 /^X\/\(\/\/\)$/{
16505 s//\1/
16506 q
16507 }
16508 /^X\/\(\/\).*/{
16509 s//\1/
16510 q
16511 }
16512 s/.*/./; q'`
16513
16514# Avoid depending upon Character Ranges.
16515as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16516as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16517as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16518as_cr_digits='0123456789'
16519as_cr_alnum=$as_cr_Letters$as_cr_digits
16520
16521ECHO_C= ECHO_N= ECHO_T=
16522case `echo -n x` in #(((((
16523-n*)
16524 case `echo 'xy\c'` in
16525 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16526 xy) ECHO_C='\c';;
16527 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16528 ECHO_T=' ';;
16529 esac;;
16530*)
16531 ECHO_N='-n';;
16532esac
16533
16534rm -f conf$$ conf$$.exe conf$$.file
16535if test -d conf$$.dir; then
16536 rm -f conf$$.dir/conf$$.file
16537else
16538 rm -f conf$$.dir
16539 mkdir conf$$.dir 2>/dev/null
16540fi
16541if (echo >conf$$.file) 2>/dev/null; then
16542 if ln -s conf$$.file conf$$ 2>/dev/null; then
16543 as_ln_s='ln -s'
16544 # ... but there are two gotchas:
16545 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16546 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16547 # In both cases, we have to default to `cp -p'.
16548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16549 as_ln_s='cp -p'
16550 elif ln conf$$.file conf$$ 2>/dev/null; then
16551 as_ln_s=ln
16552 else
16553 as_ln_s='cp -p'
16554 fi
16555else
16556 as_ln_s='cp -p'
16557fi
16558rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16559rmdir conf$$.dir 2>/dev/null
16560
16561
16562# as_fn_mkdir_p
16563# -------------
16564# Create "$as_dir" as a directory, including parents if necessary.
16565as_fn_mkdir_p ()
16566{
16567
16568 case $as_dir in #(
16569 -*) as_dir=./$as_dir;;
16570 esac
16571 test -d "$as_dir" || eval $as_mkdir_p || {
16572 as_dirs=
16573 while :; do
16574 case $as_dir in #(
16575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16576 *) as_qdir=$as_dir;;
16577 esac
16578 as_dirs="'$as_qdir' $as_dirs"
16579 as_dir=`$as_dirname -- "$as_dir" ||
16580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16581 X"$as_dir" : 'X\(//\)[^/]' \| \
16582 X"$as_dir" : 'X\(//\)$' \| \
16583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16584$as_echo X"$as_dir" |
16585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16586 s//\1/
16587 q
16588 }
16589 /^X\(\/\/\)[^/].*/{
16590 s//\1/
16591 q
16592 }
16593 /^X\(\/\/\)$/{
16594 s//\1/
16595 q
16596 }
16597 /^X\(\/\).*/{
16598 s//\1/
16599 q
16600 }
16601 s/.*/./; q'`
16602 test -d "$as_dir" && break
16603 done
16604 test -z "$as_dirs" || eval "mkdir $as_dirs"
16605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16606
16607
16608} # as_fn_mkdir_p
16609if mkdir -p . 2>/dev/null; then
16610 as_mkdir_p='mkdir -p "$as_dir"'
16611else
16612 test -d ./-p && rmdir ./-p
16613 as_mkdir_p=false
16614fi
16615
16616if test -x / >/dev/null 2>&1; then
16617 as_test_x='test -x'
16618else
16619 if ls -dL / >/dev/null 2>&1; then
16620 as_ls_L_option=L
16621 else
16622 as_ls_L_option=
16623 fi
16624 as_test_x='
16625 eval sh -c '\''
16626 if test -d "$1"; then
16627 test -d "$1/.";
16628 else
16629 case $1 in #(
16630 -*)set "./$1";;
16631 esac;
16632 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16633 ???[sx]*):;;*)false;;esac;fi
16634 '\'' sh
16635 '
16636fi
16637as_executable_p=$as_test_x
16638
16639# Sed expression to map a string onto a valid CPP name.
16640as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16641
16642# Sed expression to map a string onto a valid variable name.
16643as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16644
16645
16646exec 6>&1
16647## ----------------------------------- ##
16648## Main body of $CONFIG_STATUS script. ##
16649## ----------------------------------- ##
16650_ASEOF
16651test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16652
16653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654# Save the log message, to keep $0 and so on meaningful, and to
16655# report actual input values of CONFIG_FILES etc. instead of their
16656# values after options handling.
16657ac_log="
16658This file was extended by OpenSSH $as_me Portable, which was
16659generated by GNU Autoconf 2.68. Invocation command line was
16660
16661 CONFIG_FILES = $CONFIG_FILES
16662 CONFIG_HEADERS = $CONFIG_HEADERS
16663 CONFIG_LINKS = $CONFIG_LINKS
16664 CONFIG_COMMANDS = $CONFIG_COMMANDS
16665 $ $0 $@
16666
16667on `(hostname || uname -n) 2>/dev/null | sed 1q`
16668"
16669
16670_ACEOF
16671
16672case $ac_config_files in *"
16673"*) set x $ac_config_files; shift; ac_config_files=$*;;
16674esac
16675
16676case $ac_config_headers in *"
16677"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16678esac
16679
16680
16681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16682# Files that config.status was made for.
16683config_files="$ac_config_files"
16684config_headers="$ac_config_headers"
16685
16686_ACEOF
16687
16688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689ac_cs_usage="\
16690\`$as_me' instantiates files and other configuration actions
16691from templates according to the current configuration. Unless the files
16692and actions are specified as TAGs, all are instantiated by default.
16693
16694Usage: $0 [OPTION]... [TAG]...
16695
16696 -h, --help print this help, then exit
16697 -V, --version print version number and configuration settings, then exit
16698 --config print configuration, then exit
16699 -q, --quiet, --silent
16700 do not print progress messages
16701 -d, --debug don't remove temporary files
16702 --recheck update $as_me by reconfiguring in the same conditions
16703 --file=FILE[:TEMPLATE]
16704 instantiate the configuration file FILE
16705 --header=FILE[:TEMPLATE]
16706 instantiate the configuration header FILE
16707
16708Configuration files:
16709$config_files
16710
16711Configuration headers:
16712$config_headers
16713
16714Report bugs to <openssh-unix-dev@mindrot.org>."
16715
16716_ACEOF
16717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16719ac_cs_version="\\
16720OpenSSH config.status Portable
16721configured by $0, generated by GNU Autoconf 2.68,
16722 with options \\"\$ac_cs_config\\"
16723
16724Copyright (C) 2010 Free Software Foundation, Inc.
16725This config.status script is free software; the Free Software Foundation
16726gives unlimited permission to copy, distribute and modify it."
16727
16728ac_pwd='$ac_pwd'
16729srcdir='$srcdir'
16730INSTALL='$INSTALL'
16731AWK='$AWK'
16732test -n "\$AWK" || AWK=awk
16733_ACEOF
16734
16735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736# The default lists apply if the user does not specify any file.
16737ac_need_defaults=:
16738while test $# != 0
16739do
16740 case $1 in
16741 --*=?*)
16742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16744 ac_shift=:
16745 ;;
16746 --*=)
16747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16748 ac_optarg=
16749 ac_shift=:
16750 ;;
16751 *)
16752 ac_option=$1
16753 ac_optarg=$2
16754 ac_shift=shift
16755 ;;
16756 esac
16757
16758 case $ac_option in
16759 # Handling of the options.
16760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16761 ac_cs_recheck=: ;;
16762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16763 $as_echo "$ac_cs_version"; exit ;;
16764 --config | --confi | --conf | --con | --co | --c )
16765 $as_echo "$ac_cs_config"; exit ;;
16766 --debug | --debu | --deb | --de | --d | -d )
16767 debug=: ;;
16768 --file | --fil | --fi | --f )
16769 $ac_shift
16770 case $ac_optarg in
16771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16772 '') as_fn_error $? "missing file argument" ;;
16773 esac
16774 as_fn_append CONFIG_FILES " '$ac_optarg'"
16775 ac_need_defaults=false;;
16776 --header | --heade | --head | --hea )
16777 $ac_shift
16778 case $ac_optarg in
16779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16780 esac
16781 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16782 ac_need_defaults=false;;
16783 --he | --h)
16784 # Conflict between --help and --header
16785 as_fn_error $? "ambiguous option: \`$1'
16786Try \`$0 --help' for more information.";;
16787 --help | --hel | -h )
16788 $as_echo "$ac_cs_usage"; exit ;;
16789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16791 ac_cs_silent=: ;;
16792
16793 # This is an error.
16794 -*) as_fn_error $? "unrecognized option: \`$1'
16795Try \`$0 --help' for more information." ;;
16796
16797 *) as_fn_append ac_config_targets " $1"
16798 ac_need_defaults=false ;;
16799
16800 esac
16801 shift
16802done
16803
16804ac_configure_extra_args=
16805
16806if $ac_cs_silent; then
16807 exec 6>/dev/null
16808 ac_configure_extra_args="$ac_configure_extra_args --silent"
16809fi
16810
16811_ACEOF
16812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16813if \$ac_cs_recheck; then
16814 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16815 shift
16816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16817 CONFIG_SHELL='$SHELL'
16818 export CONFIG_SHELL
16819 exec "\$@"
16820fi
16821
16822_ACEOF
16823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16824exec 5>>config.log
16825{
16826 echo
16827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16828## Running $as_me. ##
16829_ASBOX
16830 $as_echo "$ac_log"
16831} >&5
16832
16833_ACEOF
16834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835_ACEOF
16836
16837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838
16839# Handling of arguments.
16840for ac_config_target in $ac_config_targets
16841do
16842 case $ac_config_target in
16843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16844 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16845 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16846 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16847 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16848 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16849 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16850 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16851
16852 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16853 esac
16854done
16855
16856
16857# If the user did not use the arguments to specify the items to instantiate,
16858# then the envvar interface is used. Set only those that are not.
16859# We use the long form for the default assignment because of an extremely
16860# bizarre bug on SunOS 4.1.3.
16861if $ac_need_defaults; then
16862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16864fi
16865
16866# Have a temporary directory for convenience. Make it in the build tree
16867# simply because there is no reason against having it here, and in addition,
16868# creating and moving files from /tmp can sometimes cause problems.
16869# Hook for its removal unless debugging.
16870# Note that there is a small window in which the directory will not be cleaned:
16871# after its creation but before its name has been assigned to `$tmp'.
16872$debug ||
16873{
16874 tmp= ac_tmp=
16875 trap 'exit_status=$?
16876 : "${ac_tmp:=$tmp}"
16877 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16878' 0
16879 trap 'as_fn_exit 1' 1 2 13 15
16880}
16881# Create a (secure) tmp directory for tmp files.
16882
16883{
16884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16885 test -d "$tmp"
16886} ||
16887{
16888 tmp=./conf$$-$RANDOM
16889 (umask 077 && mkdir "$tmp")
16890} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16891ac_tmp=$tmp
16892
16893# Set up the scripts for CONFIG_FILES section.
16894# No need to generate them if there are no CONFIG_FILES.
16895# This happens for instance with `./config.status config.h'.
16896if test -n "$CONFIG_FILES"; then
16897
16898
16899ac_cr=`echo X | tr X '\015'`
16900# On cygwin, bash can eat \r inside `` if the user requested igncr.
16901# But we know of no other shell where ac_cr would be empty at this
16902# point, so we can use a bashism as a fallback.
16903if test "x$ac_cr" = x; then
16904 eval ac_cr=\$\'\\r\'
16905fi
16906ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16907if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16908 ac_cs_awk_cr='\\r'
16909else
16910 ac_cs_awk_cr=$ac_cr
16911fi
16912
16913echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16914_ACEOF
16915
16916
16917{
16918 echo "cat >conf$$subs.awk <<_ACEOF" &&
16919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16920 echo "_ACEOF"
16921} >conf$$subs.sh ||
16922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16923ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16924ac_delim='%!_!# '
16925for ac_last_try in false false false false false :; do
16926 . ./conf$$subs.sh ||
16927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16928
16929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16930 if test $ac_delim_n = $ac_delim_num; then
16931 break
16932 elif $ac_last_try; then
16933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16934 else
16935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16936 fi
16937done
16938rm -f conf$$subs.sh
16939
16940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16942_ACEOF
16943sed -n '
16944h
16945s/^/S["/; s/!.*/"]=/
16946p
16947g
16948s/^[^!]*!//
16949:repl
16950t repl
16951s/'"$ac_delim"'$//
16952t delim
16953:nl
16954h
16955s/\(.\{148\}\)..*/\1/
16956t more1
16957s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16958p
16959n
16960b repl
16961:more1
16962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16963p
16964g
16965s/.\{148\}//
16966t nl
16967:delim
16968h
16969s/\(.\{148\}\)..*/\1/
16970t more2
16971s/["\\]/\\&/g; s/^/"/; s/$/"/
16972p
16973b
16974:more2
16975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16976p
16977g
16978s/.\{148\}//
16979t delim
16980' <conf$$subs.awk | sed '
16981/^[^""]/{
16982 N
16983 s/\n//
16984}
16985' >>$CONFIG_STATUS || ac_write_fail=1
16986rm -f conf$$subs.awk
16987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988_ACAWK
16989cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16990 for (key in S) S_is_set[key] = 1
16991 FS = ""
16992
16993}
16994{
16995 line = $ 0
16996 nfields = split(line, field, "@")
16997 substed = 0
16998 len = length(field[1])
16999 for (i = 2; i < nfields; i++) {
17000 key = field[i]
17001 keylen = length(key)
17002 if (S_is_set[key]) {
17003 value = S[key]
17004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17005 len += length(value) + length(field[++i])
17006 substed = 1
17007 } else
17008 len += 1 + keylen
17009 }
17010
17011 print line
17012}
17013
17014_ACAWK
17015_ACEOF
17016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17017if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17019else
17020 cat
17021fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17022 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17023_ACEOF
17024
17025# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17026# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17027# trailing colons and then remove the whole line if VPATH becomes empty
17028# (actually we leave an empty line to preserve line numbers).
17029if test "x$srcdir" = x.; then
17030 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17031h
17032s///
17033s/^/:/
17034s/[ ]*$/:/
17035s/:\$(srcdir):/:/g
17036s/:\${srcdir}:/:/g
17037s/:@srcdir@:/:/g
17038s/^:*//
17039s/:*$//
17040x
17041s/\(=[ ]*\).*/\1/
17042G
17043s/\n//
17044s/^[^=]*=[ ]*$//
17045}'
17046fi
17047
17048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17049fi # test -n "$CONFIG_FILES"
17050
17051# Set up the scripts for CONFIG_HEADERS section.
17052# No need to generate them if there are no CONFIG_HEADERS.
17053# This happens for instance with `./config.status Makefile'.
17054if test -n "$CONFIG_HEADERS"; then
17055cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17056BEGIN {
17057_ACEOF
17058
17059# Transform confdefs.h into an awk script `defines.awk', embedded as
17060# here-document in config.status, that substitutes the proper values into
17061# config.h.in to produce config.h.
17062
17063# Create a delimiter string that does not exist in confdefs.h, to ease
17064# handling of long lines.
17065ac_delim='%!_!# '
17066for ac_last_try in false false :; do
17067 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17068 if test -z "$ac_tt"; then
17069 break
17070 elif $ac_last_try; then
17071 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17072 else
17073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17074 fi
17075done
17076
17077# For the awk script, D is an array of macro values keyed by name,
17078# likewise P contains macro parameters if any. Preserve backslash
17079# newline sequences.
17080
17081ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17082sed -n '
17083s/.\{148\}/&'"$ac_delim"'/g
17084t rset
17085:rset
17086s/^[ ]*#[ ]*define[ ][ ]*/ /
17087t def
17088d
17089:def
17090s/\\$//
17091t bsnl
17092s/["\\]/\\&/g
17093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17094D["\1"]=" \3"/p
17095s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17096d
17097:bsnl
17098s/["\\]/\\&/g
17099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17100D["\1"]=" \3\\\\\\n"\\/p
17101t cont
17102s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17103t cont
17104d
17105:cont
17106n
17107s/.\{148\}/&'"$ac_delim"'/g
17108t clear
17109:clear
17110s/\\$//
17111t bsnlc
17112s/["\\]/\\&/g; s/^/"/; s/$/"/p
17113d
17114:bsnlc
17115s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17116b cont
17117' <confdefs.h | sed '
17118s/'"$ac_delim"'/"\\\
17119"/g' >>$CONFIG_STATUS || ac_write_fail=1
17120
17121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17122 for (key in D) D_is_set[key] = 1
17123 FS = ""
17124}
17125/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17126 line = \$ 0
17127 split(line, arg, " ")
17128 if (arg[1] == "#") {
17129 defundef = arg[2]
17130 mac1 = arg[3]
17131 } else {
17132 defundef = substr(arg[1], 2)
17133 mac1 = arg[2]
17134 }
17135 split(mac1, mac2, "(") #)
17136 macro = mac2[1]
17137 prefix = substr(line, 1, index(line, defundef) - 1)
17138 if (D_is_set[macro]) {
17139 # Preserve the white space surrounding the "#".
17140 print prefix "define", macro P[macro] D[macro]
17141 next
17142 } else {
17143 # Replace #undef with comments. This is necessary, for example,
17144 # in the case of _POSIX_SOURCE, which is predefined and required
17145 # on some systems where configure will not decide to define it.
17146 if (defundef == "undef") {
17147 print "/*", prefix defundef, macro, "*/"
17148 next
17149 }
17150 }
17151}
17152{ print }
17153_ACAWK
17154_ACEOF
17155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17157fi # test -n "$CONFIG_HEADERS"
17158
17159
17160eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17161shift
17162for ac_tag
17163do
17164 case $ac_tag in
17165 :[FHLC]) ac_mode=$ac_tag; continue;;
17166 esac
17167 case $ac_mode$ac_tag in
17168 :[FHL]*:*);;
17169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17170 :[FH]-) ac_tag=-:-;;
17171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17172 esac
17173 ac_save_IFS=$IFS
17174 IFS=:
17175 set x $ac_tag
17176 IFS=$ac_save_IFS
17177 shift
17178 ac_file=$1
17179 shift
17180
17181 case $ac_mode in
17182 :L) ac_source=$1;;
17183 :[FH])
17184 ac_file_inputs=
17185 for ac_f
17186 do
17187 case $ac_f in
17188 -) ac_f="$ac_tmp/stdin";;
17189 *) # Look for the file first in the build tree, then in the source tree
17190 # (if the path is not absolute). The absolute path cannot be DOS-style,
17191 # because $ac_f cannot contain `:'.
17192 test -f "$ac_f" ||
17193 case $ac_f in
17194 [\\/$]*) false;;
17195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17196 esac ||
17197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17198 esac
17199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17200 as_fn_append ac_file_inputs " '$ac_f'"
17201 done
17202
17203 # Let's still pretend it is `configure' which instantiates (i.e., don't
17204 # use $as_me), people would be surprised to read:
17205 # /* config.h. Generated by config.status. */
17206 configure_input='Generated from '`
17207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17208 `' by configure.'
17209 if test x"$ac_file" != x-; then
17210 configure_input="$ac_file. $configure_input"
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17212$as_echo "$as_me: creating $ac_file" >&6;}
17213 fi
17214 # Neutralize special characters interpreted by sed in replacement strings.
17215 case $configure_input in #(
17216 *\&* | *\|* | *\\* )
17217 ac_sed_conf_input=`$as_echo "$configure_input" |
17218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17219 *) ac_sed_conf_input=$configure_input;;
17220 esac
17221
17222 case $ac_tag in
17223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17225 esac
17226 ;;
17227 esac
17228
17229 ac_dir=`$as_dirname -- "$ac_file" ||
17230$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231 X"$ac_file" : 'X\(//\)[^/]' \| \
17232 X"$ac_file" : 'X\(//\)$' \| \
17233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17234$as_echo X"$ac_file" |
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236 s//\1/
17237 q
17238 }
17239 /^X\(\/\/\)[^/].*/{
17240 s//\1/
17241 q
17242 }
17243 /^X\(\/\/\)$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\).*/{
17248 s//\1/
17249 q
17250 }
17251 s/.*/./; q'`
17252 as_dir="$ac_dir"; as_fn_mkdir_p
17253 ac_builddir=.
17254
17255case "$ac_dir" in
17256.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17257*)
17258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17259 # A ".." for each directory in $ac_dir_suffix.
17260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17261 case $ac_top_builddir_sub in
17262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17264 esac ;;
17265esac
17266ac_abs_top_builddir=$ac_pwd
17267ac_abs_builddir=$ac_pwd$ac_dir_suffix
17268# for backward compatibility:
17269ac_top_builddir=$ac_top_build_prefix
17270
17271case $srcdir in
17272 .) # We are building in place.
17273 ac_srcdir=.
17274 ac_top_srcdir=$ac_top_builddir_sub
17275 ac_abs_top_srcdir=$ac_pwd ;;
17276 [\\/]* | ?:[\\/]* ) # Absolute name.
17277 ac_srcdir=$srcdir$ac_dir_suffix;
17278 ac_top_srcdir=$srcdir
17279 ac_abs_top_srcdir=$srcdir ;;
17280 *) # Relative name.
17281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17282 ac_top_srcdir=$ac_top_build_prefix$srcdir
17283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17284esac
17285ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17286
17287
17288 case $ac_mode in
17289 :F)
17290 #
17291 # CONFIG_FILE
17292 #
17293
17294 case $INSTALL in
17295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17297 esac
17298_ACEOF
17299
17300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17301# If the template does not know about datarootdir, expand it.
17302# FIXME: This hack should be removed a few years after 2.60.
17303ac_datarootdir_hack=; ac_datarootdir_seen=
17304ac_sed_dataroot='
17305/datarootdir/ {
17306 p
17307 q
17308}
17309/@datadir@/p
17310/@docdir@/p
17311/@infodir@/p
17312/@localedir@/p
17313/@mandir@/p'
17314case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17315*datarootdir*) ac_datarootdir_seen=yes;;
17316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17318$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17319_ACEOF
17320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17321 ac_datarootdir_hack='
17322 s&@datadir@&$datadir&g
17323 s&@docdir@&$docdir&g
17324 s&@infodir@&$infodir&g
17325 s&@localedir@&$localedir&g
17326 s&@mandir@&$mandir&g
17327 s&\\\${datarootdir}&$datarootdir&g' ;;
17328esac
17329_ACEOF
17330
17331# Neutralize VPATH when `$srcdir' = `.'.
17332# Shell code in configure.ac might set extrasub.
17333# FIXME: do we really want to maintain this feature?
17334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17335ac_sed_extra="$ac_vpsub
17336$extrasub
17337_ACEOF
17338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17339:t
17340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17341s|@configure_input@|$ac_sed_conf_input|;t t
17342s&@top_builddir@&$ac_top_builddir_sub&;t t
17343s&@top_build_prefix@&$ac_top_build_prefix&;t t
17344s&@srcdir@&$ac_srcdir&;t t
17345s&@abs_srcdir@&$ac_abs_srcdir&;t t
17346s&@top_srcdir@&$ac_top_srcdir&;t t
17347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17348s&@builddir@&$ac_builddir&;t t
17349s&@abs_builddir@&$ac_abs_builddir&;t t
17350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17351s&@INSTALL@&$ac_INSTALL&;t t
17352$ac_datarootdir_hack
17353"
17354eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17355 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17356
17357test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17358 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17359 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17360 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17362which seems to be undefined. Please make sure it is defined" >&5
17363$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17364which seems to be undefined. Please make sure it is defined" >&2;}
17365
17366 rm -f "$ac_tmp/stdin"
17367 case $ac_file in
17368 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17369 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17370 esac \
17371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17372 ;;
17373 :H)
17374 #
17375 # CONFIG_HEADER
17376 #
17377 if test x"$ac_file" != x-; then
17378 {
17379 $as_echo "/* $configure_input */" \
17380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17381 } >"$ac_tmp/config.h" \
17382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17383 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17385$as_echo "$as_me: $ac_file is unchanged" >&6;}
17386 else
17387 rm -f "$ac_file"
17388 mv "$ac_tmp/config.h" "$ac_file" \
17389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17390 fi
17391 else
17392 $as_echo "/* $configure_input */" \
17393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17394 || as_fn_error $? "could not create -" "$LINENO" 5
17395 fi
17396 ;;
17397
17398
17399 esac
17400
17401done # for ac_tag
17402
17403
17404as_fn_exit 0
17405_ACEOF
17406ac_clean_files=$ac_clean_files_save
17407
17408test $ac_write_fail = 0 ||
17409 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17410
17411
17412# configure is writing to config.log, and then calls config.status.
17413# config.status does its own redirection, appending to config.log.
17414# Unfortunately, on DOS this fails, as config.log is still kept open
17415# by configure, so config.status won't be able to write to it; its
17416# output is simply discarded. So we exec the FD to /dev/null,
17417# effectively closing config.log, so it can be properly (re)opened and
17418# appended to by config.status. When coming back to configure, we
17419# need to make the FD available again.
17420if test "$no_create" != yes; then
17421 ac_cs_success=:
17422 ac_config_status_args=
17423 test "$silent" = yes &&
17424 ac_config_status_args="$ac_config_status_args --quiet"
17425 exec 5>/dev/null
17426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17427 exec 5>>config.log
17428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17429 # would make configure fail if this is the last instruction.
17430 $ac_cs_success || as_fn_exit 1
17431fi
17432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17435fi
17436
17437
17438# Print summary of options
17439
17440# Someone please show me a better way :)
17441A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17442B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17443C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17444D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17445E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17446F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17447G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17448H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17449I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17450J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17451
17452echo ""
17453echo "OpenSSH has been configured with the following options:"
17454echo " User binaries: $B"
17455echo " System binaries: $C"
17456echo " Configuration files: $D"
17457echo " Askpass program: $E"
17458echo " Manual pages: $F"
17459echo " PID file: $G"
17460echo " Privilege separation chroot path: $H"
17461if test "x$external_path_file" = "x/etc/login.conf" ; then
17462echo " At runtime, sshd will use the path defined in $external_path_file"
17463echo " Make sure the path to scp is present, otherwise scp will not work"
17464else
17465echo " sshd default user PATH: $I"
17466 if test ! -z "$external_path_file"; then
17467echo " (If PATH is set in $external_path_file it will be used instead. If"
17468echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17469 fi
17470fi
17471if test ! -z "$superuser_path" ; then
17472echo " sshd superuser user PATH: $J"
17473fi
17474echo " Manpage format: $MANTYPE"
17475echo " PAM support: $PAM_MSG"
17476echo " OSF SIA support: $SIA_MSG"
17477echo " KerberosV support: $KRB5_MSG"
17478echo " SELinux support: $SELINUX_MSG"
17479echo " Smartcard support: $SCARD_MSG"
17480echo " S/KEY support: $SKEY_MSG"
17481echo " TCP Wrappers support: $TCPW_MSG"
17482echo " MD5 password support: $MD5_MSG"
17483echo " libedit support: $LIBEDIT_MSG"
17484echo " Solaris process contract support: $SPC_MSG"
17485echo " Solaris project support: $SP_MSG"
17486echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17487echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17488echo " BSD Auth support: $BSD_AUTH_MSG"
17489echo " Random number source: $RAND_MSG"
17490echo " Privsep sandbox style: $SANDBOX_STYLE"
17491
17492echo ""
17493
17494echo " Host: ${host}"
17495echo " Compiler: ${CC}"
17496echo " Compiler flags: ${CFLAGS}"
17497echo "Preprocessor flags: ${CPPFLAGS}"
17498echo " Linker flags: ${LDFLAGS}"
17499echo " Libraries: ${LIBS}"
17500if test ! -z "${SSHDLIBS}"; then
17501echo " +for sshd: ${SSHDLIBS}"
17502fi
17503if test ! -z "${SSHLIBS}"; then
17504echo " +for ssh: ${SSHLIBS}"
17505fi
17506
17507echo ""
17508
17509if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17510 echo "SVR4 style packages are supported with \"make package\""
17511 echo ""
17512fi
17513
17514if test "x$PAM_MSG" = "xyes" ; then
17515 echo "PAM is enabled. You may need to install a PAM control file "
17516 echo "for sshd, otherwise password authentication may fail. "
17517 echo "Example PAM control files can be found in the contrib/ "
17518 echo "subdirectory"
17519 echo ""
17520fi
17521
17522if test ! -z "$NO_PEERCHECK" ; then
17523 echo "WARNING: the operating system that you are using does not"
17524 echo "appear to support getpeereid(), getpeerucred() or the"
17525 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17526 echo "enforce security checks to prevent unauthorised connections to"
17527 echo "ssh-agent. Their absence increases the risk that a malicious"
17528 echo "user can connect to your agent."
17529 echo ""
17530fi
17531
17532if test "$AUDIT_MODULE" = "bsm" ; then
17533 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17534 echo "See the Solaris section in README.platform for details."
17535fi
diff --git a/contrib/solaris/README b/contrib/solaris/README
index fefdd4b53..fefdd4b53 100644..100755
--- a/contrib/solaris/README
+++ b/contrib/solaris/README
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..c529488b2
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,72 @@
1MODULI(5) OpenBSD Programmer's 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; (p+1)*2 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
69 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
70 Protocol, RFC 4419, 2006.
71
72OpenBSD 5.0 October 14, 2010 OpenBSD 5.0
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 afbf7cc3f..000000000
--- a/openbsd-compat/regress/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
1Makefile
2snprintftest
3strduptest
4strtonumtest
5
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index cf8e0ad66..cf8e0ad66 100644..100755
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
diff --git a/openbsd-compat/sha2.h b/openbsd-compat/sha2.h
index 821f2dd6c..821f2dd6c 100644..100755
--- a/openbsd-compat/sha2.h
+++ b/openbsd-compat/sha2.h
diff --git a/regress/.cvsignore b/regress/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/regress/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
1Makefile
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..a4fad8ade
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,156 @@
1SCP(1) OpenBSD Reference 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). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
16
17 File names may contain a user and host specification to indicate that the
18 file is to be copied to/from that host. Local file names can be made
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 ChallengeResponseAuthentication
71 CheckHostIP
72 Cipher
73 Ciphers
74 Compression
75 CompressionLevel
76 ConnectionAttempts
77 ConnectTimeout
78 ControlMaster
79 ControlPath
80 GlobalKnownHostsFile
81 GSSAPIAuthentication
82 GSSAPIDelegateCredentials
83 HashKnownHosts
84 Host
85 HostbasedAuthentication
86 HostKeyAlgorithms
87 HostKeyAlias
88 HostName
89 IdentityFile
90 IdentitiesOnly
91 IPQoS
92 KbdInteractiveDevices
93 KexAlgorithms
94 LogLevel
95 MACs
96 NoHostAuthenticationForLocalhost
97 NumberOfPasswordPrompts
98 PasswordAuthentication
99 PKCS11Provider
100 Port
101 PreferredAuthentications
102 Protocol
103 ProxyCommand
104 PubkeyAuthentication
105 RekeyLimit
106 RhostsRSAAuthentication
107 RSAAuthentication
108 SendEnv
109 ServerAliveInterval
110 ServerAliveCountMax
111 StrictHostKeyChecking
112 TCPKeepAlive
113 UsePrivilegedPort
114 User
115 UserKnownHostsFile
116 VerifyHostKeyDNS
117
118 -P port
119 Specifies the port to connect to on the remote host. Note that
120 this option is written with a capital `P', because -p is already
121 reserved for preserving the times and modes of the file in
122 rcp(1).
123
124 -p Preserves modification times, access times, and modes from the
125 original file.
126
127 -q Quiet mode: disables the progress meter as well as warning and
128 diagnostic messages from ssh(1).
129
130 -r Recursively copy entire directories. Note that scp follows
131 symbolic links encountered in the tree traversal.
132
133 -S program
134 Name of program to use for the encrypted connection. The program
135 must understand ssh(1) options.
136
137 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
138 about their progress. This is helpful in debugging connection,
139 authentication, and configuration problems.
140
141EXIT STATUS
142 The scp utility exits 0 on success, and >0 if an error occurs.
143
144SEE ALSO
145 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
146 ssh_config(5), sshd(8)
147
148HISTORY
149 scp is based on the rcp(1) program in BSD source code from the Regents of
150 the University of California.
151
152AUTHORS
153 Timo Rinne <tri@iki.fi>
154 Tatu Ylonen <ylo@cs.hut.fi>
155
156OpenBSD 5.0 December 9, 2010 OpenBSD 5.0
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..08695a038
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,64 @@
1SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask]
8
9DESCRIPTION
10 sftp-server is a program that speaks the server side of SFTP protocol to
11 stdout and expects client requests from stdin. sftp-server is not
12 intended to be called directly, but from sshd(8) using the Subsystem
13 option.
14
15 Command-line flags to sftp-server should be specified in the Subsystem
16 declaration. See sshd_config(5) for more information.
17
18 Valid options are:
19
20 -e Causes sftp-server to print logging information to stderr instead
21 of syslog for debugging.
22
23 -f log_facility
24 Specifies the facility code that is used when logging messages
25 from sftp-server. The possible values are: DAEMON, USER, AUTH,
26 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
27 The default is AUTH.
28
29 -h Displays sftp-server usage information.
30
31 -l log_level
32 Specifies which messages will be logged by sftp-server. The
33 possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG,
34 DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions
35 that sftp-server performs on behalf of the client. DEBUG and
36 DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher
37 levels of debugging output. The default is ERROR.
38
39 -R Places this instance of sftp-server into a read-only mode.
40 Attempts to open files for writing, as well as other operations
41 that change the state of the filesystem, will be denied.
42
43 -u umask
44 Sets an explicit umask(2) to be applied to newly-created files
45 and directories, instead of the user's default mask.
46
47 For logging to work, sftp-server must be able to access /dev/log. Use of
48 sftp-server in a chroot configuration therefore requires that syslogd(8)
49 establish a logging socket inside the chroot directory.
50
51SEE ALSO
52 sftp(1), ssh(1), sshd_config(5), sshd(8)
53
54 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
55 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
56 material.
57
58HISTORY
59 sftp-server first appeared in OpenBSD 2.8.
60
61AUTHORS
62 Markus Friedl <markus@openbsd.org>
63
64OpenBSD 5.0 January 9, 2010 OpenBSD 5.0
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..f29776701
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,337 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1)
2
3NAME
4 sftp - secure file transfer program
5
6SYNOPSIS
7 sftp [-1246Cpqrv] [-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 -B buffer_size
48 Specify the size of the buffer that sftp uses when transferring
49 files. Larger buffers require fewer round trips at the cost of
50 higher memory consumption. The default is 32768 bytes.
51
52 -b batchfile
53 Batch mode reads a series of commands from an input batchfile
54 instead of stdin. Since it lacks user interaction it should be
55 used in conjunction with non-interactive authentication. A
56 batchfile of `-' may be used to indicate standard input. sftp
57 will abort if any of the following commands fail: get, put,
58 rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
59 lpwd, df, symlink, and lmkdir. Termination on error can be
60 suppressed on a command by command basis by prefixing the command
61 with a `-' character (for example, -rm /tmp/blah*).
62
63 -C Enables compression (via ssh's -C flag).
64
65 -c cipher
66 Selects the cipher to use for encrypting the data transfers.
67 This option is directly passed to ssh(1).
68
69 -D sftp_server_path
70 Connect directly to a local sftp server (rather than via ssh(1)).
71 This option may be useful in debugging the client and server.
72
73 -F ssh_config
74 Specifies an alternative per-user configuration file for ssh(1).
75 This option is directly passed to ssh(1).
76
77 -i identity_file
78 Selects the file from which the identity (private key) for public
79 key authentication is read. This option is directly passed to
80 ssh(1).
81
82 -l limit
83 Limits the used bandwidth, specified in Kbit/s.
84
85 -o ssh_option
86 Can be used to pass options to ssh in the format used in
87 ssh_config(5). This is useful for specifying options for which
88 there is no separate sftp command-line flag. For example, to
89 specify an alternate port use: sftp -oPort=24. For full details
90 of the options listed below, and their possible values, see
91 ssh_config(5).
92
93 AddressFamily
94 BatchMode
95 BindAddress
96 ChallengeResponseAuthentication
97 CheckHostIP
98 Cipher
99 Ciphers
100 Compression
101 CompressionLevel
102 ConnectionAttempts
103 ConnectTimeout
104 ControlMaster
105 ControlPath
106 GlobalKnownHostsFile
107 GSSAPIAuthentication
108 GSSAPIDelegateCredentials
109 HashKnownHosts
110 Host
111 HostbasedAuthentication
112 HostKeyAlgorithms
113 HostKeyAlias
114 HostName
115 IdentityFile
116 IdentitiesOnly
117 IPQoS
118 KbdInteractiveDevices
119 KexAlgorithms
120 LogLevel
121 MACs
122 NoHostAuthenticationForLocalhost
123 NumberOfPasswordPrompts
124 PasswordAuthentication
125 PKCS11Provider
126 Port
127 PreferredAuthentications
128 Protocol
129 ProxyCommand
130 PubkeyAuthentication
131 RekeyLimit
132 RhostsRSAAuthentication
133 RSAAuthentication
134 SendEnv
135 ServerAliveInterval
136 ServerAliveCountMax
137 StrictHostKeyChecking
138 TCPKeepAlive
139 UsePrivilegedPort
140 User
141 UserKnownHostsFile
142 VerifyHostKeyDNS
143
144 -P port
145 Specifies the port to connect to on the remote host.
146
147 -p Preserves modification times, access times, and modes from the
148 original files transferred.
149
150 -q Quiet mode: disables the progress meter as well as warning and
151 diagnostic messages from ssh(1).
152
153 -R num_requests
154 Specify how many requests may be outstanding at any one time.
155 Increasing this may slightly improve file transfer speed but will
156 increase memory usage. The default is 64 outstanding requests.
157
158 -r Recursively copy entire directories when uploading and
159 downloading. Note that sftp does not follow symbolic links
160 encountered in the tree traversal.
161
162 -S program
163 Name of the program to use for the encrypted connection. The
164 program must understand ssh(1) options.
165
166 -s subsystem | sftp_server
167 Specifies the SSH2 subsystem or the path for an sftp server on
168 the remote host. A path is useful for using sftp over protocol
169 version 1, or when the remote sshd(8) does not have an sftp
170 subsystem configured.
171
172 -v Raise logging level. This option is also passed to ssh.
173
174INTERACTIVE COMMANDS
175 Once in interactive mode, sftp understands a set of commands similar to
176 those of ftp(1). Commands are case insensitive. Pathnames that contain
177 spaces must be enclosed in quotes. Any special characters contained
178 within pathnames that are recognized by glob(3) must be escaped with
179 backslashes (`\').
180
181 bye Quit sftp.
182
183 cd path
184 Change remote directory to path.
185
186 chgrp grp path
187 Change group of file path to grp. path may contain glob(3)
188 characters and may match multiple files. grp must be a numeric
189 GID.
190
191 chmod mode path
192 Change permissions of file path to mode. path may contain
193 glob(3) characters and may match multiple files.
194
195 chown own path
196 Change owner of file path to own. path may contain glob(3)
197 characters and may match multiple files. own must be a numeric
198 UID.
199
200 df [-hi] [path]
201 Display usage information for the filesystem holding the current
202 directory (or path if specified). If the -h flag is specified,
203 the capacity information will be displayed using "human-readable"
204 suffixes. The -i flag requests display of inode information in
205 addition to capacity information. This command is only supported
206 on servers that implement the ``statvfs@openssh.com'' extension.
207
208 exit Quit sftp.
209
210 get [-Ppr] remote-path [local-path]
211 Retrieve the remote-path and store it on the local machine. If
212 the local path name is not specified, it is given the same name
213 it has on the remote machine. remote-path may contain glob(3)
214 characters and may match multiple files. If it does and
215 local-path is specified, then local-path must specify a
216 directory.
217
218 If either the -P or -p flag is specified, then full file
219 permissions and access times are copied too.
220
221 If the -r flag is specified then directories will be copied
222 recursively. Note that sftp does not follow symbolic links when
223 performing recursive transfers.
224
225 help Display help text.
226
227 lcd path
228 Change local directory to path.
229
230 lls [ls-options [path]]
231 Display local directory listing of either path or current
232 directory if path is not specified. ls-options may contain any
233 flags supported by the local system's ls(1) command. path may
234 contain glob(3) characters and may match multiple files.
235
236 lmkdir path
237 Create local directory specified by path.
238
239 ln [-s] oldpath newpath
240 Create a link from oldpath to newpath. If the -s flag is
241 specified the created link is a symbolic link, otherwise it is a
242 hard link.
243
244 lpwd Print local working directory.
245
246 ls [-1afhlnrSt] [path]
247 Display a remote directory listing of either path or the current
248 directory if path is not specified. path may contain glob(3)
249 characters and may match multiple files.
250
251 The following flags are recognized and alter the behaviour of ls
252 accordingly:
253
254 -1 Produce single columnar output.
255
256 -a List files beginning with a dot (`.').
257
258 -f Do not sort the listing. The default sort order is
259 lexicographical.
260
261 -h When used with a long format option, use unit suffixes:
262 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
263 and Exabyte in order to reduce the number of digits to
264 four or fewer using powers of 2 for sizes (K=1024,
265 M=1048576, etc.).
266
267 -l Display additional details including permissions and
268 ownership information.
269
270 -n Produce a long listing with user and group information
271 presented numerically.
272
273 -r Reverse the sort order of the listing.
274
275 -S Sort the listing by file size.
276
277 -t Sort the listing by last modification time.
278
279 lumask umask
280 Set local umask to umask.
281
282 mkdir path
283 Create remote directory specified by path.
284
285 progress
286 Toggle display of progress meter.
287
288 put [-Ppr] local-path [remote-path]
289 Upload local-path and store it on the remote machine. If the
290 remote path name is not specified, it is given the same name it
291 has on the local machine. local-path may contain glob(3)
292 characters and may match multiple files. If it does and
293 remote-path is specified, then remote-path must specify a
294 directory.
295
296 If either the -P or -p flag is specified, then full file
297 permissions and access times are copied too.
298
299 If the -r flag is specified then directories will be copied
300 recursively. Note that sftp does not follow symbolic links when
301 performing recursive transfers.
302
303 pwd Display remote working directory.
304
305 quit Quit sftp.
306
307 rename oldpath newpath
308 Rename remote file from oldpath to newpath.
309
310 rm path
311 Delete remote file specified by path.
312
313 rmdir path
314 Remove remote directory specified by path.
315
316 symlink oldpath newpath
317 Create a symbolic link from oldpath to newpath.
318
319 version
320 Display the sftp protocol version.
321
322 !command
323 Execute command in local shell.
324
325 ! Escape to local shell.
326
327 ? Synonym for help.
328
329SEE ALSO
330 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
331 ssh_config(5), sftp-server(8), sshd(8)
332
333 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
334 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
335 material.
336
337OpenBSD 5.0 August 7, 2011 OpenBSD 5.0
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..e1e2a6417
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,115 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdLlXx] [-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 and ~/.ssh/identity. After
15 loading a private key, ssh-add will try to load corresponding certificate
16 information from the filename obtained by appending -cert.pub to the name
17 of the private key file. Alternative file names can be given on the
18 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 will be removed. Otherwise, the argument list
41 will be interpreted as a list of paths to public key files and
42 matching keys will be removed from the agent. If no public key
43 is found at a given path, ssh-add will append .pub and retry.
44
45 -e pkcs11
46 Remove keys provided by the PKCS#11 shared library pkcs11.
47
48 -L Lists public key parameters of all identities currently
49 represented by the agent.
50
51 -l Lists fingerprints of all identities currently represented by the
52 agent.
53
54 -s pkcs11
55 Add keys provided by the PKCS#11 shared library pkcs11.
56
57 -t life
58 Set a maximum lifetime when adding identities to an agent. The
59 lifetime may be specified in seconds or in a time format
60 specified in sshd_config(5).
61
62 -X Unlock the agent.
63
64 -x Lock the agent with a password.
65
66ENVIRONMENT
67 DISPLAY and SSH_ASKPASS
68 If ssh-add needs a passphrase, it will read the passphrase from
69 the current terminal if it was run from a terminal. If ssh-add
70 does not have a terminal associated with it but DISPLAY and
71 SSH_ASKPASS are set, it will execute the program specified by
72 SSH_ASKPASS and open an X11 window to read the passphrase. This
73 is particularly useful when calling ssh-add from a .xsession or
74 related script. (Note that on some machines it may be necessary
75 to redirect the input from /dev/null to make this work.)
76
77 SSH_AUTH_SOCK
78 Identifies the path of a UNIX-domain socket used to communicate
79 with the agent.
80
81FILES
82 ~/.ssh/identity
83 Contains the protocol version 1 RSA authentication identity of
84 the user.
85
86 ~/.ssh/id_dsa
87 Contains the protocol version 2 DSA authentication identity of
88 the user.
89
90 ~/.ssh/id_ecdsa
91 Contains the protocol version 2 ECDSA authentication identity of
92 the user.
93
94 ~/.ssh/id_rsa
95 Contains the protocol version 2 RSA authentication identity of
96 the user.
97
98 Identity files should not be readable by anyone but the user. Note that
99 ssh-add ignores identity files if they are accessible by others.
100
101EXIT STATUS
102 Exit status is 0 on success, 1 if the specified command fails, and 2 if
103 ssh-add is unable to contact the authentication agent.
104
105SEE ALSO
106 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
107
108AUTHORS
109 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
110 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
111 de Raadt and Dug Song removed many bugs, re-added newer features and
112 created OpenSSH. Markus Friedl contributed the support for SSH protocol
113 versions 1.5 and 2.0.
114
115OpenBSD 5.0 October 28, 2010 OpenBSD 5.0
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..751f49041
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,123 @@
1SSH-AGENT(1) OpenBSD Reference 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). The idea is that ssh-agent is 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 options are as follows:
20
21 -a bind_address
22 Bind the agent to the UNIX-domain socket bind_address. The
23 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
24
25 -c Generate C-shell commands on stdout. This is the default if
26 SHELL looks like it's a csh style of shell.
27
28 -d Debug mode. When this option is specified ssh-agent will not
29 fork.
30
31 -k Kill the current agent (given by the SSH_AGENT_PID environment
32 variable).
33
34 -s Generate Bourne shell commands on stdout. This is the default if
35 SHELL does not look like it's a csh style of shell.
36
37 -t life
38 Set a default value for the maximum lifetime of identities added
39 to the agent. The lifetime may be specified in seconds or in a
40 time format specified in sshd_config(5). A lifetime specified
41 for an identity with ssh-add(1) overrides this value. Without
42 this option the default maximum lifetime is forever.
43
44 If a commandline is given, this is executed as a subprocess of the agent.
45 When the command dies, so does the agent.
46
47 The agent initially does not have any private keys. Keys are added using
48 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
49 ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity. If
50 the identity has a passphrase, ssh-add(1) asks for the passphrase on the
51 terminal if it has one or from a small X11 program if running under X11.
52 If neither of these is the case then the authentication will fail. It
53 then sends the identity to the agent. Several identities can be stored
54 in the agent; the agent can automatically use any of these identities.
55 ssh-add -l displays the identities currently held by the agent.
56
57 The idea is that the agent is run in the user's local PC, laptop, or
58 terminal. Authentication data need not be stored on any other machine,
59 and authentication passphrases never go over the network. However, the
60 connection to the agent is forwarded over SSH remote logins, and the user
61 can thus use the privileges given by the identities anywhere in the
62 network in a secure way.
63
64 There are two main ways to get an agent set up: The first is that the
65 agent starts a new subcommand into which some environment variables are
66 exported, eg ssh-agent xterm &. The second is that the agent prints the
67 needed shell commands (either sh(1) or csh(1) syntax can be generated)
68 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
69 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
70 csh(1) and derivatives.
71
72 Later ssh(1) looks at these variables and uses them to establish a
73 connection to the agent.
74
75 The agent will never send a private key over its request channel.
76 Instead, operations that require a private key will be performed by the
77 agent, and the result will be returned to the requester. This way,
78 private keys are not exposed to clients using the agent.
79
80 A UNIX-domain socket is created and the name of this socket is stored in
81 the SSH_AUTH_SOCK environment variable. The socket is made accessible
82 only to the current user. This method is easily abused by root or
83 another instance of the same user.
84
85 The SSH_AGENT_PID environment variable holds the agent's process ID.
86
87 The agent exits automatically when the command given on the command line
88 terminates.
89
90FILES
91 ~/.ssh/identity
92 Contains the protocol version 1 RSA authentication identity of
93 the user.
94
95 ~/.ssh/id_dsa
96 Contains the protocol version 2 DSA authentication identity of
97 the user.
98
99 ~/.ssh/id_ecdsa
100 Contains the protocol version 2 ECDSA authentication identity of
101 the user.
102
103 ~/.ssh/id_rsa
104 Contains the protocol version 2 RSA authentication identity of
105 the user.
106
107 $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
108 UNIX-domain sockets used to contain the connection to the
109 authentication agent. These sockets should only be readable by
110 the owner. The sockets should get automatically removed when the
111 agent exits.
112
113SEE ALSO
114 ssh(1), ssh-add(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.0 November 21, 2010 OpenBSD 5.0
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..6c1763d4d
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,454 @@
1SSH-KEYGEN(1) OpenBSD Reference Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
8 [-f output_keyfile]
9 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
10 ssh-keygen -i [-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 num_trials]
23 [-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
29DESCRIPTION
30 ssh-keygen generates, manages and converts authentication keys for
31 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
32 and DSA, ECDSA or RSA keys for use by SSH protocol version 2. The type
33 of key to be generated is specified with the -t option. If invoked
34 without any arguments, ssh-keygen will generate an RSA key for use in SSH
35 protocol 2 connections.
36
37 ssh-keygen is also used to generate groups for use in Diffie-Hellman
38 group exchange (DH-GEX). See the MODULI GENERATION section for details.
39
40 Normally each user wishing to use SSH with public key authentication runs
41 this once to create the authentication key in ~/.ssh/identity,
42 ~/.ssh/id_ecdsa, ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the
43 system administrator may use this to generate host keys, as seen in
44 /etc/rc.
45
46 Normally this program generates the key and asks for a file in which to
47 store the private key. The public key is stored in a file with the same
48 name but ``.pub'' appended. The program also asks for a passphrase. The
49 passphrase may be empty to indicate no passphrase (host keys must have an
50 empty passphrase), or it may be a string of arbitrary length. A
51 passphrase is similar to a password, except it can be a phrase with a
52 series of words, punctuation, numbers, whitespace, or any string of
53 characters you want. Good passphrases are 10-30 characters long, are not
54 simple sentences or otherwise easily guessable (English prose has only 1-
55 2 bits of entropy per character, and provides very bad passphrases), and
56 contain a mix of upper and lowercase letters, numbers, and non-
57 alphanumeric characters. The passphrase can be changed later by using
58 the -p option.
59
60 There is no way to recover a lost passphrase. If the passphrase is lost
61 or forgotten, a new key must be generated and the corresponding public
62 key copied to other machines.
63
64 For RSA1 keys, there is also a comment field in the key file that is only
65 for convenience to the user to help identify the key. The comment can
66 tell what the key is for, or whatever is useful. The comment is
67 initialized to ``user@host'' when the key is created, but can be changed
68 using the -c option.
69
70 After a key is generated, instructions below detail where the keys should
71 be placed to be activated.
72
73 The options are as follows:
74
75 -A For each of the key types (rsa1, rsa, dsa and ecdsa) for which
76 host keys do not exist, generate the host keys with the default
77 key file path, an empty passphrase, default bits for the key
78 type, and default comment. This is used by /etc/rc to generate
79 new host keys.
80
81 -a trials
82 Specifies the number of primality tests to perform when screening
83 DH-GEX candidates using the -T command.
84
85 -B Show the bubblebabble digest of specified private or public key
86 file.
87
88 -b bits
89 Specifies the number of bits in the key to create. For RSA keys,
90 the minimum size is 768 bits and the default is 2048 bits.
91 Generally, 2048 bits is considered sufficient. DSA keys must be
92 exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
93 the -b flag determines they key length by selecting from one of
94 three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
95 use bit lengths other than these three values for ECDSA keys will
96 fail.
97
98 -C comment
99 Provides a new comment.
100
101 -c Requests changing the comment in the private and public key
102 files. This operation is only supported for RSA1 keys. The
103 program will prompt for the file containing the private keys, for
104 the passphrase if the key has one, and for the new comment.
105
106 -D pkcs11
107 Download the RSA public keys provided by the PKCS#11 shared
108 library pkcs11. When used in combination with -s, this option
109 indicates that a CA key resides in a PKCS#11 token (see the
110 CERTIFICATES section for details).
111
112 -e This option will read a private or public OpenSSH key file and
113 print to stdout the key in one of the formats specified by the -m
114 option. The default export format is ``RFC4716''. This option
115 allows exporting OpenSSH keys for use by other programs,
116 including several commercial SSH implementations.
117
118 -F hostname
119 Search for the specified hostname in a known_hosts file, listing
120 any occurrences found. This option is useful to find hashed host
121 names or addresses and may also be used in conjunction with the
122 -H option to print found keys in a hashed format.
123
124 -f filename
125 Specifies the filename of the key file.
126
127 -G output_file
128 Generate candidate primes for DH-GEX. These primes must be
129 screened for safety (using the -T option) before use.
130
131 -g Use generic DNS format when printing fingerprint resource records
132 using the -r command.
133
134 -H Hash a known_hosts file. This replaces all hostnames and
135 addresses with hashed representations within the specified file;
136 the original content is moved to a file with a .old suffix.
137 These hashes may be used normally by ssh and sshd, but they do
138 not reveal identifying information should the file's contents be
139 disclosed. This option will not modify existing hashed hostnames
140 and is therefore safe to use on files that mix hashed and non-
141 hashed names.
142
143 -h When signing a key, create a host certificate instead of a user
144 certificate. Please see the CERTIFICATES section for details.
145
146 -I certificate_identity
147 Specify the key identity when signing a public key. Please see
148 the CERTIFICATES section for details.
149
150 -i This option will read an unencrypted private (or public) key file
151 in the format specified by the -m option and print an OpenSSH
152 compatible private (or public) key to stdout. This option allows
153 importing keys from other software, including several commercial
154 SSH implementations. The default import format is ``RFC4716''.
155
156 -L Prints the contents of a certificate.
157
158 -l Show fingerprint of specified public key file. Private RSA1 keys
159 are also supported. For RSA and DSA keys ssh-keygen tries to
160 find the matching public key file and prints its fingerprint. If
161 combined with -v, an ASCII art representation of the key is
162 supplied with the fingerprint.
163
164 -M memory
165 Specify the amount of memory to use (in megabytes) when
166 generating candidate moduli for DH-GEX.
167
168 -m key_format
169 Specify a key format for the -i (import) or -e (export)
170 conversion options. The supported key formats are: ``RFC4716''
171 (RFC 4716/SSH2 public or private key), ``PKCS8'' (PEM PKCS8
172 public key) or ``PEM'' (PEM public key). The default conversion
173 format is ``RFC4716''.
174
175 -N new_passphrase
176 Provides the new passphrase.
177
178 -n principals
179 Specify one or more principals (user or host names) to be
180 included in a certificate when signing a key. Multiple
181 principals may be specified, separated by commas. Please see the
182 CERTIFICATES section for details.
183
184 -O option
185 Specify a certificate option when signing a key. This option may
186 be specified multiple times. Please see the CERTIFICATES section
187 for details. The options that are valid for user certificates
188 are:
189
190 clear Clear all enabled permissions. This is useful for
191 clearing the default set of permissions so permissions
192 may be added individually.
193
194 force-command=command
195 Forces the execution of command instead of any shell or
196 command specified by the user when the certificate is
197 used for authentication.
198
199 no-agent-forwarding
200 Disable ssh-agent(1) forwarding (permitted by default).
201
202 no-port-forwarding
203 Disable port forwarding (permitted by default).
204
205 no-pty Disable PTY allocation (permitted by default).
206
207 no-user-rc
208 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
209 default).
210
211 no-x11-forwarding
212 Disable X11 forwarding (permitted by default).
213
214 permit-agent-forwarding
215 Allows ssh-agent(1) forwarding.
216
217 permit-port-forwarding
218 Allows port forwarding.
219
220 permit-pty
221 Allows PTY allocation.
222
223 permit-user-rc
224 Allows execution of ~/.ssh/rc by sshd(8).
225
226 permit-x11-forwarding
227 Allows X11 forwarding.
228
229 source-address=address_list
230 Restrict the source addresses from which the certificate
231 is considered valid. The address_list is a comma-
232 separated list of one or more address/netmask pairs in
233 CIDR format.
234
235 At present, no options are valid for host keys.
236
237 -P passphrase
238 Provides the (old) passphrase.
239
240 -p Requests changing the passphrase of a private key file instead of
241 creating a new private key. The program will prompt for the file
242 containing the private key, for the old passphrase, and twice for
243 the new passphrase.
244
245 -q Silence ssh-keygen.
246
247 -R hostname
248 Removes all keys belonging to hostname from a known_hosts file.
249 This option is useful to delete hashed hosts (see the -H option
250 above).
251
252 -r hostname
253 Print the SSHFP fingerprint resource record named hostname for
254 the specified public key file.
255
256 -S start
257 Specify start point (in hex) when generating candidate moduli for
258 DH-GEX.
259
260 -s ca_key
261 Certify (sign) a public key using the specified CA key. Please
262 see the CERTIFICATES section for details.
263
264 -T output_file
265 Test DH group exchange candidate primes (generated using the -G
266 option) for safety.
267
268 -t type
269 Specifies the type of key to create. The possible values are
270 ``rsa1'' for protocol version 1 and ``dsa'', ``ecdsa'' or ``rsa''
271 for protocol version 2.
272
273 -V validity_interval
274 Specify a validity interval when signing a certificate. A
275 validity interval may consist of a single time, indicating that
276 the certificate is valid beginning now and expiring at that time,
277 or may consist of two times separated by a colon to indicate an
278 explicit time interval. The start time may be specified as a
279 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
280 relative time (to the current time) consisting of a minus sign
281 followed by a relative time in the format described in the TIME
282 FORMATS section of sshd_config(5). The end time may be specified
283 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
284 starting with a plus character.
285
286 For example: ``+52w1d'' (valid from now to 52 weeks and one day
287 from now), ``-4w:+4w'' (valid from four weeks ago to four weeks
288 from now), ``20100101123000:20110101123000'' (valid from 12:30
289 PM, January 1st, 2010 to 12:30 PM, January 1st, 2011),
290 ``-1d:20110101'' (valid from yesterday to midnight, January 1st,
291 2011).
292
293 -v Verbose mode. Causes ssh-keygen to print debugging messages
294 about its progress. This is helpful for debugging moduli
295 generation. Multiple -v options increase the verbosity. The
296 maximum is 3.
297
298 -W generator
299 Specify desired generator when testing candidate moduli for DH-
300 GEX.
301
302 -y This option will read a private OpenSSH format file and print an
303 OpenSSH public key to stdout.
304
305 -z serial_number
306 Specifies a serial number to be embedded in the certificate to
307 distinguish this certificate from others from the same CA. The
308 default serial number is zero.
309
310MODULI GENERATION
311 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
312 Exchange (DH-GEX) protocol. Generating these groups is a two-step
313 process: first, candidate primes are generated using a fast, but memory
314 intensive process. These candidate primes are then tested for
315 suitability (a CPU-intensive process).
316
317 Generation of primes is performed using the -G option. The desired
318 length of the primes may be specified by the -b option. For example:
319
320 # ssh-keygen -G moduli-2048.candidates -b 2048
321
322 By default, the search for primes begins at a random point in the desired
323 length range. This may be overridden using the -S option, which
324 specifies a different start point (in hex).
325
326 Once a set of candidates have been generated, they must be tested for
327 suitability. This may be performed using the -T option. In this mode
328 ssh-keygen will read candidates from standard input (or a file specified
329 using the -f option). For example:
330
331 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
332
333 By default, each candidate will be subjected to 100 primality tests.
334 This may be overridden using the -a option. The DH generator value will
335 be chosen automatically for the prime under consideration. If a specific
336 generator is desired, it may be requested using the -W option. Valid
337 generator values are 2, 3, and 5.
338
339 Screened DH groups may be installed in /etc/moduli. It is important that
340 this file contains moduli of a range of bit lengths and that both ends of
341 a connection share common moduli.
342
343CERTIFICATES
344 ssh-keygen supports signing of keys to produce certificates that may be
345 used for user or host authentication. Certificates consist of a public
346 key, some identity information, zero or more principal (user or host)
347 names and a set of options that are signed by a Certification Authority
348 (CA) key. Clients or servers may then trust only the CA key and verify
349 its signature on a certificate rather than trusting many user/host keys.
350 Note that OpenSSH certificates are a different, and much simpler, format
351 to the X.509 certificates used in ssl(8).
352
353 ssh-keygen supports two types of certificates: user and host. User
354 certificates authenticate users to servers, whereas host certificates
355 authenticate server hosts to users. To generate a user certificate:
356
357 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
358
359 The resultant certificate will be placed in /path/to/user_key-cert.pub.
360 A host certificate requires the -h option:
361
362 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
363
364 The host certificate will be output to /path/to/host_key-cert.pub.
365
366 It is possible to sign using a CA key stored in a PKCS#11 token by
367 providing the token library using -D and identifying the CA key by
368 providing its public half as an argument to -s:
369
370 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub
371
372 In all cases, key_id is a "key identifier" that is logged by the server
373 when the certificate is used for authentication.
374
375 Certificates may be limited to be valid for a set of principal
376 (user/host) names. By default, generated certificates are valid for all
377 users or hosts. To generate a certificate for a specified set of
378 principals:
379
380 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
381 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
382
383 Additional limitations on the validity and use of user certificates may
384 be specified through certificate options. A certificate option may
385 disable features of the SSH session, may be valid only when presented
386 from particular source addresses or may force the use of a specific
387 command. For a list of valid certificate options, see the documentation
388 for the -O option above.
389
390 Finally, certificates may be defined with a validity lifetime. The -V
391 option allows specification of certificate start and end times. A
392 certificate that is presented at a time outside this range will not be
393 considered valid. By default, certificates have a maximum validity
394 interval.
395
396 For certificates to be used for user or host authentication, the CA
397 public key must be trusted by sshd(8) or ssh(1). Please refer to those
398 manual pages for details.
399
400FILES
401 ~/.ssh/identity
402 Contains the protocol version 1 RSA authentication identity of
403 the user. This file should not be readable by anyone but the
404 user. It is possible to specify a passphrase when generating the
405 key; that passphrase will be used to encrypt the private part of
406 this file using 3DES. This file is not automatically accessed by
407 ssh-keygen but it is offered as the default file for the private
408 key. ssh(1) will read this file when a login attempt is made.
409
410 ~/.ssh/identity.pub
411 Contains the protocol version 1 RSA public key for
412 authentication. The contents of this file should be added to
413 ~/.ssh/authorized_keys on all machines where the user wishes to
414 log in using RSA authentication. There is no need to keep the
415 contents of this file secret.
416
417 ~/.ssh/id_dsa
418 ~/.ssh/id_ecdsa
419 ~/.ssh/id_rsa
420 Contains the protocol version 2 DSA, ECDSA or RSA authentication
421 identity of the user. This file should not be readable by anyone
422 but the user. It is possible to specify a passphrase when
423 generating the key; that passphrase will be used to encrypt the
424 private part of this file using 128-bit AES. This file is not
425 automatically accessed by ssh-keygen but it is offered as the
426 default file for the private key. ssh(1) will read this file
427 when a login attempt is made.
428
429 ~/.ssh/id_dsa.pub
430 ~/.ssh/id_ecdsa.pub
431 ~/.ssh/id_rsa.pub
432 Contains the protocol version 2 DSA, ECDSA or RSA public key for
433 authentication. The contents of this file should be added to
434 ~/.ssh/authorized_keys on all machines where the user wishes to
435 log in using public key authentication. There is no need to keep
436 the contents of this file secret.
437
438 /etc/moduli
439 Contains Diffie-Hellman groups used for DH-GEX. The file format
440 is described in moduli(5).
441
442SEE ALSO
443 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
444
445 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
446
447AUTHORS
448 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
449 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
450 de Raadt and Dug Song removed many bugs, re-added newer features and
451 created OpenSSH. Markus Friedl contributed the support for SSH protocol
452 versions 1.5 and 2.0.
453
454OpenBSD 5.0 April 13, 2011 OpenBSD 5.0
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..d9db0d4c9
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,109 @@
1SSH-KEYSCAN(1) OpenBSD Reference 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 this file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or addrlist namelist pairs from the standard input.
33
34 -H Hash all hostnames and addresses in the output. Hashed names may
35 be used normally by ssh and sshd, but they do not reveal
36 identifying information should the file's contents be disclosed.
37
38 -p port
39 Port to connect to on the remote host.
40
41 -T timeout
42 Set the timeout for connection attempts. If timeout seconds have
43 elapsed since a connection was initiated to a host or since the
44 last time anything was read from that host, then the connection
45 is closed and the host in question considered unavailable.
46 Default is 5 seconds.
47
48 -t type
49 Specifies the type of the key to fetch from the scanned hosts.
50 The possible values are ``rsa1'' for protocol version 1 and
51 ``dsa'', ``ecdsa'' or ``rsa'' for protocol version 2. Multiple
52 values may be specified by separating them with commas. The
53 default is ``rsa''.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without
60 verifying the keys, users will be vulnerable to man in the middle
61 attacks. On the other hand, if the security model allows such a risk,
62 ssh-keyscan can help in the detection of tampered keyfiles or man in the
63 middle attacks which have begun after the ssh_known_hosts file was
64 created.
65
66FILES
67 Input format:
68
69 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
70
71 Output format for rsa1 keys:
72
73 host-or-namelist bits exponent modulus
74
75 Output format for rsa, dsa and ecdsa keys:
76
77 host-or-namelist keytype base64-encoded-key
78
79 Where keytype is either ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'',
80 ``ecdsa-sha2-nistp521'', ``ssh-dss'' or ``ssh-rsa''.
81
82 /etc/ssh/ssh_known_hosts
83
84EXAMPLES
85 Print the rsa host key for machine hostname:
86
87 $ ssh-keyscan hostname
88
89 Find all hosts from the file ssh_hosts which have new or different keys
90 from those in the sorted file ssh_known_hosts:
91
92 $ ssh-keyscan -t rsa,dsa,ecdsa -f ssh_hosts | \
93 sort -u - ssh_known_hosts | diff ssh_known_hosts -
94
95SEE ALSO
96 ssh(1), sshd(8)
97
98AUTHORS
99 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
100 Davison <wayned@users.sourceforge.net> added support for protocol version
101 2.
102
103BUGS
104 It generates "Connection closed by remote host" messages on the consoles
105 of all the machines it scans if the server is older than version 2.9.
106 This is because it opens a connection to the ssh port, reads the public
107 key, and drops the connection as soon as it gets the key.
108
109OpenBSD 5.0 August 31, 2010 OpenBSD 5.0
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..9252084c9
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,51 @@
1SSH-KEYSIGN(8) OpenBSD 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_rsa_key
29 These files contain the private parts of the host keys used to
30 generate the digital signature. They should be owned by root,
31 readable only by root, and not accessible to others. Since they
32 are readable only by root, ssh-keysign must be set-uid root if
33 host-based authentication is used.
34
35 /etc/ssh/ssh_host_dsa_key-cert.pub
36 /etc/ssh/ssh_host_ecdsa_key-cert.pub
37 /etc/ssh/ssh_host_rsa_key-cert.pub
38 If these files exist they are assumed to contain public
39 certificate information corresponding with the private keys
40 above.
41
42SEE ALSO
43 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
44
45HISTORY
46 ssh-keysign first appeared in OpenBSD 3.2.
47
48AUTHORS
49 Markus Friedl <markus@openbsd.org>
50
51OpenBSD 5.0 August 31, 2010 OpenBSD 5.0
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..107117ed9
--- /dev/null
+++ b/ssh-pkcs11-helper.0
@@ -0,0 +1,25 @@
1SSH-PKCS11-HELPER(8) OpenBSD 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.0 February 10, 2010 OpenBSD 5.0
diff --git a/ssh-sandbox.h b/ssh-sandbox.h
index dfecd5aa0..dfecd5aa0 100644..100755
--- a/ssh-sandbox.h
+++ b/ssh-sandbox.h
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..1c98f7780
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,901 @@
1SSH(1) OpenBSD Reference 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 escape_char] [-F configfile] [-I pkcs11]
9 [-i identity_file] [-L [bind_address:]port:host:hostport]
10 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
11 [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
12 [-w local_tun[:remote_tun]] [user@]hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to replace rlogin
17 and rsh, and provide secure encrypted communications between two
18 untrusted hosts over an insecure network. X11 connections and arbitrary
19 TCP ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods depending on the protocol version used (see
24 below).
25
26 If command is specified, it is executed on the remote host instead of a
27 login shell.
28
29 The options are as follows:
30
31 -1 Forces ssh to try protocol version 1 only.
32
33 -2 Forces ssh to try protocol version 2 only.
34
35 -4 Forces ssh to use IPv4 addresses only.
36
37 -6 Forces ssh to use IPv6 addresses only.
38
39 -A Enables forwarding of the authentication agent connection. This
40 can also be specified on a per-host basis in a configuration
41 file.
42
43 Agent forwarding should be enabled with caution. Users with the
44 ability to bypass file permissions on the remote host (for the
45 agent's UNIX-domain socket) can access the local agent through
46 the forwarded connection. An attacker cannot obtain key material
47 from the agent, however they can perform operations on the keys
48 that enable them to authenticate using the identities loaded into
49 the agent.
50
51 -a Disables forwarding of the authentication agent connection.
52
53 -b bind_address
54 Use bind_address on the local machine as the source address of
55 the connection. Only useful on systems with more than one
56 address.
57
58 -C Requests compression of all data (including stdin, stdout,
59 stderr, and data for forwarded X11 and TCP connections). The
60 compression algorithm is the same used by gzip(1), and the
61 ``level'' can be controlled by the CompressionLevel option for
62 protocol version 1. Compression is desirable on modem lines and
63 other slow connections, but will only slow down things on fast
64 networks. The default value can be set on a host-by-host basis
65 in the configuration files; see the Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are ``3des'', ``blowfish'', and ``des''. 3des
72 (triple-des) is an encrypt-decrypt-encrypt triple with three
73 different keys. It is believed to be secure. blowfish is a fast
74 block cipher; it appears very secure and is much faster than
75 3des. des is only supported in the ssh client for
76 interoperability with legacy protocol 1 implementations that do
77 not support the 3des cipher. Its use is strongly discouraged due
78 to cryptographic weaknesses. The default is ``3des''.
79
80 For protocol version 2, cipher_spec is a comma-separated list of
81 ciphers listed in order of preference. See the Ciphers keyword
82 in ssh_config(5) for more information.
83
84 -D [bind_address:]port
85 Specifies a local ``dynamic'' application-level port forwarding.
86 This works by allocating a socket to listen to port on the local
87 side, optionally bound to the specified bind_address. Whenever a
88 connection is made to this port, the connection is forwarded over
89 the secure channel, and the application protocol is then used to
90 determine where to connect to from the remote machine. Currently
91 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
92 as a SOCKS server. Only root can forward privileged ports.
93 Dynamic port forwardings can also be specified in the
94 configuration file.
95
96 IPv6 addresses can be specified by enclosing the address in
97 square brackets. Only the superuser can forward privileged
98 ports. By default, the local port is bound in accordance with
99 the GatewayPorts setting. However, an explicit bind_address may
100 be used to bind the connection to a specific address. The
101 bind_address of ``localhost'' indicates that the listening port
102 be bound for local use only, while an empty address or `*'
103 indicates that the port should be available from all interfaces.
104
105 -e escape_char
106 Sets the escape character for sessions with a pty (default: `~').
107 The escape character is only recognized at the beginning of a
108 line. The escape character followed by a dot (`.') closes the
109 connection; followed by control-Z suspends the connection; and
110 followed by itself sends the escape character once. Setting the
111 character to ``none'' disables any escapes and makes the session
112 fully transparent.
113
114 -F configfile
115 Specifies an alternative per-user configuration file. If a
116 configuration file is given on the command line, the system-wide
117 configuration file (/etc/ssh/ssh_config) will be ignored. The
118 default for the per-user configuration file is ~/.ssh/config.
119
120 -f Requests ssh to go to background just before command execution.
121 This is useful if ssh is going to ask for passwords or
122 passphrases, but the user wants it in the background. This
123 implies -n. The recommended way to start X11 programs at a
124 remote site is with something like ssh -f host xterm.
125
126 If the ExitOnForwardFailure configuration option is set to
127 ``yes'', then a client started with -f will wait for all remote
128 port forwards to be successfully established before placing
129 itself in the background.
130
131 -g Allows remote hosts to connect to local forwarded ports.
132
133 -I pkcs11
134 Specify the PKCS#11 shared library ssh should use to communicate
135 with a PKCS#11 token providing the user's private RSA key.
136
137 -i identity_file
138 Selects a file from which the identity (private key) for public
139 key authentication is read. The default is ~/.ssh/identity for
140 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
141 ~/.ssh/id_rsa for protocol version 2. Identity files may also be
142 specified on a per-host basis in the configuration file. It is
143 possible to have multiple -i options (and multiple identities
144 specified in configuration files). ssh will also try to load
145 certificate information from the filename obtained by appending
146 -cert.pub to identity filenames.
147
148 -K Enables GSSAPI-based authentication and forwarding (delegation)
149 of GSSAPI credentials to the server.
150
151 -k Disables forwarding (delegation) of GSSAPI credentials to the
152 server.
153
154 -L [bind_address:]port:host:hostport
155 Specifies that the given port on the local (client) host is to be
156 forwarded to the given host and port on the remote side. This
157 works by allocating a socket to listen to port on the local side,
158 optionally bound to the specified bind_address. Whenever a
159 connection is made to this port, the connection is forwarded over
160 the secure channel, and a connection is made to host port
161 hostport from the remote machine. Port forwardings can also be
162 specified in the configuration file. IPv6 addresses can be
163 specified by enclosing the address in square brackets. Only the
164 superuser can forward privileged ports. By default, the local
165 port is bound in accordance with the GatewayPorts setting.
166 However, an explicit bind_address may be used to bind the
167 connection to a specific address. The bind_address of
168 ``localhost'' indicates that the listening port be bound for
169 local use only, while an empty address or `*' indicates that the
170 port should be available from all interfaces.
171
172 -l login_name
173 Specifies the user to log in as on the remote machine. This also
174 may be specified on a per-host basis in the configuration file.
175
176 -M Places the ssh client into ``master'' mode for connection
177 sharing. Multiple -M options places ssh into ``master'' mode
178 with confirmation required before slave connections are accepted.
179 Refer to the description of ControlMaster in ssh_config(5) for
180 details.
181
182 -m mac_spec
183 Additionally, for protocol version 2 a comma-separated list of
184 MAC (message authentication code) algorithms can be specified in
185 order of preference. See the MACs keyword for more information.
186
187 -N Do not execute a remote command. This is useful for just
188 forwarding ports (protocol version 2 only).
189
190 -n Redirects stdin from /dev/null (actually, prevents reading from
191 stdin). This must be used when ssh is run in the background. A
192 common trick is to use this to run X11 programs on a remote
193 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
194 start an emacs on shadows.cs.hut.fi, and the X11 connection will
195 be automatically forwarded over an encrypted channel. The ssh
196 program will be put in the background. (This does not work if
197 ssh needs to ask for a password or passphrase; see also the -f
198 option.)
199
200 -O ctl_cmd
201 Control an active connection multiplexing master process. When
202 the -O option is specified, the ctl_cmd argument is interpreted
203 and passed to the master process. Valid commands are: ``check''
204 (check that the master process is running), ``forward'' (request
205 forwardings without command execution), ``exit'' (request the
206 master to exit), and ``stop'' (request the master to stop
207 accepting further multiplexing requests).
208
209 -o option
210 Can be used to give options in the format used in the
211 configuration file. This is useful for specifying options for
212 which there is no separate command-line flag. For full details
213 of the options listed below, and their possible values, see
214 ssh_config(5).
215
216 AddressFamily
217 BatchMode
218 BindAddress
219 ChallengeResponseAuthentication
220 CheckHostIP
221 Cipher
222 Ciphers
223 ClearAllForwardings
224 Compression
225 CompressionLevel
226 ConnectionAttempts
227 ConnectTimeout
228 ControlMaster
229 ControlPath
230 DynamicForward
231 EscapeChar
232 ExitOnForwardFailure
233 ForwardAgent
234 ForwardX11
235 ForwardX11Trusted
236 GatewayPorts
237 GlobalKnownHostsFile
238 GSSAPIAuthentication
239 GSSAPIDelegateCredentials
240 HashKnownHosts
241 Host
242 HostbasedAuthentication
243 HostKeyAlgorithms
244 HostKeyAlias
245 HostName
246 IdentityFile
247 IdentitiesOnly
248 IPQoS
249 KbdInteractiveDevices
250 KexAlgorithms
251 LocalCommand
252 LocalForward
253 LogLevel
254 MACs
255 NoHostAuthenticationForLocalhost
256 NumberOfPasswordPrompts
257 PasswordAuthentication
258 PermitLocalCommand
259 PKCS11Provider
260 Port
261 PreferredAuthentications
262 Protocol
263 ProxyCommand
264 PubkeyAuthentication
265 RekeyLimit
266 RemoteForward
267 RequestTTY
268 RhostsRSAAuthentication
269 RSAAuthentication
270 SendEnv
271 ServerAliveInterval
272 ServerAliveCountMax
273 StrictHostKeyChecking
274 TCPKeepAlive
275 Tunnel
276 TunnelDevice
277 UsePrivilegedPort
278 User
279 UserKnownHostsFile
280 VerifyHostKeyDNS
281 VisualHostKey
282 XAuthLocation
283
284 -p port
285 Port to connect to on the remote host. This can be specified on
286 a per-host basis in the configuration file.
287
288 -q Quiet mode. Causes most warning and diagnostic messages to be
289 suppressed.
290
291 -R [bind_address:]port:host:hostport
292 Specifies that the given port on the remote (server) host is to
293 be forwarded to the given host and port on the local side. This
294 works by allocating a socket to listen to port on the remote
295 side, and whenever a connection is made to this port, the
296 connection is forwarded over the secure channel, and a connection
297 is made to host port hostport from the local machine.
298
299 Port forwardings can also be specified in the configuration file.
300 Privileged ports can be forwarded only when logging in as root on
301 the remote machine. IPv6 addresses can be specified by enclosing
302 the address in square braces.
303
304 By default, the listening socket on the server will be bound to
305 the loopback interface only. This may be overridden by
306 specifying a bind_address. An empty bind_address, or the address
307 `*', indicates that the remote socket should listen on all
308 interfaces. Specifying a remote bind_address will only succeed
309 if the server's GatewayPorts option is enabled (see
310 sshd_config(5)).
311
312 If the port argument is `0', the listen port will be dynamically
313 allocated on the server and reported to the client at run time.
314 When used together with -O forward the allocated port will be
315 printed to the standard output.
316
317 -S ctl_path
318 Specifies the location of a control socket for connection
319 sharing, or the string ``none'' to disable connection sharing.
320 Refer to the description of ControlPath and ControlMaster in
321 ssh_config(5) for details.
322
323 -s May be used to request invocation of a subsystem on the remote
324 system. Subsystems are a feature of the SSH2 protocol which
325 facilitate the use of SSH as a secure transport for other
326 applications (eg. sftp(1)). The subsystem is specified as the
327 remote command.
328
329 -T Disable pseudo-tty allocation.
330
331 -t Force pseudo-tty allocation. This can be used to execute
332 arbitrary screen-based programs on a remote machine, which can be
333 very useful, e.g. when implementing menu services. Multiple -t
334 options force tty allocation, even if ssh has no local tty.
335
336 -V Display the version number and exit.
337
338 -v Verbose mode. Causes ssh to print debugging messages about its
339 progress. This is helpful in debugging connection,
340 authentication, and configuration problems. Multiple -v options
341 increase the verbosity. The maximum is 3.
342
343 -W host:port
344 Requests that standard input and output on the client be
345 forwarded to host on port over the secure channel. Implies -N,
346 -T, ExitOnForwardFailure and ClearAllForwardings and works with
347 Protocol version 2 only.
348
349 -w local_tun[:remote_tun]
350 Requests tunnel device forwarding with the specified tun(4)
351 devices between the client (local_tun) and the server
352 (remote_tun).
353
354 The devices may be specified by numerical ID or the keyword
355 ``any'', which uses the next available tunnel device. If
356 remote_tun is not specified, it defaults to ``any''. See also
357 the Tunnel and TunnelDevice directives in ssh_config(5). If the
358 Tunnel directive is unset, it is set to the default tunnel mode,
359 which is ``point-to-point''.
360
361 -X Enables X11 forwarding. This can also be specified on a per-host
362 basis in a configuration file.
363
364 X11 forwarding should be enabled with caution. Users with the
365 ability to bypass file permissions on the remote host (for the
366 user's X authorization database) can access the local X11 display
367 through the forwarded connection. An attacker may then be able
368 to perform activities such as keystroke monitoring.
369
370 For this reason, X11 forwarding is subjected to X11 SECURITY
371 extension restrictions by default. Please refer to the ssh -Y
372 option and the ForwardX11Trusted directive in ssh_config(5) for
373 more information.
374
375 -x Disables X11 forwarding.
376
377 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
378 subjected to the X11 SECURITY extension controls.
379
380 -y Send log information using the syslog(3) system module. By
381 default this information is sent to stderr.
382
383 ssh may additionally obtain configuration data from a per-user
384 configuration file and a system-wide configuration file. The file format
385 and configuration options are described in ssh_config(5).
386
387AUTHENTICATION
388 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
389 use protocol 2 only, though this can be changed via the Protocol option
390 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
391 support similar authentication methods, but protocol 2 is the default
392 since it provides additional mechanisms for confidentiality (the traffic
393 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
394 integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64,
395 hmac-ripemd160). Protocol 1 lacks a strong mechanism for ensuring the
396 integrity of the connection.
397
398 The methods available for authentication are: GSSAPI-based
399 authentication, host-based authentication, public key authentication,
400 challenge-response authentication, and password authentication.
401 Authentication methods are tried in the order specified above, though
402 protocol 2 has a configuration option to change the default order:
403 PreferredAuthentications.
404
405 Host-based authentication works as follows: If the machine the user logs
406 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
407 machine, and the user names are the same on both sides, or if the files
408 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
409 machine and contain a line containing the name of the client machine and
410 the name of the user on that machine, the user is considered for login.
411 Additionally, the server must be able to verify the client's host key
412 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
413 below) for login to be permitted. This authentication method closes
414 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
415 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
416 rlogin/rsh protocol in general, are inherently insecure and should be
417 disabled if security is desired.]
418
419 Public key authentication works as follows: The scheme is based on
420 public-key cryptography, using cryptosystems where encryption and
421 decryption are done using separate keys, and it is unfeasible to derive
422 the decryption key from the encryption key. The idea is that each user
423 creates a public/private key pair for authentication purposes. The
424 server knows the public key, and only the user knows the private key.
425 ssh implements public key authentication protocol automatically, using
426 one of the DSA, ECDSA or RSA algorithms. Protocol 1 is restricted to
427 using only RSA keys, but protocol 2 may use any. The HISTORY section of
428 ssl(8) contains a brief discussion of the DSA and RSA algorithms.
429
430 The file ~/.ssh/authorized_keys lists the public keys that are permitted
431 for logging in. When the user logs in, the ssh program tells the server
432 which key pair it would like to use for authentication. The client
433 proves that it has access to the private key and the server checks that
434 the corresponding public key is authorized to accept the account.
435
436 The user creates his/her key pair by running ssh-keygen(1). This stores
437 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
438 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), or ~/.ssh/id_rsa (protocol 2
439 RSA) and stores the public key in ~/.ssh/identity.pub (protocol 1),
440 ~/.ssh/id_dsa.pub (protocol 2 DSA), ~/.ssh/id_ecdsa.pub (protocol 2
441 ECDSA), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
442 directory. The user should then copy the public key to
443 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
444 The authorized_keys file corresponds to the conventional ~/.rhosts file,
445 and has one key per line, though the lines can be very long. After this,
446 the user can log in without giving the password.
447
448 A variation on public key authentication is available in the form of
449 certificate authentication: instead of a set of public/private keys,
450 signed certificates are used. This has the advantage that a single
451 trusted certification authority can be used in place of many
452 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
453 more information.
454
455 The most convenient way to use public key or certificate authentication
456 may be with an authentication agent. See ssh-agent(1) for more
457 information.
458
459 Challenge-response authentication works as follows: The server sends an
460 arbitrary "challenge" text, and prompts for a response. Protocol 2
461 allows multiple challenges and responses; protocol 1 is restricted to
462 just one challenge/response. Examples of challenge-response
463 authentication include BSD Authentication (see login.conf(5)) and PAM
464 (some non-OpenBSD systems).
465
466 Finally, if other authentication methods fail, ssh prompts the user for a
467 password. The password is sent to the remote host for checking; however,
468 since all communications are encrypted, the password cannot be seen by
469 someone listening on the network.
470
471 ssh automatically maintains and checks a database containing
472 identification for all hosts it has ever been used with. Host keys are
473 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
474 the file /etc/ssh/ssh_known_hosts is automatically checked for known
475 hosts. Any new hosts are automatically added to the user's file. If a
476 host's identification ever changes, ssh warns about this and disables
477 password authentication to prevent server spoofing or man-in-the-middle
478 attacks, which could otherwise be used to circumvent the encryption. The
479 StrictHostKeyChecking option can be used to control logins to machines
480 whose host key is not known or has changed.
481
482 When the user's identity has been accepted by the server, the server
483 either executes the given command, or logs into the machine and gives the
484 user a normal shell on the remote machine. All communication with the
485 remote command or shell will be automatically encrypted.
486
487 If a pseudo-terminal has been allocated (normal login session), the user
488 may use the escape characters noted below.
489
490 If no pseudo-tty has been allocated, the session is transparent and can
491 be used to reliably transfer binary data. On most systems, setting the
492 escape character to ``none'' will also make the session transparent even
493 if a tty is used.
494
495 The session terminates when the command or shell on the remote machine
496 exits and all X11 and TCP connections have been closed.
497
498ESCAPE CHARACTERS
499 When a pseudo-terminal has been requested, ssh supports a number of
500 functions through the use of an escape character.
501
502 A single tilde character can be sent as ~~ or by following the tilde by a
503 character other than those described below. The escape character must
504 always follow a newline to be interpreted as special. The escape
505 character can be changed in configuration files using the EscapeChar
506 configuration directive or on the command line by the -e option.
507
508 The supported escapes (assuming the default `~') are:
509
510 ~. Disconnect.
511
512 ~^Z Background ssh.
513
514 ~# List forwarded connections.
515
516 ~& Background ssh at logout when waiting for forwarded connection /
517 X11 sessions to terminate.
518
519 ~? Display a list of escape characters.
520
521 ~B Send a BREAK to the remote system (only useful for SSH protocol
522 version 2 and if the peer supports it).
523
524 ~C Open command line. Currently this allows the addition of port
525 forwardings using the -L, -R and -D options (see above). It also
526 allows the cancellation of existing remote port-forwardings using
527 -KR[bind_address:]port. !command allows the user to execute a
528 local command if the PermitLocalCommand option is enabled in
529 ssh_config(5). Basic help is available, using the -h option.
530
531 ~R Request rekeying of the connection (only useful for SSH protocol
532 version 2 and if the peer supports it).
533
534TCP FORWARDING
535 Forwarding of arbitrary TCP connections over the secure channel can be
536 specified either on the command line or in a configuration file. One
537 possible application of TCP forwarding is a secure connection to a mail
538 server; another is going through firewalls.
539
540 In the example below, we look at encrypting communication between an IRC
541 client and server, even though the IRC server does not directly support
542 encrypted communications. This works as follows: the user connects to
543 the remote host using ssh, specifying a port to be used to forward
544 connections to the remote server. After that it is possible to start the
545 service which is to be encrypted on the client machine, connecting to the
546 same local port, and ssh will encrypt and forward the connection.
547
548 The following example tunnels an IRC session from client machine
549 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
550
551 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
552 $ irc -c '#users' -p 1234 pinky 127.0.0.1
553
554 This tunnels a connection to IRC server ``server.example.com'', joining
555 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't
556 matter which port is used, as long as it's greater than 1023 (remember,
557 only root can open sockets on privileged ports) and doesn't conflict with
558 any ports already in use. The connection is forwarded to port 6667 on
559 the remote server, since that's the standard port for IRC services.
560
561 The -f option backgrounds ssh and the remote command ``sleep 10'' is
562 specified to allow an amount of time (10 seconds, in the example) to
563 start the service which is to be tunnelled. If no connections are made
564 within the time specified, ssh will exit.
565
566X11 FORWARDING
567 If the ForwardX11 variable is set to ``yes'' (or see the description of
568 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
569 environment variable is set), the connection to the X11 display is
570 automatically forwarded to the remote side in such a way that any X11
571 programs started from the shell (or command) will go through the
572 encrypted channel, and the connection to the real X server will be made
573 from the local machine. The user should not manually set DISPLAY.
574 Forwarding of X11 connections can be configured on the command line or in
575 configuration files.
576
577 The DISPLAY value set by ssh will point to the server machine, but with a
578 display number greater than zero. This is normal, and happens because
579 ssh creates a ``proxy'' X server on the server machine for forwarding the
580 connections over the encrypted channel.
581
582 ssh will also automatically set up Xauthority data on the server machine.
583 For this purpose, it will generate a random authorization cookie, store
584 it in Xauthority on the server, and verify that any forwarded connections
585 carry this cookie and replace it by the real cookie when the connection
586 is opened. The real authentication cookie is never sent to the server
587 machine (and no cookies are sent in the plain).
588
589 If the ForwardAgent variable is set to ``yes'' (or see the description of
590 the -A and -a options above) and the user is using an authentication
591 agent, the connection to the agent is automatically forwarded to the
592 remote side.
593
594VERIFYING HOST KEYS
595 When connecting to a server for the first time, a fingerprint of the
596 server's public key is presented to the user (unless the option
597 StrictHostKeyChecking has been disabled). Fingerprints can be determined
598 using ssh-keygen(1):
599
600 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
601
602 If the fingerprint is already known, it can be matched and the key can be
603 accepted or rejected. Because of the difficulty of comparing host keys
604 just by looking at hex strings, there is also support to compare host
605 keys visually, using random art. By setting the VisualHostKey option to
606 ``yes'', a small ASCII graphic gets displayed on every login to a server,
607 no matter if the session itself is interactive or not. By learning the
608 pattern a known server produces, a user can easily find out that the host
609 key has changed when a completely different pattern is displayed.
610 Because these patterns are not unambiguous however, a pattern that looks
611 similar to the pattern remembered only gives a good probability that the
612 host key is the same, not guaranteed proof.
613
614 To get a listing of the fingerprints along with their random art for all
615 known hosts, the following command line can be used:
616
617 $ ssh-keygen -lv -f ~/.ssh/known_hosts
618
619 If the fingerprint is unknown, an alternative method of verification is
620 available: SSH fingerprints verified by DNS. An additional resource
621 record (RR), SSHFP, is added to a zonefile and the connecting client is
622 able to match the fingerprint with that of the key presented.
623
624 In this example, we are connecting a client to a server,
625 ``host.example.com''. The SSHFP resource records should first be added
626 to the zonefile for host.example.com:
627
628 $ ssh-keygen -r host.example.com.
629
630 The output lines will have to be added to the zonefile. To check that
631 the zone is answering fingerprint queries:
632
633 $ dig -t SSHFP host.example.com
634
635 Finally the client connects:
636
637 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
638 [...]
639 Matching host key fingerprint found in DNS.
640 Are you sure you want to continue connecting (yes/no)?
641
642 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
643
644SSH-BASED VIRTUAL PRIVATE NETWORKS
645 ssh contains support for Virtual Private Network (VPN) tunnelling using
646 the tun(4) network pseudo-device, allowing two networks to be joined
647 securely. The sshd_config(5) configuration option PermitTunnel controls
648 whether the server supports this, and at what level (layer 2 or 3
649 traffic).
650
651 The following example would connect client network 10.0.50.0/24 with
652 remote network 10.0.99.0/24 using a point-to-point connection from
653 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
654 to the remote network, at 192.168.1.15, allows it.
655
656 On the client:
657
658 # ssh -f -w 0:1 192.168.1.15 true
659 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
660 # route add 10.0.99.0/24 10.1.1.2
661
662 On the server:
663
664 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
665 # route add 10.0.50.0/24 10.1.1.1
666
667 Client access may be more finely tuned via the /root/.ssh/authorized_keys
668 file (see below) and the PermitRootLogin server option. The following
669 entry would permit connections on tun(4) device 1 from user ``jane'' and
670 on tun device 2 from user ``john'', if PermitRootLogin is set to
671 ``forced-commands-only'':
672
673 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
674 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
675
676 Since an SSH-based setup entails a fair amount of overhead, it may be
677 more suited to temporary setups, such as for wireless VPNs. More
678 permanent VPNs are better provided by tools such as ipsecctl(8) and
679 isakmpd(8).
680
681ENVIRONMENT
682 ssh will normally set the following environment variables:
683
684 DISPLAY The DISPLAY variable indicates the location of the
685 X11 server. It is automatically set by ssh to
686 point to a value of the form ``hostname:n'', where
687 ``hostname'' indicates the host where the shell
688 runs, and `n' is an integer >= 1. ssh uses this
689 special value to forward X11 connections over the
690 secure channel. The user should normally not set
691 DISPLAY explicitly, as that will render the X11
692 connection insecure (and will require the user to
693 manually copy any required authorization cookies).
694
695 HOME Set to the path of the user's home directory.
696
697 LOGNAME Synonym for USER; set for compatibility with
698 systems that use this variable.
699
700 MAIL Set to the path of the user's mailbox.
701
702 PATH Set to the default PATH, as specified when
703 compiling ssh.
704
705 SSH_ASKPASS If ssh needs a passphrase, it will read the
706 passphrase from the current terminal if it was run
707 from a terminal. If ssh does not have a terminal
708 associated with it but DISPLAY and SSH_ASKPASS are
709 set, it will execute the program specified by
710 SSH_ASKPASS and open an X11 window to read the
711 passphrase. This is particularly useful when
712 calling ssh from a .xsession or related script.
713 (Note that on some machines it may be necessary to
714 redirect the input from /dev/null to make this
715 work.)
716
717 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
718 communicate with the agent.
719
720 SSH_CONNECTION Identifies the client and server ends of the
721 connection. The variable contains four space-
722 separated values: client IP address, client port
723 number, server IP address, and server port number.
724
725 SSH_ORIGINAL_COMMAND This variable contains the original command line if
726 a forced command is executed. It can be used to
727 extract the original arguments.
728
729 SSH_TTY This is set to the name of the tty (path to the
730 device) associated with the current shell or
731 command. If the current session has no tty, this
732 variable is not set.
733
734 TZ This variable is set to indicate the present time
735 zone if it was set when the daemon was started
736 (i.e. the daemon passes the value on to new
737 connections).
738
739 USER Set to the name of the user logging in.
740
741 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
742 ``VARNAME=value'' to the environment if the file exists and users are
743 allowed to change their environment. For more information, see the
744 PermitUserEnvironment option in sshd_config(5).
745
746FILES
747 ~/.rhosts
748 This file is used for host-based authentication (see above). On
749 some machines this file may need to be world-readable if the
750 user's home directory is on an NFS partition, because sshd(8)
751 reads it as root. Additionally, this file must be owned by the
752 user, and must not have write permissions for anyone else. The
753 recommended permission for most machines is read/write for the
754 user, and not accessible by others.
755
756 ~/.shosts
757 This file is used in exactly the same way as .rhosts, but allows
758 host-based authentication without permitting login with
759 rlogin/rsh.
760
761 ~/.ssh/
762 This directory is the default location for all user-specific
763 configuration and authentication information. There is no
764 general requirement to keep the entire contents of this directory
765 secret, but the recommended permissions are read/write/execute
766 for the user, and not accessible by others.
767
768 ~/.ssh/authorized_keys
769 Lists the public keys (DSA/ECDSA/RSA) that can be used for
770 logging in as this user. The format of this file is described in
771 the sshd(8) manual page. This file is not highly sensitive, but
772 the recommended permissions are read/write for the user, and not
773 accessible by others.
774
775 ~/.ssh/config
776 This is the per-user configuration file. The file format and
777 configuration options are described in ssh_config(5). Because of
778 the potential for abuse, this file must have strict permissions:
779 read/write for the user, and not accessible by others.
780
781 ~/.ssh/environment
782 Contains additional definitions for environment variables; see
783 ENVIRONMENT, above.
784
785 ~/.ssh/identity
786 ~/.ssh/id_dsa
787 ~/.ssh/id_ecdsa
788 ~/.ssh/id_rsa
789 Contains the private key for authentication. These files contain
790 sensitive data and should be readable by the user but not
791 accessible by others (read/write/execute). ssh will simply
792 ignore a private key file if it is accessible by others. It is
793 possible to specify a passphrase when generating the key which
794 will be used to encrypt the sensitive part of this file using
795 3DES.
796
797 ~/.ssh/identity.pub
798 ~/.ssh/id_dsa.pub
799 ~/.ssh/id_ecdsa.pub
800 ~/.ssh/id_rsa.pub
801 Contains the public key for authentication. These files are not
802 sensitive and can (but need not) be readable by anyone.
803
804 ~/.ssh/known_hosts
805 Contains a list of host keys for all hosts the user has logged
806 into that are not already in the systemwide list of known host
807 keys. See sshd(8) for further details of the format of this
808 file.
809
810 ~/.ssh/rc
811 Commands in this file are executed by ssh when the user logs in,
812 just before the user's shell (or command) is started. See the
813 sshd(8) manual page for more information.
814
815 /etc/hosts.equiv
816 This file is for host-based authentication (see above). It
817 should only be writable by root.
818
819 /etc/shosts.equiv
820 This file is used in exactly the same way as hosts.equiv, but
821 allows host-based authentication without permitting login with
822 rlogin/rsh.
823
824 /etc/ssh/ssh_config
825 Systemwide configuration file. The file format and configuration
826 options are described in ssh_config(5).
827
828 /etc/ssh/ssh_host_key
829 /etc/ssh/ssh_host_dsa_key
830 /etc/ssh/ssh_host_ecdsa_key
831 /etc/ssh/ssh_host_rsa_key
832 These three files contain the private parts of the host keys and
833 are used for host-based authentication. If protocol version 1 is
834 used, ssh must be setuid root, since the host key is readable
835 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
836 access the host keys, eliminating the requirement that ssh be
837 setuid root when host-based authentication is used. By default
838 ssh is not setuid root.
839
840 /etc/ssh/ssh_known_hosts
841 Systemwide list of known host keys. This file should be prepared
842 by the system administrator to contain the public host keys of
843 all machines in the organization. It should be world-readable.
844 See sshd(8) for further details of the format of this file.
845
846 /etc/ssh/sshrc
847 Commands in this file are executed by ssh when the user logs in,
848 just before the user's shell (or command) is started. See the
849 sshd(8) manual page for more information.
850
851EXIT STATUS
852 ssh exits with the exit status of the remote command or with 255 if an
853 error occurred.
854
855SEE ALSO
856 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
857 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
858
859 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
860
861 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
862
863 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
864
865 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
866
867 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
868
869 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
870 4255, 2006.
871
872 Generic Message Exchange Authentication for the Secure Shell Protocol
873 (SSH), RFC 4256, 2006.
874
875 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
876
877 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
878
879 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
880 Protocol, RFC 4345, 2006.
881
882 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
883 Protocol, RFC 4419, 2006.
884
885 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
886
887 Elliptic Curve Algorithm Integration in the Secure Shell Transport Layer,
888 RFC 5656, 2009.
889
890 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
891 Real-World Security, 1999, International Workshop on Cryptographic
892 Techniques and E-Commerce (CrypTEC '99).
893
894AUTHORS
895 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
896 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
897 de Raadt and Dug Song removed many bugs, re-added newer features and
898 created OpenSSH. Markus Friedl contributed the support for SSH protocol
899 versions 1.5 and 2.0.
900
901OpenBSD 5.0 August 2, 2011 OpenBSD 5.0
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..7b9205681
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,767 @@
1SSH_CONFIG(5) OpenBSD Programmer's 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
42 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 AddressFamily
59 Specifies which address family to use when connecting. Valid
60 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
61 (use IPv6 only).
62
63 BatchMode
64 If set to ``yes'', passphrase/password querying will be disabled.
65 This option is useful in scripts and other batch jobs where no
66 user is present to supply the password. The argument must be
67 ``yes'' or ``no''. The default is ``no''.
68
69 BindAddress
70 Use the specified address on the local machine as the source
71 address of the connection. Only useful on systems with more than
72 one address. Note that this option does not work if
73 UsePrivilegedPort is set to ``yes''.
74
75 ChallengeResponseAuthentication
76 Specifies whether to use challenge-response authentication. The
77 argument to this keyword must be ``yes'' or ``no''. The default
78 is ``yes''.
79
80 CheckHostIP
81 If this flag is set to ``yes'', ssh(1) will additionally check
82 the host IP address in the known_hosts file. This allows ssh to
83 detect if a host key changed due to DNS spoofing. If the option
84 is set to ``no'', the check will not be executed. The default is
85 ``yes''.
86
87 Cipher Specifies the cipher to use for encrypting the session in
88 protocol version 1. Currently, ``blowfish'', ``3des'', and
89 ``des'' are supported. des is only supported in the ssh(1)
90 client for interoperability with legacy protocol 1
91 implementations that do not support the 3des cipher. Its use is
92 strongly discouraged due to cryptographic weaknesses. The
93 default is ``3des''.
94
95 Ciphers
96 Specifies the ciphers allowed for protocol version 2 in order of
97 preference. Multiple ciphers must be comma-separated. The
98 supported ciphers are ``3des-cbc'', ``aes128-cbc'',
99 ``aes192-cbc'', ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'',
100 ``aes256-ctr'', ``arcfour128'', ``arcfour256'', ``arcfour'',
101 ``blowfish-cbc'', and ``cast128-cbc''. The default is:
102
103 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
104 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
105 aes256-cbc,arcfour
106
107 ClearAllForwardings
108 Specifies that all local, remote, and dynamic port forwardings
109 specified in the configuration files or on the command line be
110 cleared. This option is primarily useful when used from the
111 ssh(1) command line to clear port forwardings set in
112 configuration files, and is automatically set by scp(1) and
113 sftp(1). The argument must be ``yes'' or ``no''. The default is
114 ``no''.
115
116 Compression
117 Specifies whether to use compression. The argument must be
118 ``yes'' or ``no''. The default is ``no''.
119
120 CompressionLevel
121 Specifies the compression level to use if compression is enabled.
122 The argument must be an integer from 1 (fast) to 9 (slow, best).
123 The default level is 6, which is good for most applications. The
124 meaning of the values is the same as in gzip(1). Note that this
125 option applies to protocol version 1 only.
126
127 ConnectionAttempts
128 Specifies the number of tries (one per second) to make before
129 exiting. The argument must be an integer. This may be useful in
130 scripts if the connection sometimes fails. The default is 1.
131
132 ConnectTimeout
133 Specifies the timeout (in seconds) used when connecting to the
134 SSH server, instead of using the default system TCP timeout.
135 This value is used only when the target is down or really
136 unreachable, not when it refuses the connection.
137
138 ControlMaster
139 Enables the sharing of multiple sessions over a single network
140 connection. When set to ``yes'', ssh(1) will listen for
141 connections on a control socket specified using the ControlPath
142 argument. Additional sessions can connect to this socket using
143 the same ControlPath with ControlMaster set to ``no'' (the
144 default). These sessions will try to reuse the master instance's
145 network connection rather than initiating new ones, but will fall
146 back to connecting normally if the control socket does not exist,
147 or is not listening.
148
149 Setting this to ``ask'' will cause ssh to listen for control
150 connections, but require confirmation using the SSH_ASKPASS
151 program before they are accepted (see ssh-add(1) for details).
152 If the ControlPath cannot be opened, ssh will continue without
153 connecting to a master instance.
154
155 X11 and ssh-agent(1) forwarding is supported over these
156 multiplexed connections, however the display and agent forwarded
157 will be the one belonging to the master connection i.e. it is not
158 possible to forward multiple displays or agents.
159
160 Two additional options allow for opportunistic multiplexing: try
161 to use a master connection but fall back to creating a new one if
162 one does not already exist. These options are: ``auto'' and
163 ``autoask''. The latter requires confirmation like the ``ask''
164 option.
165
166 ControlPath
167 Specify the path to the control socket used for connection
168 sharing as described in the ControlMaster section above or the
169 string ``none'' to disable connection sharing. In the path, `%L'
170 will be substituted by the first component of the local host
171 name, `%l' will be substituted by the local host name (including
172 any domain name), `%h' will be substituted by the target host
173 name, `%n' will be substituted by the original target host name
174 specified on the command line, `%p' the port, `%r' by the remote
175 login username, and `%u' by the username of the user running
176 ssh(1). It is recommended that any ControlPath used for
177 opportunistic connection sharing include at least %h, %p, and %r.
178 This ensures that shared connections are uniquely identified.
179
180 ControlPersist
181 When used in conjunction with ControlMaster, specifies that the
182 master connection should remain open in the background (waiting
183 for future client connections) after the initial client
184 connection has been closed. If set to ``no'', then the master
185 connection will not be placed into the background, and will close
186 as soon as the initial client connection is closed. If set to
187 ``yes'', then the master connection will remain in the background
188 indefinitely (until killed or closed via a mechanism such as the
189 ssh(1) ``-O exit'' option). If set to a time in seconds, or a
190 time in any of the formats documented in sshd_config(5), then the
191 backgrounded master connection will automatically terminate after
192 it has remained idle (with no client connections) for the
193 specified time.
194
195 DynamicForward
196 Specifies that a TCP port on the local machine be forwarded over
197 the secure channel, and the application protocol is then used to
198 determine where to connect to from the remote machine.
199
200 The argument must be [bind_address:]port. IPv6 addresses can be
201 specified by enclosing addresses in square brackets. By default,
202 the local port is bound in accordance with the GatewayPorts
203 setting. However, an explicit bind_address may be used to bind
204 the connection to a specific address. The bind_address of
205 ``localhost'' indicates that the listening port be bound for
206 local use only, while an empty address or `*' indicates that the
207 port should be available from all interfaces.
208
209 Currently the SOCKS4 and SOCKS5 protocols are supported, and
210 ssh(1) will act as a SOCKS server. Multiple forwardings may be
211 specified, and additional forwardings can be given on the command
212 line. Only the superuser can forward privileged ports.
213
214 EnableSSHKeysign
215 Setting this option to ``yes'' in the global client configuration
216 file /etc/ssh/ssh_config enables the use of the helper program
217 ssh-keysign(8) during HostbasedAuthentication. The argument must
218 be ``yes'' or ``no''. The default is ``no''. This option should
219 be placed in the non-hostspecific section. See ssh-keysign(8)
220 for more information.
221
222 EscapeChar
223 Sets the escape character (default: `~'). The escape character
224 can also be set on the command line. The argument should be a
225 single character, `^' followed by a letter, or ``none'' to
226 disable the escape character entirely (making the connection
227 transparent for binary data).
228
229 ExitOnForwardFailure
230 Specifies whether ssh(1) should terminate the connection if it
231 cannot set up all requested dynamic, tunnel, local, and remote
232 port forwardings. The argument must be ``yes'' or ``no''. The
233 default is ``no''.
234
235 ForwardAgent
236 Specifies whether the connection to the authentication agent (if
237 any) will be forwarded to the remote machine. The argument must
238 be ``yes'' or ``no''. The default is ``no''.
239
240 Agent forwarding should be enabled with caution. Users with the
241 ability to bypass file permissions on the remote host (for the
242 agent's Unix-domain socket) can access the local agent through
243 the forwarded connection. An attacker cannot obtain key material
244 from the agent, however they can perform operations on the keys
245 that enable them to authenticate using the identities loaded into
246 the agent.
247
248 ForwardX11
249 Specifies whether X11 connections will be automatically
250 redirected over the secure channel and DISPLAY set. The argument
251 must be ``yes'' or ``no''. The default is ``no''.
252
253 X11 forwarding should be enabled with caution. Users with the
254 ability to bypass file permissions on the remote host (for the
255 user's X11 authorization database) can access the local X11
256 display through the forwarded connection. An attacker may then
257 be able to perform activities such as keystroke monitoring if the
258 ForwardX11Trusted option is also enabled.
259
260 ForwardX11Timeout
261 Specify a timeout for untrusted X11 forwarding using the format
262 described in the TIME FORMATS section of sshd_config(5). X11
263 connections received by ssh(1) after this time will be refused.
264 The default is to disable untrusted X11 forwarding after twenty
265 minutes has elapsed.
266
267 ForwardX11Trusted
268 If this option is set to ``yes'', remote X11 clients will have
269 full access to the original X11 display.
270
271 If this option is set to ``no'', remote X11 clients will be
272 considered untrusted and prevented from stealing or tampering
273 with data belonging to trusted X11 clients. Furthermore, the
274 xauth(1) token used for the session will be set to expire after
275 20 minutes. Remote clients will be refused access after this
276 time.
277
278 The default is ``no''.
279
280 See the X11 SECURITY extension specification for full details on
281 the restrictions imposed on untrusted clients.
282
283 GatewayPorts
284 Specifies whether remote hosts are allowed to connect to local
285 forwarded ports. By default, ssh(1) binds local port forwardings
286 to the loopback address. This prevents other remote hosts from
287 connecting to forwarded ports. GatewayPorts can be used to
288 specify that ssh should bind local port forwardings to the
289 wildcard address, thus allowing remote hosts to connect to
290 forwarded ports. The argument must be ``yes'' or ``no''. The
291 default is ``no''.
292
293 GlobalKnownHostsFile
294 Specifies one or more files to use for the global host key
295 database, separated by whitespace. The default is
296 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
297
298 GSSAPIAuthentication
299 Specifies whether user authentication based on GSSAPI is allowed.
300 The default is ``no''. Note that this option applies to protocol
301 version 2 only.
302
303 GSSAPIDelegateCredentials
304 Forward (delegate) credentials to the server. The default is
305 ``no''. Note that this option applies to protocol version 2
306 only.
307
308 HashKnownHosts
309 Indicates that ssh(1) should hash host names and addresses when
310 they are added to ~/.ssh/known_hosts. These hashed names may be
311 used normally by ssh(1) and sshd(8), but they do not reveal
312 identifying information should the file's contents be disclosed.
313 The default is ``no''. Note that existing names and addresses in
314 known hosts files will not be converted automatically, but may be
315 manually hashed using ssh-keygen(1).
316
317 HostbasedAuthentication
318 Specifies whether to try rhosts based authentication with public
319 key authentication. The argument must be ``yes'' or ``no''. The
320 default is ``no''. This option applies to protocol version 2
321 only and is similar to RhostsRSAAuthentication.
322
323 HostKeyAlgorithms
324 Specifies the protocol version 2 host key algorithms that the
325 client wants to use in order of preference. The default for this
326 option is:
327
328 ecdsa-sha2-nistp256-cert-v01@openssh.com,
329 ecdsa-sha2-nistp384-cert-v01@openssh.com,
330 ecdsa-sha2-nistp521-cert-v01@openssh.com,
331 ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
332 ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
333 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
334 ssh-rsa,ssh-dss
335
336 If hostkeys are known for the destination host then this default
337 is modified to prefer their algorithms.
338
339 HostKeyAlias
340 Specifies an alias that should be used instead of the real host
341 name when looking up or saving the host key in the host key
342 database files. This option is useful for tunneling SSH
343 connections or for multiple servers running on a single host.
344
345 HostName
346 Specifies the real host name to log into. This can be used to
347 specify nicknames or abbreviations for hosts. If the hostname
348 contains the character sequence `%h', then this will be replaced
349 with the host name specified on the command line (this is useful
350 for manipulating unqualified names). The default is the name
351 given on the command line. Numeric IP addresses are also
352 permitted (both on the command line and in HostName
353 specifications).
354
355 IdentitiesOnly
356 Specifies that ssh(1) should only use the authentication identity
357 files configured in the ssh_config files, even if ssh-agent(1)
358 offers more identities. The argument to this keyword must be
359 ``yes'' or ``no''. This option is intended for situations where
360 ssh-agent offers many different identities. The default is
361 ``no''.
362
363 IdentityFile
364 Specifies a file from which the user's DSA, ECDSA or DSA
365 authentication identity is read. The default is ~/.ssh/identity
366 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
367 ~/.ssh/id_rsa for protocol version 2. Additionally, any
368 identities represented by the authentication agent will be used
369 for authentication. ssh(1) will try to load certificate
370 information from the filename obtained by appending -cert.pub to
371 the path of a specified IdentityFile.
372
373 The file name may use the tilde syntax to refer to a user's home
374 directory or one of the following escape characters: `%d' (local
375 user's home directory), `%u' (local user name), `%l' (local host
376 name), `%h' (remote host name) or `%r' (remote user name).
377
378 It is possible to have multiple identity files specified in
379 configuration files; all these identities will be tried in
380 sequence. Multiple IdentityFile directives will add to the list
381 of identities tried (this behaviour differs from that of other
382 configuration directives).
383
384 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
385 Accepted values are ``af11'', ``af12'', ``af13'', ``af14'',
386 ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', ``af41'',
387 ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', ``cs4'',
388 ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', ``throughput'',
389 ``reliability'', or a numeric value. This option may take one or
390 two arguments, separated by whitespace. If one argument is
391 specified, it is used as the packet class unconditionally. If
392 two values are specified, the first is automatically selected for
393 interactive sessions and the second for non-interactive sessions.
394 The default is ``lowdelay'' for interactive sessions and
395 ``throughput'' for non-interactive sessions.
396
397 KbdInteractiveAuthentication
398 Specifies whether to use keyboard-interactive authentication.
399 The argument to this keyword must be ``yes'' or ``no''. The
400 default is ``yes''.
401
402 KbdInteractiveDevices
403 Specifies the list of methods to use in keyboard-interactive
404 authentication. Multiple method names must be comma-separated.
405 The default is to use the server specified list. The methods
406 available vary depending on what the server supports. For an
407 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
408 and ``skey''.
409
410 KexAlgorithms
411 Specifies the available KEX (Key Exchange) algorithms. Multiple
412 algorithms must be comma-separated. The default is:
413
414 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
415 diffie-hellman-group-exchange-sha256,
416 diffie-hellman-group-exchange-sha1,
417 diffie-hellman-group14-sha1,
418 diffie-hellman-group1-sha1
419
420 LocalCommand
421 Specifies a command to execute on the local machine after
422 successfully connecting to the server. The command string
423 extends to the end of the line, and is executed with the user's
424 shell. The following escape character substitutions will be
425 performed: `%d' (local user's home directory), `%h' (remote host
426 name), `%l' (local host name), `%n' (host name as provided on the
427 command line), `%p' (remote port), `%r' (remote user name) or
428 `%u' (local user name).
429
430 The command is run synchronously and does not have access to the
431 session of the ssh(1) that spawned it. It should not be used for
432 interactive commands.
433
434 This directive is ignored unless PermitLocalCommand has been
435 enabled.
436
437 LocalForward
438 Specifies that a TCP port on the local machine be forwarded over
439 the secure channel to the specified host and port from the remote
440 machine. The first argument must be [bind_address:]port and the
441 second argument must be host:hostport. IPv6 addresses can be
442 specified by enclosing addresses in square brackets. Multiple
443 forwardings may be specified, and additional forwardings can be
444 given on the command line. Only the superuser can forward
445 privileged ports. By default, the local port is bound in
446 accordance with the GatewayPorts setting. However, an explicit
447 bind_address may be used to bind the connection to a specific
448 address. The bind_address of ``localhost'' indicates that the
449 listening port be bound for local use only, while an empty
450 address or `*' indicates that the port should be available from
451 all interfaces.
452
453 LogLevel
454 Gives the verbosity level that is used when logging messages from
455 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
456 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
457 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
458 higher levels of verbose output.
459
460 MACs Specifies the MAC (message authentication code) algorithms in
461 order of preference. The MAC algorithm is used in protocol
462 version 2 for data integrity protection. Multiple algorithms
463 must be comma-separated. The default is:
464
465 hmac-md5,hmac-sha1,umac-64@openssh.com,
466 hmac-ripemd160,hmac-sha1-96,hmac-md5-96,
467 hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,
468 hmac-sha2-512-96
469
470 NoHostAuthenticationForLocalhost
471 This option can be used if the home directory is shared across
472 machines. In this case localhost will refer to a different
473 machine on each of the machines and the user will get many
474 warnings about changed host keys. However, this option disables
475 host authentication for localhost. The argument to this keyword
476 must be ``yes'' or ``no''. The default is to check the host key
477 for localhost.
478
479 NumberOfPasswordPrompts
480 Specifies the number of password prompts before giving up. The
481 argument to this keyword must be an integer. The default is 3.
482
483 PasswordAuthentication
484 Specifies whether to use password authentication. The argument
485 to this keyword must be ``yes'' or ``no''. The default is
486 ``yes''.
487
488 PermitLocalCommand
489 Allow local command execution via the LocalCommand option or
490 using the !command escape sequence in ssh(1). The argument must
491 be ``yes'' or ``no''. The default is ``no''.
492
493 PKCS11Provider
494 Specifies which PKCS#11 provider to use. The argument to this
495 keyword is the PKCS#11 shared library ssh(1) should use to
496 communicate with a PKCS#11 token providing the user's private RSA
497 key.
498
499 Port Specifies the port number to connect on the remote host. The
500 default is 22.
501
502 PreferredAuthentications
503 Specifies the order in which the client should try protocol 2
504 authentication methods. This allows a client to prefer one
505 method (e.g. keyboard-interactive) over another method (e.g.
506 password). The default is:
507
508 gssapi-with-mic,hostbased,publickey,
509 keyboard-interactive,password
510
511 Protocol
512 Specifies the protocol versions ssh(1) should support in order of
513 preference. The possible values are `1' and `2'. Multiple
514 versions must be comma-separated. When this option is set to
515 ``2,1'' ssh will try version 2 and fall back to version 1 if
516 version 2 is not available. The default is `2'.
517
518 ProxyCommand
519 Specifies the command to use to connect to the server. The
520 command string extends to the end of the line, and is executed
521 with the user's shell. In the command string, any occurrence of
522 `%h' will be substituted by the host name to connect, `%p' by the
523 port, and `%r' by the remote user name. The command can be
524 basically anything, and should read from its standard input and
525 write to its standard output. It should eventually connect an
526 sshd(8) server running on some machine, or execute sshd -i
527 somewhere. Host key management will be done using the HostName
528 of the host being connected (defaulting to the name typed by the
529 user). Setting the command to ``none'' disables this option
530 entirely. Note that CheckHostIP is not available for connects
531 with a proxy command.
532
533 This directive is useful in conjunction with nc(1) and its proxy
534 support. For example, the following directive would connect via
535 an HTTP proxy at 192.0.2.0:
536
537 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
538
539 PubkeyAuthentication
540 Specifies whether to try public key authentication. The argument
541 to this keyword must be ``yes'' or ``no''. The default is
542 ``yes''. This option applies to protocol version 2 only.
543
544 RekeyLimit
545 Specifies the maximum amount of data that may be transmitted
546 before the session key is renegotiated. The argument is the
547 number of bytes, with an optional suffix of `K', `M', or `G' to
548 indicate Kilobytes, Megabytes, or Gigabytes, respectively. The
549 default is between `1G' and `4G', depending on the cipher. This
550 option applies to protocol version 2 only.
551
552 RemoteForward
553 Specifies that a TCP port on the remote machine be forwarded over
554 the secure channel to the specified host and port from the local
555 machine. The first argument must be [bind_address:]port and the
556 second argument must be host:hostport. IPv6 addresses can be
557 specified by enclosing addresses in square brackets. Multiple
558 forwardings may be specified, and additional forwardings can be
559 given on the command line. Privileged ports can be forwarded
560 only when logging in as root on the remote machine.
561
562 If the port argument is `0', the listen port will be dynamically
563 allocated on the server and reported to the client at run time.
564
565 If the bind_address is not specified, the default is to only bind
566 to loopback addresses. If the bind_address is `*' or an empty
567 string, then the forwarding is requested to listen on all
568 interfaces. Specifying a remote bind_address will only succeed
569 if the server's GatewayPorts option is enabled (see
570 sshd_config(5)).
571
572 RequestTTY
573 Specifies whether to request a pseudo-tty for the session. The
574 argument may be one of: ``no'' (never request a TTY), ``yes''
575 (always request a TTY when standard input is a TTY), ``force''
576 (always request a TTY) or ``auto'' (request a TTY when opening a
577 login session). This option mirrors the -t and -T flags for
578 ssh(1).
579
580 RhostsRSAAuthentication
581 Specifies whether to try rhosts based authentication with RSA
582 host authentication. The argument must be ``yes'' or ``no''.
583 The default is ``no''. This option applies to protocol version 1
584 only and requires ssh(1) to be setuid root.
585
586 RSAAuthentication
587 Specifies whether to try RSA authentication. The argument to
588 this keyword must be ``yes'' or ``no''. RSA authentication will
589 only be attempted if the identity file exists, or an
590 authentication agent is running. The default is ``yes''. Note
591 that this option applies to protocol version 1 only.
592
593 SendEnv
594 Specifies what variables from the local environ(7) should be sent
595 to the server. Note that environment passing is only supported
596 for protocol 2. The server must also support it, and the server
597 must be configured to accept these environment variables. Refer
598 to AcceptEnv in sshd_config(5) for how to configure the server.
599 Variables are specified by name, which may contain wildcard
600 characters. Multiple environment variables may be separated by
601 whitespace or spread across multiple SendEnv directives. The
602 default is not to send any environment variables.
603
604 See PATTERNS for more information on patterns.
605
606 ServerAliveCountMax
607 Sets the number of server alive messages (see below) which may be
608 sent without ssh(1) receiving any messages back from the server.
609 If this threshold is reached while server alive messages are
610 being sent, ssh will disconnect from the server, terminating the
611 session. It is important to note that the use of server alive
612 messages is very different from TCPKeepAlive (below). The server
613 alive messages are sent through the encrypted channel and
614 therefore will not be spoofable. The TCP keepalive option
615 enabled by TCPKeepAlive is spoofable. The server alive mechanism
616 is valuable when the client or server depend on knowing when a
617 connection has become inactive.
618
619 The default value is 3. If, for example, ServerAliveInterval
620 (see below) is set to 15 and ServerAliveCountMax is left at the
621 default, if the server becomes unresponsive, ssh will disconnect
622 after approximately 45 seconds. This option applies to protocol
623 version 2 only.
624
625 ServerAliveInterval
626 Sets a timeout interval in seconds after which if no data has
627 been received from the server, ssh(1) will send a message through
628 the encrypted channel to request a response from the server. The
629 default is 0, indicating that these messages will not be sent to
630 the server. This option applies to protocol version 2 only.
631
632 StrictHostKeyChecking
633 If this flag is set to ``yes'', ssh(1) will never automatically
634 add host keys to the ~/.ssh/known_hosts file, and refuses to
635 connect to hosts whose host key has changed. This provides
636 maximum protection against trojan horse attacks, though it can be
637 annoying when the /etc/ssh/ssh_known_hosts file is poorly
638 maintained or when connections to new hosts are frequently made.
639 This option forces the user to manually add all new hosts. If
640 this flag is set to ``no'', ssh will automatically add new host
641 keys to the user known hosts files. If this flag is set to
642 ``ask'', new host keys will be added to the user known host files
643 only after the user has confirmed that is what they really want
644 to do, and ssh will refuse to connect to hosts whose host key has
645 changed. The host keys of known hosts will be verified
646 automatically in all cases. The argument must be ``yes'',
647 ``no'', or ``ask''. The default is ``ask''.
648
649 TCPKeepAlive
650 Specifies whether the system should send TCP keepalive messages
651 to the other side. If they are sent, death of the connection or
652 crash of one of the machines will be properly noticed. However,
653 this means that connections will die if the route is down
654 temporarily, and some people find it annoying.
655
656 The default is ``yes'' (to send TCP keepalive messages), and the
657 client will notice if the network goes down or the remote host
658 dies. This is important in scripts, and many users want it too.
659
660 To disable TCP keepalive messages, the value should be set to
661 ``no''.
662
663 Tunnel Request tun(4) device forwarding between the client and the
664 server. The argument must be ``yes'', ``point-to-point'' (layer
665 3), ``ethernet'' (layer 2), or ``no''. Specifying ``yes''
666 requests the default tunnel mode, which is ``point-to-point''.
667 The default is ``no''.
668
669 TunnelDevice
670 Specifies the tun(4) devices to open on the client (local_tun)
671 and the server (remote_tun).
672
673 The argument must be local_tun[:remote_tun]. The devices may be
674 specified by numerical ID or the keyword ``any'', which uses the
675 next available tunnel device. If remote_tun is not specified, it
676 defaults to ``any''. The default is ``any:any''.
677
678 UsePrivilegedPort
679 Specifies whether to use a privileged port for outgoing
680 connections. The argument must be ``yes'' or ``no''. The
681 default is ``no''. If set to ``yes'', ssh(1) must be setuid
682 root. Note that this option must be set to ``yes'' for
683 RhostsRSAAuthentication with older servers.
684
685 User Specifies the user to log in as. This can be useful when a
686 different user name is used on different machines. This saves
687 the trouble of having to remember to give the user name on the
688 command line.
689
690 UserKnownHostsFile
691 Specifies one or more files to use for the user host key
692 database, separated by whitespace. The default is
693 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
694
695 VerifyHostKeyDNS
696 Specifies whether to verify the remote key using DNS and SSHFP
697 resource records. If this option is set to ``yes'', the client
698 will implicitly trust keys that match a secure fingerprint from
699 DNS. Insecure fingerprints will be handled as if this option was
700 set to ``ask''. If this option is set to ``ask'', information on
701 fingerprint match will be displayed, but the user will still need
702 to confirm new host keys according to the StrictHostKeyChecking
703 option. The argument must be ``yes'', ``no'', or ``ask''. The
704 default is ``no''. Note that this option applies to protocol
705 version 2 only.
706
707 See also VERIFYING HOST KEYS in ssh(1).
708
709 VisualHostKey
710 If this flag is set to ``yes'', an ASCII art representation of
711 the remote host key fingerprint is printed in addition to the hex
712 fingerprint string at login and for unknown host keys. If this
713 flag is set to ``no'', no fingerprint strings are printed at
714 login and only the hex fingerprint string will be printed for
715 unknown host keys. The default is ``no''.
716
717 XAuthLocation
718 Specifies the full pathname of the xauth(1) program. The default
719 is /usr/X11R6/bin/xauth.
720
721PATTERNS
722 A pattern consists of zero or more non-whitespace characters, `*' (a
723 wildcard that matches zero or more characters), or `?' (a wildcard that
724 matches exactly one character). For example, to specify a set of
725 declarations for any host in the ``.co.uk'' set of domains, the following
726 pattern could be used:
727
728 Host *.co.uk
729
730 The following pattern would match any host in the 192.168.0.[0-9] network
731 range:
732
733 Host 192.168.0.?
734
735 A pattern-list is a comma-separated list of patterns. Patterns within
736 pattern-lists may be negated by preceding them with an exclamation mark
737 (`!'). For example, to allow a key to be used from anywhere within an
738 organisation except from the ``dialup'' pool, the following entry (in
739 authorized_keys) could be used:
740
741 from="!*.dialup.example.com,*.example.com"
742
743FILES
744 ~/.ssh/config
745 This is the per-user configuration file. The format of this file
746 is described above. This file is used by the SSH client.
747 Because of the potential for abuse, this file must have strict
748 permissions: read/write for the user, and not accessible by
749 others.
750
751 /etc/ssh/ssh_config
752 Systemwide configuration file. This file provides defaults for
753 those values that are not specified in the user's configuration
754 file, and for those users who do not have a configuration file.
755 This file must be world-readable.
756
757SEE ALSO
758 ssh(1)
759
760AUTHORS
761 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
762 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
763 de Raadt and Dug Song removed many bugs, re-added newer features and
764 created OpenSSH. Markus Friedl contributed the support for SSH protocol
765 versions 1.5 and 2.0.
766
767OpenBSD 5.0 August 2, 2011 OpenBSD 5.0
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..e8b49831d
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,635 @@
1SSHD(8) OpenBSD 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] [-f config_file] [-g login_grace_time]
9 [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
10
11DESCRIPTION
12 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
13 programs replace rlogin(1) and rsh(1), and provide secure encrypted
14 communications between two untrusted hosts over an insecure network.
15
16 sshd listens for connections from clients. It is normally started at
17 boot from /etc/rc. It forks a new daemon for each incoming connection.
18 The forked daemons handle key exchange, encryption, authentication,
19 command execution, and data exchange.
20
21 sshd can be configured using command-line options or a configuration file
22 (by default sshd_config(5)); command-line options override values
23 specified in the configuration file. sshd rereads its configuration file
24 when it receives a hangup signal, SIGHUP, by executing itself with the
25 name and options it was started with, e.g. /usr/sbin/sshd.
26
27 The options are as follows:
28
29 -4 Forces sshd to use IPv4 addresses only.
30
31 -6 Forces sshd to use IPv6 addresses only.
32
33 -b bits
34 Specifies the number of bits in the ephemeral protocol version 1
35 server key (default 1024).
36
37 -C connection_spec
38 Specify the connection parameters to use for the -T extended test
39 mode. If provided, any Match directives in the configuration
40 file that would apply to the specified user, host, and address
41 will be set before the configuration is written to standard
42 output. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', and ``addr''. All
44 are required and may be supplied in any order, either with
45 multiple -C options or as a comma-separated list.
46
47 -c host_certificate_file
48 Specifies a path to a certificate file to identify sshd during
49 key exchange. The certificate file must match a host key file
50 specified using the -h option or the HostKey configuration
51 directive.
52
53 -D When this option is specified, sshd will not detach and does not
54 become a daemon. This allows easy monitoring of sshd.
55
56 -d Debug mode. The server sends verbose debug output to standard
57 error, and does not put itself in the background. The server
58 also will not fork and will only process one connection. This
59 option is only intended for debugging for the server. Multiple
60 -d options increase the debugging level. Maximum is 3.
61
62 -e When this option is specified, sshd will send the output to the
63 standard error instead of the system log.
64
65 -f config_file
66 Specifies the name of the configuration file. The default is
67 /etc/ssh/sshd_config. sshd refuses to start if there is no
68 configuration file.
69
70 -g login_grace_time
71 Gives the grace time for clients to authenticate themselves
72 (default 120 seconds). If the client fails to authenticate the
73 user within this many seconds, the server disconnects and exits.
74 A value of zero indicates no limit.
75
76 -h host_key_file
77 Specifies a file from which a host key is read. This option must
78 be given if sshd is not run as root (as the normal host key files
79 are normally not readable by anyone but root). The default is
80 /etc/ssh/ssh_host_key for protocol version 1, and
81 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
82 /etc/ssh/ssh_host_rsa_key for protocol version 2. It is possible
83 to have multiple host key files for the different protocol
84 versions and host key algorithms.
85
86 -i Specifies that sshd is being run from inetd(8). sshd is normally
87 not run from inetd because it needs to generate the server key
88 before it can respond to the client, and this may take tens of
89 seconds. Clients would have to wait too long if the key was
90 regenerated every time. However, with small key sizes (e.g. 512)
91 using sshd from inetd may be feasible.
92
93 -k key_gen_time
94 Specifies how often the ephemeral protocol version 1 server key
95 is regenerated (default 3600 seconds, or one hour). The
96 motivation for regenerating the key fairly often is that the key
97 is not stored anywhere, and after about an hour it becomes
98 impossible to recover the key for decrypting intercepted
99 communications even if the machine is cracked into or physically
100 seized. A value of zero indicates that the key will never be
101 regenerated.
102
103 -o option
104 Can be used to give options in the format used in the
105 configuration file. This is useful for specifying options for
106 which there is no separate command-line flag. For full details
107 of the options, and their values, see sshd_config(5).
108
109 -p port
110 Specifies the port on which the server listens for connections
111 (default 22). Multiple port options are permitted. Ports
112 specified in the configuration file with the Port option are
113 ignored when a command-line port is specified. Ports specified
114 using the ListenAddress option override command-line ports.
115
116 -q Quiet mode. Nothing is sent to the system log. Normally the
117 beginning, authentication, and termination of each connection is
118 logged.
119
120 -T Extended test mode. Check the validity of the configuration
121 file, output the effective configuration to stdout and then exit.
122 Optionally, Match rules may be applied by specifying the
123 connection parameters using one or more -C options.
124
125 -t Test mode. Only check the validity of the configuration file and
126 sanity of the keys. This is useful for updating sshd reliably as
127 configuration options may change.
128
129 -u len This option is used to specify the size of the field in the utmp
130 structure that holds the remote host name. If the resolved host
131 name is longer than len, the dotted decimal value will be used
132 instead. This allows hosts with very long host names that
133 overflow this field to still be uniquely identified. Specifying
134 -u0 indicates that only dotted decimal addresses should be put
135 into the utmp file. -u0 may also be used to prevent sshd from
136 making DNS requests unless the authentication mechanism or
137 configuration requires it. Authentication mechanisms that may
138 require DNS include RhostsRSAAuthentication,
139 HostbasedAuthentication, and using a from="pattern-list" option
140 in a key file. Configuration options that require DNS include
141 using a USER@HOST pattern in AllowUsers or DenyUsers.
142
143AUTHENTICATION
144 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
145 use protocol 2 only, though this can be changed via the Protocol option
146 in sshd_config(5). Protocol 2 supports DSA, ECDSA and RSA keys; protocol
147 1 only supports RSA keys. For both protocols, each host has a host-
148 specific key, normally 2048 bits, used to identify the host.
149
150 Forward security for protocol 1 is provided through an additional server
151 key, normally 768 bits, generated when the server starts. This key is
152 normally regenerated every hour if it has been used, and is never stored
153 on disk. Whenever a client connects, the daemon responds with its public
154 host and server keys. The client compares the RSA host key against its
155 own database to verify that it has not changed. The client then
156 generates a 256-bit random number. It encrypts this random number using
157 both the host key and the server key, and sends the encrypted number to
158 the server. Both sides then use this random number as a session key
159 which is used to encrypt all further communications in the session. The
160 rest of the session is encrypted using a conventional cipher, currently
161 Blowfish or 3DES, with 3DES being used by default. The client selects
162 the encryption algorithm to use from those offered by the server.
163
164 For protocol 2, forward security is provided through a Diffie-Hellman key
165 agreement. This key agreement results in a shared session key. The rest
166 of the session is encrypted using a symmetric cipher, currently 128-bit
167 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
168 client selects the encryption algorithm to use from those offered by the
169 server. Additionally, session integrity is provided through a
170 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64,
171 hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512).
172
173 Finally, the server and the client enter an authentication dialog. The
174 client tries to authenticate itself using host-based authentication,
175 public key authentication, challenge-response authentication, or password
176 authentication.
177
178 Regardless of the authentication type, the account is checked to ensure
179 that it is accessible. An account is not accessible if it is locked,
180 listed in DenyUsers or its group is listed in DenyGroups . The
181 definition of a locked account is system dependant. Some platforms have
182 their own account database (eg AIX) and some modify the passwd field (
183 `*LK*' on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on
184 Tru64, a leading `*LOCKED*' on FreeBSD and a leading `!' on most
185 Linuxes). If there is a requirement to disable password authentication
186 for the account while allowing still public-key, then the passwd field
187 should be set to something other than these values (eg `NP' or `*NP*' ).
188
189 If the client successfully authenticates itself, a dialog for preparing
190 the session is entered. At this time the client may request things like
191 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
192 connections, or forwarding the authentication agent connection over the
193 secure channel.
194
195 After this, the client either requests a shell or execution of a command.
196 The sides then enter session mode. In this mode, either side may send
197 data at any time, and such data is forwarded to/from the shell or command
198 on the server side, and the user terminal in the client side.
199
200 When the user program terminates and all forwarded X11 and other
201 connections have been closed, the server sends command exit status to the
202 client, and both sides exit.
203
204LOGIN PROCESS
205 When a user successfully logs in, sshd does the following:
206
207 1. If the login is on a tty, and no command has been specified,
208 prints last login time and /etc/motd (unless prevented in the
209 configuration file or by ~/.hushlogin; see the FILES section).
210
211 2. If the login is on a tty, records login time.
212
213 3. Checks /etc/nologin; if it exists, prints contents and quits
214 (unless root).
215
216 4. Changes to run with normal user privileges.
217
218 5. Sets up basic environment.
219
220 6. Reads the file ~/.ssh/environment, if it exists, and users are
221 allowed to change their environment. See the
222 PermitUserEnvironment option in sshd_config(5).
223
224 7. Changes to user's home directory.
225
226 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
227 runs it; otherwise runs xauth. The ``rc'' files are given the
228 X11 authentication protocol and cookie in standard input. See
229 SSHRC, below.
230
231 9. Runs user's shell or command.
232
233SSHRC
234 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
235 files but before starting the user's shell or command. It must not
236 produce any output on stdout; stderr must be used instead. If X11
237 forwarding is in use, it will receive the "proto cookie" pair in its
238 standard input (and DISPLAY in its environment). The script must call
239 xauth(1) because sshd will not run xauth automatically to add X11
240 cookies.
241
242 The primary purpose of this file is to run any initialization routines
243 which may be needed before the user's home directory becomes accessible;
244 AFS is a particular example of such an environment.
245
246 This file will probably contain some initialization code followed by
247 something similar to:
248
249 if read proto cookie && [ -n "$DISPLAY" ]; then
250 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
251 # X11UseLocalhost=yes
252 echo add unix:`echo $DISPLAY |
253 cut -c11-` $proto $cookie
254 else
255 # X11UseLocalhost=no
256 echo add $DISPLAY $proto $cookie
257 fi | xauth -q -
258 fi
259
260 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
261 exist either, xauth is used to add the cookie.
262
263AUTHORIZED_KEYS FILE FORMAT
264 AuthorizedKeysFile specifies the files containing public keys for public
265 key authentication; if none is specified, the default is
266 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the
267 file contains one key (empty lines and lines starting with a `#' are
268 ignored as comments). Protocol 1 public keys consist of the following
269 space-separated fields: options, bits, exponent, modulus, comment.
270 Protocol 2 public key consist of: options, keytype, base64-encoded key,
271 comment. The options field is optional; its presence is determined by
272 whether the line starts with a number or not (the options field never
273 starts with a number). The bits, exponent, modulus, and comment fields
274 give the RSA key for protocol version 1; the comment field is not used
275 for anything (but may be convenient for the user to identify the key).
276 For protocol version 2 the keytype is ``ecdsa-sha2-nistp256'',
277 ``ecdsa-sha2-nistp384'', ``ecdsa-sha2-nistp521'', ``ssh-dss'' or
278 ``ssh-rsa''.
279
280 Note that lines in this file are usually several hundred bytes long
281 (because of the size of the public key encoding) up to a limit of 8
282 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
283 kilobits. You don't want to type them in; instead, copy the
284 identity.pub, id_dsa.pub, id_ecdsa.pub, or the id_rsa.pub file and edit
285 it.
286
287 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
288 2 keys of 768 bits.
289
290 The options (if present) consist of comma-separated option
291 specifications. No spaces are permitted, except within double quotes.
292 The following option specifications are supported (note that option
293 keywords are case-insensitive):
294
295 cert-authority
296 Specifies that the listed key is a certification authority (CA)
297 that is trusted to validate signed certificates for user
298 authentication.
299
300 Certificates may encode access restrictions similar to these key
301 options. If both certificate restrictions and key options are
302 present, the most restrictive union of the two is applied.
303
304 command="command"
305 Specifies that the command is executed whenever this key is used
306 for authentication. The command supplied by the user (if any) is
307 ignored. The command is run on a pty if the client requests a
308 pty; otherwise it is run without a tty. If an 8-bit clean
309 channel is required, one must not request a pty or should specify
310 no-pty. A quote may be included in the command by quoting it
311 with a backslash. This option might be useful to restrict
312 certain public keys to perform just a specific operation. An
313 example might be a key that permits remote backups but nothing
314 else. Note that the client may specify TCP and/or X11 forwarding
315 unless they are explicitly prohibited. The command originally
316 supplied by the client is available in the SSH_ORIGINAL_COMMAND
317 environment variable. Note that this option applies to shell,
318 command or subsystem execution. Also note that this command may
319 be superseded by either a sshd_config(5) ForceCommand directive
320 or a command embedded in a certificate.
321
322 environment="NAME=value"
323 Specifies that the string is to be added to the environment when
324 logging in using this key. Environment variables set this way
325 override other default environment values. Multiple options of
326 this type are permitted. Environment processing is disabled by
327 default and is controlled via the PermitUserEnvironment option.
328 This option is automatically disabled if UseLogin is enabled.
329
330 from="pattern-list"
331 Specifies that in addition to public key authentication, either
332 the canonical name of the remote host or its IP address must be
333 present in the comma-separated list of patterns. See PATTERNS in
334 ssh_config(5) for more information on patterns.
335
336 In addition to the wildcard matching that may be applied to
337 hostnames or addresses, a from stanza may match IP addresses
338 using CIDR address/masklen notation.
339
340 The purpose of this option is to optionally increase security:
341 public key authentication by itself does not trust the network or
342 name servers or anything (but the key); however, if somebody
343 somehow steals the key, the key permits an intruder to log in
344 from anywhere in the world. This additional option makes using a
345 stolen key more difficult (name servers and/or routers would have
346 to be compromised in addition to just the key).
347
348 no-agent-forwarding
349 Forbids authentication agent forwarding when this key is used for
350 authentication.
351
352 no-port-forwarding
353 Forbids TCP forwarding when this key is used for authentication.
354 Any port forward requests by the client will return an error.
355 This might be used, e.g. in connection with the command option.
356
357 no-pty Prevents tty allocation (a request to allocate a pty will fail).
358
359 no-user-rc
360 Disables execution of ~/.ssh/rc.
361
362 no-X11-forwarding
363 Forbids X11 forwarding when this key is used for authentication.
364 Any X11 forward requests by the client will return an error.
365
366 permitopen="host:port"
367 Limit local ``ssh -L'' port forwarding such that it may only
368 connect to the specified host and port. IPv6 addresses can be
369 specified by enclosing the address in square brackets. Multiple
370 permitopen options may be applied separated by commas. No
371 pattern matching is performed on the specified hostnames, they
372 must be literal domains or addresses.
373
374 principals="principals"
375 On a cert-authority line, specifies allowed principals for
376 certificate authentication as a comma-separated list. At least
377 one name from the list must appear in the certificate's list of
378 principals for the certificate to be accepted. This option is
379 ignored for keys that are not marked as trusted certificate
380 signers using the cert-authority option.
381
382 tunnel="n"
383 Force a tun(4) device on the server. Without this option, the
384 next available device will be used if the client requests a
385 tunnel.
386
387 An example authorized_keys file:
388
389 # Comments allowed at start of line
390 ssh-rsa AAAAB3Nza...LiPk== user@example.net
391 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
392 AAAAB2...19Q== john@example.net
393 command="dump /home",no-pty,no-port-forwarding ssh-dss
394 AAAAC3...51R== example.net
395 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
396 AAAAB5...21S==
397 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
398 jane@example.net
399
400SSH_KNOWN_HOSTS FILE FORMAT
401 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
402 public keys for all known hosts. The global file should be prepared by
403 the administrator (optional), and the per-user file is maintained
404 automatically: whenever the user connects from an unknown host, its key
405 is added to the per-user file.
406
407 Each line in these files contains the following fields: markers
408 (optional), hostnames, bits, exponent, modulus, comment. The fields are
409 separated by spaces.
410
411 The marker is optional, but if it is present then it must be one of
412 ``@cert-authority'', to indicate that the line contains a certification
413 authority (CA) key, or ``@revoked'', to indicate that the key contained
414 on the line is revoked and must not ever be accepted. Only one marker
415 should be used on a key line.
416
417 Hostnames is a comma-separated list of patterns (`*' and `?' act as
418 wildcards); each pattern in turn is matched against the canonical host
419 name (when authenticating a client) or against the user-supplied name
420 (when authenticating a server). A pattern may also be preceded by `!' to
421 indicate negation: if the host name matches a negated pattern, it is not
422 accepted (by that line) even if it matched another pattern on the line.
423 A hostname or address may optionally be enclosed within `[' and `]'
424 brackets then followed by `:' and a non-standard port number.
425
426 Alternately, hostnames may be stored in a hashed form which hides host
427 names and addresses should the file's contents be disclosed. Hashed
428 hostnames start with a `|' character. Only one hashed hostname may
429 appear on a single line and none of the above negation or wildcard
430 operators may be applied.
431
432 Bits, exponent, and modulus are taken directly from the RSA host key;
433 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
434 optional comment field continues to the end of the line, and is not used.
435
436 Lines starting with `#' and empty lines are ignored as comments.
437
438 When performing host authentication, authentication is accepted if any
439 matching line has the proper key; either one that matches exactly or, if
440 the server has presented a certificate for authentication, the key of the
441 certification authority that signed the certificate. For a key to be
442 trusted as a certification authority, it must use the ``@cert-authority''
443 marker described above.
444
445 The known hosts file also provides a facility to mark keys as revoked,
446 for example when it is known that the associated private key has been
447 stolen. Revoked keys are specified by including the ``@revoked'' marker
448 at the beginning of the key line, and are never accepted for
449 authentication or as certification authorities, but instead will produce
450 a warning from ssh(1) when they are encountered.
451
452 It is permissible (but not recommended) to have several lines or
453 different host keys for the same names. This will inevitably happen when
454 short forms of host names from different domains are put in the file. It
455 is possible that the files contain conflicting information;
456 authentication is accepted if valid information can be found from either
457 file.
458
459 Note that the lines in these files are typically hundreds of characters
460 long, and you definitely don't want to type in the host keys by hand.
461 Rather, generate them by a script, ssh-keyscan(1) or by taking
462 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
463 ssh-keygen(1) also offers some basic automated editing for
464 ~/.ssh/known_hosts including removing hosts matching a host name and
465 converting all host names to their hashed representations.
466
467 An example ssh_known_hosts file:
468
469 # Comments allowed at start of line
470 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
471 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
472 # A hashed hostname
473 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
474 AAAA1234.....=
475 # A revoked key
476 @revoked * ssh-rsa AAAAB5W...
477 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
478 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
479
480FILES
481 ~/.hushlogin
482 This file is used to suppress printing the last login time and
483 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
484 enabled. It does not suppress printing of the banner specified
485 by Banner.
486
487 ~/.rhosts
488 This file is used for host-based authentication (see ssh(1) for
489 more information). On some machines this file may need to be
490 world-readable if the user's home directory is on an NFS
491 partition, because sshd reads it as root. Additionally, this
492 file must be owned by the user, and must not have write
493 permissions for anyone else. The recommended permission for most
494 machines is read/write for the user, and not accessible by
495 others.
496
497 ~/.shosts
498 This file is used in exactly the same way as .rhosts, but allows
499 host-based authentication without permitting login with
500 rlogin/rsh.
501
502 ~/.ssh/
503 This directory is the default location for all user-specific
504 configuration and authentication information. There is no
505 general requirement to keep the entire contents of this directory
506 secret, but the recommended permissions are read/write/execute
507 for the user, and not accessible by others.
508
509 ~/.ssh/authorized_keys
510 Lists the public keys (DSA/ECDSA/RSA) that can be used for
511 logging in as this user. The format of this file is described
512 above. The content of the file is not highly sensitive, but the
513 recommended permissions are read/write for the user, and not
514 accessible by others.
515
516 If this file, the ~/.ssh directory, or the user's home directory
517 are writable by other users, then the file could be modified or
518 replaced by unauthorized users. In this case, sshd will not
519 allow it to be used unless the StrictModes option has been set to
520 ``no''.
521
522 ~/.ssh/environment
523 This file is read into the environment at login (if it exists).
524 It can only contain empty lines, comment lines (that start with
525 `#'), and assignment lines of the form name=value. The file
526 should be writable only by the user; it need not be readable by
527 anyone else. Environment processing is disabled by default and
528 is controlled via the PermitUserEnvironment option.
529
530 ~/.ssh/known_hosts
531 Contains a list of host keys for all hosts the user has logged
532 into that are not already in the systemwide list of known host
533 keys. The format of this file is described above. This file
534 should be writable only by root/the owner and can, but need not
535 be, world-readable.
536
537 ~/.ssh/rc
538 Contains initialization routines to be run before the user's home
539 directory becomes accessible. This file should be writable only
540 by the user, and need not be readable by anyone else.
541
542 /etc/hosts.allow
543 /etc/hosts.deny
544 Access controls that should be enforced by tcp-wrappers are
545 defined here. Further details are described in hosts_access(5).
546
547 /etc/hosts.equiv
548 This file is for host-based authentication (see ssh(1)). It
549 should only be writable by root.
550
551 /etc/moduli
552 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
553 Exchange". The file format is described in moduli(5).
554
555 /etc/motd
556 See motd(5).
557
558 /etc/nologin
559 If this file exists, sshd refuses to let anyone except root log
560 in. The contents of the file are displayed to anyone trying to
561 log in, and non-root connections are refused. The file should be
562 world-readable.
563
564 /etc/shosts.equiv
565 This file is used in exactly the same way as hosts.equiv, but
566 allows host-based authentication without permitting login with
567 rlogin/rsh.
568
569 /etc/ssh/ssh_host_key
570 /etc/ssh/ssh_host_dsa_key
571 /etc/ssh/ssh_host_ecdsa_key
572 /etc/ssh/ssh_host_rsa_key
573 These three files contain the private parts of the host keys.
574 These files should only be owned by root, readable only by root,
575 and not accessible to others. Note that sshd does not start if
576 these files are group/world-accessible.
577
578 /etc/ssh/ssh_host_key.pub
579 /etc/ssh/ssh_host_dsa_key.pub
580 /etc/ssh/ssh_host_ecdsa_key.pub
581 /etc/ssh/ssh_host_rsa_key.pub
582 These three files contain the public parts of the host keys.
583 These files should be world-readable but writable only by root.
584 Their contents should match the respective private parts. These
585 files are not really used for anything; they are provided for the
586 convenience of the user so their contents can be copied to known
587 hosts files. These files are created using ssh-keygen(1).
588
589 /etc/ssh/ssh_known_hosts
590 Systemwide list of known host keys. This file should be prepared
591 by the system administrator to contain the public host keys of
592 all machines in the organization. The format of this file is
593 described above. This file should be writable only by root/the
594 owner and should be world-readable.
595
596 /etc/ssh/sshd_config
597 Contains configuration data for sshd. The file format and
598 configuration options are described in sshd_config(5).
599
600 /etc/ssh/sshrc
601 Similar to ~/.ssh/rc, it can be used to specify machine-specific
602 login-time initializations globally. This file should be
603 writable only by root, and should be world-readable.
604
605 /var/empty
606 chroot(2) directory used by sshd during privilege separation in
607 the pre-authentication phase. The directory should not contain
608 any files and must be owned by root and not group or world-
609 writable.
610
611 /var/run/sshd.pid
612 Contains the process ID of the sshd listening for connections (if
613 there are several daemons running concurrently for different
614 ports, this contains the process ID of the one started last).
615 The content of this file is not sensitive; it can be world-
616 readable.
617
618SEE ALSO
619 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
620 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
621 sshd_config(5), inetd(8), sftp-server(8)
622
623AUTHORS
624 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
625 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
626 de Raadt and Dug Song removed many bugs, re-added newer features and
627 created OpenSSH. Markus Friedl contributed the support for SSH protocol
628 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
629 for privilege separation.
630
631CAVEATS
632 System security is not improved unless rshd, rlogind, and rexecd are
633 disabled (thus completely disabling rlogin and rsh into the machine).
634
635OpenBSD 5.0 August 2, 2011 OpenBSD 5.0
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..e19ca875b
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,718 @@
1SSHD_CONFIG(5) OpenBSD Programmer's 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 default is
57 ``yes''. Note that disabling TCP forwarding does not improve
58 security unless users are also denied shell access, as they can
59 always install their own forwarders.
60
61 AllowUsers
62 This keyword can be followed by a list of user name patterns,
63 separated by spaces. If specified, login is allowed only for
64 user names that match one of the patterns. Only user names are
65 valid; a numerical user ID is not recognized. By default, login
66 is allowed for all users. If the pattern takes the form
67 USER@HOST then USER and HOST are separately checked, restricting
68 logins to particular users from particular hosts. The allow/deny
69 directives are processed in the following order: DenyUsers,
70 AllowUsers, DenyGroups, and finally AllowGroups.
71
72 See PATTERNS in ssh_config(5) for more information on patterns.
73
74 AuthorizedKeysFile
75 Specifies the file that contains the public keys that can be used
76 for user authentication. The format is described in the
77 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
78 AuthorizedKeysFile may contain tokens of the form %T which are
79 substituted during connection setup. The following tokens are
80 defined: %% is replaced by a literal '%', %h is replaced by the
81 home directory of the user being authenticated, and %u is
82 replaced by the username of that user. After expansion,
83 AuthorizedKeysFile is taken to be an absolute path or one
84 relative to the user's home directory. Multiple files may be
85 listed, separated by whitespace. The default is
86 ``.ssh/authorized_keys .ssh/authorized_keys2''.
87
88 AuthorizedPrincipalsFile
89 Specifies a file that lists principal names that are accepted for
90 certificate authentication. When using certificates signed by a
91 key listed in TrustedUserCAKeys, this file lists names, one of
92 which must appear in the certificate for it to be accepted for
93 authentication. Names are listed one per line preceded by key
94 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
95 Empty lines and comments starting with `#' are ignored.
96
97 AuthorizedPrincipalsFile may contain tokens of the form %T which
98 are substituted during connection setup. The following tokens
99 are defined: %% is replaced by a literal '%', %h is replaced by
100 the home directory of the user being authenticated, and %u is
101 replaced by the username of that user. After expansion,
102 AuthorizedPrincipalsFile is taken to be an absolute path or one
103 relative to the user's home directory.
104
105 The default is not to use a principals file - in this case, the
106 username of the user must appear in a certificate's principals
107 list for it to be accepted. Note that AuthorizedPrincipalsFile
108 is only used when authentication proceeds using a CA listed in
109 TrustedUserCAKeys and is not consulted for certification
110 authorities trusted via ~/.ssh/authorized_keys, though the
111 principals= key option offers a similar facility (see sshd(8) for
112 details).
113
114 Banner The contents of the specified file are sent to the remote user
115 before authentication is allowed. If the argument is ``none''
116 then no banner is displayed. This option is only available for
117 protocol version 2. By default, no banner is displayed.
118
119 ChallengeResponseAuthentication
120 Specifies whether challenge-response authentication is allowed
121 (e.g. via PAM or though authentication styles supported in
122 login.conf(5)) The default is ``yes''.
123
124 ChrootDirectory
125 Specifies the pathname of a directory to chroot(2) to after
126 authentication. All components of the pathname must be root-
127 owned directories that are not writable by any other user or
128 group. After the chroot, sshd(8) changes the working directory
129 to the user's home directory.
130
131 The pathname may contain the following tokens that are expanded
132 at runtime once the connecting user has been authenticated: %% is
133 replaced by a literal '%', %h is replaced by the home directory
134 of the user being authenticated, and %u is replaced by the
135 username of that user.
136
137 The ChrootDirectory must contain the necessary files and
138 directories to support the user's session. For an interactive
139 session this requires at least a shell, typically sh(1), and
140 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
141 stderr(4), arandom(4) and tty(4) devices. For file transfer
142 sessions using ``sftp'', no additional configuration of the
143 environment is necessary if the in-process sftp server is used,
144 though sessions which use logging do require /dev/log inside the
145 chroot directory (see sftp-server(8) for details).
146
147 The default is not to chroot(2).
148
149 Ciphers
150 Specifies the ciphers allowed for protocol version 2. Multiple
151 ciphers must be comma-separated. The supported ciphers are
152 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
153 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
154 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
155 ``cast128-cbc''. The default is:
156
157 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
158 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
159 aes256-cbc,arcfour
160
161 ClientAliveCountMax
162 Sets the number of client alive messages (see below) which may be
163 sent without sshd(8) receiving any messages back from the client.
164 If this threshold is reached while client alive messages are
165 being sent, sshd will disconnect the client, terminating the
166 session. It is important to note that the use of client alive
167 messages is very different from TCPKeepAlive (below). The client
168 alive messages are sent through the encrypted channel and
169 therefore will not be spoofable. The TCP keepalive option
170 enabled by TCPKeepAlive is spoofable. The client alive mechanism
171 is valuable when the client or server depend on knowing when a
172 connection has become inactive.
173
174 The default value is 3. If ClientAliveInterval (see below) is
175 set to 15, and ClientAliveCountMax is left at the default,
176 unresponsive SSH clients will be disconnected after approximately
177 45 seconds. This option applies to protocol version 2 only.
178
179 ClientAliveInterval
180 Sets a timeout interval in seconds after which if no data has
181 been received from the client, sshd(8) will send a message
182 through the encrypted channel to request a response from the
183 client. The default is 0, indicating that these messages will
184 not be sent to the client. This option applies to protocol
185 version 2 only.
186
187 Compression
188 Specifies whether compression is allowed, or delayed until the
189 user has authenticated successfully. The argument must be
190 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
191
192 DenyGroups
193 This keyword can be followed by a list of group name patterns,
194 separated by spaces. Login is disallowed for users whose primary
195 group or supplementary group list matches one of the patterns.
196 Only group names are valid; a numerical group ID is not
197 recognized. By default, login is allowed for all groups. The
198 allow/deny directives are processed in the following order:
199 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
200
201 See PATTERNS in ssh_config(5) for more information on patterns.
202
203 DenyUsers
204 This keyword can be followed by a list of user name patterns,
205 separated by spaces. Login is disallowed for user names that
206 match one of the patterns. Only user names are valid; a
207 numerical user ID is not recognized. By default, login is
208 allowed for all users. If the pattern takes the form USER@HOST
209 then USER and HOST are separately checked, restricting logins to
210 particular users from particular hosts. The allow/deny
211 directives are processed in the following order: DenyUsers,
212 AllowUsers, DenyGroups, and finally AllowGroups.
213
214 See PATTERNS in ssh_config(5) for more information on patterns.
215
216 ForceCommand
217 Forces the execution of the command specified by ForceCommand,
218 ignoring any command supplied by the client and ~/.ssh/rc if
219 present. The command is invoked by using the user's login shell
220 with the -c option. This applies to shell, command, or subsystem
221 execution. It is most useful inside a Match block. The command
222 originally supplied by the client is available in the
223 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
224 of ``internal-sftp'' will force the use of an in-process sftp
225 server that requires no support files when used with
226 ChrootDirectory.
227
228 GatewayPorts
229 Specifies whether remote hosts are allowed to connect to ports
230 forwarded for the client. By default, sshd(8) binds remote port
231 forwardings to the loopback address. This prevents other remote
232 hosts from connecting to forwarded ports. GatewayPorts can be
233 used to specify that sshd should allow remote port forwardings to
234 bind to non-loopback addresses, thus allowing other hosts to
235 connect. The argument may be ``no'' to force remote port
236 forwardings to be available to the local host only, ``yes'' to
237 force remote port forwardings to bind to the wildcard address, or
238 ``clientspecified'' to allow the client to select the address to
239 which the forwarding is bound. The default is ``no''.
240
241 GSSAPIAuthentication
242 Specifies whether user authentication based on GSSAPI is allowed.
243 The default is ``no''. Note that this option applies to protocol
244 version 2 only.
245
246 GSSAPICleanupCredentials
247 Specifies whether to automatically destroy the user's credentials
248 cache on logout. The default is ``yes''. Note that this option
249 applies to protocol version 2 only.
250
251 HostbasedAuthentication
252 Specifies whether rhosts or /etc/hosts.equiv authentication
253 together with successful public key client host authentication is
254 allowed (host-based authentication). This option is similar to
255 RhostsRSAAuthentication and applies to protocol version 2 only.
256 The default is ``no''.
257
258 HostbasedUsesNameFromPacketOnly
259 Specifies whether or not the server will attempt to perform a
260 reverse name lookup when matching the name in the ~/.shosts,
261 ~/.rhosts, and /etc/hosts.equiv files during
262 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
263 uses the name supplied by the client rather than attempting to
264 resolve the name from the TCP connection itself. The default is
265 ``no''.
266
267 HostCertificate
268 Specifies a file containing a public host certificate. The
269 certificate's public key must match a private host key already
270 specified by HostKey. The default behaviour of sshd(8) is not to
271 load any certificates.
272
273 HostKey
274 Specifies a file containing a private host key used by SSH. The
275 default is /etc/ssh/ssh_host_key for protocol version 1, and
276 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
277 /etc/ssh/ssh_host_rsa_key for protocol version 2. Note that
278 sshd(8) will refuse to use a file if it is group/world-
279 accessible. It is possible to have multiple host key files.
280 ``rsa1'' keys are used for version 1 and ``dsa'', ``ecdsa'' or
281 ``rsa'' are used for version 2 of the SSH protocol.
282
283 IgnoreRhosts
284 Specifies that .rhosts and .shosts files will not be used in
285 RhostsRSAAuthentication or HostbasedAuthentication.
286
287 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
288 default is ``yes''.
289
290 IgnoreUserKnownHosts
291 Specifies whether sshd(8) should ignore the user's
292 ~/.ssh/known_hosts during RhostsRSAAuthentication or
293 HostbasedAuthentication. The default is ``no''.
294
295 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
296 connection. Accepted values are ``af11'', ``af12'', ``af13'',
297 ``af14'', ``af22'', ``af23'', ``af31'', ``af32'', ``af33'',
298 ``af41'', ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'',
299 ``cs4'', ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'',
300 ``throughput'', ``reliability'', or a numeric value. This option
301 may take one or two arguments, separated by whitespace. If one
302 argument is specified, it is used as the packet class
303 unconditionally. If two values are specified, the first is
304 automatically selected for interactive sessions and the second
305 for non-interactive sessions. The default is ``lowdelay'' for
306 interactive sessions and ``throughput'' for non-interactive
307 sessions.
308
309 KerberosAuthentication
310 Specifies whether the password provided by the user for
311 PasswordAuthentication will be validated through the Kerberos
312 KDC. To use this option, the server needs a Kerberos servtab
313 which allows the verification of the KDC's identity. The default
314 is ``no''.
315
316 KerberosGetAFSToken
317 If AFS is active and the user has a Kerberos 5 TGT, attempt to
318 acquire an AFS token before accessing the user's home directory.
319 The default is ``no''.
320
321 KerberosOrLocalPasswd
322 If password authentication through Kerberos fails then the
323 password will be validated via any additional local mechanism
324 such as /etc/passwd. The default is ``yes''.
325
326 KerberosTicketCleanup
327 Specifies whether to automatically destroy the user's ticket
328 cache file on logout. The default is ``yes''.
329
330 KexAlgorithms
331 Specifies the available KEX (Key Exchange) algorithms. Multiple
332 algorithms must be comma-separated. The default is
333 ``ecdh-sha2-nistp256'', ``ecdh-sha2-nistp384'',
334 ``ecdh-sha2-nistp521'', ``diffie-hellman-group-exchange-sha256'',
335 ``diffie-hellman-group-exchange-sha1'',
336 ``diffie-hellman-group14-sha1'', ``diffie-hellman-group1-sha1''.
337
338 KeyRegenerationInterval
339 In protocol version 1, the ephemeral server key is automatically
340 regenerated after this many seconds (if it has been used). The
341 purpose of regeneration is to prevent decrypting captured
342 sessions by later breaking into the machine and stealing the
343 keys. The key is never stored anywhere. If the value is 0, the
344 key is never regenerated. The default is 3600 (seconds).
345
346 ListenAddress
347 Specifies the local addresses sshd(8) should listen on. The
348 following forms may be used:
349
350 ListenAddress host|IPv4_addr|IPv6_addr
351 ListenAddress host|IPv4_addr:port
352 ListenAddress [host|IPv6_addr]:port
353
354 If port is not specified, sshd will listen on the address and all
355 prior Port options specified. The default is to listen on all
356 local addresses. Multiple ListenAddress options are permitted.
357 Additionally, any Port options must precede this option for non-
358 port qualified addresses.
359
360 LoginGraceTime
361 The server disconnects after this time if the user has not
362 successfully logged in. If the value is 0, there is no time
363 limit. The default is 120 seconds.
364
365 LogLevel
366 Gives the verbosity level that is used when logging messages from
367 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
368 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
369 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
370 higher levels of debugging output. Logging with a DEBUG level
371 violates the privacy of users and is not recommended.
372
373 MACs Specifies the available MAC (message authentication code)
374 algorithms. The MAC algorithm is used in protocol version 2 for
375 data integrity protection. Multiple algorithms must be comma-
376 separated. The default is:
377
378 hmac-md5,hmac-sha1,umac-64@openssh.com,
379 hmac-ripemd160,hmac-sha1-96,hmac-md5-96,
380 hmac-sha2-256,hmac-sha256-96,hmac-sha2-512,
381 hmac-sha2-512-96
382
383 Match Introduces a conditional block. If all of the criteria on the
384 Match line are satisfied, the keywords on the following lines
385 override those set in the global section of the config file,
386 until either another Match line or the end of the file.
387
388 The arguments to Match are one or more criteria-pattern pairs.
389 The available criteria are User, Group, Host, and Address. The
390 match patterns may consist of single entries or comma-separated
391 lists and may use the wildcard and negation operators described
392 in the PATTERNS section of ssh_config(5).
393
394 The patterns in an Address criteria may additionally contain
395 addresses to match in CIDR address/masklen format, e.g.
396 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
397 length provided must be consistent with the address - it is an
398 error to specify a mask length that is too long for the address
399 or one with bits set in this host portion of the address. For
400 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
401
402 Only a subset of keywords may be used on the lines following a
403 Match keyword. Available keywords are AllowAgentForwarding,
404 AllowTcpForwarding, AuthorizedKeysFile, AuthorizedPrincipalsFile,
405 Banner, ChrootDirectory, ForceCommand, GatewayPorts,
406 GSSAPIAuthentication, HostbasedAuthentication,
407 HostbasedUsesNameFromPacketOnly, KbdInteractiveAuthentication,
408 KerberosAuthentication, MaxAuthTries, MaxSessions,
409 PasswordAuthentication, PermitEmptyPasswords, PermitOpen,
410 PermitRootLogin, PermitTunnel, PubkeyAuthentication,
411 RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
412 X11Forwarding and X11UseLocalHost.
413
414 MaxAuthTries
415 Specifies the maximum number of authentication attempts permitted
416 per connection. Once the number of failures reaches half this
417 value, additional failures are logged. The default is 6.
418
419 MaxSessions
420 Specifies the maximum number of open sessions permitted per
421 network connection. The default is 10.
422
423 MaxStartups
424 Specifies the maximum number of concurrent unauthenticated
425 connections to the SSH daemon. Additional connections will be
426 dropped until authentication succeeds or the LoginGraceTime
427 expires for a connection. The default is 10.
428
429 Alternatively, random early drop can be enabled by specifying the
430 three colon separated values ``start:rate:full'' (e.g.
431 "10:30:60"). sshd(8) will refuse connection attempts with a
432 probability of ``rate/100'' (30%) if there are currently
433 ``start'' (10) unauthenticated connections. The probability
434 increases linearly and all connection attempts are refused if the
435 number of unauthenticated connections reaches ``full'' (60).
436
437 PasswordAuthentication
438 Specifies whether password authentication is allowed. The
439 default is ``yes''.
440
441 PermitEmptyPasswords
442 When password authentication is allowed, it specifies whether the
443 server allows login to accounts with empty password strings. The
444 default is ``no''.
445
446 PermitOpen
447 Specifies the destinations to which TCP port forwarding is
448 permitted. The forwarding specification must be one of the
449 following forms:
450
451 PermitOpen host:port
452 PermitOpen IPv4_addr:port
453 PermitOpen [IPv6_addr]:port
454
455 Multiple forwards may be specified by separating them with
456 whitespace. An argument of ``any'' can be used to remove all
457 restrictions and permit any forwarding requests. By default all
458 port forwarding requests are permitted.
459
460 PermitRootLogin
461 Specifies whether root can log in using ssh(1). The argument
462 must be ``yes'', ``without-password'', ``forced-commands-only'',
463 or ``no''. The default is ``yes''.
464
465 If this option is set to ``without-password'', password
466 authentication is disabled for root.
467
468 If this option is set to ``forced-commands-only'', root login
469 with public key authentication will be allowed, but only if the
470 command option has been specified (which may be useful for taking
471 remote backups even if root login is normally not allowed). All
472 other authentication methods are disabled for root.
473
474 If this option is set to ``no'', root is not allowed to log in.
475
476 PermitTunnel
477 Specifies whether tun(4) device forwarding is allowed. The
478 argument must be ``yes'', ``point-to-point'' (layer 3),
479 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' permits
480 both ``point-to-point'' and ``ethernet''. The default is ``no''.
481
482 PermitUserEnvironment
483 Specifies whether ~/.ssh/environment and environment= options in
484 ~/.ssh/authorized_keys are processed by sshd(8). The default is
485 ``no''. Enabling environment processing may enable users to
486 bypass access restrictions in some configurations using
487 mechanisms such as LD_PRELOAD.
488
489 PidFile
490 Specifies the file that contains the process ID of the SSH
491 daemon. The default is /var/run/sshd.pid.
492
493 Port Specifies the port number that sshd(8) listens on. The default
494 is 22. Multiple options of this type are permitted. See also
495 ListenAddress.
496
497 PrintLastLog
498 Specifies whether sshd(8) should print the date and time of the
499 last user login when a user logs in interactively. The default
500 is ``yes''.
501
502 PrintMotd
503 Specifies whether sshd(8) should print /etc/motd when a user logs
504 in interactively. (On some systems it is also printed by the
505 shell, /etc/profile, or equivalent.) The default is ``yes''.
506
507 Protocol
508 Specifies the protocol versions sshd(8) supports. The possible
509 values are `1' and `2'. Multiple versions must be comma-
510 separated. The default is `2'. Note that the order of the
511 protocol list does not indicate preference, because the client
512 selects among multiple protocol versions offered by the server.
513 Specifying ``2,1'' is identical to ``1,2''.
514
515 PubkeyAuthentication
516 Specifies whether public key authentication is allowed. The
517 default is ``yes''. Note that this option applies to protocol
518 version 2 only.
519
520 RevokedKeys
521 Specifies a list of revoked public keys. Keys listed in this
522 file will be refused for public key authentication. Note that if
523 this file is not readable, then public key authentication will be
524 refused for all users.
525
526 RhostsRSAAuthentication
527 Specifies whether rhosts or /etc/hosts.equiv authentication
528 together with successful RSA host authentication is allowed. The
529 default is ``no''. This option applies to protocol version 1
530 only.
531
532 RSAAuthentication
533 Specifies whether pure RSA authentication is allowed. The
534 default is ``yes''. This option applies to protocol version 1
535 only.
536
537 ServerKeyBits
538 Defines the number of bits in the ephemeral protocol version 1
539 server key. The minimum value is 512, and the default is 1024.
540
541 StrictModes
542 Specifies whether sshd(8) should check file modes and ownership
543 of the user's files and home directory before accepting login.
544 This is normally desirable because novices sometimes accidentally
545 leave their directory or files world-writable. The default is
546 ``yes''. Note that this does not apply to ChrootDirectory, whose
547 permissions and ownership are checked unconditionally.
548
549 Subsystem
550 Configures an external subsystem (e.g. file transfer daemon).
551 Arguments should be a subsystem name and a command (with optional
552 arguments) to execute upon subsystem request.
553
554 The command sftp-server(8) implements the ``sftp'' file transfer
555 subsystem.
556
557 Alternately the name ``internal-sftp'' implements an in-process
558 ``sftp'' server. This may simplify configurations using
559 ChrootDirectory to force a different filesystem root on clients.
560
561 By default no subsystems are defined. Note that this option
562 applies to protocol version 2 only.
563
564 SyslogFacility
565 Gives the facility code that is used when logging messages from
566 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
567 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
568 default is AUTH.
569
570 TCPKeepAlive
571 Specifies whether the system should send TCP keepalive messages
572 to the other side. If they are sent, death of the connection or
573 crash of one of the machines will be properly noticed. However,
574 this means that connections will die if the route is down
575 temporarily, and some people find it annoying. On the other
576 hand, if TCP keepalives are not sent, sessions may hang
577 indefinitely on the server, leaving ``ghost'' users and consuming
578 server resources.
579
580 The default is ``yes'' (to send TCP keepalive messages), and the
581 server will notice if the network goes down or the client host
582 crashes. This avoids infinitely hanging sessions.
583
584 To disable TCP keepalive messages, the value should be set to
585 ``no''.
586
587 TrustedUserCAKeys
588 Specifies a file containing public keys of certificate
589 authorities that are trusted to sign user certificates for
590 authentication. Keys are listed one per line; empty lines and
591 comments starting with `#' are allowed. If a certificate is
592 presented for authentication and has its signing CA key listed in
593 this file, then it may be used for authentication for any user
594 listed in the certificate's principals list. Note that
595 certificates that lack a list of principals will not be permitted
596 for authentication using TrustedUserCAKeys. For more details on
597 certificates, see the CERTIFICATES section in ssh-keygen(1).
598
599 UseDNS Specifies whether sshd(8) should look up the remote host name and
600 check that the resolved host name for the remote IP address maps
601 back to the very same IP address. The default is ``yes''.
602
603 UseLogin
604 Specifies whether login(1) is used for interactive login
605 sessions. The default is ``no''. Note that login(1) is never
606 used for remote command execution. Note also, that if this is
607 enabled, X11Forwarding will be disabled because login(1) does not
608 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
609 is specified, it will be disabled after authentication.
610
611 UsePAM Enables the Pluggable Authentication Module interface. If set to
612 ``yes'' this will enable PAM authentication using
613 ChallengeResponseAuthentication and PasswordAuthentication in
614 addition to PAM account and session module processing for all
615 authentication types.
616
617 Because PAM challenge-response authentication usually serves an
618 equivalent role to password authentication, you should disable
619 either PasswordAuthentication or ChallengeResponseAuthentication.
620
621 If UsePAM is enabled, you will not be able to run sshd(8) as a
622 non-root user. The default is ``no''.
623
624 UsePrivilegeSeparation
625 Specifies whether sshd(8) separates privileges by creating an
626 unprivileged child process to deal with incoming network traffic.
627 After successful authentication, another process will be created
628 that has the privilege of the authenticated user. The goal of
629 privilege separation is to prevent privilege escalation by
630 containing any corruption within the unprivileged processes. The
631 default is ``yes''. If UsePrivilegeSeparation is set to
632 ``sandbox'' then the pre-authentication unprivileged process is
633 subject to additional restrictions.
634
635 X11DisplayOffset
636 Specifies the first display number available for sshd(8)'s X11
637 forwarding. This prevents sshd from interfering with real X11
638 servers. The default is 10.
639
640 X11Forwarding
641 Specifies whether X11 forwarding is permitted. The argument must
642 be ``yes'' or ``no''. The default is ``no''.
643
644 When X11 forwarding is enabled, there may be additional exposure
645 to the server and to client displays if the sshd(8) proxy display
646 is configured to listen on the wildcard address (see
647 X11UseLocalhost below), though this is not the default.
648 Additionally, the authentication spoofing and authentication data
649 verification and substitution occur on the client side. The
650 security risk of using X11 forwarding is that the client's X11
651 display server may be exposed to attack when the SSH client
652 requests forwarding (see the warnings for ForwardX11 in
653 ssh_config(5)). A system administrator may have a stance in
654 which they want to protect clients that may expose themselves to
655 attack by unwittingly requesting X11 forwarding, which can
656 warrant a ``no'' setting.
657
658 Note that disabling X11 forwarding does not prevent users from
659 forwarding X11 traffic, as users can always install their own
660 forwarders. X11 forwarding is automatically disabled if UseLogin
661 is enabled.
662
663 X11UseLocalhost
664 Specifies whether sshd(8) should bind the X11 forwarding server
665 to the loopback address or to the wildcard address. By default,
666 sshd binds the forwarding server to the loopback address and sets
667 the hostname part of the DISPLAY environment variable to
668 ``localhost''. This prevents remote hosts from connecting to the
669 proxy display. However, some older X11 clients may not function
670 with this configuration. X11UseLocalhost may be set to ``no'' to
671 specify that the forwarding server should be bound to the
672 wildcard address. The argument must be ``yes'' or ``no''. The
673 default is ``yes''.
674
675 XAuthLocation
676 Specifies the full pathname of the xauth(1) program. The default
677 is /usr/X11R6/bin/xauth.
678
679TIME FORMATS
680 sshd(8) command-line arguments and configuration file options that
681 specify time may be expressed using a sequence of the form:
682 time[qualifier], where time is a positive integer value and qualifier is
683 one of the following:
684
685 <none> seconds
686 s | S seconds
687 m | M minutes
688 h | H hours
689 d | D days
690 w | W weeks
691
692 Each member of the sequence is added together to calculate the total time
693 value.
694
695 Time format examples:
696
697 600 600 seconds (10 minutes)
698 10m 10 minutes
699 1h30m 1 hour 30 minutes (90 minutes)
700
701FILES
702 /etc/ssh/sshd_config
703 Contains configuration data for sshd(8). This file should be
704 writable by root only, but it is recommended (though not
705 necessary) that it be world-readable.
706
707SEE ALSO
708 sshd(8)
709
710AUTHORS
711 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
712 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
713 de Raadt and Dug Song removed many bugs, re-added newer features and
714 created OpenSSH. Markus Friedl contributed the support for SSH protocol
715 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
716 for privilege separation.
717
718OpenBSD 5.0 August 2, 2011 OpenBSD 5.0